From 59cb661398606d2dbe7d29fd4c55da37bc6f0452 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 29 Nov 2023 08:11:57 +0000 Subject: [PATCH] feat(all): auto-regenerate discovery clients --- chat/v1/chat-api.json | 49 +++++++++++-- chat/v1/chat-gen.go | 73 ++++++++++++++++++- chromepolicy/v1/chromepolicy-api.json | 4 +- chromepolicy/v1/chromepolicy-gen.go | 8 +- .../v1beta1/networksecurity-api.json | 4 +- .../v1beta1/networksecurity-gen.go | 6 +- .../v1/paymentsresellersubscription-api.json | 65 +++++++++++++---- .../v1/paymentsresellersubscription-gen.go | 70 ++++++++++++++---- .../v1/smartdevicemanagement-api.json | 12 +-- .../v1/smartdevicemanagement-gen.go | 17 ----- 10 files changed, 232 insertions(+), 76 deletions(-) diff --git a/chat/v1/chat-api.json b/chat/v1/chat-api.json index f2770e20219..dfed560ec20 100644 --- a/chat/v1/chat-api.json +++ b/chat/v1/chat-api.json @@ -957,7 +957,7 @@ } } }, - "revision": "20231114", + "revision": "20231121", "rootUrl": "https://chat.googleapis.com/", "schemas": { "ActionParameter": { @@ -981,7 +981,7 @@ "properties": { "dialogAction": { "$ref": "DialogAction", - "description": "Input only. A response to an event related to a [dialog](https://developers.google.com/chat/how-tos/dialogs). Must be accompanied by `ResponseType.Dialog`." + "description": "Input only. A response to an interaction event related to a [dialog](https://developers.google.com/chat/how-tos/dialogs). Must be accompanied by `ResponseType.Dialog`." }, "type": { "description": "Input only. The type of Chat app response.", @@ -991,7 +991,8 @@ "UPDATE_MESSAGE", "UPDATE_USER_MESSAGE_CARDS", "REQUEST_CONFIG", - "DIALOG" + "DIALOG", + "UPDATE_WIDGET" ], "enumDescriptions": [ "Default type that's handled as `NEW_MESSAGE`.", @@ -999,10 +1000,15 @@ "Update the Chat app's message. This is only permitted on a `CARD_CLICKED` event where the message sender type is `BOT`.", "Update the cards on a user's message. This is only permitted as a response to a `MESSAGE` event with a matched url, or a `CARD_CLICKED` event where the message sender type is `HUMAN`. Text is ignored.", "Privately ask the user for additional authentication or configuration.", - "Presents a [dialog](https://developers.google.com/chat/how-tos/dialogs)." + "Presents a [dialog](https://developers.google.com/chat/how-tos/dialogs).", + "Widget text autocomplete options query." ], "type": "string" }, + "updatedWidget": { + "$ref": "UpdatedWidget", + "description": "Input only. The response of the updated widget." + }, "url": { "description": "Input only. URL for users to authenticate or configure. (Only for `REQUEST_CONFIG` response types.)", "type": "string" @@ -1561,14 +1567,16 @@ "MESSAGE", "ADDED_TO_SPACE", "REMOVED_FROM_SPACE", - "CARD_CLICKED" + "CARD_CLICKED", + "WIDGET_UPDATED" ], "enumDescriptions": [ "Default value for the enum. DO NOT USE.", "A user sends the Chat app a message, or invokes the Chat app in a space.", "A user adds the Chat app to a space, or a Google Workspace administrator installs the Chat app in direct message spaces for users in their organization.", "A user removes the Chat app from a space.", - "A user clicks an interactive element of a card or dialog from a Chat app, such as a button. If a user interacts with a dialog, the `CARD_CLICKED` interaction event's `isDialogEvent` field is set to `true` and includes a [`DialogEventType`](https://developers.google.com/chat/api/reference/rest/v1/DialogEventType)." + "A user clicks an interactive element of a card or dialog from a Chat app, such as a button. If a user interacts with a dialog, the `CARD_CLICKED` interaction event's `isDialogEvent` field is set to `true` and includes a [`DialogEventType`](https://developers.google.com/chat/api/reference/rest/v1/DialogEventType).", + "A user updates a widget in a card message or dialog." ], "type": "string" }, @@ -3310,6 +3318,20 @@ }, "type": "object" }, + "SelectionItems": { + "description": "List of widget autocomplete results.", + "id": "SelectionItems", + "properties": { + "items": { + "description": "An array of the SelectionItem objects.", + "items": { + "$ref": "GoogleAppsCardV1SelectionItem" + }, + "type": "array" + } + }, + "type": "object" + }, "SetUpSpaceRequest": { "id": "SetUpSpaceRequest", "properties": { @@ -3622,6 +3644,21 @@ }, "type": "object" }, + "UpdatedWidget": { + "description": "The response of the updated widget. Used to provide autocomplete options for a widget.", + "id": "UpdatedWidget", + "properties": { + "suggestions": { + "$ref": "SelectionItems", + "description": "List of widget autocomplete results" + }, + "widget": { + "description": "The ID of the updated widget. The ID must match the one for the widget that triggered the update request.", + "type": "string" + } + }, + "type": "object" + }, "UploadAttachmentRequest": { "id": "UploadAttachmentRequest", "properties": { diff --git a/chat/v1/chat-gen.go b/chat/v1/chat-gen.go index 9a940ace868..659592aea08 100644 --- a/chat/v1/chat-gen.go +++ b/chat/v1/chat-gen.go @@ -321,9 +321,9 @@ func (s *ActionParameter) MarshalJSON() ([]byte, error) { // ActionResponse: Parameters that a Chat app can use to configure how // its response is posted. type ActionResponse struct { - // DialogAction: Input only. A response to an event related to a dialog - // (https://developers.google.com/chat/how-tos/dialogs). Must be - // accompanied by `ResponseType.Dialog`. + // DialogAction: Input only. A response to an interaction event related + // to a dialog (https://developers.google.com/chat/how-tos/dialogs). + // Must be accompanied by `ResponseType.Dialog`. DialogAction *DialogAction `json:"dialogAction,omitempty"` // Type: Input only. The type of Chat app response. @@ -342,8 +342,12 @@ type ActionResponse struct { // authentication or configuration. // "DIALOG" - Presents a // [dialog](https://developers.google.com/chat/how-tos/dialogs). + // "UPDATE_WIDGET" - Widget text autocomplete options query. Type string `json:"type,omitempty"` + // UpdatedWidget: Input only. The response of the updated widget. + UpdatedWidget *UpdatedWidget `json:"updatedWidget,omitempty"` + // Url: Input only. URL for users to authenticate or configure. (Only // for `REQUEST_CONFIG` response types.) Url string `json:"url,omitempty"` @@ -1369,6 +1373,8 @@ type DeprecatedEvent struct { // is set to `true` and includes a // [`DialogEventType`](https://developers.google.com/chat/api/reference/r // est/v1/DialogEventType). + // "WIDGET_UPDATED" - A user updates a widget in a card message or + // dialog. Type string `json:"type,omitempty"` // User: The user that triggered the interaction event. @@ -4416,6 +4422,34 @@ func (s *Section) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// SelectionItems: List of widget autocomplete results. +type SelectionItems struct { + // Items: An array of the SelectionItem objects. + Items []*GoogleAppsCardV1SelectionItem `json:"items,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Items") 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. "Items") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SelectionItems) MarshalJSON() ([]byte, error) { + type NoMethod SelectionItems + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type SetUpSpaceRequest struct { // Memberships: Optional. The Google Chat users to invite to join the // space. Omit the calling user, as they are added automatically. The @@ -5001,6 +5035,39 @@ func (s *TimeZone) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// UpdatedWidget: The response of the updated widget. Used to provide +// autocomplete options for a widget. +type UpdatedWidget struct { + // Suggestions: List of widget autocomplete results + Suggestions *SelectionItems `json:"suggestions,omitempty"` + + // Widget: The ID of the updated widget. The ID must match the one for + // the widget that triggered the update request. + Widget string `json:"widget,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Suggestions") 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. "Suggestions") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *UpdatedWidget) MarshalJSON() ([]byte, error) { + type NoMethod UpdatedWidget + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type UploadAttachmentRequest struct { // Filename: Required. The filename of the attachment, including the // file extension. diff --git a/chromepolicy/v1/chromepolicy-api.json b/chromepolicy/v1/chromepolicy-api.json index f229abcc116..0a6267d50cd 100644 --- a/chromepolicy/v1/chromepolicy-api.json +++ b/chromepolicy/v1/chromepolicy-api.json @@ -557,7 +557,7 @@ } } }, - "revision": "20231011", + "revision": "20231127", "rootUrl": "https://chromepolicy.googleapis.com/", "schemas": { "GoogleChromePolicyVersionsV1AdditionalTargetKeyName": { @@ -1628,7 +1628,7 @@ "type": "integer" }, "proto3Optional": { - "description": "If true, this is a proto3 \"optional\". When a proto3 field is optional, it tracks presence regardless of field type. When proto3_optional is true, this field must be belong to a oneof to signal to old proto3 clients that presence is tracked for this field. This oneof is known as a \"synthetic\" oneof, and this field must be its sole member (each proto3 optional field gets its own synthetic oneof). Synthetic oneofs exist in the descriptor only, and do not generate any API. Synthetic oneofs must be ordered after all \"real\" oneofs. For message fields, proto3_optional doesn't create any semantic change, since non-repeated message fields always track presence. However it still indicates the semantic detail of whether the user wrote \"optional\" or not. This can be useful for round-tripping the .proto file. For consistency we give message fields a synthetic oneof also, even though it is not required to track presence. This is especially important because the parser can't tell if a field is a message or an enum, so it must always create a synthetic oneof. Proto2 optional fields do not set this flag, because they already indicate optional with `LABEL_OPTIONAL`.", + "description": "If true, this is a proto3 \"optional\". When a proto3 field is optional, it tracks presence regardless of field type. When proto3_optional is true, this field must belong to a oneof to signal to old proto3 clients that presence is tracked for this field. This oneof is known as a \"synthetic\" oneof, and this field must be its sole member (each proto3 optional field gets its own synthetic oneof). Synthetic oneofs exist in the descriptor only, and do not generate any API. Synthetic oneofs must be ordered after all \"real\" oneofs. For message fields, proto3_optional doesn't create any semantic change, since non-repeated message fields always track presence. However it still indicates the semantic detail of whether the user wrote \"optional\" or not. This can be useful for round-tripping the .proto file. For consistency we give message fields a synthetic oneof also, even though it is not required to track presence. This is especially important because the parser can't tell if a field is a message or an enum, so it must always create a synthetic oneof. Proto2 optional fields do not set this flag, because they already indicate optional with `LABEL_OPTIONAL`.", "type": "boolean" }, "type": { diff --git a/chromepolicy/v1/chromepolicy-gen.go b/chromepolicy/v1/chromepolicy-gen.go index 8c2131e85c6..2260fa94f90 100644 --- a/chromepolicy/v1/chromepolicy-gen.go +++ b/chromepolicy/v1/chromepolicy-gen.go @@ -2096,10 +2096,10 @@ type Proto2FieldDescriptorProto struct { // Proto3Optional: If true, this is a proto3 "optional". When a proto3 // field is optional, it tracks presence regardless of field type. When - // proto3_optional is true, this field must be belong to a oneof to - // signal to old proto3 clients that presence is tracked for this field. - // This oneof is known as a "synthetic" oneof, and this field must be - // its sole member (each proto3 optional field gets its own synthetic + // proto3_optional is true, this field must belong to a oneof to signal + // to old proto3 clients that presence is tracked for this field. This + // oneof is known as a "synthetic" oneof, and this field must be its + // sole member (each proto3 optional field gets its own synthetic // oneof). Synthetic oneofs exist in the descriptor only, and do not // generate any API. Synthetic oneofs must be ordered after all "real" // oneofs. For message fields, proto3_optional doesn't create any diff --git a/networksecurity/v1beta1/networksecurity-api.json b/networksecurity/v1beta1/networksecurity-api.json index c7fcc49de26..d8f892c86c3 100644 --- a/networksecurity/v1beta1/networksecurity-api.json +++ b/networksecurity/v1beta1/networksecurity-api.json @@ -1985,7 +1985,7 @@ ], "parameters": { "firewallEndpointAssociationId": { - "description": "Required. Id of the requesting object. If auto-generating Id server-side, remove this field and firewall_endpoint_association_id from the method_signature of Create RPC.", + "description": "Optional. Id of the requesting object. If auto-generating Id server-side, remove this field and firewall_endpoint_association_id from the method_signature of Create RPC.", "location": "query", "type": "string" }, @@ -3162,7 +3162,7 @@ } } }, - "revision": "20230920", + "revision": "20231101", "rootUrl": "https://networksecurity.googleapis.com/", "schemas": { "AddAddressGroupItemsRequest": { diff --git a/networksecurity/v1beta1/networksecurity-gen.go b/networksecurity/v1beta1/networksecurity-gen.go index f97ffb31339..2cc56d1f40f 100644 --- a/networksecurity/v1beta1/networksecurity-gen.go +++ b/networksecurity/v1beta1/networksecurity-gen.go @@ -12721,8 +12721,8 @@ func (r *ProjectsLocationsFirewallEndpointAssociationsService) Create(parent str } // FirewallEndpointAssociationId sets the optional parameter -// "firewallEndpointAssociationId": Required. Id of the requesting -// object. If auto-generating Id server-side, remove this field and +// "firewallEndpointAssociationId": Id of the requesting object. If +// auto-generating Id server-side, remove this field and // firewall_endpoint_association_id from the method_signature of Create // RPC. func (c *ProjectsLocationsFirewallEndpointAssociationsCreateCall) FirewallEndpointAssociationId(firewallEndpointAssociationId string) *ProjectsLocationsFirewallEndpointAssociationsCreateCall { @@ -12848,7 +12848,7 @@ func (c *ProjectsLocationsFirewallEndpointAssociationsCreateCall) Do(opts ...goo // ], // "parameters": { // "firewallEndpointAssociationId": { - // "description": "Required. Id of the requesting object. If auto-generating Id server-side, remove this field and firewall_endpoint_association_id from the method_signature of Create RPC.", + // "description": "Optional. Id of the requesting object. If auto-generating Id server-side, remove this field and firewall_endpoint_association_id from the method_signature of Create RPC.", // "location": "query", // "type": "string" // }, diff --git a/paymentsresellersubscription/v1/paymentsresellersubscription-api.json b/paymentsresellersubscription/v1/paymentsresellersubscription-api.json index 9b235756533..2addfbe085a 100644 --- a/paymentsresellersubscription/v1/paymentsresellersubscription-api.json +++ b/paymentsresellersubscription/v1/paymentsresellersubscription-api.json @@ -1,4 +1,13 @@ { + "auth": { + "oauth2": { + "scopes": { + "openid": { + "description": "Associate you with your personal info on Google" + } + } + } + }, "basePath": "", "baseUrl": "https://paymentsresellersubscription.googleapis.com/", "batchPath": "batch", @@ -136,14 +145,17 @@ "path": "v1/{+parent}/products", "response": { "$ref": "GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse" - } + }, + "scopes": [ + "openid" + ] } } }, "promotions": { "methods": { "findEligible": { - "description": "To find eligible promotions for the current user. The API requires user authorization via OAuth. The user is inferred from the authenticated OAuth credential.", + "description": "To find eligible promotions for the current user. The API requires user authorization via OAuth. The bare minimum oauth scope `openid` is sufficient, which will skip the consent screen.", "flatPath": "v1/partners/{partnersId}/promotions:findEligible", "httpMethod": "POST", "id": "paymentsresellersubscription.partners.promotions.findEligible", @@ -165,7 +177,10 @@ }, "response": { "$ref": "GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsResponse" - } + }, + "scopes": [ + "openid" + ] }, "list": { "description": "To retrieve the promotions, such as free trial, that can be used by the partner. It should be autenticated with a service account.", @@ -203,7 +218,10 @@ "path": "v1/{+parent}/promotions", "response": { "$ref": "GoogleCloudPaymentsResellerSubscriptionV1ListPromotionsResponse" - } + }, + "scopes": [ + "openid" + ] } } }, @@ -232,7 +250,10 @@ }, "response": { "$ref": "GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse" - } + }, + "scopes": [ + "openid" + ] }, "create": { "description": "Used by partners to create a subscription for their customers. The created subscription is associated with the end user inferred from the end user credentials. This API must be authorized by the end user using OAuth.", @@ -262,7 +283,10 @@ }, "response": { "$ref": "GoogleCloudPaymentsResellerSubscriptionV1Subscription" - } + }, + "scopes": [ + "openid" + ] }, "entitle": { "description": "Used by partners to entitle a previously provisioned subscription to the current end user. The end user identity is inferred from the authorized credential of the request. This API must be authorized by the end user using OAuth.", @@ -287,7 +311,10 @@ }, "response": { "$ref": "GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionResponse" - } + }, + "scopes": [ + "openid" + ] }, "extend": { "description": "[Opt-in only] Most partners should be on auto-extend by default. Used by partners to extend a subscription service for their customers on an ongoing basis for the subscription to remain active and renewable. It should be called directly by the partner using service accounts.", @@ -312,7 +339,10 @@ }, "response": { "$ref": "GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionResponse" - } + }, + "scopes": [ + "openid" + ] }, "get": { "description": "Used by partners to get a subscription by id. It should be called directly by the partner using service accounts.", @@ -334,7 +364,10 @@ "path": "v1/{+name}", "response": { "$ref": "GoogleCloudPaymentsResellerSubscriptionV1Subscription" - } + }, + "scopes": [ + "openid" + ] }, "provision": { "description": "Used by partners to provision a subscription for their customers. This creates a subscription without associating it with the end user account. EntitleSubscription must be called separately using OAuth in order for the end user account to be associated with the subscription. It should be called directly by the partner using service accounts.", @@ -364,7 +397,10 @@ }, "response": { "$ref": "GoogleCloudPaymentsResellerSubscriptionV1Subscription" - } + }, + "scopes": [ + "openid" + ] }, "undoCancel": { "description": "Used by partners to revoke the pending cancellation of a subscription, which is currently in `STATE_CANCEL_AT_END_OF_CYCLE` state. If the subscription is already cancelled, the request will fail. It should be called directly by the partner using service accounts.", @@ -389,14 +425,17 @@ }, "response": { "$ref": "GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionResponse" - } + }, + "scopes": [ + "openid" + ] } } } } } }, - "revision": "20231112", + "revision": "20231127", "rootUrl": "https://paymentsresellersubscription.googleapis.com/", "schemas": { "GoogleCloudPaymentsResellerSubscriptionV1Amount": { @@ -545,7 +584,7 @@ "description": "Required. Specifies details of the extension. Currently, the duration of the extension must be exactly one billing cycle of the original subscription." }, "requestId": { - "description": "Required. Restricted to 36 ASCII characters. A random UUID is recommended. The idempotency key for the request. The ID generation logic is controlled by the partner. request_id should be the same as on retries of the same request. A different request_id must be used for a extension of a different cycle. A random UUID is recommended.", + "description": "Required. Restricted to 36 ASCII characters. A random UUID is recommended. The idempotency key for the request. The ID generation logic is controlled by the partner. request_id should be the same as on retries of the same request. A different request_id must be used for a extension of a different cycle.", "type": "string" } }, diff --git a/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go b/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go index 2e82ce6e9e5..576ec1715a3 100644 --- a/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go +++ b/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go @@ -92,8 +92,19 @@ const apiVersion = "v1" const basePath = "https://paymentsresellersubscription.googleapis.com/" const mtlsBasePath = "https://paymentsresellersubscription.mtls.googleapis.com/" +// OAuth2 scopes used by this API. +const ( + // Associate you with your personal info on Google + OpenIDScope = "openid" +) + // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { + scopesOption := internaloption.WithDefaultScopes( + "openid", + ) + // 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...) @@ -456,8 +467,7 @@ type GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionRequest struct { // is recommended. The idempotency key for the request. The ID // generation logic is controlled by the partner. request_id should be // the same as on retries of the same request. A different request_id - // must be used for a extension of a different cycle. A random UUID is - // recommended. + // must be used for a extension of a different cycle. RequestId string `json:"requestId,omitempty"` // ForceSendFields is a list of field names (e.g. "Extension") to @@ -2034,7 +2044,10 @@ func (c *PartnersProductsListCall) Do(opts ...googleapi.CallOption) (*GoogleClou // "path": "v1/{+parent}/products", // "response": { // "$ref": "GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse" - // } + // }, + // "scopes": [ + // "openid" + // ] // } } @@ -2072,8 +2085,8 @@ type PartnersPromotionsFindEligibleCall struct { } // FindEligible: To find eligible promotions for the current user. The -// API requires user authorization via OAuth. The user is inferred from -// the authenticated OAuth credential. +// API requires user authorization via OAuth. The bare minimum oauth +// scope `openid` is sufficient, which will skip the consent screen. // // - parent: The parent, the partner that can resell. Format: // partners/{partner}. @@ -2178,7 +2191,7 @@ func (c *PartnersPromotionsFindEligibleCall) Do(opts ...googleapi.CallOption) (* } return ret, nil // { - // "description": "To find eligible promotions for the current user. The API requires user authorization via OAuth. The user is inferred from the authenticated OAuth credential.", + // "description": "To find eligible promotions for the current user. The API requires user authorization via OAuth. The bare minimum oauth scope `openid` is sufficient, which will skip the consent screen.", // "flatPath": "v1/partners/{partnersId}/promotions:findEligible", // "httpMethod": "POST", // "id": "paymentsresellersubscription.partners.promotions.findEligible", @@ -2200,7 +2213,10 @@ func (c *PartnersPromotionsFindEligibleCall) Do(opts ...googleapi.CallOption) (* // }, // "response": { // "$ref": "GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsResponse" - // } + // }, + // "scopes": [ + // "openid" + // ] // } } @@ -2424,7 +2440,10 @@ func (c *PartnersPromotionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCl // "path": "v1/{+parent}/promotions", // "response": { // "$ref": "GoogleCloudPaymentsResellerSubscriptionV1ListPromotionsResponse" - // } + // }, + // "scopes": [ + // "openid" + // ] // } } @@ -2592,7 +2611,10 @@ func (c *PartnersSubscriptionsCancelCall) Do(opts ...googleapi.CallOption) (*Goo // }, // "response": { // "$ref": "GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse" - // } + // }, + // "scopes": [ + // "openid" + // ] // } } @@ -2752,7 +2774,10 @@ func (c *PartnersSubscriptionsCreateCall) Do(opts ...googleapi.CallOption) (*Goo // }, // "response": { // "$ref": "GoogleCloudPaymentsResellerSubscriptionV1Subscription" - // } + // }, + // "scopes": [ + // "openid" + // ] // } } @@ -2899,7 +2924,10 @@ func (c *PartnersSubscriptionsEntitleCall) Do(opts ...googleapi.CallOption) (*Go // }, // "response": { // "$ref": "GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionResponse" - // } + // }, + // "scopes": [ + // "openid" + // ] // } } @@ -3047,7 +3075,10 @@ func (c *PartnersSubscriptionsExtendCall) Do(opts ...googleapi.CallOption) (*Goo // }, // "response": { // "$ref": "GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionResponse" - // } + // }, + // "scopes": [ + // "openid" + // ] // } } @@ -3195,7 +3226,10 @@ func (c *PartnersSubscriptionsGetCall) Do(opts ...googleapi.CallOption) (*Google // "path": "v1/{+name}", // "response": { // "$ref": "GoogleCloudPaymentsResellerSubscriptionV1Subscription" - // } + // }, + // "scopes": [ + // "openid" + // ] // } } @@ -3357,7 +3391,10 @@ func (c *PartnersSubscriptionsProvisionCall) Do(opts ...googleapi.CallOption) (* // }, // "response": { // "$ref": "GoogleCloudPaymentsResellerSubscriptionV1Subscription" - // } + // }, + // "scopes": [ + // "openid" + // ] // } } @@ -3505,7 +3542,10 @@ func (c *PartnersSubscriptionsUndoCancelCall) Do(opts ...googleapi.CallOption) ( // }, // "response": { // "$ref": "GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionResponse" - // } + // }, + // "scopes": [ + // "openid" + // ] // } } diff --git a/smartdevicemanagement/v1/smartdevicemanagement-api.json b/smartdevicemanagement/v1/smartdevicemanagement-api.json index 78b73783603..3689ce0ccd9 100644 --- a/smartdevicemanagement/v1/smartdevicemanagement-api.json +++ b/smartdevicemanagement/v1/smartdevicemanagement-api.json @@ -2,9 +2,6 @@ "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." - }, "https://www.googleapis.com/auth/sdm.service": { "description": "See and/or control the devices that you selected" } @@ -137,7 +134,6 @@ "$ref": "GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandResponse" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/sdm.service" ] }, @@ -163,7 +159,6 @@ "$ref": "GoogleHomeEnterpriseSdmV1Device" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/sdm.service" ] }, @@ -194,7 +189,6 @@ "$ref": "GoogleHomeEnterpriseSdmV1ListDevicesResponse" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/sdm.service" ] } @@ -224,7 +218,6 @@ "$ref": "GoogleHomeEnterpriseSdmV1Structure" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/sdm.service" ] }, @@ -255,7 +248,6 @@ "$ref": "GoogleHomeEnterpriseSdmV1ListStructuresResponse" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/sdm.service" ] } @@ -285,7 +277,6 @@ "$ref": "GoogleHomeEnterpriseSdmV1Room" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/sdm.service" ] }, @@ -311,7 +302,6 @@ "$ref": "GoogleHomeEnterpriseSdmV1ListRoomsResponse" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/sdm.service" ] } @@ -322,7 +312,7 @@ } } }, - "revision": "20230907", + "revision": "20231119", "rootUrl": "https://smartdevicemanagement.googleapis.com/", "schemas": { "GoogleHomeEnterpriseSdmV1Device": { diff --git a/smartdevicemanagement/v1/smartdevicemanagement-gen.go b/smartdevicemanagement/v1/smartdevicemanagement-gen.go index 066333e34e3..b5eb994d3fc 100644 --- a/smartdevicemanagement/v1/smartdevicemanagement-gen.go +++ b/smartdevicemanagement/v1/smartdevicemanagement-gen.go @@ -34,11 +34,6 @@ // // # Other authentication options // -// By default, all available scopes (see "Constants") are used to authenticate. -// To restrict scopes, use [google.golang.org/api/option.WithScopes]: -// -// smartdevicemanagementService, err := smartdevicemanagement.NewService(ctx, option.WithScopes(smartdevicemanagement.SdmServiceScope)) -// // To use an API key for authentication (note: some APIs do not support API // keys), use [google.golang.org/api/option.WithAPIKey]: // @@ -99,10 +94,6 @@ const mtlsBasePath = "https://smartdevicemanagement.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" - // See and/or control the devices that you selected SdmServiceScope = "https://www.googleapis.com/auth/sdm.service" ) @@ -110,7 +101,6 @@ const ( // 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", "https://www.googleapis.com/auth/sdm.service", ) // NOTE: prepend, so we don't override user-specified scopes. @@ -668,7 +658,6 @@ func (c *EnterprisesDevicesExecuteCommandCall) Do(opts ...googleapi.CallOption) // "$ref": "GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", // "https://www.googleapis.com/auth/sdm.service" // ] // } @@ -816,7 +805,6 @@ func (c *EnterprisesDevicesGetCall) Do(opts ...googleapi.CallOption) (*GoogleHom // "$ref": "GoogleHomeEnterpriseSdmV1Device" // }, // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", // "https://www.googleapis.com/auth/sdm.service" // ] // } @@ -979,7 +967,6 @@ func (c *EnterprisesDevicesListCall) Do(opts ...googleapi.CallOption) (*GoogleHo // "$ref": "GoogleHomeEnterpriseSdmV1ListDevicesResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", // "https://www.googleapis.com/auth/sdm.service" // ] // } @@ -1128,7 +1115,6 @@ func (c *EnterprisesStructuresGetCall) Do(opts ...googleapi.CallOption) (*Google // "$ref": "GoogleHomeEnterpriseSdmV1Structure" // }, // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", // "https://www.googleapis.com/auth/sdm.service" // ] // } @@ -1292,7 +1278,6 @@ func (c *EnterprisesStructuresListCall) Do(opts ...googleapi.CallOption) (*Googl // "$ref": "GoogleHomeEnterpriseSdmV1ListStructuresResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", // "https://www.googleapis.com/auth/sdm.service" // ] // } @@ -1440,7 +1425,6 @@ func (c *EnterprisesStructuresRoomsGetCall) Do(opts ...googleapi.CallOption) (*G // "$ref": "GoogleHomeEnterpriseSdmV1Room" // }, // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", // "https://www.googleapis.com/auth/sdm.service" // ] // } @@ -1590,7 +1574,6 @@ func (c *EnterprisesStructuresRoomsListCall) Do(opts ...googleapi.CallOption) (* // "$ref": "GoogleHomeEnterpriseSdmV1ListRoomsResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", // "https://www.googleapis.com/auth/sdm.service" // ] // }