From 465e95b0a0edfc30c6e3b4565ea85bc51afce578 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 31 May 2023 00:24:12 -0700 Subject: [PATCH 1/7] feat(all): auto-regenerate discovery clients (#2007) --- .../v1/androidmanagement-api.json | 3 +- androidmanagement/v1/androidmanagement-gen.go | 1 + .../v1/authorizedbuyersmarketplace-api.json | 18 +- .../v1/authorizedbuyersmarketplace-gen.go | 44 +- chat/v1/chat-api.json | 84 ++- chat/v1/chat-gen.go | 425 ++++++------- classroom/v1/classroom-api.json | 4 +- classroom/v1/classroom-gen.go | 8 +- cloudfunctions/v2/cloudfunctions-api.json | 7 +- cloudfunctions/v2/cloudfunctions-gen.go | 3 + .../v2alpha/cloudfunctions-api.json | 7 +- cloudfunctions/v2alpha/cloudfunctions-gen.go | 3 + cloudfunctions/v2beta/cloudfunctions-api.json | 7 +- cloudfunctions/v2beta/cloudfunctions-gen.go | 3 + contentwarehouse/v1/contentwarehouse-api.json | 348 ++++++++--- contentwarehouse/v1/contentwarehouse-gen.go | 370 +++++++++--- displayvideo/v1/displayvideo-api.json | 60 +- displayvideo/v1/displayvideo-gen.go | 55 +- displayvideo/v2/displayvideo-api.json | 60 +- displayvideo/v2/displayvideo-gen.go | 55 +- .../v1beta/firebaseappcheck-api.json | 125 +++- .../v1beta/firebaseappcheck-gen.go | 569 +++++++++++++++++- playintegrity/v1/playintegrity-api.json | 8 +- playintegrity/v1/playintegrity-gen.go | 5 + pubsub/v1/pubsub-api.json | 3 +- pubsub/v1/pubsub-gen.go | 1 + retail/v2/retail-api.json | 4 +- retail/v2/retail-gen.go | 21 +- retail/v2alpha/retail-api.json | 4 +- retail/v2alpha/retail-gen.go | 21 +- retail/v2beta/retail-api.json | 4 +- retail/v2beta/retail-gen.go | 21 +- sheets/v4/sheets-api.json | 4 +- sheets/v4/sheets-gen.go | 34 +- testing/v1/testing-api.json | 12 +- testing/v1/testing-gen.go | 7 + 36 files changed, 1781 insertions(+), 627 deletions(-) diff --git a/androidmanagement/v1/androidmanagement-api.json b/androidmanagement/v1/androidmanagement-api.json index 1bc5e94a101..4a296687a5e 100644 --- a/androidmanagement/v1/androidmanagement-api.json +++ b/androidmanagement/v1/androidmanagement-api.json @@ -115,6 +115,7 @@ "parameterOrder": [], "parameters": { "agreementAccepted": { + "deprecated": true, "description": "Whether the enterprise admin has seen and agreed to the managed Google Play Agreement (https://www.android.com/enterprise/terms/). Do not set this field for any customer-managed enterprise (https://developers.google.com/android/management/create-enterprise#customer-managed_enterprises). Set this to field to true for all EMM-managed enterprises (https://developers.google.com/android/management/create-enterprise#emm-managed_enterprises).", "location": "query", "type": "boolean" @@ -1065,7 +1066,7 @@ } } }, - "revision": "20230516", + "revision": "20230522", "rootUrl": "https://androidmanagement.googleapis.com/", "schemas": { "AdbShellCommandEvent": { diff --git a/androidmanagement/v1/androidmanagement-gen.go b/androidmanagement/v1/androidmanagement-gen.go index 810e11edb36..d45a50e2daa 100644 --- a/androidmanagement/v1/androidmanagement-gen.go +++ b/androidmanagement/v1/androidmanagement-gen.go @@ -6966,6 +6966,7 @@ func (c *EnterprisesCreateCall) Do(opts ...googleapi.CallOption) (*Enterprise, e // "parameterOrder": [], // "parameters": { // "agreementAccepted": { + // "deprecated": true, // "description": "Whether the enterprise admin has seen and agreed to the managed Google Play Agreement (https://www.android.com/enterprise/terms/). Do not set this field for any customer-managed enterprise (https://developers.google.com/android/management/create-enterprise#customer-managed_enterprises). Set this to field to true for all EMM-managed enterprises (https://developers.google.com/android/management/create-enterprise#emm-managed_enterprises).", // "location": "query", // "type": "boolean" diff --git a/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-api.json b/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-api.json index 127e52be53d..4ac40bda267 100644 --- a/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-api.json +++ b/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-api.json @@ -119,7 +119,7 @@ ], "parameters": { "filter": { - "description": "Optional query string using the [Cloud API list filtering syntax](https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters) Supported columns for filtering are: * deal.displayName * deal.dealType * deal.createTime * deal.updateTime * deal.flightStartTime * deal.flightEndTime * dealServingStatus", + "description": "Optional query string using the [Cloud API list filtering syntax](https://developers.google.com/authorized-buyers/apis/guides/list-filters) Supported columns for filtering are: * deal.displayName * deal.dealType * deal.createTime * deal.updateTime * deal.flightStartTime * deal.flightEndTime * dealServingStatus", "location": "query", "type": "string" }, @@ -459,7 +459,7 @@ ], "parameters": { "filter": { - "description": "Query string using the [Filtering Syntax](https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters) Supported fields for filtering are: * partnerClientId Use this field to filter the clients by the partnerClientId. For example, if the partnerClientId of the client is \"1234\", the value of this field should be `partnerClientId = \"1234\"`, in order to get only the client whose partnerClientId is \"1234\" in the response.", + "description": "Query string using the [Filtering Syntax](https://developers.google.com/authorized-buyers/apis/guides/list-filters) Supported fields for filtering are: * partnerClientId Use this field to filter the clients by the partnerClientId. For example, if the partnerClientId of the client is \"1234\", the value of this field should be `partnerClientId = \"1234\"`, in order to get only the client whose partnerClientId is \"1234\" in the response.", "location": "query", "type": "string" }, @@ -767,7 +767,7 @@ ], "parameters": { "filter": { - "description": "Optional query string using the [Cloud API list filtering syntax](https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters) Supported columns for filtering are: * deal.displayName * deal.dealType * deal.createTime * deal.updateTime * deal.flightStartTime * deal.flightEndTime * dealServingStatus", + "description": "Optional query string using the [Cloud API list filtering syntax](https://developers.google.com/authorized-buyers/apis/guides/list-filters) Supported columns for filtering are: * deal.displayName * deal.dealType * deal.createTime * deal.updateTime * deal.flightStartTime * deal.flightEndTime * dealServingStatus", "location": "query", "type": "string" }, @@ -976,7 +976,7 @@ ] }, "get": { - "description": "Gets a proposal using its name. The proposal is returned at most recent revision. revision.", + "description": "Gets a proposal using its resource name. The proposal is returned at the latest revision.", "flatPath": "v1/buyers/{buyersId}/proposals/{proposalsId}", "httpMethod": "GET", "id": "authorizedbuyersmarketplace.buyers.proposals.get", @@ -1001,7 +1001,7 @@ ] }, "list": { - "description": "Lists proposals. A filter expression (list filter syntax) may be specified to filter the results. This will not list finalized versions of proposals that are being renegotiated; to retrieve these use the finalizedProposals resource.", + "description": "Lists proposals. A filter expression using [Cloud API list filtering syntax](https://developers.google.com/authorized-buyers/apis/guides/list-filters) may be specified to filter the results.", "flatPath": "v1/buyers/{buyersId}/proposals", "httpMethod": "GET", "id": "authorizedbuyersmarketplace.buyers.proposals.list", @@ -1010,7 +1010,7 @@ ], "parameters": { "filter": { - "description": "Optional query string using the [Cloud API list filtering syntax](https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters) Supported columns for filtering are: * displayName * dealType * updateTime * state", + "description": "Optional query string using the [Cloud API list filtering syntax](https://developers.google.com/authorized-buyers/apis/guides/list-filters) Supported columns for filtering are: * displayName * dealType * updateTime * state", "location": "query", "type": "string" }, @@ -1042,7 +1042,7 @@ ] }, "patch": { - "description": "Updates the proposal at the given revision number. If the revision number in the request is behind the latest from the server, an error message will be returned. See FieldMask for how to use FieldMask. Only fields specified in the UpdateProposalRequest.update_mask will be updated; Fields noted as 'Immutable' or 'Output only' yet specified in the UpdateProposalRequest.update_mask will be ignored and left unchanged. Updating a private auction proposal is not allowed and will result in an error.", + "description": "Updates the proposal at the given revision number. If the revision number in the request is behind the latest one kept in the server, an error message will be returned. See FieldMask for how to use FieldMask. Only fields specified in the UpdateProposalRequest.update_mask will be updated; Fields noted as 'Immutable' or 'Output only' yet specified in the UpdateProposalRequest.update_mask will be ignored and left unchanged. Updating a private auction proposal is not allowed and will result in an error.", "flatPath": "v1/buyers/{buyersId}/proposals/{proposalsId}", "httpMethod": "PATCH", "id": "authorizedbuyersmarketplace.buyers.proposals.patch", @@ -1271,7 +1271,7 @@ ], "parameters": { "filter": { - "description": "Optional query string using the [Cloud API list filtering] (https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters) syntax.", + "description": "Optional query string using the [Cloud API list filtering] (https://developers.google.com/authorized-buyers/apis/guides/list-filters) syntax.", "location": "query", "type": "string" }, @@ -1307,7 +1307,7 @@ } } }, - "revision": "20230508", + "revision": "20230530", "rootUrl": "https://authorizedbuyersmarketplace.googleapis.com/", "schemas": { "AcceptProposalRequest": { diff --git a/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-gen.go b/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-gen.go index 0ec568e31d5..0af82549499 100644 --- a/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-gen.go +++ b/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-gen.go @@ -2960,7 +2960,7 @@ func (r *BiddersFinalizedDealsService) List(parent string) *BiddersFinalizedDeal // Filter sets the optional parameter "filter": Optional query string // using the Cloud API list filtering syntax -// (https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters) +// (https://developers.google.com/authorized-buyers/apis/guides/list-filters) // Supported columns for filtering are: * deal.displayName * // deal.dealType * deal.createTime * deal.updateTime * // deal.flightStartTime * deal.flightEndTime * dealServingStatus @@ -3109,7 +3109,7 @@ func (c *BiddersFinalizedDealsListCall) Do(opts ...googleapi.CallOption) (*ListF // ], // "parameters": { // "filter": { - // "description": "Optional query string using the [Cloud API list filtering syntax](https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters) Supported columns for filtering are: * deal.displayName * deal.dealType * deal.createTime * deal.updateTime * deal.flightStartTime * deal.flightEndTime * dealServingStatus", + // "description": "Optional query string using the [Cloud API list filtering syntax](https://developers.google.com/authorized-buyers/apis/guides/list-filters) Supported columns for filtering are: * deal.displayName * deal.dealType * deal.createTime * deal.updateTime * deal.flightStartTime * deal.flightEndTime * dealServingStatus", // "location": "query", // "type": "string" // }, @@ -4692,7 +4692,7 @@ func (r *BuyersClientsService) List(parent string) *BuyersClientsListCall { // Filter sets the optional parameter "filter": Query string using the // Filtering Syntax -// (https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters) +// (https://developers.google.com/authorized-buyers/apis/guides/list-filters) // Supported fields for filtering are: * partnerClientId Use this field // to filter the clients by the partnerClientId. For example, if the // partnerClientId of the client is "1234", the value of this field @@ -4827,7 +4827,7 @@ func (c *BuyersClientsListCall) Do(opts ...googleapi.CallOption) (*ListClientsRe // ], // "parameters": { // "filter": { - // "description": "Query string using the [Filtering Syntax](https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters) Supported fields for filtering are: * partnerClientId Use this field to filter the clients by the partnerClientId. For example, if the partnerClientId of the client is \"1234\", the value of this field should be `partnerClientId = \"1234\"`, in order to get only the client whose partnerClientId is \"1234\" in the response.", + // "description": "Query string using the [Filtering Syntax](https://developers.google.com/authorized-buyers/apis/guides/list-filters) Supported fields for filtering are: * partnerClientId Use this field to filter the clients by the partnerClientId. For example, if the partnerClientId of the client is \"1234\", the value of this field should be `partnerClientId = \"1234\"`, in order to get only the client whose partnerClientId is \"1234\" in the response.", // "location": "query", // "type": "string" // }, @@ -6294,7 +6294,7 @@ func (r *BuyersFinalizedDealsService) List(parent string) *BuyersFinalizedDealsL // Filter sets the optional parameter "filter": Optional query string // using the Cloud API list filtering syntax -// (https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters) +// (https://developers.google.com/authorized-buyers/apis/guides/list-filters) // Supported columns for filtering are: * deal.displayName * // deal.dealType * deal.createTime * deal.updateTime * // deal.flightStartTime * deal.flightEndTime * dealServingStatus @@ -6443,7 +6443,7 @@ func (c *BuyersFinalizedDealsListCall) Do(opts ...googleapi.CallOption) (*ListFi // ], // "parameters": { // "filter": { - // "description": "Optional query string using the [Cloud API list filtering syntax](https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters) Supported columns for filtering are: * deal.displayName * deal.dealType * deal.createTime * deal.updateTime * deal.flightStartTime * deal.flightEndTime * dealServingStatus", + // "description": "Optional query string using the [Cloud API list filtering syntax](https://developers.google.com/authorized-buyers/apis/guides/list-filters) Supported columns for filtering are: * deal.displayName * deal.dealType * deal.createTime * deal.updateTime * deal.flightStartTime * deal.flightEndTime * dealServingStatus", // "location": "query", // "type": "string" // }, @@ -7401,8 +7401,8 @@ type BuyersProposalsGetCall struct { header_ http.Header } -// Get: Gets a proposal using its name. The proposal is returned at most -// recent revision. revision. +// Get: Gets a proposal using its resource name. The proposal is +// returned at the latest revision. // // - name: Name of the proposal. Format: // `buyers/{accountId}/proposals/{proposalId}`. @@ -7511,7 +7511,7 @@ func (c *BuyersProposalsGetCall) Do(opts ...googleapi.CallOption) (*Proposal, er } return ret, nil // { - // "description": "Gets a proposal using its name. The proposal is returned at most recent revision. revision.", + // "description": "Gets a proposal using its resource name. The proposal is returned at the latest revision.", // "flatPath": "v1/buyers/{buyersId}/proposals/{proposalsId}", // "httpMethod": "GET", // "id": "authorizedbuyersmarketplace.buyers.proposals.get", @@ -7549,10 +7549,10 @@ type BuyersProposalsListCall struct { header_ http.Header } -// List: Lists proposals. A filter expression (list filter syntax) may -// be specified to filter the results. This will not list finalized -// versions of proposals that are being renegotiated; to retrieve these -// use the finalizedProposals resource. +// List: Lists proposals. A filter expression using Cloud API list +// filtering syntax +// (https://developers.google.com/authorized-buyers/apis/guides/list-filters) +// may be specified to filter the results. // // - parent: Parent that owns the collection of proposals Format: // `buyers/{accountId}`. @@ -7564,7 +7564,7 @@ func (r *BuyersProposalsService) List(parent string) *BuyersProposalsListCall { // Filter sets the optional parameter "filter": Optional query string // using the Cloud API list filtering syntax -// (https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters) +// (https://developers.google.com/authorized-buyers/apis/guides/list-filters) // Supported columns for filtering are: * displayName * dealType * // updateTime * state func (c *BuyersProposalsListCall) Filter(filter string) *BuyersProposalsListCall { @@ -7686,7 +7686,7 @@ func (c *BuyersProposalsListCall) Do(opts ...googleapi.CallOption) (*ListProposa } return ret, nil // { - // "description": "Lists proposals. A filter expression (list filter syntax) may be specified to filter the results. This will not list finalized versions of proposals that are being renegotiated; to retrieve these use the finalizedProposals resource.", + // "description": "Lists proposals. A filter expression using [Cloud API list filtering syntax](https://developers.google.com/authorized-buyers/apis/guides/list-filters) may be specified to filter the results.", // "flatPath": "v1/buyers/{buyersId}/proposals", // "httpMethod": "GET", // "id": "authorizedbuyersmarketplace.buyers.proposals.list", @@ -7695,7 +7695,7 @@ func (c *BuyersProposalsListCall) Do(opts ...googleapi.CallOption) (*ListProposa // ], // "parameters": { // "filter": { - // "description": "Optional query string using the [Cloud API list filtering syntax](https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters) Supported columns for filtering are: * displayName * dealType * updateTime * state", + // "description": "Optional query string using the [Cloud API list filtering syntax](https://developers.google.com/authorized-buyers/apis/guides/list-filters) Supported columns for filtering are: * displayName * dealType * updateTime * state", // "location": "query", // "type": "string" // }, @@ -7762,9 +7762,9 @@ type BuyersProposalsPatchCall struct { } // Patch: Updates the proposal at the given revision number. If the -// revision number in the request is behind the latest from the server, -// an error message will be returned. See FieldMask for how to use -// FieldMask. Only fields specified in the +// revision number in the request is behind the latest one kept in the +// server, an error message will be returned. See FieldMask for how to +// use FieldMask. Only fields specified in the // UpdateProposalRequest.update_mask will be updated; Fields noted as // 'Immutable' or 'Output only' yet specified in the // UpdateProposalRequest.update_mask will be ignored and left unchanged. @@ -7887,7 +7887,7 @@ func (c *BuyersProposalsPatchCall) Do(opts ...googleapi.CallOption) (*Proposal, } return ret, nil // { - // "description": "Updates the proposal at the given revision number. If the revision number in the request is behind the latest from the server, an error message will be returned. See FieldMask for how to use FieldMask. Only fields specified in the UpdateProposalRequest.update_mask will be updated; Fields noted as 'Immutable' or 'Output only' yet specified in the UpdateProposalRequest.update_mask will be ignored and left unchanged. Updating a private auction proposal is not allowed and will result in an error.", + // "description": "Updates the proposal at the given revision number. If the revision number in the request is behind the latest one kept in the server, an error message will be returned. See FieldMask for how to use FieldMask. Only fields specified in the UpdateProposalRequest.update_mask will be updated; Fields noted as 'Immutable' or 'Output only' yet specified in the UpdateProposalRequest.update_mask will be ignored and left unchanged. Updating a private auction proposal is not allowed and will result in an error.", // "flatPath": "v1/buyers/{buyersId}/proposals/{proposalsId}", // "httpMethod": "PATCH", // "id": "authorizedbuyersmarketplace.buyers.proposals.patch", @@ -8909,7 +8909,7 @@ func (r *BuyersPublisherProfilesService) List(parent string) *BuyersPublisherPro // Filter sets the optional parameter "filter": Optional query string // using the [Cloud API list filtering] -// (https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters) +// (https://developers.google.com/authorized-buyers/apis/guides/list-filters) // syntax. func (c *BuyersPublisherProfilesListCall) Filter(filter string) *BuyersPublisherProfilesListCall { c.urlParams_.Set("filter", filter) @@ -9040,7 +9040,7 @@ func (c *BuyersPublisherProfilesListCall) Do(opts ...googleapi.CallOption) (*Lis // ], // "parameters": { // "filter": { - // "description": "Optional query string using the [Cloud API list filtering] (https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters) syntax.", + // "description": "Optional query string using the [Cloud API list filtering] (https://developers.google.com/authorized-buyers/apis/guides/list-filters) syntax.", // "location": "query", // "type": "string" // }, diff --git a/chat/v1/chat-api.json b/chat/v1/chat-api.json index 2554abf9938..baf43738d40 100644 --- a/chat/v1/chat-api.json +++ b/chat/v1/chat-api.json @@ -175,7 +175,7 @@ "supportsMediaDownload": true }, "upload": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview): Uploads an attachment. Requires user [authentication](https://developers.google.com/chat/api/guides/auth/users). You can upload attachments up to 200 MB. Certain file types aren't supported. For details, see [File types blocked by Google Chat](https://support.google.com/chat/answer/7651457?\u0026co=GENIE.Platform%3DDesktop#File%20types%20blocked%20in%20Google%20Chat).", + "description": "Uploads an attachment. For an example, see [Upload media as a file attachment](https://developers.google.com/chat/api/guides/v1/media-and-attachments/upload). Requires user [authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.messages` or `chat.messages.create` authorization scope. You can upload attachments up to 200 MB. Certain file types aren't supported. For details, see [File types blocked by Google Chat](https://support.google.com/chat/answer/7651457?\u0026co=GENIE.Platform%3DDesktop#File%20types%20blocked%20in%20Google%20Chat).", "flatPath": "v1/spaces/{spacesId}/attachments:upload", "httpMethod": "POST", "id": "chat.media.upload", @@ -225,7 +225,7 @@ "spaces": { "methods": { "create": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview): Creates a named space. Spaces grouped by topics or that have guest access aren't supported. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.spaces.create` or `chat.spaces` scope.", + "description": "Creates a named space. Spaces grouped by topics or that have guest access aren't supported. For an example, see [Create a space](https://developers.google.com/chat/api/guides/v1/spaces/create). Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.spaces.create` or `chat.spaces` scope.", "flatPath": "v1/spaces", "httpMethod": "POST", "id": "chat.spaces.create", @@ -250,7 +250,7 @@ ] }, "delete": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview): Deletes a named space. Always performs a cascading delete, which means that the space's child resources—like messages posted in the space and memberships in the space—are also deleted. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) from a user who has permission to delete the space, and the `chat.delete` scope.", + "description": "Deletes a named space. Always performs a cascading delete, which means that the space's child resources—like messages posted in the space and memberships in the space—are also deleted. For an example, see [Delete a space](https://developers.google.com/chat/api/guides/v1/spaces/delete). Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) from a user who has permission to delete the space, and the `chat.delete` scope.", "flatPath": "v1/spaces/{spacesId}", "httpMethod": "DELETE", "id": "chat.spaces.delete", @@ -275,7 +275,7 @@ ] }, "findDirectMessage": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview): Returns the existing direct message with the specified user. With [user authentication](https://developers.google.com/chat/api/guides/auth/users), returns the direct message space between the specified user and the authenticated user. With [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts), returns the direct message space between the specified user and the calling Chat app. If no direct message space is found, returns a `404 NOT_FOUND` error. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) or [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts).", + "description": "Returns the existing direct message with the specified user. If no direct message space is found, returns a `404 NOT_FOUND` error. For an example, see [Find a direct message](/chat/api/guides/v1/spaces/find-direct-message). With [user authentication](https://developers.google.com/chat/api/guides/auth/users), returns the direct message space between the specified user and the authenticated user. With [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts), returns the direct message space between the specified user and the calling Chat app. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) or [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts).", "flatPath": "v1/spaces:findDirectMessage", "httpMethod": "GET", "id": "chat.spaces.findDirectMessage", @@ -298,7 +298,7 @@ ] }, "get": { - "description": "Returns a space. Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.spaces` or `chat.spaces.readonly` authorization scope.", + "description": "Returns details about a space. For an example, see [Get a space](https://developers.google.com/chat/api/guides/v1/spaces/get). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.spaces` or `chat.spaces.readonly` authorization scope.", "flatPath": "v1/spaces/{spacesId}", "httpMethod": "GET", "id": "chat.spaces.get", @@ -325,14 +325,14 @@ ] }, "list": { - "description": "Lists spaces the caller is a member of. Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.spaces` or `chat.spaces.readonly` authorization scope. Lists spaces visible to the caller or authenticated user. Group chats and DMs aren't listed until the first message is sent.", + "description": "Lists spaces the caller is a member of. Group chats and DMs aren't listed until the first message is sent. For an example, see [List spaces](https://developers.google.com/chat/api/guides/v1/spaces/list). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.spaces` or `chat.spaces.readonly` authorization scope. Lists spaces visible to the caller or authenticated user. Group chats and DMs aren't listed until the first message is sent.", "flatPath": "v1/spaces", "httpMethod": "GET", "id": "chat.spaces.list", "parameterOrder": [], "parameters": { "filter": { - "description": "Optional. A query filter. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users). You can filter spaces by the space type ([`space_type`](https://developers.google.com/chat/api/reference/rest/v1/spaces#spacetype)). To filter by space type, you must specify valid enum value, such as `SPACE` or `GROUP_CHAT` (the `space_type` can't be `SPACE_TYPE_UNSPECIFIED`). To query for multiple space types, use the `OR` operator. For example, the following queries are valid: ``` space_type = \"SPACE\" spaceType = \"GROUP_CHAT\" OR spaceType = \"DIRECT_MESSAGE\" ``` Invalid queries are rejected by the server with an `INVALID_ARGUMENT` error. With [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts), this field is ignored and the query always returns all spaces. But the Chat API still validates the query syntax with service accounts, so invalid queries are still rejected. [Developer Preview](https://developers.google.com/workspace/preview).", + "description": "Optional. A query filter. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users). You can filter spaces by the space type ([`space_type`](https://developers.google.com/chat/api/reference/rest/v1/spaces#spacetype)). To filter by space type, you must specify valid enum value, such as `SPACE` or `GROUP_CHAT` (the `space_type` can't be `SPACE_TYPE_UNSPECIFIED`). To query for multiple space types, use the `OR` operator. For example, the following queries are valid: ``` space_type = \"SPACE\" spaceType = \"GROUP_CHAT\" OR spaceType = \"DIRECT_MESSAGE\" ``` Invalid queries are rejected by the server with an `INVALID_ARGUMENT` error. With [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts), this field is ignored and the query always returns all spaces. But the Chat API still validates the query syntax with service accounts, so invalid queries are still rejected.", "location": "query", "type": "string" }, @@ -359,7 +359,7 @@ ] }, "patch": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview): Updates a space. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.spaces` scope.", + "description": "Updates a space. For an example, see [Update a space](https://developers.google.com/chat/api/guides/v1/spaces/update). Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.spaces` scope.", "flatPath": "v1/spaces/{spacesId}", "httpMethod": "PATCH", "id": "chat.spaces.patch", @@ -393,7 +393,7 @@ ] }, "setup": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview): Creates a space and adds specified users to it. The calling user is automatically added to the space, and shouldn't be specified as a membership in the request. To specify the human members to add, add memberships with the appropriate `member.name` in the `SetUpSpaceRequest`. To add a human user, use `users/{user}`, where `{user}` is either the `{person_id}` for the [person](https://developers.google.com/people/api/rest/v1/people) from the People API, or the `id` for the [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) in the Admin SDK Directory API. For example, if the People API `Person` `resourceName` is `people/123456789`, you can add the user to the space by including a membership with `users/123456789` as the `member.name`. For a space or group chat, if the caller blocks or is blocked by some members, then those members aren't added to the created space. To create a direct message (DM) between the calling user and another human user, specify exactly one membership to represent the human user. If one user blocks the other, the request fails and the DM isn't created. To create a DM between the calling user and the calling app, set `Space.singleUserBotDm` to true and don't specify any memberships. You can only use this method to add app memberships to DMs. To add the calling app as a member of other space types, use [create membership](https://developers.google.com/chat/api/reference/rest/v1/spaces.members/create) If a DM already exists between two users, even when one user blocks the other at the time a request is made, then the existing DM is returned. Spaces with threaded replies or guest access aren't supported. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.spaces.create` or `chat.spaces` scope.", + "description": "Creates a space and adds specified users to it. The calling user is automatically added to the space, and shouldn't be specified as a membership in the request. For an example, see [Set up a space](https://developers.google.com/chat/api/guides/v1/spaces/set-up). To specify the human members to add, add memberships with the appropriate `member.name` in the `SetUpSpaceRequest`. To add a human user, use `users/{user}`, where `{user}` is either the `{person_id}` for the [person](https://developers.google.com/people/api/rest/v1/people) from the People API, or the `id` for the [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) in the Admin SDK Directory API. For example, if the People API `Person` `resourceName` is `people/123456789`, you can add the user to the space by including a membership with `users/123456789` as the `member.name`. For a space or group chat, if the caller blocks or is blocked by some members, then those members aren't added to the created space. To create a direct message (DM) between the calling user and another human user, specify exactly one membership to represent the human user. If one user blocks the other, the request fails and the DM isn't created. To create a DM between the calling user and the calling app, set `Space.singleUserBotDm` to `true` and don't specify any memberships. You can only use this method to set up a DM with the calling app. To add the calling app as a member of a space or an existing DM between two human users, see [create a membership](https://developers.google.com/chat/api/guides/v1/members/create). If a DM already exists between two users, even when one user blocks the other at the time a request is made, then the existing DM is returned. Spaces with threaded replies or guest access aren't supported. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.spaces.create` or `chat.spaces` scope.", "flatPath": "v1/spaces:setup", "httpMethod": "POST", "id": "chat.spaces.setup", @@ -416,7 +416,7 @@ "members": { "methods": { "create": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview): Creates a human membership or app membership for the calling app. Creating memberships for other apps isn't supported. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.memberships` (for human membership) or `chat.memberships.app` (for app membership) scope. To specify the member to add, set the `membership.member.name` in the `CreateMembershipRequest`: - To add the calling app to the space, use `users/app`. - To add a human user, use `users/{user}`, where `{user}` is either the `{person_id}` for the [person](https://developers.google.com/people/api/rest/v1/people) from the People API, or the `id` for the [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) in the Directory API. For example, if the People API `Person` `resourceName` is `people/123456789`, you can add the user to the space by setting the `membership.member.name` to `users/123456789`.", + "description": "Creates a human membership or app membership for the calling app. Creating memberships for other apps isn't supported. For an example, see [ Create a membership](https://developers.google.com/chat/api/guides/v1/members/create). When creating a membership, if the specified member has their auto-accept policy turned off, then they're invited, and must accept the space invitation before joining. Otherwise, creating a membership adds the member directly to the specified space. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.memberships` (for human membership) or `chat.memberships.app` (for app membership) scope. To specify the member to add, set the `membership.member.name` in the `CreateMembershipRequest`: - To add the calling app to a space or a direct message between two human users, use `users/app`. Unable to add other apps to the space. - To add a human user, use `users/{user}`, where `{user}` is either the `{person_id}` for the [person](https://developers.google.com/people/api/rest/v1/people) from the People API, or the `id` for the [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) in the Directory API. For example, if the People API `Person` `resourceName` is `people/123456789`, you can add the user to the space by setting the `membership.member.name` to `users/123456789`.", "flatPath": "v1/spaces/{spacesId}/members", "httpMethod": "POST", "id": "chat.spaces.members.create", @@ -445,7 +445,7 @@ ] }, "delete": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview): Deletes a membership. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.memberships` or `chat.memberships.app` authorization scope.", + "description": "Deletes a membership. For an example, see [Delete a membership](https://developers.google.com/chat/api/guides/v1/members/delete). Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.memberships` or `chat.memberships.app` authorization scope.", "flatPath": "v1/spaces/{spacesId}/members/{membersId}", "httpMethod": "DELETE", "id": "chat.spaces.members.delete", @@ -471,7 +471,7 @@ ] }, "get": { - "description": "Returns a membership. Requires [authentication](https://developers.google.com/chat/api/guides/auth/). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.memberships` or `chat.memberships.readonly` authorization scope.", + "description": "Returns details about a membership. For an example, see [Get a membership](https://developers.google.com/chat/api/guides/v1/members/get). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.memberships` or `chat.memberships.readonly` authorization scope.", "flatPath": "v1/spaces/{spacesId}/members/{membersId}", "httpMethod": "GET", "id": "chat.spaces.members.get", @@ -498,7 +498,7 @@ ] }, "list": { - "description": "Lists memberships in a space. Requires [authentication](https://developers.google.com/chat/api/guides/auth/). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.memberships` or `chat.memberships.readonly` authorization scope.", + "description": "Lists memberships in a space. For an example, see [List memberships](https://developers.google.com/chat/api/guides/v1/members/list). Listing memberships with [app authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) lists memberships in spaces that the Chat app has access to, but excludes Chat app memberships, including its own. Listing memberships with [User authentication](https://developers.google.com/chat/api/guides/auth/users) lists memberships in spaces that the authenticated user has access to. Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.memberships` or `chat.memberships.readonly` authorization scope.", "flatPath": "v1/spaces/{spacesId}/members", "httpMethod": "GET", "id": "chat.spaces.members.list", @@ -550,7 +550,7 @@ "messages": { "methods": { "create": { - "description": "Creates a message. For example usage, see [Create a message](https://developers.google.com/chat/api/guides/crudl/messages#create_a_message). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` or `chat.messages.create` authorization scope. Because Chat provides authentication for [webhooks](https://developers.google.com/chat/how-tos/webhooks) as part of the URL that's generated when a webhook is registered, webhooks can create messages without a service account or user authentication.", + "description": "Creates a message. For an example, see [Create a message](https://developers.google.com/chat/api/guides/crudl/messages#create_a_message). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Creating a text message supports both [user authentication](https://developers.google.com/chat/api/guides/auth/users) and [app authentication] (https://developers.google.com/chat/api/guides/auth/service-accounts). [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` or `chat.messages.create` authorization scope. Creating a card message requires [app authentication] (https://developers.google.com/chat/api/guides/auth/service-accounts) Because Chat provides authentication for [webhooks](https://developers.google.com/chat/how-tos/webhooks) as part of the URL that's generated when a webhook is registered, webhooks can create messages without a service account or user authentication.", "flatPath": "v1/spaces/{spacesId}/messages", "httpMethod": "POST", "id": "chat.spaces.messages.create", @@ -559,7 +559,7 @@ ], "parameters": { "messageId": { - "description": "Optional. A custom name for a Chat message assigned at creation. Must start with `client-` and contain only lowercase letters, numbers, and hyphens up to 63 characters in length. Specify this field to get, update, or delete the message with the specified value. For example usage, see [Name a created message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).", + "description": "Optional. A custom name for a Chat message assigned at creation. Must start with `client-` and contain only lowercase letters, numbers, and hyphens up to 63 characters in length. Specify this field to get, update, or delete the message with the specified value. Assigning a custom name lets a a Chat app recall the message without saving the message `name` from the [response body](/chat/api/reference/rest/v1/spaces.messages/get#response-body) returned when creating the message. Assigning a custom name doesn't replace the generated `name` field, the message's resource name. Instead, it sets the custom name as the `clientAssignedMessageId` field, which you can reference while processing later operations, like updating or deleting the message. For example usage, see [Name a created message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).", "location": "query", "type": "string" }, @@ -611,7 +611,7 @@ ] }, "delete": { - "description": "Deletes a message. For example usage, see [Delete a message](https://developers.google.com/chat/api/guides/crudl/messages#delete_a_message). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` authorization scope.", + "description": "Deletes a message. For an example, see [Delete a message](https://developers.google.com/chat/api/guides/v1/messages/delete). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` authorization scope.", "flatPath": "v1/spaces/{spacesId}/messages/{messagesId}", "httpMethod": "DELETE", "id": "chat.spaces.messages.delete", @@ -642,7 +642,7 @@ ] }, "get": { - "description": "Returns a message. For example usage, see [Read a message](https://developers.google.com/chat/api/guides/crudl/messages#read_a_message). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [Service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` or `chat.messages.readonly` authorization scope. Note: Might return a message from a blocked member or space.", + "description": "Returns details about a message. For an example, see [Read a message](https://developers.google.com/chat/api/guides/v1/messages/get). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` or `chat.messages.readonly` authorization scope. Note: Might return a message from a blocked member or space.", "flatPath": "v1/spaces/{spacesId}/messages/{messagesId}", "httpMethod": "GET", "id": "chat.spaces.messages.get", @@ -669,7 +669,7 @@ ] }, "list": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview): Lists messages in a space that the caller is a member of, including messages from blocked members and spaces. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.messages` or `chat.messages.readonly` authorization scope. This method is only supported in spaces that don't allow users from outside the Workspace organization to join.", + "description": "Lists messages in a space that the caller is a member of, including messages from blocked members and spaces. For an example, see [List messages](/chat/api/guides/v1/messages/list). Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.messages` or `chat.messages.readonly` authorization scope. This method is only supported in spaces that don't allow users from outside the Workspace organization to join.", "flatPath": "v1/spaces/{spacesId}/messages", "httpMethod": "GET", "id": "chat.spaces.messages.list", @@ -721,7 +721,7 @@ ] }, "patch": { - "description": "Updates a message. There's a difference between `patch` and `update` methods. The `patch` method uses a `patch` request while the `update` method uses a `put` request. We recommend using the `patch` method. For example usage, see [Update a message](https://developers.google.com/chat/api/guides/crudl/messages#update_a_message). Requires [authentication](https://developers.google.com/chat/api/guides/auth/). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` authorization scope.", + "description": "Updates a message. There's a difference between the `patch` and `update` methods. The `patch` method uses a `patch` request while the `update` method uses a `put` request. We recommend using the `patch` method. For an example, see [Update a message](https://developers.google.com/chat/api/guides/v1/messages/update). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` authorization scope.", "flatPath": "v1/spaces/{spacesId}/messages/{messagesId}", "httpMethod": "PATCH", "id": "chat.spaces.messages.patch", @@ -742,7 +742,7 @@ "type": "string" }, "updateMask": { - "description": "Required. The field paths to update. Separate multiple values with commas. Currently supported field paths: - `text` - `cards` (Requires [service account authentication](/chat/api/guides/auth/service-accounts).) - `cards_v2` ", + "description": "Required. The field paths to update. Separate multiple values with commas. Currently supported field paths: - `text` - `cards` (Requires [service account authentication](/chat/api/guides/auth/service-accounts).) - `cards_v2` (Requires [service account authentication](/chat/api/guides/auth/service-accounts).) ", "format": "google-fieldmask", "location": "query", "type": "string" @@ -761,7 +761,7 @@ ] }, "update": { - "description": "Updates a message. There's a difference between `patch` and `update` methods. The `patch` method uses a `patch` request while the `update` method uses a `put` request. We recommend using the `patch` method. For example usage, see [Update a message](https://developers.google.com/chat/api/guides/crudl/messages#update_a_message). Requires [authentication](https://developers.google.com/chat/api/guides/auth/). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` authorization scope.", + "description": "Updates a message. There's a difference between the `patch` and `update` methods. The `patch` method uses a `patch` request while the `update` method uses a `put` request. We recommend using the `patch` method. For an example, see [Update a message](https://developers.google.com/chat/api/guides/v1/messages/update). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` authorization scope.", "flatPath": "v1/spaces/{spacesId}/messages/{messagesId}", "httpMethod": "PUT", "id": "chat.spaces.messages.update", @@ -782,7 +782,7 @@ "type": "string" }, "updateMask": { - "description": "Required. The field paths to update. Separate multiple values with commas. Currently supported field paths: - `text` - `cards` (Requires [service account authentication](/chat/api/guides/auth/service-accounts).) - `cards_v2` ", + "description": "Required. The field paths to update. Separate multiple values with commas. Currently supported field paths: - `text` - `cards` (Requires [service account authentication](/chat/api/guides/auth/service-accounts).) - `cards_v2` (Requires [service account authentication](/chat/api/guides/auth/service-accounts).) ", "format": "google-fieldmask", "location": "query", "type": "string" @@ -805,7 +805,7 @@ "attachments": { "methods": { "get": { - "description": "Gets the metadata of a message attachment. The attachment data is fetched using the [media API](https://developers.google.com/chat/api/reference/rest/v1/media/download). Requires [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts).", + "description": "Gets the metadata of a message attachment. The attachment data is fetched using the [media API](https://developers.google.com/chat/api/reference/rest/v1/media/download). For an example, see [Get a message attachment](https://developers.google.com/chat/api/guides/v1/media-and-attachments/get). Requires [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts).", "flatPath": "v1/spaces/{spacesId}/messages/{messagesId}/attachments/{attachmentsId}", "httpMethod": "GET", "id": "chat.spaces.messages.attachments.get", @@ -834,7 +834,7 @@ "reactions": { "methods": { "create": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview): Creates a reaction and adds it to a message. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.messages`, `chat.messages.reactions`, or `chat.messages.reactions.create` scope. Only unicode emoji are supported.", + "description": "Creates a reaction and adds it to a message. For an example, see [Create a reaction](https://developers.google.com/chat/api/guides/v1/reactions/create). Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.messages`, `chat.messages.reactions`, or `chat.messages.reactions.create` scope. Only unicode emoji are supported.", "flatPath": "v1/spaces/{spacesId}/messages/{messagesId}/reactions", "httpMethod": "POST", "id": "chat.spaces.messages.reactions.create", @@ -864,7 +864,7 @@ ] }, "delete": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview): Deletes a reaction to a message. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.messages` or `chat.messages.reactions` scope.", + "description": "Deletes a reaction to a message. For an example, see [Delete a reaction](https://developers.google.com/chat/api/guides/v1/reactions/delete). Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.messages` or `chat.messages.reactions` scope.", "flatPath": "v1/spaces/{spacesId}/messages/{messagesId}/reactions/{reactionsId}", "httpMethod": "DELETE", "id": "chat.spaces.messages.reactions.delete", @@ -890,7 +890,7 @@ ] }, "list": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview): Lists reactions to a message. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and `chat.messages`, `chat.messages.readonly`, `chat.messages.reactions`, or `chat.messages.reactions.readonly` scope.", + "description": "Lists reactions to a message. For an example, see [List reactions](https://developers.google.com/chat/api/guides/v1/reactions/list). Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and `chat.messages`, `chat.messages.readonly`, `chat.messages.reactions`, or `chat.messages.reactions.readonly` scope.", "flatPath": "v1/spaces/{spacesId}/messages/{messagesId}/reactions", "httpMethod": "GET", "id": "chat.spaces.messages.reactions.list", @@ -940,7 +940,7 @@ } } }, - "revision": "20230521", + "revision": "20230525", "rootUrl": "https://chat.googleapis.com/", "schemas": { "ActionParameter": { @@ -1140,7 +1140,7 @@ "id": "AttachmentDataRef", "properties": { "attachmentUploadToken": { - "description": "Opaque token containing a reference to an uploaded attachment. Treated by clients as an opaque string and used to create or update Chat messages with attachments. [Developer Preview](https://developers.google.com/workspace/preview).", + "description": "Opaque token containing a reference to an uploaded attachment. Treated by clients as an opaque string and used to create or update Chat messages with attachments.", "type": "string" }, "resourceName": { @@ -1382,7 +1382,7 @@ "type": "object" }, "CustomEmoji": { - "description": "Represents a custom emoji. [Developer Preview](https://developers.google.com/workspace/preview).", + "description": "Represents a custom emoji.", "id": "CustomEmoji", "properties": { "uid": { @@ -1425,7 +1425,7 @@ "type": "object" }, "DeletionMetadata": { - "description": "Information about a deleted message. A message is deleted when `delete_time` is set. [Developer Preview](https://developers.google.com/workspace/preview).", + "description": "Information about a deleted message. A message is deleted when `delete_time` is set.", "id": "DeletionMetadata", "properties": { "deletionType": { @@ -1573,7 +1573,7 @@ "type": "object" }, "Emoji": { - "description": "An emoji that is used as a reaction to a message. [Developer Preview](https://developers.google.com/workspace/preview).", + "description": "An emoji that is used as a reaction to a message.", "id": "Emoji", "properties": { "customEmoji": { @@ -1589,7 +1589,7 @@ "type": "object" }, "EmojiReactionSummary": { - "description": "The number of people who reacted to a message with a specific emoji. [Developer Preview](https://developers.google.com/workspace/preview).", + "description": "The number of people who reacted to a message with a specific emoji.", "id": "EmojiReactionSummary", "properties": { "emoji": { @@ -2009,7 +2009,7 @@ "id": "GoogleAppsCardV1DecoratedText", "properties": { "bottomLabel": { - "description": "The text that appears below `text`. Always truncates.", + "description": "The text that appears below `text`. Always wraps.", "type": "string" }, "button": { @@ -3043,7 +3043,7 @@ "type": "array" }, "clientAssignedMessageId": { - "description": "A custom name for a Chat message assigned at creation. Must start with `client-` and contain only lowercase letters, numbers, and hyphens up to 63 characters in length. Specify this field to get, update, or delete the message with the specified value. For example usage, see [Name a created message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).", + "description": "A custom name for a Chat message assigned at creation. Must start with `client-` and contain only lowercase letters, numbers, and hyphens up to 63 characters in length. Specify this field to get, update, or delete the message with the specified value. Assigning a custom name lets a Chat app recall the message without saving the message `name` from the [response body](/chat/api/reference/rest/v1/spaces.messages/get#response-body) returned when creating the message. Assigning a custom name doesn't replace the generated `name` field, the message's resource name. Instead, it sets the custom name as the `clientAssignedMessageId` field, which you can reference while processing later operations, like updating or deleting the message. For example usage, see [Name a created message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).", "type": "string" }, "createTime": { @@ -3053,18 +3053,18 @@ "type": "string" }, "deleteTime": { - "description": "Output only. The time at which the message was deleted in Google Chat server. If the message is never deleted, this field is empty. [Developer Preview](https://developers.google.com/workspace/preview).", + "description": "Output only. The time at which the message was deleted in Google Chat. If the message is never deleted, this field is empty.", "format": "google-datetime", "readOnly": true, "type": "string" }, "deletionMetadata": { "$ref": "DeletionMetadata", - "description": "Output only. Information about a deleted message. A message is deleted when `delete_time` is set. [Developer Preview](https://developers.google.com/workspace/preview).", + "description": "Output only. Information about a deleted message. A message is deleted when `delete_time` is set.", "readOnly": true }, "emojiReactionSummaries": { - "description": "Output only. The list of emoji reaction summaries on the message. [Developer Preview](https://developers.google.com/workspace/preview).", + "description": "Output only. The list of emoji reaction summaries on the message.", "items": { "$ref": "EmojiReactionSummary" }, @@ -3147,7 +3147,7 @@ "type": "object" }, "Reaction": { - "description": "A reaction to a message. [Developer Preview](https://developers.google.com/workspace/preview).", + "description": "A reaction to a message.", "id": "Reaction", "properties": { "emoji": { @@ -3185,7 +3185,6 @@ "type": "object" }, "SetUpSpaceRequest": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview).", "id": "SetUpSpaceRequest", "properties": { "memberships": { @@ -3282,7 +3281,7 @@ "description": "Details about the space including description and rules." }, "spaceHistoryState": { - "description": "The message history state for messages and threads in this space. [Developer Preview](https://developers.google.com/workspace/preview).", + "description": "The message history state for messages and threads in this space.", "enum": [ "HISTORY_STATE_UNSPECIFIED", "HISTORY_OFF", @@ -3313,7 +3312,7 @@ "type": "string" }, "spaceType": { - "description": "The type of space. Required when creating or updating a space. Output only for other usage. [Developer Preview](https://developers.google.com/workspace/preview).", + "description": "The type of space. Required when creating a space or updating the space type of a space. Output only for other usage.", "enum": [ "SPACE_TYPE_UNSPECIFIED", "SPACE", @@ -3334,7 +3333,7 @@ "type": "boolean" }, "type": { - "description": "Output only. Deprecated: Use `singleUserBotDm` or `spaceType` (developer preview) instead. The type of a space.", + "description": "Output only. Deprecated: Use `space_type` instead. The type of a space.", "enum": [ "TYPE_UNSPECIFIED", "ROOM", @@ -3481,7 +3480,6 @@ "type": "object" }, "UploadAttachmentRequest": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview).", "id": "UploadAttachmentRequest", "properties": { "filename": { diff --git a/chat/v1/chat-gen.go b/chat/v1/chat-gen.go index 7c8d9730d69..717045226f8 100644 --- a/chat/v1/chat-gen.go +++ b/chat/v1/chat-gen.go @@ -600,8 +600,7 @@ func (s *Attachment) MarshalJSON() ([]byte, error) { type AttachmentDataRef struct { // AttachmentUploadToken: Opaque token containing a reference to an // uploaded attachment. Treated by clients as an opaque string and used - // to create or update Chat messages with attachments. Developer Preview - // (https://developers.google.com/workspace/preview). + // to create or update Chat messages with attachments. AttachmentUploadToken string `json:"attachmentUploadToken,omitempty"` // ResourceName: The resource name of the attachment data. This field is @@ -1063,8 +1062,7 @@ func (s *CommonEventObject) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// CustomEmoji: Represents a custom emoji. Developer Preview -// (https://developers.google.com/workspace/preview). +// CustomEmoji: Represents a custom emoji. type CustomEmoji struct { // Uid: Unique key for the custom emoji resource. Uid string `json:"uid,omitempty"` @@ -1155,8 +1153,7 @@ func (s *DateTimeInput) MarshalJSON() ([]byte, error) { } // DeletionMetadata: Information about a deleted message. A message is -// deleted when `delete_time` is set. Developer Preview -// (https://developers.google.com/workspace/preview). +// deleted when `delete_time` is set. type DeletionMetadata struct { // DeletionType: Indicates who deleted the message. // @@ -1395,8 +1392,7 @@ func (s *DriveDataRef) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Emoji: An emoji that is used as a reaction to a message. Developer -// Preview (https://developers.google.com/workspace/preview). +// Emoji: An emoji that is used as a reaction to a message. type Emoji struct { // CustomEmoji: Output only. A custom emoji. CustomEmoji *CustomEmoji `json:"customEmoji,omitempty"` @@ -1428,8 +1424,7 @@ func (s *Emoji) MarshalJSON() ([]byte, error) { } // EmojiReactionSummary: The number of people who reacted to a message -// with a specific emoji. Developer Preview -// (https://developers.google.com/workspace/preview). +// with a specific emoji. type EmojiReactionSummary struct { // Emoji: Emoji associated with the reactions. Emoji *Emoji `json:"emoji,omitempty"` @@ -2191,7 +2186,7 @@ func (s *GoogleAppsCardV1DateTimePicker) MarshalJSON() ([]byte, error) { // optional decorations such as a label above or below the text, an icon // in front of the text, a selection widget, or a button after the text. type GoogleAppsCardV1DecoratedText struct { - // BottomLabel: The text that appears below `text`. Always truncates. + // BottomLabel: The text that appears below `text`. Always wraps. BottomLabel string `json:"bottomLabel,omitempty"` // Button: A button that a user can click to trigger an action. @@ -3887,7 +3882,15 @@ type Message struct { // creation. Must start with `client-` and contain only lowercase // letters, numbers, and hyphens up to 63 characters in length. Specify // this field to get, update, or delete the message with the specified - // value. For example usage, see Name a created message + // value. Assigning a custom name lets a Chat app recall the message + // without saving the message `name` from the response body + // (/chat/api/reference/rest/v1/spaces.messages/get#response-body) + // returned when creating the message. Assigning a custom name doesn't + // replace the generated `name` field, the message's resource name. + // Instead, it sets the custom name as the `clientAssignedMessageId` + // field, which you can reference while processing later operations, + // like updating or deleting the message. For example usage, see Name a + // created message // (https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message). ClientAssignedMessageId string `json:"clientAssignedMessageId,omitempty"` @@ -3896,19 +3899,15 @@ type Message struct { CreateTime string `json:"createTime,omitempty"` // DeleteTime: Output only. The time at which the message was deleted in - // Google Chat server. If the message is never deleted, this field is - // empty. Developer Preview - // (https://developers.google.com/workspace/preview). + // Google Chat. If the message is never deleted, this field is empty. DeleteTime string `json:"deleteTime,omitempty"` // DeletionMetadata: Output only. Information about a deleted message. A - // message is deleted when `delete_time` is set. Developer Preview - // (https://developers.google.com/workspace/preview). + // message is deleted when `delete_time` is set. DeletionMetadata *DeletionMetadata `json:"deletionMetadata,omitempty"` // EmojiReactionSummaries: Output only. The list of emoji reaction - // summaries on the message. Developer Preview - // (https://developers.google.com/workspace/preview). + // summaries on the message. EmojiReactionSummaries []*EmojiReactionSummary `json:"emojiReactionSummaries,omitempty"` // FallbackText: A plain-text description of the message's cards, used @@ -4053,8 +4052,7 @@ func (s *OpenLink) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Reaction: A reaction to a message. Developer Preview -// (https://developers.google.com/workspace/preview). +// Reaction: A reaction to a message. type Reaction struct { // Emoji: The emoji used in the reaction. Emoji *Emoji `json:"emoji,omitempty"` @@ -4132,8 +4130,6 @@ func (s *Section) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// SetUpSpaceRequest: Developer Preview -// (https://developers.google.com/workspace/preview). type SetUpSpaceRequest struct { // Memberships: Optional. The initial set of in-domain users invited to // join the space. The calling user is automatically added to the space, @@ -4298,8 +4294,7 @@ type Space struct { SpaceDetails *SpaceDetails `json:"spaceDetails,omitempty"` // SpaceHistoryState: The message history state for messages and threads - // in this space. Developer Preview - // (https://developers.google.com/workspace/preview). + // in this space. // // Possible values: // "HISTORY_STATE_UNSPECIFIED" - Default value. Do not use. @@ -4324,9 +4319,8 @@ type Space struct { // and group conversations between 3 or more people. SpaceThreadingState string `json:"spaceThreadingState,omitempty"` - // SpaceType: The type of space. Required when creating or updating a - // space. Output only for other usage. Developer Preview - // (https://developers.google.com/workspace/preview). + // SpaceType: The type of space. Required when creating a space or + // updating the space type of a space. Output only for other usage. // // Possible values: // "SPACE_TYPE_UNSPECIFIED" - Reserved. @@ -4342,8 +4336,8 @@ type Space struct { // Whether messages are threaded in this space. Threaded bool `json:"threaded,omitempty"` - // Type: Output only. Deprecated: Use `singleUserBotDm` or `spaceType` - // (developer preview) instead. The type of a space. + // Type: Output only. Deprecated: Use `space_type` instead. The type of + // a space. // // Possible values: // "TYPE_UNSPECIFIED" @@ -4659,8 +4653,6 @@ func (s *TimeZone) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// UploadAttachmentRequest: Developer Preview -// (https://developers.google.com/workspace/preview). type UploadAttachmentRequest struct { // Filename: Required. The filename of the attachment, including the // file extension. @@ -5029,12 +5021,14 @@ type MediaUploadCall struct { header_ http.Header } -// Upload: Developer Preview -// (https://developers.google.com/workspace/preview): Uploads an -// attachment. Requires user authentication -// (https://developers.google.com/chat/api/guides/auth/users). You can -// upload attachments up to 200 MB. Certain file types aren't supported. -// For details, see File types blocked by Google Chat +// Upload: Uploads an attachment. For an example, see Upload media as a +// file attachment +// (https://developers.google.com/chat/api/guides/v1/media-and-attachments/upload). +// Requires user authentication +// (https://developers.google.com/chat/api/guides/auth/users) and the +// `chat.messages` or `chat.messages.create` authorization scope. You +// can upload attachments up to 200 MB. Certain file types aren't +// supported. For details, see File types blocked by Google Chat // (https://support.google.com/chat/answer/7651457?&co=GENIE.Platform%3DDesktop#File%20types%20blocked%20in%20Google%20Chat). // // - parent: Resource name of the Chat space in which the attachment is @@ -5204,7 +5198,7 @@ func (c *MediaUploadCall) Do(opts ...googleapi.CallOption) (*UploadAttachmentRes } return ret, nil // { - // "description": "[Developer Preview](https://developers.google.com/workspace/preview): Uploads an attachment. Requires user [authentication](https://developers.google.com/chat/api/guides/auth/users). You can upload attachments up to 200 MB. Certain file types aren't supported. For details, see [File types blocked by Google Chat](https://support.google.com/chat/answer/7651457?\u0026co=GENIE.Platform%3DDesktop#File%20types%20blocked%20in%20Google%20Chat).", + // "description": "Uploads an attachment. For an example, see [Upload media as a file attachment](https://developers.google.com/chat/api/guides/v1/media-and-attachments/upload). Requires user [authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.messages` or `chat.messages.create` authorization scope. You can upload attachments up to 200 MB. Certain file types aren't supported. For details, see [File types blocked by Google Chat](https://support.google.com/chat/answer/7651457?\u0026co=GENIE.Platform%3DDesktop#File%20types%20blocked%20in%20Google%20Chat).", // "flatPath": "v1/spaces/{spacesId}/attachments:upload", // "httpMethod": "POST", // "id": "chat.media.upload", @@ -5262,10 +5256,10 @@ type SpacesCreateCall struct { header_ http.Header } -// Create: Developer Preview -// (https://developers.google.com/workspace/preview): Creates a named -// space. Spaces grouped by topics or that have guest access aren't -// supported. Requires user authentication +// Create: Creates a named space. Spaces grouped by topics or that have +// guest access aren't supported. For an example, see Create a space +// (https://developers.google.com/chat/api/guides/v1/spaces/create). +// Requires user authentication // (https://developers.google.com/chat/api/guides/auth/users) and the // `chat.spaces.create` or `chat.spaces` scope. func (r *SpacesService) Create(space *Space) *SpacesCreateCall { @@ -5372,7 +5366,7 @@ func (c *SpacesCreateCall) Do(opts ...googleapi.CallOption) (*Space, error) { } return ret, nil // { - // "description": "[Developer Preview](https://developers.google.com/workspace/preview): Creates a named space. Spaces grouped by topics or that have guest access aren't supported. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.spaces.create` or `chat.spaces` scope.", + // "description": "Creates a named space. Spaces grouped by topics or that have guest access aren't supported. For an example, see [Create a space](https://developers.google.com/chat/api/guides/v1/spaces/create). Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.spaces.create` or `chat.spaces` scope.", // "flatPath": "v1/spaces", // "httpMethod": "POST", // "id": "chat.spaces.create", @@ -5409,12 +5403,12 @@ type SpacesDeleteCall struct { header_ http.Header } -// Delete: Developer Preview -// (https://developers.google.com/workspace/preview): Deletes a named -// space. Always performs a cascading delete, which means that the -// space's child resources—like messages posted in the space and -// memberships in the space—are also deleted. Requires user -// authentication +// Delete: Deletes a named space. Always performs a cascading delete, +// which means that the space's child resources—like messages posted +// in the space and memberships in the space—are also deleted. For an +// example, see Delete a space +// (https://developers.google.com/chat/api/guides/v1/spaces/delete). +// Requires user authentication // (https://developers.google.com/chat/api/guides/auth/users) from a // user who has permission to delete the space, and the `chat.delete` // scope. @@ -5513,7 +5507,7 @@ func (c *SpacesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { } return ret, nil // { - // "description": "[Developer Preview](https://developers.google.com/workspace/preview): Deletes a named space. Always performs a cascading delete, which means that the space's child resources—like messages posted in the space and memberships in the space—are also deleted. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) from a user who has permission to delete the space, and the `chat.delete` scope.", + // "description": "Deletes a named space. Always performs a cascading delete, which means that the space's child resources—like messages posted in the space and memberships in the space—are also deleted. For an example, see [Delete a space](https://developers.google.com/chat/api/guides/v1/spaces/delete). Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) from a user who has permission to delete the space, and the `chat.delete` scope.", // "flatPath": "v1/spaces/{spacesId}", // "httpMethod": "DELETE", // "id": "chat.spaces.delete", @@ -5550,17 +5544,17 @@ type SpacesFindDirectMessageCall struct { header_ http.Header } -// FindDirectMessage: Developer Preview -// (https://developers.google.com/workspace/preview): Returns the -// existing direct message with the specified user. With user +// FindDirectMessage: Returns the existing direct message with the +// specified user. If no direct message space is found, returns a `404 +// NOT_FOUND` error. For an example, see Find a direct message +// (/chat/api/guides/v1/spaces/find-direct-message). With user // authentication // (https://developers.google.com/chat/api/guides/auth/users), returns // the direct message space between the specified user and the // authenticated user. With service account authentication // (https://developers.google.com/chat/api/guides/auth/service-accounts), // returns the direct message space between the specified user and the -// calling Chat app. If no direct message space is found, returns a `404 -// NOT_FOUND` error. Requires user authentication +// calling Chat app. Requires user authentication // (https://developers.google.com/chat/api/guides/auth/users) or service // account authentication // (https://developers.google.com/chat/api/guides/auth/service-accounts). @@ -5679,7 +5673,7 @@ func (c *SpacesFindDirectMessageCall) Do(opts ...googleapi.CallOption) (*Space, } return ret, nil // { - // "description": "[Developer Preview](https://developers.google.com/workspace/preview): Returns the existing direct message with the specified user. With [user authentication](https://developers.google.com/chat/api/guides/auth/users), returns the direct message space between the specified user and the authenticated user. With [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts), returns the direct message space between the specified user and the calling Chat app. If no direct message space is found, returns a `404 NOT_FOUND` error. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) or [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts).", + // "description": "Returns the existing direct message with the specified user. If no direct message space is found, returns a `404 NOT_FOUND` error. For an example, see [Find a direct message](/chat/api/guides/v1/spaces/find-direct-message). With [user authentication](https://developers.google.com/chat/api/guides/auth/users), returns the direct message space between the specified user and the authenticated user. With [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts), returns the direct message space between the specified user and the calling Chat app. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) or [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts).", // "flatPath": "v1/spaces:findDirectMessage", // "httpMethod": "GET", // "id": "chat.spaces.findDirectMessage", @@ -5715,15 +5709,15 @@ type SpacesGetCall struct { header_ http.Header } -// Get: Returns a space. Requires authentication +// Get: Returns details about a space. For an example, see Get a space +// (https://developers.google.com/chat/api/guides/v1/spaces/get). +// Requires authentication // (https://developers.google.com/chat/api/guides/auth). Fully supports // service account authentication -// (https://developers.google.com/chat/api/guides/auth/service-accounts). -// Supports user authentication -// (https://developers.google.com/chat/api/guides/auth/users) as part of -// the Google Workspace Developer Preview Program -// (https://developers.google.com/workspace/preview), which grants early -// access to certain features. User authentication +// (https://developers.google.com/chat/api/guides/auth/service-accounts) +// and user authentication +// (https://developers.google.com/chat/api/guides/auth/users). User +// authentication // (https://developers.google.com/chat/api/guides/auth/users) requires // the `chat.spaces` or `chat.spaces.readonly` authorization scope. // @@ -5834,7 +5828,7 @@ func (c *SpacesGetCall) Do(opts ...googleapi.CallOption) (*Space, error) { } return ret, nil // { - // "description": "Returns a space. Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.spaces` or `chat.spaces.readonly` authorization scope.", + // "description": "Returns details about a space. For an example, see [Get a space](https://developers.google.com/chat/api/guides/v1/spaces/get). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.spaces` or `chat.spaces.readonly` authorization scope.", // "flatPath": "v1/spaces/{spacesId}", // "httpMethod": "GET", // "id": "chat.spaces.get", @@ -5873,15 +5867,15 @@ type SpacesListCall struct { header_ http.Header } -// List: Lists spaces the caller is a member of. Requires authentication +// List: Lists spaces the caller is a member of. Group chats and DMs +// aren't listed until the first message is sent. For an example, see +// List spaces +// (https://developers.google.com/chat/api/guides/v1/spaces/list). +// Requires authentication // (https://developers.google.com/chat/api/guides/auth). Fully supports // service account authentication -// (https://developers.google.com/chat/api/guides/auth/service-accounts). -// Supports user authentication -// (https://developers.google.com/chat/api/guides/auth/users) as part of -// the Google Workspace Developer Preview Program -// (https://developers.google.com/workspace/preview), which grants early -// access to certain features. User authentication +// (https://developers.google.com/chat/api/guides/auth/service-accounts) +// and user authentication // (https://developers.google.com/chat/api/guides/auth/users) requires // the `chat.spaces` or `chat.spaces.readonly` authorization scope. // Lists spaces visible to the caller or authenticated user. Group chats @@ -5906,8 +5900,7 @@ func (r *SpacesService) List() *SpacesListCall { // (https://developers.google.com/chat/api/guides/auth/service-accounts), // this field is ignored and the query always returns all spaces. But // the Chat API still validates the query syntax with service accounts, -// so invalid queries are still rejected. Developer Preview -// (https://developers.google.com/workspace/preview). +// so invalid queries are still rejected. func (c *SpacesListCall) Filter(filter string) *SpacesListCall { c.urlParams_.Set("filter", filter) return c @@ -6029,14 +6022,14 @@ func (c *SpacesListCall) Do(opts ...googleapi.CallOption) (*ListSpacesResponse, } return ret, nil // { - // "description": "Lists spaces the caller is a member of. Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.spaces` or `chat.spaces.readonly` authorization scope. Lists spaces visible to the caller or authenticated user. Group chats and DMs aren't listed until the first message is sent.", + // "description": "Lists spaces the caller is a member of. Group chats and DMs aren't listed until the first message is sent. For an example, see [List spaces](https://developers.google.com/chat/api/guides/v1/spaces/list). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.spaces` or `chat.spaces.readonly` authorization scope. Lists spaces visible to the caller or authenticated user. Group chats and DMs aren't listed until the first message is sent.", // "flatPath": "v1/spaces", // "httpMethod": "GET", // "id": "chat.spaces.list", // "parameterOrder": [], // "parameters": { // "filter": { - // "description": "Optional. A query filter. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users). You can filter spaces by the space type ([`space_type`](https://developers.google.com/chat/api/reference/rest/v1/spaces#spacetype)). To filter by space type, you must specify valid enum value, such as `SPACE` or `GROUP_CHAT` (the `space_type` can't be `SPACE_TYPE_UNSPECIFIED`). To query for multiple space types, use the `OR` operator. For example, the following queries are valid: ``` space_type = \"SPACE\" spaceType = \"GROUP_CHAT\" OR spaceType = \"DIRECT_MESSAGE\" ``` Invalid queries are rejected by the server with an `INVALID_ARGUMENT` error. With [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts), this field is ignored and the query always returns all spaces. But the Chat API still validates the query syntax with service accounts, so invalid queries are still rejected. [Developer Preview](https://developers.google.com/workspace/preview).", + // "description": "Optional. A query filter. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users). You can filter spaces by the space type ([`space_type`](https://developers.google.com/chat/api/reference/rest/v1/spaces#spacetype)). To filter by space type, you must specify valid enum value, such as `SPACE` or `GROUP_CHAT` (the `space_type` can't be `SPACE_TYPE_UNSPECIFIED`). To query for multiple space types, use the `OR` operator. For example, the following queries are valid: ``` space_type = \"SPACE\" spaceType = \"GROUP_CHAT\" OR spaceType = \"DIRECT_MESSAGE\" ``` Invalid queries are rejected by the server with an `INVALID_ARGUMENT` error. With [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts), this field is ignored and the query always returns all spaces. But the Chat API still validates the query syntax with service accounts, so invalid queries are still rejected.", // "location": "query", // "type": "string" // }, @@ -6097,8 +6090,8 @@ type SpacesPatchCall struct { header_ http.Header } -// Patch: Developer Preview -// (https://developers.google.com/workspace/preview): Updates a space. +// Patch: Updates a space. For an example, see Update a space +// (https://developers.google.com/chat/api/guides/v1/spaces/update). // Requires user authentication // (https://developers.google.com/chat/api/guides/auth/users) and the // `chat.spaces` scope. @@ -6227,7 +6220,7 @@ func (c *SpacesPatchCall) Do(opts ...googleapi.CallOption) (*Space, error) { } return ret, nil // { - // "description": "[Developer Preview](https://developers.google.com/workspace/preview): Updates a space. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.spaces` scope.", + // "description": "Updates a space. For an example, see [Update a space](https://developers.google.com/chat/api/guides/v1/spaces/update). Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.spaces` scope.", // "flatPath": "v1/spaces/{spacesId}", // "httpMethod": "PATCH", // "id": "chat.spaces.patch", @@ -6273,14 +6266,14 @@ type SpacesSetupCall struct { header_ http.Header } -// Setup: Developer Preview -// (https://developers.google.com/workspace/preview): Creates a space -// and adds specified users to it. The calling user is automatically -// added to the space, and shouldn't be specified as a membership in the -// request. To specify the human members to add, add memberships with -// the appropriate `member.name` in the `SetUpSpaceRequest`. To add a -// human user, use `users/{user}`, where `{user}` is either the -// `{person_id}` for the person +// Setup: Creates a space and adds specified users to it. The calling +// user is automatically added to the space, and shouldn't be specified +// as a membership in the request. For an example, see Set up a space +// (https://developers.google.com/chat/api/guides/v1/spaces/set-up). To +// specify the human members to add, add memberships with the +// appropriate `member.name` in the `SetUpSpaceRequest`. To add a human +// user, use `users/{user}`, where `{user}` is either the `{person_id}` +// for the person // (https://developers.google.com/people/api/rest/v1/people) from the // People API, or the `id` for the user // (https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) @@ -6293,13 +6286,14 @@ type SpacesSetupCall struct { // user and another human user, specify exactly one membership to // represent the human user. If one user blocks the other, the request // fails and the DM isn't created. To create a DM between the calling -// user and the calling app, set `Space.singleUserBotDm` to true and -// don't specify any memberships. You can only use this method to add -// app memberships to DMs. To add the calling app as a member of other -// space types, use create membership -// (https://developers.google.com/chat/api/reference/rest/v1/spaces.members/create) -// If a DM already exists between two users, even when one user blocks -// the other at the time a request is made, then the existing DM is +// user and the calling app, set `Space.singleUserBotDm` to `true` and +// don't specify any memberships. You can only use this method to set up +// a DM with the calling app. To add the calling app as a member of a +// space or an existing DM between two human users, see create a +// membership +// (https://developers.google.com/chat/api/guides/v1/members/create). If +// a DM already exists between two users, even when one user blocks the +// other at the time a request is made, then the existing DM is // returned. Spaces with threaded replies or guest access aren't // supported. Requires user authentication // (https://developers.google.com/chat/api/guides/auth/users) and the @@ -6398,7 +6392,7 @@ func (c *SpacesSetupCall) Do(opts ...googleapi.CallOption) (*Space, error) { } return ret, nil // { - // "description": "[Developer Preview](https://developers.google.com/workspace/preview): Creates a space and adds specified users to it. The calling user is automatically added to the space, and shouldn't be specified as a membership in the request. To specify the human members to add, add memberships with the appropriate `member.name` in the `SetUpSpaceRequest`. To add a human user, use `users/{user}`, where `{user}` is either the `{person_id}` for the [person](https://developers.google.com/people/api/rest/v1/people) from the People API, or the `id` for the [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) in the Admin SDK Directory API. For example, if the People API `Person` `resourceName` is `people/123456789`, you can add the user to the space by including a membership with `users/123456789` as the `member.name`. For a space or group chat, if the caller blocks or is blocked by some members, then those members aren't added to the created space. To create a direct message (DM) between the calling user and another human user, specify exactly one membership to represent the human user. If one user blocks the other, the request fails and the DM isn't created. To create a DM between the calling user and the calling app, set `Space.singleUserBotDm` to true and don't specify any memberships. You can only use this method to add app memberships to DMs. To add the calling app as a member of other space types, use [create membership](https://developers.google.com/chat/api/reference/rest/v1/spaces.members/create) If a DM already exists between two users, even when one user blocks the other at the time a request is made, then the existing DM is returned. Spaces with threaded replies or guest access aren't supported. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.spaces.create` or `chat.spaces` scope.", + // "description": "Creates a space and adds specified users to it. The calling user is automatically added to the space, and shouldn't be specified as a membership in the request. For an example, see [Set up a space](https://developers.google.com/chat/api/guides/v1/spaces/set-up). To specify the human members to add, add memberships with the appropriate `member.name` in the `SetUpSpaceRequest`. To add a human user, use `users/{user}`, where `{user}` is either the `{person_id}` for the [person](https://developers.google.com/people/api/rest/v1/people) from the People API, or the `id` for the [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) in the Admin SDK Directory API. For example, if the People API `Person` `resourceName` is `people/123456789`, you can add the user to the space by including a membership with `users/123456789` as the `member.name`. For a space or group chat, if the caller blocks or is blocked by some members, then those members aren't added to the created space. To create a direct message (DM) between the calling user and another human user, specify exactly one membership to represent the human user. If one user blocks the other, the request fails and the DM isn't created. To create a DM between the calling user and the calling app, set `Space.singleUserBotDm` to `true` and don't specify any memberships. You can only use this method to set up a DM with the calling app. To add the calling app as a member of a space or an existing DM between two human users, see [create a membership](https://developers.google.com/chat/api/guides/v1/members/create). If a DM already exists between two users, even when one user blocks the other at the time a request is made, then the existing DM is returned. Spaces with threaded replies or guest access aren't supported. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.spaces.create` or `chat.spaces` scope.", // "flatPath": "v1/spaces:setup", // "httpMethod": "POST", // "id": "chat.spaces.setup", @@ -6430,19 +6424,25 @@ type SpacesMembersCreateCall struct { header_ http.Header } -// Create: Developer Preview -// (https://developers.google.com/workspace/preview): Creates a human -// membership or app membership for the calling app. Creating -// memberships for other apps isn't supported. Requires user +// Create: Creates a human membership or app membership for the calling +// app. Creating memberships for other apps isn't supported. For an +// example, see Create a membership +// (https://developers.google.com/chat/api/guides/v1/members/create). +// When creating a membership, if the specified member has their +// auto-accept policy turned off, then they're invited, and must accept +// the space invitation before joining. Otherwise, creating a membership +// adds the member directly to the specified space. Requires user // authentication // (https://developers.google.com/chat/api/guides/auth/users) and the // `chat.memberships` (for human membership) or `chat.memberships.app` // (for app membership) scope. To specify the member to add, set the // `membership.member.name` in the `CreateMembershipRequest`: - To add -// the calling app to the space, use `users/app`. - To add a human user, -// use `users/{user}`, where `{user}` is either the `{person_id}` for -// the person (https://developers.google.com/people/api/rest/v1/people) -// from the People API, or the `id` for the user +// the calling app to a space or a direct message between two human +// users, use `users/app`. Unable to add other apps to the space. - To +// add a human user, use `users/{user}`, where `{user}` is either the +// `{person_id}` for the person +// (https://developers.google.com/people/api/rest/v1/people) from the +// People API, or the `id` for the user // (https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) // in the Directory API. For example, if the People API `Person` // `resourceName` is `people/123456789`, you can add the user to the @@ -6548,7 +6548,7 @@ func (c *SpacesMembersCreateCall) Do(opts ...googleapi.CallOption) (*Membership, } return ret, nil // { - // "description": "[Developer Preview](https://developers.google.com/workspace/preview): Creates a human membership or app membership for the calling app. Creating memberships for other apps isn't supported. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.memberships` (for human membership) or `chat.memberships.app` (for app membership) scope. To specify the member to add, set the `membership.member.name` in the `CreateMembershipRequest`: - To add the calling app to the space, use `users/app`. - To add a human user, use `users/{user}`, where `{user}` is either the `{person_id}` for the [person](https://developers.google.com/people/api/rest/v1/people) from the People API, or the `id` for the [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) in the Directory API. For example, if the People API `Person` `resourceName` is `people/123456789`, you can add the user to the space by setting the `membership.member.name` to `users/123456789`.", + // "description": "Creates a human membership or app membership for the calling app. Creating memberships for other apps isn't supported. For an example, see [ Create a membership](https://developers.google.com/chat/api/guides/v1/members/create). When creating a membership, if the specified member has their auto-accept policy turned off, then they're invited, and must accept the space invitation before joining. Otherwise, creating a membership adds the member directly to the specified space. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.memberships` (for human membership) or `chat.memberships.app` (for app membership) scope. To specify the member to add, set the `membership.member.name` in the `CreateMembershipRequest`: - To add the calling app to a space or a direct message between two human users, use `users/app`. Unable to add other apps to the space. - To add a human user, use `users/{user}`, where `{user}` is either the `{person_id}` for the [person](https://developers.google.com/people/api/rest/v1/people) from the People API, or the `id` for the [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) in the Directory API. For example, if the People API `Person` `resourceName` is `people/123456789`, you can add the user to the space by setting the `membership.member.name` to `users/123456789`.", // "flatPath": "v1/spaces/{spacesId}/members", // "httpMethod": "POST", // "id": "chat.spaces.members.create", @@ -6589,9 +6589,9 @@ type SpacesMembersDeleteCall struct { header_ http.Header } -// Delete: Developer Preview -// (https://developers.google.com/workspace/preview): Deletes a -// membership. Requires user authentication +// Delete: Deletes a membership. For an example, see Delete a membership +// (https://developers.google.com/chat/api/guides/v1/members/delete). +// Requires user authentication // (https://developers.google.com/chat/api/guides/auth/users) and the // `chat.memberships` or `chat.memberships.app` authorization scope. // @@ -6695,7 +6695,7 @@ func (c *SpacesMembersDeleteCall) Do(opts ...googleapi.CallOption) (*Membership, } return ret, nil // { - // "description": "[Developer Preview](https://developers.google.com/workspace/preview): Deletes a membership. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.memberships` or `chat.memberships.app` authorization scope.", + // "description": "Deletes a membership. For an example, see [Delete a membership](https://developers.google.com/chat/api/guides/v1/members/delete). Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.memberships` or `chat.memberships.app` authorization scope.", // "flatPath": "v1/spaces/{spacesId}/members/{membersId}", // "httpMethod": "DELETE", // "id": "chat.spaces.members.delete", @@ -6734,15 +6734,16 @@ type SpacesMembersGetCall struct { header_ http.Header } -// Get: Returns a membership. Requires authentication -// (https://developers.google.com/chat/api/guides/auth/). Fully supports +// Get: Returns details about a membership. For an example, see Get a +// membership +// (https://developers.google.com/chat/api/guides/v1/members/get). +// Requires authentication +// (https://developers.google.com/chat/api/guides/auth). Fully supports // service account authentication -// (https://developers.google.com/chat/api/guides/auth/service-accounts). -// Supports user authentication -// (https://developers.google.com/chat/api/guides/auth/users) as part of -// the Google Workspace Developer Preview Program -// (https://developers.google.com/workspace/preview), which grants early -// access to certain features. User authentication +// (https://developers.google.com/chat/api/guides/auth/service-accounts) +// and user authentication +// (https://developers.google.com/chat/api/guides/auth/users). User +// authentication // (https://developers.google.com/chat/api/guides/auth/users) requires // the `chat.memberships` or `chat.memberships.readonly` authorization // scope. @@ -6854,7 +6855,7 @@ func (c *SpacesMembersGetCall) Do(opts ...googleapi.CallOption) (*Membership, er } return ret, nil // { - // "description": "Returns a membership. Requires [authentication](https://developers.google.com/chat/api/guides/auth/). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.memberships` or `chat.memberships.readonly` authorization scope.", + // "description": "Returns details about a membership. For an example, see [Get a membership](https://developers.google.com/chat/api/guides/v1/members/get). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.memberships` or `chat.memberships.readonly` authorization scope.", // "flatPath": "v1/spaces/{spacesId}/members/{membersId}", // "httpMethod": "GET", // "id": "chat.spaces.members.get", @@ -6894,15 +6895,23 @@ type SpacesMembersListCall struct { header_ http.Header } -// List: Lists memberships in a space. Requires authentication -// (https://developers.google.com/chat/api/guides/auth/). Fully supports +// List: Lists memberships in a space. For an example, see List +// memberships +// (https://developers.google.com/chat/api/guides/v1/members/list). +// Listing memberships with app authentication +// (https://developers.google.com/chat/api/guides/auth/service-accounts) +// lists memberships in spaces that the Chat app has access to, but +// excludes Chat app memberships, including its own. Listing memberships +// with User authentication +// (https://developers.google.com/chat/api/guides/auth/users) lists +// memberships in spaces that the authenticated user has access to. +// Requires authentication +// (https://developers.google.com/chat/api/guides/auth). Fully supports // service account authentication -// (https://developers.google.com/chat/api/guides/auth/service-accounts). -// Supports user authentication -// (https://developers.google.com/chat/api/guides/auth/users) as part of -// the Google Workspace Developer Preview Program -// (https://developers.google.com/workspace/preview), which grants early -// access to certain features. User authentication +// (https://developers.google.com/chat/api/guides/auth/service-accounts) +// and user authentication +// (https://developers.google.com/chat/api/guides/auth/users). User +// authentication // (https://developers.google.com/chat/api/guides/auth/users) requires // the `chat.memberships` or `chat.memberships.readonly` authorization // scope. @@ -7066,7 +7075,7 @@ func (c *SpacesMembersListCall) Do(opts ...googleapi.CallOption) (*ListMembershi } return ret, nil // { - // "description": "Lists memberships in a space. Requires [authentication](https://developers.google.com/chat/api/guides/auth/). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.memberships` or `chat.memberships.readonly` authorization scope.", + // "description": "Lists memberships in a space. For an example, see [List memberships](https://developers.google.com/chat/api/guides/v1/members/list). Listing memberships with [app authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) lists memberships in spaces that the Chat app has access to, but excludes Chat app memberships, including its own. Listing memberships with [User authentication](https://developers.google.com/chat/api/guides/auth/users) lists memberships in spaces that the authenticated user has access to. Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.memberships` or `chat.memberships.readonly` authorization scope.", // "flatPath": "v1/spaces/{spacesId}/members", // "httpMethod": "GET", // "id": "chat.spaces.members.list", @@ -7148,19 +7157,19 @@ type SpacesMessagesCreateCall struct { header_ http.Header } -// Create: Creates a message. For example usage, see Create a message +// Create: Creates a message. For an example, see Create a message // (https://developers.google.com/chat/api/guides/crudl/messages#create_a_message). // Requires authentication -// (https://developers.google.com/chat/api/guides/auth). Fully supports -// service account authentication +// (https://developers.google.com/chat/api/guides/auth). Creating a text +// message supports both user authentication +// (https://developers.google.com/chat/api/guides/auth/users) and [app +// authentication] // (https://developers.google.com/chat/api/guides/auth/service-accounts). -// Supports user authentication -// (https://developers.google.com/chat/api/guides/auth/users) as part of -// the Google Workspace Developer Preview Program -// (https://developers.google.com/workspace/preview), which grants early -// access to certain features. User authentication +// User authentication // (https://developers.google.com/chat/api/guides/auth/users) requires // the `chat.messages` or `chat.messages.create` authorization scope. +// Creating a card message requires [app authentication] +// (https://developers.google.com/chat/api/guides/auth/service-accounts) // Because Chat provides authentication for webhooks // (https://developers.google.com/chat/how-tos/webhooks) as part of the // URL that's generated when a webhook is registered, webhooks can @@ -7179,7 +7188,15 @@ func (r *SpacesMessagesService) Create(parent string, message *Message) *SpacesM // a Chat message assigned at creation. Must start with `client-` and // contain only lowercase letters, numbers, and hyphens up to 63 // characters in length. Specify this field to get, update, or delete -// the message with the specified value. For example usage, see Name a +// the message with the specified value. Assigning a custom name lets a +// a Chat app recall the message without saving the message `name` from +// the response body +// (/chat/api/reference/rest/v1/spaces.messages/get#response-body) +// returned when creating the message. Assigning a custom name doesn't +// replace the generated `name` field, the message's resource name. +// Instead, it sets the custom name as the `clientAssignedMessageId` +// field, which you can reference while processing later operations, +// like updating or deleting the message. For example usage, see Name a // created message // (https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message). func (c *SpacesMessagesCreateCall) MessageId(messageId string) *SpacesMessagesCreateCall { @@ -7318,7 +7335,7 @@ func (c *SpacesMessagesCreateCall) Do(opts ...googleapi.CallOption) (*Message, e } return ret, nil // { - // "description": "Creates a message. For example usage, see [Create a message](https://developers.google.com/chat/api/guides/crudl/messages#create_a_message). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` or `chat.messages.create` authorization scope. Because Chat provides authentication for [webhooks](https://developers.google.com/chat/how-tos/webhooks) as part of the URL that's generated when a webhook is registered, webhooks can create messages without a service account or user authentication.", + // "description": "Creates a message. For an example, see [Create a message](https://developers.google.com/chat/api/guides/crudl/messages#create_a_message). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Creating a text message supports both [user authentication](https://developers.google.com/chat/api/guides/auth/users) and [app authentication] (https://developers.google.com/chat/api/guides/auth/service-accounts). [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` or `chat.messages.create` authorization scope. Creating a card message requires [app authentication] (https://developers.google.com/chat/api/guides/auth/service-accounts) Because Chat provides authentication for [webhooks](https://developers.google.com/chat/how-tos/webhooks) as part of the URL that's generated when a webhook is registered, webhooks can create messages without a service account or user authentication.", // "flatPath": "v1/spaces/{spacesId}/messages", // "httpMethod": "POST", // "id": "chat.spaces.messages.create", @@ -7327,7 +7344,7 @@ func (c *SpacesMessagesCreateCall) Do(opts ...googleapi.CallOption) (*Message, e // ], // "parameters": { // "messageId": { - // "description": "Optional. A custom name for a Chat message assigned at creation. Must start with `client-` and contain only lowercase letters, numbers, and hyphens up to 63 characters in length. Specify this field to get, update, or delete the message with the specified value. For example usage, see [Name a created message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).", + // "description": "Optional. A custom name for a Chat message assigned at creation. Must start with `client-` and contain only lowercase letters, numbers, and hyphens up to 63 characters in length. Specify this field to get, update, or delete the message with the specified value. Assigning a custom name lets a a Chat app recall the message without saving the message `name` from the [response body](/chat/api/reference/rest/v1/spaces.messages/get#response-body) returned when creating the message. Assigning a custom name doesn't replace the generated `name` field, the message's resource name. Instead, it sets the custom name as the `clientAssignedMessageId` field, which you can reference while processing later operations, like updating or deleting the message. For example usage, see [Name a created message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).", // "location": "query", // "type": "string" // }, @@ -7391,17 +7408,15 @@ type SpacesMessagesDeleteCall struct { header_ http.Header } -// Delete: Deletes a message. For example usage, see Delete a message -// (https://developers.google.com/chat/api/guides/crudl/messages#delete_a_message). +// Delete: Deletes a message. For an example, see Delete a message +// (https://developers.google.com/chat/api/guides/v1/messages/delete). // Requires authentication // (https://developers.google.com/chat/api/guides/auth). Fully supports // service account authentication -// (https://developers.google.com/chat/api/guides/auth/service-accounts). -// Supports user authentication -// (https://developers.google.com/chat/api/guides/auth/users) as part of -// the Google Workspace Developer Preview Program -// (https://developers.google.com/workspace/preview), which grants early -// access to certain features. User authentication +// (https://developers.google.com/chat/api/guides/auth/service-accounts) +// and user authentication +// (https://developers.google.com/chat/api/guides/auth/users). User +// authentication // (https://developers.google.com/chat/api/guides/auth/users) requires // the `chat.messages` authorization scope. // @@ -7512,7 +7527,7 @@ func (c *SpacesMessagesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, err } return ret, nil // { - // "description": "Deletes a message. For example usage, see [Delete a message](https://developers.google.com/chat/api/guides/crudl/messages#delete_a_message). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` authorization scope.", + // "description": "Deletes a message. For an example, see [Delete a message](https://developers.google.com/chat/api/guides/v1/messages/delete). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` authorization scope.", // "flatPath": "v1/spaces/{spacesId}/messages/{messagesId}", // "httpMethod": "DELETE", // "id": "chat.spaces.messages.delete", @@ -7556,17 +7571,16 @@ type SpacesMessagesGetCall struct { header_ http.Header } -// Get: Returns a message. For example usage, see Read a message -// (https://developers.google.com/chat/api/guides/crudl/messages#read_a_message). +// Get: Returns details about a message. For an example, see Read a +// message +// (https://developers.google.com/chat/api/guides/v1/messages/get). // Requires authentication // (https://developers.google.com/chat/api/guides/auth). Fully supports -// Service account authentication -// (https://developers.google.com/chat/api/guides/auth/service-accounts). -// Supports user authentication -// (https://developers.google.com/chat/api/guides/auth/users) as part of -// the Google Workspace Developer Preview Program -// (https://developers.google.com/workspace/preview), which grants early -// access to certain features. User authentication +// service account authentication +// (https://developers.google.com/chat/api/guides/auth/service-accounts) +// and user authentication +// (https://developers.google.com/chat/api/guides/auth/users). User +// authentication // (https://developers.google.com/chat/api/guides/auth/users) requires // the `chat.messages` or `chat.messages.readonly` authorization scope. // Note: Might return a message from a blocked member or space. @@ -7683,7 +7697,7 @@ func (c *SpacesMessagesGetCall) Do(opts ...googleapi.CallOption) (*Message, erro } return ret, nil // { - // "description": "Returns a message. For example usage, see [Read a message](https://developers.google.com/chat/api/guides/crudl/messages#read_a_message). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [Service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` or `chat.messages.readonly` authorization scope. Note: Might return a message from a blocked member or space.", + // "description": "Returns details about a message. For an example, see [Read a message](https://developers.google.com/chat/api/guides/v1/messages/get). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` or `chat.messages.readonly` authorization scope. Note: Might return a message from a blocked member or space.", // "flatPath": "v1/spaces/{spacesId}/messages/{messagesId}", // "httpMethod": "GET", // "id": "chat.spaces.messages.get", @@ -7723,10 +7737,10 @@ type SpacesMessagesListCall struct { header_ http.Header } -// List: Developer Preview -// (https://developers.google.com/workspace/preview): Lists messages in -// a space that the caller is a member of, including messages from -// blocked members and spaces. Requires user authentication +// List: Lists messages in a space that the caller is a member of, +// including messages from blocked members and spaces. For an example, +// see List messages (/chat/api/guides/v1/messages/list). Requires user +// authentication // (https://developers.google.com/chat/api/guides/auth/users) and the // `chat.messages` or `chat.messages.readonly` authorization scope. This // method is only supported in spaces that don't allow users from @@ -7906,7 +7920,7 @@ func (c *SpacesMessagesListCall) Do(opts ...googleapi.CallOption) (*ListMessages } return ret, nil // { - // "description": "[Developer Preview](https://developers.google.com/workspace/preview): Lists messages in a space that the caller is a member of, including messages from blocked members and spaces. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.messages` or `chat.messages.readonly` authorization scope. This method is only supported in spaces that don't allow users from outside the Workspace organization to join.", + // "description": "Lists messages in a space that the caller is a member of, including messages from blocked members and spaces. For an example, see [List messages](/chat/api/guides/v1/messages/list). Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.messages` or `chat.messages.readonly` authorization scope. This method is only supported in spaces that don't allow users from outside the Workspace organization to join.", // "flatPath": "v1/spaces/{spacesId}/messages", // "httpMethod": "GET", // "id": "chat.spaces.messages.list", @@ -7992,20 +8006,18 @@ type SpacesMessagesPatchCall struct { header_ http.Header } -// Patch: Updates a message. There's a difference between `patch` and -// `update` methods. The `patch` method uses a `patch` request while the -// `update` method uses a `put` request. We recommend using the `patch` -// method. For example usage, see Update a message -// (https://developers.google.com/chat/api/guides/crudl/messages#update_a_message). +// Patch: Updates a message. There's a difference between the `patch` +// and `update` methods. The `patch` method uses a `patch` request while +// the `update` method uses a `put` request. We recommend using the +// `patch` method. For an example, see Update a message +// (https://developers.google.com/chat/api/guides/v1/messages/update). // Requires authentication -// (https://developers.google.com/chat/api/guides/auth/). Fully supports +// (https://developers.google.com/chat/api/guides/auth). Fully supports // service account authentication -// (https://developers.google.com/chat/api/guides/auth/service-accounts). -// Supports user authentication -// (https://developers.google.com/chat/api/guides/auth/users) as part of -// the Google Workspace Developer Preview Program -// (https://developers.google.com/workspace/preview), which grants early -// access to certain features. User authentication +// (https://developers.google.com/chat/api/guides/auth/service-accounts) +// and user authentication +// (https://developers.google.com/chat/api/guides/auth/users). User +// authentication // (https://developers.google.com/chat/api/guides/auth/users) requires // the `chat.messages` authorization scope. // @@ -8033,7 +8045,8 @@ func (c *SpacesMessagesPatchCall) AllowMissing(allowMissing bool) *SpacesMessage // field paths to update. Separate multiple values with commas. // Currently supported field paths: - `text` - `cards` (Requires service // account authentication (/chat/api/guides/auth/service-accounts).) - -// `cards_v2` +// `cards_v2` (Requires service account authentication +// (/chat/api/guides/auth/service-accounts).) func (c *SpacesMessagesPatchCall) UpdateMask(updateMask string) *SpacesMessagesPatchCall { c.urlParams_.Set("updateMask", updateMask) return c @@ -8130,7 +8143,7 @@ func (c *SpacesMessagesPatchCall) Do(opts ...googleapi.CallOption) (*Message, er } return ret, nil // { - // "description": "Updates a message. There's a difference between `patch` and `update` methods. The `patch` method uses a `patch` request while the `update` method uses a `put` request. We recommend using the `patch` method. For example usage, see [Update a message](https://developers.google.com/chat/api/guides/crudl/messages#update_a_message). Requires [authentication](https://developers.google.com/chat/api/guides/auth/). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` authorization scope.", + // "description": "Updates a message. There's a difference between the `patch` and `update` methods. The `patch` method uses a `patch` request while the `update` method uses a `put` request. We recommend using the `patch` method. For an example, see [Update a message](https://developers.google.com/chat/api/guides/v1/messages/update). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` authorization scope.", // "flatPath": "v1/spaces/{spacesId}/messages/{messagesId}", // "httpMethod": "PATCH", // "id": "chat.spaces.messages.patch", @@ -8151,7 +8164,7 @@ func (c *SpacesMessagesPatchCall) Do(opts ...googleapi.CallOption) (*Message, er // "type": "string" // }, // "updateMask": { - // "description": "Required. The field paths to update. Separate multiple values with commas. Currently supported field paths: - `text` - `cards` (Requires [service account authentication](/chat/api/guides/auth/service-accounts).) - `cards_v2` ", + // "description": "Required. The field paths to update. Separate multiple values with commas. Currently supported field paths: - `text` - `cards` (Requires [service account authentication](/chat/api/guides/auth/service-accounts).) - `cards_v2` (Requires [service account authentication](/chat/api/guides/auth/service-accounts).) ", // "format": "google-fieldmask", // "location": "query", // "type": "string" @@ -8183,20 +8196,18 @@ type SpacesMessagesUpdateCall struct { header_ http.Header } -// Update: Updates a message. There's a difference between `patch` and -// `update` methods. The `patch` method uses a `patch` request while the -// `update` method uses a `put` request. We recommend using the `patch` -// method. For example usage, see Update a message -// (https://developers.google.com/chat/api/guides/crudl/messages#update_a_message). +// Update: Updates a message. There's a difference between the `patch` +// and `update` methods. The `patch` method uses a `patch` request while +// the `update` method uses a `put` request. We recommend using the +// `patch` method. For an example, see Update a message +// (https://developers.google.com/chat/api/guides/v1/messages/update). // Requires authentication -// (https://developers.google.com/chat/api/guides/auth/). Fully supports +// (https://developers.google.com/chat/api/guides/auth). Fully supports // service account authentication -// (https://developers.google.com/chat/api/guides/auth/service-accounts). -// Supports user authentication -// (https://developers.google.com/chat/api/guides/auth/users) as part of -// the Google Workspace Developer Preview Program -// (https://developers.google.com/workspace/preview), which grants early -// access to certain features. User authentication +// (https://developers.google.com/chat/api/guides/auth/service-accounts) +// and user authentication +// (https://developers.google.com/chat/api/guides/auth/users). User +// authentication // (https://developers.google.com/chat/api/guides/auth/users) requires // the `chat.messages` authorization scope. // @@ -8224,7 +8235,8 @@ func (c *SpacesMessagesUpdateCall) AllowMissing(allowMissing bool) *SpacesMessag // field paths to update. Separate multiple values with commas. // Currently supported field paths: - `text` - `cards` (Requires service // account authentication (/chat/api/guides/auth/service-accounts).) - -// `cards_v2` +// `cards_v2` (Requires service account authentication +// (/chat/api/guides/auth/service-accounts).) func (c *SpacesMessagesUpdateCall) UpdateMask(updateMask string) *SpacesMessagesUpdateCall { c.urlParams_.Set("updateMask", updateMask) return c @@ -8321,7 +8333,7 @@ func (c *SpacesMessagesUpdateCall) Do(opts ...googleapi.CallOption) (*Message, e } return ret, nil // { - // "description": "Updates a message. There's a difference between `patch` and `update` methods. The `patch` method uses a `patch` request while the `update` method uses a `put` request. We recommend using the `patch` method. For example usage, see [Update a message](https://developers.google.com/chat/api/guides/crudl/messages#update_a_message). Requires [authentication](https://developers.google.com/chat/api/guides/auth/). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` authorization scope.", + // "description": "Updates a message. There's a difference between the `patch` and `update` methods. The `patch` method uses a `patch` request while the `update` method uses a `put` request. We recommend using the `patch` method. For an example, see [Update a message](https://developers.google.com/chat/api/guides/v1/messages/update). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` authorization scope.", // "flatPath": "v1/spaces/{spacesId}/messages/{messagesId}", // "httpMethod": "PUT", // "id": "chat.spaces.messages.update", @@ -8342,7 +8354,7 @@ func (c *SpacesMessagesUpdateCall) Do(opts ...googleapi.CallOption) (*Message, e // "type": "string" // }, // "updateMask": { - // "description": "Required. The field paths to update. Separate multiple values with commas. Currently supported field paths: - `text` - `cards` (Requires [service account authentication](/chat/api/guides/auth/service-accounts).) - `cards_v2` ", + // "description": "Required. The field paths to update. Separate multiple values with commas. Currently supported field paths: - `text` - `cards` (Requires [service account authentication](/chat/api/guides/auth/service-accounts).) - `cards_v2` (Requires [service account authentication](/chat/api/guides/auth/service-accounts).) ", // "format": "google-fieldmask", // "location": "query", // "type": "string" @@ -8377,6 +8389,8 @@ type SpacesMessagesAttachmentsGetCall struct { // Get: Gets the metadata of a message attachment. The attachment data // is fetched using the media API // (https://developers.google.com/chat/api/reference/rest/v1/media/download). +// For an example, see Get a message attachment +// (https://developers.google.com/chat/api/guides/v1/media-and-attachments/get). // Requires service account authentication // (https://developers.google.com/chat/api/guides/auth/service-accounts). // @@ -8487,7 +8501,7 @@ func (c *SpacesMessagesAttachmentsGetCall) Do(opts ...googleapi.CallOption) (*At } return ret, nil // { - // "description": "Gets the metadata of a message attachment. The attachment data is fetched using the [media API](https://developers.google.com/chat/api/reference/rest/v1/media/download). Requires [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts).", + // "description": "Gets the metadata of a message attachment. The attachment data is fetched using the [media API](https://developers.google.com/chat/api/reference/rest/v1/media/download). For an example, see [Get a message attachment](https://developers.google.com/chat/api/guides/v1/media-and-attachments/get). Requires [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts).", // "flatPath": "v1/spaces/{spacesId}/messages/{messagesId}/attachments/{attachmentsId}", // "httpMethod": "GET", // "id": "chat.spaces.messages.attachments.get", @@ -8525,9 +8539,10 @@ type SpacesMessagesReactionsCreateCall struct { header_ http.Header } -// Create: Developer Preview -// (https://developers.google.com/workspace/preview): Creates a reaction -// and adds it to a message. Requires user authentication +// Create: Creates a reaction and adds it to a message. For an example, +// see Create a reaction +// (https://developers.google.com/chat/api/guides/v1/reactions/create). +// Requires user authentication // (https://developers.google.com/chat/api/guides/auth/users) and the // `chat.messages`, `chat.messages.reactions`, or // `chat.messages.reactions.create` scope. Only unicode emoji are @@ -8633,7 +8648,7 @@ func (c *SpacesMessagesReactionsCreateCall) Do(opts ...googleapi.CallOption) (*R } return ret, nil // { - // "description": "[Developer Preview](https://developers.google.com/workspace/preview): Creates a reaction and adds it to a message. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.messages`, `chat.messages.reactions`, or `chat.messages.reactions.create` scope. Only unicode emoji are supported.", + // "description": "Creates a reaction and adds it to a message. For an example, see [Create a reaction](https://developers.google.com/chat/api/guides/v1/reactions/create). Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.messages`, `chat.messages.reactions`, or `chat.messages.reactions.create` scope. Only unicode emoji are supported.", // "flatPath": "v1/spaces/{spacesId}/messages/{messagesId}/reactions", // "httpMethod": "POST", // "id": "chat.spaces.messages.reactions.create", @@ -8675,9 +8690,10 @@ type SpacesMessagesReactionsDeleteCall struct { header_ http.Header } -// Delete: Developer Preview -// (https://developers.google.com/workspace/preview): Deletes a reaction -// to a message. Requires user authentication +// Delete: Deletes a reaction to a message. For an example, see Delete a +// reaction +// (https://developers.google.com/chat/api/guides/v1/reactions/delete). +// Requires user authentication // (https://developers.google.com/chat/api/guides/auth/users) and the // `chat.messages` or `chat.messages.reactions` scope. // @@ -8775,7 +8791,7 @@ func (c *SpacesMessagesReactionsDeleteCall) Do(opts ...googleapi.CallOption) (*E } return ret, nil // { - // "description": "[Developer Preview](https://developers.google.com/workspace/preview): Deletes a reaction to a message. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.messages` or `chat.messages.reactions` scope.", + // "description": "Deletes a reaction to a message. For an example, see [Delete a reaction](https://developers.google.com/chat/api/guides/v1/reactions/delete). Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.messages` or `chat.messages.reactions` scope.", // "flatPath": "v1/spaces/{spacesId}/messages/{messagesId}/reactions/{reactionsId}", // "httpMethod": "DELETE", // "id": "chat.spaces.messages.reactions.delete", @@ -8814,9 +8830,10 @@ type SpacesMessagesReactionsListCall struct { header_ http.Header } -// List: Developer Preview -// (https://developers.google.com/workspace/preview): Lists reactions to -// a message. Requires user authentication +// List: Lists reactions to a message. For an example, see List +// reactions +// (https://developers.google.com/chat/api/guides/v1/reactions/list). +// Requires user authentication // (https://developers.google.com/chat/api/guides/auth/users) and // `chat.messages`, `chat.messages.readonly`, `chat.messages.reactions`, // or `chat.messages.reactions.readonly` scope. @@ -8978,7 +8995,7 @@ func (c *SpacesMessagesReactionsListCall) Do(opts ...googleapi.CallOption) (*Lis } return ret, nil // { - // "description": "[Developer Preview](https://developers.google.com/workspace/preview): Lists reactions to a message. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and `chat.messages`, `chat.messages.readonly`, `chat.messages.reactions`, or `chat.messages.reactions.readonly` scope.", + // "description": "Lists reactions to a message. For an example, see [List reactions](https://developers.google.com/chat/api/guides/v1/reactions/list). Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and `chat.messages`, `chat.messages.readonly`, `chat.messages.reactions`, or `chat.messages.reactions.readonly` scope.", // "flatPath": "v1/spaces/{spacesId}/messages/{messagesId}/reactions", // "httpMethod": "GET", // "id": "chat.spaces.messages.reactions.list", diff --git a/classroom/v1/classroom-api.json b/classroom/v1/classroom-api.json index 8cbbcab2246..63fc905c3df 100644 --- a/classroom/v1/classroom-api.json +++ b/classroom/v1/classroom-api.json @@ -2400,7 +2400,7 @@ } } }, - "revision": "20230522", + "revision": "20230524", "rootUrl": "https://classroom.googleapis.com/", "schemas": { "Announcement": { @@ -2554,7 +2554,7 @@ "type": "string" }, "calendarId": { - "description": "The Calendar ID for a calendar that all course members can see, to which Classroom adds events for course work and announcements in the course. The Calendar for a course is created asynchronously when the `course is set to the `CourseState.ACTIVE` for the first time (i.e. at creation time or when it is updated to `ACTIVE` through the UI or the API). The Calendar ID will not be populated until this processing is completed. Read-only.", + "description": "The Calendar ID for a calendar that all course members can see, to which Classroom adds events for course work and announcements in the course. The Calendar for a course is created asynchronously when the course is set to `CourseState.ACTIVE` for the first time (at creation time or when it is updated to `ACTIVE` through the UI or the API). The Calendar ID will not be populated until the creation process is completed. Read-only.", "type": "string" }, "courseGroupEmail": { diff --git a/classroom/v1/classroom-gen.go b/classroom/v1/classroom-gen.go index 9ae35366a78..0041a85caf6 100644 --- a/classroom/v1/classroom-gen.go +++ b/classroom/v1/classroom-gen.go @@ -641,10 +641,10 @@ type Course struct { // CalendarId: The Calendar ID for a calendar that all course members // can see, to which Classroom adds events for course work and // announcements in the course. The Calendar for a course is created - // asynchronously when the `course is set to the `CourseState.ACTIVE` - // for the first time (i.e. at creation time or when it is updated to - // `ACTIVE` through the UI or the API). The Calendar ID will not be - // populated until this processing is completed. Read-only. + // asynchronously when the course is set to `CourseState.ACTIVE` for the + // first time (at creation time or when it is updated to `ACTIVE` + // through the UI or the API). The Calendar ID will not be populated + // until the creation process is completed. Read-only. CalendarId string `json:"calendarId,omitempty"` // CourseGroupEmail: The email address of a Google group containing all diff --git a/cloudfunctions/v2/cloudfunctions-api.json b/cloudfunctions/v2/cloudfunctions-api.json index 231f501b647..7a95523c6b8 100644 --- a/cloudfunctions/v2/cloudfunctions-api.json +++ b/cloudfunctions/v2/cloudfunctions-api.json @@ -571,7 +571,7 @@ } } }, - "revision": "20230515", + "revision": "20230524", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AuditConfig": { @@ -880,6 +880,11 @@ "format": "google-datetime", "readOnly": true, "type": "string" + }, + "url": { + "description": "Output only. The deployed url for the function.", + "readOnly": true, + "type": "string" } }, "type": "object" diff --git a/cloudfunctions/v2/cloudfunctions-gen.go b/cloudfunctions/v2/cloudfunctions-gen.go index e9ab7b58ae0..4e3e8286c14 100644 --- a/cloudfunctions/v2/cloudfunctions-gen.go +++ b/cloudfunctions/v2/cloudfunctions-gen.go @@ -707,6 +707,9 @@ type Function struct { // Function. UpdateTime string `json:"updateTime,omitempty"` + // Url: Output only. The deployed url for the function. + Url string `json:"url,omitempty"` + // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` diff --git a/cloudfunctions/v2alpha/cloudfunctions-api.json b/cloudfunctions/v2alpha/cloudfunctions-api.json index 0aa502cbb51..8abc458a220 100644 --- a/cloudfunctions/v2alpha/cloudfunctions-api.json +++ b/cloudfunctions/v2alpha/cloudfunctions-api.json @@ -571,7 +571,7 @@ } } }, - "revision": "20230515", + "revision": "20230524", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AuditConfig": { @@ -880,6 +880,11 @@ "format": "google-datetime", "readOnly": true, "type": "string" + }, + "url": { + "description": "Output only. The deployed url for the function.", + "readOnly": true, + "type": "string" } }, "type": "object" diff --git a/cloudfunctions/v2alpha/cloudfunctions-gen.go b/cloudfunctions/v2alpha/cloudfunctions-gen.go index ccb010fd43c..a2b52294989 100644 --- a/cloudfunctions/v2alpha/cloudfunctions-gen.go +++ b/cloudfunctions/v2alpha/cloudfunctions-gen.go @@ -707,6 +707,9 @@ type Function struct { // Function. UpdateTime string `json:"updateTime,omitempty"` + // Url: Output only. The deployed url for the function. + Url string `json:"url,omitempty"` + // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` diff --git a/cloudfunctions/v2beta/cloudfunctions-api.json b/cloudfunctions/v2beta/cloudfunctions-api.json index 4cf1db0d730..da64df36144 100644 --- a/cloudfunctions/v2beta/cloudfunctions-api.json +++ b/cloudfunctions/v2beta/cloudfunctions-api.json @@ -571,7 +571,7 @@ } } }, - "revision": "20230515", + "revision": "20230524", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AuditConfig": { @@ -880,6 +880,11 @@ "format": "google-datetime", "readOnly": true, "type": "string" + }, + "url": { + "description": "Output only. The deployed url for the function.", + "readOnly": true, + "type": "string" } }, "type": "object" diff --git a/cloudfunctions/v2beta/cloudfunctions-gen.go b/cloudfunctions/v2beta/cloudfunctions-gen.go index f5c91c568a4..f618e336332 100644 --- a/cloudfunctions/v2beta/cloudfunctions-gen.go +++ b/cloudfunctions/v2beta/cloudfunctions-gen.go @@ -707,6 +707,9 @@ type Function struct { // Function. UpdateTime string `json:"updateTime,omitempty"` + // Url: Output only. The deployed url for the function. + Url string `json:"url,omitempty"` + // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` diff --git a/contentwarehouse/v1/contentwarehouse-api.json b/contentwarehouse/v1/contentwarehouse-api.json index 85616c693a2..9f8ba23df19 100644 --- a/contentwarehouse/v1/contentwarehouse-api.json +++ b/contentwarehouse/v1/contentwarehouse-api.json @@ -1103,7 +1103,7 @@ } } }, - "revision": "20230512", + "revision": "20230529", "rootUrl": "https://contentwarehouse.googleapis.com/", "schemas": { "AbuseiamAbuseType": { @@ -3628,7 +3628,8 @@ "MEET_AFFINITY", "PMW_TI_AFFINITY", "DRIVE_SEARCH_FILTER_PERSON_ONLY", - "ACCESSIBILITY_TRACKER_AFFINITY" + "ACCESSIBILITY_TRACKER_AFFINITY", + "PLX_DATASOURCE_AFFINITY" ], "enumDescriptions": [ "", @@ -3881,6 +3882,7 @@ "", "", "", + "", "" ], "type": "string" @@ -5444,8 +5446,7 @@ "PEOPLE_PLAYGROUND", "NEWS_360", "DUO", - "MEET", - "MESSAGES" + "MEET" ], "enumDescriptions": [ "Should never be stored in practice", @@ -5465,8 +5466,7 @@ "See go/people-playground-design.", "Also mdb/social-magazines", "Aka Taychon", - "Aka Google Meet", - "Aka Google Messages" + "Aka Google Meet" ], "type": "string" }, @@ -5534,8 +5534,7 @@ "PEOPLE_PLAYGROUND", "NEWS_360", "DUO", - "MEET", - "MESSAGES" + "MEET" ], "enumDescriptions": [ "Should never be stored in practice", @@ -5555,8 +5554,7 @@ "See go/people-playground-design.", "Also mdb/social-magazines", "Aka Taychon", - "Aka Google Meet", - "Aka Google Messages" + "Aka Google Meet" ], "type": "string" }, @@ -5619,8 +5617,7 @@ "LOUPE", "NEWS_360", "DUO", - "MEET", - "MESSAGES" + "MEET" ], "enumDescriptions": [ "should never be stored in practice", @@ -5640,8 +5637,7 @@ "Aka Camera by Google Photos", "Also mdb/social-magazines", "aka Taychon", - "Aka Google Meet", - "Aka Google Messages" + "Aka Google Meet" ], "type": "string" }, @@ -9119,6 +9115,10 @@ "Enable app control SD-dependent capabilities." ], "type": "string" + }, + "sendMessageSuppressed": { + "description": "If true, disable send message AppControl/SD flow. This is needed to suppress the feature for specific device. If we decide to turn down this feature for all devices, then this field will become obsolete and should be removed. See context in b/275727627.", + "type": "boolean" } }, "type": "object" @@ -11625,15 +11625,20 @@ "type": "object" }, "AssistantApiCoreTypesMessageNotificationNotificationEntry": { - "description": "Structure of each notification in the MessageNotification Bundle. Attribute sender_name could be different in case of group messages. Next Id: 6", + "description": "Structure of each notification in the MessageNotification Bundle. Attribute sender_name could be different in case of group messages. Next Id: 8", "id": "AssistantApiCoreTypesMessageNotificationNotificationEntry", "properties": { + "charCount": { + "description": "Count of characters in the message body in the notification.", + "format": "int32", + "type": "integer" + }, "dataUri": { "description": "Uri for the attachment (image, audio, video etc.).", "type": "string" }, "messageBody": { - "description": "Content of the message body in the notification.", + "description": "Note that this is not present in production traffic. Content of the message body in the notification.", "type": "string" }, "mimeType": { @@ -11648,6 +11653,11 @@ "sender": { "$ref": "AssistantApiCoreTypesMessageNotificationPerson", "description": "Sender of the message notification." + }, + "wordCount": { + "description": "Count of words in the message body in the notification.", + "format": "int32", + "type": "integer" } }, "type": "object" @@ -12842,11 +12852,11 @@ "type": "object" }, "AssistantApiLoggingOnlyData": { - "description": "Data which is produced for logging and debugging. Servers MUST NOT use this for any other purposes, such as branching on it. Next ID: 15", + "description": "Data which is produced for logging and debugging. Servers MUST NOT use this for any other purposes, such as branching on it. Next ID: 16", "id": "AssistantApiLoggingOnlyData", "properties": { "accountIndex": { - "description": "The index of the account on the device. Useful when there are multiple accounts on a device such as distinguishing primary user data from secondary users. There is no guarantee that this is a stable number but is relatively stable in practice.", + "description": "The index of the account on the device. Useful when there are multiple accounts on a device. There is no guarantee that this is a stable number but is relatively stable in practice.", "format": "int32", "type": "integer" }, @@ -12921,6 +12931,10 @@ "description": "A string recording the app version that is initially used to created this settings entry.", "type": "string" }, + "isPrimaryUser": { + "description": "Boolean field to indicate whether a certain user is the primary user of a device or not. This is useful for distinguishing the user0 from other users given user0 might have certain privileges (Eg: Hubmode on Tangor)", + "type": "boolean" + }, "mdnsDisplayName": { "description": "default display name of device over mdns. This is specified at the factory, not specified by the user.", "type": "string" @@ -14195,6 +14209,10 @@ "$ref": "AssistantApiSettingsDeviceLogsOptIn", "description": "Specifies if device logs and crashes can be captured during SendFeedback" }, + "paymentsEnabled": { + "description": "DEPRECATED: Use DeviceCapabilities.OutputRestrictions.personal_data instead. Whether the user has enabled payments for this device.", + "type": "boolean" + }, "personalizationMetadata": { "$ref": "AssistantApiSettingsPersonalizationMetadata", "description": "Metadata about how personalization settings were configured." @@ -14409,7 +14427,7 @@ "type": "boolean" }, "state": { - "description": "The call state of the device (i.e. whether an Duo call account has been setup on the device).", + "description": "The call state of the device (i.e. whether a Duo call account has been setup on the device).", "enum": [ "UNKNOWN_LINK_STATE", "NOT_LINKED", @@ -15826,7 +15844,7 @@ "type": "object" }, "AssistantApiSupportedFeatures": { - "description": "These are the set of features that are supported by the device. It's a part of the SoftwareCapabilities of the device. Next ID: 64", + "description": "These are the set of features that are supported by the device. It's a part of the SoftwareCapabilities of the device. Next ID: 66", "id": "AssistantApiSupportedFeatures", "properties": { "aaeNotificationSourceSupported": { @@ -15972,6 +15990,20 @@ "description": "Whether the surface supports LiveCards. In cases where the user intent flow cannot be completed within the Assistant, LiveCards are used to take the user to an external app or website. These cards will be pushed to the Google Home app via the PushMessage ClientOp.", "type": "boolean" }, + "lottieAnimationSupport": { + "description": "Whether the client supports the Lottie animation library for the broadcast feature.", + "enum": [ + "LOTTIE_ANIMATION_UNKNOWN", + "LOTTIE_ANIMATION_NOT_SUPPORTED", + "LOTTIE_ANIMATION_SUPPORTED" + ], + "enumDescriptions": [ + "", + "", + "" + ], + "type": "string" + }, "mapsDialogsSupported": { "description": "Whether the client supports Assistant dialogs within Maps. This field will be set only when the Maps on the surface supports Assistant dialogs embedded within Maps. go/gsa-gmm.", "type": "boolean" @@ -16026,6 +16058,10 @@ "description": "Whether the client supports the privacy-aware lockscreen protocol (go/assistant-lockscreen-spec).", "type": "boolean" }, + "readMessagesTtsTaperingSupported": { + "description": "Whether the client supports tts tapering for the read messages flow. If set to true the tapered tts variant would be used during the read messages flow.", + "type": "boolean" + }, "remoteCloudCastingEnabled": { "description": "Whether the client has remote casting enabled. For ex: we want to disable this for clients like Auto.", "type": "boolean" @@ -16737,6 +16773,10 @@ "description": "Whether the client restricts alarms to ring within the next 24 hours.", "type": "boolean" }, + "supportsGenericMutations": { + "description": "Whether the client supports mutation of any alarm attribute such as time_pattern, recurrence_pattern, etc through the MUTATE action. If this is false, MUTATE may only be used for changing the alarm's status (to e.g. disable or dismiss the alarm).", + "type": "boolean" + }, "supportsStopAction": { "description": "Whether the client supports the STOP alarm action. If this is false, stop actions will be represented by the MUTATE action, and the device may need to check alarm state to determine if there's a firing alarm that needs to be dismissed.", "type": "boolean" @@ -17788,7 +17828,7 @@ "type": "object" }, "AssistantGroundingRankerMediaGroundingProviderFeatures": { - "description": "Features to be passed from Media GP to HGR. Next ID: 14", + "description": "Features to be passed from Media GP to HGR. Next ID: 15", "id": "AssistantGroundingRankerMediaGroundingProviderFeatures", "properties": { "albumReleaseType": { @@ -17843,6 +17883,10 @@ "description": "True if the user requests seed radio.", "type": "boolean" }, + "isYoutubeMusicSeeking": { + "description": "Indicates whether this is youtube content seeking music.", + "type": "boolean" + }, "mediaContentType": { "description": "MediaAquaAction::media_content_type from interpretation. It can be used for cross-content type ranking, for example, if a candidate's content type does not match this content type from interpretation, this candidate will be slightly demoted. Also, we might avoid fetching some signals when the content type is generic music, since some content types do not need ranking.", "enum": [ @@ -18042,13 +18086,6 @@ "description": "Indicates that fulfillment on this provider will happen within the provider app.", "type": "boolean" }, - "providerClusterIdDeprecated": { - "description": "This field is deprecated in favor of the integer field below.", - "items": { - "type": "string" - }, - "type": "array" - }, "providerClusterIds": { "description": "Cluster IDs for the provider. This field is repeated because some providers can be associated with multiple clusters. PRR specific feature.", "items": { @@ -18650,7 +18687,9 @@ "SAME_NAME_DEVICE_PROMOTER", "PHONE_TARGETING_PROMOTER", "TRAITS_PROMOTER", - "DEVICE_TYPE_PROMOTER" + "DEVICE_TYPE_PROMOTER", + "FEATURE_EXTRACTOR", + "LABELER" ], "enumDescriptions": [ "", @@ -18676,7 +18715,9 @@ "", "", "", - "" + "", + "feature extractor", + "labeler" ], "type": "string" }, @@ -19368,7 +19409,9 @@ "SAME_NAME_DEVICE_PROMOTER", "PHONE_TARGETING_PROMOTER", "TRAITS_PROMOTER", - "DEVICE_TYPE_PROMOTER" + "DEVICE_TYPE_PROMOTER", + "FEATURE_EXTRACTOR", + "LABELER" ], "enumDescriptions": [ "", @@ -19394,7 +19437,9 @@ "", "", "", - "" + "", + "feature extractor", + "labeler" ], "type": "string" } @@ -19875,7 +19920,7 @@ "type": "object" }, "AssistantPrefulfillmentRankerPrefulfillmentSignals": { - "description": "Signals to be used by the Prefulfillment Ranker. Derived from the ParsingSignals and GroundingSignals carried by the FunctionCall. LINT.IfChange Next ID: 52", + "description": "Signals to be used by the Prefulfillment Ranker. Derived from the ParsingSignals and GroundingSignals carried by the FunctionCall. LINT.IfChange Next ID: 53", "id": "AssistantPrefulfillmentRankerPrefulfillmentSignals", "properties": { "bindingSetAuis": { @@ -19971,6 +20016,10 @@ "description": "Whether the intent is a podcast intent.", "type": "boolean" }, + "isTvmIntent": { + "description": "Whether the intent is a media object tvm intent.", + "type": "boolean" + }, "isVideoIntent": { "description": "Whether the intent is a media object video intent.", "type": "boolean" @@ -20101,7 +20150,10 @@ "RANKER_NAME_GROUNDING_RANKER_COMMS_EXP_CALIBRATED", "RANKER_NAME_CONSOLIDATED_PFR_HGR_V2_COMMS_CALIBRATED", "RANKER_NAME_EXPERIMENTAL_PFR_SAGE_NEW_DOMAINS", - "RANKER_NAME_BUCKETED_PARSING_SCORE_FOR_SMARTHOME" + "RANKER_NAME_BUCKETED_PARSING_SCORE_FOR_SMARTHOME", + "RANKER_NAME_CONSOLIDATED_PFR_HGR_V2_COMMS_CALIBRATED_V2", + "RANKER_NAME_GROUNDING_RANKER_COMMS_EXP_CALIBRATED_V2", + "RANKER_NAME_CONSOLIDATED_PFR_HGR_PODCAST" ], "enumDescriptions": [ "Default value, when there is no ranker specified.", @@ -20117,7 +20169,10 @@ "Name for experimental calibrated HGR model for Comms.", "Name for consolidated PFR, HGRv2 and comms ranker.", "Name for experimental PFR ranker for Sage and new domains.", - "Name for PFR ranker with bucketed parsing scores for SmartHome." + "Name for PFR ranker with bucketed parsing scores for SmartHome.", + "Name for consolidated PFR, HGRv2 and comms ranker v2.", + "Name for experimental calibrated HGR model for Comms V2.", + "Name for HGR ranker for podcast based on RANKER_NAME_CONSOLIDATED_PFR_HGR_V2." ], "type": "string" }, @@ -20147,11 +20202,17 @@ "description": "sub_intent_type differentiates between intents that share the top level intent name. For eg: for TV_FALLBACK_SEARCH_INTENT, the top level intent name must be \"Find_media\" and the media_object argument within it must be of type \"Media_unspecified\".", "enum": [ "SUB_INTENT_TYPE_UNKNOWN", - "SUB_INTENT_TYPE_TV_FALLBACK_SEARCH_INTENT" + "SUB_INTENT_TYPE_TV_FALLBACK_SEARCH_INTENT", + "SUB_INTENT_TYPE_PODCAST", + "SUB_INTENT_TYPE_MUSIC_INITIATION_INTENT", + "SUB_INTENT_TYPE_PLAY_RADIO_INTENT" ], "enumDescriptions": [ "", - "" + "Find_media", + "Play_media, Play_media, Play_media, Listen_to_media, Media_entity_bare, Play_and_shuffle_media", + "Play_media", + "Play_media" ], "type": "string" }, @@ -29742,6 +29803,7 @@ "PROVIDER_GOOGLE_LOCAL_SERVICES_ADS", "PROVIDER_GOOGLE_GT_LANE_AUTOMATION", "PROVIDER_GOOGLE_GEO_NG_LOCAL", + "PROVIDER_GOOGLE_MAPFACTS_CLEANUP", "PROVIDER_GOOGLE_LOCALSEARCH", "PROVIDER_GOOGLE_TRANSIT", "PROVIDER_GOOGLE_GEOWIKI", @@ -30283,7 +30345,7 @@ "", "ABSTRACT", "", - "All new \"Google\" provider entries must be full ints. The next available ID is: 0x111730B5", + "All new \"Google\" provider entries must be full ints. The next available ID is: 0x111730B6", "ABSTRACT", "", "", @@ -30459,6 +30521,7 @@ "", "", "", + "", "The next new \"Google\" provider entries should be placed above.", "UMBRELLA", "", @@ -32473,7 +32536,7 @@ "TRANSIT_LINE_VARIANT_LINE_CONCEPT", "TRANSIT_LINE_VARIANT_STOP", "TRANSIT_LINE_VEHICLE_TYPE", - "TRANSIT_STATION_AGENCY", + "TRANSIT_STATION_AGENCY_ASSOCIATION", "VERTICAL_ORDERING_LEVEL", "WATER_REMOVED_POLYGON", "DEPRECATED_DO_NOT_USE_EMAIL_ADDRESS", @@ -32519,7 +32582,8 @@ "DEPRECATED_DO_NOT_USE_VIEWCODE_INFO", "DEPRECATED_DO_NOT_USE_WORKAREA", "DEPRECATED_DO_NOT_USE_INFERRED_GEOMETRY_INCLUDES_GEOMETRY_OF", - "DEPRECATED_DO_NOT_USE_INFERRED_GEOMETRY_EXCLUDES_GEOMETRY_OF" + "DEPRECATED_DO_NOT_USE_INFERRED_GEOMETRY_EXCLUDES_GEOMETRY_OF", + "DEPRECATED_DO_NOT_USE_TRANSIT_STATION_AGENCY" ], "enumDescriptions": [ "", @@ -32727,6 +32791,7 @@ "", "", "", + "", "" ], "type": "string" @@ -34626,6 +34691,7 @@ "PROVIDER_GOOGLE_LOCAL_SERVICES_ADS", "PROVIDER_GOOGLE_GT_LANE_AUTOMATION", "PROVIDER_GOOGLE_GEO_NG_LOCAL", + "PROVIDER_GOOGLE_MAPFACTS_CLEANUP", "PROVIDER_GOOGLE_LOCALSEARCH", "PROVIDER_GOOGLE_TRANSIT", "PROVIDER_GOOGLE_GEOWIKI", @@ -35167,7 +35233,7 @@ "", "ABSTRACT", "", - "All new \"Google\" provider entries must be full ints. The next available ID is: 0x111730B5", + "All new \"Google\" provider entries must be full ints. The next available ID is: 0x111730B6", "ABSTRACT", "", "", @@ -35343,6 +35409,7 @@ "", "", "", + "", "The next new \"Google\" provider entries should be placed above.", "UMBRELLA", "", @@ -36791,6 +36858,7 @@ "PROVIDER_GOOGLE_LOCAL_SERVICES_ADS", "PROVIDER_GOOGLE_GT_LANE_AUTOMATION", "PROVIDER_GOOGLE_GEO_NG_LOCAL", + "PROVIDER_GOOGLE_MAPFACTS_CLEANUP", "PROVIDER_GOOGLE_LOCALSEARCH", "PROVIDER_GOOGLE_TRANSIT", "PROVIDER_GOOGLE_GEOWIKI", @@ -37332,7 +37400,7 @@ "", "ABSTRACT", "", - "All new \"Google\" provider entries must be full ints. The next available ID is: 0x111730B5", + "All new \"Google\" provider entries must be full ints. The next available ID is: 0x111730B6", "ABSTRACT", "", "", @@ -37508,6 +37576,7 @@ "", "", "", + "", "The next new \"Google\" provider entries should be placed above.", "UMBRELLA", "", @@ -38244,7 +38313,7 @@ "description": "Hours in which the parking facility is open; that is, permits both arrivals and departures of the facility. Should only be set on compounds (i.e. parking lots or garages); roads are considered to always be “open,” though parking at certain times may be prohibited via restrictions. If unset on a compound, this suggests we don’t know the opening hours, or they are the same as the hours of the entity for which this feature offers parking facilities." }, "parkingAvailable": { - "description": "Indicates whether long-term parking is available at the feature; if true, long-term parking is available at the feature and parking allowances may be present on this feature, or parking_provider_feature may indicate defered parking feature(s). If false, this is an explicit statement that there is no long-term parking associated with this feature. If unset, we don't know whether there is long-term parking associated with this feature. If false or unset, only additional restrictions or short-term allowances will be populated.", + "description": "Indicates whether long-term parking is available at the feature; if true, long-term parking is available at the feature and parking allowances may be present on this feature, or parking_provider_feature may indicate deferred parking feature(s). If false, this is an explicit statement that there is no long-term parking associated with this feature. If unset, we don't know whether there is long-term parking associated with this feature. If false or unset, only additional restrictions or short-term allowances will be populated.", "type": "boolean" }, "parkingProviderFeature": { @@ -39260,6 +39329,7 @@ "PROVIDER_GOOGLE_LOCAL_SERVICES_ADS", "PROVIDER_GOOGLE_GT_LANE_AUTOMATION", "PROVIDER_GOOGLE_GEO_NG_LOCAL", + "PROVIDER_GOOGLE_MAPFACTS_CLEANUP", "PROVIDER_GOOGLE_LOCALSEARCH", "PROVIDER_GOOGLE_TRANSIT", "PROVIDER_GOOGLE_GEOWIKI", @@ -39801,7 +39871,7 @@ "", "ABSTRACT", "", - "All new \"Google\" provider entries must be full ints. The next available ID is: 0x111730B5", + "All new \"Google\" provider entries must be full ints. The next available ID is: 0x111730B6", "ABSTRACT", "", "", @@ -39977,6 +40047,7 @@ "", "", "", + "", "The next new \"Google\" provider entries should be placed above.", "UMBRELLA", "", @@ -41476,7 +41547,7 @@ "enum": [ "BICYCLE_FACILITY_SEPARATE_TRAIL", "BICYCLE_FACILITY_PEDESTRIAN_PATH", - "BICYCLE_FACILITY_WIDE_PEDESTRIAN_PATH", + "BICYCLE_FACILITY_BIKE_FRIENDLY_PEDESTRIAN_PATH", "BICYCLE_FACILITY_SHARED_ROAD", "BICYCLE_FACILITY_BIKE_LANE", "BICYCLE_FACILITY_BIKE_LANE_WITH_PEDESTRIAN_PATH", @@ -41487,7 +41558,7 @@ "enumDescriptions": [ "This segment has a detached trail or path running alongside it, suitable for the use of cyclists. When a segment has this attribute, there should never be a distinct segment for the trail, because the road and trail are part of the same logical segment. In other words, the trail is modeled by this attribute on its associated road, rather than by a separate segment.", "This segment has a sidewalk or other pedestrian pathway that permits bicycles.", - "This segment has a wide sidewalk or other pedestrian pathway.", + "This segment has a bike-friendly (e.g., wide) sidewalk or other pedestrian pathway.", "This segment allows bicycles to share the road with motor vehicles. It may or may not provide special accommodation for cyclists.", "This segment has a striped bicycle lane.", "This segment has a striped bicycle lane, and also has a sidewalk or other pedestrian pathway that permits bicycles.", @@ -42784,7 +42855,7 @@ "id": "GeostoreTollClusterProto", "properties": { "intersection": { - "description": "The list of TYPE_INTERSECTION features that are toll points and form this toll cluster. A toll cluser can consist of either a single or a group of intersection points called toll points at the end of various road segments in MapFacts that represent one or more lanes passing through a toll fixture that all go to the same routing destination. This relationship is reciprocal, as a toll point intersection also stores a reference to the toll cluster it belongs to. A toll cluster must have reference to one or more toll points i.e. toll_cluster.intersection should always be populated.", + "description": "The list of TYPE_INTERSECTION features that are toll points and form this toll cluster. A toll cluster can consist of either a single or a group of intersection points called toll points at the end of various road segments in MapFacts that represent one or more lanes passing through a toll fixture that all go to the same routing destination. This relationship is reciprocal, as a toll point intersection also stores a reference to the toll cluster it belongs to. A toll cluster must have reference to one or more toll points i.e. toll_cluster.intersection should always be populated.", "items": { "$ref": "GeostoreFeatureIdProto" }, @@ -42914,16 +42985,31 @@ "description": "Encapsulates information related to an individual transit station.", "id": "GeostoreTransitStationProto", "properties": { - "agencies": { - "description": "Transit agencies which service this transit station. A station can be serviced by one or more transit agencies. See go/transit-agency-relation-migration for more information.", + "agencyAssociations": { + "description": "All the transit agencies which service this station. A station can be serviced by multiple stations. There may only be one agency association per transit agency. See go/transit-agency-relation-migration for more details.", "items": { - "$ref": "GeostoreFeatureIdProto" + "$ref": "GeostoreTransitStationProtoTransitAgencyAssociationProto" }, "type": "array" } }, "type": "object" }, + "GeostoreTransitStationProtoTransitAgencyAssociationProto": { + "description": "The association between this station and the agency which services this station.", + "id": "GeostoreTransitStationProtoTransitAgencyAssociationProto", + "properties": { + "agency": { + "$ref": "GeostoreFeatureIdProto", + "description": "The transit agency which services this station." + }, + "stationCode": { + "description": "A station code uniquely identifies a transit station within the transit agency's network.", + "type": "string" + } + }, + "type": "object" + }, "GeostoreTrustSignalsProto": { "id": "GeostoreTrustSignalsProto", "properties": { @@ -45974,6 +46060,13 @@ }, "type": "array" }, + "documentNameFilter": { + "description": "Search the documents in the list. Format: projects/{project_number}/locations/{location}/documents/{document_id}.", + "items": { + "type": "string" + }, + "type": "array" + }, "documentSchemaNames": { "description": "This filter specifies the exact document schema Document.document_schema_name of the documents to search against. If a value isn't specified, documents within the search results are associated with any schema. If multiple values are specified, documents within the search results may be associated with any of the specified schemas. At most 20 document schema names are allowed.", "items": { @@ -47227,6 +47320,10 @@ "description": "The token that specifies the starting position of the next page of results. This field is empty if there are no more results.", "type": "string" }, + "questionAnswer": { + "description": "Experimental. Question answer from the query against the document.", + "type": "string" + }, "totalSize": { "description": "The total number of matched documents which is available only if the client set SearchDocumentsRequest.require_total_size to `true` or set SearchDocumentsRequest.total_result_size to `ESTIMATED_SIZE` or `ACTUAL_SIZE`. Otherwise, the value will be `-1`. Typically a UI would handle this condition by displaying \"of many\", for example: \"Displaying 10 of many\".", "format": "int32", @@ -48960,7 +49057,7 @@ "id": "GoogleInternalAppsWaldoV1alphaAvailabilityPeriod", "properties": { "dayOfWeek": { - "description": "Day of week, 1 for Monday, ..., 7 for Sunday.", + "description": "Day of week, 0 for Sunday, 1 for Monday, ...", "format": "int32", "type": "integer" }, @@ -49545,7 +49642,7 @@ "type": "object" }, "GoogleTypeColor": { - "description": "Represents a color in the RGBA color space. This representation is designed for simplicity of conversion to/from color representations in various languages over compactness. For example, the fields of this representation can be trivially provided to the constructor of `java.awt.Color` in Java; it can also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha` method in iOS; and, with just a little work, it can be easily formatted into a CSS `rgba()` string in JavaScript. This reference page doesn't carry information about the absolute color space that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default, applications should assume the sRGB color space. When color equality needs to be decided, implementations, unless documented otherwise, treat two colors as equal if all their red, green, blue, and alpha values each differ by at most 1e-5. Example (Java): import com.google.type.Color; // ... public static java.awt.Color fromProto(Color protocolor) { float alpha = protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); } public static Color toProto(java.awt.Color color) { float red = (float) color.getRed(); float green = (float) color.getGreen(); float blue = (float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255) { result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .build()); } return resultBuilder.build(); } // ... Example (iOS / Obj-C): // ... static UIColor* fromProto(Color* protocolor) { float red = [protocolor red]; float green = [protocolor green]; float blue = [protocolor blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper != nil) { alpha = [alpha_wrapper value]; } return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; } static Color* toProto(UIColor* color) { CGFloat red, green, blue, alpha; if (![color getRed:\u0026red green:\u0026green blue:\u0026blue alpha:\u0026alpha]) { return nil; } Color* result = [[Color alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha \u003c= 0.9999) { [result setAlpha:floatWrapperWithValue(alpha)]; } [result autorelease]; return result; } // ... Example (JavaScript): // ... var protoToCssColor = function(rgb_color) { var redFrac = rgb_color.red || 0.0; var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0; var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255); var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) { return rgbToCssColor(red, green, blue); } var alphaFrac = rgb_color.alpha.value || 0.0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); }; var rgbToCssColor = function(red, green, blue) { var rgbNumber = new Number((red \u003c\u003c 16) | (green \u003c\u003c 8) | blue); var hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var resultBuilder = ['#']; for (var i = 0; i \u003c missingZeros; i++) { resultBuilder.push('0'); } resultBuilder.push(hexString); return resultBuilder.join(''); }; // ...", + "description": "Represents a color in the RGBA color space. This representation is designed for simplicity of conversion to and from color representations in various languages over compactness. For example, the fields of this representation can be trivially provided to the constructor of `java.awt.Color` in Java; it can also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha` method in iOS; and, with just a little work, it can be easily formatted into a CSS `rgba()` string in JavaScript. This reference page does not have information about the absolute color space that should be used to interpret the RGB value—for example, sRGB, Adobe RGB, DCI-P3, and BT.2020. By default, applications should assume the sRGB color space. When color equality needs to be decided, implementations, unless documented otherwise, treat two colors as equal if all their red, green, blue, and alpha values each differ by at most `1e-5`. Example (Java): import com.google.type.Color; // ... public static java.awt.Color fromProto(Color protocolor) { float alpha = protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); } public static Color toProto(java.awt.Color color) { float red = (float) color.getRed(); float green = (float) color.getGreen(); float blue = (float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255) { result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .build()); } return resultBuilder.build(); } // ... Example (iOS / Obj-C): // ... static UIColor* fromProto(Color* protocolor) { float red = [protocolor red]; float green = [protocolor green]; float blue = [protocolor blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper != nil) { alpha = [alpha_wrapper value]; } return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; } static Color* toProto(UIColor* color) { CGFloat red, green, blue, alpha; if (![color getRed:\u0026red green:\u0026green blue:\u0026blue alpha:\u0026alpha]) { return nil; } Color* result = [[Color alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha \u003c= 0.9999) { [result setAlpha:floatWrapperWithValue(alpha)]; } [result autorelease]; return result; } // ... Example (JavaScript): // ... var protoToCssColor = function(rgb_color) { var redFrac = rgb_color.red || 0.0; var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0; var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255); var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) { return rgbToCssColor(red, green, blue); } var alphaFrac = rgb_color.alpha.value || 0.0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); }; var rgbToCssColor = function(red, green, blue) { var rgbNumber = new Number((red \u003c\u003c 16) | (green \u003c\u003c 8) | blue); var hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var resultBuilder = ['#']; for (var i = 0; i \u003c missingZeros; i++) { resultBuilder.push('0'); } resultBuilder.push(hexString); return resultBuilder.join(''); }; // ...", "id": "GoogleTypeColor", "properties": { "alpha": { @@ -57112,9 +57209,18 @@ "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, "creator": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "discoverSource": { "$ref": "IndexingDocjoinerDataVersionVersionInfo", "description": "LINT.ThenChange(//depot/google3/indexing/ames/spanner/schema/web-version.proto)" }, + "discussion": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, + "documentIntent": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo" + }, "instantNavboost": { "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, @@ -60360,6 +60466,16 @@ "Gibberish detection ran, but failed. Consider this not gibberish." ], "type": "string" + }, + "numGibberishSegments": { + "description": "The number of the above segments that were classified as gibberish.", + "format": "int32", + "type": "integer" + }, + "numSegmentsClassified": { + "description": "The number of ASR segments that were sent for classification.", + "format": "int32", + "type": "integer" } }, "type": "object" @@ -87562,6 +87678,7 @@ "INFORMATION_SOURCE_GOVERNMENT", "INFORMATION_SOURCE_UGC", "INFORMATION_SOURCE_RESEARCH_INSTITUTE", + "QNA", "RESERVED_FOR_NEW_ENUM_135", "RESERVED_FOR_NEW_ENUM_136", "RESERVED_FOR_NEW_ENUM_137", @@ -87582,7 +87699,7 @@ "RESERVED_FOR_NEW_ENUM_152", "RESERVED_FOR_NEW_ENUM_153", "RESERVED_FOR_NEW_ENUM_154", - "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_98", + "RESERVED_FOR_NEW_ENUM_155", "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_99", "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_100", "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_101", @@ -87719,6 +87836,7 @@ "", "", "", + "Question and Answer format discussion page. check go/orbit-doc-intents for detailed intent description.", "========== Enums for new intents ========== Instructions: When adding a new intent, use the reserved enum number from the start of this list, and add a new reserved enum number to the end for the next person. There is a unit test that checks there are at least 20 reserved enums. See go/new-intentkeyenum for details.", "", "", @@ -87739,8 +87857,8 @@ "", "", "", - "========== Enums for new large intents ========== Please ask orbit@ before using these.", "", + "========== Enums for new large intents ========== Please ask orbit@ before using these.", "", "", "", @@ -87897,6 +88015,7 @@ "INFORMATION_SOURCE_GOVERNMENT", "INFORMATION_SOURCE_UGC", "INFORMATION_SOURCE_RESEARCH_INSTITUTE", + "QNA", "RESERVED_FOR_NEW_ENUM_135", "RESERVED_FOR_NEW_ENUM_136", "RESERVED_FOR_NEW_ENUM_137", @@ -87917,7 +88036,7 @@ "RESERVED_FOR_NEW_ENUM_152", "RESERVED_FOR_NEW_ENUM_153", "RESERVED_FOR_NEW_ENUM_154", - "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_98", + "RESERVED_FOR_NEW_ENUM_155", "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_99", "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_100", "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_101", @@ -88054,6 +88173,7 @@ "", "", "", + "Question and Answer format discussion page. check go/orbit-doc-intents for detailed intent description.", "========== Enums for new intents ========== Instructions: When adding a new intent, use the reserved enum number from the start of this list, and add a new reserved enum number to the end for the next person. There is a unit test that checks there are at least 20 reserved enums. See go/new-intentkeyenum for details.", "", "", @@ -88074,8 +88194,8 @@ "", "", "", - "========== Enums for new large intents ========== Please ask orbit@ before using these.", "", + "========== Enums for new large intents ========== Please ask orbit@ before using these.", "", "", "", @@ -88237,6 +88357,7 @@ "INFORMATION_SOURCE_GOVERNMENT", "INFORMATION_SOURCE_UGC", "INFORMATION_SOURCE_RESEARCH_INSTITUTE", + "QNA", "RESERVED_FOR_NEW_ENUM_135", "RESERVED_FOR_NEW_ENUM_136", "RESERVED_FOR_NEW_ENUM_137", @@ -88257,7 +88378,7 @@ "RESERVED_FOR_NEW_ENUM_152", "RESERVED_FOR_NEW_ENUM_153", "RESERVED_FOR_NEW_ENUM_154", - "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_98", + "RESERVED_FOR_NEW_ENUM_155", "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_99", "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_100", "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_101", @@ -88394,6 +88515,7 @@ "", "", "", + "Question and Answer format discussion page. check go/orbit-doc-intents for detailed intent description.", "========== Enums for new intents ========== Instructions: When adding a new intent, use the reserved enum number from the start of this list, and add a new reserved enum number to the end for the next person. There is a unit test that checks there are at least 20 reserved enums. See go/new-intentkeyenum for details.", "", "", @@ -88414,8 +88536,8 @@ "", "", "", - "========== Enums for new large intents ========== Please ask orbit@ before using these.", "", + "========== Enums for new large intents ========== Please ask orbit@ before using these.", "", "", "", @@ -91130,6 +91252,10 @@ "format": "int32", "type": "integer" }, + "nonDisplayableStaleAvailability": { + "$ref": "ShoppingWebentityShoppingAnnotationOfferAvailabilityInfo", + "description": "This is experimental, not filled in yet and not intended to be used. Please contact buyable-corpus@ before considering using this field." + }, "offerDocid": { "format": "uint64", "type": "string" @@ -91761,6 +91887,7 @@ "LSU_HIGH_PRECISION_PUBLICATION_MARKUP_SUPPORTED_BY_ANNOTATION", "LSU_HIGH_PRECISION_ANNOTATION_WITH_PATTERN_BYLINE_TAG", "LSU_HIGH_PRECISION_RELIABLE_CONTENT_AGE_SUPPORTED_BY_ANNOTATION", + "LSU_HIGH_PRECISION_CREATION_DATE_OF_UGC_PAGE", "LSU_MEDIUM_PRECISION_FRESH_SALIENT_ANNOTATION_LOW_SUPPORT", "LSU_MEDIUM_PRECISION_FRESH_SALIENT_ANNOTATION_MEDIUM_SUPPORT", "LSU_MEDIUM_PRECISION_FRESH_SALIENT_ANNOTATION_HIGH_SUPPORT", @@ -91784,6 +91911,7 @@ "The signal comes from publication markup date supported by annotation.", "The signal comes from date annotation often selected as a byline.", "The signal comes from ContentAge that's supported by date annotation.", + "The signal comes from creation date of UGC page.", "", "", "", @@ -91842,6 +91970,7 @@ "LSU_HIGH_PRECISION_PUBLICATION_MARKUP_SUPPORTED_BY_ANNOTATION", "LSU_HIGH_PRECISION_ANNOTATION_WITH_PATTERN_BYLINE_TAG", "LSU_HIGH_PRECISION_RELIABLE_CONTENT_AGE_SUPPORTED_BY_ANNOTATION", + "LSU_HIGH_PRECISION_CREATION_DATE_OF_UGC_PAGE", "LSU_MEDIUM_PRECISION_FRESH_SALIENT_ANNOTATION_LOW_SUPPORT", "LSU_MEDIUM_PRECISION_FRESH_SALIENT_ANNOTATION_MEDIUM_SUPPORT", "LSU_MEDIUM_PRECISION_FRESH_SALIENT_ANNOTATION_HIGH_SUPPORT", @@ -91865,6 +91994,7 @@ "The signal comes from publication markup date supported by annotation.", "The signal comes from date annotation often selected as a byline.", "The signal comes from ContentAge that's supported by date annotation.", + "The signal comes from creation date of UGC page.", "", "", "", @@ -100086,6 +100216,10 @@ "format": "byte", "type": "string" }, + "gfv": { + "$ref": "ResearchScamGenericFeatureVector", + "description": "The field isn't tpopulated by default, but when enabled (eg, in the ground-truth pipeline), this field provides the original database GFV corresponding to this result." + }, "metadata": { "description": "Metadata about the neighbor. This is returned under some configurations as a serialized proto. The specific proto depends on which metadata is configured to be returned.", "format": "byte", @@ -104486,6 +104620,33 @@ }, "type": "object" }, + "ShoppingWebentityShoppingAnnotationOfferAvailabilityInfo": { + "id": "ShoppingWebentityShoppingAnnotationOfferAvailabilityInfo", + "properties": { + "availability": { + "enum": [ + "AVAILABILITY_UNKNOWN", + "AVAILABILITY_IN_STOCK", + "AVAILABILITY_LIMITED", + "AVAILABILITY_OUT_OF_STOCK", + "AVAILABILITY_BACKORDER", + "AVAILABILITY_PREORDER", + "AVAILABILITY_ON_DISPLAY_TO_ORDER" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, "ShoppingWebentityShoppingAnnotationProductRating": { "description": "Information about a rating provided for a product. This can represent an aggregated rating if count is set. Next Id: 7", "id": "ShoppingWebentityShoppingAnnotationProductRating", @@ -105930,6 +106091,7 @@ "type": "object" }, "SocialGraphApiProtoPartialNameOptions": { + "description": "For general information about Limited Profiles, see go/limited-profiles-api. LINT.IfChange", "id": "SocialGraphApiProtoPartialNameOptions", "properties": { "language": { @@ -107799,6 +107961,7 @@ "ISOLATION_S3_CREATOR_PRESENCE", "ISOLATION_S12Y_RECIPE_INGREDIENT_INSIGHTS", "ISOLATION_SCOUTS_SOCIETAL_CONTEXT_ENTITIES", + "ISOLATION_ASTROLOGY_HOROSCOPE", "UMP_TESTING_ONLY", "INTENTJOINS_NB_SIGNALS", "ADS_INTEGRITY_ANNOTATION", @@ -107983,6 +108146,7 @@ "Access controls for Creator Channel's S-Cubed corpus data. See more in go/uro-access-required. YOU MUST CONTACT milk-tea@ before reading or writing this data", "For Search sustainability's food choice feature, Recipe Ingredient Insights. Assign existing KG entities feature types to classify triggering behavior and insights. Owned by salehh@ and s12y-eng@ See go/rii-kg-triggering-migration for more information.", "Access controls for SCOUTS Societal Context Repository entities. Please contact johnhenry-eng@ before reading or writing this data. DD: go/scouts-kg-integration-dd", + "Access controls for Astrology Horoscope features. Please contact search-india-verticals@ before reading or writing this data. DD: go/daily-horoscope-dd", "This access control is used to guard data used by the Unified Media Platform team (ke-media-actions-serving@) for testing new features. It should never be used for purposes other than testing. More context at go/fake-media-provider.", "Access controls for the IntentJoins Navboost data. YOU MUST CONTACT intentjoins-eng@ before reading or writing this data.", "Access controls for Ads Integrity annotation data. Ads Integrity annotations are only available for Ads Integrity policy enforcement. See go/ai-political-km for more details. YOU MUST CONTACT ai-pacg@ before reading or writing this data.", @@ -108842,10 +109006,7 @@ "type": "array" }, "greenFaresInfo": { - "items": { - "$ref": "TravelFlightsAirlineConfigGreenFaresInfo" - }, - "type": "array" + "$ref": "TravelFlightsAirlineConfigGreenFaresInfo" }, "iataCode": { "description": "Note that some iata_codes are reused (`dup_flag` field). For details, including how to resolve collisions for airlines shown in Google Flights, see: go/controlled-duplicate go/flights-data/airlines#resolving-iata-code-collisions cs/go/controlled-duplicate U2 - some have no IATA code", @@ -111374,12 +111535,19 @@ "DSA_P13N_OPTED_IN_AT_EVENT_LEVEL", "DSA_P13N_OPTED_OUT_AT_EVENT_LEVEL", "USER_P13N_SETTING_UNSPECIFIED_AT_EVENT_LEVEL", + "BOOKS_USER_P13N_SETTING_UNSPECIFIED_AT_EVENT_LEVEL", "USER_P13N_SETTING_ON_AT_EVENT_LEVEL", + "BOOKS_USER_P13N_SETTING_ON_AT_EVENT_LEVEL", "USER_P13N_SETTING_OFF_AT_EVENT_LEVEL", + "BOOKS_USER_P13N_SETTING_OFF_AT_EVENT_LEVEL", "BATTLESTAR_GAME_IN_MDP_EVENT_LEVEL", "REVIEW_HIGHLIGHTS_TRIGGERING_EVENT_LEVEL", "TRUSTED_VERTICAL_VPN_INTENT_EVENT_LEVEL", "TRUSTED_VERTICAL_LOAN_INTENT_EVENT_LEVEL", + "SERP_YOUTUBE_VIDEO_CLUSTER_POPULATED_EVENT_LEVEL", + "LOWQ_APPS_DEMOTION_EVENT_LEVEL", + "QUERY_TYPE_MDP_EVENT_LEVEL", + "QUERY_TYPE_NON_MDP_EVENT_LEVEL", "EVENT_LEVEL_TEST_CODE_LIMIT", "ENTERTAINMENT_CLUSTER_TRIGGERING_AT_SESSION_LEVEL", "BEST_SELLER_CART_TAG_AT_SESSION_LEVEL", @@ -111952,8 +112120,11 @@ "LANGUAGE_SWITCHER_SERVED_SESSION_LEVEL", "HAS_INSUFFICIENT_STORED_VALUE_BALANCE_BEFORE_RENEWAL_SESSION_LEVEL", "USER_P13N_SETTING_UNSPECIFIED_AT_SESSION_LEVEL", + "BOOKS_USER_P13N_SETTING_UNSPECIFIED_AT_SESSION_LEVEL", "USER_P13N_SETTING_ON_AT_SESSION_LEVEL", + "BOOKS_USER_P13N_SETTING_ON_AT_SESSION_LEVEL", "USER_P13N_SETTING_OFF_AT_SESSION_LEVEL", + "BOOKS_USER_P13N_SETTING_OFF_AT_SESSION_LEVEL", "BATTLESTAR_GAME_IN_MDP_SESSION_LEVEL", "REVIEW_HIGHLIGHTS_SESSION_LEVEL", "BOOKS_NOTIFICATION_RECEIVED_SESSION_LEVEL", @@ -111962,6 +112133,13 @@ "SUBS_OFFER_ON_BUYFLOW_ELIGIBLE_AT_SESSION_LEVEL", "TRUSTED_VERTICAL_VPN_INTENT_SESSION_LEVEL", "TRUSTED_VERTICAL_LOAN_INTENT_SESSION_LEVEL", + "FOP_PARTNER_PROMOTION_SESSION_LEVEL", + "SERP_YOUTUBE_VIDEO_CLUSTER_POPULATED_SESSION_LEVEL", + "LOWQ_APPS_DEMOTION_SESSION_LEVEL", + "PLANOGRAM_MERCH_TW_DYNASTY_EXTRA_FEATURING", + "AMPLIFY_FORM_OF_PAYMENT_ELIGIBLE_SESSION_LEVEL", + "QUERY_TYPE_MDP_SESSION_LEVEL", + "QUERY_TYPE_NON_MDP_SESSION_LEVEL", "SESSION_LEVEL_TEST_CODE_LIMIT", "CART_ABANDONMENT_USER_LEVEL", "IN_APP_PRODUCTS_IN_DETAILS_PAGE_USER_LEVEL", @@ -112074,6 +112252,7 @@ "PLAY_PASS_PARENT_FOCUSED_SPLASH_PAGE_USER_LEVEL", "PLAY_PASS_SPLASH_PAGE_FOR_UNICORN_USER_LEVEL", "IN_CART_EXCHANGE_OPTIONS_ELIGIBLE_USER_LEVEL", + "GE_STAMP_CARD_INDIVIDUALIZATION_COUNTERFACTUAL", "GE_USER_BUYER_STATE_UNKNOWN", "GE_USER_BUYER_STATE_NEVER", "GE_USER_BUYER_STATE_NEW", @@ -112211,6 +112390,7 @@ "PURCHASE_READINESS_ADD_FOP_USER_LEVEL", "PURCHASE_READINESS_ADD_AUTH_USER_LEVEL", "PURCHASE_READINESS_ADD_FOP_AUTH_USER_LEVEL", + "SUBS_PAYMENT_DECLINE_USER_LEVEL", "MERCH_CONTENT_EXP_ACTIVE_PUBG_USER_LEVEL", "MERCH_CONTENT_EXP_ACTIVE_GENSHIN_USER_LEVEL", "MERCH_CONTENT_EXP_ACTIVE_ROBLOX_USER_LEVEL", @@ -112222,13 +112402,18 @@ "DSA_P13N_OPTED_OUT_AT_USER_LEVEL", "LIVEOPS_INSTALL_NOTIFICATION_USER_LEVEL", "USER_P13N_SETTING_UNSPECIFIED_AT_USER_LEVEL", + "BOOKS_USER_P13N_SETTING_UNSPECIFIED_AT_USER_LEVEL", "USER_P13N_SETTING_ON_AT_USER_LEVEL", + "BOOKS_USER_P13N_SETTING_ON_AT_USER_LEVEL", "USER_P13N_SETTING_OFF_AT_USER_LEVEL", + "BOOKS_USER_P13N_SETTING_OFF_AT_USER_LEVEL", "LIVEOPS_CLUSTER_SERP_TRIGGERING_USER_LEVEL", "BOOKS_NOTIFICATION_RECEIVED_USER_LEVEL", "LIVEOPS_INSTALL_NOTIFICATION_CHURNED_USER_LEVEL", "SUBS_OFFER_ON_BUYFLOW_AT_USER_LEVEL", "SUBS_OFFER_ON_BUYFLOW_ELIGIBLE_AT_USER_LEVEL", + "FOP_PARTNER_PROMOTION_USER_LEVEL", + "BOOKS_LOYALTY_PROMO_BANNER_WEEKLY_PRIZE_USER_LEVEL", "USER_LEVEL_TEST_CODE_LIMIT" ], "enumDescriptions": [ @@ -112475,12 +112660,19 @@ "Event-level test code for DSA p13n opt in.", "Event-level test code for DSA p13n opt out.", "Event-level test code corresponding to com.google.play.consent.proto.Setting.SETTING_UNSPECIFIED.", + "", "Event-level test code corresponding to com.google.play.consent.proto.Setting.SETTING_ON.", + "", "Event-level test code corresponding to com.google.play.consent.proto.Setting.SETTING_OFF.", + "", "Event-level test code corresponding to an MDP showing for a game also available on Battlestar.", "Event-level test code to track triggering of review highlights.", "Event-level test code to track triggering of VPN Intent trusted vertical message.", "Event-level test code to track triggering of LOAN Intent trusted vertical message.", + "Event-level test code to track triggering of SERP YouTube video cluster.", + "Event-level test code to track triggering of lowQ apps demotion.", + "Test code for MDP query event level.", + "Test code for non-MDP query event level.", "", "", "", @@ -112743,7 +112935,7 @@ "", "", "", - "Test code for tracking eligble users who are shown the cart with marketing banner.", + "Test code for tracking eligible users who are shown the cart with marketing banner.", "Test code for tracking users shown Play Pass perks icon in cart.", "Testcode for slicing MDP triggering queries in Play search.", "Testcode for slicing non-MDP triggering queries in Play search.", @@ -113053,16 +113245,26 @@ "Session level test code for Language Switcher indicating that the user was served with the module on cart screen.", "Session level test code that indicates the stored value balance is insufficient for next renewal.", "Session-level test code corresponding to com.google.play.consent.proto.Setting.SETTING_UNSPECIFIED.", + "", "Session-level test code corresponding to com.google.play.consent.proto.Setting.SETTING_ON.", + "", "Session-level test code corresponding to com.google.play.consent.proto.Setting.SETTING_OFF.", + "", "Session-level test code corresponding to an MDP showing for a game also available on Battlestar.", "Session-level test code for review highlights", "Session level test code for users who receive a Books notification.", "Session level test code indicating that the user is eligible for language switcher on cart screen.", "Session level test code for traking the users who did see subs offer on buyflow. This is a Commerce client level test code.", "Session level test code for traking the users who are eligible to subs offer on buyflow. This is a P3 server level test code.", - "Event-level test code to track triggering of VPN Intent trusted vertical message.", - "Event-level test code to track triggering of LOAN Intent trusted vertical message.", + "Session-level test code to track triggering of VPN Intent trusted vertical message.", + "Session-level test code to track triggering of LOAN Intent trusted vertical message.", + "Session level test code for FOP Partner Promo.", + "Session-level test code to track triggering of SERP YouTube video cluster.", + "Session-level test code to track triggering of lowQ apps demotion.", + "Session level test code for merch run planogram experiment for extra featuring of hit2 dynasty in TW.", + "Session-level test code indicating that there is some Fop eligible for amplification. Amplification may or may not be visible to the user if some experiment flags are disabled.", + "Test code for MDP query session level.", + "Test code for non MDP query session level.", "", "Cart abandonment flow for purchase flow.", "User saw/would have seen the in app products section in App", @@ -113170,11 +113372,12 @@ "", "", "", - "Test code for tracking banner eligble users who are shown the cart.", + "Test code for tracking banner eligible users who are shown the cart.", "Test code for tracking users shown Play Pass perks icon in cart.", "Test code for tracking users who see a Play Pass parent-focused splash page.", "", "", + "", "Test code GE ranker service unknown users.", "Test code GE ranker service never users.", "Test code GE ranker service new users.", @@ -113312,6 +113515,7 @@ "User-level test code for user who is eligible for adding Form of Payment from Purchase Readiness Reminder.", "User-level test code for user who is eligible for adding Auth Settings from Purchase Readiness Reminder.", "User-level test code for user who is eligible for adding Form of Payment and then adding Auth Settings from Purchase Readiness Reminder.", + "User level test code for Subscription Payment Decline Reminder.", "User-level test code for running content experiments for merch curated clusters.", "", "", @@ -113323,13 +113527,18 @@ "User-level test code for DSA p13n opt out.", "User level test code for live-ops install notification experiments. If GE decision changed after enabling ranking using the notification install model prediction, log test code.", "User-level test code corresponding to com.google.play.consent.proto.Setting.SETTING_UNSPECIFIED.", + "", "User-level test code corresponding to com.google.play.consent.proto.Setting.SETTING_ON.", + "", "User-level test code corresponding to com.google.play.consent.proto.Setting.SETTING_OFF.", + "", "User level test code for cat search live ops cluster triggering.", "User level test code for users who have received a Books notification.", "User level test code for live-ops install notification Churn experiments. If GE decision changed after enabling ranking using the notification install model prediction for churned users, log test code.", "User level test code for traking the users who did see subs offer on buyflow. This is a Commerce client level test code.", "User level test code for traking the users who are eligible to subs offer on buyflow. This is a P3 server level test code.", + "User level test code for FOP Partner Promo.", + "User level test code for users who have seen a Loyalty weekly prize banner.", "" ], "type": "string" @@ -128383,7 +128592,7 @@ "type": "object" }, "WWWResultInfoSubImageDocInfo": { - "description": "The following message contains info of sub image docs, it is populated in query_state and consumed in web image boost twiddler: (go/WebImageBoostTwiddler). NextID: 25", + "description": "The following message contains info of sub image docs, it is populated in query_state and consumed in web image boost twiddler: (go/WebImageBoostTwiddler). NextID: 26", "id": "WWWResultInfoSubImageDocInfo", "properties": { "additionalSafesearchSignals": { @@ -128521,6 +128730,11 @@ "format": "float", "type": "number" }, + "estSigmaU": { + "description": "Estimated Sigma U calculated from U*.", + "format": "float", + "type": "number" + }, "flowOutput": { "$ref": "ImageContentFlowProtoProd" }, diff --git a/contentwarehouse/v1/contentwarehouse-gen.go b/contentwarehouse/v1/contentwarehouse-gen.go index f874cb5bf3b..279180ad6f1 100644 --- a/contentwarehouse/v1/contentwarehouse-gen.go +++ b/contentwarehouse/v1/contentwarehouse-gen.go @@ -3217,6 +3217,7 @@ type AppsPeopleOzExternalMergedpeopleapiAffinity struct { // "PMW_TI_AFFINITY" // "DRIVE_SEARCH_FILTER_PERSON_ONLY" // "ACCESSIBILITY_TRACKER_AFFINITY" + // "PLX_DATASOURCE_AFFINITY" AffinityType string `json:"affinityType,omitempty"` // ContainerId: The ID of the container @@ -5901,7 +5902,6 @@ type AppsPeopleOzExternalMergedpeopleapiInAppNotificationTarget struct { // "NEWS_360" - Also mdb/social-magazines // "DUO" - Aka Taychon // "MEET" - Aka Google Meet - // "MESSAGES" - Aka Google Messages App []string `json:"app,omitempty"` ClientData []*AppsPeopleOzExternalMergedpeopleapiInAppNotificationTargetClientData `json:"clientData,omitempty"` @@ -5971,7 +5971,6 @@ type AppsPeopleOzExternalMergedpeopleapiInAppNotificationTargetClientData struct // "NEWS_360" - Also mdb/social-magazines // "DUO" - Aka Taychon // "MEET" - Aka Google Meet - // "MESSAGES" - Aka Google Messages App string `json:"app,omitempty"` ByteValue string `json:"byteValue,omitempty"` @@ -6067,7 +6066,6 @@ type AppsPeopleOzExternalMergedpeopleapiInAppReachability struct { // "NEWS_360" - Also mdb/social-magazines // "DUO" - aka Taychon // "MEET" - Aka Google Meet - // "MESSAGES" - Aka Google Messages AppType string `json:"appType,omitempty"` Metadata *AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata `json:"metadata,omitempty"` @@ -10800,6 +10798,13 @@ type AssistantApiAppControlSupport struct { // capabilities. Enabled string `json:"enabled,omitempty"` + // SendMessageSuppressed: If true, disable send message AppControl/SD + // flow. This is needed to suppress the feature for specific device. If + // we decide to turn down this feature for all devices, then this field + // will become obsolete and should be removed. See context in + // b/275727627. + SendMessageSuppressed bool `json:"sendMessageSuppressed,omitempty"` + // ForceSendFields is a list of field names (e.g. "Enabled") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -14019,12 +14024,17 @@ func (s *AssistantApiCoreTypesMessageNotification) MarshalJSON() ([]byte, error) // AssistantApiCoreTypesMessageNotificationNotificationEntry: Structure // of each notification in the MessageNotification Bundle. Attribute -// sender_name could be different in case of group messages. Next Id: 6 +// sender_name could be different in case of group messages. Next Id: 8 type AssistantApiCoreTypesMessageNotificationNotificationEntry struct { + // CharCount: Count of characters in the message body in the + // notification. + CharCount int64 `json:"charCount,omitempty"` + // DataUri: Uri for the attachment (image, audio, video etc.). DataUri string `json:"dataUri,omitempty"` - // MessageBody: Content of the message body in the notification. + // MessageBody: Note that this is not present in production traffic. + // Content of the message body in the notification. MessageBody string `json:"messageBody,omitempty"` // MimeType: Mime type of the data_uri. e.g. 'audio/wav', 'video/mp4', @@ -14037,7 +14047,10 @@ type AssistantApiCoreTypesMessageNotificationNotificationEntry struct { // Sender: Sender of the message notification. Sender *AssistantApiCoreTypesMessageNotificationPerson `json:"sender,omitempty"` - // ForceSendFields is a list of field names (e.g. "DataUri") to + // WordCount: Count of words in the message body in the notification. + WordCount int64 `json:"wordCount,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CharCount") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -14045,7 +14058,7 @@ type AssistantApiCoreTypesMessageNotificationNotificationEntry struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DataUri") to include in + // NullFields is a list of field names (e.g. "CharCount") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -15832,11 +15845,10 @@ func (s *AssistantApiLocationCapabilities) MarshalJSON() ([]byte, error) { // AssistantApiLoggingOnlyData: Data which is produced for logging and // debugging. Servers MUST NOT use this for any other purposes, such as -// branching on it. Next ID: 15 +// branching on it. Next ID: 16 type AssistantApiLoggingOnlyData struct { // AccountIndex: The index of the account on the device. Useful when - // there are multiple accounts on a device such as distinguishing - // primary user data from secondary users. There is no guarantee that + // there are multiple accounts on a device. There is no guarantee that // this is a stable number but is relatively stable in practice. AccountIndex int64 `json:"accountIndex,omitempty"` @@ -15908,6 +15920,12 @@ type AssistantApiLoggingOnlyData struct { // initially used to created this settings entry. InitialAppVersion string `json:"initialAppVersion,omitempty"` + // IsPrimaryUser: Boolean field to indicate whether a certain user is + // the primary user of a device or not. This is useful for + // distinguishing the user0 from other users given user0 might have + // certain privileges (Eg: Hubmode on Tangor) + IsPrimaryUser bool `json:"isPrimaryUser,omitempty"` + // MdnsDisplayName: default display name of device over mdns. This is // specified at the factory, not specified by the user. MdnsDisplayName string `json:"mdnsDisplayName,omitempty"` @@ -17639,6 +17657,11 @@ type AssistantApiSettingsDeviceSettings struct { // during SendFeedback OptInStatus *AssistantApiSettingsDeviceLogsOptIn `json:"optInStatus,omitempty"` + // PaymentsEnabled: DEPRECATED: Use + // DeviceCapabilities.OutputRestrictions.personal_data instead. Whether + // the user has enabled payments for this device. + PaymentsEnabled bool `json:"paymentsEnabled,omitempty"` + // PersonalizationMetadata: Metadata about how personalization settings // were configured. PersonalizationMetadata *AssistantApiSettingsPersonalizationMetadata `json:"personalizationMetadata,omitempty"` @@ -17948,7 +17971,7 @@ type AssistantApiSettingsDuoCallDeviceSettings struct { // the device linked after verification. ShouldBeLinked bool `json:"shouldBeLinked,omitempty"` - // State: The call state of the device (i.e. whether an Duo call account + // State: The call state of the device (i.e. whether a Duo call account // has been setup on the device). // // Possible values: @@ -20019,7 +20042,7 @@ func (s *AssistantApiSupportedConversationVersion) MarshalJSON() ([]byte, error) // AssistantApiSupportedFeatures: These are the set of features that are // supported by the device. It's a part of the SoftwareCapabilities of -// the device. Next ID: 64 +// the device. Next ID: 66 type AssistantApiSupportedFeatures struct { // AaeNotificationSourceSupported: Whether the client supports the // alternative message notification sources on AAE, in which case @@ -20183,6 +20206,15 @@ type AssistantApiSupportedFeatures struct { // ClientOp. LiveCardsSupported bool `json:"liveCardsSupported,omitempty"` + // LottieAnimationSupport: Whether the client supports the Lottie + // animation library for the broadcast feature. + // + // Possible values: + // "LOTTIE_ANIMATION_UNKNOWN" + // "LOTTIE_ANIMATION_NOT_SUPPORTED" + // "LOTTIE_ANIMATION_SUPPORTED" + LottieAnimationSupport string `json:"lottieAnimationSupport,omitempty"` + // MapsDialogsSupported: Whether the client supports Assistant dialogs // within Maps. This field will be set only when the Maps on the surface // supports Assistant dialogs embedded within Maps. go/gsa-gmm. @@ -20254,6 +20286,11 @@ type AssistantApiSupportedFeatures struct { // privacy-aware lockscreen protocol (go/assistant-lockscreen-spec). PrivacyAwareLockscreenSupported bool `json:"privacyAwareLockscreenSupported,omitempty"` + // ReadMessagesTtsTaperingSupported: Whether the client supports tts + // tapering for the read messages flow. If set to true the tapered tts + // variant would be used during the read messages flow. + ReadMessagesTtsTaperingSupported bool `json:"readMessagesTtsTaperingSupported,omitempty"` + // RemoteCloudCastingEnabled: Whether the client has remote casting // enabled. For ex: we want to disable this for clients like Auto. RemoteCloudCastingEnabled bool `json:"remoteCloudCastingEnabled,omitempty"` @@ -21401,6 +21438,12 @@ type AssistantDevicesPlatformProtoAlarmCapability struct { // within the next 24 hours. RestrictAlarmsToNextDay bool `json:"restrictAlarmsToNextDay,omitempty"` + // SupportsGenericMutations: Whether the client supports mutation of any + // alarm attribute such as time_pattern, recurrence_pattern, etc through + // the MUTATE action. If this is false, MUTATE may only be used for + // changing the alarm's status (to e.g. disable or dismiss the alarm). + SupportsGenericMutations bool `json:"supportsGenericMutations,omitempty"` + // SupportsStopAction: Whether the client supports the STOP alarm // action. If this is false, stop actions will be represented by the // MUTATE action, and the device may need to check alarm state to @@ -23184,7 +23227,7 @@ func (s *AssistantGroundingRankerLaaFeaturesProvider) MarshalJSON() ([]byte, err } // AssistantGroundingRankerMediaGroundingProviderFeatures: Features to -// be passed from Media GP to HGR. Next ID: 14 +// be passed from Media GP to HGR. Next ID: 15 type AssistantGroundingRankerMediaGroundingProviderFeatures struct { // AlbumReleaseType: Release type for an album container. // @@ -23232,6 +23275,10 @@ type AssistantGroundingRankerMediaGroundingProviderFeatures struct { // IsSeedRadioRequest: True if the user requests seed radio. IsSeedRadioRequest bool `json:"isSeedRadioRequest,omitempty"` + // IsYoutubeMusicSeeking: Indicates whether this is youtube content + // seeking music. + IsYoutubeMusicSeeking bool `json:"isYoutubeMusicSeeking,omitempty"` + // MediaContentType: MediaAquaAction::media_content_type from // interpretation. It can be used for cross-content type ranking, for // example, if a candidate's content type does not match this content @@ -23476,10 +23523,6 @@ type AssistantGroundingRankerProviderGroundingProviderFeatures struct { // happen within the provider app. IsInAppProvider bool `json:"isInAppProvider,omitempty"` - // ProviderClusterIdDeprecated: This field is deprecated in favor of the - // integer field below. - ProviderClusterIdDeprecated []string `json:"providerClusterIdDeprecated,omitempty"` - // ProviderClusterIds: Cluster IDs for the provider. This field is // repeated because some providers can be associated with multiple // clusters. PRR specific feature. @@ -24318,6 +24361,8 @@ type AssistantLogsDeviceInfoLog struct { // "PHONE_TARGETING_PROMOTER" // "TRAITS_PROMOTER" // "DEVICE_TYPE_PROMOTER" + // "FEATURE_EXTRACTOR" - feature extractor + // "LABELER" - labeler EliminatingLumosProcessor string `json:"eliminatingLumosProcessor,omitempty"` IsRemote bool `json:"isRemote,omitempty"` @@ -25075,6 +25120,8 @@ type AssistantLogsLumosProcessorInfo struct { // "PHONE_TARGETING_PROMOTER" // "TRAITS_PROMOTER" // "DEVICE_TYPE_PROMOTER" + // "FEATURE_EXTRACTOR" - feature extractor + // "LABELER" - labeler ProcessorName string `json:"processorName,omitempty"` // ForceSendFields is a list of field names (e.g. "DevicesAfterRun") to @@ -25754,7 +25801,7 @@ func (s *AssistantLogsTargetDeviceLog) MarshalJSON() ([]byte, error) { // AssistantPrefulfillmentRankerPrefulfillmentSignals: Signals to be // used by the Prefulfillment Ranker. Derived from the ParsingSignals // and GroundingSignals carried by the FunctionCall. LINT.IfChange Next -// ID: 52 +// ID: 53 type AssistantPrefulfillmentRankerPrefulfillmentSignals struct { // BindingSetAuis: Assistant User Interaction Score for binding set. BindingSetAuis float64 `json:"bindingSetAuis,omitempty"` @@ -25842,6 +25889,9 @@ type AssistantPrefulfillmentRankerPrefulfillmentSignals struct { // IsPodcastIntent: Whether the intent is a podcast intent. IsPodcastIntent bool `json:"isPodcastIntent,omitempty"` + // IsTvmIntent: Whether the intent is a media object tvm intent. + IsTvmIntent bool `json:"isTvmIntent,omitempty"` + // IsVideoIntent: Whether the intent is a media object video intent. IsVideoIntent bool `json:"isVideoIntent,omitempty"` @@ -25988,6 +26038,12 @@ type AssistantPrefulfillmentRankerPrefulfillmentSignals struct { // experimental PFR ranker for Sage and new domains. // "RANKER_NAME_BUCKETED_PARSING_SCORE_FOR_SMARTHOME" - Name for PFR // ranker with bucketed parsing scores for SmartHome. + // "RANKER_NAME_CONSOLIDATED_PFR_HGR_V2_COMMS_CALIBRATED_V2" - Name + // for consolidated PFR, HGRv2 and comms ranker v2. + // "RANKER_NAME_GROUNDING_RANKER_COMMS_EXP_CALIBRATED_V2" - Name for + // experimental calibrated HGR model for Comms V2. + // "RANKER_NAME_CONSOLIDATED_PFR_HGR_PODCAST" - Name for HGR ranker + // for podcast based on RANKER_NAME_CONSOLIDATED_PFR_HGR_V2. RankerName string `json:"rankerName,omitempty"` // SearchDispatch: The determination made by the SearchDispatchingConfig @@ -26016,7 +26072,11 @@ type AssistantPrefulfillmentRankerPrefulfillmentSignals struct { // // Possible values: // "SUB_INTENT_TYPE_UNKNOWN" - // "SUB_INTENT_TYPE_TV_FALLBACK_SEARCH_INTENT" + // "SUB_INTENT_TYPE_TV_FALLBACK_SEARCH_INTENT" - Find_media + // "SUB_INTENT_TYPE_PODCAST" - Play_media, Play_media, Play_media, + // Listen_to_media, Media_entity_bare, Play_and_shuffle_media + // "SUB_INTENT_TYPE_MUSIC_INITIATION_INTENT" - Play_media + // "SUB_INTENT_TYPE_PLAY_RADIO_INTENT" - Play_media SubIntentType string `json:"subIntentType,omitempty"` // TopHypothesisConfidence: Average of per-word confidence for top @@ -38987,7 +39047,7 @@ type GeostoreDataSourceProto struct { // "PROVIDER_GOOGLE" - ABSTRACT // "PROVIDER_GOOGLE_HAND_EDIT" // "PROVIDER_GOOGLE_BORDERS" - All new "Google" provider entries must - // be full ints. The next available ID is: 0x111730B5 + // be full ints. The next available ID is: 0x111730B6 // "PROVIDER_GOOGLE_SUBRANGE" - ABSTRACT // "PROVIDER_GOOGLE_GT_FUSION" // "PROVIDER_GOOGLE_ZAGAT_CMS" @@ -39168,6 +39228,7 @@ type GeostoreDataSourceProto struct { // "PROVIDER_GOOGLE_LOCAL_SERVICES_ADS" // "PROVIDER_GOOGLE_GT_LANE_AUTOMATION" // "PROVIDER_GOOGLE_GEO_NG_LOCAL" + // "PROVIDER_GOOGLE_MAPFACTS_CLEANUP" // "PROVIDER_GOOGLE_LOCALSEARCH" - The next new "Google" provider // entries should be placed above. // "PROVIDER_GOOGLE_TRANSIT" - UMBRELLA @@ -41424,7 +41485,7 @@ type GeostoreFeaturePropertyIdProto struct { // "TRANSIT_LINE_VARIANT_LINE_CONCEPT" // "TRANSIT_LINE_VARIANT_STOP" // "TRANSIT_LINE_VEHICLE_TYPE" - // "TRANSIT_STATION_AGENCY" + // "TRANSIT_STATION_AGENCY_ASSOCIATION" // "VERTICAL_ORDERING_LEVEL" // "WATER_REMOVED_POLYGON" // "DEPRECATED_DO_NOT_USE_EMAIL_ADDRESS" @@ -41471,6 +41532,7 @@ type GeostoreFeaturePropertyIdProto struct { // "DEPRECATED_DO_NOT_USE_WORKAREA" // "DEPRECATED_DO_NOT_USE_INFERRED_GEOMETRY_INCLUDES_GEOMETRY_OF" // "DEPRECATED_DO_NOT_USE_INFERRED_GEOMETRY_EXCLUDES_GEOMETRY_OF" + // "DEPRECATED_DO_NOT_USE_TRANSIT_STATION_AGENCY" FieldType string `json:"fieldType,omitempty"` // KgPropertyId: Required when field_type == KNOWLEDGE_GRAPH_PROPERTY. @@ -43502,7 +43564,7 @@ type GeostoreInternalSourceSummaryProto struct { // "PROVIDER_GOOGLE" - ABSTRACT // "PROVIDER_GOOGLE_HAND_EDIT" // "PROVIDER_GOOGLE_BORDERS" - All new "Google" provider entries must - // be full ints. The next available ID is: 0x111730B5 + // be full ints. The next available ID is: 0x111730B6 // "PROVIDER_GOOGLE_SUBRANGE" - ABSTRACT // "PROVIDER_GOOGLE_GT_FUSION" // "PROVIDER_GOOGLE_ZAGAT_CMS" @@ -43683,6 +43745,7 @@ type GeostoreInternalSourceSummaryProto struct { // "PROVIDER_GOOGLE_LOCAL_SERVICES_ADS" // "PROVIDER_GOOGLE_GT_LANE_AUTOMATION" // "PROVIDER_GOOGLE_GEO_NG_LOCAL" + // "PROVIDER_GOOGLE_MAPFACTS_CLEANUP" // "PROVIDER_GOOGLE_LOCALSEARCH" - The next new "Google" provider // entries should be placed above. // "PROVIDER_GOOGLE_TRANSIT" - UMBRELLA @@ -45684,7 +45747,7 @@ type GeostoreOntologyRawGConceptInstanceProto struct { // "PROVIDER_GOOGLE" - ABSTRACT // "PROVIDER_GOOGLE_HAND_EDIT" // "PROVIDER_GOOGLE_BORDERS" - All new "Google" provider entries must - // be full ints. The next available ID is: 0x111730B5 + // be full ints. The next available ID is: 0x111730B6 // "PROVIDER_GOOGLE_SUBRANGE" - ABSTRACT // "PROVIDER_GOOGLE_GT_FUSION" // "PROVIDER_GOOGLE_ZAGAT_CMS" @@ -45865,6 +45928,7 @@ type GeostoreOntologyRawGConceptInstanceProto struct { // "PROVIDER_GOOGLE_LOCAL_SERVICES_ADS" // "PROVIDER_GOOGLE_GT_LANE_AUTOMATION" // "PROVIDER_GOOGLE_GEO_NG_LOCAL" + // "PROVIDER_GOOGLE_MAPFACTS_CLEANUP" // "PROVIDER_GOOGLE_LOCALSEARCH" - The next new "Google" provider // entries should be placed above. // "PROVIDER_GOOGLE_TRANSIT" - UMBRELLA @@ -46796,7 +46860,7 @@ type GeostoreParkingProto struct { // ParkingAvailable: Indicates whether long-term parking is available at // the feature; if true, long-term parking is available at the feature // and parking allowances may be present on this feature, or - // parking_provider_feature may indicate defered parking feature(s). If + // parking_provider_feature may indicate deferred parking feature(s). If // false, this is an explicit statement that there is no long-term // parking associated with this feature. If unset, we don't know whether // there is long-term parking associated with this feature. If false or @@ -48163,7 +48227,7 @@ type GeostoreProvenanceProto struct { // "PROVIDER_GOOGLE" - ABSTRACT // "PROVIDER_GOOGLE_HAND_EDIT" // "PROVIDER_GOOGLE_BORDERS" - All new "Google" provider entries must - // be full ints. The next available ID is: 0x111730B5 + // be full ints. The next available ID is: 0x111730B6 // "PROVIDER_GOOGLE_SUBRANGE" - ABSTRACT // "PROVIDER_GOOGLE_GT_FUSION" // "PROVIDER_GOOGLE_ZAGAT_CMS" @@ -48344,6 +48408,7 @@ type GeostoreProvenanceProto struct { // "PROVIDER_GOOGLE_LOCAL_SERVICES_ADS" // "PROVIDER_GOOGLE_GT_LANE_AUTOMATION" // "PROVIDER_GOOGLE_GEO_NG_LOCAL" + // "PROVIDER_GOOGLE_MAPFACTS_CLEANUP" // "PROVIDER_GOOGLE_LOCALSEARCH" - The next new "Google" provider // entries should be placed above. // "PROVIDER_GOOGLE_TRANSIT" - UMBRELLA @@ -50437,8 +50502,8 @@ type GeostoreSegmentProto struct { // attribute on its associated road, rather than by a separate segment. // "BICYCLE_FACILITY_PEDESTRIAN_PATH" - This segment has a sidewalk or // other pedestrian pathway that permits bicycles. - // "BICYCLE_FACILITY_WIDE_PEDESTRIAN_PATH" - This segment has a wide - // sidewalk or other pedestrian pathway. + // "BICYCLE_FACILITY_BIKE_FRIENDLY_PEDESTRIAN_PATH" - This segment has + // a bike-friendly (e.g., wide) sidewalk or other pedestrian pathway. // "BICYCLE_FACILITY_SHARED_ROAD" - This segment allows bicycles to // share the road with motor vehicles. It may or may not provide special // accommodation for cyclists. @@ -52306,7 +52371,7 @@ func (s *GeostoreTimezoneProto) MarshalJSON() ([]byte, error) { // a toll cluster. type GeostoreTollClusterProto struct { // Intersection: The list of TYPE_INTERSECTION features that are toll - // points and form this toll cluster. A toll cluser can consist of + // points and form this toll cluster. A toll cluster can consist of // either a single or a group of intersection points called toll points // at the end of various road segments in MapFacts that represent one or // more lanes passing through a toll fixture that all go to the same @@ -52533,12 +52598,48 @@ func (s *GeostoreTransitLineVariantProto) MarshalJSON() ([]byte, error) { // GeostoreTransitStationProto: Encapsulates information related to an // individual transit station. type GeostoreTransitStationProto struct { - // Agencies: Transit agencies which service this transit station. A - // station can be serviced by one or more transit agencies. See - // go/transit-agency-relation-migration for more information. - Agencies []*GeostoreFeatureIdProto `json:"agencies,omitempty"` + // AgencyAssociations: All the transit agencies which service this + // station. A station can be serviced by multiple stations. There may + // only be one agency association per transit agency. See + // go/transit-agency-relation-migration for more details. + AgencyAssociations []*GeostoreTransitStationProtoTransitAgencyAssociationProto `json:"agencyAssociations,omitempty"` - // ForceSendFields is a list of field names (e.g. "Agencies") to + // ForceSendFields is a list of field names (e.g. "AgencyAssociations") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AgencyAssociations") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GeostoreTransitStationProto) MarshalJSON() ([]byte, error) { + type NoMethod GeostoreTransitStationProto + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GeostoreTransitStationProtoTransitAgencyAssociationProto: The +// association between this station and the agency which services this +// station. +type GeostoreTransitStationProtoTransitAgencyAssociationProto struct { + // Agency: The transit agency which services this station. + Agency *GeostoreFeatureIdProto `json:"agency,omitempty"` + + // StationCode: A station code uniquely identifies a transit station + // within the transit agency's network. + StationCode string `json:"stationCode,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Agency") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -52546,8 +52647,8 @@ type GeostoreTransitStationProto struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Agencies") to include in - // API requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Agency") to include in API + // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. @@ -52555,8 +52656,8 @@ type GeostoreTransitStationProto struct { NullFields []string `json:"-"` } -func (s *GeostoreTransitStationProto) MarshalJSON() ([]byte, error) { - type NoMethod GeostoreTransitStationProto +func (s *GeostoreTransitStationProtoTransitAgencyAssociationProto) MarshalJSON() ([]byte, error) { + type NoMethod GeostoreTransitStationProtoTransitAgencyAssociationProto raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } @@ -56994,6 +57095,11 @@ type GoogleCloudContentwarehouseV1DocumentQuery struct { // with any of the specified creators. DocumentCreatorFilter []string `json:"documentCreatorFilter,omitempty"` + // DocumentNameFilter: Search the documents in the list. Format: + // projects/{project_number}/locations/{location}/documents/{document_id} + // . + DocumentNameFilter []string `json:"documentNameFilter,omitempty"` + // DocumentSchemaNames: This filter specifies the exact document schema // Document.document_schema_name of the documents to search against. If // a value isn't specified, documents within the search results are @@ -59251,6 +59357,10 @@ type GoogleCloudContentwarehouseV1SearchDocumentsResponse struct { // results. NextPageToken string `json:"nextPageToken,omitempty"` + // QuestionAnswer: Experimental. Question answer from the query against + // the document. + QuestionAnswer string `json:"questionAnswer,omitempty"` + // TotalSize: The total number of matched documents which is available // only if the client set SearchDocumentsRequest.require_total_size to // `true` or set SearchDocumentsRequest.total_result_size to @@ -62260,7 +62370,7 @@ func (s *GoogleIamV1Policy) MarshalJSON() ([]byte, error) { // period on Monday from 18:00 - 00:00 is represented as a triplet (1, // 1080, 1440). type GoogleInternalAppsWaldoV1alphaAvailabilityPeriod struct { - // DayOfWeek: Day of week, 1 for Monday, ..., 7 for Sunday. + // DayOfWeek: Day of week, 0 for Sunday, 1 for Monday, ... DayOfWeek int64 `json:"dayOfWeek,omitempty"` // PeriodEndMinutes: Period end, in minutes from the start of the day, @@ -63301,23 +63411,23 @@ func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) { } // GoogleTypeColor: Represents a color in the RGBA color space. This -// representation is designed for simplicity of conversion to/from color -// representations in various languages over compactness. For example, -// the fields of this representation can be trivially provided to the -// constructor of `java.awt.Color` in Java; it can also be trivially -// provided to UIColor's `+colorWithRed:green:blue:alpha` method in iOS; -// and, with just a little work, it can be easily formatted into a CSS -// `rgba()` string in JavaScript. This reference page doesn't carry -// information about the absolute color space that should be used to -// interpret the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, -// etc.). By default, applications should assume the sRGB color space. -// When color equality needs to be decided, implementations, unless -// documented otherwise, treat two colors as equal if all their red, -// green, blue, and alpha values each differ by at most 1e-5. Example -// (Java): import com.google.type.Color; // ... public static -// java.awt.Color fromProto(Color protocolor) { float alpha = -// protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; -// return new java.awt.Color( protocolor.getRed(), +// representation is designed for simplicity of conversion to and from +// color representations in various languages over compactness. For +// example, the fields of this representation can be trivially provided +// to the constructor of `java.awt.Color` in Java; it can also be +// trivially provided to UIColor's `+colorWithRed:green:blue:alpha` +// method in iOS; and, with just a little work, it can be easily +// formatted into a CSS `rgba()` string in JavaScript. This reference +// page does not have information about the absolute color space that +// should be used to interpret the RGB value—for example, sRGB, Adobe +// RGB, DCI-P3, and BT.2020. By default, applications should assume the +// sRGB color space. When color equality needs to be decided, +// implementations, unless documented otherwise, treat two colors as +// equal if all their red, green, blue, and alpha values each differ by +// at most `1e-5`. Example (Java): import com.google.type.Color; // ... +// public static java.awt.Color fromProto(Color protocolor) { float +// alpha = protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : +// 1.0; return new java.awt.Color( protocolor.getRed(), // protocolor.getGreen(), protocolor.getBlue(), alpha); } public static // Color toProto(java.awt.Color color) { float red = (float) // color.getRed(); float green = (float) color.getGreen(); float blue = @@ -72991,10 +73101,16 @@ type IndexingDocjoinerDataVersion struct { ChromeCounts *IndexingDocjoinerDataVersionVersionInfo `json:"chromeCounts,omitempty"` - // Creator: + Creator *IndexingDocjoinerDataVersionVersionInfo `json:"creator,omitempty"` + + // DiscoverSource: // LINT.ThenChange(//depot/google3/indexing/ames/spanner/schema/web-versi // on.proto) - Creator *IndexingDocjoinerDataVersionVersionInfo `json:"creator,omitempty"` + DiscoverSource *IndexingDocjoinerDataVersionVersionInfo `json:"discoverSource,omitempty"` + + Discussion *IndexingDocjoinerDataVersionVersionInfo `json:"discussion,omitempty"` + + DocumentIntent *IndexingDocjoinerDataVersionVersionInfo `json:"documentIntent,omitempty"` InstantNavboost *IndexingDocjoinerDataVersionVersionInfo `json:"instantNavboost,omitempty"` @@ -76679,6 +76795,14 @@ type IndexingVideosAsrTranscriptRepairAnnotation struct { // Consider this not gibberish. GibberishResult string `json:"gibberishResult,omitempty"` + // NumGibberishSegments: The number of the above segments that were + // classified as gibberish. + NumGibberishSegments int64 `json:"numGibberishSegments,omitempty"` + + // NumSegmentsClassified: The number of ASR segments that were sent for + // classification. + NumSegmentsClassified int64 `json:"numSegmentsClassified,omitempty"` + // ForceSendFields is a list of field names (e.g. "GibberishResult") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -110641,6 +110765,8 @@ type QualityOrbitAsteroidBeltDocumentIntentScores struct { // "INFORMATION_SOURCE_GOVERNMENT" // "INFORMATION_SOURCE_UGC" // "INFORMATION_SOURCE_RESEARCH_INSTITUTE" + // "QNA" - Question and Answer format discussion page. check + // go/orbit-doc-intents for detailed intent description. // "RESERVED_FOR_NEW_ENUM_135" - ========== Enums for new intents // ========== Instructions: When adding a new intent, use the reserved // enum number from the start of this list, and add a new reserved enum @@ -110666,10 +110792,10 @@ type QualityOrbitAsteroidBeltDocumentIntentScores struct { // "RESERVED_FOR_NEW_ENUM_152" // "RESERVED_FOR_NEW_ENUM_153" // "RESERVED_FOR_NEW_ENUM_154" - // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_98" - ========== + // "RESERVED_FOR_NEW_ENUM_155" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_99" - ========== // Enums for new large intents ========== Please ask orbit@ before using // these. - // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_99" // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_100" // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_101" // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_102" @@ -110830,6 +110956,8 @@ type QualityOrbitAsteroidBeltDocumentIntentScores struct { // "INFORMATION_SOURCE_GOVERNMENT" // "INFORMATION_SOURCE_UGC" // "INFORMATION_SOURCE_RESEARCH_INSTITUTE" + // "QNA" - Question and Answer format discussion page. check + // go/orbit-doc-intents for detailed intent description. // "RESERVED_FOR_NEW_ENUM_135" - ========== Enums for new intents // ========== Instructions: When adding a new intent, use the reserved // enum number from the start of this list, and add a new reserved enum @@ -110855,10 +110983,10 @@ type QualityOrbitAsteroidBeltDocumentIntentScores struct { // "RESERVED_FOR_NEW_ENUM_152" // "RESERVED_FOR_NEW_ENUM_153" // "RESERVED_FOR_NEW_ENUM_154" - // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_98" - ========== + // "RESERVED_FOR_NEW_ENUM_155" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_99" - ========== // Enums for new large intents ========== Please ask orbit@ before using // these. - // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_99" // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_100" // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_101" // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_102" @@ -111045,6 +111173,8 @@ type QualityOrbitAsteroidBeltImageIntentScores struct { // "INFORMATION_SOURCE_GOVERNMENT" // "INFORMATION_SOURCE_UGC" // "INFORMATION_SOURCE_RESEARCH_INSTITUTE" + // "QNA" - Question and Answer format discussion page. check + // go/orbit-doc-intents for detailed intent description. // "RESERVED_FOR_NEW_ENUM_135" - ========== Enums for new intents // ========== Instructions: When adding a new intent, use the reserved // enum number from the start of this list, and add a new reserved enum @@ -111070,10 +111200,10 @@ type QualityOrbitAsteroidBeltImageIntentScores struct { // "RESERVED_FOR_NEW_ENUM_152" // "RESERVED_FOR_NEW_ENUM_153" // "RESERVED_FOR_NEW_ENUM_154" - // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_98" - ========== + // "RESERVED_FOR_NEW_ENUM_155" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_99" - ========== // Enums for new large intents ========== Please ask orbit@ before using // these. - // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_99" // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_100" // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_101" // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_102" @@ -114298,6 +114428,11 @@ type QualityShoppingShoppingAttachmentOffer struct { // score and 1000 being the best. NonDisplayableOrganicScoreMillis int64 `json:"nonDisplayableOrganicScoreMillis,omitempty"` + // NonDisplayableStaleAvailability: This is experimental, not filled in + // yet and not intended to be used. Please contact buyable-corpus@ + // before considering using this field. + NonDisplayableStaleAvailability *ShoppingWebentityShoppingAnnotationOfferAvailabilityInfo `json:"nonDisplayableStaleAvailability,omitempty"` + OfferDocid uint64 `json:"offerDocid,omitempty,string"` // Possible values: @@ -115212,6 +115347,8 @@ type QualityTimebasedLastSignificantUpdate struct { // signal comes from date annotation often selected as a byline. // "LSU_HIGH_PRECISION_RELIABLE_CONTENT_AGE_SUPPORTED_BY_ANNOTATION" - // The signal comes from ContentAge that's supported by date annotation. + // "LSU_HIGH_PRECISION_CREATION_DATE_OF_UGC_PAGE" - The signal comes + // from creation date of UGC page. // "LSU_MEDIUM_PRECISION_FRESH_SALIENT_ANNOTATION_LOW_SUPPORT" // "LSU_MEDIUM_PRECISION_FRESH_SALIENT_ANNOTATION_MEDIUM_SUPPORT" // "LSU_MEDIUM_PRECISION_FRESH_SALIENT_ANNOTATION_HIGH_SUPPORT" @@ -115297,6 +115434,8 @@ type QualityTimebasedLastSignificantUpdateAdjustments struct { // signal comes from date annotation often selected as a byline. // "LSU_HIGH_PRECISION_RELIABLE_CONTENT_AGE_SUPPORTED_BY_ANNOTATION" - // The signal comes from ContentAge that's supported by date annotation. + // "LSU_HIGH_PRECISION_CREATION_DATE_OF_UGC_PAGE" - The signal comes + // from creation date of UGC page. // "LSU_MEDIUM_PRECISION_FRESH_SALIENT_ANNOTATION_LOW_SUPPORT" // "LSU_MEDIUM_PRECISION_FRESH_SALIENT_ANNOTATION_MEDIUM_SUPPORT" // "LSU_MEDIUM_PRECISION_FRESH_SALIENT_ANNOTATION_HIGH_SUPPORT" @@ -126621,6 +126760,11 @@ type ResearchScamNearestNeighborsNeighbor struct { // data, e.g. docid, URL, query string. Docid string `json:"docid,omitempty"` + // Gfv: The field isn't tpopulated by default, but when enabled (eg, in + // the ground-truth pipeline), this field provides the original database + // GFV corresponding to this result. + Gfv *ResearchScamGenericFeatureVector `json:"gfv,omitempty"` + // Metadata: Metadata about the neighbor. This is returned under some // configurations as a serialized proto. The specific proto depends on // which metadata is configured to be returned. @@ -132265,6 +132409,40 @@ func (s *ShoppingWebentityShoppingAnnotationInferredImageNeardupInfo) MarshalJSO return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type ShoppingWebentityShoppingAnnotationOfferAvailabilityInfo struct { + // Possible values: + // "AVAILABILITY_UNKNOWN" + // "AVAILABILITY_IN_STOCK" + // "AVAILABILITY_LIMITED" + // "AVAILABILITY_OUT_OF_STOCK" + // "AVAILABILITY_BACKORDER" + // "AVAILABILITY_PREORDER" + // "AVAILABILITY_ON_DISPLAY_TO_ORDER" + Availability string `json:"availability,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Availability") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Availability") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ShoppingWebentityShoppingAnnotationOfferAvailabilityInfo) MarshalJSON() ([]byte, error) { + type NoMethod ShoppingWebentityShoppingAnnotationOfferAvailabilityInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ShoppingWebentityShoppingAnnotationProductRating: Information about a // rating provided for a product. This can represent an aggregated // rating if count is set. Next Id: 7 @@ -134774,6 +134952,8 @@ func (s *SocialGraphApiProtoNotificationTrigger) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// SocialGraphApiProtoPartialNameOptions: For general information about +// Limited Profiles, see go/limited-profiles-api. LINT.IfChange type SocialGraphApiProtoPartialNameOptions struct { // Language: IETF BCP-47 language code that should be used for // localizing the name computation (go/bcp-47). If not provided, we'll @@ -138055,6 +138235,9 @@ type StorageGraphBfgTripleProvenance struct { // SCOUTS Societal Context Repository entities. Please contact // johnhenry-eng@ before reading or writing this data. DD: // go/scouts-kg-integration-dd + // "ISOLATION_ASTROLOGY_HOROSCOPE" - Access controls for Astrology + // Horoscope features. Please contact search-india-verticals@ before + // reading or writing this data. DD: go/daily-horoscope-dd // "UMP_TESTING_ONLY" - This access control is used to guard data used // by the Unified Media Platform team (ke-media-actions-serving@) for // testing new features. It should never be used for purposes other than @@ -139169,7 +139352,7 @@ type TravelFlightsAirlineConfig struct { // be credited to for mileage accrual. FqtvPartnerCode []string `json:"fqtvPartnerCode,omitempty"` - GreenFaresInfo []*TravelFlightsAirlineConfigGreenFaresInfo `json:"greenFaresInfo,omitempty"` + GreenFaresInfo *TravelFlightsAirlineConfigGreenFaresInfo `json:"greenFaresInfo,omitempty"` // IataCode: Note that some iata_codes are reused (`dup_flag` field). // For details, including how to resolve collisions for airlines shown @@ -142397,10 +142580,13 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "USER_P13N_SETTING_UNSPECIFIED_AT_EVENT_LEVEL" - Event-level test // code corresponding to // com.google.play.consent.proto.Setting.SETTING_UNSPECIFIED. + // "BOOKS_USER_P13N_SETTING_UNSPECIFIED_AT_EVENT_LEVEL" // "USER_P13N_SETTING_ON_AT_EVENT_LEVEL" - Event-level test code // corresponding to com.google.play.consent.proto.Setting.SETTING_ON. + // "BOOKS_USER_P13N_SETTING_ON_AT_EVENT_LEVEL" // "USER_P13N_SETTING_OFF_AT_EVENT_LEVEL" - Event-level test code // corresponding to com.google.play.consent.proto.Setting.SETTING_OFF. + // "BOOKS_USER_P13N_SETTING_OFF_AT_EVENT_LEVEL" // "BATTLESTAR_GAME_IN_MDP_EVENT_LEVEL" - Event-level test code // corresponding to an MDP showing for a game also available on // Battlestar. @@ -142410,6 +142596,13 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // to track triggering of VPN Intent trusted vertical message. // "TRUSTED_VERTICAL_LOAN_INTENT_EVENT_LEVEL" - Event-level test code // to track triggering of LOAN Intent trusted vertical message. + // "SERP_YOUTUBE_VIDEO_CLUSTER_POPULATED_EVENT_LEVEL" - Event-level + // test code to track triggering of SERP YouTube video cluster. + // "LOWQ_APPS_DEMOTION_EVENT_LEVEL" - Event-level test code to track + // triggering of lowQ apps demotion. + // "QUERY_TYPE_MDP_EVENT_LEVEL" - Test code for MDP query event level. + // "QUERY_TYPE_NON_MDP_EVENT_LEVEL" - Test code for non-MDP query + // event level. // "EVENT_LEVEL_TEST_CODE_LIMIT" // "ENTERTAINMENT_CLUSTER_TRIGGERING_AT_SESSION_LEVEL" // "BEST_SELLER_CART_TAG_AT_SESSION_LEVEL" @@ -142722,7 +142915,7 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "SURVEY_AHC_AT_SESSION_LEVEL" // // "PLAY_PASS_CART_MAREKTING_BANNER_ELIGIBLE_AND_SHOWN_CART_SESSION_LEVEL - // " - Test code for tracking eligble users who are shown the cart with + // " - Test code for tracking eligible users who are shown the cart with // marketing banner. // "PLAY_PASS_PERKS_VOUCHER_IN_CART_SESSION_LEVEL" - Test code for // tracking users shown Play Pass perks icon in cart. @@ -143299,10 +143492,13 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "USER_P13N_SETTING_UNSPECIFIED_AT_SESSION_LEVEL" - Session-level // test code corresponding to // com.google.play.consent.proto.Setting.SETTING_UNSPECIFIED. + // "BOOKS_USER_P13N_SETTING_UNSPECIFIED_AT_SESSION_LEVEL" // "USER_P13N_SETTING_ON_AT_SESSION_LEVEL" - Session-level test code // corresponding to com.google.play.consent.proto.Setting.SETTING_ON. + // "BOOKS_USER_P13N_SETTING_ON_AT_SESSION_LEVEL" // "USER_P13N_SETTING_OFF_AT_SESSION_LEVEL" - Session-level test code // corresponding to com.google.play.consent.proto.Setting.SETTING_OFF. + // "BOOKS_USER_P13N_SETTING_OFF_AT_SESSION_LEVEL" // "BATTLESTAR_GAME_IN_MDP_SESSION_LEVEL" - Session-level test code // corresponding to an MDP showing for a game also available on // Battlestar. @@ -143319,10 +143515,28 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "SUBS_OFFER_ON_BUYFLOW_ELIGIBLE_AT_SESSION_LEVEL" - Session level // test code for traking the users who are eligible to subs offer on // buyflow. This is a P3 server level test code. - // "TRUSTED_VERTICAL_VPN_INTENT_SESSION_LEVEL" - Event-level test code - // to track triggering of VPN Intent trusted vertical message. - // "TRUSTED_VERTICAL_LOAN_INTENT_SESSION_LEVEL" - Event-level test + // "TRUSTED_VERTICAL_VPN_INTENT_SESSION_LEVEL" - Session-level test + // code to track triggering of VPN Intent trusted vertical message. + // "TRUSTED_VERTICAL_LOAN_INTENT_SESSION_LEVEL" - Session-level test // code to track triggering of LOAN Intent trusted vertical message. + // "FOP_PARTNER_PROMOTION_SESSION_LEVEL" - Session level test code for + // FOP Partner Promo. + // "SERP_YOUTUBE_VIDEO_CLUSTER_POPULATED_SESSION_LEVEL" - + // Session-level test code to track triggering of SERP YouTube video + // cluster. + // "LOWQ_APPS_DEMOTION_SESSION_LEVEL" - Session-level test code to + // track triggering of lowQ apps demotion. + // "PLANOGRAM_MERCH_TW_DYNASTY_EXTRA_FEATURING" - Session level test + // code for merch run planogram experiment for extra featuring of hit2 + // dynasty in TW. + // "AMPLIFY_FORM_OF_PAYMENT_ELIGIBLE_SESSION_LEVEL" - Session-level + // test code indicating that there is some Fop eligible for + // amplification. Amplification may or may not be visible to the user if + // some experiment flags are disabled. + // "QUERY_TYPE_MDP_SESSION_LEVEL" - Test code for MDP query session + // level. + // "QUERY_TYPE_NON_MDP_SESSION_LEVEL" - Test code for non MDP query + // session level. // "SESSION_LEVEL_TEST_CODE_LIMIT" // "CART_ABANDONMENT_USER_LEVEL" - Cart abandonment flow for purchase // flow. @@ -143474,13 +143688,15 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "SURVEY_AHC_AT_USER_LEVEL" // // "PLAY_PASS_CART_MAREKTING_BANNER_ELIGIBLE_AND_SHOWN_CART_USER_LEVEL" - // - Test code for tracking banner eligble users who are shown the cart. + // - Test code for tracking banner eligible users who are shown the + // cart. // "PLAY_PASS_PERKS_VOUCHER_IN_CART_USER_LEVEL" - Test code for // tracking users shown Play Pass perks icon in cart. // "PLAY_PASS_PARENT_FOCUSED_SPLASH_PAGE_USER_LEVEL" - Test code for // tracking users who see a Play Pass parent-focused splash page. // "PLAY_PASS_SPLASH_PAGE_FOR_UNICORN_USER_LEVEL" // "IN_CART_EXCHANGE_OPTIONS_ELIGIBLE_USER_LEVEL" + // "GE_STAMP_CARD_INDIVIDUALIZATION_COUNTERFACTUAL" // "GE_USER_BUYER_STATE_UNKNOWN" - Test code GE ranker service unknown // users. // "GE_USER_BUYER_STATE_NEVER" - Test code GE ranker service never @@ -143775,6 +143991,8 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "PURCHASE_READINESS_ADD_FOP_AUTH_USER_LEVEL" - User-level test code // for user who is eligible for adding Form of Payment and then adding // Auth Settings from Purchase Readiness Reminder. + // "SUBS_PAYMENT_DECLINE_USER_LEVEL" - User level test code for + // Subscription Payment Decline Reminder. // "MERCH_CONTENT_EXP_ACTIVE_PUBG_USER_LEVEL" - User-level test code // for running content experiments for merch curated clusters. // "MERCH_CONTENT_EXP_ACTIVE_GENSHIN_USER_LEVEL" @@ -143795,10 +144013,13 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "USER_P13N_SETTING_UNSPECIFIED_AT_USER_LEVEL" - User-level test // code corresponding to // com.google.play.consent.proto.Setting.SETTING_UNSPECIFIED. + // "BOOKS_USER_P13N_SETTING_UNSPECIFIED_AT_USER_LEVEL" // "USER_P13N_SETTING_ON_AT_USER_LEVEL" - User-level test code // corresponding to com.google.play.consent.proto.Setting.SETTING_ON. + // "BOOKS_USER_P13N_SETTING_ON_AT_USER_LEVEL" // "USER_P13N_SETTING_OFF_AT_USER_LEVEL" - User-level test code // corresponding to com.google.play.consent.proto.Setting.SETTING_OFF. + // "BOOKS_USER_P13N_SETTING_OFF_AT_USER_LEVEL" // "LIVEOPS_CLUSTER_SERP_TRIGGERING_USER_LEVEL" - User level test code // for cat search live ops cluster triggering. // "BOOKS_NOTIFICATION_RECEIVED_USER_LEVEL" - User level test code for @@ -143813,6 +144034,10 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "SUBS_OFFER_ON_BUYFLOW_ELIGIBLE_AT_USER_LEVEL" - User level test // code for traking the users who are eligible to subs offer on buyflow. // This is a P3 server level test code. + // "FOP_PARTNER_PROMOTION_USER_LEVEL" - User level test code for FOP + // Partner Promo. + // "BOOKS_LOYALTY_PROMO_BANNER_WEEKLY_PRIZE_USER_LEVEL" - User level + // test code for users who have seen a Loyalty weekly prize banner. // "USER_LEVEL_TEST_CODE_LIMIT" TestCode []string `json:"testCode,omitempty"` @@ -158099,7 +158324,7 @@ func (s *WWWMetaTag) MarshalJSON() ([]byte, error) { // WWWResultInfoSubImageDocInfo: The following message contains info of // sub image docs, it is populated in query_state and consumed in web -// image boost twiddler: (go/WebImageBoostTwiddler). NextID: 25 +// image boost twiddler: (go/WebImageBoostTwiddler). NextID: 26 type WWWResultInfoSubImageDocInfo struct { AdditionalSafesearchSignals []int64 `json:"additionalSafesearchSignals,omitempty"` @@ -158241,6 +158466,9 @@ type WWWResultInfoSubImageDocInfo struct { // (Off-Topic) to 1.0 (Very Useful). EstRelevance float64 `json:"estRelevance,omitempty"` + // EstSigmaU: Estimated Sigma U calculated from U*. + EstSigmaU float64 `json:"estSigmaU,omitempty"` + FlowOutput *ImageContentFlowProtoProd `json:"flowOutput,omitempty"` Height int64 `json:"height,omitempty"` @@ -158324,6 +158552,7 @@ func (s *WWWResultInfoSubImageDocInfo) UnmarshalJSON(data []byte) error { DocumentTrust gensupport.JSONFloat64 `json:"documentTrust"` EqStar gensupport.JSONFloat64 `json:"eqStar"` EstRelevance gensupport.JSONFloat64 `json:"estRelevance"` + EstSigmaU gensupport.JSONFloat64 `json:"estSigmaU"` HumanModelScore gensupport.JSONFloat64 `json:"humanModelScore"` PamirNormalizedScore gensupport.JSONFloat64 `json:"pamirNormalizedScore"` Salience gensupport.JSONFloat64 `json:"salience"` @@ -158340,6 +158569,7 @@ func (s *WWWResultInfoSubImageDocInfo) UnmarshalJSON(data []byte) error { s.DocumentTrust = float64(s1.DocumentTrust) s.EqStar = float64(s1.EqStar) s.EstRelevance = float64(s1.EstRelevance) + s.EstSigmaU = float64(s1.EstSigmaU) s.HumanModelScore = float64(s1.HumanModelScore) s.PamirNormalizedScore = float64(s1.PamirNormalizedScore) s.Salience = float64(s1.Salience) diff --git a/displayvideo/v1/displayvideo-api.json b/displayvideo/v1/displayvideo-api.json index 2967601b3bc..1c04fb53017 100644 --- a/displayvideo/v1/displayvideo-api.json +++ b/displayvideo/v1/displayvideo-api.json @@ -8146,7 +8146,7 @@ } } }, - "revision": "20230518", + "revision": "20230530", "rootUrl": "https://displayvideo.googleapis.com/", "schemas": { "ActivateManualTriggerRequest": { @@ -16981,35 +16981,35 @@ ], "enumDescriptions": [ "Type value is not specified or is unknown in this version.", - "The cost is charged for using Adloox.", - "The cost is charged for using Adloox Pre-Bid.", - "The cost is charged for using AdSafe.", - "The cost is charged for using AdExpose.", - "The cost is charged for using Aggregate Knowledge.", - "The cost is charged for using an Agency Trading Desk.", - "The cost is charged for using DV360.", - "The cost is charged for using comScore vCE.", - "The cost is charged for using a Data Management Platform.", - "The default cost type.", - "The cost is charged for using DoubleVerify.", - "The cost is charged for using DoubleVerify Pre-Bid.", - "The cost is charged for using Evidon.", - "The cost is charged for using Integral Ad Science Video.", - "The cost is charged for using Integral Ad Science Pre-Bid.", - "The cost is charged for using media cost data.", - "The cost is charged for using MOAT Video.", - "The cost is charged for using Nielsen Digital Ad Ratings.", - "The cost is charged for using ShopLocal.", - "The cost is charged for using Teracent.", - "The cost is charged for using a third-party ad server.", - "The cost is charged for using TrustMetrics.", - "The cost is charged for using Vizu.", - "The cost is charged for using AdLingo.", - "The cost is charged as custom fee 1.", - "The cost is charged as custom fee 2.", - "The cost is charged as custom fee 3.", - "The cost is charged as custom fee 4.", - "The cost is charged as custom fee 5." + "The cost is charged for using Adloox. Billed by the partner.", + "The cost is charged for using Adloox Pre-Bid. Billed through DV360.", + "The cost is charged for using AdSafe. Billed by the partner.", + "The cost is charged for using AdExpose. Billed by the partner.", + "The cost is charged for using Aggregate Knowledge. Billed by the partner.", + "The cost is charged for using an Agency Trading Desk. Billed by the partner.", + "The cost is charged for using DV360. Billed through DV360.", + "The cost is charged for using comScore vCE. Billed through DV360.", + "The cost is charged for using a Data Management Platform. Billed by the partner.", + "The default cost type. Billed by the partner.", + "The cost is charged for using DoubleVerify. Billed by the partner.", + "The cost is charged for using DoubleVerify Pre-Bid. Billed through DV360.", + "The cost is charged for using Evidon. Billed by the partner.", + "The cost is charged for using Integral Ad Science Video. Billed by the partner.", + "The cost is charged for using Integral Ad Science Pre-Bid. Billed through DV360.", + "The cost is charged for using media cost data. Billed by the partner.", + "The cost is charged for using MOAT Video. Billed by the partner.", + "The cost is charged for using Nielsen Digital Ad Ratings. Billed through DV360.", + "The cost is charged for using ShopLocal. Billed by the partner.", + "The cost is charged for using Teracent. Billed by the partner.", + "The cost is charged for using a third-party ad server. Billed by the partner.", + "The cost is charged for using TrustMetrics. Billed by the partner.", + "The cost is charged for using Vizu. Billed by the partner.", + "The cost is charged for using AdLingo. Billed through DV360.", + "The cost is charged as custom fee 1. Billed by the partner.", + "The cost is charged as custom fee 2. Billed by the partner.", + "The cost is charged as custom fee 3. Billed by the partner.", + "The cost is charged as custom fee 4. Billed by the partner.", + "The cost is charged as custom fee 5. Billed by the partner." ], "type": "string" }, diff --git a/displayvideo/v1/displayvideo-gen.go b/displayvideo/v1/displayvideo-gen.go index a02459ab1af..55b5909a318 100644 --- a/displayvideo/v1/displayvideo-gen.go +++ b/displayvideo/v1/displayvideo-gen.go @@ -13549,58 +13549,63 @@ type PartnerCost struct { // "PARTNER_COST_TYPE_UNSPECIFIED" - Type value is not specified or is // unknown in this version. // "PARTNER_COST_TYPE_ADLOOX" - The cost is charged for using Adloox. + // Billed by the partner. // "PARTNER_COST_TYPE_ADLOOX_PREBID" - The cost is charged for using - // Adloox Pre-Bid. + // Adloox Pre-Bid. Billed through DV360. // "PARTNER_COST_TYPE_ADSAFE" - The cost is charged for using AdSafe. + // Billed by the partner. // "PARTNER_COST_TYPE_ADXPOSE" - The cost is charged for using - // AdExpose. + // AdExpose. Billed by the partner. // "PARTNER_COST_TYPE_AGGREGATE_KNOWLEDGE" - The cost is charged for - // using Aggregate Knowledge. + // using Aggregate Knowledge. Billed by the partner. // "PARTNER_COST_TYPE_AGENCY_TRADING_DESK" - The cost is charged for - // using an Agency Trading Desk. + // using an Agency Trading Desk. Billed by the partner. // "PARTNER_COST_TYPE_DV360_FEE" - The cost is charged for using - // DV360. + // DV360. Billed through DV360. // "PARTNER_COST_TYPE_COMSCORE_VCE" - The cost is charged for using - // comScore vCE. + // comScore vCE. Billed through DV360. // "PARTNER_COST_TYPE_DATA_MANAGEMENT_PLATFORM" - The cost is charged - // for using a Data Management Platform. - // "PARTNER_COST_TYPE_DEFAULT" - The default cost type. + // for using a Data Management Platform. Billed by the partner. + // "PARTNER_COST_TYPE_DEFAULT" - The default cost type. Billed by the + // partner. // "PARTNER_COST_TYPE_DOUBLE_VERIFY" - The cost is charged for using - // DoubleVerify. + // DoubleVerify. Billed by the partner. // "PARTNER_COST_TYPE_DOUBLE_VERIFY_PREBID" - The cost is charged for - // using DoubleVerify Pre-Bid. + // using DoubleVerify Pre-Bid. Billed through DV360. // "PARTNER_COST_TYPE_EVIDON" - The cost is charged for using Evidon. + // Billed by the partner. // "PARTNER_COST_TYPE_INTEGRAL_AD_SCIENCE_VIDEO" - The cost is charged - // for using Integral Ad Science Video. + // for using Integral Ad Science Video. Billed by the partner. // "PARTNER_COST_TYPE_INTEGRAL_AD_SCIENCE_PREBID" - The cost is - // charged for using Integral Ad Science Pre-Bid. + // charged for using Integral Ad Science Pre-Bid. Billed through DV360. // "PARTNER_COST_TYPE_MEDIA_COST_DATA" - The cost is charged for using - // media cost data. + // media cost data. Billed by the partner. // "PARTNER_COST_TYPE_MOAT_VIDEO" - The cost is charged for using MOAT - // Video. + // Video. Billed by the partner. // "PARTNER_COST_TYPE_NIELSEN_DAR" - The cost is charged for using - // Nielsen Digital Ad Ratings. + // Nielsen Digital Ad Ratings. Billed through DV360. // "PARTNER_COST_TYPE_SHOP_LOCAL" - The cost is charged for using - // ShopLocal. + // ShopLocal. Billed by the partner. // "PARTNER_COST_TYPE_TERACENT" - The cost is charged for using - // Teracent. + // Teracent. Billed by the partner. // "PARTNER_COST_TYPE_THIRD_PARTY_AD_SERVER" - The cost is charged for - // using a third-party ad server. + // using a third-party ad server. Billed by the partner. // "PARTNER_COST_TYPE_TRUST_METRICS" - The cost is charged for using - // TrustMetrics. + // TrustMetrics. Billed by the partner. // "PARTNER_COST_TYPE_VIZU" - The cost is charged for using Vizu. + // Billed by the partner. // "PARTNER_COST_TYPE_ADLINGO_FEE" - The cost is charged for using - // AdLingo. + // AdLingo. Billed through DV360. // "PARTNER_COST_TYPE_CUSTOM_FEE_1" - The cost is charged as custom - // fee 1. + // fee 1. Billed by the partner. // "PARTNER_COST_TYPE_CUSTOM_FEE_2" - The cost is charged as custom - // fee 2. + // fee 2. Billed by the partner. // "PARTNER_COST_TYPE_CUSTOM_FEE_3" - The cost is charged as custom - // fee 3. + // fee 3. Billed by the partner. // "PARTNER_COST_TYPE_CUSTOM_FEE_4" - The cost is charged as custom - // fee 4. + // fee 4. Billed by the partner. // "PARTNER_COST_TYPE_CUSTOM_FEE_5" - The cost is charged as custom - // fee 5. + // fee 5. Billed by the partner. CostType string `json:"costType,omitempty"` // FeeAmount: The CPM fee amount in micros of advertiser's currency. diff --git a/displayvideo/v2/displayvideo-api.json b/displayvideo/v2/displayvideo-api.json index a6627e3b219..d9cb56031a2 100644 --- a/displayvideo/v2/displayvideo-api.json +++ b/displayvideo/v2/displayvideo-api.json @@ -9172,7 +9172,7 @@ } } }, - "revision": "20230518", + "revision": "20230530", "rootUrl": "https://displayvideo.googleapis.com/", "schemas": { "ActivateManualTriggerRequest": { @@ -18700,35 +18700,35 @@ ], "enumDescriptions": [ "Type value is not specified or is unknown in this version.", - "The cost is charged for using Adloox.", - "The cost is charged for using Adloox Pre-Bid.", - "The cost is charged for using AdSafe.", - "The cost is charged for using AdExpose.", - "The cost is charged for using Aggregate Knowledge.", - "The cost is charged for using an Agency Trading Desk.", - "The cost is charged for using DV360.", - "The cost is charged for using comScore vCE.", - "The cost is charged for using a Data Management Platform.", - "The default cost type.", - "The cost is charged for using DoubleVerify.", - "The cost is charged for using DoubleVerify Pre-Bid.", - "The cost is charged for using Evidon.", - "The cost is charged for using Integral Ad Science Video.", - "The cost is charged for using Integral Ad Science Pre-Bid.", - "The cost is charged for using media cost data.", - "The cost is charged for using MOAT Video.", - "The cost is charged for using Nielsen Digital Ad Ratings.", - "The cost is charged for using ShopLocal.", - "The cost is charged for using Teracent.", - "The cost is charged for using a third-party ad server.", - "The cost is charged for using TrustMetrics.", - "The cost is charged for using Vizu.", - "The cost is charged for using AdLingo.", - "The cost is charged as custom fee 1.", - "The cost is charged as custom fee 2.", - "The cost is charged as custom fee 3.", - "The cost is charged as custom fee 4.", - "The cost is charged as custom fee 5." + "The cost is charged for using Adloox. Billed by the partner.", + "The cost is charged for using Adloox Pre-Bid. Billed through DV360.", + "The cost is charged for using AdSafe. Billed by the partner.", + "The cost is charged for using AdExpose. Billed by the partner.", + "The cost is charged for using Aggregate Knowledge. Billed by the partner.", + "The cost is charged for using an Agency Trading Desk. Billed by the partner.", + "The cost is charged for using DV360. Billed through DV360.", + "The cost is charged for using comScore vCE. Billed through DV360.", + "The cost is charged for using a Data Management Platform. Billed by the partner.", + "The default cost type. Billed by the partner.", + "The cost is charged for using DoubleVerify. Billed by the partner.", + "The cost is charged for using DoubleVerify Pre-Bid. Billed through DV360.", + "The cost is charged for using Evidon. Billed by the partner.", + "The cost is charged for using Integral Ad Science Video. Billed by the partner.", + "The cost is charged for using Integral Ad Science Pre-Bid. Billed through DV360.", + "The cost is charged for using media cost data. Billed by the partner.", + "The cost is charged for using MOAT Video. Billed by the partner.", + "The cost is charged for using Nielsen Digital Ad Ratings. Billed through DV360.", + "The cost is charged for using ShopLocal. Billed by the partner.", + "The cost is charged for using Teracent. Billed by the partner.", + "The cost is charged for using a third-party ad server. Billed by the partner.", + "The cost is charged for using TrustMetrics. Billed by the partner.", + "The cost is charged for using Vizu. Billed by the partner.", + "The cost is charged for using AdLingo. Billed through DV360.", + "The cost is charged as custom fee 1. Billed by the partner.", + "The cost is charged as custom fee 2. Billed by the partner.", + "The cost is charged as custom fee 3. Billed by the partner.", + "The cost is charged as custom fee 4. Billed by the partner.", + "The cost is charged as custom fee 5. Billed by the partner." ], "type": "string" }, diff --git a/displayvideo/v2/displayvideo-gen.go b/displayvideo/v2/displayvideo-gen.go index e9a5d67465a..6394ae7dbf0 100644 --- a/displayvideo/v2/displayvideo-gen.go +++ b/displayvideo/v2/displayvideo-gen.go @@ -14687,58 +14687,63 @@ type PartnerCost struct { // "PARTNER_COST_TYPE_UNSPECIFIED" - Type value is not specified or is // unknown in this version. // "PARTNER_COST_TYPE_ADLOOX" - The cost is charged for using Adloox. + // Billed by the partner. // "PARTNER_COST_TYPE_ADLOOX_PREBID" - The cost is charged for using - // Adloox Pre-Bid. + // Adloox Pre-Bid. Billed through DV360. // "PARTNER_COST_TYPE_ADSAFE" - The cost is charged for using AdSafe. + // Billed by the partner. // "PARTNER_COST_TYPE_ADXPOSE" - The cost is charged for using - // AdExpose. + // AdExpose. Billed by the partner. // "PARTNER_COST_TYPE_AGGREGATE_KNOWLEDGE" - The cost is charged for - // using Aggregate Knowledge. + // using Aggregate Knowledge. Billed by the partner. // "PARTNER_COST_TYPE_AGENCY_TRADING_DESK" - The cost is charged for - // using an Agency Trading Desk. + // using an Agency Trading Desk. Billed by the partner. // "PARTNER_COST_TYPE_DV360_FEE" - The cost is charged for using - // DV360. + // DV360. Billed through DV360. // "PARTNER_COST_TYPE_COMSCORE_VCE" - The cost is charged for using - // comScore vCE. + // comScore vCE. Billed through DV360. // "PARTNER_COST_TYPE_DATA_MANAGEMENT_PLATFORM" - The cost is charged - // for using a Data Management Platform. - // "PARTNER_COST_TYPE_DEFAULT" - The default cost type. + // for using a Data Management Platform. Billed by the partner. + // "PARTNER_COST_TYPE_DEFAULT" - The default cost type. Billed by the + // partner. // "PARTNER_COST_TYPE_DOUBLE_VERIFY" - The cost is charged for using - // DoubleVerify. + // DoubleVerify. Billed by the partner. // "PARTNER_COST_TYPE_DOUBLE_VERIFY_PREBID" - The cost is charged for - // using DoubleVerify Pre-Bid. + // using DoubleVerify Pre-Bid. Billed through DV360. // "PARTNER_COST_TYPE_EVIDON" - The cost is charged for using Evidon. + // Billed by the partner. // "PARTNER_COST_TYPE_INTEGRAL_AD_SCIENCE_VIDEO" - The cost is charged - // for using Integral Ad Science Video. + // for using Integral Ad Science Video. Billed by the partner. // "PARTNER_COST_TYPE_INTEGRAL_AD_SCIENCE_PREBID" - The cost is - // charged for using Integral Ad Science Pre-Bid. + // charged for using Integral Ad Science Pre-Bid. Billed through DV360. // "PARTNER_COST_TYPE_MEDIA_COST_DATA" - The cost is charged for using - // media cost data. + // media cost data. Billed by the partner. // "PARTNER_COST_TYPE_MOAT_VIDEO" - The cost is charged for using MOAT - // Video. + // Video. Billed by the partner. // "PARTNER_COST_TYPE_NIELSEN_DAR" - The cost is charged for using - // Nielsen Digital Ad Ratings. + // Nielsen Digital Ad Ratings. Billed through DV360. // "PARTNER_COST_TYPE_SHOP_LOCAL" - The cost is charged for using - // ShopLocal. + // ShopLocal. Billed by the partner. // "PARTNER_COST_TYPE_TERACENT" - The cost is charged for using - // Teracent. + // Teracent. Billed by the partner. // "PARTNER_COST_TYPE_THIRD_PARTY_AD_SERVER" - The cost is charged for - // using a third-party ad server. + // using a third-party ad server. Billed by the partner. // "PARTNER_COST_TYPE_TRUST_METRICS" - The cost is charged for using - // TrustMetrics. + // TrustMetrics. Billed by the partner. // "PARTNER_COST_TYPE_VIZU" - The cost is charged for using Vizu. + // Billed by the partner. // "PARTNER_COST_TYPE_ADLINGO_FEE" - The cost is charged for using - // AdLingo. + // AdLingo. Billed through DV360. // "PARTNER_COST_TYPE_CUSTOM_FEE_1" - The cost is charged as custom - // fee 1. + // fee 1. Billed by the partner. // "PARTNER_COST_TYPE_CUSTOM_FEE_2" - The cost is charged as custom - // fee 2. + // fee 2. Billed by the partner. // "PARTNER_COST_TYPE_CUSTOM_FEE_3" - The cost is charged as custom - // fee 3. + // fee 3. Billed by the partner. // "PARTNER_COST_TYPE_CUSTOM_FEE_4" - The cost is charged as custom - // fee 4. + // fee 4. Billed by the partner. // "PARTNER_COST_TYPE_CUSTOM_FEE_5" - The cost is charged as custom - // fee 5. + // fee 5. Billed by the partner. CostType string `json:"costType,omitempty"` // FeeAmount: The CPM fee amount in micros of advertiser's currency. diff --git a/firebaseappcheck/v1beta/firebaseappcheck-api.json b/firebaseappcheck/v1beta/firebaseappcheck-api.json index c6e9cde3399..00f276599ba 100644 --- a/firebaseappcheck/v1beta/firebaseappcheck-api.json +++ b/firebaseappcheck/v1beta/firebaseappcheck-api.json @@ -138,6 +138,97 @@ } } }, + "oauthClients": { + "methods": { + "exchangeAppAttestAssertion": { + "description": "Accepts an App Attest assertion and an artifact previously obtained from ExchangeAppAttestAttestation and verifies those with Apple. If valid, returns an AppCheckToken.", + "flatPath": "v1beta/oauthClients/{oauthClientsId}:exchangeAppAttestAssertion", + "httpMethod": "POST", + "id": "firebaseappcheck.oauthClients.exchangeAppAttestAssertion", + "parameterOrder": [ + "app" + ], + "parameters": { + "app": { + "description": "Required. The relative resource name of the iOS app, in the format: ``` projects/{project_number}/apps/{app_id} ``` If necessary, the `project_number` element can be replaced with the project ID of the Firebase project. Learn more about using project identifiers in Google's [AIP 2510](https://google.aip.dev/cloud/2510) standard.", + "location": "path", + "pattern": "^oauthClients/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+app}:exchangeAppAttestAssertion", + "request": { + "$ref": "GoogleFirebaseAppcheckV1betaExchangeAppAttestAssertionRequest" + }, + "response": { + "$ref": "GoogleFirebaseAppcheckV1betaAppCheckToken" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "exchangeAppAttestAttestation": { + "description": "Accepts an App Attest CBOR attestation and verifies it with Apple using your preconfigured team and bundle IDs. If valid, returns an attestation artifact that can later be exchanged for an AppCheckToken using ExchangeAppAttestAssertion. For convenience and performance, this method's response object will also contain an AppCheckToken (if the verification is successful).", + "flatPath": "v1beta/oauthClients/{oauthClientsId}:exchangeAppAttestAttestation", + "httpMethod": "POST", + "id": "firebaseappcheck.oauthClients.exchangeAppAttestAttestation", + "parameterOrder": [ + "app" + ], + "parameters": { + "app": { + "description": "Required. The relative resource name of the iOS app, in the format: ``` projects/{project_number}/apps/{app_id} ``` If necessary, the `project_number` element can be replaced with the project ID of the Firebase project. Learn more about using project identifiers in Google's [AIP 2510](https://google.aip.dev/cloud/2510) standard.", + "location": "path", + "pattern": "^oauthClients/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+app}:exchangeAppAttestAttestation", + "request": { + "$ref": "GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationRequest" + }, + "response": { + "$ref": "GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "generateAppAttestChallenge": { + "description": "Generates a challenge that protects the integrity of an immediately following call to ExchangeAppAttestAttestation or ExchangeAppAttestAssertion. A challenge should not be reused for multiple calls.", + "flatPath": "v1beta/oauthClients/{oauthClientsId}:generateAppAttestChallenge", + "httpMethod": "POST", + "id": "firebaseappcheck.oauthClients.generateAppAttestChallenge", + "parameterOrder": [ + "app" + ], + "parameters": { + "app": { + "description": "Required. The relative resource name of the iOS app, in the format: ``` projects/{project_number}/apps/{app_id} ``` If necessary, the `project_number` element can be replaced with the project ID of the Firebase project. Learn more about using project identifiers in Google's [AIP 2510](https://google.aip.dev/cloud/2510) standard.", + "location": "path", + "pattern": "^oauthClients/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+app}:generateAppAttestChallenge", + "request": { + "$ref": "GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeRequest" + }, + "response": { + "$ref": "GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + } + } + }, "projects": { "methods": { "verifyAppCheckToken": { @@ -1505,7 +1596,7 @@ } } }, - "revision": "20230522", + "revision": "20230529", "rootUrl": "https://firebaseappcheck.googleapis.com/", "schemas": { "GoogleFirebaseAppcheckV1betaAppAttestConfig": { @@ -1757,6 +1848,10 @@ "description": "Required. A one-time challenge returned by an immediately prior call to GenerateAppAttestChallenge.", "format": "byte", "type": "string" + }, + "limitedUse": { + "description": "Forces a short-lived token with a 5 minute TTL. Useful when the client wishes to impose stricter TTL requirements for this exchange. Default: false.", + "type": "boolean" } }, "type": "object" @@ -1779,6 +1874,10 @@ "description": "Required. The key ID generated by App Attest for the client app.", "format": "byte", "type": "string" + }, + "limitedUse": { + "description": "Forces a short-lived token with a 5 minute TTL. Useful when the client wishes to impose stricter TTL requirements for this exchange. Default: false.", + "type": "boolean" } }, "type": "object" @@ -1810,6 +1909,10 @@ "customToken": { "description": "Required. A custom token signed using your project's Admin SDK service account credentials.", "type": "string" + }, + "limitedUse": { + "description": "Forces a short-lived token with a 5 minute TTL. Useful when the client wishes to impose stricter TTL requirements for this exchange. Default: false.", + "type": "boolean" } }, "type": "object" @@ -1821,6 +1924,10 @@ "debugToken": { "description": "Required. A debug token secret. This string must match a debug token secret previously created using CreateDebugToken.", "type": "string" + }, + "limitedUse": { + "description": "Forces a short-lived token with a 5 minute TTL. Useful when the client wishes to impose stricter TTL requirements for this exchange. Default: false.", + "type": "boolean" } }, "type": "object" @@ -1832,6 +1939,10 @@ "deviceToken": { "description": "Required. The `device_token` as returned by Apple's client-side [DeviceCheck API](https://developer.apple.com/documentation/devicecheck/dcdevice). This is the base64 encoded `Data` (Swift) or `NSData` (ObjC) object.", "type": "string" + }, + "limitedUse": { + "description": "Forces a short-lived token with a 5 minute TTL. Useful when the client wishes to impose stricter TTL requirements for this exchange. Default: false.", + "type": "boolean" } }, "type": "object" @@ -1840,6 +1951,10 @@ "description": "Request message for the ExchangePlayIntegrityToken method.", "id": "GoogleFirebaseAppcheckV1betaExchangePlayIntegrityTokenRequest", "properties": { + "limitedUse": { + "description": "Forces a short-lived token with a 5 minute TTL. Useful when the client wishes to impose stricter TTL requirements for this exchange. Default: false.", + "type": "boolean" + }, "playIntegrityToken": { "description": "Required. The [integrity verdict response token from Play Integrity](https://developer.android.com/google/play/integrity/verdict#decrypt-verify) issued to your app.", "type": "string" @@ -1851,6 +1966,10 @@ "description": "Request message for the ExchangeRecaptchaEnterpriseToken method.", "id": "GoogleFirebaseAppcheckV1betaExchangeRecaptchaEnterpriseTokenRequest", "properties": { + "limitedUse": { + "description": "Forces a short-lived token with a 5 minute TTL. Useful when the client wishes to impose stricter TTL requirements for this exchange. Default: false.", + "type": "boolean" + }, "recaptchaEnterpriseToken": { "description": "Required. The reCAPTCHA token as returned by the [reCAPTCHA Enterprise JavaScript API](https://cloud.google.com/recaptcha-enterprise/docs/instrument-web-pages).", "type": "string" @@ -1873,6 +1992,10 @@ "description": "Request message for the ExchangeRecaptchaV3Token method.", "id": "GoogleFirebaseAppcheckV1betaExchangeRecaptchaV3TokenRequest", "properties": { + "limitedUse": { + "description": "Forces a short-lived token with a 5 minute TTL. Useful when the client wishes to impose stricter TTL requirements for this exchange. Default: false.", + "type": "boolean" + }, "recaptchaV3Token": { "description": "Required. The reCAPTCHA token as returned by the [reCAPTCHA v3 JavaScript API](https://developers.google.com/recaptcha/docs/v3).", "type": "string" diff --git a/firebaseappcheck/v1beta/firebaseappcheck-gen.go b/firebaseappcheck/v1beta/firebaseappcheck-gen.go index b089c662989..8d596a9b568 100644 --- a/firebaseappcheck/v1beta/firebaseappcheck-gen.go +++ b/firebaseappcheck/v1beta/firebaseappcheck-gen.go @@ -128,6 +128,7 @@ func New(client *http.Client) (*Service, error) { } s := &Service{client: client, BasePath: basePath} s.Jwks = NewJwksService(s) + s.OauthClients = NewOauthClientsService(s) s.Projects = NewProjectsService(s) return s, nil } @@ -139,6 +140,8 @@ type Service struct { Jwks *JwksService + OauthClients *OauthClientsService + Projects *ProjectsService } @@ -158,6 +161,15 @@ type JwksService struct { s *Service } +func NewOauthClientsService(s *Service) *OauthClientsService { + rs := &OauthClientsService{s: s} + return rs +} + +type OauthClientsService struct { + s *Service +} + func NewProjectsService(s *Service) *ProjectsService { rs := &ProjectsService{s: s} rs.Apps = NewProjectsAppsService(s) @@ -851,6 +863,11 @@ type GoogleFirebaseAppcheckV1betaExchangeAppAttestAssertionRequest struct { // prior call to GenerateAppAttestChallenge. Challenge string `json:"challenge,omitempty"` + // LimitedUse: Forces a short-lived token with a 5 minute TTL. Useful + // when the client wishes to impose stricter TTL requirements for this + // exchange. Default: false. + LimitedUse bool `json:"limitedUse,omitempty"` + // ForceSendFields is a list of field names (e.g. "Artifact") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -890,6 +907,11 @@ type GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationRequest struct { // app. KeyId string `json:"keyId,omitempty"` + // LimitedUse: Forces a short-lived token with a 5 minute TTL. Useful + // when the client wishes to impose stricter TTL requirements for this + // exchange. Default: false. + LimitedUse bool `json:"limitedUse,omitempty"` + // ForceSendFields is a list of field names (e.g. // "AttestationStatement") to unconditionally include in API requests. // By default, fields with empty or default values are omitted from API @@ -962,6 +984,11 @@ type GoogleFirebaseAppcheckV1betaExchangeCustomTokenRequest struct { // Admin SDK service account credentials. CustomToken string `json:"customToken,omitempty"` + // LimitedUse: Forces a short-lived token with a 5 minute TTL. Useful + // when the client wishes to impose stricter TTL requirements for this + // exchange. Default: false. + LimitedUse bool `json:"limitedUse,omitempty"` + // ForceSendFields is a list of field names (e.g. "CustomToken") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -992,6 +1019,11 @@ type GoogleFirebaseAppcheckV1betaExchangeDebugTokenRequest struct { // debug token secret previously created using CreateDebugToken. DebugToken string `json:"debugToken,omitempty"` + // LimitedUse: Forces a short-lived token with a 5 minute TTL. Useful + // when the client wishes to impose stricter TTL requirements for this + // exchange. Default: false. + LimitedUse bool `json:"limitedUse,omitempty"` + // ForceSendFields is a list of field names (e.g. "DebugToken") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -1024,6 +1056,11 @@ type GoogleFirebaseAppcheckV1betaExchangeDeviceCheckTokenRequest struct { // This is the base64 encoded `Data` (Swift) or `NSData` (ObjC) object. DeviceToken string `json:"deviceToken,omitempty"` + // LimitedUse: Forces a short-lived token with a 5 minute TTL. Useful + // when the client wishes to impose stricter TTL requirements for this + // exchange. Default: false. + LimitedUse bool `json:"limitedUse,omitempty"` + // ForceSendFields is a list of field names (e.g. "DeviceToken") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -1050,27 +1087,31 @@ func (s *GoogleFirebaseAppcheckV1betaExchangeDeviceCheckTokenRequest) MarshalJSO // GoogleFirebaseAppcheckV1betaExchangePlayIntegrityTokenRequest: // Request message for the ExchangePlayIntegrityToken method. type GoogleFirebaseAppcheckV1betaExchangePlayIntegrityTokenRequest struct { + // LimitedUse: Forces a short-lived token with a 5 minute TTL. Useful + // when the client wishes to impose stricter TTL requirements for this + // exchange. Default: false. + LimitedUse bool `json:"limitedUse,omitempty"` + // PlayIntegrityToken: Required. The integrity verdict response token // from Play Integrity // (https://developer.android.com/google/play/integrity/verdict#decrypt-verify) // issued to your app. PlayIntegrityToken string `json:"playIntegrityToken,omitempty"` - // ForceSendFields is a list of field names (e.g. "PlayIntegrityToken") - // to unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "LimitedUse") to + // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "PlayIntegrityToken") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an 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. "LimitedUse") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } @@ -1083,27 +1124,30 @@ func (s *GoogleFirebaseAppcheckV1betaExchangePlayIntegrityTokenRequest) MarshalJ // GoogleFirebaseAppcheckV1betaExchangeRecaptchaEnterpriseTokenRequest: // Request message for the ExchangeRecaptchaEnterpriseToken method. type GoogleFirebaseAppcheckV1betaExchangeRecaptchaEnterpriseTokenRequest struct { + // LimitedUse: Forces a short-lived token with a 5 minute TTL. Useful + // when the client wishes to impose stricter TTL requirements for this + // exchange. Default: false. + LimitedUse bool `json:"limitedUse,omitempty"` + // RecaptchaEnterpriseToken: Required. The reCAPTCHA token as returned // by the reCAPTCHA Enterprise JavaScript API // (https://cloud.google.com/recaptcha-enterprise/docs/instrument-web-pages). RecaptchaEnterpriseToken string `json:"recaptchaEnterpriseToken,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "RecaptchaEnterpriseToken") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent 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. "LimitedUse") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "RecaptchaEnterpriseToken") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an 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. "LimitedUse") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } @@ -1148,12 +1192,17 @@ func (s *GoogleFirebaseAppcheckV1betaExchangeRecaptchaTokenRequest) MarshalJSON( // GoogleFirebaseAppcheckV1betaExchangeRecaptchaV3TokenRequest: Request // message for the ExchangeRecaptchaV3Token method. type GoogleFirebaseAppcheckV1betaExchangeRecaptchaV3TokenRequest struct { + // LimitedUse: Forces a short-lived token with a 5 minute TTL. Useful + // when the client wishes to impose stricter TTL requirements for this + // exchange. Default: false. + LimitedUse bool `json:"limitedUse,omitempty"` + // RecaptchaV3Token: Required. The reCAPTCHA token as returned by the // reCAPTCHA v3 JavaScript API // (https://developers.google.com/recaptcha/docs/v3). RecaptchaV3Token string `json:"recaptchaV3Token,omitempty"` - // ForceSendFields is a list of field names (e.g. "RecaptchaV3Token") to + // ForceSendFields is a list of field names (e.g. "LimitedUse") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -1161,13 +1210,12 @@ type GoogleFirebaseAppcheckV1betaExchangeRecaptchaV3TokenRequest struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "RecaptchaV3Token") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an 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. "LimitedUse") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } @@ -2080,6 +2128,465 @@ func (c *JwksGetCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppcheckV } +// method id "firebaseappcheck.oauthClients.exchangeAppAttestAssertion": + +type OauthClientsExchangeAppAttestAssertionCall struct { + s *Service + appid string + googlefirebaseappcheckv1betaexchangeappattestassertionrequest *GoogleFirebaseAppcheckV1betaExchangeAppAttestAssertionRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// ExchangeAppAttestAssertion: Accepts an App Attest assertion and an +// artifact previously obtained from ExchangeAppAttestAttestation and +// verifies those with Apple. If valid, returns an AppCheckToken. +// +// - app: The relative resource name of the iOS app, in the format: ``` +// projects/{project_number}/apps/{app_id} ``` If necessary, the +// `project_number` element can be replaced with the project ID of the +// Firebase project. Learn more about using project identifiers in +// Google's AIP 2510 (https://google.aip.dev/cloud/2510) standard. +func (r *OauthClientsService) ExchangeAppAttestAssertion(appid string, googlefirebaseappcheckv1betaexchangeappattestassertionrequest *GoogleFirebaseAppcheckV1betaExchangeAppAttestAssertionRequest) *OauthClientsExchangeAppAttestAssertionCall { + c := &OauthClientsExchangeAppAttestAssertionCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.appid = appid + c.googlefirebaseappcheckv1betaexchangeappattestassertionrequest = googlefirebaseappcheckv1betaexchangeappattestassertionrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OauthClientsExchangeAppAttestAssertionCall) Fields(s ...googleapi.Field) *OauthClientsExchangeAppAttestAssertionCall { + 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 *OauthClientsExchangeAppAttestAssertionCall) Context(ctx context.Context) *OauthClientsExchangeAppAttestAssertionCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OauthClientsExchangeAppAttestAssertionCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OauthClientsExchangeAppAttestAssertionCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + 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.googlefirebaseappcheckv1betaexchangeappattestassertionrequest) + 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/{+app}:exchangeAppAttestAssertion") + 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{ + "app": c.appid, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebaseappcheck.oauthClients.exchangeAppAttestAssertion" call. +// Exactly one of *GoogleFirebaseAppcheckV1betaAppCheckToken or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleFirebaseAppcheckV1betaAppCheckToken.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *OauthClientsExchangeAppAttestAssertionCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppcheckV1betaAppCheckToken, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleFirebaseAppcheckV1betaAppCheckToken{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Accepts an App Attest assertion and an artifact previously obtained from ExchangeAppAttestAttestation and verifies those with Apple. If valid, returns an AppCheckToken.", + // "flatPath": "v1beta/oauthClients/{oauthClientsId}:exchangeAppAttestAssertion", + // "httpMethod": "POST", + // "id": "firebaseappcheck.oauthClients.exchangeAppAttestAssertion", + // "parameterOrder": [ + // "app" + // ], + // "parameters": { + // "app": { + // "description": "Required. The relative resource name of the iOS app, in the format: ``` projects/{project_number}/apps/{app_id} ``` If necessary, the `project_number` element can be replaced with the project ID of the Firebase project. Learn more about using project identifiers in Google's [AIP 2510](https://google.aip.dev/cloud/2510) standard.", + // "location": "path", + // "pattern": "^oauthClients/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+app}:exchangeAppAttestAssertion", + // "request": { + // "$ref": "GoogleFirebaseAppcheckV1betaExchangeAppAttestAssertionRequest" + // }, + // "response": { + // "$ref": "GoogleFirebaseAppcheckV1betaAppCheckToken" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "firebaseappcheck.oauthClients.exchangeAppAttestAttestation": + +type OauthClientsExchangeAppAttestAttestationCall struct { + s *Service + appid string + googlefirebaseappcheckv1betaexchangeappattestattestationrequest *GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// ExchangeAppAttestAttestation: Accepts an App Attest CBOR attestation +// and verifies it with Apple using your preconfigured team and bundle +// IDs. If valid, returns an attestation artifact that can later be +// exchanged for an AppCheckToken using ExchangeAppAttestAssertion. For +// convenience and performance, this method's response object will also +// contain an AppCheckToken (if the verification is successful). +// +// - app: The relative resource name of the iOS app, in the format: ``` +// projects/{project_number}/apps/{app_id} ``` If necessary, the +// `project_number` element can be replaced with the project ID of the +// Firebase project. Learn more about using project identifiers in +// Google's AIP 2510 (https://google.aip.dev/cloud/2510) standard. +func (r *OauthClientsService) ExchangeAppAttestAttestation(appid string, googlefirebaseappcheckv1betaexchangeappattestattestationrequest *GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationRequest) *OauthClientsExchangeAppAttestAttestationCall { + c := &OauthClientsExchangeAppAttestAttestationCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.appid = appid + c.googlefirebaseappcheckv1betaexchangeappattestattestationrequest = googlefirebaseappcheckv1betaexchangeappattestattestationrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OauthClientsExchangeAppAttestAttestationCall) Fields(s ...googleapi.Field) *OauthClientsExchangeAppAttestAttestationCall { + 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 *OauthClientsExchangeAppAttestAttestationCall) Context(ctx context.Context) *OauthClientsExchangeAppAttestAttestationCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OauthClientsExchangeAppAttestAttestationCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OauthClientsExchangeAppAttestAttestationCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + 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.googlefirebaseappcheckv1betaexchangeappattestattestationrequest) + 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/{+app}:exchangeAppAttestAttestation") + 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{ + "app": c.appid, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebaseappcheck.oauthClients.exchangeAppAttestAttestation" call. +// Exactly one of +// *GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationResponse.Serv +// erResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *OauthClientsExchangeAppAttestAttestationCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Accepts an App Attest CBOR attestation and verifies it with Apple using your preconfigured team and bundle IDs. If valid, returns an attestation artifact that can later be exchanged for an AppCheckToken using ExchangeAppAttestAssertion. For convenience and performance, this method's response object will also contain an AppCheckToken (if the verification is successful).", + // "flatPath": "v1beta/oauthClients/{oauthClientsId}:exchangeAppAttestAttestation", + // "httpMethod": "POST", + // "id": "firebaseappcheck.oauthClients.exchangeAppAttestAttestation", + // "parameterOrder": [ + // "app" + // ], + // "parameters": { + // "app": { + // "description": "Required. The relative resource name of the iOS app, in the format: ``` projects/{project_number}/apps/{app_id} ``` If necessary, the `project_number` element can be replaced with the project ID of the Firebase project. Learn more about using project identifiers in Google's [AIP 2510](https://google.aip.dev/cloud/2510) standard.", + // "location": "path", + // "pattern": "^oauthClients/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+app}:exchangeAppAttestAttestation", + // "request": { + // "$ref": "GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationRequest" + // }, + // "response": { + // "$ref": "GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + +// method id "firebaseappcheck.oauthClients.generateAppAttestChallenge": + +type OauthClientsGenerateAppAttestChallengeCall struct { + s *Service + appid string + googlefirebaseappcheckv1betagenerateappattestchallengerequest *GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// GenerateAppAttestChallenge: Generates a challenge that protects the +// integrity of an immediately following call to +// ExchangeAppAttestAttestation or ExchangeAppAttestAssertion. A +// challenge should not be reused for multiple calls. +// +// - app: The relative resource name of the iOS app, in the format: ``` +// projects/{project_number}/apps/{app_id} ``` If necessary, the +// `project_number` element can be replaced with the project ID of the +// Firebase project. Learn more about using project identifiers in +// Google's AIP 2510 (https://google.aip.dev/cloud/2510) standard. +func (r *OauthClientsService) GenerateAppAttestChallenge(appid string, googlefirebaseappcheckv1betagenerateappattestchallengerequest *GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeRequest) *OauthClientsGenerateAppAttestChallengeCall { + c := &OauthClientsGenerateAppAttestChallengeCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.appid = appid + c.googlefirebaseappcheckv1betagenerateappattestchallengerequest = googlefirebaseappcheckv1betagenerateappattestchallengerequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OauthClientsGenerateAppAttestChallengeCall) Fields(s ...googleapi.Field) *OauthClientsGenerateAppAttestChallengeCall { + 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 *OauthClientsGenerateAppAttestChallengeCall) Context(ctx context.Context) *OauthClientsGenerateAppAttestChallengeCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OauthClientsGenerateAppAttestChallengeCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OauthClientsGenerateAppAttestChallengeCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + 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.googlefirebaseappcheckv1betagenerateappattestchallengerequest) + 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/{+app}:generateAppAttestChallenge") + 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{ + "app": c.appid, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebaseappcheck.oauthClients.generateAppAttestChallenge" call. +// Exactly one of +// *GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeResponse.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 *OauthClientsGenerateAppAttestChallengeCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeResponse{ + ServerResponse: googleapi.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 a challenge that protects the integrity of an immediately following call to ExchangeAppAttestAttestation or ExchangeAppAttestAssertion. A challenge should not be reused for multiple calls.", + // "flatPath": "v1beta/oauthClients/{oauthClientsId}:generateAppAttestChallenge", + // "httpMethod": "POST", + // "id": "firebaseappcheck.oauthClients.generateAppAttestChallenge", + // "parameterOrder": [ + // "app" + // ], + // "parameters": { + // "app": { + // "description": "Required. The relative resource name of the iOS app, in the format: ``` projects/{project_number}/apps/{app_id} ``` If necessary, the `project_number` element can be replaced with the project ID of the Firebase project. Learn more about using project identifiers in Google's [AIP 2510](https://google.aip.dev/cloud/2510) standard.", + // "location": "path", + // "pattern": "^oauthClients/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+app}:generateAppAttestChallenge", + // "request": { + // "$ref": "GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeRequest" + // }, + // "response": { + // "$ref": "GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/firebase" + // ] + // } + +} + // method id "firebaseappcheck.projects.verifyAppCheckToken": type ProjectsVerifyAppCheckTokenCall struct { diff --git a/playintegrity/v1/playintegrity-api.json b/playintegrity/v1/playintegrity-api.json index 88ffff025cc..82a0b9cb320 100644 --- a/playintegrity/v1/playintegrity-api.json +++ b/playintegrity/v1/playintegrity-api.json @@ -138,7 +138,7 @@ } } }, - "revision": "20230515", + "revision": "20230529", "rootUrl": "https://playintegrity.googleapis.com/", "schemas": { "AccountActivity": { @@ -268,14 +268,16 @@ "MEETS_BASIC_INTEGRITY", "MEETS_DEVICE_INTEGRITY", "MEETS_STRONG_INTEGRITY", - "MEETS_VIRTUAL_INTEGRITY" + "MEETS_VIRTUAL_INTEGRITY", + "MEETS_WEAK_INTEGRITY" ], "enumDescriptions": [ "Play does not have sufficient information to evaluate device integrity", "App is running on a device that passes basic system integrity checks, but may not meet Android platform compatibility requirements and may not be approved to run Google Play services.", "App is running on GMS Android device with Google Play services.", "App is running on GMS Android device with Google Play services and has a strong guarantee of system integrity such as a hardware-backed keystore.", - "App is running on an Android emulator with Google Play services which meets core Android compatibility requirements." + "App is running on an Android emulator with Google Play services which meets core Android compatibility requirements.", + "App is running on a device that passes only weak integrity checks (is a physical device). See go/pcm-physical-device-detection for more details. Note that this label won't be served for PIA heavyweight and express for now, only for the crystal mode." ], "type": "string" }, diff --git a/playintegrity/v1/playintegrity-gen.go b/playintegrity/v1/playintegrity-gen.go index d8d0b14d84e..64a95232c6a 100644 --- a/playintegrity/v1/playintegrity-gen.go +++ b/playintegrity/v1/playintegrity-gen.go @@ -381,6 +381,11 @@ type DeviceIntegrity struct { // "MEETS_VIRTUAL_INTEGRITY" - App is running on an Android emulator // with Google Play services which meets core Android compatibility // requirements. + // "MEETS_WEAK_INTEGRITY" - App is running on a device that passes + // only weak integrity checks (is a physical device). See + // go/pcm-physical-device-detection for more details. Note that this + // label won't be served for PIA heavyweight and express for now, only + // for the crystal mode. DeviceRecognitionVerdict []string `json:"deviceRecognitionVerdict,omitempty"` // ForceSendFields is a list of field names (e.g. diff --git a/pubsub/v1/pubsub-api.json b/pubsub/v1/pubsub-api.json index 1591ef4dfe0..7bce850909b 100644 --- a/pubsub/v1/pubsub-api.json +++ b/pubsub/v1/pubsub-api.json @@ -217,6 +217,7 @@ "type": "string" }, "revisionId": { + "deprecated": true, "description": "Optional. This field is deprecated and should not be used for specifying the revision ID. The revision ID should be specified via the `name` parameter.", "location": "query", "type": "string" @@ -1565,7 +1566,7 @@ } } }, - "revision": "20230516", + "revision": "20230523", "rootUrl": "https://pubsub.googleapis.com/", "schemas": { "AcknowledgeRequest": { diff --git a/pubsub/v1/pubsub-gen.go b/pubsub/v1/pubsub-gen.go index 5acce98117f..87c6367e33e 100644 --- a/pubsub/v1/pubsub-gen.go +++ b/pubsub/v1/pubsub-gen.go @@ -2952,6 +2952,7 @@ func (c *ProjectsSchemasDeleteRevisionCall) Do(opts ...googleapi.CallOption) (*S // "type": "string" // }, // "revisionId": { + // "deprecated": true, // "description": "Optional. This field is deprecated and should not be used for specifying the revision ID. The revision ID should be specified via the `name` parameter.", // "location": "query", // "type": "string" diff --git a/retail/v2/retail-api.json b/retail/v2/retail-api.json index 2ff69f9dc0c..5ca57bbb373 100644 --- a/retail/v2/retail-api.json +++ b/retail/v2/retail-api.json @@ -2031,7 +2031,7 @@ } } }, - "revision": "20230518", + "revision": "20230525", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -2527,7 +2527,7 @@ "type": "array" }, "recentSearchResults": { - "description": "Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. If you want to enable it, contact Retail Search support. This feature is only available when CompleteQueryRequest.visitor_id field is set and UserEvent is imported. The recent searches satisfy the follow rules: * They are ordered from latest to oldest. * They are matched with CompleteQueryRequest.query case insensitively. * They are transformed to lower case. * They are UTF-8 safe. Recent searches are deduplicated. More recent searches will be reserved when duplication happens.", + "description": "Deprecated. Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. If you want to enable it, contact Retail Search support. This feature is only available when CompleteQueryRequest.visitor_id field is set and UserEvent is imported. The recent searches satisfy the follow rules: * They are ordered from latest to oldest. * They are matched with CompleteQueryRequest.query case insensitively. * They are transformed to lower case. * They are UTF-8 safe. Recent searches are deduplicated. More recent searches will be reserved when duplication happens.", "items": { "$ref": "GoogleCloudRetailV2CompleteQueryResponseRecentSearchResult" }, diff --git a/retail/v2/retail-gen.go b/retail/v2/retail-gen.go index b889f5504f0..839108d36cc 100644 --- a/retail/v2/retail-gen.go +++ b/retail/v2/retail-gen.go @@ -1228,16 +1228,17 @@ type GoogleCloudRetailV2CompleteQueryResponse struct { // list is ordered and the first result is top suggestion. CompletionResults []*GoogleCloudRetailV2CompleteQueryResponseCompletionResult `json:"completionResults,omitempty"` - // RecentSearchResults: Matched recent searches of this user. The - // maximum number of recent searches is 10. This field is a restricted - // feature. If you want to enable it, contact Retail Search support. - // This feature is only available when CompleteQueryRequest.visitor_id - // field is set and UserEvent is imported. The recent searches satisfy - // the follow rules: * They are ordered from latest to oldest. * They - // are matched with CompleteQueryRequest.query case insensitively. * - // They are transformed to lower case. * They are UTF-8 safe. Recent - // searches are deduplicated. More recent searches will be reserved when - // duplication happens. + // RecentSearchResults: Deprecated. Matched recent searches of this + // user. The maximum number of recent searches is 10. This field is a + // restricted feature. If you want to enable it, contact Retail Search + // support. This feature is only available when + // CompleteQueryRequest.visitor_id field is set and UserEvent is + // imported. The recent searches satisfy the follow rules: * They are + // ordered from latest to oldest. * They are matched with + // CompleteQueryRequest.query case insensitively. * They are transformed + // to lower case. * They are UTF-8 safe. Recent searches are + // deduplicated. More recent searches will be reserved when duplication + // happens. RecentSearchResults []*GoogleCloudRetailV2CompleteQueryResponseRecentSearchResult `json:"recentSearchResults,omitempty"` // ServerResponse contains the HTTP response code and headers from the diff --git a/retail/v2alpha/retail-api.json b/retail/v2alpha/retail-api.json index 224bc9b1328..d402b62ea2e 100644 --- a/retail/v2alpha/retail-api.json +++ b/retail/v2alpha/retail-api.json @@ -2217,7 +2217,7 @@ } } }, - "revision": "20230518", + "revision": "20230525", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -3209,7 +3209,7 @@ "type": "array" }, "recentSearchResults": { - "description": "Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. If you want to enable it, contact Retail Search support. This feature is only available when CompleteQueryRequest.visitor_id field is set and UserEvent is imported. The recent searches satisfy the follow rules: * They are ordered from latest to oldest. * They are matched with CompleteQueryRequest.query case insensitively. * They are transformed to lower case. * They are UTF-8 safe. Recent searches are deduplicated. More recent searches will be reserved when duplication happens.", + "description": "Deprecated. Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. If you want to enable it, contact Retail Search support. This feature is only available when CompleteQueryRequest.visitor_id field is set and UserEvent is imported. The recent searches satisfy the follow rules: * They are ordered from latest to oldest. * They are matched with CompleteQueryRequest.query case insensitively. * They are transformed to lower case. * They are UTF-8 safe. Recent searches are deduplicated. More recent searches will be reserved when duplication happens.", "items": { "$ref": "GoogleCloudRetailV2alphaCompleteQueryResponseRecentSearchResult" }, diff --git a/retail/v2alpha/retail-gen.go b/retail/v2alpha/retail-gen.go index 3b7caffb9fa..a69312fee94 100644 --- a/retail/v2alpha/retail-gen.go +++ b/retail/v2alpha/retail-gen.go @@ -2120,16 +2120,17 @@ type GoogleCloudRetailV2alphaCompleteQueryResponse struct { // list is ordered and the first result is top suggestion. CompletionResults []*GoogleCloudRetailV2alphaCompleteQueryResponseCompletionResult `json:"completionResults,omitempty"` - // RecentSearchResults: Matched recent searches of this user. The - // maximum number of recent searches is 10. This field is a restricted - // feature. If you want to enable it, contact Retail Search support. - // This feature is only available when CompleteQueryRequest.visitor_id - // field is set and UserEvent is imported. The recent searches satisfy - // the follow rules: * They are ordered from latest to oldest. * They - // are matched with CompleteQueryRequest.query case insensitively. * - // They are transformed to lower case. * They are UTF-8 safe. Recent - // searches are deduplicated. More recent searches will be reserved when - // duplication happens. + // RecentSearchResults: Deprecated. Matched recent searches of this + // user. The maximum number of recent searches is 10. This field is a + // restricted feature. If you want to enable it, contact Retail Search + // support. This feature is only available when + // CompleteQueryRequest.visitor_id field is set and UserEvent is + // imported. The recent searches satisfy the follow rules: * They are + // ordered from latest to oldest. * They are matched with + // CompleteQueryRequest.query case insensitively. * They are transformed + // to lower case. * They are UTF-8 safe. Recent searches are + // deduplicated. More recent searches will be reserved when duplication + // happens. RecentSearchResults []*GoogleCloudRetailV2alphaCompleteQueryResponseRecentSearchResult `json:"recentSearchResults,omitempty"` // ServerResponse contains the HTTP response code and headers from the diff --git a/retail/v2beta/retail-api.json b/retail/v2beta/retail-api.json index a4204983ae3..1ad134b3078 100644 --- a/retail/v2beta/retail-api.json +++ b/retail/v2beta/retail-api.json @@ -2059,7 +2059,7 @@ } } }, - "revision": "20230518", + "revision": "20230525", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -3824,7 +3824,7 @@ "type": "array" }, "recentSearchResults": { - "description": "Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. If you want to enable it, contact Retail Search support. This feature is only available when CompleteQueryRequest.visitor_id field is set and UserEvent is imported. The recent searches satisfy the follow rules: * They are ordered from latest to oldest. * They are matched with CompleteQueryRequest.query case insensitively. * They are transformed to lower case. * They are UTF-8 safe. Recent searches are deduplicated. More recent searches will be reserved when duplication happens.", + "description": "Deprecated. Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. If you want to enable it, contact Retail Search support. This feature is only available when CompleteQueryRequest.visitor_id field is set and UserEvent is imported. The recent searches satisfy the follow rules: * They are ordered from latest to oldest. * They are matched with CompleteQueryRequest.query case insensitively. * They are transformed to lower case. * They are UTF-8 safe. Recent searches are deduplicated. More recent searches will be reserved when duplication happens.", "items": { "$ref": "GoogleCloudRetailV2betaCompleteQueryResponseRecentSearchResult" }, diff --git a/retail/v2beta/retail-gen.go b/retail/v2beta/retail-gen.go index 25e89460591..366484e3601 100644 --- a/retail/v2beta/retail-gen.go +++ b/retail/v2beta/retail-gen.go @@ -3491,16 +3491,17 @@ type GoogleCloudRetailV2betaCompleteQueryResponse struct { // list is ordered and the first result is top suggestion. CompletionResults []*GoogleCloudRetailV2betaCompleteQueryResponseCompletionResult `json:"completionResults,omitempty"` - // RecentSearchResults: Matched recent searches of this user. The - // maximum number of recent searches is 10. This field is a restricted - // feature. If you want to enable it, contact Retail Search support. - // This feature is only available when CompleteQueryRequest.visitor_id - // field is set and UserEvent is imported. The recent searches satisfy - // the follow rules: * They are ordered from latest to oldest. * They - // are matched with CompleteQueryRequest.query case insensitively. * - // They are transformed to lower case. * They are UTF-8 safe. Recent - // searches are deduplicated. More recent searches will be reserved when - // duplication happens. + // RecentSearchResults: Deprecated. Matched recent searches of this + // user. The maximum number of recent searches is 10. This field is a + // restricted feature. If you want to enable it, contact Retail Search + // support. This feature is only available when + // CompleteQueryRequest.visitor_id field is set and UserEvent is + // imported. The recent searches satisfy the follow rules: * They are + // ordered from latest to oldest. * They are matched with + // CompleteQueryRequest.query case insensitively. * They are transformed + // to lower case. * They are UTF-8 safe. Recent searches are + // deduplicated. More recent searches will be reserved when duplication + // happens. RecentSearchResults []*GoogleCloudRetailV2betaCompleteQueryResponseRecentSearchResult `json:"recentSearchResults,omitempty"` // ServerResponse contains the HTTP response code and headers from the diff --git a/sheets/v4/sheets-api.json b/sheets/v4/sheets-api.json index c8e8b164276..8027222b295 100644 --- a/sheets/v4/sheets-api.json +++ b/sheets/v4/sheets-api.json @@ -870,7 +870,7 @@ } } }, - "revision": "20230227", + "revision": "20230526", "rootUrl": "https://sheets.googleapis.com/", "schemas": { "AddBandingRequest": { @@ -2898,7 +2898,7 @@ "type": "object" }, "Color": { - "description": "Represents a color in the RGBA color space. This representation is designed for simplicity of conversion to/from color representations in various languages over compactness. For example, the fields of this representation can be trivially provided to the constructor of `java.awt.Color` in Java; it can also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha` method in iOS; and, with just a little work, it can be easily formatted into a CSS `rgba()` string in JavaScript. This reference page doesn't carry information about the absolute color space that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default, applications should assume the sRGB color space. When color equality needs to be decided, implementations, unless documented otherwise, treat two colors as equal if all their red, green, blue, and alpha values each differ by at most 1e-5. Example (Java): import com.google.type.Color; // ... public static java.awt.Color fromProto(Color protocolor) { float alpha = protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); } public static Color toProto(java.awt.Color color) { float red = (float) color.getRed(); float green = (float) color.getGreen(); float blue = (float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255) { result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .build()); } return resultBuilder.build(); } // ... Example (iOS / Obj-C): // ... static UIColor* fromProto(Color* protocolor) { float red = [protocolor red]; float green = [protocolor green]; float blue = [protocolor blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper != nil) { alpha = [alpha_wrapper value]; } return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; } static Color* toProto(UIColor* color) { CGFloat red, green, blue, alpha; if (![color getRed:\u0026red green:\u0026green blue:\u0026blue alpha:\u0026alpha]) { return nil; } Color* result = [[Color alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha \u003c= 0.9999) { [result setAlpha:floatWrapperWithValue(alpha)]; } [result autorelease]; return result; } // ... Example (JavaScript): // ... var protoToCssColor = function(rgb_color) { var redFrac = rgb_color.red || 0.0; var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0; var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255); var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) { return rgbToCssColor(red, green, blue); } var alphaFrac = rgb_color.alpha.value || 0.0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); }; var rgbToCssColor = function(red, green, blue) { var rgbNumber = new Number((red \u003c\u003c 16) | (green \u003c\u003c 8) | blue); var hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var resultBuilder = ['#']; for (var i = 0; i \u003c missingZeros; i++) { resultBuilder.push('0'); } resultBuilder.push(hexString); return resultBuilder.join(''); }; // ...", + "description": "Represents a color in the RGBA color space. This representation is designed for simplicity of conversion to and from color representations in various languages over compactness. For example, the fields of this representation can be trivially provided to the constructor of `java.awt.Color` in Java; it can also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha` method in iOS; and, with just a little work, it can be easily formatted into a CSS `rgba()` string in JavaScript. This reference page does not have information about the absolute color space that should be used to interpret the RGB value—for example, sRGB, Adobe RGB, DCI-P3, and BT.2020. By default, applications should assume the sRGB color space. When color equality needs to be decided, implementations, unless documented otherwise, treat two colors as equal if all their red, green, blue, and alpha values each differ by at most `1e-5`. Example (Java): import com.google.type.Color; // ... public static java.awt.Color fromProto(Color protocolor) { float alpha = protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); } public static Color toProto(java.awt.Color color) { float red = (float) color.getRed(); float green = (float) color.getGreen(); float blue = (float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255) { result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .build()); } return resultBuilder.build(); } // ... Example (iOS / Obj-C): // ... static UIColor* fromProto(Color* protocolor) { float red = [protocolor red]; float green = [protocolor green]; float blue = [protocolor blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper != nil) { alpha = [alpha_wrapper value]; } return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; } static Color* toProto(UIColor* color) { CGFloat red, green, blue, alpha; if (![color getRed:\u0026red green:\u0026green blue:\u0026blue alpha:\u0026alpha]) { return nil; } Color* result = [[Color alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha \u003c= 0.9999) { [result setAlpha:floatWrapperWithValue(alpha)]; } [result autorelease]; return result; } // ... Example (JavaScript): // ... var protoToCssColor = function(rgb_color) { var redFrac = rgb_color.red || 0.0; var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0; var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255); var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) { return rgbToCssColor(red, green, blue); } var alphaFrac = rgb_color.alpha.value || 0.0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); }; var rgbToCssColor = function(red, green, blue) { var rgbNumber = new Number((red \u003c\u003c 16) | (green \u003c\u003c 8) | blue); var hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var resultBuilder = ['#']; for (var i = 0; i \u003c missingZeros; i++) { resultBuilder.push('0'); } resultBuilder.push(hexString); return resultBuilder.join(''); }; // ...", "id": "Color", "properties": { "alpha": { diff --git a/sheets/v4/sheets-gen.go b/sheets/v4/sheets-gen.go index dadddbcda87..897e452bfcd 100644 --- a/sheets/v4/sheets-gen.go +++ b/sheets/v4/sheets-gen.go @@ -3600,23 +3600,23 @@ func (s *ClearValuesResponse) MarshalJSON() ([]byte, error) { } // Color: Represents a color in the RGBA color space. This -// representation is designed for simplicity of conversion to/from color -// representations in various languages over compactness. For example, -// the fields of this representation can be trivially provided to the -// constructor of `java.awt.Color` in Java; it can also be trivially -// provided to UIColor's `+colorWithRed:green:blue:alpha` method in iOS; -// and, with just a little work, it can be easily formatted into a CSS -// `rgba()` string in JavaScript. This reference page doesn't carry -// information about the absolute color space that should be used to -// interpret the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, -// etc.). By default, applications should assume the sRGB color space. -// When color equality needs to be decided, implementations, unless -// documented otherwise, treat two colors as equal if all their red, -// green, blue, and alpha values each differ by at most 1e-5. Example -// (Java): import com.google.type.Color; // ... public static -// java.awt.Color fromProto(Color protocolor) { float alpha = -// protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; -// return new java.awt.Color( protocolor.getRed(), +// representation is designed for simplicity of conversion to and from +// color representations in various languages over compactness. For +// example, the fields of this representation can be trivially provided +// to the constructor of `java.awt.Color` in Java; it can also be +// trivially provided to UIColor's `+colorWithRed:green:blue:alpha` +// method in iOS; and, with just a little work, it can be easily +// formatted into a CSS `rgba()` string in JavaScript. This reference +// page does not have information about the absolute color space that +// should be used to interpret the RGB value—for example, sRGB, Adobe +// RGB, DCI-P3, and BT.2020. By default, applications should assume the +// sRGB color space. When color equality needs to be decided, +// implementations, unless documented otherwise, treat two colors as +// equal if all their red, green, blue, and alpha values each differ by +// at most `1e-5`. Example (Java): import com.google.type.Color; // ... +// public static java.awt.Color fromProto(Color protocolor) { float +// alpha = protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : +// 1.0; return new java.awt.Color( protocolor.getRed(), // protocolor.getGreen(), protocolor.getBlue(), alpha); } public static // Color toProto(java.awt.Color color) { float red = (float) // color.getRed(); float green = (float) color.getGreen(); float blue = diff --git a/testing/v1/testing-api.json b/testing/v1/testing-api.json index 09f66e95d29..ff9378d6290 100644 --- a/testing/v1/testing-api.json +++ b/testing/v1/testing-api.json @@ -282,7 +282,7 @@ } } }, - "revision": "20230523", + "revision": "20230526", "rootUrl": "https://testing.googleapis.com/", "schemas": { "Account": { @@ -1500,6 +1500,12 @@ }, "type": "object" }, + "NoActivityIntent": { + "description": "Skips the starting activity", + "id": "NoActivityIntent", + "properties": {}, + "type": "object" + }, "ObbFile": { "description": "An opaque binary blob file to install on the device before the test starts.", "id": "ObbFile", @@ -1687,6 +1693,10 @@ "$ref": "LauncherActivityIntent", "description": "An intent that starts the main launcher activity." }, + "noActivity": { + "$ref": "NoActivityIntent", + "description": "Skips the starting activity" + }, "startActivity": { "$ref": "StartActivityIntent", "description": "An intent that starts an activity with specific details." diff --git a/testing/v1/testing-gen.go b/testing/v1/testing-gen.go index 4f2e4da78b4..985644e1f4e 100644 --- a/testing/v1/testing-gen.go +++ b/testing/v1/testing-gen.go @@ -2112,6 +2112,10 @@ func (s *NetworkConfigurationCatalog) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// NoActivityIntent: Skips the starting activity +type NoActivityIntent struct { +} + // ObbFile: An opaque binary blob file to install on the device before // the test starts. type ObbFile struct { @@ -2487,6 +2491,9 @@ type RoboStartingIntent struct { // LauncherActivity: An intent that starts the main launcher activity. LauncherActivity *LauncherActivityIntent `json:"launcherActivity,omitempty"` + // NoActivity: Skips the starting activity + NoActivity *NoActivityIntent `json:"noActivity,omitempty"` + // StartActivity: An intent that starts an activity with specific // details. StartActivity *StartActivityIntent `json:"startActivity,omitempty"` From 3dc0dbb9c8d0dbe6c50d503b96caa0a73a2145cc Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 1 Jun 2023 00:22:12 -0700 Subject: [PATCH 2/7] feat(all): auto-regenerate discovery clients (#2010) --- adsense/v2/adsense-api.json | 4 +- adsense/v2/adsense-gen.go | 2 +- billingbudgets/v1/billingbudgets-api.json | 9 +- billingbudgets/v1/billingbudgets-gen.go | 8 + .../v1beta1/billingbudgets-api.json | 9 +- billingbudgets/v1beta1/billingbudgets-gen.go | 8 + cloudidentity/v1/cloudidentity-api.json | 9 +- cloudidentity/v1/cloudidentity-gen.go | 7 +- cloudidentity/v1beta1/cloudidentity-api.json | 9 +- cloudidentity/v1beta1/cloudidentity-gen.go | 7 +- datacatalog/v1/datacatalog-api.json | 6 +- datacatalog/v1/datacatalog-gen.go | 4 + documentai/v1beta3/documentai-api.json | 232 +++++- documentai/v1beta3/documentai-gen.go | 729 ++++++++++++++++++ healthcare/v1beta1/healthcare-api.json | 9 +- healthcare/v1beta1/healthcare-gen.go | 15 +- iap/v1/iap-api.json | 38 +- iap/v1/iap-gen.go | 158 ++++ language/v1/language-api.json | 57 +- language/v1/language-gen.go | 198 +++++ language/v1beta2/language-api.json | 57 +- language/v1beta2/language-gen.go | 198 +++++ .../v1/mybusinessbusinessinformation-api.json | 69 +- .../v1/mybusinessbusinessinformation-gen.go | 318 -------- .../v1/recaptchaenterprise-api.json | 6 +- .../v1/recaptchaenterprise-gen.go | 5 +- run/v1/run-api.json | 4 +- run/v1/run-gen.go | 5 +- run/v2/run-api.json | 6 +- run/v2/run-gen.go | 4 +- .../v1/streetviewpublish-api.json | 7 +- streetviewpublish/v1/streetviewpublish-gen.go | 4 + 32 files changed, 1779 insertions(+), 422 deletions(-) diff --git a/adsense/v2/adsense-api.json b/adsense/v2/adsense-api.json index c7e401a55f9..1e6323b9fae 100644 --- a/adsense/v2/adsense-api.json +++ b/adsense/v2/adsense-api.json @@ -1828,7 +1828,7 @@ } } }, - "revision": "20230403", + "revision": "20230531", "rootUrl": "https://adsense.googleapis.com/", "schemas": { "Account": { @@ -1987,7 +1987,7 @@ "type": "string" }, "state": { - "description": "State of the ad unit.", + "description": "Required. State of the ad unit.", "enum": [ "STATE_UNSPECIFIED", "ACTIVE", diff --git a/adsense/v2/adsense-gen.go b/adsense/v2/adsense-gen.go index 9e98267d7ec..1fcc35092e1 100644 --- a/adsense/v2/adsense-gen.go +++ b/adsense/v2/adsense-gen.go @@ -485,7 +485,7 @@ type AdUnit struct { // in the `AD_UNIT_ID` reporting dimension. ReportingDimensionId string `json:"reportingDimensionId,omitempty"` - // State: State of the ad unit. + // State: Required. State of the ad unit. // // Possible values: // "STATE_UNSPECIFIED" - State unspecified. diff --git a/billingbudgets/v1/billingbudgets-api.json b/billingbudgets/v1/billingbudgets-api.json index a508528bbe4..d4d42bea485 100644 --- a/billingbudgets/v1/billingbudgets-api.json +++ b/billingbudgets/v1/billingbudgets-api.json @@ -270,7 +270,7 @@ } } }, - "revision": "20221019", + "revision": "20230529", "rootUrl": "https://billingbudgets.googleapis.com/", "schemas": { "GoogleCloudBillingBudgetsV1Budget": { @@ -406,6 +406,13 @@ }, "type": "array" }, + "resourceAncestors": { + "description": "Optional. A set of folder and organization names of the form `folders/{folderId}` or `organizations/{organizationId}`, specifying that usage from only this set of folders and organizations should be included in the budget. If omitted, the report includes all usage for all organizations, regardless of which organization the usage occurred on.", + "items": { + "type": "string" + }, + "type": "array" + }, "services": { "description": "Optional. A set of services of the form `services/{service_id}`, specifying that usage from only this set of services should be included in the budget. If omitted, the report includes usage for all the services. The service names are available through the Catalog API: https://cloud.google.com/billing/v1/how-tos/catalog-api.", "items": { diff --git a/billingbudgets/v1/billingbudgets-gen.go b/billingbudgets/v1/billingbudgets-gen.go index 89cb974f38d..d4d87884adf 100644 --- a/billingbudgets/v1/billingbudgets-gen.go +++ b/billingbudgets/v1/billingbudgets-gen.go @@ -373,6 +373,14 @@ type GoogleCloudBillingBudgetsV1Filter struct { // project the usage occurred on. Projects []string `json:"projects,omitempty"` + // ResourceAncestors: Optional. A set of folder and organization names + // of the form `folders/{folderId}` or `organizations/{organizationId}`, + // specifying that usage from only this set of folders and organizations + // should be included in the budget. If omitted, the report includes all + // usage for all organizations, regardless of which organization the + // usage occurred on. + ResourceAncestors []string `json:"resourceAncestors,omitempty"` + // Services: Optional. A set of services of the form // `services/{service_id}`, specifying that usage from only this set of // services should be included in the budget. If omitted, the report diff --git a/billingbudgets/v1beta1/billingbudgets-api.json b/billingbudgets/v1beta1/billingbudgets-api.json index bad8e7274e8..cc884f9663c 100644 --- a/billingbudgets/v1beta1/billingbudgets-api.json +++ b/billingbudgets/v1beta1/billingbudgets-api.json @@ -264,7 +264,7 @@ } } }, - "revision": "20221019", + "revision": "20230529", "rootUrl": "https://billingbudgets.googleapis.com/", "schemas": { "GoogleCloudBillingBudgetsV1beta1AllUpdatesRule": { @@ -437,6 +437,13 @@ }, "type": "array" }, + "resourceAncestors": { + "description": "Optional. A set of folder and organization names of the form `folders/{folderId}` or `organizations/{organizationId}`, specifying that usage from only this set of folders and organizations should be included in the budget. If omitted, the report includes all usage for all organizations, regardless of which organization the usage occurred on.", + "items": { + "type": "string" + }, + "type": "array" + }, "services": { "description": "Optional. A set of services of the form `services/{service_id}`, specifying that usage from only this set of services should be included in the budget. If omitted, the report will include usage for all the services. The service names are available through the Catalog API: https://cloud.google.com/billing/v1/how-tos/catalog-api.", "items": { diff --git a/billingbudgets/v1beta1/billingbudgets-gen.go b/billingbudgets/v1beta1/billingbudgets-gen.go index daa30fb570c..1e651807350 100644 --- a/billingbudgets/v1beta1/billingbudgets-gen.go +++ b/billingbudgets/v1beta1/billingbudgets-gen.go @@ -469,6 +469,14 @@ type GoogleCloudBillingBudgetsV1beta1Filter struct { // project the usage occurred on. Projects []string `json:"projects,omitempty"` + // ResourceAncestors: Optional. A set of folder and organization names + // of the form `folders/{folderId}` or `organizations/{organizationId}`, + // specifying that usage from only this set of folders and organizations + // should be included in the budget. If omitted, the report includes all + // usage for all organizations, regardless of which organization the + // usage occurred on. + ResourceAncestors []string `json:"resourceAncestors,omitempty"` + // Services: Optional. A set of services of the form // `services/{service_id}`, specifying that usage from only this set of // services should be included in the budget. If omitted, the report diff --git a/cloudidentity/v1/cloudidentity-api.json b/cloudidentity/v1/cloudidentity-api.json index b768f9d95b3..b0ba955e869 100644 --- a/cloudidentity/v1/cloudidentity-api.json +++ b/cloudidentity/v1/cloudidentity-api.json @@ -1501,7 +1501,12 @@ "path": "v1/{+parent}/memberships:searchDirectGroups", "response": { "$ref": "SearchDirectGroupsResponse" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-identity.groups", + "https://www.googleapis.com/auth/cloud-identity.groups.readonly", + "https://www.googleapis.com/auth/cloud-platform" + ] }, "searchTransitiveGroups": { "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. If the account of the member is not one of these, a 403 (PERMISSION_DENIED) HTTP status code will be returned. A transitive group is any group that has a direct or indirect membership to the member. Actor must have view permissions all transitive groups.", @@ -1985,7 +1990,7 @@ } } }, - "revision": "20230328", + "revision": "20230530", "rootUrl": "https://cloudidentity.googleapis.com/", "schemas": { "AddIdpCredentialOperationMetadata": { diff --git a/cloudidentity/v1/cloudidentity-gen.go b/cloudidentity/v1/cloudidentity-gen.go index 1f7ccfecf38..77a4ddff325 100644 --- a/cloudidentity/v1/cloudidentity-gen.go +++ b/cloudidentity/v1/cloudidentity-gen.go @@ -10496,7 +10496,12 @@ func (c *GroupsMembershipsSearchDirectGroupsCall) Do(opts ...googleapi.CallOptio // "path": "v1/{+parent}/memberships:searchDirectGroups", // "response": { // "$ref": "SearchDirectGroupsResponse" - // } + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-identity.groups", + // "https://www.googleapis.com/auth/cloud-identity.groups.readonly", + // "https://www.googleapis.com/auth/cloud-platform" + // ] // } } diff --git a/cloudidentity/v1beta1/cloudidentity-api.json b/cloudidentity/v1beta1/cloudidentity-api.json index 7f2284c0b18..5d3cefd1c23 100644 --- a/cloudidentity/v1beta1/cloudidentity-api.json +++ b/cloudidentity/v1beta1/cloudidentity-api.json @@ -1450,7 +1450,12 @@ "path": "v1beta1/{+parent}/memberships:searchDirectGroups", "response": { "$ref": "SearchDirectGroupsResponse" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-identity.groups", + "https://www.googleapis.com/auth/cloud-identity.groups.readonly", + "https://www.googleapis.com/auth/cloud-platform" + ] }, "searchTransitiveGroups": { "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.", @@ -2010,7 +2015,7 @@ } } }, - "revision": "20230523", + "revision": "20230530", "rootUrl": "https://cloudidentity.googleapis.com/", "schemas": { "AddIdpCredentialOperationMetadata": { diff --git a/cloudidentity/v1beta1/cloudidentity-gen.go b/cloudidentity/v1beta1/cloudidentity-gen.go index a4edb92c13d..950064a2c42 100644 --- a/cloudidentity/v1beta1/cloudidentity-gen.go +++ b/cloudidentity/v1beta1/cloudidentity-gen.go @@ -11238,7 +11238,12 @@ func (c *GroupsMembershipsSearchDirectGroupsCall) Do(opts ...googleapi.CallOptio // "path": "v1beta1/{+parent}/memberships:searchDirectGroups", // "response": { // "$ref": "SearchDirectGroupsResponse" - // } + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-identity.groups", + // "https://www.googleapis.com/auth/cloud-identity.groups.readonly", + // "https://www.googleapis.com/auth/cloud-platform" + // ] // } } diff --git a/datacatalog/v1/datacatalog-api.json b/datacatalog/v1/datacatalog-api.json index 76670e89087..8fcb0ae39fe 100644 --- a/datacatalog/v1/datacatalog-api.json +++ b/datacatalog/v1/datacatalog-api.json @@ -2144,7 +2144,7 @@ } } }, - "revision": "20230512", + "revision": "20230526", "rootUrl": "https://datacatalog.googleapis.com/", "schemas": { "Binding": { @@ -3152,6 +3152,10 @@ "gcsBucketPath": { "description": "Path to a Cloud Storage bucket that contains a dump ready for ingestion.", "type": "string" + }, + "jobId": { + "description": "Optional. (Optional) Dataplex task job id, if specified will be used as part of ImportEntries LRO ID", + "type": "string" } }, "type": "object" diff --git a/datacatalog/v1/datacatalog-gen.go b/datacatalog/v1/datacatalog-gen.go index 63f6d725b64..05866d8efc5 100644 --- a/datacatalog/v1/datacatalog-gen.go +++ b/datacatalog/v1/datacatalog-gen.go @@ -2068,6 +2068,10 @@ type GoogleCloudDatacatalogV1ImportEntriesRequest struct { // ready for ingestion. GcsBucketPath string `json:"gcsBucketPath,omitempty"` + // JobId: Optional. (Optional) Dataplex task job id, if specified will + // be used as part of ImportEntries LRO ID + JobId string `json:"jobId,omitempty"` + // ForceSendFields is a list of field names (e.g. "GcsBucketPath") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any diff --git a/documentai/v1beta3/documentai-api.json b/documentai/v1beta3/documentai-api.json index eb143b6de35..84e69e87d72 100644 --- a/documentai/v1beta3/documentai-api.json +++ b/documentai/v1beta3/documentai-api.json @@ -617,9 +617,111 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "updateDataset": { + "description": "Updates metadata associated with a dataset.", + "flatPath": "v1beta3/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}/dataset", + "httpMethod": "PATCH", + "id": "documentai.projects.locations.processors.updateDataset", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Dataset resource name. Format: `projects/{project}/locations/{location}/processors/{processor}/dataset`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/processors/[^/]+/dataset$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "The update mask applies to the resource.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1beta3/{+name}", + "request": { + "$ref": "GoogleCloudDocumentaiV1beta3Dataset" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } }, "resources": { + "dataset": { + "methods": { + "getDatasetSchema": { + "description": "Gets the DatasetSchema of a Dataset.", + "flatPath": "v1beta3/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}/dataset/datasetSchema", + "httpMethod": "GET", + "id": "documentai.projects.locations.processors.dataset.getDatasetSchema", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The dataset schema resource name. Format: projects/{project}/locations/{location}/processors/{processor}/dataset/datasetSchema", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/processors/[^/]+/dataset/datasetSchema$", + "required": true, + "type": "string" + }, + "visibleFieldsOnly": { + "description": "If set, only returns the visible fields of the schema.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1beta3/{+name}", + "response": { + "$ref": "GoogleCloudDocumentaiV1beta3DatasetSchema" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "updateDatasetSchema": { + "description": "Updates a DatasetSchema.", + "flatPath": "v1beta3/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}/dataset/datasetSchema", + "httpMethod": "PATCH", + "id": "documentai.projects.locations.processors.dataset.updateDatasetSchema", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Dataset schema resource name. Format: `projects/{project}/locations/{location}/processors/{processor}/dataset/datasetSchema`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/processors/[^/]+/dataset/datasetSchema$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "The update mask applies to the resource.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1beta3/{+name}", + "request": { + "$ref": "GoogleCloudDocumentaiV1beta3DatasetSchema" + }, + "response": { + "$ref": "GoogleCloudDocumentaiV1beta3DatasetSchema" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "humanReviewConfig": { "methods": { "reviewDocument": { @@ -1012,7 +1114,7 @@ } } }, - "revision": "20230519", + "revision": "20230526", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata": { @@ -5222,6 +5324,104 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1beta3Dataset": { + "description": "A singleton resource under a `Processor` which configs a collection of documents.", + "id": "GoogleCloudDocumentaiV1beta3Dataset", + "properties": { + "documentWarehouseConfig": { + "$ref": "GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig", + "description": "Optional. Document Warehouse-based dataset config." + }, + "gcsManagedConfig": { + "$ref": "GoogleCloudDocumentaiV1beta3DatasetGCSManagedConfig", + "description": "Optional. User managed GCS dataset config. Use this config if the dataset documents are stored under a user managed GCS location." + }, + "name": { + "description": "Dataset resource name. Format: `projects/{project}/locations/{location}/processors/{processor}/dataset`", + "type": "string" + }, + "spannerIndexingConfig": { + "$ref": "GoogleCloudDocumentaiV1beta3DatasetSpannerIndexingConfig", + "description": "Optional. A lightweight indexing source with low latency and high reliablity, but lack advanced features like CMEK and content based search." + }, + "state": { + "description": "Required. State of the dataset. Will be ignored when updating dataset.", + "enum": [ + "STATE_UNSPECIFIED", + "UNINITIALIZED", + "INITIALIZING", + "INITIALIZED" + ], + "enumDescriptions": [ + "Default unspecified enum, should not be used.", + "Dataset has not been initialized.", + "Dataset is being initialized.", + "Dataset has been initialized." + ], + "type": "string" + }, + "unmanagedDatasetConfig": { + "$ref": "GoogleCloudDocumentaiV1beta3DatasetUnmanagedDatasetConfig", + "description": "Optional. Unmanaged dataset config. Use this config if the dataset documents are managed by the document service internally (not user managed)." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig": { + "description": "Config specific to the Document Warehouse-based implementation.", + "id": "GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig", + "properties": { + "collection": { + "description": "Output only. The collection in Document Warehouse associated with the dataset.", + "readOnly": true, + "type": "string" + }, + "schema": { + "description": "Output only. The schema in Document Warehouse associated with the dataset.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3DatasetGCSManagedConfig": { + "description": "Config specific to the GCS-based implementation.", + "id": "GoogleCloudDocumentaiV1beta3DatasetGCSManagedConfig", + "properties": { + "gcsPrefix": { + "$ref": "GoogleCloudDocumentaiV1beta3GcsPrefix", + "description": "Required. The Cloud Storage uri (a directory) where the documents belonging to the dataset must be stored." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3DatasetSchema": { + "description": "Dataset Schema.", + "id": "GoogleCloudDocumentaiV1beta3DatasetSchema", + "properties": { + "documentSchema": { + "$ref": "GoogleCloudDocumentaiV1beta3DocumentSchema", + "description": "Optional. Schema of the dataset." + }, + "name": { + "description": "Dataset schema resource name. Format: `projects/{project}/locations/{location}/processors/{processor}/dataset/datasetSchema`", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3DatasetSpannerIndexingConfig": { + "description": "Config specific to spanner based indexing.", + "id": "GoogleCloudDocumentaiV1beta3DatasetSpannerIndexingConfig", + "properties": {}, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3DatasetUnmanagedDatasetConfig": { + "description": "Config specific to unmanaged config", + "id": "GoogleCloudDocumentaiV1beta3DatasetUnmanagedDatasetConfig", + "properties": {}, + "type": "object" + }, "GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata": { "description": "The long-running operation metadata for the DeleteProcessor method.", "id": "GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata", @@ -6399,6 +6599,10 @@ "description": "User defined name for the type.", "type": "string" }, + "entityTypeMetadata": { + "$ref": "GoogleCloudDocumentaiV1beta3EntityTypeMetadata", + "description": "Metadata for the entity type." + }, "enumValues": { "$ref": "GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeEnumValues", "description": "If specified, lists all the possible values for this entity. This should not be more than a handful of values. If the number of values is \u003e10 or could change frequently use the `EntityType.value_ontology` field and specify a list of all possible values in a value ontology file." @@ -6457,6 +6661,10 @@ ], "type": "string" }, + "propertyMetadata": { + "$ref": "GoogleCloudDocumentaiV1beta3PropertyMetadata", + "description": "Any additional metadata about the property can be added here." + }, "valueType": { "description": "A reference to the value type of the property. This type is subject to the same conventions as the `Entity.base_types` field.", "type": "string" @@ -6644,6 +6852,17 @@ "properties": {}, "type": "object" }, + "GoogleCloudDocumentaiV1beta3EntityTypeMetadata": { + "description": "Metadata about an entity type.", + "id": "GoogleCloudDocumentaiV1beta3EntityTypeMetadata", + "properties": { + "inactive": { + "description": "Whether the entity type should be considered as \"inactive\".", + "type": "boolean" + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionMetadata": { "description": "Metadata of the EvaluateProcessorVersion method.", "id": "GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionMetadata", @@ -7437,6 +7656,17 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1beta3PropertyMetadata": { + "description": "Metadata about a property.", + "id": "GoogleCloudDocumentaiV1beta3PropertyMetadata", + "properties": { + "inactive": { + "description": "Whether the property should be considered as \"inactive\".", + "type": "boolean" + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1beta3RawDocument": { "description": "Payload message of raw document content (bytes).", "id": "GoogleCloudDocumentaiV1beta3RawDocument", diff --git a/documentai/v1beta3/documentai-gen.go b/documentai/v1beta3/documentai-gen.go index 890c96d80be..9c1a2fd5151 100644 --- a/documentai/v1beta3/documentai-gen.go +++ b/documentai/v1beta3/documentai-gen.go @@ -188,6 +188,7 @@ type ProjectsLocationsProcessorTypesService struct { func NewProjectsLocationsProcessorsService(s *Service) *ProjectsLocationsProcessorsService { rs := &ProjectsLocationsProcessorsService{s: s} + rs.Dataset = NewProjectsLocationsProcessorsDatasetService(s) rs.HumanReviewConfig = NewProjectsLocationsProcessorsHumanReviewConfigService(s) rs.ProcessorVersions = NewProjectsLocationsProcessorsProcessorVersionsService(s) return rs @@ -196,11 +197,22 @@ func NewProjectsLocationsProcessorsService(s *Service) *ProjectsLocationsProcess type ProjectsLocationsProcessorsService struct { s *Service + Dataset *ProjectsLocationsProcessorsDatasetService + HumanReviewConfig *ProjectsLocationsProcessorsHumanReviewConfigService ProcessorVersions *ProjectsLocationsProcessorsProcessorVersionsService } +func NewProjectsLocationsProcessorsDatasetService(s *Service) *ProjectsLocationsProcessorsDatasetService { + rs := &ProjectsLocationsProcessorsDatasetService{s: s} + return rs +} + +type ProjectsLocationsProcessorsDatasetService struct { + s *Service +} + func NewProjectsLocationsProcessorsHumanReviewConfigService(s *Service) *ProjectsLocationsProcessorsHumanReviewConfigService { rs := &ProjectsLocationsProcessorsHumanReviewConfigService{s: s} return rs @@ -7380,6 +7392,180 @@ func (s *GoogleCloudDocumentaiV1beta3CommonOperationMetadata) MarshalJSON() ([]b return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDocumentaiV1beta3Dataset: A singleton resource under a +// `Processor` which configs a collection of documents. +type GoogleCloudDocumentaiV1beta3Dataset struct { + // DocumentWarehouseConfig: Optional. Document Warehouse-based dataset + // config. + DocumentWarehouseConfig *GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig `json:"documentWarehouseConfig,omitempty"` + + // GcsManagedConfig: Optional. User managed GCS dataset config. Use this + // config if the dataset documents are stored under a user managed GCS + // location. + GcsManagedConfig *GoogleCloudDocumentaiV1beta3DatasetGCSManagedConfig `json:"gcsManagedConfig,omitempty"` + + // Name: Dataset resource name. Format: + // `projects/{project}/locations/{location}/processors/{processor}/datase + // t` + Name string `json:"name,omitempty"` + + // SpannerIndexingConfig: Optional. A lightweight indexing source with + // low latency and high reliablity, but lack advanced features like CMEK + // and content based search. + SpannerIndexingConfig *GoogleCloudDocumentaiV1beta3DatasetSpannerIndexingConfig `json:"spannerIndexingConfig,omitempty"` + + // State: Required. State of the dataset. Will be ignored when updating + // dataset. + // + // Possible values: + // "STATE_UNSPECIFIED" - Default unspecified enum, should not be used. + // "UNINITIALIZED" - Dataset has not been initialized. + // "INITIALIZING" - Dataset is being initialized. + // "INITIALIZED" - Dataset has been initialized. + State string `json:"state,omitempty"` + + // UnmanagedDatasetConfig: Optional. Unmanaged dataset config. Use this + // config if the dataset documents are managed by the document service + // internally (not user managed). + UnmanagedDatasetConfig *GoogleCloudDocumentaiV1beta3DatasetUnmanagedDatasetConfig `json:"unmanagedDatasetConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "DocumentWarehouseConfig") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DocumentWarehouseConfig") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDocumentaiV1beta3Dataset) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1beta3Dataset + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig: Config +// specific to the Document Warehouse-based implementation. +type GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig struct { + // Collection: Output only. The collection in Document Warehouse + // associated with the dataset. + Collection string `json:"collection,omitempty"` + + // Schema: Output only. The schema in Document Warehouse associated with + // the dataset. + Schema string `json:"schema,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Collection") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Collection") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiV1beta3DatasetGCSManagedConfig: Config specific +// to the GCS-based implementation. +type GoogleCloudDocumentaiV1beta3DatasetGCSManagedConfig struct { + // GcsPrefix: Required. The Cloud Storage uri (a directory) where the + // documents belonging to the dataset must be stored. + GcsPrefix *GoogleCloudDocumentaiV1beta3GcsPrefix `json:"gcsPrefix,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GcsPrefix") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GcsPrefix") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDocumentaiV1beta3DatasetGCSManagedConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1beta3DatasetGCSManagedConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiV1beta3DatasetSchema: Dataset Schema. +type GoogleCloudDocumentaiV1beta3DatasetSchema struct { + // DocumentSchema: Optional. Schema of the dataset. + DocumentSchema *GoogleCloudDocumentaiV1beta3DocumentSchema `json:"documentSchema,omitempty"` + + // Name: Dataset schema resource name. Format: + // `projects/{project}/locations/{location}/processors/{processor}/datase + // t/datasetSchema` + 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. "DocumentSchema") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DocumentSchema") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDocumentaiV1beta3DatasetSchema) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1beta3DatasetSchema + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiV1beta3DatasetSpannerIndexingConfig: Config +// specific to spanner based indexing. +type GoogleCloudDocumentaiV1beta3DatasetSpannerIndexingConfig struct { +} + +// GoogleCloudDocumentaiV1beta3DatasetUnmanagedDatasetConfig: Config +// specific to unmanaged config +type GoogleCloudDocumentaiV1beta3DatasetUnmanagedDatasetConfig struct { +} + // GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata: The long-running // operation metadata for the DeleteProcessor method. type GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata struct { @@ -9222,6 +9408,9 @@ type GoogleCloudDocumentaiV1beta3DocumentSchemaEntityType struct { // DisplayName: User defined name for the type. DisplayName string `json:"displayName,omitempty"` + // EntityTypeMetadata: Metadata for the entity type. + EntityTypeMetadata *GoogleCloudDocumentaiV1beta3EntityTypeMetadata `json:"entityTypeMetadata,omitempty"` + // EnumValues: If specified, lists all the possible values for this // entity. This should not be more than a handful of values. If the // number of values is >10 or could change frequently use the @@ -9318,6 +9507,10 @@ type GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeProperty struct { // times. OccurrenceType string `json:"occurrenceType,omitempty"` + // PropertyMetadata: Any additional metadata about the property can be + // added here. + PropertyMetadata *GoogleCloudDocumentaiV1beta3PropertyMetadata `json:"propertyMetadata,omitempty"` + // ValueType: A reference to the value type of the property. This type // is subject to the same conventions as the `Entity.base_types` field. ValueType string `json:"valueType,omitempty"` @@ -9681,6 +9874,35 @@ type GoogleCloudDocumentaiV1beta3EnableProcessorRequest struct { type GoogleCloudDocumentaiV1beta3EnableProcessorResponse struct { } +// GoogleCloudDocumentaiV1beta3EntityTypeMetadata: Metadata about an +// entity type. +type GoogleCloudDocumentaiV1beta3EntityTypeMetadata struct { + // Inactive: Whether the entity type should be considered as "inactive". + Inactive bool `json:"inactive,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Inactive") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Inactive") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDocumentaiV1beta3EntityTypeMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1beta3EntityTypeMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionMetadata: // Metadata of the EvaluateProcessorVersion method. type GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionMetadata struct { @@ -11135,6 +11357,35 @@ func (s *GoogleCloudDocumentaiV1beta3ProcessorVersionDeprecationInfo) MarshalJSO return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDocumentaiV1beta3PropertyMetadata: Metadata about a +// property. +type GoogleCloudDocumentaiV1beta3PropertyMetadata struct { + // Inactive: Whether the property should be considered as "inactive". + Inactive bool `json:"inactive,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Inactive") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Inactive") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDocumentaiV1beta3PropertyMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1beta3PropertyMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDocumentaiV1beta3RawDocument: Payload message of raw // document content (bytes). type GoogleCloudDocumentaiV1beta3RawDocument struct { @@ -15033,6 +15284,484 @@ func (c *ProjectsLocationsProcessorsSetDefaultProcessorVersionCall) Do(opts ...g } +// method id "documentai.projects.locations.processors.updateDataset": + +type ProjectsLocationsProcessorsUpdateDatasetCall struct { + s *Service + name string + googleclouddocumentaiv1beta3dataset *GoogleCloudDocumentaiV1beta3Dataset + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// UpdateDataset: Updates metadata associated with a dataset. +// +// - name: Dataset resource name. Format: +// `projects/{project}/locations/{location}/processors/{processor}/data +// set`. +func (r *ProjectsLocationsProcessorsService) UpdateDataset(name string, googleclouddocumentaiv1beta3dataset *GoogleCloudDocumentaiV1beta3Dataset) *ProjectsLocationsProcessorsUpdateDatasetCall { + c := &ProjectsLocationsProcessorsUpdateDatasetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googleclouddocumentaiv1beta3dataset = googleclouddocumentaiv1beta3dataset + return c +} + +// UpdateMask sets the optional parameter "updateMask": The update mask +// applies to the resource. +func (c *ProjectsLocationsProcessorsUpdateDatasetCall) UpdateMask(updateMask string) *ProjectsLocationsProcessorsUpdateDatasetCall { + 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 *ProjectsLocationsProcessorsUpdateDatasetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsUpdateDatasetCall { + 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 *ProjectsLocationsProcessorsUpdateDatasetCall) Context(ctx context.Context) *ProjectsLocationsProcessorsUpdateDatasetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProcessorsUpdateDatasetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProcessorsUpdateDatasetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + 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.googleclouddocumentaiv1beta3dataset) + 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, "v1beta3/{+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 "documentai.projects.locations.processors.updateDataset" 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 *ProjectsLocationsProcessorsUpdateDatasetCall) 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, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(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": "Updates metadata associated with a dataset.", + // "flatPath": "v1beta3/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}/dataset", + // "httpMethod": "PATCH", + // "id": "documentai.projects.locations.processors.updateDataset", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Dataset resource name. Format: `projects/{project}/locations/{location}/processors/{processor}/dataset`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/processors/[^/]+/dataset$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "The update mask applies to the resource.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta3/{+name}", + // "request": { + // "$ref": "GoogleCloudDocumentaiV1beta3Dataset" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "documentai.projects.locations.processors.dataset.getDatasetSchema": + +type ProjectsLocationsProcessorsDatasetGetDatasetSchemaCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetDatasetSchema: Gets the DatasetSchema of a Dataset. +// +// - name: The dataset schema resource name. Format: +// projects/{project}/locations/{location}/processors/{processor}/datas +// et/datasetSchema. +func (r *ProjectsLocationsProcessorsDatasetService) GetDatasetSchema(name string) *ProjectsLocationsProcessorsDatasetGetDatasetSchemaCall { + c := &ProjectsLocationsProcessorsDatasetGetDatasetSchemaCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// VisibleFieldsOnly sets the optional parameter "visibleFieldsOnly": If +// set, only returns the visible fields of the schema. +func (c *ProjectsLocationsProcessorsDatasetGetDatasetSchemaCall) VisibleFieldsOnly(visibleFieldsOnly bool) *ProjectsLocationsProcessorsDatasetGetDatasetSchemaCall { + c.urlParams_.Set("visibleFieldsOnly", fmt.Sprint(visibleFieldsOnly)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProcessorsDatasetGetDatasetSchemaCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsDatasetGetDatasetSchemaCall { + 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 *ProjectsLocationsProcessorsDatasetGetDatasetSchemaCall) IfNoneMatch(entityTag string) *ProjectsLocationsProcessorsDatasetGetDatasetSchemaCall { + 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 *ProjectsLocationsProcessorsDatasetGetDatasetSchemaCall) Context(ctx context.Context) *ProjectsLocationsProcessorsDatasetGetDatasetSchemaCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProcessorsDatasetGetDatasetSchemaCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProcessorsDatasetGetDatasetSchemaCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + 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, "v1beta3/{+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 "documentai.projects.locations.processors.dataset.getDatasetSchema" call. +// Exactly one of *GoogleCloudDocumentaiV1beta3DatasetSchema or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudDocumentaiV1beta3DatasetSchema.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsProcessorsDatasetGetDatasetSchemaCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1beta3DatasetSchema, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudDocumentaiV1beta3DatasetSchema{ + ServerResponse: googleapi.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 DatasetSchema of a Dataset.", + // "flatPath": "v1beta3/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}/dataset/datasetSchema", + // "httpMethod": "GET", + // "id": "documentai.projects.locations.processors.dataset.getDatasetSchema", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The dataset schema resource name. Format: projects/{project}/locations/{location}/processors/{processor}/dataset/datasetSchema", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/processors/[^/]+/dataset/datasetSchema$", + // "required": true, + // "type": "string" + // }, + // "visibleFieldsOnly": { + // "description": "If set, only returns the visible fields of the schema.", + // "location": "query", + // "type": "boolean" + // } + // }, + // "path": "v1beta3/{+name}", + // "response": { + // "$ref": "GoogleCloudDocumentaiV1beta3DatasetSchema" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "documentai.projects.locations.processors.dataset.updateDatasetSchema": + +type ProjectsLocationsProcessorsDatasetUpdateDatasetSchemaCall struct { + s *Service + name string + googleclouddocumentaiv1beta3datasetschema *GoogleCloudDocumentaiV1beta3DatasetSchema + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// UpdateDatasetSchema: Updates a DatasetSchema. +// +// - name: Dataset schema resource name. Format: +// `projects/{project}/locations/{location}/processors/{processor}/data +// set/datasetSchema`. +func (r *ProjectsLocationsProcessorsDatasetService) UpdateDatasetSchema(name string, googleclouddocumentaiv1beta3datasetschema *GoogleCloudDocumentaiV1beta3DatasetSchema) *ProjectsLocationsProcessorsDatasetUpdateDatasetSchemaCall { + c := &ProjectsLocationsProcessorsDatasetUpdateDatasetSchemaCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googleclouddocumentaiv1beta3datasetschema = googleclouddocumentaiv1beta3datasetschema + return c +} + +// UpdateMask sets the optional parameter "updateMask": The update mask +// applies to the resource. +func (c *ProjectsLocationsProcessorsDatasetUpdateDatasetSchemaCall) UpdateMask(updateMask string) *ProjectsLocationsProcessorsDatasetUpdateDatasetSchemaCall { + 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 *ProjectsLocationsProcessorsDatasetUpdateDatasetSchemaCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessorsDatasetUpdateDatasetSchemaCall { + 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 *ProjectsLocationsProcessorsDatasetUpdateDatasetSchemaCall) Context(ctx context.Context) *ProjectsLocationsProcessorsDatasetUpdateDatasetSchemaCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProcessorsDatasetUpdateDatasetSchemaCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProcessorsDatasetUpdateDatasetSchemaCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + 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.googleclouddocumentaiv1beta3datasetschema) + 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, "v1beta3/{+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 "documentai.projects.locations.processors.dataset.updateDatasetSchema" call. +// Exactly one of *GoogleCloudDocumentaiV1beta3DatasetSchema or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudDocumentaiV1beta3DatasetSchema.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsProcessorsDatasetUpdateDatasetSchemaCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDocumentaiV1beta3DatasetSchema, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudDocumentaiV1beta3DatasetSchema{ + ServerResponse: googleapi.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 DatasetSchema.", + // "flatPath": "v1beta3/projects/{projectsId}/locations/{locationsId}/processors/{processorsId}/dataset/datasetSchema", + // "httpMethod": "PATCH", + // "id": "documentai.projects.locations.processors.dataset.updateDatasetSchema", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Dataset schema resource name. Format: `projects/{project}/locations/{location}/processors/{processor}/dataset/datasetSchema`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/processors/[^/]+/dataset/datasetSchema$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "The update mask applies to the resource.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta3/{+name}", + // "request": { + // "$ref": "GoogleCloudDocumentaiV1beta3DatasetSchema" + // }, + // "response": { + // "$ref": "GoogleCloudDocumentaiV1beta3DatasetSchema" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "documentai.projects.locations.processors.humanReviewConfig.reviewDocument": type ProjectsLocationsProcessorsHumanReviewConfigReviewDocumentCall struct { diff --git a/healthcare/v1beta1/healthcare-api.json b/healthcare/v1beta1/healthcare-api.json index 9966b204d26..c8976c557c7 100644 --- a/healthcare/v1beta1/healthcare-api.json +++ b/healthcare/v1beta1/healthcare-api.json @@ -4941,7 +4941,7 @@ } } }, - "revision": "20230510", + "revision": "20230519", "rootUrl": "https://healthcare.googleapis.com/", "schemas": { "Action": { @@ -6017,6 +6017,13 @@ "description": "An entity mention in the document.", "id": "EntityMention", "properties": { + "additionalInfo": { + "description": "Additional information about the entity mention. For example, for an entity mention of type `DATE` this can be its more specific date types from the following list: `ADMISSION_DATE`, `CONSULTATION_DATE`, `DISCHARGE_DATE`, `SERVICE_DATE`, `VISIT_DATE`, `DIAGNOSIS_DATE`, `MED_STARTED_DATE`, `MED_ENDED_DATE`, `NOTE_DATE`, `PROCEDURE_DATE`, `RADIATION_STARTED_DATE`, `RADIATION_ENDED_DATE`, `STAGE_DATE`", + "items": { + "$ref": "Feature" + }, + "type": "array" + }, "certaintyAssessment": { "$ref": "Feature", "description": "The certainty assessment of the entity mention. Its value is one of: LIKELY, SOMEWHAT_LIKELY, UNCERTAIN, SOMEWHAT_UNLIKELY, UNLIKELY, CONDITIONAL" diff --git a/healthcare/v1beta1/healthcare-gen.go b/healthcare/v1beta1/healthcare-gen.go index eb7c45938c2..922cb6a8827 100644 --- a/healthcare/v1beta1/healthcare-gen.go +++ b/healthcare/v1beta1/healthcare-gen.go @@ -2426,6 +2426,15 @@ func (s *Entity) MarshalJSON() ([]byte, error) { // EntityMention: An entity mention in the document. type EntityMention struct { + // AdditionalInfo: Additional information about the entity mention. For + // example, for an entity mention of type `DATE` this can be its more + // specific date types from the following list: `ADMISSION_DATE`, + // `CONSULTATION_DATE`, `DISCHARGE_DATE`, `SERVICE_DATE`, `VISIT_DATE`, + // `DIAGNOSIS_DATE`, `MED_STARTED_DATE`, `MED_ENDED_DATE`, `NOTE_DATE`, + // `PROCEDURE_DATE`, `RADIATION_STARTED_DATE`, `RADIATION_ENDED_DATE`, + // `STAGE_DATE` + AdditionalInfo []*Feature `json:"additionalInfo,omitempty"` + // CertaintyAssessment: The certainty assessment of the entity mention. // Its value is one of: LIKELY, SOMEWHAT_LIKELY, UNCERTAIN, // SOMEWHAT_UNLIKELY, UNLIKELY, CONDITIONAL @@ -2468,15 +2477,15 @@ type EntityMention struct { // 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 + // ForceSendFields is a list of field names (e.g. "AdditionalInfo") to + // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or 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 + // NullFields is a list of field names (e.g. "AdditionalInfo") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the diff --git a/iap/v1/iap-api.json b/iap/v1/iap-api.json index e4124d50070..f8ff4f1a30e 100644 --- a/iap/v1/iap-api.json +++ b/iap/v1/iap-api.json @@ -648,11 +648,41 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "validateAttributeExpression": { + "description": "Validates a given CEL expression conforms to IAP restrictions.", + "flatPath": "v1/{v1Id}:validateAttributeExpression", + "httpMethod": "POST", + "id": "iap.validateAttributeExpression", + "parameterOrder": [ + "name" + ], + "parameters": { + "expression": { + "description": "Required. User input string expression. Should be of the form 'attributes.saml_attributes.filter(attribute, attribute.name in ['{attribute_name}', '{attribute_name}'])'", + "location": "query", + "type": "string" + }, + "name": { + "description": "Required. The resource name of the IAP protected resource.", + "location": "path", + "pattern": "^.*$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:validateAttributeExpression", + "response": { + "$ref": "ValidateIapAttributeExpressionResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } } } }, - "revision": "20230407", + "revision": "20230526", "rootUrl": "https://iap.googleapis.com/", "schemas": { "AccessDeniedPageSettings": { @@ -1224,6 +1254,12 @@ } }, "type": "object" + }, + "ValidateIapAttributeExpressionResponse": { + "description": "API requires a return message, but currently all response strings will fit in the status and public message. In the future, this response can hold AST validation info.", + "id": "ValidateIapAttributeExpressionResponse", + "properties": {}, + "type": "object" } }, "servicePath": "", diff --git a/iap/v1/iap-gen.go b/iap/v1/iap-gen.go index 0120d93879f..51180ca7598 100644 --- a/iap/v1/iap-gen.go +++ b/iap/v1/iap-gen.go @@ -1499,6 +1499,16 @@ func (s *TunnelDestGroup) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ValidateIapAttributeExpressionResponse: API requires a return +// message, but currently all response strings will fit in the status +// and public message. In the future, this response can hold AST +// validation info. +type ValidateIapAttributeExpressionResponse struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + // method id "iap.projects.brands.create": type ProjectsBrandsCreateCall struct { @@ -4279,3 +4289,151 @@ func (c *V1UpdateIapSettingsCall) Do(opts ...googleapi.CallOption) (*IapSettings // } } + +// method id "iap.validateAttributeExpression": + +type V1ValidateAttributeExpressionCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// ValidateAttributeExpression: Validates a given CEL expression +// conforms to IAP restrictions. +// +// - name: The resource name of the IAP protected resource. +func (r *V1Service) ValidateAttributeExpression(name string) *V1ValidateAttributeExpressionCall { + c := &V1ValidateAttributeExpressionCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Expression sets the optional parameter "expression": Required. User +// input string expression. Should be of the form +// 'attributes.saml_attributes.filter(attribute, attribute.name in +// ['{attribute_name}', '{attribute_name}'])' +func (c *V1ValidateAttributeExpressionCall) Expression(expression string) *V1ValidateAttributeExpressionCall { + c.urlParams_.Set("expression", expression) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *V1ValidateAttributeExpressionCall) Fields(s ...googleapi.Field) *V1ValidateAttributeExpressionCall { + 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 *V1ValidateAttributeExpressionCall) Context(ctx context.Context) *V1ValidateAttributeExpressionCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *V1ValidateAttributeExpressionCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *V1ValidateAttributeExpressionCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + 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}:validateAttributeExpression") + 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 "iap.validateAttributeExpression" call. +// Exactly one of *ValidateIapAttributeExpressionResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *ValidateIapAttributeExpressionResponse.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *V1ValidateAttributeExpressionCall) Do(opts ...googleapi.CallOption) (*ValidateIapAttributeExpressionResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ValidateIapAttributeExpressionResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Validates a given CEL expression conforms to IAP restrictions.", + // "flatPath": "v1/{v1Id}:validateAttributeExpression", + // "httpMethod": "POST", + // "id": "iap.validateAttributeExpression", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "expression": { + // "description": "Required. User input string expression. Should be of the form 'attributes.saml_attributes.filter(attribute, attribute.name in ['{attribute_name}', '{attribute_name}'])'", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "Required. The resource name of the IAP protected resource.", + // "location": "path", + // "pattern": "^.*$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:validateAttributeExpression", + // "response": { + // "$ref": "ValidateIapAttributeExpressionResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} diff --git a/language/v1/language-api.json b/language/v1/language-api.json index b796575a1df..1e239c11b0e 100644 --- a/language/v1/language-api.json +++ b/language/v1/language-api.json @@ -223,11 +223,30 @@ "https://www.googleapis.com/auth/cloud-language", "https://www.googleapis.com/auth/cloud-platform" ] + }, + "moderateText": { + "description": "Moderates a document for harmful and sensitive categories.", + "flatPath": "v1/documents:moderateText", + "httpMethod": "POST", + "id": "language.documents.moderateText", + "parameterOrder": [], + "parameters": {}, + "path": "v1/documents:moderateText", + "request": { + "$ref": "ModerateTextRequest" + }, + "response": { + "$ref": "ModerateTextResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-language", + "https://www.googleapis.com/auth/cloud-platform" + ] } } } }, - "revision": "20230424", + "revision": "20230527", "rootUrl": "https://language.googleapis.com/", "schemas": { "AnalyzeEntitiesRequest": { @@ -478,6 +497,13 @@ "description": "The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See Document.language field for more details.", "type": "string" }, + "moderationCategories": { + "description": "Harmful and sensitive categories identified in the input document.", + "items": { + "$ref": "ClassificationCategory" + }, + "type": "array" + }, "sentences": { "description": "Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.", "items": { @@ -898,6 +924,35 @@ "extractSyntax": { "description": "Extract syntax information.", "type": "boolean" + }, + "moderateText": { + "description": "Moderate the document for harmful and sensitive categories.", + "type": "boolean" + } + }, + "type": "object" + }, + "ModerateTextRequest": { + "description": "The document moderation request message.", + "id": "ModerateTextRequest", + "properties": { + "document": { + "$ref": "Document", + "description": "Required. Input document." + } + }, + "type": "object" + }, + "ModerateTextResponse": { + "description": "The document moderation response message.", + "id": "ModerateTextResponse", + "properties": { + "moderationCategories": { + "description": "Harmful and sensitive categories representing the input document.", + "items": { + "$ref": "ClassificationCategory" + }, + "type": "array" } }, "type": "object" diff --git a/language/v1/language-gen.go b/language/v1/language-gen.go index b2b76ec2068..7b7ca13eda5 100644 --- a/language/v1/language-gen.go +++ b/language/v1/language-gen.go @@ -568,6 +568,10 @@ type AnnotateTextResponse struct { // details. Language string `json:"language,omitempty"` + // ModerationCategories: Harmful and sensitive categories identified in + // the input document. + ModerationCategories []*ClassificationCategory `json:"moderationCategories,omitempty"` + // Sentences: Sentences in the input document. Populated if the user // enables AnnotateTextRequest.Features.extract_syntax. Sentences []*Sentence `json:"sentences,omitempty"` @@ -1103,6 +1107,10 @@ type Features struct { // ExtractSyntax: Extract syntax information. ExtractSyntax bool `json:"extractSyntax,omitempty"` + // ModerateText: Moderate the document for harmful and sensitive + // categories. + ModerateText bool `json:"moderateText,omitempty"` + // ForceSendFields is a list of field names (e.g. // "ClassificationModelOptions") to unconditionally include in API // requests. By default, fields with empty or default values are omitted @@ -1128,6 +1136,69 @@ func (s *Features) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ModerateTextRequest: The document moderation request message. +type ModerateTextRequest struct { + // Document: Required. Input document. + Document *Document `json:"document,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Document") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Document") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ModerateTextRequest) MarshalJSON() ([]byte, error) { + type NoMethod ModerateTextRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ModerateTextResponse: The document moderation response message. +type ModerateTextResponse struct { + // ModerationCategories: Harmful and sensitive categories representing + // the input document. + ModerationCategories []*ClassificationCategory `json:"moderationCategories,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. + // "ModerationCategories") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ModerationCategories") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *ModerateTextResponse) MarshalJSON() ([]byte, error) { + type NoMethod ModerateTextResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // PartOfSpeech: Represents part of speech information for a token. // Parts of speech are as defined in // http://www.lrec-conf.org/proceedings/lrec2012/pdf/274_Paper.pdf @@ -2313,3 +2384,130 @@ func (c *DocumentsClassifyTextCall) Do(opts ...googleapi.CallOption) (*ClassifyT // } } + +// method id "language.documents.moderateText": + +type DocumentsModerateTextCall struct { + s *Service + moderatetextrequest *ModerateTextRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// ModerateText: Moderates a document for harmful and sensitive +// categories. +func (r *DocumentsService) ModerateText(moderatetextrequest *ModerateTextRequest) *DocumentsModerateTextCall { + c := &DocumentsModerateTextCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.moderatetextrequest = moderatetextrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *DocumentsModerateTextCall) Fields(s ...googleapi.Field) *DocumentsModerateTextCall { + 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 *DocumentsModerateTextCall) Context(ctx context.Context) *DocumentsModerateTextCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *DocumentsModerateTextCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *DocumentsModerateTextCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + 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.moderatetextrequest) + 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/documents:moderateText") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "language.documents.moderateText" call. +// Exactly one of *ModerateTextResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ModerateTextResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *DocumentsModerateTextCall) Do(opts ...googleapi.CallOption) (*ModerateTextResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ModerateTextResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Moderates a document for harmful and sensitive categories.", + // "flatPath": "v1/documents:moderateText", + // "httpMethod": "POST", + // "id": "language.documents.moderateText", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v1/documents:moderateText", + // "request": { + // "$ref": "ModerateTextRequest" + // }, + // "response": { + // "$ref": "ModerateTextResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-language", + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} diff --git a/language/v1beta2/language-api.json b/language/v1beta2/language-api.json index 9aca9de4814..d6de5c670fe 100644 --- a/language/v1beta2/language-api.json +++ b/language/v1beta2/language-api.json @@ -223,11 +223,30 @@ "https://www.googleapis.com/auth/cloud-language", "https://www.googleapis.com/auth/cloud-platform" ] + }, + "moderateText": { + "description": "Moderates a document for harmful and sensitive categories.", + "flatPath": "v1beta2/documents:moderateText", + "httpMethod": "POST", + "id": "language.documents.moderateText", + "parameterOrder": [], + "parameters": {}, + "path": "v1beta2/documents:moderateText", + "request": { + "$ref": "ModerateTextRequest" + }, + "response": { + "$ref": "ModerateTextResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-language", + "https://www.googleapis.com/auth/cloud-platform" + ] } } } }, - "revision": "20230424", + "revision": "20230527", "rootUrl": "https://language.googleapis.com/", "schemas": { "AnalyzeEntitiesRequest": { @@ -478,6 +497,13 @@ "description": "The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See Document.language field for more details.", "type": "string" }, + "moderationCategories": { + "description": "Harmful and sensitive categories identified in the input document.", + "items": { + "$ref": "ClassificationCategory" + }, + "type": "array" + }, "sentences": { "description": "Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.", "items": { @@ -916,6 +942,35 @@ "extractSyntax": { "description": "Extract syntax information.", "type": "boolean" + }, + "moderateText": { + "description": "Moderate the document for harmful and sensitive categories.", + "type": "boolean" + } + }, + "type": "object" + }, + "ModerateTextRequest": { + "description": "The document moderation request message.", + "id": "ModerateTextRequest", + "properties": { + "document": { + "$ref": "Document", + "description": "Required. Input document." + } + }, + "type": "object" + }, + "ModerateTextResponse": { + "description": "The document moderation response message.", + "id": "ModerateTextResponse", + "properties": { + "moderationCategories": { + "description": "Harmful and sensitive categories representing the input document.", + "items": { + "$ref": "ClassificationCategory" + }, + "type": "array" } }, "type": "object" diff --git a/language/v1beta2/language-gen.go b/language/v1beta2/language-gen.go index f45f4c0bafa..879c0e086f4 100644 --- a/language/v1beta2/language-gen.go +++ b/language/v1beta2/language-gen.go @@ -568,6 +568,10 @@ type AnnotateTextResponse struct { // details. Language string `json:"language,omitempty"` + // ModerationCategories: Harmful and sensitive categories identified in + // the input document. + ModerationCategories []*ClassificationCategory `json:"moderationCategories,omitempty"` + // Sentences: Sentences in the input document. Populated if the user // enables AnnotateTextRequest.Features.extract_syntax. Sentences []*Sentence `json:"sentences,omitempty"` @@ -1124,6 +1128,10 @@ type Features struct { // ExtractSyntax: Extract syntax information. ExtractSyntax bool `json:"extractSyntax,omitempty"` + // ModerateText: Moderate the document for harmful and sensitive + // categories. + ModerateText bool `json:"moderateText,omitempty"` + // ForceSendFields is a list of field names (e.g. // "ClassificationModelOptions") to unconditionally include in API // requests. By default, fields with empty or default values are omitted @@ -1149,6 +1157,69 @@ func (s *Features) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ModerateTextRequest: The document moderation request message. +type ModerateTextRequest struct { + // Document: Required. Input document. + Document *Document `json:"document,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Document") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Document") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ModerateTextRequest) MarshalJSON() ([]byte, error) { + type NoMethod ModerateTextRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ModerateTextResponse: The document moderation response message. +type ModerateTextResponse struct { + // ModerationCategories: Harmful and sensitive categories representing + // the input document. + ModerationCategories []*ClassificationCategory `json:"moderationCategories,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. + // "ModerationCategories") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ModerationCategories") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *ModerateTextResponse) MarshalJSON() ([]byte, error) { + type NoMethod ModerateTextResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // PartOfSpeech: Represents part of speech information for a token. type PartOfSpeech struct { // Aspect: The grammatical aspect. @@ -2331,3 +2402,130 @@ func (c *DocumentsClassifyTextCall) Do(opts ...googleapi.CallOption) (*ClassifyT // } } + +// method id "language.documents.moderateText": + +type DocumentsModerateTextCall struct { + s *Service + moderatetextrequest *ModerateTextRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// ModerateText: Moderates a document for harmful and sensitive +// categories. +func (r *DocumentsService) ModerateText(moderatetextrequest *ModerateTextRequest) *DocumentsModerateTextCall { + c := &DocumentsModerateTextCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.moderatetextrequest = moderatetextrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *DocumentsModerateTextCall) Fields(s ...googleapi.Field) *DocumentsModerateTextCall { + 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 *DocumentsModerateTextCall) Context(ctx context.Context) *DocumentsModerateTextCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *DocumentsModerateTextCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *DocumentsModerateTextCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + 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.moderatetextrequest) + 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/documents:moderateText") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "language.documents.moderateText" call. +// Exactly one of *ModerateTextResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ModerateTextResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *DocumentsModerateTextCall) Do(opts ...googleapi.CallOption) (*ModerateTextResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ModerateTextResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Moderates a document for harmful and sensitive categories.", + // "flatPath": "v1beta2/documents:moderateText", + // "httpMethod": "POST", + // "id": "language.documents.moderateText", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v1beta2/documents:moderateText", + // "request": { + // "$ref": "ModerateTextRequest" + // }, + // "response": { + // "$ref": "ModerateTextResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-language", + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} diff --git a/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-api.json b/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-api.json index 51578b585a9..2e3a3525be6 100644 --- a/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-api.json +++ b/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-api.json @@ -414,56 +414,6 @@ }, "locations": { "methods": { - "associate": { - "description": "Associates a location to a place ID. Any previous association is overwritten. This operation is only valid if the location is unverified. The association must be valid, that is, it appears in the list of `SearchGoogleLocations`.", - "flatPath": "v1/locations/{locationsId}:associate", - "httpMethod": "POST", - "id": "mybusinessbusinessinformation.locations.associate", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The resource name of the location to associate.", - "location": "path", - "pattern": "^locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}:associate", - "request": { - "$ref": "AssociateLocationRequest" - }, - "response": { - "$ref": "Empty" - } - }, - "clearLocationAssociation": { - "description": "Clears an association between a location and its place ID. This operation is only valid if the location is unverified.", - "flatPath": "v1/locations/{locationsId}:clearLocationAssociation", - "httpMethod": "POST", - "id": "mybusinessbusinessinformation.locations.clearLocationAssociation", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The resource name of the location to disassociate.", - "location": "path", - "pattern": "^locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}:clearLocationAssociation", - "request": { - "$ref": "ClearLocationAssociationRequest" - }, - "response": { - "$ref": "Empty" - } - }, "delete": { "description": "Deletes a location. If this location cannot be deleted using the API and it is marked so in the `google.mybusiness.businessinformation.v1.LocationState`, use the [Google Business Profile](https://business.google.com/manage/) website.", "flatPath": "v1/locations/{locationsId}", @@ -662,7 +612,7 @@ } } }, - "revision": "20221201", + "revision": "20230531", "rootUrl": "https://mybusinessbusinessinformation.googleapis.com/", "schemas": { "AdWordsLocationExtensions": { @@ -676,17 +626,6 @@ }, "type": "object" }, - "AssociateLocationRequest": { - "description": "Request message for Locations.AssociateLocationRequest.", - "id": "AssociateLocationRequest", - "properties": { - "placeId": { - "description": "The association to establish. If not set, it indicates no match.", - "type": "string" - } - }, - "type": "object" - }, "Attribute": { "description": "A location attribute. Attributes provide additional information about a location. The attributes that can be set on a location may vary based on the properties of that location (for example, category). Available attributes are determined by Google and may be added and removed without API changes.", "id": "Attribute", @@ -954,12 +893,6 @@ }, "type": "object" }, - "ClearLocationAssociationRequest": { - "description": "Request message for Locations.ClearLocationAssociationRequest.", - "id": "ClearLocationAssociationRequest", - "properties": {}, - "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, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", "id": "Date", diff --git a/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-gen.go b/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-gen.go index f10ee14eddb..7e6505ddf24 100644 --- a/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-gen.go +++ b/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-gen.go @@ -249,36 +249,6 @@ func (s *AdWordsLocationExtensions) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AssociateLocationRequest: Request message for -// Locations.AssociateLocationRequest. -type AssociateLocationRequest struct { - // PlaceId: The association to establish. If not set, it indicates no - // match. - PlaceId string `json:"placeId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "PlaceId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PlaceId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *AssociateLocationRequest) MarshalJSON() ([]byte, error) { - type NoMethod AssociateLocationRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // Attribute: A location attribute. Attributes provide additional // information about a location. The attributes that can be set on a // location may vary based on the properties of that location (for @@ -737,11 +707,6 @@ func (s *ChainUri) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ClearLocationAssociationRequest: Request message for -// Locations.ClearLocationAssociationRequest. -type ClearLocationAssociationRequest struct { -} - // 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 @@ -3931,289 +3896,6 @@ func (c *GoogleLocationsSearchCall) Do(opts ...googleapi.CallOption) (*SearchGoo } -// method id "mybusinessbusinessinformation.locations.associate": - -type LocationsAssociateCall struct { - s *Service - name string - associatelocationrequest *AssociateLocationRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Associate: Associates a location to a place ID. Any previous -// association is overwritten. This operation is only valid if the -// location is unverified. The association must be valid, that is, it -// appears in the list of `SearchGoogleLocations`. -// -// - name: The resource name of the location to associate. -func (r *LocationsService) Associate(name string, associatelocationrequest *AssociateLocationRequest) *LocationsAssociateCall { - c := &LocationsAssociateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.associatelocationrequest = associatelocationrequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *LocationsAssociateCall) Fields(s ...googleapi.Field) *LocationsAssociateCall { - 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 *LocationsAssociateCall) Context(ctx context.Context) *LocationsAssociateCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *LocationsAssociateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *LocationsAssociateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - 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.associatelocationrequest) - 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}:associate") - 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 "mybusinessbusinessinformation.locations.associate" 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 *LocationsAssociateCall) 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, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(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": "Associates a location to a place ID. Any previous association is overwritten. This operation is only valid if the location is unverified. The association must be valid, that is, it appears in the list of `SearchGoogleLocations`.", - // "flatPath": "v1/locations/{locationsId}:associate", - // "httpMethod": "POST", - // "id": "mybusinessbusinessinformation.locations.associate", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The resource name of the location to associate.", - // "location": "path", - // "pattern": "^locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}:associate", - // "request": { - // "$ref": "AssociateLocationRequest" - // }, - // "response": { - // "$ref": "Empty" - // } - // } - -} - -// method id "mybusinessbusinessinformation.locations.clearLocationAssociation": - -type LocationsClearLocationAssociationCall struct { - s *Service - name string - clearlocationassociationrequest *ClearLocationAssociationRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// ClearLocationAssociation: Clears an association between a location -// and its place ID. This operation is only valid if the location is -// unverified. -// -// - name: The resource name of the location to disassociate. -func (r *LocationsService) ClearLocationAssociation(name string, clearlocationassociationrequest *ClearLocationAssociationRequest) *LocationsClearLocationAssociationCall { - c := &LocationsClearLocationAssociationCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.clearlocationassociationrequest = clearlocationassociationrequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *LocationsClearLocationAssociationCall) Fields(s ...googleapi.Field) *LocationsClearLocationAssociationCall { - 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 *LocationsClearLocationAssociationCall) Context(ctx context.Context) *LocationsClearLocationAssociationCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *LocationsClearLocationAssociationCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *LocationsClearLocationAssociationCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - 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.clearlocationassociationrequest) - 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}:clearLocationAssociation") - 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 "mybusinessbusinessinformation.locations.clearLocationAssociation" 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 *LocationsClearLocationAssociationCall) 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, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(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": "Clears an association between a location and its place ID. This operation is only valid if the location is unverified.", - // "flatPath": "v1/locations/{locationsId}:clearLocationAssociation", - // "httpMethod": "POST", - // "id": "mybusinessbusinessinformation.locations.clearLocationAssociation", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The resource name of the location to disassociate.", - // "location": "path", - // "pattern": "^locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}:clearLocationAssociation", - // "request": { - // "$ref": "ClearLocationAssociationRequest" - // }, - // "response": { - // "$ref": "Empty" - // } - // } - -} - // method id "mybusinessbusinessinformation.locations.delete": type LocationsDeleteCall struct { diff --git a/recaptchaenterprise/v1/recaptchaenterprise-api.json b/recaptchaenterprise/v1/recaptchaenterprise-api.json index ad2bd557db2..24d206370d7 100644 --- a/recaptchaenterprise/v1/recaptchaenterprise-api.json +++ b/recaptchaenterprise/v1/recaptchaenterprise-api.json @@ -666,7 +666,7 @@ } } }, - "revision": "20230514", + "revision": "20230528", "rootUrl": "https://recaptchaenterprise.googleapis.com/", "schemas": { "GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment": { @@ -860,7 +860,7 @@ "type": "string" }, "privateKey": { - "description": "Required. Input only. A private key (downloaded as a text file with a .p8 file extension) generated for your Apple Developer account.", + "description": "Required. Input only. A private key (downloaded as a text file with a .p8 file extension) generated for your Apple Developer account. Ensure that Apple DeviceCheck is enabled for the private key.", "type": "string" }, "teamId": { @@ -1226,7 +1226,7 @@ }, "appleDeveloperId": { "$ref": "GoogleCloudRecaptchaenterpriseV1AppleDeveloperId", - "description": "Apple Developer account details for the app that is protected by the reCAPTCHA Key. reCAPTCHA Enterprise leverages platform specific checks like Apple AppAttest and Apple DeviceCheck to protect your app from abuse. Providing these fields allows reCAPTCHA Enterprise to get a better assessment of the integrity of your app." + "description": "Apple Developer account details for the app that is protected by the reCAPTCHA Key. reCAPTCHA Enterprise leverages platform-specific checks like Apple App Attest and Apple DeviceCheck to protect your app from abuse. Providing these fields allows reCAPTCHA Enterprise to get a better assessment of the integrity of your app." } }, "type": "object" diff --git a/recaptchaenterprise/v1/recaptchaenterprise-gen.go b/recaptchaenterprise/v1/recaptchaenterprise-gen.go index d4903c5d3df..85f833aebaa 100644 --- a/recaptchaenterprise/v1/recaptchaenterprise-gen.go +++ b/recaptchaenterprise/v1/recaptchaenterprise-gen.go @@ -491,7 +491,8 @@ type GoogleCloudRecaptchaenterpriseV1AppleDeveloperId struct { // PrivateKey: Required. Input only. A private key (downloaded as a text // file with a .p8 file extension) generated for your Apple Developer - // account. + // account. Ensure that Apple DeviceCheck is enabled for the private + // key. PrivateKey string `json:"privateKey,omitempty"` // TeamId: Required. The Apple team ID (10-character string) owning the @@ -1194,7 +1195,7 @@ type GoogleCloudRecaptchaenterpriseV1IOSKeySettings struct { // AppleDeveloperId: Apple Developer account details for the app that is // protected by the reCAPTCHA Key. reCAPTCHA Enterprise leverages - // platform specific checks like Apple AppAttest and Apple DeviceCheck + // platform-specific checks like Apple App Attest and Apple DeviceCheck // to protect your app from abuse. Providing these fields allows // reCAPTCHA Enterprise to get a better assessment of the integrity of // your app. diff --git a/run/v1/run-api.json b/run/v1/run-api.json index c881b2378d7..2cfcbcc4b53 100644 --- a/run/v1/run-api.json +++ b/run/v1/run-api.json @@ -2289,7 +2289,7 @@ } } }, - "revision": "20230521", + "revision": "20230528", "rootUrl": "https://run.googleapis.com/", "schemas": { "Addressable": { @@ -2351,7 +2351,7 @@ "type": "object" }, "AuthorizedDomain": { - "description": "A domain that a user has been authorized to administer. To authorize use of a domain, verify ownership via [Webmaster Central](https://www.google.com/webmasters/verification/home).", + "description": "A domain that a user has been authorized to administer. To authorize use of a domain, verify ownership via [Search Console](https://search.google.com/search-console/welcome).", "id": "AuthorizedDomain", "properties": { "id": { diff --git a/run/v1/run-gen.go b/run/v1/run-gen.go index 0d385749380..5e1c1c539cc 100644 --- a/run/v1/run-gen.go +++ b/run/v1/run-gen.go @@ -500,9 +500,8 @@ func (s *AuditLogConfig) MarshalJSON() ([]byte, error) { } // AuthorizedDomain: A domain that a user has been authorized to -// administer. To authorize use of a domain, verify ownership via -// Webmaster Central -// (https://www.google.com/webmasters/verification/home). +// administer. To authorize use of a domain, verify ownership via Search +// Console (https://search.google.com/search-console/welcome). type AuthorizedDomain struct { // Id: Relative name of the domain authorized for use. Example: // `example.com`. diff --git a/run/v2/run-api.json b/run/v2/run-api.json index 2501308c87f..1737ff3aea2 100644 --- a/run/v2/run-api.json +++ b/run/v2/run-api.json @@ -1087,7 +1087,7 @@ } } }, - "revision": "20230430", + "revision": "20230528", "rootUrl": "https://run.googleapis.com/", "schemas": { "GoogleCloudRunV2BinaryAuthorization": { @@ -1264,7 +1264,7 @@ "type": "object" }, "GoogleCloudRunV2Container": { - "description": "A single application container. This specifies both the container to run, the command to run in the container and the arguments to supply to it. Note that additional arguments may be supplied by the system to the container at runtime.", + "description": "A single application container. This specifies both the container to run, the command to run in the container and the arguments to supply to it. Note that additional arguments can be supplied by the system to the container at runtime.", "id": "GoogleCloudRunV2Container", "properties": { "args": { @@ -1380,7 +1380,7 @@ "id": "GoogleCloudRunV2EnvVar", "properties": { "name": { - "description": "Required. Name of the environment variable. Must be a C_IDENTIFIER, and mnay not exceed 32768 characters.", + "description": "Required. Name of the environment variable. Must be a C_IDENTIFIER, and must not exceed 32768 characters.", "type": "string" }, "value": { diff --git a/run/v2/run-gen.go b/run/v2/run-gen.go index 1e0eb2e7b97..10b03567140 100644 --- a/run/v2/run-gen.go +++ b/run/v2/run-gen.go @@ -444,7 +444,7 @@ func (s *GoogleCloudRunV2Condition) MarshalJSON() ([]byte, error) { // GoogleCloudRunV2Container: A single application container. This // specifies both the container to run, the command to run in the // container and the arguments to supply to it. Note that additional -// arguments may be supplied by the system to the container at runtime. +// arguments can be supplied by the system to the container at runtime. type GoogleCloudRunV2Container struct { // Args: Arguments to the entrypoint. The docker image's CMD is used if // this is not provided. @@ -608,7 +608,7 @@ func (s *GoogleCloudRunV2EmptyDirVolumeSource) MarshalJSON() ([]byte, error) { // present in a Container. type GoogleCloudRunV2EnvVar struct { // Name: Required. Name of the environment variable. Must be a - // C_IDENTIFIER, and mnay not exceed 32768 characters. + // C_IDENTIFIER, and must not exceed 32768 characters. Name string `json:"name,omitempty"` // Value: Variable references $(VAR_NAME) are expanded using the diff --git a/streetviewpublish/v1/streetviewpublish-api.json b/streetviewpublish/v1/streetviewpublish-api.json index 7c1880a1443..cf4f9e80ede 100644 --- a/streetviewpublish/v1/streetviewpublish-api.json +++ b/streetviewpublish/v1/streetviewpublish-api.json @@ -534,7 +534,7 @@ } } }, - "revision": "20230522", + "revision": "20230530", "rootUrl": "https://streetviewpublish.googleapis.com/", "schemas": { "BatchDeletePhotosRequest": { @@ -1155,6 +1155,11 @@ "description": "Output only. A rectangular box that encapsulates every image in this photo sequence.", "readOnly": true }, + "takedown": { + "description": "Output only. Set if a Photo within the PhotoSequence contains a takedown.", + "readOnly": true, + "type": "boolean" + }, "uploadReference": { "$ref": "UploadRef", "description": "Input only. Required when creating photo sequence. The resource name where the bytes of the photo sequence (in the form of video) are uploaded." diff --git a/streetviewpublish/v1/streetviewpublish-gen.go b/streetviewpublish/v1/streetviewpublish-gen.go index 4848f6f257e..83cfcbadfbd 100644 --- a/streetviewpublish/v1/streetviewpublish-gen.go +++ b/streetviewpublish/v1/streetviewpublish-gen.go @@ -1200,6 +1200,10 @@ type PhotoSequence struct { // every image in this photo sequence. SequenceBounds *LatLngBounds `json:"sequenceBounds,omitempty"` + // Takedown: Output only. Set if a Photo within the PhotoSequence + // contains a takedown. + Takedown bool `json:"takedown,omitempty"` + // UploadReference: Input only. Required when creating photo sequence. // The resource name where the bytes of the photo sequence (in the form // of video) are uploaded. From 4fed5c245895e756541e509887175cb8ade4adbf Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 2 Jun 2023 00:22:12 -0700 Subject: [PATCH 3/7] feat(all): auto-regenerate discovery clients (#2011) --- androidpublisher/v3/androidpublisher-api.json | 20 +- androidpublisher/v3/androidpublisher-gen.go | 11 +- appengine/v1/appengine-api.json | 43 +- appengine/v1/appengine-gen.go | 173 +++ chat/v1/chat-api.json | 4 +- chat/v1/chat-gen.go | 6 +- container/v1beta1/container-api.json | 146 +- container/v1beta1/container-gen.go | 331 +++++ dataplex/v1/dataplex-api.json | 45 +- dataplex/v1/dataplex-gen.go | 84 +- displayvideo/v1/displayvideo-api.json | 20 +- displayvideo/v1/displayvideo-gen.go | 3 + displayvideo/v2/displayvideo-api.json | 20 +- displayvideo/v2/displayvideo-gen.go | 3 + .../v1/essentialcontacts-api.json | 116 +- essentialcontacts/v1/essentialcontacts-gen.go | 117 +- firestore/v1/firestore-api.json | 33 +- firestore/v1/firestore-gen.go | 41 + identitytoolkit/v1/identitytoolkit-api.json | 10 +- identitytoolkit/v1/identitytoolkit-gen.go | 33 +- identitytoolkit/v2/identitytoolkit-api.json | 438 +----- identitytoolkit/v2/identitytoolkit-gen.go | 1264 +---------------- metastore/v1/metastore-api.json | 18 +- metastore/v1/metastore-gen.go | 12 + monitoring/v3/monitoring-api.json | 4 +- monitoring/v3/monitoring-gen.go | 4 +- sqladmin/v1/sqladmin-api.json | 74 +- sqladmin/v1/sqladmin-gen.go | 184 ++- sqladmin/v1beta4/sqladmin-api.json | 74 +- sqladmin/v1beta4/sqladmin-gen.go | 184 ++- 30 files changed, 1552 insertions(+), 1963 deletions(-) diff --git a/androidpublisher/v3/androidpublisher-api.json b/androidpublisher/v3/androidpublisher-api.json index 9394d7c953f..dd051376a2d 100644 --- a/androidpublisher/v3/androidpublisher-api.json +++ b/androidpublisher/v3/androidpublisher-api.json @@ -4047,7 +4047,7 @@ } } }, - "revision": "20230523", + "revision": "20230601", "rootUrl": "https://androidpublisher.googleapis.com/", "schemas": { "AcquisitionTargetingRule": { @@ -5194,11 +5194,13 @@ "CAN_MANAGE_PUBLIC_LISTING", "CAN_MANAGE_DRAFT_APPS", "CAN_MANAGE_ORDERS", - "CAN_MANAGE_APP_CONTENT" + "CAN_MANAGE_APP_CONTENT", + "CAN_VIEW_NON_FINANCIAL_DATA", + "CAN_VIEW_APP_QUALITY" ], "enumDescriptions": [ "Unknown or unspecified permission.", - "View app information (read-only).", + "View app information (read-only). Deprecated: Try defining a more granular capability. Otherwise, check AppLevelPermission.CAN_VIEW_NON_FINANCIAL_DATA.", "View financial data.", "Admin (all permissions).", "Reply to reviews.", @@ -5208,7 +5210,9 @@ "Manage store presence.", "Edit and delete draft apps.", "Manage orders and subscriptions.", - "Manage policy related pages." + "Manage policy related pages.", + "View app information (read-only).", + "View app quality data such as Vitals, Crashes etc." ], "type": "string" }, @@ -7117,7 +7121,9 @@ "CAN_CREATE_MANAGED_PLAY_APPS_GLOBAL", "CAN_CHANGE_MANAGED_PLAY_SETTING_GLOBAL", "CAN_MANAGE_ORDERS_GLOBAL", - "CAN_MANAGE_APP_CONTENT_GLOBAL" + "CAN_MANAGE_APP_CONTENT_GLOBAL", + "CAN_VIEW_NON_FINANCIAL_DATA_GLOBAL", + "CAN_VIEW_APP_QUALITY_GLOBAL" ], "enumDescriptions": [ "Unknown or unspecified permission.", @@ -7135,7 +7141,9 @@ "Create and publish private apps to your organization.", "Choose whether apps are public, or only available to your organization.", "Manage orders and subscriptions.", - "Manage policy related pages on all apps for the developer." + "Manage policy related pages on all apps for the developer.", + "View app information and download bulk reports (read-only).", + "View app quality information for all apps for the developer." ], "type": "string" }, diff --git a/androidpublisher/v3/androidpublisher-gen.go b/androidpublisher/v3/androidpublisher-gen.go index 76cf6e1f569..a4c016209f6 100644 --- a/androidpublisher/v3/androidpublisher-gen.go +++ b/androidpublisher/v3/androidpublisher-gen.go @@ -2438,7 +2438,9 @@ type Grant struct { // Possible values: // "APP_LEVEL_PERMISSION_UNSPECIFIED" - Unknown or unspecified // permission. - // "CAN_ACCESS_APP" - View app information (read-only). + // "CAN_ACCESS_APP" - View app information (read-only). Deprecated: + // Try defining a more granular capability. Otherwise, check + // AppLevelPermission.CAN_VIEW_NON_FINANCIAL_DATA. // "CAN_VIEW_FINANCIAL_DATA" - View financial data. // "CAN_MANAGE_PERMISSIONS" - Admin (all permissions). // "CAN_REPLY_TO_REVIEWS" - Reply to reviews. @@ -2451,6 +2453,9 @@ type Grant struct { // "CAN_MANAGE_DRAFT_APPS" - Edit and delete draft apps. // "CAN_MANAGE_ORDERS" - Manage orders and subscriptions. // "CAN_MANAGE_APP_CONTENT" - Manage policy related pages. + // "CAN_VIEW_NON_FINANCIAL_DATA" - View app information (read-only). + // "CAN_VIEW_APP_QUALITY" - View app quality data such as Vitals, + // Crashes etc. AppLevelPermissions []string `json:"appLevelPermissions,omitempty"` // Name: Required. Resource name for this grant, following the pattern @@ -5980,6 +5985,10 @@ type User struct { // "CAN_MANAGE_ORDERS_GLOBAL" - Manage orders and subscriptions. // "CAN_MANAGE_APP_CONTENT_GLOBAL" - Manage policy related pages on // all apps for the developer. + // "CAN_VIEW_NON_FINANCIAL_DATA_GLOBAL" - View app information and + // download bulk reports (read-only). + // "CAN_VIEW_APP_QUALITY_GLOBAL" - View app quality information for + // all apps for the developer. DeveloperAccountPermissions []string `json:"developerAccountPermissions,omitempty"` // Email: Immutable. The user's email address. diff --git a/appengine/v1/appengine-api.json b/appengine/v1/appengine-api.json index f0842c4a168..8e8b88cecd8 100644 --- a/appengine/v1/appengine-api.json +++ b/appengine/v1/appengine-api.json @@ -1679,6 +1679,47 @@ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/cloud-platform.read-only" ] + }, + "repair": { + "description": "Recreates the required App Engine features for the specified App Engine application, for example a Cloud Storage bucket or App Engine service account. Use this method if you receive an error message about a missing feature, for example, Error retrieving the App Engine service account. If you have deleted your App Engine service account, this will not be able to recreate it. Instead, you should attempt to use the IAM undelete API if possible at https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts/undelete?apix_params=%7B\"name\"%3A\"projects%2F-%2FserviceAccounts%2Funique_id\"%2C\"resource\"%3A%7B%7D%7D . If the deletion was recent, the numeric ID can be found in the Cloud Console Activity Log.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}:repair", + "httpMethod": "POST", + "id": "appengine.projects.locations.applications.repair", + "parameterOrder": [ + "projectsId", + "locationsId", + "applicationsId" + ], + "parameters": { + "applicationsId": { + "description": "Part of `name`. See documentation of `projectsId`.", + "location": "path", + "required": true, + "type": "string" + }, + "locationsId": { + "description": "Part of `name`. See documentation of `projectsId`.", + "location": "path", + "required": true, + "type": "string" + }, + "projectsId": { + "description": "Part of `name`. Name of the application to repair. Example: apps/myapp", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "v1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}:repair", + "request": { + "$ref": "RepairApplicationRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } } } @@ -1687,7 +1728,7 @@ } } }, - "revision": "20230501", + "revision": "20230529", "rootUrl": "https://appengine.googleapis.com/", "schemas": { "ApiConfigHandler": { diff --git a/appengine/v1/appengine-gen.go b/appengine/v1/appengine-gen.go index 824b4b39615..675d0310a93 100644 --- a/appengine/v1/appengine-gen.go +++ b/appengine/v1/appengine-gen.go @@ -11167,3 +11167,176 @@ func (c *ProjectsLocationsApplicationsGetCall) Do(opts ...googleapi.CallOption) // } } + +// method id "appengine.projects.locations.applications.repair": + +type ProjectsLocationsApplicationsRepairCall struct { + s *APIService + projectsId string + locationsId string + applicationsId string + repairapplicationrequest *RepairApplicationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Repair: Recreates the required App Engine features for the specified +// App Engine application, for example a Cloud Storage bucket or App +// Engine service account. Use this method if you receive an error +// message about a missing feature, for example, Error retrieving the +// App Engine service account. If you have deleted your App Engine +// service account, this will not be able to recreate it. Instead, you +// should attempt to use the IAM undelete API if possible at +// https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts/undelete?apix_params=%7B"name"%3A"projects%2F-%2FserviceAccounts%2Funique_id"%2C"resource"%3A%7B%7D%7D +// . If the deletion was recent, the numeric ID can be found in the +// Cloud Console Activity Log. +// +// - applicationsId: Part of `name`. See documentation of `projectsId`. +// - locationsId: Part of `name`. See documentation of `projectsId`. +// - projectsId: Part of `name`. Name of the application to repair. +// Example: apps/myapp. +func (r *ProjectsLocationsApplicationsService) Repair(projectsId string, locationsId string, applicationsId string, repairapplicationrequest *RepairApplicationRequest) *ProjectsLocationsApplicationsRepairCall { + c := &ProjectsLocationsApplicationsRepairCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.projectsId = projectsId + c.locationsId = locationsId + c.applicationsId = applicationsId + c.repairapplicationrequest = repairapplicationrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsApplicationsRepairCall) Fields(s ...googleapi.Field) *ProjectsLocationsApplicationsRepairCall { + 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 *ProjectsLocationsApplicationsRepairCall) Context(ctx context.Context) *ProjectsLocationsApplicationsRepairCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsApplicationsRepairCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsApplicationsRepairCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + 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.repairapplicationrequest) + 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/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}:repair") + 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{ + "projectsId": c.projectsId, + "locationsId": c.locationsId, + "applicationsId": c.applicationsId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "appengine.projects.locations.applications.repair" 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 *ProjectsLocationsApplicationsRepairCall) 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, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(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": "Recreates the required App Engine features for the specified App Engine application, for example a Cloud Storage bucket or App Engine service account. Use this method if you receive an error message about a missing feature, for example, Error retrieving the App Engine service account. If you have deleted your App Engine service account, this will not be able to recreate it. Instead, you should attempt to use the IAM undelete API if possible at https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts/undelete?apix_params=%7B\"name\"%3A\"projects%2F-%2FserviceAccounts%2Funique_id\"%2C\"resource\"%3A%7B%7D%7D . If the deletion was recent, the numeric ID can be found in the Cloud Console Activity Log.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}:repair", + // "httpMethod": "POST", + // "id": "appengine.projects.locations.applications.repair", + // "parameterOrder": [ + // "projectsId", + // "locationsId", + // "applicationsId" + // ], + // "parameters": { + // "applicationsId": { + // "description": "Part of `name`. See documentation of `projectsId`.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "locationsId": { + // "description": "Part of `name`. See documentation of `projectsId`.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "projectsId": { + // "description": "Part of `name`. Name of the application to repair. Example: apps/myapp", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}:repair", + // "request": { + // "$ref": "RepairApplicationRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} diff --git a/chat/v1/chat-api.json b/chat/v1/chat-api.json index baf43738d40..d2030d7c0c3 100644 --- a/chat/v1/chat-api.json +++ b/chat/v1/chat-api.json @@ -940,7 +940,7 @@ } } }, - "revision": "20230525", + "revision": "20230530", "rootUrl": "https://chat.googleapis.com/", "schemas": { "ActionParameter": { @@ -2973,7 +2973,7 @@ "ROLE_MANAGER" ], "enumDescriptions": [ - "Default value. The user isn't a member of the space, but might be invited.", + "Default value. For users: they aren't a member of the space, but can be invited. For Google Groups: they're always assigned this role (other enum values might be used in the future).", "A member of the space. The user has basic permissions, like sending messages to the space. In 1:1 and unnamed group conversations, everyone has this role.", "A space manager. The user has all basic permissions plus administrative permissions that let them manage the space, like adding or removing members. Only supported in SpaceType.SPACE." ], diff --git a/chat/v1/chat-gen.go b/chat/v1/chat-gen.go index 717045226f8..bcb85366405 100644 --- a/chat/v1/chat-gen.go +++ b/chat/v1/chat-gen.go @@ -3792,8 +3792,10 @@ type Membership struct { // their permitted actions in the space. // // Possible values: - // "MEMBERSHIP_ROLE_UNSPECIFIED" - Default value. The user isn't a - // member of the space, but might be invited. + // "MEMBERSHIP_ROLE_UNSPECIFIED" - Default value. For users: they + // aren't a member of the space, but can be invited. For Google Groups: + // they're always assigned this role (other enum values might be used in + // the future). // "ROLE_MEMBER" - A member of the space. The user has basic // permissions, like sending messages to the space. In 1:1 and unnamed // group conversations, everyone has this role. diff --git a/container/v1beta1/container-api.json b/container/v1beta1/container-api.json index aea60be9353..b078b1e5c25 100644 --- a/container/v1beta1/container-api.json +++ b/container/v1beta1/container-api.json @@ -222,6 +222,31 @@ "resources": { "clusters": { "methods": { + "checkAutopilotCompatibility": { + "description": "Checks the cluster compatibility with Autopilot mode, and returns a list of compatibility issues.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:checkAutopilotCompatibility", + "httpMethod": "GET", + "id": "container.projects.locations.clusters.checkAutopilotCompatibility", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name (project, location, cluster) of the cluster to retrieve. Specified in the format `projects/*/locations/*/clusters/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:checkAutopilotCompatibility", + "response": { + "$ref": "CheckAutopilotCompatibilityResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "completeIpRotation": { "description": "Completes master IP rotation.", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:completeIpRotation", @@ -2514,7 +2539,7 @@ } } }, - "revision": "20230515", + "revision": "20230519", "rootUrl": "https://container.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -2672,6 +2697,53 @@ }, "type": "object" }, + "AutopilotCompatibilityIssue": { + "description": "AutopilotCompatibilityIssue contains information about a specific compatibility issue with Autopilot mode.", + "id": "AutopilotCompatibilityIssue", + "properties": { + "constraintType": { + "description": "The constraint type of the issue.", + "type": "string" + }, + "description": { + "description": "The description of the issue.", + "type": "string" + }, + "documentationUrl": { + "description": "A URL to a public documnetation, which addresses resolving this issue.", + "type": "string" + }, + "incompatibilityType": { + "description": "The incompatibility type of this issue.", + "enum": [ + "UNSPECIFIED", + "INCOMPATIBILITY", + "ADDITIONAL_CONFIG_REQUIRED", + "PASSED_WITH_OPTIONAL_CONFIG" + ], + "enumDescriptions": [ + "Default value, should not be used.", + "Indicates that the issue is a known incompatibility between the cluster and Autopilot mode.", + "Indicates the issue is an incompatibility if customers take no further action to resolve.", + "Indicates the issue is not an incompatibility, but depending on the workloads business logic, there is a potential that they won't work on Autopilot." + ], + "type": "string" + }, + "lastObservation": { + "description": "The last time when this issue was observed.", + "format": "google-datetime", + "type": "string" + }, + "subjects": { + "description": "The name of the resources which are subject to this issue.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "AutoprovisioningNodePoolDefaults": { "description": "AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP.", "id": "AutoprovisioningNodePoolDefaults", @@ -2738,6 +2810,22 @@ }, "type": "object" }, + "BestEffortProvisioning": { + "description": "Best effort provisioning.", + "id": "BestEffortProvisioning", + "properties": { + "enabled": { + "description": "When this is enabled, cluster/node pool creations will ignore non-fatal errors like stockout to best provision as many nodes as possible right now and eventually bring up all target number of nodes", + "type": "boolean" + }, + "minProvisionNodes": { + "description": "Minimum number of nodes to be provisioned to be considered as succeeded, and the rest of nodes will be provisioned gradually and eventually when stockout issue has been resolved.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "BigQueryDestination": { "description": "Parameters for using BigQuery as the destination of resource usage export.", "id": "BigQueryDestination", @@ -2866,6 +2954,24 @@ }, "type": "object" }, + "CheckAutopilotCompatibilityResponse": { + "description": "CheckAutopilotCompatibilityResponse has a list of compatibility issues.", + "id": "CheckAutopilotCompatibilityResponse", + "properties": { + "issues": { + "description": "The list of issues for the given operation.", + "items": { + "$ref": "AutopilotCompatibilityIssue" + }, + "type": "array" + }, + "summary": { + "description": "The summary of the autopilot compatibility response.", + "type": "string" + } + }, + "type": "object" + }, "CidrBlock": { "description": "CidrBlock contains an optional name and one CIDR block.", "id": "CidrBlock", @@ -2993,6 +3099,10 @@ "description": "An optional description of this cluster.", "type": "string" }, + "enableK8sBetaApis": { + "$ref": "K8sBetaAPIConfig", + "description": "Kubernetes open source beta apis enabled on the cluster. Only beta apis." + }, "enableKubernetesAlpha": { "description": "Kubernetes alpha features are enabled on this cluster. This includes alpha API groups (e.g. v1beta1) and features that may not be production ready in the kubernetes version of the master and nodes. The cluster has no SLA for uptime and master/node upgrades are disabled. Alpha enabled clusters are automatically deleted thirty days after creation.", "type": "boolean" @@ -3377,6 +3487,10 @@ "$ref": "DNSConfig", "description": "DNSConfig contains clusterDNS config for this cluster." }, + "desiredEnableFqdnNetworkPolicy": { + "description": "Enable/Disable FQDN Network Policy for the cluster.", + "type": "boolean" + }, "desiredEnablePrivateEndpoint": { "description": "Enable/Disable private endpoint for the cluster's master.", "type": "boolean" @@ -3405,6 +3519,10 @@ "$ref": "IntraNodeVisibilityConfig", "description": "The desired config of Intra-node visibility." }, + "desiredK8sBetaApis": { + "$ref": "K8sBetaAPIConfig", + "description": "Beta APIs enabled for cluster." + }, "desiredL4ilbSubsettingConfig": { "$ref": "ILBSubsettingConfig", "description": "The desired L4 Internal Load Balancer Subsetting configuration." @@ -3550,6 +3668,10 @@ "$ref": "WorkloadIdentityConfig", "description": "Configuration for Workload Identity." }, + "enableK8sBetaApis": { + "$ref": "K8sBetaAPIConfig", + "description": "Kubernetes open source beta apis enabled on the cluster. Only beta apis" + }, "etag": { "description": "The current etag of the cluster. If an etag is provided and does not match the current etag of the cluster, update will be blocked and an ABORTED error will be returned.", "type": "string" @@ -4318,6 +4440,20 @@ }, "type": "object" }, + "K8sBetaAPIConfig": { + "description": "Kubernetes open source beta apis enabled on the cluster.", + "id": "K8sBetaAPIConfig", + "properties": { + "enabledApis": { + "description": "api name, e.g. storage.k8s.io/v1beta1/csistoragecapacities.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "KalmConfig": { "description": "Configuration options for the KALM addon.", "id": "KalmConfig", @@ -4820,6 +4956,10 @@ "$ref": "DNSConfig", "description": "DNSConfig contains clusterDNS config for this cluster." }, + "enableFqdnNetworkPolicy": { + "description": "Whether FQDN Network Policy is enabled on this cluster.", + "type": "boolean" + }, "enableIntraNodeVisibility": { "description": "Whether Intra-node visibility is enabled for this cluster. This makes same node pod to pod traffic visible for VPC network.", "type": "boolean" @@ -5255,6 +5395,10 @@ "$ref": "NodePoolAutoscaling", "description": "Autoscaler configuration for this NodePool. Autoscaler is enabled only if a valid configuration is present." }, + "bestEffortProvisioning": { + "$ref": "BestEffortProvisioning", + "description": "Enable best effort provisioning for nodes" + }, "conditions": { "description": "Which conditions caused the current node pool state.", "items": { diff --git a/container/v1beta1/container-gen.go b/container/v1beta1/container-gen.go index 829322c096d..11ff5368f72 100644 --- a/container/v1beta1/container-gen.go +++ b/container/v1beta1/container-gen.go @@ -580,6 +580,62 @@ func (s *Autopilot) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// AutopilotCompatibilityIssue: AutopilotCompatibilityIssue contains +// information about a specific compatibility issue with Autopilot mode. +type AutopilotCompatibilityIssue struct { + // ConstraintType: The constraint type of the issue. + ConstraintType string `json:"constraintType,omitempty"` + + // Description: The description of the issue. + Description string `json:"description,omitempty"` + + // DocumentationUrl: A URL to a public documnetation, which addresses + // resolving this issue. + DocumentationUrl string `json:"documentationUrl,omitempty"` + + // IncompatibilityType: The incompatibility type of this issue. + // + // Possible values: + // "UNSPECIFIED" - Default value, should not be used. + // "INCOMPATIBILITY" - Indicates that the issue is a known + // incompatibility between the cluster and Autopilot mode. + // "ADDITIONAL_CONFIG_REQUIRED" - Indicates the issue is an + // incompatibility if customers take no further action to resolve. + // "PASSED_WITH_OPTIONAL_CONFIG" - Indicates the issue is not an + // incompatibility, but depending on the workloads business logic, there + // is a potential that they won't work on Autopilot. + IncompatibilityType string `json:"incompatibilityType,omitempty"` + + // LastObservation: The last time when this issue was observed. + LastObservation string `json:"lastObservation,omitempty"` + + // Subjects: The name of the resources which are subject to this issue. + Subjects []string `json:"subjects,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ConstraintType") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ConstraintType") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *AutopilotCompatibilityIssue) MarshalJSON() ([]byte, error) { + type NoMethod AutopilotCompatibilityIssue + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // AutoprovisioningNodePoolDefaults: AutoprovisioningNodePoolDefaults // contains defaults for a node pool created by NAP. type AutoprovisioningNodePoolDefaults struct { @@ -703,6 +759,42 @@ func (s *AvailableVersion) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// BestEffortProvisioning: Best effort provisioning. +type BestEffortProvisioning struct { + // Enabled: When this is enabled, cluster/node pool creations will + // ignore non-fatal errors like stockout to best provision as many nodes + // as possible right now and eventually bring up all target number of + // nodes + Enabled bool `json:"enabled,omitempty"` + + // MinProvisionNodes: Minimum number of nodes to be provisioned to be + // considered as succeeded, and the rest of nodes will be provisioned + // gradually and eventually when stockout issue has been resolved. + MinProvisionNodes int64 `json:"minProvisionNodes,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Enabled") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or 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 *BestEffortProvisioning) MarshalJSON() ([]byte, error) { + type NoMethod BestEffortProvisioning + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // BigQueryDestination: Parameters for using BigQuery as the destination // of resource usage export. type BigQueryDestination struct { @@ -917,6 +1009,43 @@ func (s *CancelOperationRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// CheckAutopilotCompatibilityResponse: +// CheckAutopilotCompatibilityResponse has a list of compatibility +// issues. +type CheckAutopilotCompatibilityResponse struct { + // Issues: The list of issues for the given operation. + Issues []*AutopilotCompatibilityIssue `json:"issues,omitempty"` + + // Summary: The summary of the autopilot compatibility response. + Summary string `json:"summary,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Issues") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Issues") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CheckAutopilotCompatibilityResponse) MarshalJSON() ([]byte, error) { + type NoMethod CheckAutopilotCompatibilityResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // CidrBlock: CidrBlock contains an optional name and one CIDR block. type CidrBlock struct { // CidrBlock: cidr_block must be specified in CIDR notation. @@ -1092,6 +1221,10 @@ type Cluster struct { // Description: An optional description of this cluster. Description string `json:"description,omitempty"` + // EnableK8sBetaApis: Kubernetes open source beta apis enabled on the + // cluster. Only beta apis. + EnableK8sBetaApis *K8sBetaAPIConfig `json:"enableK8sBetaApis,omitempty"` + // EnableKubernetesAlpha: Kubernetes alpha features are enabled on this // cluster. This includes alpha API groups (e.g. v1beta1) and features // that may not be production ready in the kubernetes version of the @@ -1577,6 +1710,10 @@ type ClusterUpdate struct { // cluster. DesiredDnsConfig *DNSConfig `json:"desiredDnsConfig,omitempty"` + // DesiredEnableFqdnNetworkPolicy: Enable/Disable FQDN Network Policy + // for the cluster. + DesiredEnableFqdnNetworkPolicy bool `json:"desiredEnableFqdnNetworkPolicy,omitempty"` + // DesiredEnablePrivateEndpoint: Enable/Disable private endpoint for the // cluster's master. DesiredEnablePrivateEndpoint bool `json:"desiredEnablePrivateEndpoint,omitempty"` @@ -1603,6 +1740,9 @@ type ClusterUpdate struct { // visibility. DesiredIntraNodeVisibilityConfig *IntraNodeVisibilityConfig `json:"desiredIntraNodeVisibilityConfig,omitempty"` + // DesiredK8sBetaApis: Beta APIs enabled for cluster. + DesiredK8sBetaApis *K8sBetaAPIConfig `json:"desiredK8sBetaApis,omitempty"` + // DesiredL4ilbSubsettingConfig: The desired L4 Internal Load Balancer // Subsetting configuration. DesiredL4ilbSubsettingConfig *ILBSubsettingConfig `json:"desiredL4ilbSubsettingConfig,omitempty"` @@ -1769,6 +1909,10 @@ type ClusterUpdate struct { // DesiredWorkloadIdentityConfig: Configuration for Workload Identity. DesiredWorkloadIdentityConfig *WorkloadIdentityConfig `json:"desiredWorkloadIdentityConfig,omitempty"` + // EnableK8sBetaApis: Kubernetes open source beta apis enabled on the + // cluster. Only beta apis + EnableK8sBetaApis *K8sBetaAPIConfig `json:"enableK8sBetaApis,omitempty"` + // Etag: The current etag of the cluster. If an etag is provided and // does not match the current etag of the cluster, update will be // blocked and an ABORTED error will be returned. @@ -3261,6 +3405,36 @@ func (s *Jwk) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// K8sBetaAPIConfig: Kubernetes open source beta apis enabled on the +// cluster. +type K8sBetaAPIConfig struct { + // EnabledApis: api name, e.g. + // storage.k8s.io/v1beta1/csistoragecapacities. + EnabledApis []string `json:"enabledApis,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EnabledApis") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EnabledApis") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *K8sBetaAPIConfig) MarshalJSON() ([]byte, error) { + type NoMethod K8sBetaAPIConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // KalmConfig: Configuration options for the KALM addon. type KalmConfig struct { // Enabled: Whether KALM is enabled for this cluster. @@ -4239,6 +4413,10 @@ type NetworkConfig struct { // DnsConfig: DNSConfig contains clusterDNS config for this cluster. DnsConfig *DNSConfig `json:"dnsConfig,omitempty"` + // EnableFqdnNetworkPolicy: Whether FQDN Network Policy is enabled on + // this cluster. + EnableFqdnNetworkPolicy bool `json:"enableFqdnNetworkPolicy,omitempty"` + // EnableIntraNodeVisibility: Whether Intra-node visibility is enabled // for this cluster. This makes same node pod to pod traffic visible for // VPC network. @@ -4959,6 +5137,9 @@ type NodePool struct { // is enabled only if a valid configuration is present. Autoscaling *NodePoolAutoscaling `json:"autoscaling,omitempty"` + // BestEffortProvisioning: Enable best effort provisioning for nodes + BestEffortProvisioning *BestEffortProvisioning `json:"bestEffortProvisioning,omitempty"` + // Conditions: Which conditions caused the current node pool state. Conditions []*StatusCondition `json:"conditions,omitempty"` @@ -8964,6 +9145,156 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocat } +// method id "container.projects.locations.clusters.checkAutopilotCompatibility": + +type ProjectsLocationsClustersCheckAutopilotCompatibilityCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// CheckAutopilotCompatibility: Checks the cluster compatibility with +// Autopilot mode, and returns a list of compatibility issues. +// +// - name: The name (project, location, cluster) of the cluster to +// retrieve. Specified in the format +// `projects/*/locations/*/clusters/*`. +func (r *ProjectsLocationsClustersService) CheckAutopilotCompatibility(name string) *ProjectsLocationsClustersCheckAutopilotCompatibilityCall { + c := &ProjectsLocationsClustersCheckAutopilotCompatibilityCall{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 *ProjectsLocationsClustersCheckAutopilotCompatibilityCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersCheckAutopilotCompatibilityCall { + 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 *ProjectsLocationsClustersCheckAutopilotCompatibilityCall) IfNoneMatch(entityTag string) *ProjectsLocationsClustersCheckAutopilotCompatibilityCall { + 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 *ProjectsLocationsClustersCheckAutopilotCompatibilityCall) Context(ctx context.Context) *ProjectsLocationsClustersCheckAutopilotCompatibilityCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsClustersCheckAutopilotCompatibilityCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsClustersCheckAutopilotCompatibilityCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + 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}:checkAutopilotCompatibility") + 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 "container.projects.locations.clusters.checkAutopilotCompatibility" call. +// Exactly one of *CheckAutopilotCompatibilityResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *CheckAutopilotCompatibilityResponse.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsClustersCheckAutopilotCompatibilityCall) Do(opts ...googleapi.CallOption) (*CheckAutopilotCompatibilityResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &CheckAutopilotCompatibilityResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Checks the cluster compatibility with Autopilot mode, and returns a list of compatibility issues.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:checkAutopilotCompatibility", + // "httpMethod": "GET", + // "id": "container.projects.locations.clusters.checkAutopilotCompatibility", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name (project, location, cluster) of the cluster to retrieve. Specified in the format `projects/*/locations/*/clusters/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:checkAutopilotCompatibility", + // "response": { + // "$ref": "CheckAutopilotCompatibilityResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "container.projects.locations.clusters.completeIpRotation": type ProjectsLocationsClustersCompleteIpRotationCall struct { diff --git a/dataplex/v1/dataplex-api.json b/dataplex/v1/dataplex-api.json index c85b00d4bd3..f95dcfe1939 100644 --- a/dataplex/v1/dataplex-api.json +++ b/dataplex/v1/dataplex-api.json @@ -895,6 +895,11 @@ "parent" ], "parameters": { + "filter": { + "description": "Optional. An expression for filtering the results of the ListDataScanJobs request.If unspecified, all datascan jobs will be returned. Multiple filters can be applied (with AND, OR logical operators). Filters are case-sensitive.Allowed fields are: start_time end_timestart_time and end_time expect RFC-3339 formatted strings (e.g. 2018-10-08T18:30:00-07:00).For instance, 'start_time \u003e 2018-10-08T00:00:00.123456789Z AND end_time \u003c 2018-10-09T00:00:00.123456789Z' limits results to DataScanJobs between specified start and end times.", + "location": "query", + "type": "string" + }, "pageSize": { "description": "Optional. Maximum number of DataScanJobs to return. The service may return fewer than this value. If unspecified, at most 10 DataScanJobs will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", "format": "int32", @@ -4264,7 +4269,7 @@ } } }, - "revision": "20230521", + "revision": "20230530", "rootUrl": "https://dataplex.googleapis.com/", "schemas": { "Empty": { @@ -5316,6 +5321,14 @@ "description": "DataProfileScan related setting.", "id": "GoogleCloudDataplexV1DataProfileSpec", "properties": { + "excludeFields": { + "$ref": "GoogleCloudDataplexV1DataProfileSpecSelectedFields", + "description": "Optional. The fields to exclude from data profile.If specified, the fields will be excluded from data profile, regardless of include_fields value." + }, + "includeFields": { + "$ref": "GoogleCloudDataplexV1DataProfileSpecSelectedFields", + "description": "Optional. The fields to include in data profile.If not specified, all fields at the time of profile scan job execution are included, except for ones listed in exclude_fields." + }, "rowFilter": { "description": "Optional. A filter applied to all rows in a single DataScan job. The filter needs to be a valid SQL expression for a WHERE clause in BigQuery standard SQL syntax. Example: col1 \u003e= 0 AND col2 \u003c 10", "type": "string" @@ -5328,6 +5341,20 @@ }, "type": "object" }, + "GoogleCloudDataplexV1DataProfileSpecSelectedFields": { + "description": "The specification for fields to include or exclude in data profile scan.", + "id": "GoogleCloudDataplexV1DataProfileSpecSelectedFields", + "properties": { + "fieldNames": { + "description": "Optional. Expected input is a list of fully qualified names of fields as in the schema.Only top-level field names for nested fields are supported. For instance, if 'x' is of nested field type, listing 'x' is supported but 'x.y.z' is not supported. Here 'y' and 'y.z' are nested fields of 'x'.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDataplexV1DataQualityDimensionResult": { "description": "DataQualityDimensionResult provides a more detailed, per-dimension view of the results.", "id": "GoogleCloudDataplexV1DataQualityDimensionResult", @@ -6386,7 +6413,7 @@ "type": "object" }, "GoogleCloudDataplexV1Environment": { - "description": "Environment represents a user-visible compute infrastructure for analytics within a lake.", + "description": "Environment represents a user-visible compute infrastructure for analytics within a lake. LINT.IfChange", "id": "GoogleCloudDataplexV1Environment", "properties": { "createTime": { @@ -6698,6 +6725,20 @@ "format": "google-datetime", "type": "string" }, + "executionTrigger": { + "description": "Job execution trigger.", + "enum": [ + "EXECUTION_TRIGGER_UNSPECIFIED", + "TASK_CONFIG", + "RUN_REQUEST" + ], + "enumDescriptions": [ + "The job execution trigger is unspecified.", + "The job was triggered by Dataplex based on trigger spec from task definition.", + "The job was triggered by the explicit call of Task API." + ], + "type": "string" + }, "jobId": { "description": "The unique id identifying the job.", "type": "string" diff --git a/dataplex/v1/dataplex-gen.go b/dataplex/v1/dataplex-gen.go index e70da80c134..1d44d8f7f77 100644 --- a/dataplex/v1/dataplex-gen.go +++ b/dataplex/v1/dataplex-gen.go @@ -2029,6 +2029,16 @@ func (s *GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoTopNValue) // GoogleCloudDataplexV1DataProfileSpec: DataProfileScan related // setting. type GoogleCloudDataplexV1DataProfileSpec struct { + // ExcludeFields: Optional. The fields to exclude from data profile.If + // specified, the fields will be excluded from data profile, regardless + // of include_fields value. + ExcludeFields *GoogleCloudDataplexV1DataProfileSpecSelectedFields `json:"excludeFields,omitempty"` + + // IncludeFields: Optional. The fields to include in data profile.If not + // specified, all fields at the time of profile scan job execution are + // included, except for ones listed in exclude_fields. + IncludeFields *GoogleCloudDataplexV1DataProfileSpecSelectedFields `json:"includeFields,omitempty"` + // RowFilter: Optional. A filter applied to all rows in a single // DataScan job. The filter needs to be a valid SQL expression for a // WHERE clause in BigQuery standard SQL syntax. Example: col1 >= 0 AND @@ -2041,7 +2051,7 @@ type GoogleCloudDataplexV1DataProfileSpec struct { // applied if sampling_percent is not specified, 0 or 100. SamplingPercent float64 `json:"samplingPercent,omitempty"` - // ForceSendFields is a list of field names (e.g. "RowFilter") to + // ForceSendFields is a list of field names (e.g. "ExcludeFields") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2049,10 +2059,10 @@ type GoogleCloudDataplexV1DataProfileSpec struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "RowFilter") to include in - // API requests with the JSON null value. By default, fields with 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. "ExcludeFields") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` @@ -2078,6 +2088,39 @@ func (s *GoogleCloudDataplexV1DataProfileSpec) UnmarshalJSON(data []byte) error return nil } +// GoogleCloudDataplexV1DataProfileSpecSelectedFields: The specification +// for fields to include or exclude in data profile scan. +type GoogleCloudDataplexV1DataProfileSpecSelectedFields struct { + // FieldNames: Optional. Expected input is a list of fully qualified + // names of fields as in the schema.Only top-level field names for + // nested fields are supported. For instance, if 'x' is of nested field + // type, listing 'x' is supported but 'x.y.z' is not supported. Here 'y' + // and 'y.z' are nested fields of 'x'. + FieldNames []string `json:"fieldNames,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FieldNames") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FieldNames") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDataplexV1DataProfileSpecSelectedFields) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1DataProfileSpecSelectedFields + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDataplexV1DataQualityDimensionResult: // DataQualityDimensionResult provides a more detailed, per-dimension // view of the results. @@ -3638,6 +3681,7 @@ func (s *GoogleCloudDataplexV1EntityCompatibilityStatusCompatibility) MarshalJSO // GoogleCloudDataplexV1Environment: Environment represents a // user-visible compute infrastructure for analytics within a lake. +// LINT.IfChange type GoogleCloudDataplexV1Environment struct { // CreateTime: Output only. Environment creation time. CreateTime string `json:"createTime,omitempty"` @@ -4032,6 +4076,17 @@ type GoogleCloudDataplexV1JobEvent struct { // EndTime: The time when the job ended running. EndTime string `json:"endTime,omitempty"` + // ExecutionTrigger: Job execution trigger. + // + // Possible values: + // "EXECUTION_TRIGGER_UNSPECIFIED" - The job execution trigger is + // unspecified. + // "TASK_CONFIG" - The job was triggered by Dataplex based on trigger + // spec from task definition. + // "RUN_REQUEST" - The job was triggered by the explicit call of Task + // API. + ExecutionTrigger string `json:"executionTrigger,omitempty"` + // JobId: The unique id identifying the job. JobId string `json:"jobId,omitempty"` @@ -11164,6 +11219,20 @@ func (r *ProjectsLocationsDataScansJobsService) List(parent string) *ProjectsLoc return c } +// Filter sets the optional parameter "filter": An expression for +// filtering the results of the ListDataScanJobs request.If unspecified, +// all datascan jobs will be returned. Multiple filters can be applied +// (with AND, OR logical operators). Filters are case-sensitive.Allowed +// fields are: start_time end_timestart_time and end_time expect +// RFC-3339 formatted strings (e.g. 2018-10-08T18:30:00-07:00).For +// instance, 'start_time > 2018-10-08T00:00:00.123456789Z AND end_time < +// 2018-10-09T00:00:00.123456789Z' limits results to DataScanJobs +// between specified start and end times. +func (c *ProjectsLocationsDataScansJobsListCall) Filter(filter string) *ProjectsLocationsDataScansJobsListCall { + c.urlParams_.Set("filter", filter) + return c +} + // PageSize sets the optional parameter "pageSize": Maximum number of // DataScanJobs to return. The service may return fewer than this value. // If unspecified, at most 10 DataScanJobs will be returned. The maximum @@ -11292,6 +11361,11 @@ func (c *ProjectsLocationsDataScansJobsListCall) Do(opts ...googleapi.CallOption // "parent" // ], // "parameters": { + // "filter": { + // "description": "Optional. An expression for filtering the results of the ListDataScanJobs request.If unspecified, all datascan jobs will be returned. Multiple filters can be applied (with AND, OR logical operators). Filters are case-sensitive.Allowed fields are: start_time end_timestart_time and end_time expect RFC-3339 formatted strings (e.g. 2018-10-08T18:30:00-07:00).For instance, 'start_time \u003e 2018-10-08T00:00:00.123456789Z AND end_time \u003c 2018-10-09T00:00:00.123456789Z' limits results to DataScanJobs between specified start and end times.", + // "location": "query", + // "type": "string" + // }, // "pageSize": { // "description": "Optional. Maximum number of DataScanJobs to return. The service may return fewer than this value. If unspecified, at most 10 DataScanJobs will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", // "format": "int32", diff --git a/displayvideo/v1/displayvideo-api.json b/displayvideo/v1/displayvideo-api.json index 1c04fb53017..1ccc68526b5 100644 --- a/displayvideo/v1/displayvideo-api.json +++ b/displayvideo/v1/displayvideo-api.json @@ -8146,7 +8146,7 @@ } } }, - "revision": "20230530", + "revision": "20230601", "rootUrl": "https://displayvideo.googleapis.com/", "schemas": { "ActivateManualTriggerRequest": { @@ -10887,7 +10887,8 @@ "SDF_VERSION_5_2", "SDF_VERSION_5_3", "SDF_VERSION_5_4", - "SDF_VERSION_5_5" + "SDF_VERSION_5_5", + "SDF_VERSION_6" ], "enumDescriptions": [ "SDF version value is not specified or is unknown in this version.", @@ -10900,7 +10901,8 @@ "SDF version 5.2", "SDF version 5.3", "SDF version 5.4", - "SDF version 5.5" + "SDF version 5.5", + "SDF version 6" ], "type": "string" } @@ -17656,7 +17658,8 @@ "SDF_VERSION_5_2", "SDF_VERSION_5_3", "SDF_VERSION_5_4", - "SDF_VERSION_5_5" + "SDF_VERSION_5_5", + "SDF_VERSION_6" ], "enumDescriptions": [ "SDF version value is not specified or is unknown in this version.", @@ -17669,7 +17672,8 @@ "SDF version 5.2", "SDF version 5.3", "SDF version 5.4", - "SDF version 5.5" + "SDF version 5.5", + "SDF version 6" ], "type": "string" } @@ -17714,7 +17718,8 @@ "SDF_VERSION_5_2", "SDF_VERSION_5_3", "SDF_VERSION_5_4", - "SDF_VERSION_5_5" + "SDF_VERSION_5_5", + "SDF_VERSION_6" ], "enumDescriptions": [ "SDF version value is not specified or is unknown in this version.", @@ -17727,7 +17732,8 @@ "SDF version 5.2", "SDF version 5.3", "SDF version 5.4", - "SDF version 5.5" + "SDF version 5.5", + "SDF version 6" ], "type": "string" } diff --git a/displayvideo/v1/displayvideo-gen.go b/displayvideo/v1/displayvideo-gen.go index 55b5909a318..62730265349 100644 --- a/displayvideo/v1/displayvideo-gen.go +++ b/displayvideo/v1/displayvideo-gen.go @@ -5221,6 +5221,7 @@ type CreateSdfDownloadTaskRequest struct { // "SDF_VERSION_5_3" - SDF version 5.3 // "SDF_VERSION_5_4" - SDF version 5.4 // "SDF_VERSION_5_5" - SDF version 5.5 + // "SDF_VERSION_6" - SDF version 6 Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "AdvertiserId") to @@ -14682,6 +14683,7 @@ type SdfConfig struct { // "SDF_VERSION_5_3" - SDF version 5.3 // "SDF_VERSION_5_4" - SDF version 5.4 // "SDF_VERSION_5_5" - SDF version 5.5 + // "SDF_VERSION_6" - SDF version 6 Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "AdminEmail") to @@ -14764,6 +14766,7 @@ type SdfDownloadTaskMetadata struct { // "SDF_VERSION_5_3" - SDF version 5.3 // "SDF_VERSION_5_4" - SDF version 5.4 // "SDF_VERSION_5_5" - SDF version 5.5 + // "SDF_VERSION_6" - SDF version 6 Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "CreateTime") to diff --git a/displayvideo/v2/displayvideo-api.json b/displayvideo/v2/displayvideo-api.json index d9cb56031a2..212a27822c6 100644 --- a/displayvideo/v2/displayvideo-api.json +++ b/displayvideo/v2/displayvideo-api.json @@ -9172,7 +9172,7 @@ } } }, - "revision": "20230530", + "revision": "20230601", "rootUrl": "https://displayvideo.googleapis.com/", "schemas": { "ActivateManualTriggerRequest": { @@ -12185,7 +12185,8 @@ "SDF_VERSION_5_2", "SDF_VERSION_5_3", "SDF_VERSION_5_4", - "SDF_VERSION_5_5" + "SDF_VERSION_5_5", + "SDF_VERSION_6" ], "enumDescriptions": [ "SDF version value is not specified or is unknown in this version.", @@ -12198,7 +12199,8 @@ "SDF version 5.2", "SDF version 5.3", "SDF version 5.4", - "SDF version 5.5" + "SDF version 5.5", + "SDF version 6" ], "type": "string" } @@ -19427,7 +19429,8 @@ "SDF_VERSION_5_2", "SDF_VERSION_5_3", "SDF_VERSION_5_4", - "SDF_VERSION_5_5" + "SDF_VERSION_5_5", + "SDF_VERSION_6" ], "enumDescriptions": [ "SDF version value is not specified or is unknown in this version.", @@ -19440,7 +19443,8 @@ "SDF version 5.2", "SDF version 5.3", "SDF version 5.4", - "SDF version 5.5" + "SDF version 5.5", + "SDF version 6" ], "type": "string" } @@ -19485,7 +19489,8 @@ "SDF_VERSION_5_2", "SDF_VERSION_5_3", "SDF_VERSION_5_4", - "SDF_VERSION_5_5" + "SDF_VERSION_5_5", + "SDF_VERSION_6" ], "enumDescriptions": [ "SDF version value is not specified or is unknown in this version.", @@ -19498,7 +19503,8 @@ "SDF version 5.2", "SDF version 5.3", "SDF version 5.4", - "SDF version 5.5" + "SDF version 5.5", + "SDF version 6" ], "type": "string" } diff --git a/displayvideo/v2/displayvideo-gen.go b/displayvideo/v2/displayvideo-gen.go index 6394ae7dbf0..99b80defb5d 100644 --- a/displayvideo/v2/displayvideo-gen.go +++ b/displayvideo/v2/displayvideo-gen.go @@ -5756,6 +5756,7 @@ type CreateSdfDownloadTaskRequest struct { // "SDF_VERSION_5_3" - SDF version 5.3 // "SDF_VERSION_5_4" - SDF version 5.4 // "SDF_VERSION_5_5" - SDF version 5.5 + // "SDF_VERSION_6" - SDF version 6 Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "AdvertiserId") to @@ -15908,6 +15909,7 @@ type SdfConfig struct { // "SDF_VERSION_5_3" - SDF version 5.3 // "SDF_VERSION_5_4" - SDF version 5.4 // "SDF_VERSION_5_5" - SDF version 5.5 + // "SDF_VERSION_6" - SDF version 6 Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "AdminEmail") to @@ -15990,6 +15992,7 @@ type SdfDownloadTaskMetadata struct { // "SDF_VERSION_5_3" - SDF version 5.3 // "SDF_VERSION_5_4" - SDF version 5.4 // "SDF_VERSION_5_5" - SDF version 5.5 + // "SDF_VERSION_6" - SDF version 6 Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "CreateTime") to diff --git a/essentialcontacts/v1/essentialcontacts-api.json b/essentialcontacts/v1/essentialcontacts-api.json index df8e14736b0..45d463fdeca 100644 --- a/essentialcontacts/v1/essentialcontacts-api.json +++ b/essentialcontacts/v1/essentialcontacts-api.json @@ -1,13 +1,4 @@ { - "auth": { - "oauth2": { - "scopes": { - "https://www.googleapis.com/auth/cloud-platform": { - "description": "See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account." - } - } - } - }, "basePath": "", "baseUrl": "https://essentialcontacts.googleapis.com/", "batchPath": "batch", @@ -168,10 +159,7 @@ "path": "v1/{+parent}/contacts:compute", "response": { "$ref": "GoogleCloudEssentialcontactsV1ComputeContactsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + } }, "create": { "description": "Adds a new contact for a resource.", @@ -196,10 +184,7 @@ }, "response": { "$ref": "GoogleCloudEssentialcontactsV1Contact" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + } }, "delete": { "description": "Deletes a contact.", @@ -221,10 +206,7 @@ "path": "v1/{+name}", "response": { "$ref": "GoogleProtobufEmpty" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + } }, "get": { "description": "Gets a single contact.", @@ -246,10 +228,7 @@ "path": "v1/{+name}", "response": { "$ref": "GoogleCloudEssentialcontactsV1Contact" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + } }, "list": { "description": "Lists the contacts that have been set on a resource.", @@ -282,10 +261,7 @@ "path": "v1/{+parent}/contacts", "response": { "$ref": "GoogleCloudEssentialcontactsV1ListContactsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + } }, "patch": { "description": "Updates a contact. Note: A contact's email address cannot be changed.", @@ -316,10 +292,7 @@ }, "response": { "$ref": "GoogleCloudEssentialcontactsV1Contact" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + } }, "sendTestMessage": { "description": "Allows a contact admin to send a test message to contact to verify that it has been configured correctly.", @@ -344,10 +317,7 @@ }, "response": { "$ref": "GoogleProtobufEmpty" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + } } } } @@ -416,10 +386,7 @@ "path": "v1/{+parent}/contacts:compute", "response": { "$ref": "GoogleCloudEssentialcontactsV1ComputeContactsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + } }, "create": { "description": "Adds a new contact for a resource.", @@ -444,10 +411,7 @@ }, "response": { "$ref": "GoogleCloudEssentialcontactsV1Contact" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + } }, "delete": { "description": "Deletes a contact.", @@ -469,10 +433,7 @@ "path": "v1/{+name}", "response": { "$ref": "GoogleProtobufEmpty" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + } }, "get": { "description": "Gets a single contact.", @@ -494,10 +455,7 @@ "path": "v1/{+name}", "response": { "$ref": "GoogleCloudEssentialcontactsV1Contact" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + } }, "list": { "description": "Lists the contacts that have been set on a resource.", @@ -530,10 +488,7 @@ "path": "v1/{+parent}/contacts", "response": { "$ref": "GoogleCloudEssentialcontactsV1ListContactsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + } }, "patch": { "description": "Updates a contact. Note: A contact's email address cannot be changed.", @@ -564,10 +519,7 @@ }, "response": { "$ref": "GoogleCloudEssentialcontactsV1Contact" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + } }, "sendTestMessage": { "description": "Allows a contact admin to send a test message to contact to verify that it has been configured correctly.", @@ -592,10 +544,7 @@ }, "response": { "$ref": "GoogleProtobufEmpty" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + } } } } @@ -664,10 +613,7 @@ "path": "v1/{+parent}/contacts:compute", "response": { "$ref": "GoogleCloudEssentialcontactsV1ComputeContactsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + } }, "create": { "description": "Adds a new contact for a resource.", @@ -692,10 +638,7 @@ }, "response": { "$ref": "GoogleCloudEssentialcontactsV1Contact" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + } }, "delete": { "description": "Deletes a contact.", @@ -717,10 +660,7 @@ "path": "v1/{+name}", "response": { "$ref": "GoogleProtobufEmpty" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + } }, "get": { "description": "Gets a single contact.", @@ -742,10 +682,7 @@ "path": "v1/{+name}", "response": { "$ref": "GoogleCloudEssentialcontactsV1Contact" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + } }, "list": { "description": "Lists the contacts that have been set on a resource.", @@ -778,10 +715,7 @@ "path": "v1/{+parent}/contacts", "response": { "$ref": "GoogleCloudEssentialcontactsV1ListContactsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + } }, "patch": { "description": "Updates a contact. Note: A contact's email address cannot be changed.", @@ -812,10 +746,7 @@ }, "response": { "$ref": "GoogleCloudEssentialcontactsV1Contact" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + } }, "sendTestMessage": { "description": "Allows a contact admin to send a test message to contact to verify that it has been configured correctly.", @@ -840,17 +771,14 @@ }, "response": { "$ref": "GoogleProtobufEmpty" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + } } } } } } }, - "revision": "20221031", + "revision": "20230531", "rootUrl": "https://essentialcontacts.googleapis.com/", "schemas": { "GoogleCloudEssentialcontactsV1ComputeContactsResponse": { diff --git a/essentialcontacts/v1/essentialcontacts-gen.go b/essentialcontacts/v1/essentialcontacts-gen.go index 88c45cb593e..1fa6d007dfe 100644 --- a/essentialcontacts/v1/essentialcontacts-gen.go +++ b/essentialcontacts/v1/essentialcontacts-gen.go @@ -79,20 +79,8 @@ const apiVersion = "v1" const basePath = "https://essentialcontacts.googleapis.com/" const mtlsBasePath = "https://essentialcontacts.mtls.googleapis.com/" -// OAuth2 scopes used by this API. -const ( - // See, edit, configure, and delete your Google Cloud data and see the - // email address for your Google Account. - CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" -) - // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { - scopesOption := internaloption.WithDefaultScopes( - "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...) @@ -697,10 +685,7 @@ func (c *FoldersContactsComputeCall) Do(opts ...googleapi.CallOption) (*GoogleCl // "path": "v1/{+parent}/contacts:compute", // "response": { // "$ref": "GoogleCloudEssentialcontactsV1ComputeContactsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] + // } // } } @@ -863,10 +848,7 @@ func (c *FoldersContactsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleClo // }, // "response": { // "$ref": "GoogleCloudEssentialcontactsV1Contact" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] + // } // } } @@ -998,10 +980,7 @@ func (c *FoldersContactsDeleteCall) Do(opts ...googleapi.CallOption) (*GooglePro // "path": "v1/{+name}", // "response": { // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] + // } // } } @@ -1148,10 +1127,7 @@ func (c *FoldersContactsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudE // "path": "v1/{+name}", // "response": { // "$ref": "GoogleCloudEssentialcontactsV1Contact" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] + // } // } } @@ -1329,10 +1305,7 @@ func (c *FoldersContactsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloud // "path": "v1/{+parent}/contacts", // "response": { // "$ref": "GoogleCloudEssentialcontactsV1ListContactsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] + // } // } } @@ -1509,10 +1482,7 @@ func (c *FoldersContactsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleClou // }, // "response": { // "$ref": "GoogleCloudEssentialcontactsV1Contact" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] + // } // } } @@ -1656,10 +1626,7 @@ func (c *FoldersContactsSendTestMessageCall) Do(opts ...googleapi.CallOption) (* // }, // "response": { // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] + // } // } } @@ -1915,10 +1882,7 @@ func (c *OrganizationsContactsComputeCall) Do(opts ...googleapi.CallOption) (*Go // "path": "v1/{+parent}/contacts:compute", // "response": { // "$ref": "GoogleCloudEssentialcontactsV1ComputeContactsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] + // } // } } @@ -2081,10 +2045,7 @@ func (c *OrganizationsContactsCreateCall) Do(opts ...googleapi.CallOption) (*Goo // }, // "response": { // "$ref": "GoogleCloudEssentialcontactsV1Contact" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] + // } // } } @@ -2216,10 +2177,7 @@ func (c *OrganizationsContactsDeleteCall) Do(opts ...googleapi.CallOption) (*Goo // "path": "v1/{+name}", // "response": { // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] + // } // } } @@ -2366,10 +2324,7 @@ func (c *OrganizationsContactsGetCall) Do(opts ...googleapi.CallOption) (*Google // "path": "v1/{+name}", // "response": { // "$ref": "GoogleCloudEssentialcontactsV1Contact" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] + // } // } } @@ -2547,10 +2502,7 @@ func (c *OrganizationsContactsListCall) Do(opts ...googleapi.CallOption) (*Googl // "path": "v1/{+parent}/contacts", // "response": { // "$ref": "GoogleCloudEssentialcontactsV1ListContactsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] + // } // } } @@ -2727,10 +2679,7 @@ func (c *OrganizationsContactsPatchCall) Do(opts ...googleapi.CallOption) (*Goog // }, // "response": { // "$ref": "GoogleCloudEssentialcontactsV1Contact" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] + // } // } } @@ -2874,10 +2823,7 @@ func (c *OrganizationsContactsSendTestMessageCall) Do(opts ...googleapi.CallOpti // }, // "response": { // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] + // } // } } @@ -3133,10 +3079,7 @@ func (c *ProjectsContactsComputeCall) Do(opts ...googleapi.CallOption) (*GoogleC // "path": "v1/{+parent}/contacts:compute", // "response": { // "$ref": "GoogleCloudEssentialcontactsV1ComputeContactsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] + // } // } } @@ -3299,10 +3242,7 @@ func (c *ProjectsContactsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCl // }, // "response": { // "$ref": "GoogleCloudEssentialcontactsV1Contact" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] + // } // } } @@ -3434,10 +3374,7 @@ func (c *ProjectsContactsDeleteCall) Do(opts ...googleapi.CallOption) (*GooglePr // "path": "v1/{+name}", // "response": { // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] + // } // } } @@ -3584,10 +3521,7 @@ func (c *ProjectsContactsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloud // "path": "v1/{+name}", // "response": { // "$ref": "GoogleCloudEssentialcontactsV1Contact" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] + // } // } } @@ -3765,10 +3699,7 @@ func (c *ProjectsContactsListCall) Do(opts ...googleapi.CallOption) (*GoogleClou // "path": "v1/{+parent}/contacts", // "response": { // "$ref": "GoogleCloudEssentialcontactsV1ListContactsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] + // } // } } @@ -3945,10 +3876,7 @@ func (c *ProjectsContactsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleClo // }, // "response": { // "$ref": "GoogleCloudEssentialcontactsV1Contact" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] + // } // } } @@ -4092,10 +4020,7 @@ func (c *ProjectsContactsSendTestMessageCall) Do(opts ...googleapi.CallOption) ( // }, // "response": { // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] + // } // } } diff --git a/firestore/v1/firestore-api.json b/firestore/v1/firestore-api.json index ea2cf0635e9..8f191132944 100644 --- a/firestore/v1/firestore-api.json +++ b/firestore/v1/firestore-api.json @@ -1682,7 +1682,7 @@ } } }, - "revision": "20230523", + "revision": "20230527", "rootUrl": "https://firestore.googleapis.com/", "schemas": { "Aggregation": { @@ -2441,6 +2441,12 @@ ], "type": "string" }, + "earliestVersionTime": { + "description": "Output only. The earliest timestamp at which older versions of the data can be read from the database. See [version_retention_period] above; this field is populated with `now - version_retention_period`. This value is continuously updated, and becomes stale the moment it is queried. If you are using this value to recover data, make sure to account for the time from the moment when the value is queried to the moment when you initiate the recovery.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, "etag": { "description": "This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.", "type": "string" @@ -2458,6 +2464,20 @@ "description": "The resource name of the Database. Format: `projects/{project}/databases/{database}`", "type": "string" }, + "pointInTimeRecoveryEnablement": { + "description": "Whether to enable the PITR feature on this database.", + "enum": [ + "POINT_IN_TIME_RECOVERY_ENABLEMENT_UNSPECIFIED", + "POINT_IN_TIME_RECOVERY_ENABLED", + "POINT_IN_TIME_RECOVERY_DISABLED" + ], + "enumDescriptions": [ + "Not used.", + "Reads are supported on selected versions of the data from within the past 7 days: * Reads against any timestamp within the past hour * Reads against 1-minute snapshots beyond 1 hour and within 7 days `version_retention_period` and `earliest_version_time` can be used to determine the supported versions.", + "Reads are supported on any version of the data from within the past 1 hour. `version_retention_period` will be unset." + ], + "type": "string" + }, "type": { "description": "The type of the database. See https://cloud.google.com/datastore/docs/firestore-or-datastore for information about how to choose.", "enum": [ @@ -2482,6 +2502,12 @@ "format": "google-datetime", "readOnly": true, "type": "string" + }, + "versionRetentionPeriod": { + "description": "Output only. The period during which past versions of data are retained in the database. Any read or query can specify a `read_time` within this window, and will read the state of the database at that time. If the PITR feature is enabled, the retention period is 7 days. If unset, the retention period is 1 hour.", + "format": "google-duration", + "readOnly": true, + "type": "string" } }, "type": "object" @@ -2574,6 +2600,11 @@ "outputUriPrefix": { "description": "The output URI. Currently only supports Google Cloud Storage URIs of the form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the name of the Google Cloud Storage bucket and `NAMESPACE_PATH` is an optional Google Cloud Storage namespace path. When choosing a name, be sure to consider Google Cloud Storage naming guidelines: https://cloud.google.com/storage/docs/naming. If the URI is a bucket (without a namespace path), a prefix will be generated based on the start time.", "type": "string" + }, + "snapshotTime": { + "description": "The timestamp that corresponds to the version of the database to be exported. The timestamp must be rounded to the minute, in the past, and not older than 1 hour. If specified, then the exported documents will represent a consistent view of the database at the provided time. Otherwise, there are no guarantees about the consistency of the exported documents.", + "format": "google-datetime", + "type": "string" } }, "type": "object" diff --git a/firestore/v1/firestore-gen.go b/firestore/v1/firestore-gen.go index 069de1d9900..502b7dcfb3f 100644 --- a/firestore/v1/firestore-gen.go +++ b/firestore/v1/firestore-gen.go @@ -1648,6 +1648,16 @@ type GoogleFirestoreAdminV1Database struct { // "DELETE_PROTECTION_ENABLED" - Delete protection is enabled DeleteProtectionState string `json:"deleteProtectionState,omitempty"` + // EarliestVersionTime: Output only. The earliest timestamp at which + // older versions of the data can be read from the database. See + // [version_retention_period] above; this field is populated with `now - + // version_retention_period`. This value is continuously updated, and + // becomes stale the moment it is queried. If you are using this value + // to recover data, make sure to account for the time from the moment + // when the value is queried to the moment when you initiate the + // recovery. + EarliestVersionTime string `json:"earliestVersionTime,omitempty"` + // Etag: This checksum is computed by the server based on the value of // other fields, and may be sent on update and delete requests to ensure // the client has an up-to-date value before proceeding. @@ -1669,6 +1679,22 @@ type GoogleFirestoreAdminV1Database struct { // `projects/{project}/databases/{database}` Name string `json:"name,omitempty"` + // PointInTimeRecoveryEnablement: Whether to enable the PITR feature on + // this database. + // + // Possible values: + // "POINT_IN_TIME_RECOVERY_ENABLEMENT_UNSPECIFIED" - Not used. + // "POINT_IN_TIME_RECOVERY_ENABLED" - Reads are supported on selected + // versions of the data from within the past 7 days: * Reads against any + // timestamp within the past hour * Reads against 1-minute snapshots + // beyond 1 hour and within 7 days `version_retention_period` and + // `earliest_version_time` can be used to determine the supported + // versions. + // "POINT_IN_TIME_RECOVERY_DISABLED" - Reads are supported on any + // version of the data from within the past 1 hour. + // `version_retention_period` will be unset. + PointInTimeRecoveryEnablement string `json:"pointInTimeRecoveryEnablement,omitempty"` + // Type: The type of the database. See // https://cloud.google.com/datastore/docs/firestore-or-datastore for // information about how to choose. @@ -1688,6 +1714,13 @@ type GoogleFirestoreAdminV1Database struct { // database resource and not data contained by the database. UpdateTime string `json:"updateTime,omitempty"` + // VersionRetentionPeriod: Output only. The period during which past + // versions of data are retained in the database. Any read or query can + // specify a `read_time` within this window, and will read the state of + // the database at that time. If the PITR feature is enabled, the + // retention period is 7 days. If unset, the retention period is 1 hour. + VersionRetentionPeriod string `json:"versionRetentionPeriod,omitempty"` + // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` @@ -1808,6 +1841,14 @@ type GoogleFirestoreAdminV1ExportDocumentsRequest struct { // based on the start time. OutputUriPrefix string `json:"outputUriPrefix,omitempty"` + // SnapshotTime: The timestamp that corresponds to the version of the + // database to be exported. The timestamp must be rounded to the minute, + // in the past, and not older than 1 hour. If specified, then the + // exported documents will represent a consistent view of the database + // at the provided time. Otherwise, there are no guarantees about the + // consistency of the exported documents. + SnapshotTime string `json:"snapshotTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "CollectionIds") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any diff --git a/identitytoolkit/v1/identitytoolkit-api.json b/identitytoolkit/v1/identitytoolkit-api.json index ec13a3e7ff1..51039c5cf23 100644 --- a/identitytoolkit/v1/identitytoolkit-api.json +++ b/identitytoolkit/v1/identitytoolkit-api.json @@ -559,6 +559,7 @@ ], "parameters": { "delegatedProjectNumber": { + "deprecated": true, "format": "int64", "location": "query", "type": "string" @@ -872,7 +873,7 @@ "type": "string" }, "tenantId": { - "description": "If the accounts belong to an Identity Platform tenant, the ID of the tenant. If the accounts belong to an default Identity Platform project, the field is not needed.", + "description": "If the accounts belong to an Identity Platform tenant, the ID of the tenant. If the accounts belong to a default Identity Platform project, the field is not needed.", "location": "path", "pattern": "^[^/]+$", "required": true, @@ -902,6 +903,7 @@ ], "parameters": { "delegatedProjectNumber": { + "deprecated": true, "format": "int64", "location": "query", "type": "string" @@ -1237,7 +1239,7 @@ } } }, - "revision": "20230508", + "revision": "20230531", "rootUrl": "https://identitytoolkit.googleapis.com/", "schemas": { "GoogleCloudIdentitytoolkitV1Argon2Parameters": { @@ -1329,7 +1331,7 @@ "type": "array" }, "tenantId": { - "description": "If the accounts belong to an Identity Platform tenant, the ID of the tenant. If the accounts belong to an default Identity Platform project, the field is not needed.", + "description": "If the accounts belong to an Identity Platform tenant, the ID of the tenant. If the accounts belong to a default Identity Platform project, the field is not needed.", "type": "string" } }, @@ -2888,7 +2890,7 @@ "type": "string" }, "postBody": { - "description": "If the user is signing in with an authorization response obtained via a previous CreateAuthUri authorization request, this is the body of the HTTP POST callback from the IdP, if present. Otherwise, if the user is signing in with a manually provided IdP credential, this should be a URL-encoded form that contains the credential (e.g. an ID token or access token for OAuth 2.0 IdPs) and the provider ID of the IdP that issued the credential. For example, if the user is signing in to the Google provider using a Google ID token, this should be set to `id_token=[GOOGLE_ID_TOKEN]\u0026providerId=google.com`, where `[GOOGLE_ID_TOKEN]` should be replaced with the Google ID token. If the user is signing in to the Facebook provider using a Facebook authentication token, this should be set to `id_token=[FACEBOOK_AUTHENTICATION_TOKEN]\u0026providerId=facebook.com\u0026nonce= [NONCE]`, where `[FACEBOOK_AUTHENTICATION_TOKEN]` should be replaced with the Facebook authentication token. Nonce is required for validating the token. The request will fail if no nonce is provided. If the user is signing in to the Facebook provider using a Facebook access token, this should be set to `access_token=[FACEBOOK_ACCESS_TOKEN]\u0026providerId=facebook.com`, where `[FACEBOOK_ACCESS_TOKEN]` should be replaced with the Facebook access token. If the user is signing in to the Twitter provider using a Twitter OAuth 1.0 credential, this should be set to `access_token=[TWITTER_ACCESS_TOKEN]\u0026oauth_token_secret=[TWITTER_TOKEN_SECRET]\u0026providerId=twitter.com`, where `[TWITTER_ACCESS_TOKEN]` and `[TWITTER_TOKEN_SECRET]` should be replaced with the Twitter OAuth access token and Twitter OAuth token secret respectively.", + "description": "If the user is signing in with an authorization response obtained via a previous CreateAuthUri authorization request, this is the body of the HTTP POST callback from the IdP, if present. Otherwise, if the user is signing in with a manually provided IdP credential, this should be a URL-encoded form that contains the credential (e.g. an ID token or access token for OAuth 2.0 IdPs) and the provider ID of the IdP that issued the credential. For example, if the user is signing in to the Google provider using a Google ID token, this should be set to id_token`=[GOOGLE_ID_TOKEN]\u0026providerId=google.com`, where `[GOOGLE_ID_TOKEN]` should be replaced with the Google ID token. If the user is signing in to the Facebook provider using a Facebook authentication token, this should be set to id_token`=[FACEBOOK_AUTHENTICATION_TOKEN]\u0026providerId=facebook. com\u0026nonce= [NONCE]`, where `[FACEBOOK_AUTHENTICATION_TOKEN]` should be replaced with the Facebook authentication token. Nonce is required for validating the token. The request will fail if no nonce is provided. If the user is signing in to the Facebook provider using a Facebook access token, this should be set to access_token`=[FACEBOOK_ACCESS_TOKEN]\u0026providerId=facebook. com`, where `[FACEBOOK_ACCESS_TOKEN]` should be replaced with the Facebook access token. If the user is signing in to the Twitter provider using a Twitter OAuth 1.0 credential, this should be set to access_token`=[TWITTER_ACCESS_TOKEN]\u0026oauth_token_secret= [TWITTER_TOKEN_SECRET]\u0026providerId=twitter.com`, where `[TWITTER_ACCESS_TOKEN]` and `[TWITTER_TOKEN_SECRET]` should be replaced with the Twitter OAuth access token and Twitter OAuth token secret respectively.", "type": "string" }, "requestUri": { diff --git a/identitytoolkit/v1/identitytoolkit-gen.go b/identitytoolkit/v1/identitytoolkit-gen.go index 45b2ac5c533..5dd7769dc2c 100644 --- a/identitytoolkit/v1/identitytoolkit-gen.go +++ b/identitytoolkit/v1/identitytoolkit-gen.go @@ -325,7 +325,7 @@ type GoogleCloudIdentitytoolkitV1BatchDeleteAccountsRequest struct { LocalIds []string `json:"localIds,omitempty"` // TenantId: If the accounts belong to an Identity Platform tenant, the - // ID of the tenant. If the accounts belong to an default Identity + // ID of the tenant. If the accounts belong to a default Identity // Platform project, the field is not needed. TenantId string `json:"tenantId,omitempty"` @@ -2720,24 +2720,25 @@ type GoogleCloudIdentitytoolkitV1SignInWithIdpRequest struct { // the provider ID of the IdP that issued the credential. For example, // if the user is signing in to the Google provider using a Google ID // token, this should be set to - // `id_token=[GOOGLE_ID_TOKEN]&providerId=google.com`, where + // id_token`=[GOOGLE_ID_TOKEN]&providerId=google.com`, where // `[GOOGLE_ID_TOKEN]` should be replaced with the Google ID token. If // the user is signing in to the Facebook provider using a Facebook // authentication token, this should be set to - // `id_token=[FACEBOOK_AUTHENTICATION_TOKEN]&providerId=facebook.com&nonc - // e= [NONCE]`, where `[FACEBOOK_AUTHENTICATION_TOKEN]` should be - // replaced with the Facebook authentication token. Nonce is required + // id_token`=[FACEBOOK_AUTHENTICATION_TOKEN]&providerId=facebook. + // com&nonce= [NONCE]`, where `[FACEBOOK_AUTHENTICATION_TOKEN]` should + // be replaced with the Facebook authentication token. Nonce is required // for validating the token. The request will fail if no nonce is // provided. If the user is signing in to the Facebook provider using a // Facebook access token, this should be set to - // `access_token=[FACEBOOK_ACCESS_TOKEN]&providerId=facebook.com`, where - // `[FACEBOOK_ACCESS_TOKEN]` should be replaced with the Facebook access - // token. If the user is signing in to the Twitter provider using a - // Twitter OAuth 1.0 credential, this should be set to - // `access_token=[TWITTER_ACCESS_TOKEN]&oauth_token_secret=[TWITTER_TOKEN - // _SECRET]&providerId=twitter.com`, where `[TWITTER_ACCESS_TOKEN]` and - // `[TWITTER_TOKEN_SECRET]` should be replaced with the Twitter OAuth - // access token and Twitter OAuth token secret respectively. + // access_token`=[FACEBOOK_ACCESS_TOKEN]&providerId=facebook. com`, + // where `[FACEBOOK_ACCESS_TOKEN]` should be replaced with the Facebook + // access token. If the user is signing in to the Twitter provider using + // a Twitter OAuth 1.0 credential, this should be set to + // access_token`=[TWITTER_ACCESS_TOKEN]&oauth_token_secret= + // [TWITTER_TOKEN_SECRET]&providerId=twitter.com`, where + // `[TWITTER_ACCESS_TOKEN]` and `[TWITTER_TOKEN_SECRET]` should be + // replaced with the Twitter OAuth access token and Twitter OAuth token + // secret respectively. PostBody string `json:"postBody,omitempty"` // RequestUri: Required. The URL to which the IdP redirects the user @@ -6979,6 +6980,7 @@ func (c *ProjectsAccountsBatchGetCall) Do(opts ...googleapi.CallOption) (*Google // ], // "parameters": { // "delegatedProjectNumber": { + // "deprecated": true, // "format": "int64", // "location": "query", // "type": "string" @@ -8303,7 +8305,7 @@ type ProjectsTenantsAccountsBatchDeleteCall struct { // Otherwise, the ID of the Google Cloud project that accounts belong // to. // - tenantId: If the accounts belong to an Identity Platform tenant, -// the ID of the tenant. If the accounts belong to an default Identity +// the ID of the tenant. If the accounts belong to a default Identity // Platform project, the field is not needed. func (r *ProjectsTenantsAccountsService) BatchDelete(targetProjectId string, tenantId string, googlecloudidentitytoolkitv1batchdeleteaccountsrequest *GoogleCloudIdentitytoolkitV1BatchDeleteAccountsRequest) *ProjectsTenantsAccountsBatchDeleteCall { c := &ProjectsTenantsAccountsBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -8425,7 +8427,7 @@ func (c *ProjectsTenantsAccountsBatchDeleteCall) Do(opts ...googleapi.CallOption // "type": "string" // }, // "tenantId": { - // "description": "If the accounts belong to an Identity Platform tenant, the ID of the tenant. If the accounts belong to an default Identity Platform project, the field is not needed.", + // "description": "If the accounts belong to an Identity Platform tenant, the ID of the tenant. If the accounts belong to a default Identity Platform project, the field is not needed.", // "location": "path", // "pattern": "^[^/]+$", // "required": true, @@ -8615,6 +8617,7 @@ func (c *ProjectsTenantsAccountsBatchGetCall) Do(opts ...googleapi.CallOption) ( // ], // "parameters": { // "delegatedProjectNumber": { + // "deprecated": true, // "format": "int64", // "location": "query", // "type": "string" diff --git a/identitytoolkit/v2/identitytoolkit-api.json b/identitytoolkit/v2/identitytoolkit-api.json index 25bf6d9de15..ccebc56856b 100644 --- a/identitytoolkit/v2/identitytoolkit-api.json +++ b/identitytoolkit/v2/identitytoolkit-api.json @@ -227,86 +227,6 @@ ] } } - }, - "passkeyEnrollment": { - "methods": { - "finalize": { - "description": "Finishes enrolling a passkey credential for the user.", - "flatPath": "v2/accounts/passkeyEnrollment:finalize", - "httpMethod": "POST", - "id": "identitytoolkit.accounts.passkeyEnrollment.finalize", - "parameterOrder": [], - "parameters": {}, - "path": "v2/accounts/passkeyEnrollment:finalize", - "request": { - "$ref": "GoogleCloudIdentitytoolkitV2FinalizePasskeyEnrollmentRequest" - }, - "response": { - "$ref": "GoogleCloudIdentitytoolkitV2FinalizePasskeyEnrollmentResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "start": { - "description": "Step one of the passkey enrollment process. Returns a challenge and parameters for creation of the passkey credential.", - "flatPath": "v2/accounts/passkeyEnrollment:start", - "httpMethod": "POST", - "id": "identitytoolkit.accounts.passkeyEnrollment.start", - "parameterOrder": [], - "parameters": {}, - "path": "v2/accounts/passkeyEnrollment:start", - "request": { - "$ref": "GoogleCloudIdentitytoolkitV2StartPasskeyEnrollmentRequest" - }, - "response": { - "$ref": "GoogleCloudIdentitytoolkitV2StartPasskeyEnrollmentResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - }, - "passkeySignIn": { - "methods": { - "finalize": { - "description": "Verifies the passkey assertion and signs the user in.", - "flatPath": "v2/accounts/passkeySignIn:finalize", - "httpMethod": "POST", - "id": "identitytoolkit.accounts.passkeySignIn.finalize", - "parameterOrder": [], - "parameters": {}, - "path": "v2/accounts/passkeySignIn:finalize", - "request": { - "$ref": "GoogleCloudIdentitytoolkitV2FinalizePasskeySignInRequest" - }, - "response": { - "$ref": "GoogleCloudIdentitytoolkitV2FinalizePasskeySignInResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "start": { - "description": "Creates and returns the passkey challenge", - "flatPath": "v2/accounts/passkeySignIn:start", - "httpMethod": "POST", - "id": "identitytoolkit.accounts.passkeySignIn.start", - "parameterOrder": [], - "parameters": {}, - "path": "v2/accounts/passkeySignIn:start", - "request": { - "$ref": "GoogleCloudIdentitytoolkitV2StartPasskeySignInRequest" - }, - "response": { - "$ref": "GoogleCloudIdentitytoolkitV2StartPasskeySignInResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } } } }, @@ -1735,7 +1655,7 @@ } } }, - "revision": "20230508", + "revision": "20230531", "rootUrl": "https://identitytoolkit.googleapis.com/", "schemas": { "GoogleCloudIdentitytoolkitAdminV2AllowByDefault": { @@ -3128,116 +3048,6 @@ }, "type": "object" }, - "GoogleCloudIdentitytoolkitV2AuthenticatorAssertionResponse": { - "description": "Authentication response from a FIDO authenticator.", - "id": "GoogleCloudIdentitytoolkitV2AuthenticatorAssertionResponse", - "properties": { - "authenticatorData": { - "description": "The AuthenticatorData from the authenticator.", - "format": "byte", - "type": "string" - }, - "clientDataJson": { - "description": "The CollectedClientData object from the authenticator.", - "format": "byte", - "type": "string" - }, - "signature": { - "description": "The signature from the authenticator.", - "format": "byte", - "type": "string" - }, - "userHandle": { - "description": "The user handle.", - "format": "byte", - "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudIdentitytoolkitV2AuthenticatorAttestationResponse": { - "description": "Attestation response from a FIDO authenticator.", - "id": "GoogleCloudIdentitytoolkitV2AuthenticatorAttestationResponse", - "properties": { - "attestationObject": { - "description": "The attestation object from the authenticator.", - "format": "byte", - "type": "string" - }, - "clientDataJson": { - "description": "The CollectedClientData object from the authenticator.", - "format": "byte", - "type": "string" - }, - "transports": { - "description": "Authenticator transports that are supported by the authenticator.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "GoogleCloudIdentitytoolkitV2AuthenticatorAuthenticationResponse": { - "description": "Authenticator response to authenticate the user with an existing FIDO key.", - "id": "GoogleCloudIdentitytoolkitV2AuthenticatorAuthenticationResponse", - "properties": { - "authenticatorAssertionResponse": { - "$ref": "GoogleCloudIdentitytoolkitV2AuthenticatorAssertionResponse", - "description": "Authentication assertion from the authenticator." - }, - "credentialId": { - "description": "Identifier for the authentication credential.", - "format": "byte", - "type": "string" - }, - "credentialType": { - "description": "The type of public key.", - "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudIdentitytoolkitV2AuthenticatorRegistrationResponse": { - "description": "Authenticator response to register a new FIDO key.", - "id": "GoogleCloudIdentitytoolkitV2AuthenticatorRegistrationResponse", - "properties": { - "authenticatorAttestationResponse": { - "$ref": "GoogleCloudIdentitytoolkitV2AuthenticatorAttestationResponse", - "description": "The attestation response object as described in the spec." - }, - "credentialId": { - "description": "Identifier for the registered credential.", - "format": "byte", - "type": "string" - }, - "credentialType": { - "description": "The type of credential.", - "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudIdentitytoolkitV2AuthenticatorSelectionCriteria": { - "description": "Criteria for the authenticator to create a registered FIDO key.", - "id": "GoogleCloudIdentitytoolkitV2AuthenticatorSelectionCriteria", - "properties": { - "authenticatorAttachment": { - "description": "The preferred authenticator attachment modality.", - "type": "string" - }, - "requireResidentKey": { - "description": "Whether resident key is required.", - "type": "boolean" - }, - "userVerification": { - "description": "The Relying Party's user verification requirements.", - "type": "string" - } - }, - "type": "object" - }, "GoogleCloudIdentitytoolkitV2AutoRetrievalInfo": { "description": "The information required to auto-retrieve an SMS.", "id": "GoogleCloudIdentitytoolkitV2AutoRetrievalInfo", @@ -3442,75 +3252,6 @@ "properties": {}, "type": "object" }, - "GoogleCloudIdentitytoolkitV2FinalizePasskeyEnrollmentRequest": { - "description": "FinalizePasskeyEnrollment request. Registers passkey as a first factor for the user.", - "id": "GoogleCloudIdentitytoolkitV2FinalizePasskeyEnrollmentRequest", - "properties": { - "authenticatorRegistrationResponse": { - "$ref": "GoogleCloudIdentitytoolkitV2AuthenticatorRegistrationResponse", - "description": "Optional. The registration object from the authenticator." - }, - "idToken": { - "description": "Required. The GCIP ID token of the signed-in user", - "type": "string" - }, - "tenantId": { - "description": "Optional. The ID of the Identity Platform tenant the user is signing in to. If not set, the user will sign in to the default Identity Platform project.", - "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudIdentitytoolkitV2FinalizePasskeyEnrollmentResponse": { - "description": "FinalizePasskeyEnrollment response.", - "id": "GoogleCloudIdentitytoolkitV2FinalizePasskeyEnrollmentResponse", - "properties": { - "idToken": { - "description": "ID token for the authenticated user.", - "type": "string" - }, - "refreshToken": { - "description": "Refresh token for the authenticated user.", - "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudIdentitytoolkitV2FinalizePasskeySignInRequest": { - "description": "Request to finalize a passkey sign-in.", - "id": "GoogleCloudIdentitytoolkitV2FinalizePasskeySignInRequest", - "properties": { - "authenticatorAuthenticationResponse": { - "$ref": "GoogleCloudIdentitytoolkitV2AuthenticatorAuthenticationResponse", - "description": "Required. The authentication response object from the authenticator." - }, - "sessionId": { - "description": "Optional. The session ID that was passed into StartPasskeySignIn, if any.", - "format": "byte", - "type": "string" - }, - "tenantId": { - "description": "Optional. The ID of the Identity Platform tenant the user is signing in to. If not set, the user will sign in to the default Identity Platform project.", - "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudIdentitytoolkitV2FinalizePasskeySignInResponse": { - "description": "Response for FinalizePasskeySignIn.", - "id": "GoogleCloudIdentitytoolkitV2FinalizePasskeySignInResponse", - "properties": { - "idToken": { - "description": "ID token for the authenticated user.", - "type": "string" - }, - "refreshToken": { - "description": "Refresh token for the authenticated user.", - "type": "string" - } - }, - "type": "object" - }, "GoogleCloudIdentitytoolkitV2MfaTotpSignInRequestInfo": { "description": "TOTP verification info for FinalizeMfaSignInRequest.", "id": "GoogleCloudIdentitytoolkitV2MfaTotpSignInRequestInfo", @@ -3547,103 +3288,6 @@ }, "type": "object" }, - "GoogleCloudIdentitytoolkitV2PublicKeyCredentialCreationOptions": { - "description": "Parameters for creating a FIDO key.", - "id": "GoogleCloudIdentitytoolkitV2PublicKeyCredentialCreationOptions", - "properties": { - "authenticatorSelection": { - "$ref": "GoogleCloudIdentitytoolkitV2AuthenticatorSelectionCriteria", - "description": "Criteria for the authenticator to create a credential." - }, - "challenge": { - "description": "The FIDO challenge.", - "format": "byte", - "type": "string" - }, - "excludeCredentials": { - "description": "Credentials already mapped to this user.", - "items": { - "$ref": "GoogleCloudIdentitytoolkitV2PublicKeyCredentialDescriptor" - }, - "type": "array" - }, - "pubKeyCredParams": { - "description": "Lists the supported key types and signature algorithms.", - "items": { - "$ref": "GoogleCloudIdentitytoolkitV2PublicKeyCredentialParameters" - }, - "type": "array" - }, - "rp": { - "$ref": "GoogleCloudIdentitytoolkitV2RpEntity", - "description": "The relying party attributes for creating a new credential." - }, - "user": { - "$ref": "GoogleCloudIdentitytoolkitV2UserEntity", - "description": "The user attributes for creating a new credential." - } - }, - "type": "object" - }, - "GoogleCloudIdentitytoolkitV2PublicKeyCredentialDescriptor": { - "description": "Descriptor for a public key credential.", - "id": "GoogleCloudIdentitytoolkitV2PublicKeyCredentialDescriptor", - "properties": { - "credentialId": { - "description": "The identifier for the credential.", - "format": "byte", - "type": "string" - }, - "credentialType": { - "description": "The type of public key.", - "type": "string" - }, - "transports": { - "description": "Authenticator transports that are supported by the authenticator.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "GoogleCloudIdentitytoolkitV2PublicKeyCredentialParameters": { - "description": "Parameters to create a public credential.", - "id": "GoogleCloudIdentitytoolkitV2PublicKeyCredentialParameters", - "properties": { - "alg": { - "description": "The COSE registry number of the cryptographic signature algorithm.", - "format": "int64", - "type": "string" - }, - "credentialType": { - "description": "The type of public key to be created.", - "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudIdentitytoolkitV2PublicKeyCredentialRequestOptions": { - "description": "Parameters for signing a challenge with a FIDO key.", - "id": "GoogleCloudIdentitytoolkitV2PublicKeyCredentialRequestOptions", - "properties": { - "challenge": { - "description": "The FIDO challenge.", - "format": "byte", - "type": "string" - }, - "rpId": { - "description": "The relying party identifier.", - "type": "string" - }, - "userVerification": { - "description": "The requirements regarding user verification.", - "type": "string" - } - }, - "type": "object" - }, "GoogleCloudIdentitytoolkitV2RecaptchaConfig": { "description": "Configuration for reCAPTCHA", "id": "GoogleCloudIdentitytoolkitV2RecaptchaConfig", @@ -3656,7 +3300,7 @@ "type": "array" }, "recaptchaKey": { - "description": "The reCAPTCHA Enterprise key resource name, e.g. \"projects/{project}/keys/{key}\".", + "description": "The reCAPTCHA Enterprise key resource name, e.g. \"projects/{project}/keys/{key}\". This will only be returned when the reCAPTCHA enforcement state is AUDIT or ENFORCE on at least one of the reCAPTCHA providers.", "type": "string" } }, @@ -3710,7 +3354,7 @@ "type": "string" }, "redirectUri": { - "description": "The redirect URI provided in the initial authorization request made by the client to the IDP. The URI must use the HTTPS protocol, include a domain name, and can’t contain an IP address or localhost. Required if token_type is CODE.", + "description": "The redirect URI provided in the initial authorization request made by the client to the IDP. The URI must use the HTTPS protocol, include a domain name, and can't contain an IP address or localhost. Required if token_type is CODE.", "type": "string" }, "tenantId": { @@ -3746,17 +3390,6 @@ "properties": {}, "type": "object" }, - "GoogleCloudIdentitytoolkitV2RpEntity": { - "description": "The entity object for the Relying Party.", - "id": "GoogleCloudIdentitytoolkitV2RpEntity", - "properties": { - "id": { - "description": "The RP ID of the FIDO Relying Party.", - "type": "string" - } - }, - "type": "object" - }, "GoogleCloudIdentitytoolkitV2StartMfaEnrollmentRequest": { "description": "Sends MFA enrollment verification SMS for a user.", "id": "GoogleCloudIdentitytoolkitV2StartMfaEnrollmentRequest", @@ -3915,71 +3548,6 @@ }, "type": "object" }, - "GoogleCloudIdentitytoolkitV2StartPasskeyEnrollmentRequest": { - "description": "Starts passkey enrollment for passkey as a first factor by returning the FIDO challenge.", - "id": "GoogleCloudIdentitytoolkitV2StartPasskeyEnrollmentRequest", - "properties": { - "idToken": { - "description": "Required. The GCIP ID token of the signed-in user", - "type": "string" - }, - "tenantId": { - "description": "Optional. The ID of the Identity Platform tenant the user is signing in to. If not set, the user will sign in to the default Identity Platform project.", - "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudIdentitytoolkitV2StartPasskeyEnrollmentResponse": { - "description": "StartPasskeyEnrollment response.", - "id": "GoogleCloudIdentitytoolkitV2StartPasskeyEnrollmentResponse", - "properties": { - "credentialCreationOptions": { - "$ref": "GoogleCloudIdentitytoolkitV2PublicKeyCredentialCreationOptions", - "description": "Parameters specified for the authenticator to create a public key." - } - }, - "type": "object" - }, - "GoogleCloudIdentitytoolkitV2StartPasskeySignInRequest": { - "description": "Starts passkey sign-in by returning the FIDO challenge.", - "id": "GoogleCloudIdentitytoolkitV2StartPasskeySignInRequest", - "properties": { - "sessionId": { - "description": "Optional. The developer can bind their own concept of a user session to this flow.", - "format": "byte", - "type": "string" - }, - "tenantId": { - "description": "Optional. The ID of the Identity Platform tenant the user is signing in to. If not set, the user will sign in to the default Identity Platform project.", - "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudIdentitytoolkitV2StartPasskeySignInResponse": { - "description": "Response for StartPasskeySignIn.", - "id": "GoogleCloudIdentitytoolkitV2StartPasskeySignInResponse", - "properties": { - "credentialRequestOptions": { - "$ref": "GoogleCloudIdentitytoolkitV2PublicKeyCredentialRequestOptions", - "description": "Parameters specified for the authenticator to sign a challenge." - } - }, - "type": "object" - }, - "GoogleCloudIdentitytoolkitV2UserEntity": { - "description": "The entity object for the user.", - "id": "GoogleCloudIdentitytoolkitV2UserEntity", - "properties": { - "id": { - "description": "The user ID.", - "format": "byte", - "type": "string" - } - }, - "type": "object" - }, "GoogleCloudIdentitytoolkitV2WithdrawMfaRequest": { "description": "Withdraws MFA.", "id": "GoogleCloudIdentitytoolkitV2WithdrawMfaRequest", diff --git a/identitytoolkit/v2/identitytoolkit-gen.go b/identitytoolkit/v2/identitytoolkit-gen.go index 01baa174075..248563c86a2 100644 --- a/identitytoolkit/v2/identitytoolkit-gen.go +++ b/identitytoolkit/v2/identitytoolkit-gen.go @@ -159,8 +159,6 @@ func NewAccountsService(s *Service) *AccountsService { rs := &AccountsService{s: s} rs.MfaEnrollment = NewAccountsMfaEnrollmentService(s) rs.MfaSignIn = NewAccountsMfaSignInService(s) - rs.PasskeyEnrollment = NewAccountsPasskeyEnrollmentService(s) - rs.PasskeySignIn = NewAccountsPasskeySignInService(s) return rs } @@ -170,10 +168,6 @@ type AccountsService struct { MfaEnrollment *AccountsMfaEnrollmentService MfaSignIn *AccountsMfaSignInService - - PasskeyEnrollment *AccountsPasskeyEnrollmentService - - PasskeySignIn *AccountsPasskeySignInService } func NewAccountsMfaEnrollmentService(s *Service) *AccountsMfaEnrollmentService { @@ -194,24 +188,6 @@ type AccountsMfaSignInService struct { s *Service } -func NewAccountsPasskeyEnrollmentService(s *Service) *AccountsPasskeyEnrollmentService { - rs := &AccountsPasskeyEnrollmentService{s: s} - return rs -} - -type AccountsPasskeyEnrollmentService struct { - s *Service -} - -func NewAccountsPasskeySignInService(s *Service) *AccountsPasskeySignInService { - rs := &AccountsPasskeySignInService{s: s} - return rs -} - -type AccountsPasskeySignInService struct { - s *Service -} - func NewDefaultSupportedIdpsService(s *Service) *DefaultSupportedIdpsService { rs := &DefaultSupportedIdpsService{s: s} return rs @@ -2700,199 +2676,6 @@ func (s *GoogleCloudIdentitytoolkitAdminV2Trigger) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudIdentitytoolkitV2AuthenticatorAssertionResponse: -// Authentication response from a FIDO authenticator. -type GoogleCloudIdentitytoolkitV2AuthenticatorAssertionResponse struct { - // AuthenticatorData: The AuthenticatorData from the authenticator. - AuthenticatorData string `json:"authenticatorData,omitempty"` - - // ClientDataJson: The CollectedClientData object from the - // authenticator. - ClientDataJson string `json:"clientDataJson,omitempty"` - - // Signature: The signature from the authenticator. - Signature string `json:"signature,omitempty"` - - // UserHandle: The user handle. - UserHandle string `json:"userHandle,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AuthenticatorData") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuthenticatorData") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudIdentitytoolkitV2AuthenticatorAssertionResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudIdentitytoolkitV2AuthenticatorAssertionResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudIdentitytoolkitV2AuthenticatorAttestationResponse: -// Attestation response from a FIDO authenticator. -type GoogleCloudIdentitytoolkitV2AuthenticatorAttestationResponse struct { - // AttestationObject: The attestation object from the authenticator. - AttestationObject string `json:"attestationObject,omitempty"` - - // ClientDataJson: The CollectedClientData object from the - // authenticator. - ClientDataJson string `json:"clientDataJson,omitempty"` - - // Transports: Authenticator transports that are supported by the - // authenticator. - Transports []string `json:"transports,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AttestationObject") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AttestationObject") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudIdentitytoolkitV2AuthenticatorAttestationResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudIdentitytoolkitV2AuthenticatorAttestationResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudIdentitytoolkitV2AuthenticatorAuthenticationResponse: -// Authenticator response to authenticate the user with an existing FIDO -// key. -type GoogleCloudIdentitytoolkitV2AuthenticatorAuthenticationResponse struct { - // AuthenticatorAssertionResponse: Authentication assertion from the - // authenticator. - AuthenticatorAssertionResponse *GoogleCloudIdentitytoolkitV2AuthenticatorAssertionResponse `json:"authenticatorAssertionResponse,omitempty"` - - // CredentialId: Identifier for the authentication credential. - CredentialId string `json:"credentialId,omitempty"` - - // CredentialType: The type of public key. - CredentialType string `json:"credentialType,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AuthenticatorAssertionResponse") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "AuthenticatorAssertionResponse") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudIdentitytoolkitV2AuthenticatorAuthenticationResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudIdentitytoolkitV2AuthenticatorAuthenticationResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudIdentitytoolkitV2AuthenticatorRegistrationResponse: -// Authenticator response to register a new FIDO key. -type GoogleCloudIdentitytoolkitV2AuthenticatorRegistrationResponse struct { - // AuthenticatorAttestationResponse: The attestation response object as - // described in the spec. - AuthenticatorAttestationResponse *GoogleCloudIdentitytoolkitV2AuthenticatorAttestationResponse `json:"authenticatorAttestationResponse,omitempty"` - - // CredentialId: Identifier for the registered credential. - CredentialId string `json:"credentialId,omitempty"` - - // CredentialType: The type of credential. - CredentialType string `json:"credentialType,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AuthenticatorAttestationResponse") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "AuthenticatorAttestationResponse") to include in API requests with - // the JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudIdentitytoolkitV2AuthenticatorRegistrationResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudIdentitytoolkitV2AuthenticatorRegistrationResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudIdentitytoolkitV2AuthenticatorSelectionCriteria: Criteria -// for the authenticator to create a registered FIDO key. -type GoogleCloudIdentitytoolkitV2AuthenticatorSelectionCriteria struct { - // AuthenticatorAttachment: The preferred authenticator attachment - // modality. - AuthenticatorAttachment string `json:"authenticatorAttachment,omitempty"` - - // RequireResidentKey: Whether resident key is required. - RequireResidentKey bool `json:"requireResidentKey,omitempty"` - - // UserVerification: The Relying Party's user verification requirements. - UserVerification string `json:"userVerification,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AuthenticatorAttachment") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuthenticatorAttachment") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudIdentitytoolkitV2AuthenticatorSelectionCriteria) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudIdentitytoolkitV2AuthenticatorSelectionCriteria - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudIdentitytoolkitV2AutoRetrievalInfo: The information // required to auto-retrieve an SMS. type GoogleCloudIdentitytoolkitV2AutoRetrievalInfo struct { @@ -3265,160 +3048,6 @@ func (s *GoogleCloudIdentitytoolkitV2FinalizeMfaTotpEnrollmentRequestInfo) Marsh type GoogleCloudIdentitytoolkitV2FinalizeMfaTotpEnrollmentResponseInfo struct { } -// GoogleCloudIdentitytoolkitV2FinalizePasskeyEnrollmentRequest: -// FinalizePasskeyEnrollment request. Registers passkey as a first -// factor for the user. -type GoogleCloudIdentitytoolkitV2FinalizePasskeyEnrollmentRequest struct { - // AuthenticatorRegistrationResponse: Optional. The registration object - // from the authenticator. - AuthenticatorRegistrationResponse *GoogleCloudIdentitytoolkitV2AuthenticatorRegistrationResponse `json:"authenticatorRegistrationResponse,omitempty"` - - // IdToken: Required. The GCIP ID token of the signed-in user - IdToken string `json:"idToken,omitempty"` - - // TenantId: Optional. The ID of the Identity Platform tenant the user - // is signing in to. If not set, the user will sign in to the default - // Identity Platform project. - TenantId string `json:"tenantId,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AuthenticatorRegistrationResponse") to unconditionally include in - // API requests. By default, fields with empty or default values are - // omitted from API requests. However, any non-pointer, non-interface - // field appearing in ForceSendFields will be sent to the server - // regardless of whether the field is empty or not. This may be used to - // include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "AuthenticatorRegistrationResponse") to include in API requests with - // the JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudIdentitytoolkitV2FinalizePasskeyEnrollmentRequest) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudIdentitytoolkitV2FinalizePasskeyEnrollmentRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudIdentitytoolkitV2FinalizePasskeyEnrollmentResponse: -// FinalizePasskeyEnrollment response. -type GoogleCloudIdentitytoolkitV2FinalizePasskeyEnrollmentResponse struct { - // IdToken: ID token for the authenticated user. - IdToken string `json:"idToken,omitempty"` - - // RefreshToken: Refresh token for the authenticated user. - RefreshToken string `json:"refreshToken,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "IdToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "IdToken") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudIdentitytoolkitV2FinalizePasskeyEnrollmentResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudIdentitytoolkitV2FinalizePasskeyEnrollmentResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudIdentitytoolkitV2FinalizePasskeySignInRequest: Request to -// finalize a passkey sign-in. -type GoogleCloudIdentitytoolkitV2FinalizePasskeySignInRequest struct { - // AuthenticatorAuthenticationResponse: Required. The authentication - // response object from the authenticator. - AuthenticatorAuthenticationResponse *GoogleCloudIdentitytoolkitV2AuthenticatorAuthenticationResponse `json:"authenticatorAuthenticationResponse,omitempty"` - - // SessionId: Optional. The session ID that was passed into - // StartPasskeySignIn, if any. - SessionId string `json:"sessionId,omitempty"` - - // TenantId: Optional. The ID of the Identity Platform tenant the user - // is signing in to. If not set, the user will sign in to the default - // Identity Platform project. - TenantId string `json:"tenantId,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AuthenticatorAuthenticationResponse") to unconditionally include in - // API requests. By default, fields with empty or default values are - // omitted from API requests. However, any non-pointer, non-interface - // field appearing in ForceSendFields will be sent to the server - // regardless of whether the field is empty or not. This may be used to - // include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "AuthenticatorAuthenticationResponse") to include in API requests - // with the JSON null value. By default, fields with empty values are - // omitted from API requests. However, any field with an empty value - // appearing in NullFields will be sent to the server as null. It is an - // error if a field in this list has a non-empty value. This may be used - // to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudIdentitytoolkitV2FinalizePasskeySignInRequest) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudIdentitytoolkitV2FinalizePasskeySignInRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudIdentitytoolkitV2FinalizePasskeySignInResponse: Response -// for FinalizePasskeySignIn. -type GoogleCloudIdentitytoolkitV2FinalizePasskeySignInResponse struct { - // IdToken: ID token for the authenticated user. - IdToken string `json:"idToken,omitempty"` - - // RefreshToken: Refresh token for the authenticated user. - RefreshToken string `json:"refreshToken,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "IdToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "IdToken") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudIdentitytoolkitV2FinalizePasskeySignInResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudIdentitytoolkitV2FinalizePasskeySignInResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudIdentitytoolkitV2MfaTotpSignInRequestInfo: TOTP // verification info for FinalizeMfaSignInRequest. type GoogleCloudIdentitytoolkitV2MfaTotpSignInRequestInfo struct { @@ -3493,172 +3122,22 @@ func (s *GoogleCloudIdentitytoolkitV2PasswordPolicy) MarshalJSON() ([]byte, erro return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudIdentitytoolkitV2PublicKeyCredentialCreationOptions: -// Parameters for creating a FIDO key. -type GoogleCloudIdentitytoolkitV2PublicKeyCredentialCreationOptions struct { - // AuthenticatorSelection: Criteria for the authenticator to create a - // credential. - AuthenticatorSelection *GoogleCloudIdentitytoolkitV2AuthenticatorSelectionCriteria `json:"authenticatorSelection,omitempty"` - - // Challenge: The FIDO challenge. - Challenge string `json:"challenge,omitempty"` - - // ExcludeCredentials: Credentials already mapped to this user. - ExcludeCredentials []*GoogleCloudIdentitytoolkitV2PublicKeyCredentialDescriptor `json:"excludeCredentials,omitempty"` - - // PubKeyCredParams: Lists the supported key types and signature - // algorithms. - PubKeyCredParams []*GoogleCloudIdentitytoolkitV2PublicKeyCredentialParameters `json:"pubKeyCredParams,omitempty"` +// GoogleCloudIdentitytoolkitV2RecaptchaConfig: Configuration for +// reCAPTCHA +type GoogleCloudIdentitytoolkitV2RecaptchaConfig struct { + // RecaptchaEnforcementState: The reCAPTCHA enforcement state for the + // providers that GCIP supports reCAPTCHA protection. + RecaptchaEnforcementState []*GoogleCloudIdentitytoolkitV2RecaptchaEnforcementState `json:"recaptchaEnforcementState,omitempty"` - // Rp: The relying party attributes for creating a new credential. - Rp *GoogleCloudIdentitytoolkitV2RpEntity `json:"rp,omitempty"` + // RecaptchaKey: The reCAPTCHA Enterprise key resource name, e.g. + // "projects/{project}/keys/{key}". This will only be returned when the + // reCAPTCHA enforcement state is AUDIT or ENFORCE on at least one of + // the reCAPTCHA providers. + RecaptchaKey string `json:"recaptchaKey,omitempty"` - // User: The user attributes for creating a new credential. - User *GoogleCloudIdentitytoolkitV2UserEntity `json:"user,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AuthenticatorSelection") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AuthenticatorSelection") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudIdentitytoolkitV2PublicKeyCredentialCreationOptions) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudIdentitytoolkitV2PublicKeyCredentialCreationOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudIdentitytoolkitV2PublicKeyCredentialDescriptor: Descriptor -// for a public key credential. -type GoogleCloudIdentitytoolkitV2PublicKeyCredentialDescriptor struct { - // CredentialId: The identifier for the credential. - CredentialId string `json:"credentialId,omitempty"` - - // CredentialType: The type of public key. - CredentialType string `json:"credentialType,omitempty"` - - // Transports: Authenticator transports that are supported by the - // authenticator. - Transports []string `json:"transports,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CredentialId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CredentialId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudIdentitytoolkitV2PublicKeyCredentialDescriptor) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudIdentitytoolkitV2PublicKeyCredentialDescriptor - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudIdentitytoolkitV2PublicKeyCredentialParameters: Parameters -// to create a public credential. -type GoogleCloudIdentitytoolkitV2PublicKeyCredentialParameters struct { - // Alg: The COSE registry number of the cryptographic signature - // algorithm. - Alg int64 `json:"alg,omitempty,string"` - - // CredentialType: The type of public key to be created. - CredentialType string `json:"credentialType,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Alg") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Alg") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudIdentitytoolkitV2PublicKeyCredentialParameters) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudIdentitytoolkitV2PublicKeyCredentialParameters - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudIdentitytoolkitV2PublicKeyCredentialRequestOptions: -// Parameters for signing a challenge with a FIDO key. -type GoogleCloudIdentitytoolkitV2PublicKeyCredentialRequestOptions struct { - // Challenge: The FIDO challenge. - Challenge string `json:"challenge,omitempty"` - - // RpId: The relying party identifier. - RpId string `json:"rpId,omitempty"` - - // UserVerification: The requirements regarding user verification. - UserVerification string `json:"userVerification,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Challenge") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Challenge") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudIdentitytoolkitV2PublicKeyCredentialRequestOptions) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudIdentitytoolkitV2PublicKeyCredentialRequestOptions - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudIdentitytoolkitV2RecaptchaConfig: Configuration for -// reCAPTCHA -type GoogleCloudIdentitytoolkitV2RecaptchaConfig struct { - // RecaptchaEnforcementState: The reCAPTCHA enforcement state for the - // providers that GCIP supports reCAPTCHA protection. - RecaptchaEnforcementState []*GoogleCloudIdentitytoolkitV2RecaptchaEnforcementState `json:"recaptchaEnforcementState,omitempty"` - - // RecaptchaKey: The reCAPTCHA Enterprise key resource name, e.g. - // "projects/{project}/keys/{key}". - RecaptchaKey string `json:"recaptchaKey,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. // "RecaptchaEnforcementState") to unconditionally include in API @@ -3746,7 +3225,7 @@ type GoogleCloudIdentitytoolkitV2RevokeTokenRequest struct { // RedirectUri: The redirect URI provided in the initial authorization // request made by the client to the IDP. The URI must use the HTTPS - // protocol, include a domain name, and can’t contain an IP address or + // protocol, include a domain name, and can't contain an IP address or // localhost. Required if token_type is CODE. RedirectUri string `json:"redirectUri,omitempty"` @@ -3800,35 +3279,6 @@ type GoogleCloudIdentitytoolkitV2RevokeTokenResponse struct { googleapi.ServerResponse `json:"-"` } -// GoogleCloudIdentitytoolkitV2RpEntity: The entity object for the -// Relying Party. -type GoogleCloudIdentitytoolkitV2RpEntity struct { - // Id: The RP ID of the FIDO Relying Party. - Id string `json:"id,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or 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 *GoogleCloudIdentitytoolkitV2RpEntity) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudIdentitytoolkitV2RpEntity - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudIdentitytoolkitV2StartMfaEnrollmentRequest: Sends MFA // enrollment verification SMS for a user. type GoogleCloudIdentitytoolkitV2StartMfaEnrollmentRequest struct { @@ -4137,177 +3587,6 @@ func (s *GoogleCloudIdentitytoolkitV2StartMfaTotpEnrollmentResponseInfo) Marshal return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudIdentitytoolkitV2StartPasskeyEnrollmentRequest: Starts -// passkey enrollment for passkey as a first factor by returning the -// FIDO challenge. -type GoogleCloudIdentitytoolkitV2StartPasskeyEnrollmentRequest struct { - // IdToken: Required. The GCIP ID token of the signed-in user - IdToken string `json:"idToken,omitempty"` - - // TenantId: Optional. The ID of the Identity Platform tenant the user - // is signing in to. If not set, the user will sign in to the default - // Identity Platform project. - TenantId string `json:"tenantId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "IdToken") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "IdToken") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudIdentitytoolkitV2StartPasskeyEnrollmentRequest) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudIdentitytoolkitV2StartPasskeyEnrollmentRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudIdentitytoolkitV2StartPasskeyEnrollmentResponse: -// StartPasskeyEnrollment response. -type GoogleCloudIdentitytoolkitV2StartPasskeyEnrollmentResponse struct { - // CredentialCreationOptions: Parameters specified for the authenticator - // to create a public key. - CredentialCreationOptions *GoogleCloudIdentitytoolkitV2PublicKeyCredentialCreationOptions `json:"credentialCreationOptions,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "CredentialCreationOptions") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "CredentialCreationOptions") to include in API requests with the JSON - // null value. By default, fields with empty values are omitted from API - // requests. However, any field with an empty value appearing in - // NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudIdentitytoolkitV2StartPasskeyEnrollmentResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudIdentitytoolkitV2StartPasskeyEnrollmentResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudIdentitytoolkitV2StartPasskeySignInRequest: Starts passkey -// sign-in by returning the FIDO challenge. -type GoogleCloudIdentitytoolkitV2StartPasskeySignInRequest struct { - // SessionId: Optional. The developer can bind their own concept of a - // user session to this flow. - SessionId string `json:"sessionId,omitempty"` - - // TenantId: Optional. The ID of the Identity Platform tenant the user - // is signing in to. If not set, the user will sign in to the default - // Identity Platform project. - TenantId string `json:"tenantId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "SessionId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "SessionId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudIdentitytoolkitV2StartPasskeySignInRequest) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudIdentitytoolkitV2StartPasskeySignInRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudIdentitytoolkitV2StartPasskeySignInResponse: Response for -// StartPasskeySignIn. -type GoogleCloudIdentitytoolkitV2StartPasskeySignInResponse struct { - // CredentialRequestOptions: Parameters specified for the authenticator - // to sign a challenge. - CredentialRequestOptions *GoogleCloudIdentitytoolkitV2PublicKeyCredentialRequestOptions `json:"credentialRequestOptions,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "CredentialRequestOptions") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CredentialRequestOptions") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudIdentitytoolkitV2StartPasskeySignInResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudIdentitytoolkitV2StartPasskeySignInResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudIdentitytoolkitV2UserEntity: The entity object for the -// user. -type GoogleCloudIdentitytoolkitV2UserEntity struct { - // Id: The user ID. - Id string `json:"id,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or 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 *GoogleCloudIdentitytoolkitV2UserEntity) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudIdentitytoolkitV2UserEntity - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudIdentitytoolkitV2WithdrawMfaRequest: Withdraws MFA. type GoogleCloudIdentitytoolkitV2WithdrawMfaRequest struct { // IdToken: Required. User's ID token. @@ -5689,519 +4968,6 @@ func (c *AccountsMfaSignInStartCall) Do(opts ...googleapi.CallOption) (*GoogleCl } -// method id "identitytoolkit.accounts.passkeyEnrollment.finalize": - -type AccountsPasskeyEnrollmentFinalizeCall struct { - s *Service - googlecloudidentitytoolkitv2finalizepasskeyenrollmentrequest *GoogleCloudIdentitytoolkitV2FinalizePasskeyEnrollmentRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Finalize: Finishes enrolling a passkey credential for the user. -func (r *AccountsPasskeyEnrollmentService) Finalize(googlecloudidentitytoolkitv2finalizepasskeyenrollmentrequest *GoogleCloudIdentitytoolkitV2FinalizePasskeyEnrollmentRequest) *AccountsPasskeyEnrollmentFinalizeCall { - c := &AccountsPasskeyEnrollmentFinalizeCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.googlecloudidentitytoolkitv2finalizepasskeyenrollmentrequest = googlecloudidentitytoolkitv2finalizepasskeyenrollmentrequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *AccountsPasskeyEnrollmentFinalizeCall) Fields(s ...googleapi.Field) *AccountsPasskeyEnrollmentFinalizeCall { - 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 *AccountsPasskeyEnrollmentFinalizeCall) Context(ctx context.Context) *AccountsPasskeyEnrollmentFinalizeCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *AccountsPasskeyEnrollmentFinalizeCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AccountsPasskeyEnrollmentFinalizeCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - 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.googlecloudidentitytoolkitv2finalizepasskeyenrollmentrequest) - 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/accounts/passkeyEnrollment:finalize") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "identitytoolkit.accounts.passkeyEnrollment.finalize" call. -// Exactly one of -// *GoogleCloudIdentitytoolkitV2FinalizePasskeyEnrollmentResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIdentitytoolkitV2FinalizePasskeyEnrollmentResponse.ServerR -// esponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *AccountsPasskeyEnrollmentFinalizeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV2FinalizePasskeyEnrollmentResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleCloudIdentitytoolkitV2FinalizePasskeyEnrollmentResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Finishes enrolling a passkey credential for the user.", - // "flatPath": "v2/accounts/passkeyEnrollment:finalize", - // "httpMethod": "POST", - // "id": "identitytoolkit.accounts.passkeyEnrollment.finalize", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v2/accounts/passkeyEnrollment:finalize", - // "request": { - // "$ref": "GoogleCloudIdentitytoolkitV2FinalizePasskeyEnrollmentRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIdentitytoolkitV2FinalizePasskeyEnrollmentResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "identitytoolkit.accounts.passkeyEnrollment.start": - -type AccountsPasskeyEnrollmentStartCall struct { - s *Service - googlecloudidentitytoolkitv2startpasskeyenrollmentrequest *GoogleCloudIdentitytoolkitV2StartPasskeyEnrollmentRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Start: Step one of the passkey enrollment process. Returns a -// challenge and parameters for creation of the passkey credential. -func (r *AccountsPasskeyEnrollmentService) Start(googlecloudidentitytoolkitv2startpasskeyenrollmentrequest *GoogleCloudIdentitytoolkitV2StartPasskeyEnrollmentRequest) *AccountsPasskeyEnrollmentStartCall { - c := &AccountsPasskeyEnrollmentStartCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.googlecloudidentitytoolkitv2startpasskeyenrollmentrequest = googlecloudidentitytoolkitv2startpasskeyenrollmentrequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *AccountsPasskeyEnrollmentStartCall) Fields(s ...googleapi.Field) *AccountsPasskeyEnrollmentStartCall { - 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 *AccountsPasskeyEnrollmentStartCall) Context(ctx context.Context) *AccountsPasskeyEnrollmentStartCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *AccountsPasskeyEnrollmentStartCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AccountsPasskeyEnrollmentStartCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - 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.googlecloudidentitytoolkitv2startpasskeyenrollmentrequest) - 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/accounts/passkeyEnrollment:start") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "identitytoolkit.accounts.passkeyEnrollment.start" call. -// Exactly one of -// *GoogleCloudIdentitytoolkitV2StartPasskeyEnrollmentResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIdentitytoolkitV2StartPasskeyEnrollmentResponse.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 *AccountsPasskeyEnrollmentStartCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV2StartPasskeyEnrollmentResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleCloudIdentitytoolkitV2StartPasskeyEnrollmentResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Step one of the passkey enrollment process. Returns a challenge and parameters for creation of the passkey credential.", - // "flatPath": "v2/accounts/passkeyEnrollment:start", - // "httpMethod": "POST", - // "id": "identitytoolkit.accounts.passkeyEnrollment.start", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v2/accounts/passkeyEnrollment:start", - // "request": { - // "$ref": "GoogleCloudIdentitytoolkitV2StartPasskeyEnrollmentRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIdentitytoolkitV2StartPasskeyEnrollmentResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "identitytoolkit.accounts.passkeySignIn.finalize": - -type AccountsPasskeySignInFinalizeCall struct { - s *Service - googlecloudidentitytoolkitv2finalizepasskeysigninrequest *GoogleCloudIdentitytoolkitV2FinalizePasskeySignInRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Finalize: Verifies the passkey assertion and signs the user in. -func (r *AccountsPasskeySignInService) Finalize(googlecloudidentitytoolkitv2finalizepasskeysigninrequest *GoogleCloudIdentitytoolkitV2FinalizePasskeySignInRequest) *AccountsPasskeySignInFinalizeCall { - c := &AccountsPasskeySignInFinalizeCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.googlecloudidentitytoolkitv2finalizepasskeysigninrequest = googlecloudidentitytoolkitv2finalizepasskeysigninrequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *AccountsPasskeySignInFinalizeCall) Fields(s ...googleapi.Field) *AccountsPasskeySignInFinalizeCall { - 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 *AccountsPasskeySignInFinalizeCall) Context(ctx context.Context) *AccountsPasskeySignInFinalizeCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *AccountsPasskeySignInFinalizeCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AccountsPasskeySignInFinalizeCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - 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.googlecloudidentitytoolkitv2finalizepasskeysigninrequest) - 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/accounts/passkeySignIn:finalize") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "identitytoolkit.accounts.passkeySignIn.finalize" call. -// Exactly one of -// *GoogleCloudIdentitytoolkitV2FinalizePasskeySignInResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIdentitytoolkitV2FinalizePasskeySignInResponse.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 *AccountsPasskeySignInFinalizeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV2FinalizePasskeySignInResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleCloudIdentitytoolkitV2FinalizePasskeySignInResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Verifies the passkey assertion and signs the user in.", - // "flatPath": "v2/accounts/passkeySignIn:finalize", - // "httpMethod": "POST", - // "id": "identitytoolkit.accounts.passkeySignIn.finalize", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v2/accounts/passkeySignIn:finalize", - // "request": { - // "$ref": "GoogleCloudIdentitytoolkitV2FinalizePasskeySignInRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIdentitytoolkitV2FinalizePasskeySignInResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "identitytoolkit.accounts.passkeySignIn.start": - -type AccountsPasskeySignInStartCall struct { - s *Service - googlecloudidentitytoolkitv2startpasskeysigninrequest *GoogleCloudIdentitytoolkitV2StartPasskeySignInRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Start: Creates and returns the passkey challenge -func (r *AccountsPasskeySignInService) Start(googlecloudidentitytoolkitv2startpasskeysigninrequest *GoogleCloudIdentitytoolkitV2StartPasskeySignInRequest) *AccountsPasskeySignInStartCall { - c := &AccountsPasskeySignInStartCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.googlecloudidentitytoolkitv2startpasskeysigninrequest = googlecloudidentitytoolkitv2startpasskeysigninrequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *AccountsPasskeySignInStartCall) Fields(s ...googleapi.Field) *AccountsPasskeySignInStartCall { - 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 *AccountsPasskeySignInStartCall) Context(ctx context.Context) *AccountsPasskeySignInStartCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *AccountsPasskeySignInStartCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AccountsPasskeySignInStartCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - 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.googlecloudidentitytoolkitv2startpasskeysigninrequest) - 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/accounts/passkeySignIn:start") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "identitytoolkit.accounts.passkeySignIn.start" call. -// Exactly one of -// *GoogleCloudIdentitytoolkitV2StartPasskeySignInResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudIdentitytoolkitV2StartPasskeySignInResponse.ServerResponse -// .Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *AccountsPasskeySignInStartCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV2StartPasskeySignInResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleCloudIdentitytoolkitV2StartPasskeySignInResponse{ - ServerResponse: googleapi.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 and returns the passkey challenge", - // "flatPath": "v2/accounts/passkeySignIn:start", - // "httpMethod": "POST", - // "id": "identitytoolkit.accounts.passkeySignIn.start", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v2/accounts/passkeySignIn:start", - // "request": { - // "$ref": "GoogleCloudIdentitytoolkitV2StartPasskeySignInRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIdentitytoolkitV2StartPasskeySignInResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - // method id "identitytoolkit.defaultSupportedIdps.list": type DefaultSupportedIdpsListCall struct { diff --git a/metastore/v1/metastore-api.json b/metastore/v1/metastore-api.json index 916964a04d3..b8eb3e005da 100644 --- a/metastore/v1/metastore-api.json +++ b/metastore/v1/metastore-api.json @@ -1339,7 +1339,7 @@ } } }, - "revision": "20230502", + "revision": "20230530", "rootUrl": "https://metastore.googleapis.com/", "schemas": { "AlterMetadataResourceLocationRequest": { @@ -1442,10 +1442,12 @@ "description": "The type of the backend metastore.", "enum": [ "METASTORE_TYPE_UNSPECIFIED", + "BIGQUERY", "DATAPROC_METASTORE" ], "enumDescriptions": [ "The metastore type is not set.", + "The backend metastore is BigQuery.", "The backend metastore is Dataproc Metastore." ], "type": "string" @@ -1781,6 +1783,20 @@ "description": "A mapping of Hive metastore configuration key-value pairs to apply to the Hive metastore (configured in hive-site.xml). The mappings override system defaults (some keys cannot be overridden). These overrides are also applied to auxiliary versions and can be further customized in the auxiliary version's AuxiliaryVersionConfig.", "type": "object" }, + "endpointProtocol": { + "description": "The protocol to use for the metastore service endpoint. If unspecified, defaults to THRIFT.", + "enum": [ + "ENDPOINT_PROTOCOL_UNSPECIFIED", + "THRIFT", + "GRPC" + ], + "enumDescriptions": [ + "The protocol is not set.", + "Use the legacy Apache Thrift protocol for the metastore service endpoint.", + "Use the modernized gRPC protocol for the metastore service endpoint." + ], + "type": "string" + }, "kerberosConfig": { "$ref": "KerberosConfig", "description": "Information used to configure the Hive metastore service as a service principal in a Kerberos realm. To disable Kerberos, use the UpdateService method and specify this field's path (hive_metastore_config.kerberos_config) in the request's update_mask while omitting this field from the request's service." diff --git a/metastore/v1/metastore-gen.go b/metastore/v1/metastore-gen.go index c7e7aa8dfae..12cacec5921 100644 --- a/metastore/v1/metastore-gen.go +++ b/metastore/v1/metastore-gen.go @@ -406,6 +406,7 @@ type BackendMetastore struct { // // Possible values: // "METASTORE_TYPE_UNSPECIFIED" - The metastore type is not set. + // "BIGQUERY" - The backend metastore is BigQuery. // "DATAPROC_METASTORE" - The backend metastore is Dataproc Metastore. MetastoreType string `json:"metastoreType,omitempty"` @@ -972,6 +973,17 @@ type HiveMetastoreConfig struct { // AuxiliaryVersionConfig. ConfigOverrides map[string]string `json:"configOverrides,omitempty"` + // EndpointProtocol: The protocol to use for the metastore service + // endpoint. If unspecified, defaults to THRIFT. + // + // Possible values: + // "ENDPOINT_PROTOCOL_UNSPECIFIED" - The protocol is not set. + // "THRIFT" - Use the legacy Apache Thrift protocol for the metastore + // service endpoint. + // "GRPC" - Use the modernized gRPC protocol for the metastore service + // endpoint. + EndpointProtocol string `json:"endpointProtocol,omitempty"` + // KerberosConfig: Information used to configure the Hive metastore // service as a service principal in a Kerberos realm. To disable // Kerberos, use the UpdateService method and specify this field's path diff --git a/monitoring/v3/monitoring-api.json b/monitoring/v3/monitoring-api.json index 13a3ed45402..6a1aab9daf8 100644 --- a/monitoring/v3/monitoring-api.json +++ b/monitoring/v3/monitoring-api.json @@ -2714,7 +2714,7 @@ } } }, - "revision": "20230521", + "revision": "20230531", "rootUrl": "https://monitoring.googleapis.com/", "schemas": { "Aggregation": { @@ -2889,7 +2889,7 @@ }, "validity": { "$ref": "Status", - "description": "Read-only description of how the alert policy is invalid. OK if the alert policy is valid. If not OK, the alert policy will not generate incidents." + "description": "Read-only description of how the alert policy is invalid. This field is only set when the alert policy is invalid. An invalid alert policy will not generate incidents." } }, "type": "object" diff --git a/monitoring/v3/monitoring-gen.go b/monitoring/v3/monitoring-gen.go index f6edd6f5809..0c5038567a4 100644 --- a/monitoring/v3/monitoring-gen.go +++ b/monitoring/v3/monitoring-gen.go @@ -760,8 +760,8 @@ type AlertPolicy struct { UserLabels map[string]string `json:"userLabels,omitempty"` // Validity: Read-only description of how the alert policy is invalid. - // OK if the alert policy is valid. If not OK, the alert policy will not - // generate incidents. + // This field is only set when the alert policy is invalid. An invalid + // alert policy will not generate incidents. Validity *Status `json:"validity,omitempty"` // ServerResponse contains the HTTP response code and headers from the diff --git a/sqladmin/v1/sqladmin-api.json b/sqladmin/v1/sqladmin-api.json index 5ef0fc8215d..b0f60237752 100644 --- a/sqladmin/v1/sqladmin-api.json +++ b/sqladmin/v1/sqladmin-api.json @@ -1317,6 +1317,38 @@ }, "operations": { "methods": { + "cancel": { + "description": "Cancels an instance operation that has been performed on an instance.", + "flatPath": "v1/projects/{project}/operations/{operation}/cancel", + "httpMethod": "POST", + "id": "sql.operations.cancel", + "parameterOrder": [ + "project", + "operation" + ], + "parameters": { + "operation": { + "description": "Instance operation ID.", + "location": "path", + "required": true, + "type": "string" + }, + "project": { + "description": "Project ID of the project that contains the instance.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "v1/projects/{project}/operations/{operation}/cancel", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/sqlservice.admin" + ] + }, "get": { "description": "Retrieves an instance operation that has been performed on an instance.", "flatPath": "v1/projects/{project}/operations/{operation}", @@ -2023,7 +2055,7 @@ } } }, - "revision": "20230510", + "revision": "20230530", "rootUrl": "https://sqladmin.googleapis.com/", "schemas": { "AclEntry": { @@ -2116,7 +2148,7 @@ "type": "string" }, "pointInTimeRecoveryEnabled": { - "description": "(Postgres only) Whether point in time recovery is enabled.", + "description": "Whether point in time recovery is enabled.", "type": "boolean" }, "replicationLogArchivingEnabled": { @@ -2377,10 +2409,6 @@ "description": "Timestamp, if specified, identifies the time to which the source instance is cloned.", "format": "google-datetime", "type": "string" - }, - "preferredZone": { - "description": "(Point-in-time recovery for PostgreSQL only) Clone to an instance in the specified zone. If no zone is specified, clone to the same zone as the source instance.", - "type": "string" } }, "type": "object" @@ -3005,6 +3033,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); }", + "id": "Empty", + "properties": {}, + "type": "object" + }, "ExportContext": { "description": "Database instance export context.", "id": "ExportContext", @@ -4588,7 +4622,11 @@ "UNSUPPORTED_STORAGE_ENGINE", "LIMITED_SUPPORT_TABLES", "EXISTING_DATA_IN_REPLICA", - "MISSING_OPTIONAL_PRIVILEGES" + "MISSING_OPTIONAL_PRIVILEGES", + "RISKY_BACKUP_ADMIN_PRIVILEGE", + "INSUFFICIENT_GCS_PERMISSIONS", + "INVALID_FILE_INFO", + "UNSUPPORTED_DATABASE_SETTINGS" ], "enumDescriptions": [ "", @@ -4620,7 +4658,11 @@ "The primary instance has tables with unsupported storage engine.", "Source has tables with limited support eg: PostgreSQL tables without primary keys.", "The replica instance contains existing data.", - "The replication user is missing privileges that are optional." + "The replication user is missing privileges that are optional.", + "Additional BACKUP_ADMIN privilege is granted to the replication user which may lock source MySQL 8 instance for DDLs during initial sync.", + "The Cloud Storage bucket is missing necessary permissions.", + "The Cloud Storage bucket has an error in the file or contains invalid file information.", + "The source instance has unsupported database settings for migration." ], "type": "string" } @@ -4689,6 +4731,22 @@ "Offline external sync only dumps and loads a one-time snapshot of the primary instance's data" ], "type": "string" + }, + "syncParallelLevel": { + "description": "Optional. Parallel level for initial data sync. Currently only applicable for MySQL.", + "enum": [ + "EXTERNAL_SYNC_PARALLEL_LEVEL_UNSPECIFIED", + "MIN", + "OPTIMAL", + "MAX" + ], + "enumDescriptions": [ + "Unknown sync parallel level. Will be defaulted to OPTIMAL.", + "Minimal parallel level.", + "Optimal parallel level.", + "Maximum parallel level." + ], + "type": "string" } }, "type": "object" diff --git a/sqladmin/v1/sqladmin-gen.go b/sqladmin/v1/sqladmin-gen.go index 400fa20888a..c98982e3c1b 100644 --- a/sqladmin/v1/sqladmin-gen.go +++ b/sqladmin/v1/sqladmin-gen.go @@ -406,8 +406,8 @@ type BackupConfiguration struct { // Location: Location of the backup Location string `json:"location,omitempty"` - // PointInTimeRecoveryEnabled: (Postgres only) Whether point in time - // recovery is enabled. + // PointInTimeRecoveryEnabled: Whether point in time recovery is + // enabled. PointInTimeRecoveryEnabled bool `json:"pointInTimeRecoveryEnabled,omitempty"` // ReplicationLogArchivingEnabled: Reserved for future use. @@ -753,11 +753,6 @@ type CloneContext struct { // the source instance is cloned. PointInTime string `json:"pointInTime,omitempty"` - // PreferredZone: (Point-in-time recovery for PostgreSQL only) Clone to - // an instance in the specified zone. If no zone is specified, clone to - // the same zone as the source instance. - PreferredZone string `json:"preferredZone,omitempty"` - // ForceSendFields is a list of field names (e.g. "AllocatedIpRange") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -1595,6 +1590,17 @@ func (s *DiskEncryptionStatus) 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); } +type Empty struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + // ExportContext: Database instance export context. type ExportContext struct { // BakExportOptions: Options for exporting BAK files (SQL Server-only) @@ -3976,6 +3982,15 @@ type SqlExternalSyncSettingError struct { // data. // "MISSING_OPTIONAL_PRIVILEGES" - The replication user is missing // privileges that are optional. + // "RISKY_BACKUP_ADMIN_PRIVILEGE" - Additional BACKUP_ADMIN privilege + // is granted to the replication user which may lock source MySQL 8 + // instance for DDLs during initial sync. + // "INSUFFICIENT_GCS_PERMISSIONS" - The Cloud Storage bucket is + // missing necessary permissions. + // "INVALID_FILE_INFO" - The Cloud Storage bucket has an error in the + // file or contains invalid file information. + // "UNSUPPORTED_DATABASE_SETTINGS" - The source instance has + // unsupported database settings for migration. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Detail") to @@ -4095,6 +4110,17 @@ type SqlInstancesStartExternalSyncRequest struct { // snapshot of the primary instance's data SyncMode string `json:"syncMode,omitempty"` + // SyncParallelLevel: Optional. Parallel level for initial data sync. + // Currently only applicable for MySQL. + // + // Possible values: + // "EXTERNAL_SYNC_PARALLEL_LEVEL_UNSPECIFIED" - Unknown sync parallel + // level. Will be defaulted to OPTIMAL. + // "MIN" - Minimal parallel level. + // "OPTIMAL" - Optimal parallel level. + // "MAX" - Maximum parallel level. + SyncParallelLevel string `json:"syncParallelLevel,omitempty"` + // ForceSendFields is a list of field names (e.g. "MysqlSyncConfig") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -10322,6 +10348,150 @@ func (c *InstancesUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, erro } +// method id "sql.operations.cancel": + +type OperationsCancelCall struct { + s *Service + project string + operation string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Cancel: Cancels an instance operation that has been performed on an +// instance. +// +// - operation: Instance operation ID. +// - project: Project ID of the project that contains the instance. +func (r *OperationsService) Cancel(project string, operation string) *OperationsCancelCall { + c := &OperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.operation = operation + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OperationsCancelCall) Fields(s ...googleapi.Field) *OperationsCancelCall { + 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 *OperationsCancelCall) Context(ctx context.Context) *OperationsCancelCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OperationsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.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/"+internal.Version) + 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/projects/{project}/operations/{operation}/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{ + "project": c.project, + "operation": c.operation, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "sql.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 *OperationsCancelCall) 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, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(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": "Cancels an instance operation that has been performed on an instance.", + // "flatPath": "v1/projects/{project}/operations/{operation}/cancel", + // "httpMethod": "POST", + // "id": "sql.operations.cancel", + // "parameterOrder": [ + // "project", + // "operation" + // ], + // "parameters": { + // "operation": { + // "description": "Instance operation ID.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "project": { + // "description": "Project ID of the project that contains the instance.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/projects/{project}/operations/{operation}/cancel", + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/sqlservice.admin" + // ] + // } + +} + // method id "sql.operations.get": type OperationsGetCall struct { diff --git a/sqladmin/v1beta4/sqladmin-api.json b/sqladmin/v1beta4/sqladmin-api.json index 1faede3c386..59e56682e89 100644 --- a/sqladmin/v1beta4/sqladmin-api.json +++ b/sqladmin/v1beta4/sqladmin-api.json @@ -1317,6 +1317,38 @@ }, "operations": { "methods": { + "cancel": { + "description": "Cancels an instance operation that has been performed on an instance.", + "flatPath": "sql/v1beta4/projects/{project}/operations/{operation}/cancel", + "httpMethod": "POST", + "id": "sql.operations.cancel", + "parameterOrder": [ + "project", + "operation" + ], + "parameters": { + "operation": { + "description": "Instance operation ID.", + "location": "path", + "required": true, + "type": "string" + }, + "project": { + "description": "Project ID of the project that contains the instance.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "sql/v1beta4/projects/{project}/operations/{operation}/cancel", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/sqlservice.admin" + ] + }, "get": { "description": "Retrieves an instance operation that has been performed on an instance.", "flatPath": "sql/v1beta4/projects/{project}/operations/{operation}", @@ -2023,7 +2055,7 @@ } } }, - "revision": "20230510", + "revision": "20230530", "rootUrl": "https://sqladmin.googleapis.com/", "schemas": { "AclEntry": { @@ -2116,7 +2148,7 @@ "type": "string" }, "pointInTimeRecoveryEnabled": { - "description": "(Postgres only) Whether point in time recovery is enabled.", + "description": "Whether point in time recovery is enabled.", "type": "boolean" }, "replicationLogArchivingEnabled": { @@ -2377,10 +2409,6 @@ "description": "Timestamp, if specified, identifies the time to which the source instance is cloned.", "format": "google-datetime", "type": "string" - }, - "preferredZone": { - "description": "(Point-in-time recovery for PostgreSQL only) Clone to an instance in the specified zone. If no zone is specified, clone to the same zone as the source instance.", - "type": "string" } }, "type": "object" @@ -3005,6 +3033,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); }", + "id": "Empty", + "properties": {}, + "type": "object" + }, "ExportContext": { "description": "Database instance export context.", "id": "ExportContext", @@ -4588,7 +4622,11 @@ "UNSUPPORTED_STORAGE_ENGINE", "LIMITED_SUPPORT_TABLES", "EXISTING_DATA_IN_REPLICA", - "MISSING_OPTIONAL_PRIVILEGES" + "MISSING_OPTIONAL_PRIVILEGES", + "RISKY_BACKUP_ADMIN_PRIVILEGE", + "INSUFFICIENT_GCS_PERMISSIONS", + "INVALID_FILE_INFO", + "UNSUPPORTED_DATABASE_SETTINGS" ], "enumDescriptions": [ "", @@ -4620,7 +4658,11 @@ "The primary instance has tables with unsupported storage engine.", "Source has tables with limited support eg: PostgreSQL tables without primary keys.", "The replica instance contains existing data.", - "The replication user is missing privileges that are optional." + "The replication user is missing privileges that are optional.", + "Additional BACKUP_ADMIN privilege is granted to the replication user which may lock source MySQL 8 instance for DDLs during initial sync.", + "The Cloud Storage bucket is missing necessary permissions.", + "The Cloud Storage bucket has an error in the file or contains invalid file information.", + "The source instance has unsupported database settings for migration." ], "type": "string" } @@ -4688,6 +4730,22 @@ "Offline external sync only dumps and loads a one-time snapshot of the primary instance's data" ], "type": "string" + }, + "syncParallelLevel": { + "description": "Optional. Parallel level for initial data sync. Currently only applicable for MySQL.", + "enum": [ + "EXTERNAL_SYNC_PARALLEL_LEVEL_UNSPECIFIED", + "MIN", + "OPTIMAL", + "MAX" + ], + "enumDescriptions": [ + "Unknown sync parallel level. Will be defaulted to OPTIMAL.", + "Minimal parallel level.", + "Optimal parallel level.", + "Maximum parallel level." + ], + "type": "string" } }, "type": "object" diff --git a/sqladmin/v1beta4/sqladmin-gen.go b/sqladmin/v1beta4/sqladmin-gen.go index 2be599eda1b..7baff24b723 100644 --- a/sqladmin/v1beta4/sqladmin-gen.go +++ b/sqladmin/v1beta4/sqladmin-gen.go @@ -406,8 +406,8 @@ type BackupConfiguration struct { // Location: Location of the backup Location string `json:"location,omitempty"` - // PointInTimeRecoveryEnabled: (Postgres only) Whether point in time - // recovery is enabled. + // PointInTimeRecoveryEnabled: Whether point in time recovery is + // enabled. PointInTimeRecoveryEnabled bool `json:"pointInTimeRecoveryEnabled,omitempty"` // ReplicationLogArchivingEnabled: Reserved for future use. @@ -753,11 +753,6 @@ type CloneContext struct { // the source instance is cloned. PointInTime string `json:"pointInTime,omitempty"` - // PreferredZone: (Point-in-time recovery for PostgreSQL only) Clone to - // an instance in the specified zone. If no zone is specified, clone to - // the same zone as the source instance. - PreferredZone string `json:"preferredZone,omitempty"` - // ForceSendFields is a list of field names (e.g. "AllocatedIpRange") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -1594,6 +1589,17 @@ func (s *DiskEncryptionStatus) 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); } +type Empty struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + // ExportContext: Database instance export context. type ExportContext struct { // BakExportOptions: Options for exporting BAK files (SQL Server-only) @@ -3975,6 +3981,15 @@ type SqlExternalSyncSettingError struct { // data. // "MISSING_OPTIONAL_PRIVILEGES" - The replication user is missing // privileges that are optional. + // "RISKY_BACKUP_ADMIN_PRIVILEGE" - Additional BACKUP_ADMIN privilege + // is granted to the replication user which may lock source MySQL 8 + // instance for DDLs during initial sync. + // "INSUFFICIENT_GCS_PERMISSIONS" - The Cloud Storage bucket is + // missing necessary permissions. + // "INVALID_FILE_INFO" - The Cloud Storage bucket has an error in the + // file or contains invalid file information. + // "UNSUPPORTED_DATABASE_SETTINGS" - The source instance has + // unsupported database settings for migration. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Detail") to @@ -4092,6 +4107,17 @@ type SqlInstancesStartExternalSyncRequest struct { // snapshot of the primary instance's data SyncMode string `json:"syncMode,omitempty"` + // SyncParallelLevel: Optional. Parallel level for initial data sync. + // Currently only applicable for MySQL. + // + // Possible values: + // "EXTERNAL_SYNC_PARALLEL_LEVEL_UNSPECIFIED" - Unknown sync parallel + // level. Will be defaulted to OPTIMAL. + // "MIN" - Minimal parallel level. + // "OPTIMAL" - Optimal parallel level. + // "MAX" - Maximum parallel level. + SyncParallelLevel string `json:"syncParallelLevel,omitempty"` + // ForceSendFields is a list of field names (e.g. "MysqlSyncConfig") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -10317,6 +10343,150 @@ func (c *InstancesUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, erro } +// method id "sql.operations.cancel": + +type OperationsCancelCall struct { + s *Service + project string + operation string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Cancel: Cancels an instance operation that has been performed on an +// instance. +// +// - operation: Instance operation ID. +// - project: Project ID of the project that contains the instance. +func (r *OperationsService) Cancel(project string, operation string) *OperationsCancelCall { + c := &OperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.operation = operation + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OperationsCancelCall) Fields(s ...googleapi.Field) *OperationsCancelCall { + 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 *OperationsCancelCall) Context(ctx context.Context) *OperationsCancelCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OperationsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.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/"+internal.Version) + 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, "sql/v1beta4/projects/{project}/operations/{operation}/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{ + "project": c.project, + "operation": c.operation, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "sql.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 *OperationsCancelCall) 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, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(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": "Cancels an instance operation that has been performed on an instance.", + // "flatPath": "sql/v1beta4/projects/{project}/operations/{operation}/cancel", + // "httpMethod": "POST", + // "id": "sql.operations.cancel", + // "parameterOrder": [ + // "project", + // "operation" + // ], + // "parameters": { + // "operation": { + // "description": "Instance operation ID.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "project": { + // "description": "Project ID of the project that contains the instance.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "sql/v1beta4/projects/{project}/operations/{operation}/cancel", + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/sqlservice.admin" + // ] + // } + +} + // method id "sql.operations.get": type OperationsGetCall struct { From 95d3fd1747451b492deefe490ecc52842df0c031 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sat, 3 Jun 2023 00:22:12 -0700 Subject: [PATCH 4/7] feat(all): auto-regenerate discovery clients (#2012) --- apigee/v1/apigee-api.json | 102 ++++- apigee/v1/apigee-gen.go | 152 +++++++- bigtableadmin/v2/bigtableadmin-api.json | 8 +- bigtableadmin/v2/bigtableadmin-gen.go | 21 +- cloudsearch/v1/cloudsearch-api.json | 207 ++++++++-- cloudsearch/v1/cloudsearch-gen.go | 498 ++++++++++++++++++++---- container/v1/container-api.json | 146 ++++++- container/v1/container-gen.go | 328 ++++++++++++++++ iam/v1/iam-api.json | 6 +- iam/v1/iam-gen.go | 10 + manufacturers/v1/manufacturers-api.json | 6 +- manufacturers/v1/manufacturers-gen.go | 3 + 12 files changed, 1341 insertions(+), 146 deletions(-) diff --git a/apigee/v1/apigee-api.json b/apigee/v1/apigee-api.json index 294fce0c68b..2e33f9d662f 100644 --- a/apigee/v1/apigee-api.json +++ b/apigee/v1/apigee-api.json @@ -8744,7 +8744,7 @@ } } }, - "revision": "20230508", + "revision": "20230526", "rootUrl": "https://apigee.googleapis.com/", "schemas": { "EdgeConfigstoreBundleBadBundle": { @@ -10972,6 +10972,13 @@ "description": "Encapsulates a metric grouped by dimension.", "id": "GoogleCloudApigeeV1DimensionMetric", "properties": { + "individualNames": { + "description": "Individual dimension names. E.g. [\"dim1_name\", \"dim2_name\"].", + "items": { + "type": "string" + }, + "type": "array" + }, "metrics": { "description": "List of metrics.", "items": { @@ -10980,7 +10987,7 @@ "type": "array" }, "name": { - "description": "Name of the dimension.", + "description": "Comma joined dimension names. E.g. \"dim1_name,dim2_name\". Deprecated. If name already has comma before join, we may get wrong splits. Please use individual_names.", "type": "string" } }, @@ -12903,7 +12910,7 @@ "description": "Addon configurations of the Apigee organization." }, "analyticsRegion": { - "description": "Required. DEPRECATED: This field will be deprecated once Apigee supports DRZ. Primary Google Cloud region for analytics data storage. For valid values, see [Create an Apigee organization](https://cloud.google.com/apigee/docs/api-platform/get-started/create-org).", + "description": "Required. DEPRECATED: This field will eventually be deprecated and replaced with a differently-named field. Primary Google Cloud region for analytics data storage. For valid values, see [Create an Apigee organization](https://cloud.google.com/apigee/docs/api-platform/get-started/create-org).", "type": "string" }, "apiConsumerDataEncryptionKeyName": { @@ -13172,6 +13179,87 @@ }, "type": "object" }, + "GoogleCloudApigeeV1ProfileConfig": { + "description": "ProfileConfig defines a set of categories and policies which will be used to compute security score.", + "id": "GoogleCloudApigeeV1ProfileConfig", + "properties": { + "categories": { + "description": "List of categories of profile config.", + "items": { + "$ref": "GoogleCloudApigeeV1ProfileConfigCategory" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudApigeeV1ProfileConfigAbuse": { + "description": "Checks for abuse, which includes any requests sent to the API for purposes other than what it is intended for, such as high volumes of requests, data scraping, and abuse related to authorization.", + "id": "GoogleCloudApigeeV1ProfileConfigAbuse", + "properties": {}, + "type": "object" + }, + "GoogleCloudApigeeV1ProfileConfigAuthorization": { + "description": "By default, following policies will be included: - JWS - JWT - OAuth - BasicAuth - APIKey", + "id": "GoogleCloudApigeeV1ProfileConfigAuthorization", + "properties": {}, + "type": "object" + }, + "GoogleCloudApigeeV1ProfileConfigCORS": { + "description": "Checks to see if you have CORS policy in place.", + "id": "GoogleCloudApigeeV1ProfileConfigCORS", + "properties": {}, + "type": "object" + }, + "GoogleCloudApigeeV1ProfileConfigCategory": { + "description": "Advanced API Security provides security profile that scores the following categories.", + "id": "GoogleCloudApigeeV1ProfileConfigCategory", + "properties": { + "abuse": { + "$ref": "GoogleCloudApigeeV1ProfileConfigAbuse", + "description": "Checks for abuse, which includes any requests sent to the API for purposes other than what it is intended for, such as high volumes of requests, data scraping, and abuse related to authorization." + }, + "authorization": { + "$ref": "GoogleCloudApigeeV1ProfileConfigAuthorization", + "description": "Checks to see if you have an authorization policy in place." + }, + "cors": { + "$ref": "GoogleCloudApigeeV1ProfileConfigCORS", + "description": "Checks to see if you have CORS policy in place." + }, + "mediation": { + "$ref": "GoogleCloudApigeeV1ProfileConfigMediation", + "description": "Checks to see if you have a mediation policy in place." + }, + "mtls": { + "$ref": "GoogleCloudApigeeV1ProfileConfigMTLS", + "description": "Checks to see if you have configured mTLS for the target server." + }, + "threat": { + "$ref": "GoogleCloudApigeeV1ProfileConfigThreat", + "description": "Checks to see if you have a threat protection policy in place." + } + }, + "type": "object" + }, + "GoogleCloudApigeeV1ProfileConfigMTLS": { + "description": "Checks to see if you have configured mTLS for the target server.", + "id": "GoogleCloudApigeeV1ProfileConfigMTLS", + "properties": {}, + "type": "object" + }, + "GoogleCloudApigeeV1ProfileConfigMediation": { + "description": "By default, following policies will be included: - OASValidation - SOAPMessageValidation", + "id": "GoogleCloudApigeeV1ProfileConfigMediation", + "properties": {}, + "type": "object" + }, + "GoogleCloudApigeeV1ProfileConfigThreat": { + "description": "By default, following policies will be included: - XMLThreatProtection - JSONThreatProtection", + "id": "GoogleCloudApigeeV1ProfileConfigThreat", + "properties": {}, + "type": "object" + }, "GoogleCloudApigeeV1Properties": { "description": "Message for compatibility with legacy Edge specification for Java Properties object in JSON.", "id": "GoogleCloudApigeeV1Properties", @@ -14379,6 +14467,10 @@ "description": "Represents a SecurityProfile resource.", "id": "GoogleCloudApigeeV1SecurityProfile", "properties": { + "description": { + "description": "Description of the security profile.", + "type": "string" + }, "displayName": { "description": "Display name of the security profile.", "type": "string" @@ -14406,6 +14498,10 @@ "description": "Immutable. Name of the security profile resource. Format: organizations/{org}/securityProfiles/{profile}", "type": "string" }, + "profileConfig": { + "$ref": "GoogleCloudApigeeV1ProfileConfig", + "description": "Customized profile configuration that computes the security score." + }, "revisionCreateTime": { "description": "Output only. The time when revision was created.", "format": "google-datetime", diff --git a/apigee/v1/apigee-gen.go b/apigee/v1/apigee-gen.go index da8c0ad0e0f..fb7cde3528a 100644 --- a/apigee/v1/apigee-gen.go +++ b/apigee/v1/apigee-gen.go @@ -4371,13 +4371,19 @@ func (s *GoogleCloudApigeeV1DeveloperSubscription) MarshalJSON() ([]byte, error) // GoogleCloudApigeeV1DimensionMetric: Encapsulates a metric grouped by // dimension. type GoogleCloudApigeeV1DimensionMetric struct { + // IndividualNames: Individual dimension names. E.g. ["dim1_name", + // "dim2_name"]. + IndividualNames []string `json:"individualNames,omitempty"` + // Metrics: List of metrics. Metrics []*GoogleCloudApigeeV1Metric `json:"metrics,omitempty"` - // Name: Name of the dimension. + // Name: Comma joined dimension names. E.g. "dim1_name,dim2_name". + // Deprecated. If name already has comma before join, we may get wrong + // splits. Please use individual_names. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "Metrics") to + // ForceSendFields is a list of field names (e.g. "IndividualNames") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -4385,12 +4391,13 @@ type GoogleCloudApigeeV1DimensionMetric struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Metrics") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an 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. "IndividualNames") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } @@ -7701,9 +7708,10 @@ type GoogleCloudApigeeV1Organization struct { // AddonsConfig: Addon configurations of the Apigee organization. AddonsConfig *GoogleCloudApigeeV1AddonsConfig `json:"addonsConfig,omitempty"` - // AnalyticsRegion: Required. DEPRECATED: This field will be deprecated - // once Apigee supports DRZ. Primary Google Cloud region for analytics - // data storage. For valid values, see Create an Apigee organization + // AnalyticsRegion: Required. DEPRECATED: This field will eventually be + // deprecated and replaced with a differently-named field. Primary + // Google Cloud region for analytics data storage. For valid values, see + // Create an Apigee organization // (https://cloud.google.com/apigee/docs/api-platform/get-started/create-org). AnalyticsRegion string `json:"analyticsRegion,omitempty"` @@ -8035,6 +8043,117 @@ func (s *GoogleCloudApigeeV1Point) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudApigeeV1ProfileConfig: ProfileConfig defines a set of +// categories and policies which will be used to compute security score. +type GoogleCloudApigeeV1ProfileConfig struct { + // Categories: List of categories of profile config. + Categories []*GoogleCloudApigeeV1ProfileConfigCategory `json:"categories,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Categories") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or 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 *GoogleCloudApigeeV1ProfileConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudApigeeV1ProfileConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudApigeeV1ProfileConfigAbuse: Checks for abuse, which +// includes any requests sent to the API for purposes other than what it +// is intended for, such as high volumes of requests, data scraping, and +// abuse related to authorization. +type GoogleCloudApigeeV1ProfileConfigAbuse struct { +} + +// GoogleCloudApigeeV1ProfileConfigAuthorization: By default, following +// policies will be included: - JWS - JWT - OAuth - BasicAuth - APIKey +type GoogleCloudApigeeV1ProfileConfigAuthorization struct { +} + +// GoogleCloudApigeeV1ProfileConfigCORS: Checks to see if you have CORS +// policy in place. +type GoogleCloudApigeeV1ProfileConfigCORS struct { +} + +// GoogleCloudApigeeV1ProfileConfigCategory: Advanced API Security +// provides security profile that scores the following categories. +type GoogleCloudApigeeV1ProfileConfigCategory struct { + // Abuse: Checks for abuse, which includes any requests sent to the API + // for purposes other than what it is intended for, such as high volumes + // of requests, data scraping, and abuse related to authorization. + Abuse *GoogleCloudApigeeV1ProfileConfigAbuse `json:"abuse,omitempty"` + + // Authorization: Checks to see if you have an authorization policy in + // place. + Authorization *GoogleCloudApigeeV1ProfileConfigAuthorization `json:"authorization,omitempty"` + + // Cors: Checks to see if you have CORS policy in place. + Cors *GoogleCloudApigeeV1ProfileConfigCORS `json:"cors,omitempty"` + + // Mediation: Checks to see if you have a mediation policy in place. + Mediation *GoogleCloudApigeeV1ProfileConfigMediation `json:"mediation,omitempty"` + + // Mtls: Checks to see if you have configured mTLS for the target + // server. + Mtls *GoogleCloudApigeeV1ProfileConfigMTLS `json:"mtls,omitempty"` + + // Threat: Checks to see if you have a threat protection policy in + // place. + Threat *GoogleCloudApigeeV1ProfileConfigThreat `json:"threat,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Abuse") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Abuse") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudApigeeV1ProfileConfigCategory) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudApigeeV1ProfileConfigCategory + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudApigeeV1ProfileConfigMTLS: Checks to see if you have +// configured mTLS for the target server. +type GoogleCloudApigeeV1ProfileConfigMTLS struct { +} + +// GoogleCloudApigeeV1ProfileConfigMediation: By default, following +// policies will be included: - OASValidation - SOAPMessageValidation +type GoogleCloudApigeeV1ProfileConfigMediation struct { +} + +// GoogleCloudApigeeV1ProfileConfigThreat: By default, following +// policies will be included: - XMLThreatProtection - +// JSONThreatProtection +type GoogleCloudApigeeV1ProfileConfigThreat struct { +} + // GoogleCloudApigeeV1Properties: Message for compatibility with legacy // Edge specification for Java Properties object in JSON. type GoogleCloudApigeeV1Properties struct { @@ -9916,6 +10035,9 @@ func (s *GoogleCloudApigeeV1SecurityIncident) MarshalJSON() ([]byte, error) { // GoogleCloudApigeeV1SecurityProfile: Represents a SecurityProfile // resource. type GoogleCloudApigeeV1SecurityProfile struct { + // Description: Description of the security profile. + Description string `json:"description,omitempty"` + // DisplayName: Display name of the security profile. DisplayName string `json:"displayName,omitempty"` @@ -9934,6 +10056,10 @@ type GoogleCloudApigeeV1SecurityProfile struct { // organizations/{org}/securityProfiles/{profile} Name string `json:"name,omitempty"` + // ProfileConfig: Customized profile configuration that computes the + // security score. + ProfileConfig *GoogleCloudApigeeV1ProfileConfig `json:"profileConfig,omitempty"` + // RevisionCreateTime: Output only. The time when revision was created. RevisionCreateTime string `json:"revisionCreateTime,omitempty"` @@ -9955,7 +10081,7 @@ type GoogleCloudApigeeV1SecurityProfile 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 or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -9963,7 +10089,7 @@ type GoogleCloudApigeeV1SecurityProfile struct { // 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 + // 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 diff --git a/bigtableadmin/v2/bigtableadmin-api.json b/bigtableadmin/v2/bigtableadmin-api.json index 76073433c49..3273680757b 100644 --- a/bigtableadmin/v2/bigtableadmin-api.json +++ b/bigtableadmin/v2/bigtableadmin-api.json @@ -1966,7 +1966,7 @@ } } }, - "revision": "20230426", + "revision": "20230529", "rootUrl": "https://bigtableadmin.googleapis.com/", "schemas": { "AppProfile": { @@ -2995,7 +2995,7 @@ "type": "object" }, "Location": { - "description": "A resource that represents Google Cloud location.", + "description": "A resource that represents a Google Cloud location.", "id": "Location", "properties": { "displayName": { @@ -3055,6 +3055,10 @@ "description": "Request message for google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies", "id": "ModifyColumnFamiliesRequest", "properties": { + "ignoreWarnings": { + "description": "If true, ignore safety checks when modifying the column families.", + "type": "boolean" + }, "modifications": { "description": "Required. Modifications to be atomically applied to the specified table's families. Entries are applied in order, meaning that earlier modifications can be masked by later ones (in the case of repeated updates to the same family, for example).", "items": { diff --git a/bigtableadmin/v2/bigtableadmin-gen.go b/bigtableadmin/v2/bigtableadmin-gen.go index 5701dd5decc..a21b126031c 100644 --- a/bigtableadmin/v2/bigtableadmin-gen.go +++ b/bigtableadmin/v2/bigtableadmin-gen.go @@ -2320,7 +2320,7 @@ func (s *ListTablesResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Location: A resource that represents Google Cloud location. +// Location: A resource that represents a Google Cloud location. type Location struct { // DisplayName: The friendly name for this location, typically a nearby // city name. For example, "Tokyo". @@ -2414,13 +2414,17 @@ func (s *Modification) MarshalJSON() ([]byte, error) { // ModifyColumnFamiliesRequest: Request message for // google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies type ModifyColumnFamiliesRequest struct { + // IgnoreWarnings: If true, ignore safety checks when modifying the + // column families. + IgnoreWarnings bool `json:"ignoreWarnings,omitempty"` + // Modifications: Required. Modifications to be atomically applied to // the specified table's families. Entries are applied in order, meaning // that earlier modifications can be masked by later ones (in the case // of repeated updates to the same family, for example). Modifications []*Modification `json:"modifications,omitempty"` - // ForceSendFields is a list of field names (e.g. "Modifications") to + // ForceSendFields is a list of field names (e.g. "IgnoreWarnings") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2428,12 +2432,13 @@ type ModifyColumnFamiliesRequest struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Modifications") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an 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. "IgnoreWarnings") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } diff --git a/cloudsearch/v1/cloudsearch-api.json b/cloudsearch/v1/cloudsearch-api.json index 5d769ff83bb..2d69ab52fdb 100644 --- a/cloudsearch/v1/cloudsearch-api.json +++ b/cloudsearch/v1/cloudsearch-api.json @@ -937,6 +937,25 @@ }, "query": { "methods": { + "removeActivity": { + "description": "Provides functionality to remove logged activity for a user. Currently to be used only for dynamite 1p clients **Note:** This API requires a standard end user account to execute. A service account can't perform Remove Activity requests directly; to use a service account to perform queries, set up [Google Workspace domain-wide delegation of authority](https://developers.google.com/cloud-search/docs/guides/delegation/).", + "flatPath": "v1/query:removeActivity", + "httpMethod": "POST", + "id": "cloudsearch.query.removeActivity", + "parameterOrder": [], + "parameters": {}, + "path": "v1/query:removeActivity", + "request": { + "$ref": "RemoveActivityRequest" + }, + "response": { + "$ref": "RemoveActivityResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud_search", + "https://www.googleapis.com/auth/cloud_search.query" + ] + }, "search": { "description": "The Cloud Search Query API provides the search method, which returns the most relevant results from a user query. The results can come from Google Workspace apps, such as Gmail or Google Drive, or they can come from data that you have indexed from a third party. **Note:** This API requires a standard end user account to execute. A service account can't perform Query API requests directly; to use a service account to perform queries, set up [Google Workspace domain-wide delegation of authority](https://developers.google.com/cloud-search/docs/guides/delegation/).", "flatPath": "v1/query/search", @@ -2077,7 +2096,7 @@ } } }, - "revision": "20230510", + "revision": "20230524", "rootUrl": "https://cloudsearch.googleapis.com/", "schemas": { "AbuseReportingConfig": { @@ -2860,7 +2879,7 @@ "type": "object" }, "AppsDynamiteSharedBackendUploadMetadata": { - "description": "Metadata used only in Dynamite backend for uploaded attachments.", + "description": "Metadata used only in Dynamite backend for uploaded attachments. NEXT ID: 20", "id": "AppsDynamiteSharedBackendUploadMetadata", "properties": { "blobPath": { @@ -2949,7 +2968,7 @@ "description": "Summary of a Data Loss Prevention (DLP) scan of the attachment. Attachments are evaluated in the backend when they are uploaded." }, "experiment": { - "description": "The list of experiments this video is enabled for Next tag: 19", + "description": "The list of experiments this video is enabled for", "items": { "enum": [ "UNKNOWN_EXPERIMENT", @@ -2971,6 +2990,9 @@ "description": "If the uploaded file is a video that has been transcoded on the client side", "type": "boolean" }, + "migratedFromHangoutsMetadata": { + "$ref": "AppsDynamiteSharedBackendUploadMetadataMigratedFromHangoutsMetadata" + }, "originalDimension": { "$ref": "AppsDynamiteSharedDimension", "description": "Original dimension of the content. Only set for image attachments." @@ -3022,6 +3044,34 @@ }, "type": "object" }, + "AppsDynamiteSharedBackendUploadMetadataMigratedFromHangoutsMetadata": { + "description": "Metadata for attachments migrated from Hangouts", + "id": "AppsDynamiteSharedBackendUploadMetadataMigratedFromHangoutsMetadata", + "properties": { + "photoId": { + "$ref": "AppsDynamiteSharedBackendUploadMetadataMigratedFromHangoutsMetadataPhotoId" + }, + "updateTimestampUsec": { + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "AppsDynamiteSharedBackendUploadMetadataMigratedFromHangoutsMetadataPhotoId": { + "id": "AppsDynamiteSharedBackendUploadMetadataMigratedFromHangoutsMetadataPhotoId", + "properties": { + "photoId": { + "format": "int64", + "type": "string" + }, + "userId": { + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "AppsDynamiteSharedCalendarEventAnnotationData": { "id": "AppsDynamiteSharedCalendarEventAnnotationData", "properties": { @@ -3711,7 +3761,7 @@ "id": "AppsDynamiteSharedMessageSearchInfo", "properties": { "matchedSegmentsInTextBody": { - "description": "An example use case: clients can use this field to highlight matched segments in message text_body defined in http://google3/apps/dynamite/v1/frontend/api/message.proto;l=104;rcl=513400736.", + "description": "Current usage: - DescriptionType=KEYWORD_MATCH is populated in this field to return metadata for keyword matches, which clients can use to highlight matched segments in a message's text_body. - DescriptionType=SNIPPET can be used to return metadata describing how a message's text_body can be broken up to provide a snippet.", "items": { "$ref": "AppsDynamiteSharedTextSegmentsWithDescription" }, @@ -4062,11 +4112,13 @@ "descriptionType": { "enum": [ "DESCRIPTION_TYPE_UNSPECIFIED", - "KEYWORD_MATCH" + "KEYWORD_MATCH", + "SNIPPET" ], "enumDescriptions": [ "", - "Indicates the text segments contain matched keywords. Client can highlight them in search results page." + "Indicates the text segments contain matched keywords. Client can highlight them in search results page.", + "Indicates the text segments represent parts of the snippeted text. Clients can display just these in SRP as shortened message. Multiple TextSegments with this DescriptionType are returned to denote disjointed snippets i.e. \"a long test message\" -\u003e \"a ... message\"" ], "type": "string" }, @@ -5875,6 +5927,20 @@ "type": "string" }, "type": "array" + }, + "uninstallCapability": { + "description": "Determine how uninstall is permitted for this app.", + "enum": [ + "UNSPECIFIED_UNINSTALL_CAPABILITY", + "ALWAYS_ALLOWED", + "NEVER_ALLOWED" + ], + "enumDescriptions": [ + "Defaults to ALWAYS_ALLOWED.", + "", + "" + ], + "type": "string" } }, "type": "object" @@ -6741,7 +6807,7 @@ "type": "object" }, "Color": { - "description": "Represents a color in the RGBA color space. This representation is designed for simplicity of conversion to/from color representations in various languages over compactness. For example, the fields of this representation can be trivially provided to the constructor of `java.awt.Color` in Java; it can also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha` method in iOS; and, with just a little work, it can be easily formatted into a CSS `rgba()` string in JavaScript. This reference page doesn't carry information about the absolute color space that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default, applications should assume the sRGB color space. When color equality needs to be decided, implementations, unless documented otherwise, treat two colors as equal if all their red, green, blue, and alpha values each differ by at most 1e-5. Example (Java): import com.google.type.Color; // ... public static java.awt.Color fromProto(Color protocolor) { float alpha = protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); } public static Color toProto(java.awt.Color color) { float red = (float) color.getRed(); float green = (float) color.getGreen(); float blue = (float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255) { result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .build()); } return resultBuilder.build(); } // ... Example (iOS / Obj-C): // ... static UIColor* fromProto(Color* protocolor) { float red = [protocolor red]; float green = [protocolor green]; float blue = [protocolor blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper != nil) { alpha = [alpha_wrapper value]; } return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; } static Color* toProto(UIColor* color) { CGFloat red, green, blue, alpha; if (![color getRed:\u0026red green:\u0026green blue:\u0026blue alpha:\u0026alpha]) { return nil; } Color* result = [[Color alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha \u003c= 0.9999) { [result setAlpha:floatWrapperWithValue(alpha)]; } [result autorelease]; return result; } // ... Example (JavaScript): // ... var protoToCssColor = function(rgb_color) { var redFrac = rgb_color.red || 0.0; var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0; var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255); var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) { return rgbToCssColor(red, green, blue); } var alphaFrac = rgb_color.alpha.value || 0.0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); }; var rgbToCssColor = function(red, green, blue) { var rgbNumber = new Number((red \u003c\u003c 16) | (green \u003c\u003c 8) | blue); var hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var resultBuilder = ['#']; for (var i = 0; i \u003c missingZeros; i++) { resultBuilder.push('0'); } resultBuilder.push(hexString); return resultBuilder.join(''); }; // ...", + "description": "Represents a color in the RGBA color space. This representation is designed for simplicity of conversion to and from color representations in various languages over compactness. For example, the fields of this representation can be trivially provided to the constructor of `java.awt.Color` in Java; it can also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha` method in iOS; and, with just a little work, it can be easily formatted into a CSS `rgba()` string in JavaScript. This reference page does not have information about the absolute color space that should be used to interpret the RGB value—for example, sRGB, Adobe RGB, DCI-P3, and BT.2020. By default, applications should assume the sRGB color space. When color equality needs to be decided, implementations, unless documented otherwise, treat two colors as equal if all their red, green, blue, and alpha values each differ by at most `1e-5`. Example (Java): import com.google.type.Color; // ... public static java.awt.Color fromProto(Color protocolor) { float alpha = protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); } public static Color toProto(java.awt.Color color) { float red = (float) color.getRed(); float green = (float) color.getGreen(); float blue = (float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255) { result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .build()); } return resultBuilder.build(); } // ... Example (iOS / Obj-C): // ... static UIColor* fromProto(Color* protocolor) { float red = [protocolor red]; float green = [protocolor green]; float blue = [protocolor blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper != nil) { alpha = [alpha_wrapper value]; } return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; } static Color* toProto(UIColor* color) { CGFloat red, green, blue, alpha; if (![color getRed:\u0026red green:\u0026green blue:\u0026blue alpha:\u0026alpha]) { return nil; } Color* result = [[Color alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha \u003c= 0.9999) { [result setAlpha:floatWrapperWithValue(alpha)]; } [result autorelease]; return result; } // ... Example (JavaScript): // ... var protoToCssColor = function(rgb_color) { var redFrac = rgb_color.red || 0.0; var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0; var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255); var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) { return rgbToCssColor(red, green, blue); } var alphaFrac = rgb_color.alpha.value || 0.0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); }; var rgbToCssColor = function(red, green, blue) { var rgbNumber = new Number((red \u003c\u003c 16) | (green \u003c\u003c 8) | blue); var hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var resultBuilder = ['#']; for (var i = 0; i \u003c missingZeros; i++) { resultBuilder.push('0'); } resultBuilder.push(hexString); return resultBuilder.join(''); }; // ...", "id": "Color", "properties": { "alpha": { @@ -9838,7 +9904,7 @@ "type": "object" }, "GoogleChatV1ContextualAddOnMarkupCard": { - "description": "A card is a UI element that can contain UI widgets such as texts, images.", + "description": "A card is a UI element that can contain UI widgets such as text and images.", "id": "GoogleChatV1ContextualAddOnMarkupCard", "properties": { "cardActions": { @@ -9885,7 +9951,7 @@ "id": "GoogleChatV1ContextualAddOnMarkupCardCardHeader", "properties": { "imageStyle": { - "description": "The image's type (e.g. square border or circular border).", + "description": "The image's type (for example, square border or circular border).", "enum": [ "IMAGE_STYLE_UNSPECIFIED", "IMAGE", @@ -9907,22 +9973,22 @@ "type": "string" }, "title": { - "description": "The title must be specified. The header has a fixed height: if both a title and subtitle is specified, each will take up 1 line. If only the title is specified, it will take up both lines.", + "description": "The title must be specified. The header has a fixed height: if both a title and subtitle is specified, each takes up one line. If only the title is specified, it takes up both lines.", "type": "string" } }, "type": "object" }, "GoogleChatV1ContextualAddOnMarkupCardSection": { - "description": "A section contains a collection of widgets that are rendered (vertically) in the order that they are specified. Across all platforms, cards have a narrow fixed width, so there is currently no need for layout properties (e.g. float).", + "description": "A section contains a collection of widgets that are rendered (vertically) in the order that they are specified. Across all platforms, cards have a narrow fixed width, so there's currently no need for layout properties (for example, float).", "id": "GoogleChatV1ContextualAddOnMarkupCardSection", "properties": { "header": { - "description": "The header of the section. Formatted text is supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons.", + "description": "The header of the section. Formatted text is supported. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/api/guides/message-formats/cards#card_text_formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).", "type": "string" }, "widgets": { - "description": "A section must contain at least 1 widget.", + "description": "A section must contain at least one widget.", "items": { "$ref": "GoogleChatV1WidgetMarkup" }, @@ -9932,7 +9998,7 @@ "type": "object" }, "GoogleChatV1WidgetMarkup": { - "description": "A widget is a UI element that presents texts, images, etc.", + "description": "A widget is a UI element that presents text and images.", "id": "GoogleChatV1WidgetMarkup", "properties": { "buttons": { @@ -9963,21 +10029,21 @@ "properties": { "imageButton": { "$ref": "GoogleChatV1WidgetMarkupImageButton", - "description": "A button with image and onclick action." + "description": "A button with image and `onclick` action." }, "textButton": { "$ref": "GoogleChatV1WidgetMarkupTextButton", - "description": "A button with text and onclick action." + "description": "A button with text and `onclick` action." } }, "type": "object" }, "GoogleChatV1WidgetMarkupFormAction": { - "description": "A form action describes the behavior when the form is submitted. For example, an Apps Script can be invoked to handle the form.", + "description": "A form action describes the behavior when the form is submitted. For example, you can invoke Apps Script to handle the form.", "id": "GoogleChatV1WidgetMarkupFormAction", "properties": { "actionMethodName": { - "description": "The method name is used to identify which part of the form triggered the form submission. This information is echoed back to the Chat app as part of the card click event. The same method name can be used for several elements that trigger a common behavior if desired.", + "description": "The method name is used to identify which part of the form triggered the form submission. This information is echoed back to the Chat app as part of the card click event. You can use the same method name for several elements that trigger a common behavior.", "type": "string" }, "parameters": { @@ -9991,7 +10057,7 @@ "type": "object" }, "GoogleChatV1WidgetMarkupFormActionActionParameter": { - "description": "List of string parameters to supply when the action method is invoked. For example, consider three snooze buttons: snooze now, snooze 1 day, snooze next week. You might use action method = snooze(), passing the snooze type and snooze time in the list of string parameters.", + "description": "List of string parameters to supply when the action method is invoked. For example, consider three snooze buttons: snooze now, snooze one day, snooze next week. You might use `action method = snooze()`, passing the snooze type and snooze time in the list of string parameters.", "id": "GoogleChatV1WidgetMarkupFormActionActionParameter", "properties": { "key": { @@ -10006,11 +10072,11 @@ "type": "object" }, "GoogleChatV1WidgetMarkupImage": { - "description": "An image that is specified by a URL and can have an onclick action.", + "description": "An image that's specified by a URL and can have an `onclick` action.", "id": "GoogleChatV1WidgetMarkupImage", "properties": { "aspectRatio": { - "description": "The aspect ratio of this image (width/height). This field allows clients to reserve the right height for the image while waiting for it to load. It's not meant to override the native aspect ratio of the image. If unset, the server fills it by prefetching the image.", + "description": "The aspect ratio of this image (width and height). This field lets you reserve the right height for the image while waiting for it to load. It's not meant to override the built-in aspect ratio of the image. If unset, the server fills it by prefetching the image.", "format": "double", "type": "number" }, @@ -10020,17 +10086,17 @@ }, "onClick": { "$ref": "GoogleChatV1WidgetMarkupOnClick", - "description": "The onclick action." + "description": "The `onclick` action." } }, "type": "object" }, "GoogleChatV1WidgetMarkupImageButton": { - "description": "An image button with an onclick action.", + "description": "An image button with an `onclick` action.", "id": "GoogleChatV1WidgetMarkupImageButton", "properties": { "icon": { - "description": "The icon specified by an enum that indices to an icon provided by Chat API.", + "description": "The icon specified by an `enum` that indices to an icon provided by Chat API.", "enum": [ "ICON_UNSPECIFIED", "AIRPLANE", @@ -10104,22 +10170,22 @@ "type": "string" }, "name": { - "description": "The name of this image_button which will be used for accessibility. Default value will be provided if developers don't specify.", + "description": "The name of this `image_button` that's used for accessibility. Default value is provided if this name isn't specified.", "type": "string" }, "onClick": { "$ref": "GoogleChatV1WidgetMarkupOnClick", - "description": "The onclick action." + "description": "The `onclick` action." } }, "type": "object" }, "GoogleChatV1WidgetMarkupKeyValue": { - "description": "A UI element contains a key (label) and a value (content). And this element may also contain some actions such as onclick button.", + "description": "A UI element contains a key (label) and a value (content). This element can also contain some actions such as `onclick` button.", "id": "GoogleChatV1WidgetMarkupKeyValue", "properties": { "bottomLabel": { - "description": "The text of the bottom label. Formatted text supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons.", + "description": "The text of the bottom label. Formatted text supported. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/api/guides/message-formats/cards#card_text_formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).", "type": "string" }, "button": { @@ -10127,7 +10193,7 @@ "description": "A button that can be clicked to trigger an action." }, "content": { - "description": "The text of the content. Formatted text supported and always required. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons.", + "description": "The text of the content. Formatted text supported and always required. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/api/guides/message-formats/cards#card_text_formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).", "type": "string" }, "contentMultiline": { @@ -10135,7 +10201,7 @@ "type": "boolean" }, "icon": { - "description": "An enum value that will be replaced by the Chat API with the corresponding icon image.", + "description": "An enum value that's replaced by the Chat API with the corresponding icon image.", "enum": [ "ICON_UNSPECIFIED", "AIRPLANE", @@ -10210,26 +10276,26 @@ }, "onClick": { "$ref": "GoogleChatV1WidgetMarkupOnClick", - "description": "The onclick action. Only the top label, bottom label and content region are clickable." + "description": "The `onclick` action. Only the top label, bottom label, and content region are clickable." }, "topLabel": { - "description": "The text of the top label. Formatted text supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons.", + "description": "The text of the top label. Formatted text supported. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/api/guides/message-formats/cards#card_text_formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).", "type": "string" } }, "type": "object" }, "GoogleChatV1WidgetMarkupOnClick": { - "description": "An onclick action (e.g. open a link).", + "description": "An `onclick` action (for example, open a link).", "id": "GoogleChatV1WidgetMarkupOnClick", "properties": { "action": { "$ref": "GoogleChatV1WidgetMarkupFormAction", - "description": "A form action will be triggered by this onclick if specified." + "description": "A form action is triggered by this `onclick` action if specified." }, "openLink": { "$ref": "GoogleChatV1WidgetMarkupOpenLink", - "description": "This onclick triggers an open link action if specified." + "description": "This `onclick` action triggers an open link action if specified." } }, "type": "object" @@ -10246,12 +10312,12 @@ "type": "object" }, "GoogleChatV1WidgetMarkupTextButton": { - "description": "A button with text and onclick action.", + "description": "A button with text and `onclick` action.", "id": "GoogleChatV1WidgetMarkupTextButton", "properties": { "onClick": { "$ref": "GoogleChatV1WidgetMarkupOnClick", - "description": "The onclick action of the button." + "description": "The `onclick` action of the button." }, "text": { "description": "The text of the button.", @@ -10261,7 +10327,7 @@ "type": "object" }, "GoogleChatV1WidgetMarkupTextParagraph": { - "description": "A paragraph of text. Formatted text supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons.", + "description": "A paragraph of text. Formatted text supported. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/api/guides/message-formats/cards#card_text_formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).", "id": "GoogleChatV1WidgetMarkupTextParagraph", "properties": { "text": { @@ -13033,8 +13099,8 @@ "Non-member -\u003e Can join. Multiple groups and users.", "Can join -\u003e Member. One user.", "Non-member -\u003e Member. Multiple users.", - "Can join -\u003e Non-member. One group or user.", - "Member -\u003e Can join. One user.", + "Member or can join -\u003e Non-member. One group or user.", + "Before April 2023, a user transitioned from joined", "Bot added to the room.", "Bot removed from the room.", "This signifies the user is kicked because the user's OTR policy is conflicted with the room history settings. Joined -\u003e Non-member. One user.", @@ -14803,6 +14869,17 @@ }, "type": "object" }, + "QueryActivity": { + "description": "Details about a user's query activity.", + "id": "QueryActivity", + "properties": { + "query": { + "description": "User input query to be logged/removed.", + "type": "string" + } + }, + "type": "object" + }, "QueryCountByStatus": { "id": "QueryCountByStatus", "properties": { @@ -15347,6 +15424,27 @@ }, "type": "object" }, + "RemoveActivityRequest": { + "description": "Remove Logged Activity Request.", + "id": "RemoveActivityRequest", + "properties": { + "requestOptions": { + "$ref": "RequestOptions", + "description": "Request options, such as the search application and clientId." + }, + "userActivity": { + "$ref": "UserActivity", + "description": "User Activity containing the data to be deleted." + } + }, + "type": "object" + }, + "RemoveActivityResponse": { + "description": "Remove Logged Activity Response. will return an empty response for now. Will be revisited in later phases.", + "id": "RemoveActivityResponse", + "properties": {}, + "type": "object" + }, "RenameEvent": { "id": "RenameEvent", "properties": { @@ -16870,6 +16968,20 @@ "suggestedQuery": { "description": "The suggested spelling of the query.", "type": "string" + }, + "suggestionType": { + "description": "Suggestion triggered for the current query.", + "enum": [ + "SUGGESTION_TYPE_UNSPECIFIED", + "NON_EMPTY_RESULTS_SPELL_SUGGESTION", + "ZERO_RESULTS_FULL_PAGE_REPLACEMENT" + ], + "enumDescriptions": [ + "Default spell check type", + "Spell suggestion without any results changed. The results are still shown for the original query (which has non zero / results) with a suggestion for spelling that would have results.", + "Spell suggestion triggered when original query has no results. When the original query has no results, and spell suggestion has results we trigger results for the spell corrected query." + ], + "type": "string" } }, "type": "object" @@ -18078,6 +18190,10 @@ "$ref": "AppsDynamiteSharedDlpMetricsMetadata", "description": "The metrics metadata of the Data Loss Prevention attachment scan." }, + "internalOnlyComponentSearchInfo": { + "$ref": "AppsDynamiteSharedMessageComponentSearchInfo", + "description": "Message component search metadata for this upload_metadata (currently used for message highlighting and snippeting). For use by Search backend only; clients should get upload_metadata search info from Annotation.component_search_info. This field is necessary because backend Message keeps UploadMetadata in a separate field. Upon converting from backend message to frontend message, this field will be copied to Annotation.component_search_info while the corresponding UploadMetadata is converted into an Annotation." + }, "latestVirusScanTimestamp": { "description": "The timestamp of the most recent virus scan completed (in microseconds).", "format": "int64", @@ -18299,6 +18415,17 @@ }, "type": "object" }, + "UserActivity": { + "description": "User's single or bulk query activity. This can be a logging query or deletion query.", + "id": "UserActivity", + "properties": { + "queryActivity": { + "$ref": "QueryActivity", + "description": "Contains data which needs to be logged/removed." + } + }, + "type": "object" + }, "UserDisplayInfo": { "description": "Resource for displaying user info", "id": "UserDisplayInfo", diff --git a/cloudsearch/v1/cloudsearch-gen.go b/cloudsearch/v1/cloudsearch-gen.go index abb1e79bd5f..ca3f6f0e1bb 100644 --- a/cloudsearch/v1/cloudsearch-gen.go +++ b/cloudsearch/v1/cloudsearch-gen.go @@ -1633,7 +1633,7 @@ func (s *AppsDynamiteSharedAvatarInfo) MarshalJSON() ([]byte, error) { } // AppsDynamiteSharedBackendUploadMetadata: Metadata used only in -// Dynamite backend for uploaded attachments. +// Dynamite backend for uploaded attachments. NEXT ID: 20 type AppsDynamiteSharedBackendUploadMetadata struct { // BlobPath: Blobstore path for the uploaded attachment BlobPath string `json:"blobPath,omitempty"` @@ -1742,8 +1742,7 @@ type AppsDynamiteSharedBackendUploadMetadata struct { // uploaded. DlpScanSummary *DlpScanSummary `json:"dlpScanSummary,omitempty"` - // Experiment: The list of experiments this video is enabled for Next - // tag: 19 + // Experiment: The list of experiments this video is enabled for // // Possible values: // "UNKNOWN_EXPERIMENT" @@ -1757,6 +1756,8 @@ type AppsDynamiteSharedBackendUploadMetadata struct { // been transcoded on the client side IsClientSideTranscodedVideo bool `json:"isClientSideTranscodedVideo,omitempty"` + MigratedFromHangoutsMetadata *AppsDynamiteSharedBackendUploadMetadataMigratedFromHangoutsMetadata `json:"migratedFromHangoutsMetadata,omitempty"` + // OriginalDimension: Original dimension of the content. Only set for // image attachments. OriginalDimension *AppsDynamiteSharedDimension `json:"originalDimension,omitempty"` @@ -1824,6 +1825,64 @@ func (s *AppsDynamiteSharedBackendUploadMetadata) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// AppsDynamiteSharedBackendUploadMetadataMigratedFromHangoutsMetadata: +// Metadata for attachments migrated from Hangouts +type AppsDynamiteSharedBackendUploadMetadataMigratedFromHangoutsMetadata struct { + PhotoId *AppsDynamiteSharedBackendUploadMetadataMigratedFromHangoutsMetadataPhotoId `json:"photoId,omitempty"` + + UpdateTimestampUsec int64 `json:"updateTimestampUsec,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "PhotoId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "PhotoId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AppsDynamiteSharedBackendUploadMetadataMigratedFromHangoutsMetadata) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteSharedBackendUploadMetadataMigratedFromHangoutsMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type AppsDynamiteSharedBackendUploadMetadataMigratedFromHangoutsMetadataPhotoId struct { + PhotoId int64 `json:"photoId,omitempty,string"` + + UserId int64 `json:"userId,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "PhotoId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "PhotoId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AppsDynamiteSharedBackendUploadMetadataMigratedFromHangoutsMetadataPhotoId) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteSharedBackendUploadMetadataMigratedFromHangoutsMetadataPhotoId + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type AppsDynamiteSharedCalendarEventAnnotationData struct { CalendarEvent *AppsDynamiteSharedCalendarEventAnnotationDataCalendarEvent `json:"calendarEvent,omitempty"` @@ -2941,9 +3000,12 @@ func (s *AppsDynamiteSharedMessageIntegrationPayload) MarshalJSON() ([]byte, err // snipetting. In future, we can use this proto to return more search // specific data attached to a message. type AppsDynamiteSharedMessageSearchInfo struct { - // MatchedSegmentsInTextBody: An example use case: clients can use this - // field to highlight matched segments in message text_body defined in - // http://google3/apps/dynamite/v1/frontend/api/message.proto;l=104;rcl=513400736. + // MatchedSegmentsInTextBody: Current usage: - + // DescriptionType=KEYWORD_MATCH is populated in this field to return + // metadata for keyword matches, which clients can use to highlight + // matched segments in a message's text_body. - DescriptionType=SNIPPET + // can be used to return metadata describing how a message's text_body + // can be broken up to provide a snippet. MatchedSegmentsInTextBody []*AppsDynamiteSharedTextSegmentsWithDescription `json:"matchedSegmentsInTextBody,omitempty"` // ForceSendFields is a list of field names (e.g. @@ -3495,6 +3557,11 @@ type AppsDynamiteSharedTextSegmentsWithDescription struct { // "DESCRIPTION_TYPE_UNSPECIFIED" // "KEYWORD_MATCH" - Indicates the text segments contain matched // keywords. Client can highlight them in search results page. + // "SNIPPET" - Indicates the text segments represent parts of the + // snippeted text. Clients can display just these in SRP as shortened + // message. Multiple TextSegments with this DescriptionType are returned + // to denote disjointed snippets i.e. "a long test message" -> "a ... + // message" DescriptionType string `json:"descriptionType,omitempty"` TextSegment []*AppsDynamiteSharedTextSegment `json:"textSegment,omitempty"` @@ -6348,6 +6415,15 @@ type BotInfo struct { // "CAN_ADD_TO_HUMAN_DM" SupportedUses []string `json:"supportedUses,omitempty"` + // UninstallCapability: Determine how uninstall is permitted for this + // app. + // + // Possible values: + // "UNSPECIFIED_UNINSTALL_CAPABILITY" - Defaults to ALWAYS_ALLOWED. + // "ALWAYS_ALLOWED" + // "NEVER_ALLOWED" + UninstallCapability string `json:"uninstallCapability,omitempty"` + // ForceSendFields is a list of field names (e.g. "AppAllowlistStatus") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -7673,23 +7749,23 @@ func (s *Collaboration) MarshalJSON() ([]byte, error) { } // Color: Represents a color in the RGBA color space. This -// representation is designed for simplicity of conversion to/from color -// representations in various languages over compactness. For example, -// the fields of this representation can be trivially provided to the -// constructor of `java.awt.Color` in Java; it can also be trivially -// provided to UIColor's `+colorWithRed:green:blue:alpha` method in iOS; -// and, with just a little work, it can be easily formatted into a CSS -// `rgba()` string in JavaScript. This reference page doesn't carry -// information about the absolute color space that should be used to -// interpret the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, -// etc.). By default, applications should assume the sRGB color space. -// When color equality needs to be decided, implementations, unless -// documented otherwise, treat two colors as equal if all their red, -// green, blue, and alpha values each differ by at most 1e-5. Example -// (Java): import com.google.type.Color; // ... public static -// java.awt.Color fromProto(Color protocolor) { float alpha = -// protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; -// return new java.awt.Color( protocolor.getRed(), +// representation is designed for simplicity of conversion to and from +// color representations in various languages over compactness. For +// example, the fields of this representation can be trivially provided +// to the constructor of `java.awt.Color` in Java; it can also be +// trivially provided to UIColor's `+colorWithRed:green:blue:alpha` +// method in iOS; and, with just a little work, it can be easily +// formatted into a CSS `rgba()` string in JavaScript. This reference +// page does not have information about the absolute color space that +// should be used to interpret the RGB value—for example, sRGB, Adobe +// RGB, DCI-P3, and BT.2020. By default, applications should assume the +// sRGB color space. When color equality needs to be decided, +// implementations, unless documented otherwise, treat two colors as +// equal if all their red, green, blue, and alpha values each differ by +// at most `1e-5`. Example (Java): import com.google.type.Color; // ... +// public static java.awt.Color fromProto(Color protocolor) { float +// alpha = protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : +// 1.0; return new java.awt.Color( protocolor.getRed(), // protocolor.getGreen(), protocolor.getBlue(), alpha); } public static // Color toProto(java.awt.Color color) { float red = (float) // color.getRed(); float green = (float) color.getGreen(); float blue = @@ -12306,7 +12382,7 @@ func (s *GoogleChatV1ContextualAddOnMarkup) MarshalJSON() ([]byte, error) { } // GoogleChatV1ContextualAddOnMarkupCard: A card is a UI element that -// can contain UI widgets such as texts, images. +// can contain UI widgets such as text and images. type GoogleChatV1ContextualAddOnMarkupCard struct { // CardActions: The actions of this card. CardActions []*GoogleChatV1ContextualAddOnMarkupCardCardAction `json:"cardActions,omitempty"` @@ -12379,7 +12455,8 @@ func (s *GoogleChatV1ContextualAddOnMarkupCardCardAction) MarshalJSON() ([]byte, } type GoogleChatV1ContextualAddOnMarkupCardCardHeader struct { - // ImageStyle: The image's type (e.g. square border or circular border). + // ImageStyle: The image's type (for example, square border or circular + // border). // // Possible values: // "IMAGE_STYLE_UNSPECIFIED" @@ -12394,8 +12471,8 @@ type GoogleChatV1ContextualAddOnMarkupCardCardHeader struct { Subtitle string `json:"subtitle,omitempty"` // Title: The title must be specified. The header has a fixed height: if - // both a title and subtitle is specified, each will take up 1 line. If - // only the title is specified, it will take up both lines. + // both a title and subtitle is specified, each takes up one line. If + // only the title is specified, it takes up both lines. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "ImageStyle") to @@ -12424,15 +12501,18 @@ func (s *GoogleChatV1ContextualAddOnMarkupCardCardHeader) MarshalJSON() ([]byte, // GoogleChatV1ContextualAddOnMarkupCardSection: A section contains a // collection of widgets that are rendered (vertically) in the order // that they are specified. Across all platforms, cards have a narrow -// fixed width, so there is currently no need for layout properties -// (e.g. float). +// fixed width, so there's currently no need for layout properties (for +// example, float). type GoogleChatV1ContextualAddOnMarkupCardSection struct { // Header: The header of the section. Formatted text is supported. For // more information about formatting text, see Formatting text in Google - // Chat apps and Formatting text in Google Workspace Add-ons. + // Chat apps + // (https://developers.google.com/chat/api/guides/message-formats/cards#card_text_formatting) + // and Formatting text in Google Workspace Add-ons + // (https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). Header string `json:"header,omitempty"` - // Widgets: A section must contain at least 1 widget. + // Widgets: A section must contain at least one widget. Widgets []*GoogleChatV1WidgetMarkup `json:"widgets,omitempty"` // ForceSendFields is a list of field names (e.g. "Header") to @@ -12458,8 +12538,8 @@ func (s *GoogleChatV1ContextualAddOnMarkupCardSection) MarshalJSON() ([]byte, er return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleChatV1WidgetMarkup: A widget is a UI element that presents -// texts, images, etc. +// GoogleChatV1WidgetMarkup: A widget is a UI element that presents text +// and images. type GoogleChatV1WidgetMarkup struct { // Buttons: A list of buttons. Buttons is also `oneof data` and only one // of these fields should be set. @@ -12500,10 +12580,10 @@ func (s *GoogleChatV1WidgetMarkup) MarshalJSON() ([]byte, error) { // GoogleChatV1WidgetMarkupButton: A button. Can be a text button or an // image button. type GoogleChatV1WidgetMarkupButton struct { - // ImageButton: A button with image and onclick action. + // ImageButton: A button with image and `onclick` action. ImageButton *GoogleChatV1WidgetMarkupImageButton `json:"imageButton,omitempty"` - // TextButton: A button with text and onclick action. + // TextButton: A button with text and `onclick` action. TextButton *GoogleChatV1WidgetMarkupTextButton `json:"textButton,omitempty"` // ForceSendFields is a list of field names (e.g. "ImageButton") to @@ -12530,14 +12610,13 @@ func (s *GoogleChatV1WidgetMarkupButton) MarshalJSON() ([]byte, error) { } // GoogleChatV1WidgetMarkupFormAction: A form action describes the -// behavior when the form is submitted. For example, an Apps Script can -// be invoked to handle the form. +// behavior when the form is submitted. For example, you can invoke Apps +// Script to handle the form. type GoogleChatV1WidgetMarkupFormAction struct { // ActionMethodName: The method name is used to identify which part of // the form triggered the form submission. This information is echoed - // back to the Chat app as part of the card click event. The same method - // name can be used for several elements that trigger a common behavior - // if desired. + // back to the Chat app as part of the card click event. You can use the + // same method name for several elements that trigger a common behavior. ActionMethodName string `json:"actionMethodName,omitempty"` // Parameters: List of action parameters. @@ -12569,9 +12648,9 @@ func (s *GoogleChatV1WidgetMarkupFormAction) MarshalJSON() ([]byte, error) { // GoogleChatV1WidgetMarkupFormActionActionParameter: List of string // parameters to supply when the action method is invoked. For example, -// consider three snooze buttons: snooze now, snooze 1 day, snooze next -// week. You might use action method = snooze(), passing the snooze type -// and snooze time in the list of string parameters. +// consider three snooze buttons: snooze now, snooze one day, snooze +// next week. You might use `action method = snooze()`, passing the +// snooze type and snooze time in the list of string parameters. type GoogleChatV1WidgetMarkupFormActionActionParameter struct { // Key: The name of the parameter for the action script. Key string `json:"key,omitempty"` @@ -12602,20 +12681,19 @@ func (s *GoogleChatV1WidgetMarkupFormActionActionParameter) MarshalJSON() ([]byt return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleChatV1WidgetMarkupImage: An image that is specified by a URL -// and can have an onclick action. +// GoogleChatV1WidgetMarkupImage: An image that's specified by a URL and +// can have an `onclick` action. type GoogleChatV1WidgetMarkupImage struct { - // AspectRatio: The aspect ratio of this image (width/height). This - // field allows clients to reserve the right height for the image while - // waiting for it to load. It's not meant to override the native aspect - // ratio of the image. If unset, the server fills it by prefetching the - // image. + // AspectRatio: The aspect ratio of this image (width and height). This + // field lets you reserve the right height for the image while waiting + // for it to load. It's not meant to override the built-in aspect ratio + // of the image. If unset, the server fills it by prefetching the image. AspectRatio float64 `json:"aspectRatio,omitempty"` // ImageUrl: The URL of the image. ImageUrl string `json:"imageUrl,omitempty"` - // OnClick: The onclick action. + // OnClick: The `onclick` action. OnClick *GoogleChatV1WidgetMarkupOnClick `json:"onClick,omitempty"` // ForceSendFields is a list of field names (e.g. "AspectRatio") to @@ -12655,11 +12733,11 @@ func (s *GoogleChatV1WidgetMarkupImage) UnmarshalJSON(data []byte) error { return nil } -// GoogleChatV1WidgetMarkupImageButton: An image button with an onclick -// action. +// GoogleChatV1WidgetMarkupImageButton: An image button with an +// `onclick` action. type GoogleChatV1WidgetMarkupImageButton struct { - // Icon: The icon specified by an enum that indices to an icon provided - // by Chat API. + // Icon: The icon specified by an `enum` that indices to an icon + // provided by Chat API. // // Possible values: // "ICON_UNSPECIFIED" @@ -12698,12 +12776,11 @@ type GoogleChatV1WidgetMarkupImageButton struct { // IconUrl: The icon specified by a URL. IconUrl string `json:"iconUrl,omitempty"` - // Name: The name of this image_button which will be used for - // accessibility. Default value will be provided if developers don't - // specify. + // Name: The name of this `image_button` that's used for accessibility. + // Default value is provided if this name isn't specified. Name string `json:"name,omitempty"` - // OnClick: The onclick action. + // OnClick: The `onclick` action. OnClick *GoogleChatV1WidgetMarkupOnClick `json:"onClick,omitempty"` // ForceSendFields is a list of field names (e.g. "Icon") to @@ -12730,12 +12807,15 @@ func (s *GoogleChatV1WidgetMarkupImageButton) MarshalJSON() ([]byte, error) { } // GoogleChatV1WidgetMarkupKeyValue: A UI element contains a key (label) -// and a value (content). And this element may also contain some actions -// such as onclick button. +// and a value (content). This element can also contain some actions +// such as `onclick` button. type GoogleChatV1WidgetMarkupKeyValue struct { // BottomLabel: The text of the bottom label. Formatted text supported. // For more information about formatting text, see Formatting text in - // Google Chat apps and Formatting text in Google Workspace Add-ons. + // Google Chat apps + // (https://developers.google.com/chat/api/guides/message-formats/cards#card_text_formatting) + // and Formatting text in Google Workspace Add-ons + // (https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). BottomLabel string `json:"bottomLabel,omitempty"` // Button: A button that can be clicked to trigger an action. @@ -12743,14 +12823,16 @@ type GoogleChatV1WidgetMarkupKeyValue struct { // Content: The text of the content. Formatted text supported and always // required. For more information about formatting text, see Formatting - // text in Google Chat apps and Formatting text in Google Workspace - // Add-ons. + // text in Google Chat apps + // (https://developers.google.com/chat/api/guides/message-formats/cards#card_text_formatting) + // and Formatting text in Google Workspace Add-ons + // (https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). Content string `json:"content,omitempty"` // ContentMultiline: If the content should be multiline. ContentMultiline bool `json:"contentMultiline,omitempty"` - // Icon: An enum value that will be replaced by the Chat API with the + // Icon: An enum value that's replaced by the Chat API with the // corresponding icon image. // // Possible values: @@ -12790,13 +12872,16 @@ type GoogleChatV1WidgetMarkupKeyValue struct { // IconUrl: The icon specified by a URL. IconUrl string `json:"iconUrl,omitempty"` - // OnClick: The onclick action. Only the top label, bottom label and + // OnClick: The `onclick` action. Only the top label, bottom label, and // content region are clickable. OnClick *GoogleChatV1WidgetMarkupOnClick `json:"onClick,omitempty"` // TopLabel: The text of the top label. Formatted text supported. For // more information about formatting text, see Formatting text in Google - // Chat apps and Formatting text in Google Workspace Add-ons. + // Chat apps + // (https://developers.google.com/chat/api/guides/message-formats/cards#card_text_formatting) + // and Formatting text in Google Workspace Add-ons + // (https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). TopLabel string `json:"topLabel,omitempty"` // ForceSendFields is a list of field names (e.g. "BottomLabel") to @@ -12822,13 +12907,15 @@ func (s *GoogleChatV1WidgetMarkupKeyValue) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleChatV1WidgetMarkupOnClick: An onclick action (e.g. open a -// link). +// GoogleChatV1WidgetMarkupOnClick: An `onclick` action (for example, +// open a link). type GoogleChatV1WidgetMarkupOnClick struct { - // Action: A form action will be triggered by this onclick if specified. + // Action: A form action is triggered by this `onclick` action if + // specified. Action *GoogleChatV1WidgetMarkupFormAction `json:"action,omitempty"` - // OpenLink: This onclick triggers an open link action if specified. + // OpenLink: This `onclick` action triggers an open link action if + // specified. OpenLink *GoogleChatV1WidgetMarkupOpenLink `json:"openLink,omitempty"` // ForceSendFields is a list of field names (e.g. "Action") to @@ -12882,10 +12969,10 @@ func (s *GoogleChatV1WidgetMarkupOpenLink) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleChatV1WidgetMarkupTextButton: A button with text and onclick +// GoogleChatV1WidgetMarkupTextButton: A button with text and `onclick` // action. type GoogleChatV1WidgetMarkupTextButton struct { - // OnClick: The onclick action of the button. + // OnClick: The `onclick` action of the button. OnClick *GoogleChatV1WidgetMarkupOnClick `json:"onClick,omitempty"` // Text: The text of the button. @@ -12916,8 +13003,10 @@ func (s *GoogleChatV1WidgetMarkupTextButton) MarshalJSON() ([]byte, error) { // GoogleChatV1WidgetMarkupTextParagraph: A paragraph of text. Formatted // text supported. For more information about formatting text, see -// Formatting text in Google Chat apps and Formatting text in Google -// Workspace Add-ons. +// Formatting text in Google Chat apps +// (https://developers.google.com/chat/api/guides/message-formats/cards#card_text_formatting) +// and Formatting text in Google Workspace Add-ons +// (https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). type GoogleChatV1WidgetMarkupTextParagraph struct { Text string `json:"text,omitempty"` @@ -16809,8 +16898,8 @@ type MembershipChangedMetadata struct { // "INVITED" - Non-member -> Can join. Multiple groups and users. // "JOINED" - Can join -> Member. One user. // "ADDED" - Non-member -> Member. Multiple users. - // "REMOVED" - Can join -> Non-member. One group or user. - // "LEFT" - Member -> Can join. One user. + // "REMOVED" - Member or can join -> Non-member. One group or user. + // "LEFT" - Before April 2023, a user transitioned from joined // "BOT_ADDED" - Bot added to the room. // "BOT_REMOVED" - Bot removed from the room. // "KICKED_DUE_TO_OTR_CONFLICT" - This signifies the user is kicked @@ -19511,6 +19600,34 @@ func (s *PushItemRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// QueryActivity: Details about a user's query activity. +type QueryActivity struct { + // Query: User input query to be logged/removed. + Query string `json:"query,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Query") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Query") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *QueryActivity) MarshalJSON() ([]byte, error) { + type NoMethod QueryActivity + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type QueryCountByStatus struct { Count int64 `json:"count,omitempty,string"` @@ -20387,6 +20504,47 @@ func (s *References) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// RemoveActivityRequest: Remove Logged Activity Request. +type RemoveActivityRequest struct { + // RequestOptions: Request options, such as the search application and + // clientId. + RequestOptions *RequestOptions `json:"requestOptions,omitempty"` + + // UserActivity: User Activity containing the data to be deleted. + UserActivity *UserActivity `json:"userActivity,omitempty"` + + // ForceSendFields is a list of field names (e.g. "RequestOptions") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "RequestOptions") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *RemoveActivityRequest) MarshalJSON() ([]byte, error) { + type NoMethod RemoveActivityRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// RemoveActivityResponse: Remove Logged Activity Response. will return +// an empty response for now. Will be revisited in later phases. +type RemoveActivityResponse struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + type RenameEvent struct { NewName string `json:"newName,omitempty"` @@ -22924,6 +23082,20 @@ type SpellResult struct { // SuggestedQuery: The suggested spelling of the query. SuggestedQuery string `json:"suggestedQuery,omitempty"` + // SuggestionType: Suggestion triggered for the current query. + // + // Possible values: + // "SUGGESTION_TYPE_UNSPECIFIED" - Default spell check type + // "NON_EMPTY_RESULTS_SPELL_SUGGESTION" - Spell suggestion without any + // results changed. The results are still shown for the original query + // (which has non zero / results) with a suggestion for spelling that + // would have results. + // "ZERO_RESULTS_FULL_PAGE_REPLACEMENT" - Spell suggestion triggered + // when original query has no results. When the original query has no + // results, and spell suggestion has results we trigger results for the + // spell corrected query. + SuggestionType string `json:"suggestionType,omitempty"` + // ForceSendFields is a list of field names (e.g. "SuggestedQuery") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -25104,6 +25276,17 @@ type UploadMetadata struct { // attachment scan. DlpMetricsMetadata *AppsDynamiteSharedDlpMetricsMetadata `json:"dlpMetricsMetadata,omitempty"` + // InternalOnlyComponentSearchInfo: Message component search metadata + // for this upload_metadata (currently used for message highlighting and + // snippeting). For use by Search backend only; clients should get + // upload_metadata search info from Annotation.component_search_info. + // This field is necessary because backend Message keeps UploadMetadata + // in a separate field. Upon converting from backend message to frontend + // message, this field will be copied to + // Annotation.component_search_info while the corresponding + // UploadMetadata is converted into an Annotation. + InternalOnlyComponentSearchInfo *AppsDynamiteSharedMessageComponentSearchInfo `json:"internalOnlyComponentSearchInfo,omitempty"` + // LatestVirusScanTimestamp: The timestamp of the most recent virus scan // completed (in microseconds). LatestVirusScanTimestamp int64 `json:"latestVirusScanTimestamp,omitempty,string"` @@ -25345,6 +25528,35 @@ func (s *User) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// UserActivity: User's single or bulk query activity. This can be a +// logging query or deletion query. +type UserActivity struct { + // QueryActivity: Contains data which needs to be logged/removed. + QueryActivity *QueryActivity `json:"queryActivity,omitempty"` + + // ForceSendFields is a list of field names (e.g. "QueryActivity") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "QueryActivity") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *UserActivity) MarshalJSON() ([]byte, error) { + type NoMethod UserActivity + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // UserDisplayInfo: Resource for displaying user info type UserDisplayInfo struct { // AvatarUrl: The avatar to show for this user @@ -29952,6 +30164,138 @@ func (c *OperationsLroListCall) Pages(ctx context.Context, f func(*ListOperation } } +// method id "cloudsearch.query.removeActivity": + +type QueryRemoveActivityCall struct { + s *Service + removeactivityrequest *RemoveActivityRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// RemoveActivity: Provides functionality to remove logged activity for +// a user. Currently to be used only for dynamite 1p clients **Note:** +// This API requires a standard end user account to execute. A service +// account can't perform Remove Activity requests directly; to use a +// service account to perform queries, set up Google Workspace +// domain-wide delegation of authority +// (https://developers.google.com/cloud-search/docs/guides/delegation/). +func (r *QueryService) RemoveActivity(removeactivityrequest *RemoveActivityRequest) *QueryRemoveActivityCall { + c := &QueryRemoveActivityCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.removeactivityrequest = removeactivityrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *QueryRemoveActivityCall) Fields(s ...googleapi.Field) *QueryRemoveActivityCall { + 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 *QueryRemoveActivityCall) Context(ctx context.Context) *QueryRemoveActivityCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *QueryRemoveActivityCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *QueryRemoveActivityCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + 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.removeactivityrequest) + 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/query:removeActivity") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "cloudsearch.query.removeActivity" call. +// Exactly one of *RemoveActivityResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *RemoveActivityResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *QueryRemoveActivityCall) Do(opts ...googleapi.CallOption) (*RemoveActivityResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &RemoveActivityResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Provides functionality to remove logged activity for a user. Currently to be used only for dynamite 1p clients **Note:** This API requires a standard end user account to execute. A service account can't perform Remove Activity requests directly; to use a service account to perform queries, set up [Google Workspace domain-wide delegation of authority](https://developers.google.com/cloud-search/docs/guides/delegation/).", + // "flatPath": "v1/query:removeActivity", + // "httpMethod": "POST", + // "id": "cloudsearch.query.removeActivity", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v1/query:removeActivity", + // "request": { + // "$ref": "RemoveActivityRequest" + // }, + // "response": { + // "$ref": "RemoveActivityResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud_search", + // "https://www.googleapis.com/auth/cloud_search.query" + // ] + // } + +} + // method id "cloudsearch.query.search": type QuerySearchCall struct { diff --git a/container/v1/container-api.json b/container/v1/container-api.json index 1d052dfbcec..0f33192ba35 100644 --- a/container/v1/container-api.json +++ b/container/v1/container-api.json @@ -197,6 +197,31 @@ "resources": { "clusters": { "methods": { + "checkAutopilotCompatibility": { + "description": "Checks the cluster compatibility with Autopilot mode, and returns a list of compatibility issues.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:checkAutopilotCompatibility", + "httpMethod": "GET", + "id": "container.projects.locations.clusters.checkAutopilotCompatibility", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name (project, location, cluster) of the cluster to retrieve. Specified in the format `projects/*/locations/*/clusters/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:checkAutopilotCompatibility", + "response": { + "$ref": "CheckAutopilotCompatibilityResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "completeIpRotation": { "description": "Completes master IP rotation.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:completeIpRotation", @@ -2489,7 +2514,7 @@ } } }, - "revision": "20230515", + "revision": "20230519", "rootUrl": "https://container.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -2630,6 +2655,53 @@ }, "type": "object" }, + "AutopilotCompatibilityIssue": { + "description": "AutopilotCompatibilityIssue contains information about a specific compatibility issue with Autopilot mode.", + "id": "AutopilotCompatibilityIssue", + "properties": { + "constraintType": { + "description": "The constraint type of the issue.", + "type": "string" + }, + "description": { + "description": "The description of the issue.", + "type": "string" + }, + "documentationUrl": { + "description": "A URL to a public documnetation, which addresses resolving this issue.", + "type": "string" + }, + "incompatibilityType": { + "description": "The incompatibility type of this issue.", + "enum": [ + "UNSPECIFIED", + "INCOMPATIBILITY", + "ADDITIONAL_CONFIG_REQUIRED", + "PASSED_WITH_OPTIONAL_CONFIG" + ], + "enumDescriptions": [ + "Default value, should not be used.", + "Indicates that the issue is a known incompatibility between the cluster and Autopilot mode.", + "Indicates the issue is an incompatibility if customers take no further action to resolve.", + "Indicates the issue is not an incompatibility, but depending on the workloads business logic, there is a potential that they won't work on Autopilot." + ], + "type": "string" + }, + "lastObservation": { + "description": "The last time when this issue was observed.", + "format": "google-datetime", + "type": "string" + }, + "subjects": { + "description": "The name of the resources which are subject to this issue.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "AutoprovisioningNodePoolDefaults": { "description": "AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP.", "id": "AutoprovisioningNodePoolDefaults", @@ -2681,6 +2753,22 @@ }, "type": "object" }, + "BestEffortProvisioning": { + "description": "Best effort provisioning.", + "id": "BestEffortProvisioning", + "properties": { + "enabled": { + "description": "When this is enabled, cluster/node pool creations will ignore non-fatal errors like stockout to best provision as many nodes as possible right now and eventually bring up all target number of nodes", + "type": "boolean" + }, + "minProvisionNodes": { + "description": "Minimum number of nodes to be provisioned to be considered as succeeded, and the rest of nodes will be provisioned gradually and eventually when stockout issue has been resolved.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "BigQueryDestination": { "description": "Parameters for using BigQuery as the destination of resource usage export.", "id": "BigQueryDestination", @@ -2809,6 +2897,24 @@ }, "type": "object" }, + "CheckAutopilotCompatibilityResponse": { + "description": "CheckAutopilotCompatibilityResponse has a list of compatibility issues.", + "id": "CheckAutopilotCompatibilityResponse", + "properties": { + "issues": { + "description": "The list of issues for the given operation.", + "items": { + "$ref": "AutopilotCompatibilityIssue" + }, + "type": "array" + }, + "summary": { + "description": "The summary of the autopilot compatibility response.", + "type": "string" + } + }, + "type": "object" + }, "CidrBlock": { "description": "CidrBlock contains an optional name and one CIDR block.", "id": "CidrBlock", @@ -2932,6 +3038,10 @@ "description": "An optional description of this cluster.", "type": "string" }, + "enableK8sBetaApis": { + "$ref": "K8sBetaAPIConfig", + "description": "Beta APIs Config" + }, "enableKubernetesAlpha": { "description": "Kubernetes alpha features are enabled on this cluster. This includes alpha API groups (e.g. v1alpha1) and features that may not be production ready in the kubernetes version of the master and nodes. The cluster has no SLA for uptime and master/node upgrades are disabled. Alpha enabled clusters are automatically deleted thirty days after creation.", "type": "boolean" @@ -3257,6 +3367,10 @@ "$ref": "DNSConfig", "description": "DNSConfig contains clusterDNS config for this cluster." }, + "desiredEnableFqdnNetworkPolicy": { + "description": "Enable/Disable FQDN Network Policy for the cluster.", + "type": "boolean" + }, "desiredEnablePrivateEndpoint": { "description": "Enable/Disable private endpoint for the cluster's master.", "type": "boolean" @@ -3285,6 +3399,10 @@ "$ref": "IntraNodeVisibilityConfig", "description": "The desired config of Intra-node visibility." }, + "desiredK8sBetaApis": { + "$ref": "K8sBetaAPIConfig", + "description": "Desired Beta APIs to be enabled for cluster." + }, "desiredL4ilbSubsettingConfig": { "$ref": "ILBSubsettingConfig", "description": "The desired L4 Internal Load Balancer Subsetting configuration." @@ -3406,6 +3524,10 @@ "$ref": "WorkloadIdentityConfig", "description": "Configuration for Workload Identity." }, + "enableK8sBetaApis": { + "$ref": "K8sBetaAPIConfig", + "description": "Kubernetes open source beta apis enabled on the cluster. Only beta apis" + }, "etag": { "description": "The current etag of the cluster. If an etag is provided and does not match the current etag of the cluster, update will be blocked and an ABORTED error will be returned.", "type": "string" @@ -4102,6 +4224,20 @@ }, "type": "object" }, + "K8sBetaAPIConfig": { + "description": "K8sBetaAPIConfig , configuration for beta APIs", + "id": "K8sBetaAPIConfig", + "properties": { + "enabledApis": { + "description": "Enabled k8s beta APIs.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "KubernetesDashboard": { "description": "Configuration for the Kubernetes Dashboard.", "id": "KubernetesDashboard", @@ -4539,6 +4675,10 @@ "$ref": "DNSConfig", "description": "DNSConfig contains clusterDNS config for this cluster." }, + "enableFqdnNetworkPolicy": { + "description": "Whether FQDN Network Policy is enabled on this cluster.", + "type": "boolean" + }, "enableIntraNodeVisibility": { "description": "Whether Intra-node visibility is enabled for this cluster. This makes same node pod to pod traffic visible for VPC network.", "type": "boolean" @@ -4958,6 +5098,10 @@ "$ref": "NodePoolAutoscaling", "description": "Autoscaler configuration for this NodePool. Autoscaler is enabled only if a valid configuration is present." }, + "bestEffortProvisioning": { + "$ref": "BestEffortProvisioning", + "description": "Enable best effort provisioning for nodes" + }, "conditions": { "description": "Which conditions caused the current node pool state.", "items": { diff --git a/container/v1/container-gen.go b/container/v1/container-gen.go index 54eca00f915..0982b905144 100644 --- a/container/v1/container-gen.go +++ b/container/v1/container-gen.go @@ -563,6 +563,62 @@ func (s *Autopilot) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// AutopilotCompatibilityIssue: AutopilotCompatibilityIssue contains +// information about a specific compatibility issue with Autopilot mode. +type AutopilotCompatibilityIssue struct { + // ConstraintType: The constraint type of the issue. + ConstraintType string `json:"constraintType,omitempty"` + + // Description: The description of the issue. + Description string `json:"description,omitempty"` + + // DocumentationUrl: A URL to a public documnetation, which addresses + // resolving this issue. + DocumentationUrl string `json:"documentationUrl,omitempty"` + + // IncompatibilityType: The incompatibility type of this issue. + // + // Possible values: + // "UNSPECIFIED" - Default value, should not be used. + // "INCOMPATIBILITY" - Indicates that the issue is a known + // incompatibility between the cluster and Autopilot mode. + // "ADDITIONAL_CONFIG_REQUIRED" - Indicates the issue is an + // incompatibility if customers take no further action to resolve. + // "PASSED_WITH_OPTIONAL_CONFIG" - Indicates the issue is not an + // incompatibility, but depending on the workloads business logic, there + // is a potential that they won't work on Autopilot. + IncompatibilityType string `json:"incompatibilityType,omitempty"` + + // LastObservation: The last time when this issue was observed. + LastObservation string `json:"lastObservation,omitempty"` + + // Subjects: The name of the resources which are subject to this issue. + Subjects []string `json:"subjects,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ConstraintType") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ConstraintType") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *AutopilotCompatibilityIssue) MarshalJSON() ([]byte, error) { + type NoMethod AutopilotCompatibilityIssue + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // AutoprovisioningNodePoolDefaults: AutoprovisioningNodePoolDefaults // contains defaults for a node pool created by NAP. type AutoprovisioningNodePoolDefaults struct { @@ -645,6 +701,42 @@ func (s *AutoprovisioningNodePoolDefaults) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// BestEffortProvisioning: Best effort provisioning. +type BestEffortProvisioning struct { + // Enabled: When this is enabled, cluster/node pool creations will + // ignore non-fatal errors like stockout to best provision as many nodes + // as possible right now and eventually bring up all target number of + // nodes + Enabled bool `json:"enabled,omitempty"` + + // MinProvisionNodes: Minimum number of nodes to be provisioned to be + // considered as succeeded, and the rest of nodes will be provisioned + // gradually and eventually when stockout issue has been resolved. + MinProvisionNodes int64 `json:"minProvisionNodes,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Enabled") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or 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 *BestEffortProvisioning) MarshalJSON() ([]byte, error) { + type NoMethod BestEffortProvisioning + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // BigQueryDestination: Parameters for using BigQuery as the destination // of resource usage export. type BigQueryDestination struct { @@ -858,6 +950,43 @@ func (s *CancelOperationRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// CheckAutopilotCompatibilityResponse: +// CheckAutopilotCompatibilityResponse has a list of compatibility +// issues. +type CheckAutopilotCompatibilityResponse struct { + // Issues: The list of issues for the given operation. + Issues []*AutopilotCompatibilityIssue `json:"issues,omitempty"` + + // Summary: The summary of the autopilot compatibility response. + Summary string `json:"summary,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Issues") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Issues") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CheckAutopilotCompatibilityResponse) MarshalJSON() ([]byte, error) { + type NoMethod CheckAutopilotCompatibilityResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // CidrBlock: CidrBlock contains an optional name and one CIDR block. type CidrBlock struct { // CidrBlock: cidr_block must be specified in CIDR notation. @@ -1030,6 +1159,9 @@ type Cluster struct { // Description: An optional description of this cluster. Description string `json:"description,omitempty"` + // EnableK8sBetaApis: Beta APIs Config + EnableK8sBetaApis *K8sBetaAPIConfig `json:"enableK8sBetaApis,omitempty"` + // EnableKubernetesAlpha: Kubernetes alpha features are enabled on this // cluster. This includes alpha API groups (e.g. v1alpha1) and features // that may not be production ready in the kubernetes version of the @@ -1440,6 +1572,10 @@ type ClusterUpdate struct { // cluster. DesiredDnsConfig *DNSConfig `json:"desiredDnsConfig,omitempty"` + // DesiredEnableFqdnNetworkPolicy: Enable/Disable FQDN Network Policy + // for the cluster. + DesiredEnableFqdnNetworkPolicy bool `json:"desiredEnableFqdnNetworkPolicy,omitempty"` + // DesiredEnablePrivateEndpoint: Enable/Disable private endpoint for the // cluster's master. DesiredEnablePrivateEndpoint bool `json:"desiredEnablePrivateEndpoint,omitempty"` @@ -1466,6 +1602,9 @@ type ClusterUpdate struct { // visibility. DesiredIntraNodeVisibilityConfig *IntraNodeVisibilityConfig `json:"desiredIntraNodeVisibilityConfig,omitempty"` + // DesiredK8sBetaApis: Desired Beta APIs to be enabled for cluster. + DesiredK8sBetaApis *K8sBetaAPIConfig `json:"desiredK8sBetaApis,omitempty"` + // DesiredL4ilbSubsettingConfig: The desired L4 Internal Load Balancer // Subsetting configuration. DesiredL4ilbSubsettingConfig *ILBSubsettingConfig `json:"desiredL4ilbSubsettingConfig,omitempty"` @@ -1608,6 +1747,10 @@ type ClusterUpdate struct { // DesiredWorkloadIdentityConfig: Configuration for Workload Identity. DesiredWorkloadIdentityConfig *WorkloadIdentityConfig `json:"desiredWorkloadIdentityConfig,omitempty"` + // EnableK8sBetaApis: Kubernetes open source beta apis enabled on the + // cluster. Only beta apis + EnableK8sBetaApis *K8sBetaAPIConfig `json:"enableK8sBetaApis,omitempty"` + // Etag: The current etag of the cluster. If an etag is provided and // does not match the current etag of the cluster, update will be // blocked and an ABORTED error will be returned. @@ -2946,6 +3089,34 @@ func (s *Jwk) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// K8sBetaAPIConfig: K8sBetaAPIConfig , configuration for beta APIs +type K8sBetaAPIConfig struct { + // EnabledApis: Enabled k8s beta APIs. + EnabledApis []string `json:"enabledApis,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EnabledApis") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EnabledApis") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *K8sBetaAPIConfig) MarshalJSON() ([]byte, error) { + type NoMethod K8sBetaAPIConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // KubernetesDashboard: Configuration for the Kubernetes Dashboard. type KubernetesDashboard struct { // Disabled: Whether the Kubernetes Dashboard is enabled for this @@ -3808,6 +3979,10 @@ type NetworkConfig struct { // DnsConfig: DNSConfig contains clusterDNS config for this cluster. DnsConfig *DNSConfig `json:"dnsConfig,omitempty"` + // EnableFqdnNetworkPolicy: Whether FQDN Network Policy is enabled on + // this cluster. + EnableFqdnNetworkPolicy bool `json:"enableFqdnNetworkPolicy,omitempty"` + // EnableIntraNodeVisibility: Whether Intra-node visibility is enabled // for this cluster. This makes same node pod to pod traffic visible for // VPC network. @@ -4503,6 +4678,9 @@ type NodePool struct { // is enabled only if a valid configuration is present. Autoscaling *NodePoolAutoscaling `json:"autoscaling,omitempty"` + // BestEffortProvisioning: Enable best effort provisioning for nodes + BestEffortProvisioning *BestEffortProvisioning `json:"bestEffortProvisioning,omitempty"` + // Conditions: Which conditions caused the current node pool state. Conditions []*StatusCondition `json:"conditions,omitempty"` @@ -8048,6 +8226,156 @@ func (c *ProjectsLocationsGetServerConfigCall) Do(opts ...googleapi.CallOption) } +// method id "container.projects.locations.clusters.checkAutopilotCompatibility": + +type ProjectsLocationsClustersCheckAutopilotCompatibilityCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// CheckAutopilotCompatibility: Checks the cluster compatibility with +// Autopilot mode, and returns a list of compatibility issues. +// +// - name: The name (project, location, cluster) of the cluster to +// retrieve. Specified in the format +// `projects/*/locations/*/clusters/*`. +func (r *ProjectsLocationsClustersService) CheckAutopilotCompatibility(name string) *ProjectsLocationsClustersCheckAutopilotCompatibilityCall { + c := &ProjectsLocationsClustersCheckAutopilotCompatibilityCall{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 *ProjectsLocationsClustersCheckAutopilotCompatibilityCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersCheckAutopilotCompatibilityCall { + 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 *ProjectsLocationsClustersCheckAutopilotCompatibilityCall) IfNoneMatch(entityTag string) *ProjectsLocationsClustersCheckAutopilotCompatibilityCall { + 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 *ProjectsLocationsClustersCheckAutopilotCompatibilityCall) Context(ctx context.Context) *ProjectsLocationsClustersCheckAutopilotCompatibilityCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsClustersCheckAutopilotCompatibilityCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsClustersCheckAutopilotCompatibilityCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + 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}:checkAutopilotCompatibility") + 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 "container.projects.locations.clusters.checkAutopilotCompatibility" call. +// Exactly one of *CheckAutopilotCompatibilityResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *CheckAutopilotCompatibilityResponse.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsClustersCheckAutopilotCompatibilityCall) Do(opts ...googleapi.CallOption) (*CheckAutopilotCompatibilityResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &CheckAutopilotCompatibilityResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Checks the cluster compatibility with Autopilot mode, and returns a list of compatibility issues.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:checkAutopilotCompatibility", + // "httpMethod": "GET", + // "id": "container.projects.locations.clusters.checkAutopilotCompatibility", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name (project, location, cluster) of the cluster to retrieve. Specified in the format `projects/*/locations/*/clusters/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:checkAutopilotCompatibility", + // "response": { + // "$ref": "CheckAutopilotCompatibilityResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "container.projects.locations.clusters.completeIpRotation": type ProjectsLocationsClustersCompleteIpRotationCall struct { diff --git a/iam/v1/iam-api.json b/iam/v1/iam-api.json index 89171e32376..d932daf37eb 100644 --- a/iam/v1/iam-api.json +++ b/iam/v1/iam-api.json @@ -2751,7 +2751,7 @@ } } }, - "revision": "20230427", + "revision": "20230530", "rootUrl": "https://iam.googleapis.com/", "schemas": { "AdminAuditData": { @@ -3413,6 +3413,10 @@ "issuerUri": { "description": "Required. The OIDC issuer URL. Must be an HTTPS endpoint.", "type": "string" + }, + "jwksJson": { + "description": "Optional. OIDC JWKs in JSON String format. For details on the definition of a JWK, see https://tools.ietf.org/html/rfc7517. If not set, the `jwks_uri` from the discovery document(fetched from the .well-known path of the `issuer_uri`) will be used. Currently, RSA and EC asymmetric keys are supported. The JWK must use following format and include only the following fields: { \"keys\": [ { \"kty\": \"RSA/EC\", \"alg\": \"\", \"use\": \"sig\", \"kid\": \"\", \"n\": \"\", \"e\": \"\", \"x\": \"\", \"y\": \"\", \"crv\": \"\" } ] }", + "type": "string" } }, "type": "object" diff --git a/iam/v1/iam-gen.go b/iam/v1/iam-gen.go index 86717a7a869..3a89574dafa 100644 --- a/iam/v1/iam-gen.go +++ b/iam/v1/iam-gen.go @@ -1747,6 +1747,16 @@ type Oidc struct { // IssuerUri: Required. The OIDC issuer URL. Must be an HTTPS endpoint. IssuerUri string `json:"issuerUri,omitempty"` + // JwksJson: Optional. OIDC JWKs in JSON String format. For details on + // the definition of a JWK, see https://tools.ietf.org/html/rfc7517. If + // not set, the `jwks_uri` from the discovery document(fetched from the + // .well-known path of the `issuer_uri`) will be used. Currently, RSA + // and EC asymmetric keys are supported. The JWK must use following + // format and include only the following fields: { "keys": [ { "kty": + // "RSA/EC", "alg": "", "use": "sig", "kid": "", "n": "", "e": "", "x": + // "", "y": "", "crv": "" } ] } + JwksJson string `json:"jwksJson,omitempty"` + // ForceSendFields is a list of field names (e.g. "AllowedAudiences") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any diff --git a/manufacturers/v1/manufacturers-api.json b/manufacturers/v1/manufacturers-api.json index 7abd7b40f8b..ec9efadbb51 100644 --- a/manufacturers/v1/manufacturers-api.json +++ b/manufacturers/v1/manufacturers-api.json @@ -416,7 +416,7 @@ } } }, - "revision": "20230209", + "revision": "20230602", "rootUrl": "https://manufacturers.googleapis.com/", "schemas": { "Attributes": { @@ -611,6 +611,10 @@ "type": "string" }, "type": "array" + }, + "virtualModelLink": { + "description": "Virtual Model (3d) asset link.", + "type": "string" } }, "type": "object" diff --git a/manufacturers/v1/manufacturers-gen.go b/manufacturers/v1/manufacturers-gen.go index 2847bf77c1e..5d5da4327cf 100644 --- a/manufacturers/v1/manufacturers-gen.go +++ b/manufacturers/v1/manufacturers-gen.go @@ -358,6 +358,9 @@ type Attributes struct { // https://support.google.com/manufacturers/answer/6124116#video. VideoLink []string `json:"videoLink,omitempty"` + // VirtualModelLink: Virtual Model (3d) asset link. + VirtualModelLink string `json:"virtualModelLink,omitempty"` + // ForceSendFields is a list of field names (e.g. "AdditionalImageLink") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any From db9dde29b5b9aa4edd5d36cb1d65c4b879a85247 Mon Sep 17 00:00:00 2001 From: guangwu Date: Thu, 8 Jun 2023 03:46:46 +0800 Subject: [PATCH 5/7] chore: remove refs to deprecated io/ioutil (#2008) --- examples/debug.go | 7 +++---- examples/main.go | 3 +-- google-api-go-generator/clients_test.go | 4 ++-- google-api-go-generator/gen.go | 15 +++++++-------- google-api-go-generator/gen_test.go | 16 ++++++++-------- .../internal/disco/disco_test.go | 6 +++--- googleapi/googleapi.go | 5 ++--- googleapi/googleapi_test.go | 4 ++-- header_test.go | 3 +-- idtoken/validate_test.go | 6 +++--- impersonate/idtoken.go | 3 +-- impersonate/idtoken_test.go | 4 ++-- impersonate/impersonate.go | 3 +-- impersonate/impersonate_test.go | 4 ++-- impersonate/user.go | 5 ++--- impersonate/user_test.go | 6 +++--- integration-tests/byoid/integration_test.go | 14 +++++++------- integration-tests/downscope/downscope_test.go | 6 +++--- internal/cert/secureconnect_cert.go | 3 +-- internal/creds.go | 3 +-- internal/ecp/test_signer.go | 3 +-- internal/gensupport/buffer_test.go | 5 ++--- internal/gensupport/media.go | 7 +++---- internal/gensupport/media_test.go | 5 ++--- internal/gensupport/resumable_test.go | 3 +-- internal/impersonate/impersonate.go | 3 +-- 26 files changed, 65 insertions(+), 81 deletions(-) diff --git a/examples/debug.go b/examples/debug.go index 2d630925e7a..16e1684dd0a 100644 --- a/examples/debug.go +++ b/examples/debug.go @@ -8,7 +8,6 @@ import ( "bytes" "fmt" "io" - "io/ioutil" "net/http" "os" ) @@ -22,11 +21,11 @@ func (t *logTransport) RoundTrip(req *http.Request) (*http.Response, error) { os.Stdout.Write([]byte("\n[request]\n")) if req.Body != nil { - req.Body = ioutil.NopCloser(&readButCopy{req.Body, &buf}) + req.Body = io.NopCloser(&readButCopy{req.Body, &buf}) } req.Write(os.Stdout) if req.Body != nil { - req.Body = ioutil.NopCloser(&buf) + req.Body = io.NopCloser(&buf) } os.Stdout.Write([]byte("\n[/request]\n")) @@ -40,7 +39,7 @@ func (t *logTransport) RoundTrip(req *http.Request) (*http.Response, error) { res.Body = nil res.Write(os.Stdout) if body != nil { - res.Body = ioutil.NopCloser(&echoAsRead{body}) + res.Body = io.NopCloser(&echoAsRead{body}) } } diff --git a/examples/main.go b/examples/main.go index e60c16bafe2..0a2a2bd2073 100644 --- a/examples/main.go +++ b/examples/main.go @@ -11,7 +11,6 @@ import ( "flag" "fmt" "hash/fnv" - "io/ioutil" "log" "net/http" "net/http/httptest" @@ -198,7 +197,7 @@ func valueOrFileContents(value string, filename string) string { if value != "" { return value } - slurp, err := ioutil.ReadFile(filename) + slurp, err := os.ReadFile(filename) if err != nil { log.Fatalf("Error reading %q: %v", filename, err) } diff --git a/google-api-go-generator/clients_test.go b/google-api-go-generator/clients_test.go index 9a9467e42d1..f8b8105bf08 100644 --- a/google-api-go-generator/clients_test.go +++ b/google-api-go-generator/clients_test.go @@ -8,7 +8,7 @@ import ( "context" "encoding/json" "fmt" - "io/ioutil" + "io" "math" "net/http" "net/http/httptest" @@ -47,7 +47,7 @@ func (h *myHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { if h.location != "" { w.Header().Set("Location", h.location) } - h.body, h.err = ioutil.ReadAll(r.Body) + h.body, h.err = io.ReadAll(r.Body) fmt.Fprintf(w, "{}") } diff --git a/google-api-go-generator/gen.go b/google-api-go-generator/gen.go index 33e2ee9eb67..26704bae038 100644 --- a/google-api-go-generator/gen.go +++ b/google-api-go-generator/gen.go @@ -12,7 +12,6 @@ import ( "fmt" "go/format" "io" - "io/ioutil" "log" "net/http" "net/url" @@ -214,7 +213,7 @@ func getAPIs() []*API { log.Fatalf("-cache=true not compatible with -publiconly=false") } var err error - bytes, err = ioutil.ReadFile(apiListFile) + bytes, err = os.ReadFile(apiListFile) if err != nil { log.Fatal(err) } @@ -275,7 +274,7 @@ func getAPIsFromFile() []*API { } func apiFromFile(file string) (*API, error) { - jsonBytes, err := ioutil.ReadFile(file) + jsonBytes, err := os.ReadFile(file) if err != nil { return nil, fmt.Errorf("Error reading %s: %v", file, err) } @@ -298,7 +297,7 @@ func checkAndUpdateSpecFile(file string, contents []byte) error { if _, err := os.Stat(file); os.IsNotExist(err) { return writeFile(file, contents) } - existing, err := ioutil.ReadFile(file) + existing, err := os.ReadFile(file) if err != nil { return err } @@ -329,7 +328,7 @@ func isNewerRevision(old []byte, new []byte) error { func writeFile(file string, contents []byte) error { // Don't write it if the contents are identical. - existing, err := ioutil.ReadFile(file) + existing, err := os.ReadFile(file) if err == nil && (bytes.Equal(existing, contents) || basicallyEqual(existing, contents)) { return nil } @@ -337,7 +336,7 @@ func writeFile(file string, contents []byte) error { if err = os.MkdirAll(outdir, 0755); err != nil { return fmt.Errorf("failed to Mkdir %s: %v", outdir, err) } - return ioutil.WriteFile(file, contents, 0644) + return os.WriteFile(file, contents, 0644) } var ignoreLines = regexp.MustCompile(`(?m)^\s+"(?:etag|revision)": ".+\n`) @@ -368,7 +367,7 @@ func slurpURL(urlStr string) []byte { log.Printf("WARNING: URL %s served status code %d", urlStr, res.StatusCode) return nil } - bs, err := ioutil.ReadAll(res.Body) + bs, err := io.ReadAll(res.Body) if err != nil { log.Fatalf("Error reading body of URL %s: %v", urlStr, err) } @@ -523,7 +522,7 @@ func (a *API) jsonBytes() []byte { var slurp []byte var err error if *useCache { - slurp, err = ioutil.ReadFile(a.JSONFile()) + slurp, err = os.ReadFile(a.JSONFile()) if err != nil { log.Fatal(err) } diff --git a/google-api-go-generator/gen_test.go b/google-api-go-generator/gen_test.go index 63a59314bcc..5c598016a55 100644 --- a/google-api-go-generator/gen_test.go +++ b/google-api-go-generator/gen_test.go @@ -11,7 +11,7 @@ import ( "bytes" "flag" "fmt" - "io/ioutil" + "os" "path/filepath" "strings" "testing" @@ -63,17 +63,17 @@ func TestAPIs(t *testing.T) { goldenFile := filepath.Join("testdata", name+".want") if *updateGolden { clean := strings.Replace(string(clean), fmt.Sprintf("gdcl/%s", internal.Version), "gdcl/00000000", -1) - if err := ioutil.WriteFile(goldenFile, []byte(clean), 0644); err != nil { + if err := os.WriteFile(goldenFile, []byte(clean), 0644); err != nil { t.Fatal(err) } } - want, err := ioutil.ReadFile(goldenFile) + want, err := os.ReadFile(goldenFile) if err != nil { t.Fatal(err) } wantStr := strings.Replace(string(want), "gdcl/00000000", fmt.Sprintf("gdcl/%s", internal.Version), -1) if !bytes.Equal([]byte(wantStr), clean) { - tf, _ := ioutil.TempFile("", "api-"+name+"-got-json.") + tf, _ := os.CreateTemp("", "api-"+name+"-got-json.") if _, err := tf.Write(clean); err != nil { t.Fatal(err) } @@ -219,13 +219,13 @@ func TestSupportsPaging(t *testing.T) { func TestIsNewerRevision(t *testing.T) { olderBytesPath, newerBytesPath := filepath.Join("testdata", "rev20200415.json"), filepath.Join("testdata", "rev20200416.json") - olderBytes, err := ioutil.ReadFile(olderBytesPath) + olderBytes, err := os.ReadFile(olderBytesPath) if err != nil { - t.Fatalf("ioutil.ReadFile(%q) = %v; want nil", olderBytesPath, err) + t.Fatalf("os.ReadFile(%q) = %v; want nil", olderBytesPath, err) } - newerBytes, err := ioutil.ReadFile(newerBytesPath) + newerBytes, err := os.ReadFile(newerBytesPath) if err != nil { - t.Fatalf("ioutil.ReadFile(%q) = %v; want nil", newerBytesPath, err) + t.Fatalf("os.ReadFile(%q) = %v; want nil", newerBytesPath, err) } // newBytes > oldBytes diff --git a/google-api-go-generator/internal/disco/disco_test.go b/google-api-go-generator/internal/disco/disco_test.go index d4ae90e6a62..287b2cc520b 100644 --- a/google-api-go-generator/internal/disco/disco_test.go +++ b/google-api-go-generator/internal/disco/disco_test.go @@ -5,7 +5,7 @@ package disco import ( - "io/ioutil" + "os" "reflect" "strings" "testing" @@ -17,7 +17,7 @@ var stringSchema = &Schema{ } func TestDocument(t *testing.T) { - bytes, err := ioutil.ReadFile("testdata/test-api.json") + bytes, err := os.ReadFile("testdata/test-api.json") if err != nil { t.Fatal(err) } @@ -265,7 +265,7 @@ func TestSchemaErrors(t *testing.T) { } func TestErrorDoc(t *testing.T) { - bytes, err := ioutil.ReadFile("testdata/error.json") + bytes, err := os.ReadFile("testdata/error.json") if err != nil { t.Fatal(err) } diff --git a/googleapi/googleapi.go b/googleapi/googleapi.go index b328a7976ab..b5e38c66282 100644 --- a/googleapi/googleapi.go +++ b/googleapi/googleapi.go @@ -11,7 +11,6 @@ import ( "encoding/json" "fmt" "io" - "io/ioutil" "net/http" "net/url" "strings" @@ -144,7 +143,7 @@ func CheckResponse(res *http.Response) error { if res.StatusCode >= 200 && res.StatusCode <= 299 { return nil } - slurp, err := ioutil.ReadAll(res.Body) + slurp, err := io.ReadAll(res.Body) if err == nil { jerr := new(errorReply) err = json.Unmarshal(slurp, jerr) @@ -184,7 +183,7 @@ func CheckMediaResponse(res *http.Response) error { if res.StatusCode >= 200 && res.StatusCode <= 299 { return nil } - slurp, _ := ioutil.ReadAll(io.LimitReader(res.Body, 1<<20)) + slurp, _ := io.ReadAll(io.LimitReader(res.Body, 1<<20)) return &Error{ Code: res.StatusCode, Body: string(slurp), diff --git a/googleapi/googleapi_test.go b/googleapi/googleapi_test.go index 510a5842630..db06aa273ee 100644 --- a/googleapi/googleapi_test.go +++ b/googleapi/googleapi_test.go @@ -6,7 +6,7 @@ package googleapi import ( "encoding/json" - "io/ioutil" + "io" "net/http" "net/url" "reflect" @@ -318,7 +318,7 @@ func TestCheckResponse(t *testing.T) { for _, test := range checkResponseTests { res := test.in if test.bodyText != "" { - res.Body = ioutil.NopCloser(strings.NewReader(test.bodyText)) + res.Body = io.NopCloser(strings.NewReader(test.bodyText)) } g := CheckResponse(res) if !reflect.DeepEqual(g, test.want) { diff --git a/header_test.go b/header_test.go index 5881762081c..a493d25027a 100644 --- a/header_test.go +++ b/header_test.go @@ -6,7 +6,6 @@ package api import ( "bytes" - "io/ioutil" "os" "path/filepath" "regexp" @@ -43,7 +42,7 @@ func TestLicense(t *testing.T) { return nil } - src, err := ioutil.ReadFile(path) + src, err := os.ReadFile(path) if err != nil { return nil } diff --git a/idtoken/validate_test.go b/idtoken/validate_test.go index 631c82e88dc..46528db2747 100644 --- a/idtoken/validate_test.go +++ b/idtoken/validate_test.go @@ -14,7 +14,7 @@ import ( "crypto/rsa" "encoding/base64" "encoding/json" - "io/ioutil" + "io" "math/big" "net/http" "testing" @@ -97,7 +97,7 @@ func TestValidateRS256(t *testing.T) { } return &http.Response{ StatusCode: 200, - Body: ioutil.NopCloser(bytes.NewReader(b)), + Body: io.NopCloser(bytes.NewReader(b)), Header: make(http.Header), } }), @@ -207,7 +207,7 @@ func TestValidateES256(t *testing.T) { } return &http.Response{ StatusCode: 200, - Body: ioutil.NopCloser(bytes.NewReader(b)), + Body: io.NopCloser(bytes.NewReader(b)), Header: make(http.Header), } }), diff --git a/impersonate/idtoken.go b/impersonate/idtoken.go index a2defff1518..9000b8e0f61 100644 --- a/impersonate/idtoken.go +++ b/impersonate/idtoken.go @@ -10,7 +10,6 @@ import ( "encoding/json" "fmt" "io" - "io/ioutil" "net/http" "time" @@ -109,7 +108,7 @@ func (i impersonatedIDTokenSource) Token() (*oauth2.Token, error) { return nil, fmt.Errorf("impersonate: unable to generate ID token: %v", err) } defer resp.Body.Close() - body, err := ioutil.ReadAll(io.LimitReader(resp.Body, 1<<20)) + body, err := io.ReadAll(io.LimitReader(resp.Body, 1<<20)) if err != nil { return nil, fmt.Errorf("impersonate: unable to read body: %v", err) } diff --git a/impersonate/idtoken_test.go b/impersonate/idtoken_test.go index 4a961822bdf..45d4305a90b 100644 --- a/impersonate/idtoken_test.go +++ b/impersonate/idtoken_test.go @@ -8,7 +8,7 @@ import ( "bytes" "context" "encoding/json" - "io/ioutil" + "io" "net/http" "testing" @@ -56,7 +56,7 @@ func TestIDTokenSource(t *testing.T) { } return &http.Response{ StatusCode: 200, - Body: ioutil.NopCloser(bytes.NewReader(b)), + Body: io.NopCloser(bytes.NewReader(b)), Header: make(http.Header), } }), diff --git a/impersonate/impersonate.go b/impersonate/impersonate.go index 52c32589b72..86d5eb82d58 100644 --- a/impersonate/impersonate.go +++ b/impersonate/impersonate.go @@ -10,7 +10,6 @@ import ( "encoding/json" "fmt" "io" - "io/ioutil" "net/http" "time" @@ -161,7 +160,7 @@ func (i impersonatedTokenSource) Token() (*oauth2.Token, error) { return nil, fmt.Errorf("impersonate: unable to generate access token: %v", err) } defer resp.Body.Close() - body, err := ioutil.ReadAll(io.LimitReader(resp.Body, 1<<20)) + body, err := io.ReadAll(io.LimitReader(resp.Body, 1<<20)) if err != nil { return nil, fmt.Errorf("impersonate: unable to read body: %v", err) } diff --git a/impersonate/impersonate_test.go b/impersonate/impersonate_test.go index c26c7fafc1a..8e6a09ac9a2 100644 --- a/impersonate/impersonate_test.go +++ b/impersonate/impersonate_test.go @@ -8,7 +8,7 @@ import ( "bytes" "context" "encoding/json" - "io/ioutil" + "io" "net/http" "strings" "testing" @@ -67,7 +67,7 @@ func TestTokenSource_serviceAccount(t *testing.T) { } return &http.Response{ StatusCode: 200, - Body: ioutil.NopCloser(bytes.NewReader(b)), + Body: io.NopCloser(bytes.NewReader(b)), Header: http.Header{}, } } diff --git a/impersonate/user.go b/impersonate/user.go index 059deab7117..c234abb8998 100644 --- a/impersonate/user.go +++ b/impersonate/user.go @@ -10,7 +10,6 @@ import ( "encoding/json" "fmt" "io" - "io/ioutil" "net/http" "net/url" "strings" @@ -123,7 +122,7 @@ func (u userTokenSource) signJWT() (string, error) { if err != nil { return "", fmt.Errorf("impersonate: unable to sign JWT: %v", err) } - body, err := ioutil.ReadAll(io.LimitReader(rawResp.Body, 1<<20)) + body, err := io.ReadAll(io.LimitReader(rawResp.Body, 1<<20)) if err != nil { return "", fmt.Errorf("impersonate: unable to read body: %v", err) } @@ -148,7 +147,7 @@ func (u userTokenSource) exchangeToken(signedJWT string) (*oauth2.Token, error) if err != nil { return nil, fmt.Errorf("impersonate: unable to exchange token: %v", err) } - body, err := ioutil.ReadAll(io.LimitReader(rawResp.Body, 1<<20)) + body, err := io.ReadAll(io.LimitReader(rawResp.Body, 1<<20)) if err != nil { return nil, fmt.Errorf("impersonate: unable to read body: %v", err) } diff --git a/impersonate/user_test.go b/impersonate/user_test.go index 0358eecc883..54ec3068d3a 100644 --- a/impersonate/user_test.go +++ b/impersonate/user_test.go @@ -8,7 +8,7 @@ import ( "bytes" "context" "encoding/json" - "io/ioutil" + "io" "net/http" "strings" "testing" @@ -69,7 +69,7 @@ func TestTokenSource_user(t *testing.T) { } return &http.Response{ StatusCode: 200, - Body: ioutil.NopCloser(bytes.NewReader(b)), + Body: io.NopCloser(bytes.NewReader(b)), Header: make(http.Header), } } @@ -85,7 +85,7 @@ func TestTokenSource_user(t *testing.T) { } return &http.Response{ StatusCode: 200, - Body: ioutil.NopCloser(bytes.NewReader(b)), + Body: io.NopCloser(bytes.NewReader(b)), Header: make(http.Header), } } diff --git a/integration-tests/byoid/integration_test.go b/integration-tests/byoid/integration_test.go index 612cf8eae4c..e0051c470d9 100644 --- a/integration-tests/byoid/integration_test.go +++ b/integration-tests/byoid/integration_test.go @@ -33,7 +33,7 @@ import ( "encoding/xml" "flag" "fmt" - "io/ioutil" + "io" "log" "net/http" "net/http/httptest" @@ -148,7 +148,7 @@ func writeConfig(t *testing.T, c config, f func(name string)) { t.Helper() // Set up config file. - configFile, err := ioutil.TempFile("", "config.json") + configFile, err := os.CreateTemp("", "config.json") if err != nil { t.Fatalf("Error creating config file: %v", err) } @@ -223,7 +223,7 @@ func TestFileBasedCredentials(t *testing.T) { t.Skip("skipping integration test") } // Set up Token as a file - tokenFile, err := ioutil.TempFile("", "token.txt") + tokenFile, err := os.CreateTemp("", "token.txt") if err != nil { t.Fatalf("Error creating token file:") } @@ -313,7 +313,7 @@ func TestAWSBasedCredentials(t *testing.T) { if err != nil { t.Fatalf("Failed to post data to AWS: %v", err) } - bodyBytes, err := ioutil.ReadAll(resp.Body) + bodyBytes, err := io.ReadAll(resp.Body) if err != nil { t.Fatalf("Failed to parse response body from AWS: %v", err) } @@ -369,7 +369,7 @@ func TestExecutableBasedCredentials(t *testing.T) { } // Set up Script as a executable file - scriptFile, err := ioutil.TempFile("", "script.sh") + scriptFile, err := os.CreateTemp("", "script.sh") if err != nil { t.Fatalf("Error creating token file:") } @@ -402,7 +402,7 @@ func TestConfigurableTokenLifetime(t *testing.T) { } // Set up Token as a file - tokenFile, err := ioutil.TempFile("", "token.txt") + tokenFile, err := os.CreateTemp("", "token.txt") if err != nil { t.Fatalf("Error creating token file:") } @@ -427,7 +427,7 @@ func TestConfigurableTokenLifetime(t *testing.T) { File: tokenFile.Name(), }, }, func(filename string) { - b, err := ioutil.ReadFile(filename) + b, err := os.ReadFile(filename) if err != nil { t.Fatalf("Coudn't read temp config file") } diff --git a/integration-tests/downscope/downscope_test.go b/integration-tests/downscope/downscope_test.go index 25553c9c2d7..12ed93d2735 100644 --- a/integration-tests/downscope/downscope_test.go +++ b/integration-tests/downscope/downscope_test.go @@ -8,7 +8,7 @@ import ( "context" "flag" "fmt" - "io/ioutil" + "io" "log" "os" "testing" @@ -137,9 +137,9 @@ func downscopeQuery(t *testing.T, tt downscopeTest) error { return fmt.Errorf("failed to retrieve object from GCP project with error: %v", err) } defer resp.Body.Close() - _, err = ioutil.ReadAll(resp.Body) + _, err = io.ReadAll(resp.Body) if err != nil { - return fmt.Errorf("ioutil.ReadAll: %v", err) + return fmt.Errorf("io.ReadAll: %v", err) } return nil } diff --git a/internal/cert/secureconnect_cert.go b/internal/cert/secureconnect_cert.go index 5913cab8017..afd79ffe2be 100644 --- a/internal/cert/secureconnect_cert.go +++ b/internal/cert/secureconnect_cert.go @@ -18,7 +18,6 @@ import ( "encoding/json" "errors" "fmt" - "io/ioutil" "os" "os/exec" "os/user" @@ -59,7 +58,7 @@ func NewSecureConnectSource(configFilePath string) (Source, error) { configFilePath = filepath.Join(user.HomeDir, metadataPath, metadataFile) } - file, err := ioutil.ReadFile(configFilePath) + file, err := os.ReadFile(configFilePath) if err != nil { if errors.Is(err, os.ErrNotExist) { // Config file missing means Secure Connect is not supported. diff --git a/internal/creds.go b/internal/creds.go index fd89a2785fd..92b3acf6edf 100644 --- a/internal/creds.go +++ b/internal/creds.go @@ -10,7 +10,6 @@ import ( "encoding/json" "errors" "fmt" - "io/ioutil" "net" "net/http" "os" @@ -48,7 +47,7 @@ func baseCreds(ctx context.Context, ds *DialSettings) (*google.Credentials, erro return credentialsFromJSON(ctx, ds.CredentialsJSON, ds) } if ds.CredentialsFile != "" { - data, err := ioutil.ReadFile(ds.CredentialsFile) + data, err := os.ReadFile(ds.CredentialsFile) if err != nil { return nil, fmt.Errorf("cannot read credentials file: %v", err) } diff --git a/internal/ecp/test_signer.go b/internal/ecp/test_signer.go index 38425cf677b..4fb41ea98e4 100644 --- a/internal/ecp/test_signer.go +++ b/internal/ecp/test_signer.go @@ -11,7 +11,6 @@ import ( "crypto/tls" "crypto/x509" "io" - "io/ioutil" "log" "net/rpc" "os" @@ -73,7 +72,7 @@ func (k *EnterpriseCertSigner) Sign(args SignArgs, resp *[]byte) (err error) { func main() { enterpriseCertSigner := new(EnterpriseCertSigner) - data, err := ioutil.ReadFile(os.Args[1]) + data, err := os.ReadFile(os.Args[1]) if err != nil { log.Fatalf("Error reading certificate: %v", err) } diff --git a/internal/gensupport/buffer_test.go b/internal/gensupport/buffer_test.go index df5eedb8ff0..8a99744bfbe 100644 --- a/internal/gensupport/buffer_test.go +++ b/internal/gensupport/buffer_test.go @@ -7,7 +7,6 @@ package gensupport import ( "bytes" "io" - "io/ioutil" "reflect" "testing" "testing/iotest" @@ -19,7 +18,7 @@ import ( func getChunkAsString(t *testing.T, mb *MediaBuffer) (string, error) { chunk, _, size, err := mb.Chunk() - buf, e := ioutil.ReadAll(chunk) + buf, e := io.ReadAll(chunk) if e != nil { t.Fatalf("Failed reading chunk: %v", e) } @@ -250,7 +249,7 @@ func TestAdapter(t *testing.T) { if typer, ok := to.(googleapi.ContentTyper); ok && typer.ContentType() != "ctype" { t.Errorf("content type: got: %s; want: ctype", typer.ContentType()) } - buf, err := ioutil.ReadAll(to) + buf, err := io.ReadAll(to) if err != nil { t.Errorf("error reading data: %v", err) return diff --git a/internal/gensupport/media.go b/internal/gensupport/media.go index 8356e7f27b0..c048a57084b 100644 --- a/internal/gensupport/media.go +++ b/internal/gensupport/media.go @@ -8,7 +8,6 @@ import ( "bytes" "fmt" "io" - "io/ioutil" "mime" "mime/multipart" "net/http" @@ -222,8 +221,8 @@ func (mi *MediaInfo) UploadRequest(reqHeaders http.Header, body io.Reader) (newB toCleanup = append(toCleanup, combined) if fb != nil && fm != nil { getBody = func() (io.ReadCloser, error) { - rb := ioutil.NopCloser(fb()) - rm := ioutil.NopCloser(fm()) + rb := io.NopCloser(fb()) + rm := io.NopCloser(fm()) var mimeBoundary string if _, params, err := mime.ParseMediaType(ctype); err == nil { mimeBoundary = params["boundary"] @@ -243,7 +242,7 @@ func (mi *MediaInfo) UploadRequest(reqHeaders http.Header, body io.Reader) (newB fb := readerFunc(body) if fb != nil { getBody = func() (io.ReadCloser, error) { - rb := ioutil.NopCloser(fb()) + rb := io.NopCloser(fb()) toCleanup = append(toCleanup, rb) return rb, nil } diff --git a/internal/gensupport/media_test.go b/internal/gensupport/media_test.go index 0ba367b4469..65fd62b3dcc 100644 --- a/internal/gensupport/media_test.go +++ b/internal/gensupport/media_test.go @@ -8,7 +8,6 @@ import ( "bytes" cryptorand "crypto/rand" "io" - "io/ioutil" mathrand "math/rand" "net/http" "strings" @@ -197,7 +196,7 @@ func TestUploadRequestGetBody(t *testing.T) { if getBody == nil { continue } - want, err := ioutil.ReadAll(r) + want, err := io.ReadAll(r) if err != nil { t.Fatal(err) } @@ -206,7 +205,7 @@ func TestUploadRequestGetBody(t *testing.T) { if err != nil { t.Fatal(err) } - got, err := ioutil.ReadAll(rc) + got, err := io.ReadAll(rc) if err != nil { t.Fatal(err) } diff --git a/internal/gensupport/resumable_test.go b/internal/gensupport/resumable_test.go index 3d6bc068bab..0000d403e0c 100644 --- a/internal/gensupport/resumable_test.go +++ b/internal/gensupport/resumable_test.go @@ -8,7 +8,6 @@ import ( "context" "fmt" "io" - "io/ioutil" "net/http" "reflect" "strings" @@ -75,7 +74,7 @@ func (t *interruptibleTransport) RoundTrip(req *http.Request) (*http.Response, e } if ev.responseStatus != http.StatusServiceUnavailable { - buf, err := ioutil.ReadAll(req.Body) + buf, err := io.ReadAll(req.Body) if err != nil { return nil, fmt.Errorf("error reading from request data: %v", err) } diff --git a/internal/impersonate/impersonate.go b/internal/impersonate/impersonate.go index b465bbcd12e..4b2c775f210 100644 --- a/internal/impersonate/impersonate.go +++ b/internal/impersonate/impersonate.go @@ -11,7 +11,6 @@ import ( "encoding/json" "fmt" "io" - "io/ioutil" "net/http" "time" @@ -105,7 +104,7 @@ func (i impersonatedTokenSource) Token() (*oauth2.Token, error) { return nil, fmt.Errorf("impersonate: unable to generate access token: %v", err) } defer resp.Body.Close() - body, err := ioutil.ReadAll(io.LimitReader(resp.Body, 1<<20)) + body, err := io.ReadAll(io.LimitReader(resp.Body, 1<<20)) if err != nil { return nil, fmt.Errorf("impersonate: unable to read body: %v", err) } From e0fa0b164a2951e05aa0979b4f555e2948a4cc01 Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Thu, 8 Jun 2023 15:28:27 -0600 Subject: [PATCH 6/7] chore: skip generating integrations:v1alpha as it fails generation (#2014) Restore this API once the ExecuteEvent RPC definition is valid. See internal issue b/286436239. --- google-api-go-generator/gen.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/google-api-go-generator/gen.go b/google-api-go-generator/gen.go index 26704bae038..fa00f7a20ec 100644 --- a/google-api-go-generator/gen.go +++ b/google-api-go-generator/gen.go @@ -67,7 +67,8 @@ var ( // skipAPIGeneration is a set of APIs to not generate when generating all clients. var skipAPIGeneration = map[string]bool{ - "sql:v1beta4": true, + "integrations:v1alpha": true, + "sql:v1beta4": true, } // API represents an API to generate, as well as its state while it's From 884dbd55027ea2033d627d3b82901eee4e3d97c7 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 8 Jun 2023 22:34:15 +0000 Subject: [PATCH 7/7] chore(main): release 0.126.0 (#2009) :robot: I have created a release *beep* *boop* --- ## [0.126.0](https://togithub.com/googleapis/google-api-go-client/compare/v0.125.0...v0.126.0) (2023-06-08) ### Features * **all:** Auto-regenerate discovery clients ([#2007](https://togithub.com/googleapis/google-api-go-client/issues/2007)) ([465e95b](https://togithub.com/googleapis/google-api-go-client/commit/465e95b0a0edfc30c6e3b4565ea85bc51afce578)) * **all:** Auto-regenerate discovery clients ([#2010](https://togithub.com/googleapis/google-api-go-client/issues/2010)) ([3dc0dbb](https://togithub.com/googleapis/google-api-go-client/commit/3dc0dbb9c8d0dbe6c50d503b96caa0a73a2145cc)) * **all:** Auto-regenerate discovery clients ([#2011](https://togithub.com/googleapis/google-api-go-client/issues/2011)) ([4fed5c2](https://togithub.com/googleapis/google-api-go-client/commit/4fed5c245895e756541e509887175cb8ade4adbf)) * **all:** Auto-regenerate discovery clients ([#2012](https://togithub.com/googleapis/google-api-go-client/issues/2012)) ([95d3fd1](https://togithub.com/googleapis/google-api-go-client/commit/95d3fd1747451b492deefe490ecc52842df0c031)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- CHANGES.md | 10 ++++++++++ internal/version.go | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 5a2799121db..d8da4f31037 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,15 @@ # Changes +## [0.126.0](https://github.com/googleapis/google-api-go-client/compare/v0.125.0...v0.126.0) (2023-06-08) + + +### Features + +* **all:** Auto-regenerate discovery clients ([#2007](https://github.com/googleapis/google-api-go-client/issues/2007)) ([465e95b](https://github.com/googleapis/google-api-go-client/commit/465e95b0a0edfc30c6e3b4565ea85bc51afce578)) +* **all:** Auto-regenerate discovery clients ([#2010](https://github.com/googleapis/google-api-go-client/issues/2010)) ([3dc0dbb](https://github.com/googleapis/google-api-go-client/commit/3dc0dbb9c8d0dbe6c50d503b96caa0a73a2145cc)) +* **all:** Auto-regenerate discovery clients ([#2011](https://github.com/googleapis/google-api-go-client/issues/2011)) ([4fed5c2](https://github.com/googleapis/google-api-go-client/commit/4fed5c245895e756541e509887175cb8ade4adbf)) +* **all:** Auto-regenerate discovery clients ([#2012](https://github.com/googleapis/google-api-go-client/issues/2012)) ([95d3fd1](https://github.com/googleapis/google-api-go-client/commit/95d3fd1747451b492deefe490ecc52842df0c031)) + ## [0.125.0](https://github.com/googleapis/google-api-go-client/compare/v0.124.0...v0.125.0) (2023-05-30) diff --git a/internal/version.go b/internal/version.go index f3543c5b720..46ad187ec11 100644 --- a/internal/version.go +++ b/internal/version.go @@ -5,4 +5,4 @@ package internal // Version is the current tagged release of the library. -const Version = "0.125.0" +const Version = "0.126.0"