diff --git a/artifactregistry/v1beta1/artifactregistry-api.json b/artifactregistry/v1beta1/artifactregistry-api.json index 9fa80bc1686..12b5d192b2b 100644 --- a/artifactregistry/v1beta1/artifactregistry-api.json +++ b/artifactregistry/v1beta1/artifactregistry-api.json @@ -148,7 +148,7 @@ ], "parameters": { "filter": { - "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like \"displayName=tokyo\", and is documented in more detail in [AIP-160](https://google.aip.dev/160).", + "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", "location": "query", "type": "string" }, @@ -929,7 +929,7 @@ } } }, - "revision": "20220328", + "revision": "20220401", "rootUrl": "https://artifactregistry.googleapis.com/", "schemas": { "Binding": { diff --git a/artifactregistry/v1beta1/artifactregistry-gen.go b/artifactregistry/v1beta1/artifactregistry-gen.go index 748157e6a57..36e9c43f4d6 100644 --- a/artifactregistry/v1beta1/artifactregistry-gen.go +++ b/artifactregistry/v1beta1/artifactregistry-gen.go @@ -1430,8 +1430,8 @@ func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall // Filter sets the optional parameter "filter": A filter to narrow down // results to a preferred subset. The filtering language accepts strings -// like "displayName=tokyo", and is documented in more detail in AIP-160 -// (https://google.aip.dev/160). +// like "displayName=tokyo", and is documented in more detail in +// AIP-160 (https://google.aip.dev/160). func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { c.urlParams_.Set("filter", filter) return c @@ -1560,7 +1560,7 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocat // ], // "parameters": { // "filter": { - // "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like \"displayName=tokyo\", and is documented in more detail in [AIP-160](https://google.aip.dev/160).", + // "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", // "location": "query", // "type": "string" // }, diff --git a/calendar/v3/calendar-api.json b/calendar/v3/calendar-api.json index 78816dfc86b..f69d44fd8b0 100644 --- a/calendar/v3/calendar-api.json +++ b/calendar/v3/calendar-api.json @@ -1723,7 +1723,7 @@ } } }, - "revision": "20220203", + "revision": "20220401", "rootUrl": "https://www.googleapis.com/", "schemas": { "Acl": { @@ -2300,7 +2300,7 @@ "type": "boolean" }, "attachments": { - "description": "File attachments for the event. Currently only Google Drive attachments are supported.\nIn order to modify attachments the supportsAttachments request parameter should be set to true.\nThere can be at most 25 attachments per event,", + "description": "File attachments for the event.\nIn order to modify attachments the supportsAttachments request parameter should be set to true.\nThere can be at most 25 attachments per event,", "items": { "$ref": "EventAttachment" }, @@ -2627,7 +2627,7 @@ "type": "string" }, "iconLink": { - "description": "URL link to the attachment's icon. Read-only.", + "description": "URL link to the attachment's icon. This field can only be modified for custom third-party attachments.", "type": "string" }, "mimeType": { diff --git a/calendar/v3/calendar-gen.go b/calendar/v3/calendar-gen.go index 04ada2c49d5..f5d3bc20ac5 100644 --- a/calendar/v3/calendar-gen.go +++ b/calendar/v3/calendar-gen.go @@ -1302,8 +1302,7 @@ type Event struct { // (deprecated). Optional. The default is False. AnyoneCanAddSelf bool `json:"anyoneCanAddSelf,omitempty"` - // Attachments: File attachments for the event. Currently only Google - // Drive attachments are supported. + // Attachments: File attachments for the event. // In order to modify attachments the supportsAttachments request // parameter should be set to true. // There can be at most 25 attachments per event, @@ -1828,7 +1827,8 @@ type EventAttachment struct { // Required when adding an attachment. FileUrl string `json:"fileUrl,omitempty"` - // IconLink: URL link to the attachment's icon. Read-only. + // IconLink: URL link to the attachment's icon. This field can only be + // modified for custom third-party attachments. IconLink string `json:"iconLink,omitempty"` // MimeType: Internet media type (MIME type) of the attachment. diff --git a/chat/v1/chat-api.json b/chat/v1/chat-api.json index 571c431560d..8599a86289a 100644 --- a/chat/v1/chat-api.json +++ b/chat/v1/chat-api.json @@ -642,7 +642,7 @@ } } }, - "revision": "20220329", + "revision": "20220405", "rootUrl": "https://chat.googleapis.com/", "schemas": { "ActionParameter": { @@ -696,7 +696,7 @@ "type": "object" }, "ActionStatus": { - "description": "Represents the status of a request.", + "description": "Represents the status for a request to either invoke or submit a [dialog](https://developers.google.com/chat/how-tos/dialogs).", "id": "ActionStatus", "properties": { "statusCode": { @@ -805,6 +805,7 @@ }, "downloadUri": { "description": "Output only. The download URL which should be used to allow a human user to download the attachment. Chat apps should not use this URL to download attachment content.", + "readOnly": true, "type": "string" }, "driveDataRef": { @@ -831,6 +832,7 @@ }, "thumbnailUri": { "description": "Output only. The thumbnail URL which should be used to preview the attachment to a human user. Chat apps should not use this URL to download attachment content.", + "readOnly": true, "type": "string" } }, @@ -1128,7 +1130,7 @@ "type": "string" }, "token": { - "description": "A secret value that Chat apps can use to verify if a request is from Google. The token is randomly generated by Google, remains static, and can be obtained from the Google Chat API configuration page in the Cloud Console. Developers can revoke/regenerate it if needed from the same page.", + "description": "A secret value that legacy Chat apps can use to verify if a request is from Google. Google randomly generates the token, and its value remains static. You can obtain, revoke, or regenerate the token from the [Chat API configuration page](https://console.cloud.google.com/apis/api/chat.googleapis.com/hangouts-chat) in the Google Cloud Console. Modern Chat apps don't use this field. It is absent from API responses and the [Chat API configuration page](https://console.cloud.google.com/apis/api/chat.googleapis.com/hangouts-chat).", "type": "string" }, "type": { @@ -2355,11 +2357,12 @@ "type": "object" }, "MatchedUrl": { - "description": "A matched url in a Chat message. Chat apps can unfurl matched URLs. For more information, refer to [Unfurl links](/chat/how-tos/link-unfurling).", + "description": "A matched url in a Chat message. Chat apps can unfurl matched URLs. For more information, refer to [Unfurl links](https://developers.google.com/chat/how-tos/link-unfurling).", "id": "MatchedUrl", "properties": { "url": { - "description": "The url that was matched.", + "description": "Output only. The url that was matched.", + "readOnly": true, "type": "string" } }, @@ -2388,7 +2391,8 @@ }, "member": { "$ref": "User", - "description": "A user in Google Chat. Represents a [person](https://developers.google.com/people/api/rest/v1/people) in the People API or a [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) in the Admin SDK Directory API. Format: `users/{user}`" + "description": "Output only. A user in Google Chat. Represents a [person](https://developers.google.com/people/api/rest/v1/people) in the People API or a [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) in the Admin SDK Directory API. Format: `users/{user}`", + "readOnly": true }, "name": { "type": "string" @@ -2609,12 +2613,12 @@ "type": "boolean" }, "threaded": { - "description": "Output only. Whether the messages are threaded in this space.", + "description": "Output only. Output only. Whether the messages are threaded in this space.", "readOnly": true, "type": "boolean" }, "type": { - "description": "Deprecated. Use `single_user_bot_dm` instead. Output only. The type of a space.", + "description": "Output only. Deprecated: Use `single_user_bot_dm` instead. Output only. The type of a space.", "enum": [ "TYPE_UNSPECIFIED", "ROOM", @@ -2625,6 +2629,7 @@ "Conversations between two or more humans.", "1:1 Direct Message between a human and a Chat app, where all messages are flat. Note that this does not include direct messages between two humans." ], + "readOnly": true, "type": "string" } }, @@ -2745,7 +2750,8 @@ "id": "User", "properties": { "displayName": { - "description": "The user's display name.", + "description": "Output only. The user's display name.", + "readOnly": true, "type": "string" }, "domainId": { @@ -2753,7 +2759,8 @@ "type": "string" }, "isAnonymous": { - "description": "When `true`, the user is deleted or their profile is not visible.", + "description": "Output only. When `true`, the user is deleted or their profile is not visible.", + "readOnly": true, "type": "boolean" }, "name": { diff --git a/chat/v1/chat-gen.go b/chat/v1/chat-gen.go index 19bca7992c5..63862671e11 100644 --- a/chat/v1/chat-gen.go +++ b/chat/v1/chat-gen.go @@ -318,7 +318,8 @@ func (s *ActionResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ActionStatus: Represents the status of a request. +// ActionStatus: Represents the status for a request to either invoke or +// submit a dialog (https://developers.google.com/chat/how-tos/dialogs). type ActionStatus struct { // StatusCode: The status code. // @@ -1059,11 +1060,14 @@ type DeprecatedEvent struct { // request for more information. ThreadKey string `json:"threadKey,omitempty"` - // Token: A secret value that Chat apps can use to verify if a request - // is from Google. The token is randomly generated by Google, remains - // static, and can be obtained from the Google Chat API configuration - // page in the Cloud Console. Developers can revoke/regenerate it if - // needed from the same page. + // Token: A secret value that legacy Chat apps can use to verify if a + // request is from Google. Google randomly generates the token, and its + // value remains static. You can obtain, revoke, or regenerate the token + // from the Chat API configuration page + // (https://console.cloud.google.com/apis/api/chat.googleapis.com/hangouts-chat) + // in the Google Cloud Console. Modern Chat apps don't use this field. + // It is absent from API responses and the Chat API configuration page + // (https://console.cloud.google.com/apis/api/chat.googleapis.com/hangouts-chat). Token string `json:"token,omitempty"` // Type: The type of the event. @@ -2946,9 +2950,9 @@ func (s *ListSpacesResponse) MarshalJSON() ([]byte, error) { // MatchedUrl: A matched url in a Chat message. Chat apps can unfurl // matched URLs. For more information, refer to Unfurl links -// (/chat/how-tos/link-unfurling). +// (https://developers.google.com/chat/how-tos/link-unfurling). type MatchedUrl struct { - // Url: The url that was matched. + // Url: Output only. The url that was matched. Url string `json:"url,omitempty"` // ForceSendFields is a list of field names (e.g. "Url") to @@ -3012,7 +3016,7 @@ type Membership struct { // the time at which the member joined the space, if applicable. CreateTime string `json:"createTime,omitempty"` - // Member: A user in Google Chat. Represents a person + // Member: Output only. A user in Google Chat. Represents a person // (https://developers.google.com/people/api/rest/v1/people) in the // People API or a user // (https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) @@ -3332,12 +3336,12 @@ type Space struct { // Chat app and a single human. SingleUserBotDm bool `json:"singleUserBotDm,omitempty"` - // Threaded: Output only. Whether the messages are threaded in this - // space. + // Threaded: Output only. Output only. Whether the messages are threaded + // in this space. Threaded bool `json:"threaded,omitempty"` - // Type: Deprecated. Use `single_user_bot_dm` instead. Output only. The - // type of a space. + // Type: Output only. Deprecated: Use `single_user_bot_dm` instead. + // Output only. The type of a space. // // Possible values: // "TYPE_UNSPECIFIED" @@ -3603,14 +3607,14 @@ func (s *TimeZone) MarshalJSON() ([]byte, error) { // User: A user in Google Chat. type User struct { - // DisplayName: The user's display name. + // DisplayName: Output only. The user's display name. DisplayName string `json:"displayName,omitempty"` // DomainId: Unique identifier of the user's Google Workspace domain. DomainId string `json:"domainId,omitempty"` - // IsAnonymous: When `true`, the user is deleted or their profile is not - // visible. + // IsAnonymous: Output only. When `true`, the user is deleted or their + // profile is not visible. IsAnonymous bool `json:"isAnonymous,omitempty"` // Name: Resource name for a Google Chat user. Represents a person diff --git a/clouddeploy/v1/clouddeploy-api.json b/clouddeploy/v1/clouddeploy-api.json index bd7a19283b6..a7351c29744 100644 --- a/clouddeploy/v1/clouddeploy-api.json +++ b/clouddeploy/v1/clouddeploy-api.json @@ -1201,7 +1201,7 @@ } } }, - "revision": "20220314", + "revision": "20220330", "rootUrl": "https://clouddeploy.googleapis.com/", "schemas": { "AnthosCluster": { @@ -1444,7 +1444,7 @@ "type": "object" }, "Empty": { - "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", + "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" diff --git a/clouddeploy/v1/clouddeploy-gen.go b/clouddeploy/v1/clouddeploy-gen.go index 62e4d9990a2..a2c98aed904 100644 --- a/clouddeploy/v1/clouddeploy-gen.go +++ b/clouddeploy/v1/clouddeploy-gen.go @@ -702,8 +702,7 @@ func (s *DeliveryPipeline) MarshalJSON() ([]byte, error) { // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For // instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } The JSON representation for `Empty` is -// empty JSON object `{}`. +// (google.protobuf.Empty); } type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. diff --git a/cloudkms/v1/cloudkms-api.json b/cloudkms/v1/cloudkms-api.json index 5cd9610bdde..d14b7fc9add 100644 --- a/cloudkms/v1/cloudkms-api.json +++ b/cloudkms/v1/cloudkms-api.json @@ -177,7 +177,7 @@ ], "parameters": { "filter": { - "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like \"displayName=tokyo\", and is documented in more detail in [AIP-160](https://google.aip.dev/160).", + "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", "location": "query", "type": "string" }, @@ -1582,7 +1582,7 @@ } } }, - "revision": "20220325", + "revision": "20220407", "rootUrl": "https://cloudkms.googleapis.com/", "schemas": { "AsymmetricDecryptRequest": { diff --git a/cloudkms/v1/cloudkms-gen.go b/cloudkms/v1/cloudkms-gen.go index 6cb593d95f5..d2a9184889d 100644 --- a/cloudkms/v1/cloudkms-gen.go +++ b/cloudkms/v1/cloudkms-gen.go @@ -3415,8 +3415,8 @@ func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall // Filter sets the optional parameter "filter": A filter to narrow down // results to a preferred subset. The filtering language accepts strings -// like "displayName=tokyo", and is documented in more detail in AIP-160 -// (https://google.aip.dev/160). +// like "displayName=tokyo", and is documented in more detail in +// AIP-160 (https://google.aip.dev/160). func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { c.urlParams_.Set("filter", filter) return c @@ -3545,7 +3545,7 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocat // ], // "parameters": { // "filter": { - // "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like \"displayName=tokyo\", and is documented in more detail in [AIP-160](https://google.aip.dev/160).", + // "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", // "location": "query", // "type": "string" // }, diff --git a/documentai/v1/documentai-api.json b/documentai/v1/documentai-api.json index 8940aea0b7d..e588dce6b22 100644 --- a/documentai/v1/documentai-api.json +++ b/documentai/v1/documentai-api.json @@ -198,7 +198,7 @@ ], "parameters": { "filter": { - "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like \"displayName=tokyo\", and is documented in more detail in [AIP-160](https://google.aip.dev/160).", + "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", "location": "query", "type": "string" }, @@ -894,7 +894,7 @@ ], "parameters": { "filter": { - "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like \"displayName=tokyo\", and is documented in more detail in [AIP-160](https://google.aip.dev/160).", + "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", "location": "query", "type": "string" }, @@ -1029,7 +1029,7 @@ } } }, - "revision": "20220326", + "revision": "20220401", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata": { @@ -3180,7 +3180,7 @@ "type": "object" }, "GoogleCloudDocumentaiV1ProcessorVersion": { - "description": "A processor version is an implementation of a processor. Each processor can have multiple versions, pre-trained by Google internally or up-trained by the customer. At a time, a processor can only have one default version version. So the processor's behavior (when processing documents) is defined by a default version.", + "description": "A processor version is an implementation of a processor. Each processor can have multiple versions, pre-trained by Google internally or up-trained by the customer. At a time, a processor can only have one default version version. So the processor's behavior (when processing documents) is defined by a default version", "id": "GoogleCloudDocumentaiV1ProcessorVersion", "properties": { "createTime": { diff --git a/documentai/v1/documentai-gen.go b/documentai/v1/documentai-gen.go index b113955d6ef..70ebb898587 100644 --- a/documentai/v1/documentai-gen.go +++ b/documentai/v1/documentai-gen.go @@ -3967,7 +3967,7 @@ func (s *GoogleCloudDocumentaiV1ProcessorTypeLocationInfo) MarshalJSON() ([]byte // versions, pre-trained by Google internally or up-trained by the // customer. At a time, a processor can only have one default version // version. So the processor's behavior (when processing documents) is -// defined by a default version. +// defined by a default version type GoogleCloudDocumentaiV1ProcessorVersion struct { // CreateTime: The time the processor version was created. CreateTime string `json:"createTime,omitempty"` @@ -9980,8 +9980,8 @@ func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall // Filter sets the optional parameter "filter": A filter to narrow down // results to a preferred subset. The filtering language accepts strings -// like "displayName=tokyo", and is documented in more detail in AIP-160 -// (https://google.aip.dev/160). +// like "displayName=tokyo", and is documented in more detail in +// AIP-160 (https://google.aip.dev/160). func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { c.urlParams_.Set("filter", filter) return c @@ -10112,7 +10112,7 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleClo // ], // "parameters": { // "filter": { - // "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like \"displayName=tokyo\", and is documented in more detail in [AIP-160](https://google.aip.dev/160).", + // "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", // "location": "query", // "type": "string" // }, @@ -13540,8 +13540,8 @@ func (r *Uiv1beta3ProjectsLocationsService) List(name string) *Uiv1beta3Projects // Filter sets the optional parameter "filter": A filter to narrow down // results to a preferred subset. The filtering language accepts strings -// like "displayName=tokyo", and is documented in more detail in AIP-160 -// (https://google.aip.dev/160). +// like "displayName=tokyo", and is documented in more detail in +// AIP-160 (https://google.aip.dev/160). func (c *Uiv1beta3ProjectsLocationsListCall) Filter(filter string) *Uiv1beta3ProjectsLocationsListCall { c.urlParams_.Set("filter", filter) return c @@ -13672,7 +13672,7 @@ func (c *Uiv1beta3ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (* // ], // "parameters": { // "filter": { - // "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like \"displayName=tokyo\", and is documented in more detail in [AIP-160](https://google.aip.dev/160).", + // "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", // "location": "query", // "type": "string" // }, diff --git a/documentai/v1beta3/documentai-api.json b/documentai/v1beta3/documentai-api.json index 6a9ce968727..cb36e62ffb1 100644 --- a/documentai/v1beta3/documentai-api.json +++ b/documentai/v1beta3/documentai-api.json @@ -169,7 +169,7 @@ ], "parameters": { "filter": { - "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like \"displayName=tokyo\", and is documented in more detail in [AIP-160](https://google.aip.dev/160).", + "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", "location": "query", "type": "string" }, @@ -796,7 +796,7 @@ } } }, - "revision": "20220326", + "revision": "20220401", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata": { @@ -5754,7 +5754,7 @@ "type": "object" }, "GoogleCloudDocumentaiV1beta3ProcessorVersion": { - "description": "A processor version is an implementation of a processor. Each processor can have multiple versions, pre-trained by Google internally or up-trained by the customer. At a time, a processor can only have one default version version. So the processor's behavior (when processing documents) is defined by a default version.", + "description": "A processor version is an implementation of a processor. Each processor can have multiple versions, pre-trained by Google internally or up-trained by the customer. At a time, a processor can only have one default version version. So the processor's behavior (when processing documents) is defined by a default version", "id": "GoogleCloudDocumentaiV1beta3ProcessorVersion", "properties": { "createTime": { diff --git a/documentai/v1beta3/documentai-gen.go b/documentai/v1beta3/documentai-gen.go index 0f201f6ccd5..aaa8b025066 100644 --- a/documentai/v1beta3/documentai-gen.go +++ b/documentai/v1beta3/documentai-gen.go @@ -8485,7 +8485,7 @@ func (s *GoogleCloudDocumentaiV1beta3ProcessorTypeLocationInfo) MarshalJSON() ([ // versions, pre-trained by Google internally or up-trained by the // customer. At a time, a processor can only have one default version // version. So the processor's behavior (when processing documents) is -// defined by a default version. +// defined by a default version type GoogleCloudDocumentaiV1beta3ProcessorVersion struct { // CreateTime: The time the processor version was created. CreateTime string `json:"createTime,omitempty"` @@ -9861,8 +9861,8 @@ func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall // Filter sets the optional parameter "filter": A filter to narrow down // results to a preferred subset. The filtering language accepts strings -// like "displayName=tokyo", and is documented in more detail in AIP-160 -// (https://google.aip.dev/160). +// like "displayName=tokyo", and is documented in more detail in +// AIP-160 (https://google.aip.dev/160). func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { c.urlParams_.Set("filter", filter) return c @@ -9993,7 +9993,7 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleClo // ], // "parameters": { // "filter": { - // "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like \"displayName=tokyo\", and is documented in more detail in [AIP-160](https://google.aip.dev/160).", + // "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", // "location": "query", // "type": "string" // }, diff --git a/gkehub/v1alpha/gkehub-api.json b/gkehub/v1alpha/gkehub-api.json index 53f473c778b..5ab1fd82a27 100644 --- a/gkehub/v1alpha/gkehub-api.json +++ b/gkehub/v1alpha/gkehub-api.json @@ -186,7 +186,7 @@ ], "parameters": { "filter": { - "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like \"displayName=tokyo\", and is documented in more detail in [AIP-160](https://google.aip.dev/160).", + "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", "location": "query", "type": "string" }, @@ -1139,7 +1139,7 @@ } } }, - "revision": "20220318", + "revision": "20220401", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AnthosObservabilityFeatureSpec": { @@ -2484,7 +2484,7 @@ "type": "string" }, "clientSecret": { - "description": "Unencrypted OIDC client secret will be passed to the GKE Hub CLH.", + "description": "Input only. Unencrypted OIDC client secret will be passed to the GKE Hub CLH.", "type": "string" }, "deployCloudConsoleProxy": { diff --git a/gkehub/v1alpha/gkehub-gen.go b/gkehub/v1alpha/gkehub-gen.go index 164d99e65d1..e570f555777 100644 --- a/gkehub/v1alpha/gkehub-gen.go +++ b/gkehub/v1alpha/gkehub-gen.go @@ -2433,8 +2433,8 @@ type IdentityServiceOidcConfig struct { // ClientId: ID for OIDC client application. ClientId string `json:"clientId,omitempty"` - // ClientSecret: Unencrypted OIDC client secret will be passed to the - // GKE Hub CLH. + // ClientSecret: Input only. Unencrypted OIDC client secret will be + // passed to the GKE Hub CLH. ClientSecret string `json:"clientSecret,omitempty"` // DeployCloudConsoleProxy: Flag to denote if reverse proxy is used to @@ -4812,8 +4812,8 @@ func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall // Filter sets the optional parameter "filter": A filter to narrow down // results to a preferred subset. The filtering language accepts strings -// like "displayName=tokyo", and is documented in more detail in AIP-160 -// (https://google.aip.dev/160). +// like "displayName=tokyo", and is documented in more detail in +// AIP-160 (https://google.aip.dev/160). func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { c.urlParams_.Set("filter", filter) return c @@ -4942,7 +4942,7 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocat // ], // "parameters": { // "filter": { - // "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like \"displayName=tokyo\", and is documented in more detail in [AIP-160](https://google.aip.dev/160).", + // "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", // "location": "query", // "type": "string" // }, diff --git a/gkehub/v1alpha2/gkehub-api.json b/gkehub/v1alpha2/gkehub-api.json index 1569dfbaa8f..f51b2fd1154 100644 --- a/gkehub/v1alpha2/gkehub-api.json +++ b/gkehub/v1alpha2/gkehub-api.json @@ -144,7 +144,7 @@ ], "parameters": { "filter": { - "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like \"displayName=tokyo\", and is documented in more detail in [AIP-160](https://google.aip.dev/160).", + "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", "location": "query", "type": "string" }, @@ -652,7 +652,7 @@ } } }, - "revision": "20220318", + "revision": "20220401", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AuditConfig": { diff --git a/gkehub/v1alpha2/gkehub-gen.go b/gkehub/v1alpha2/gkehub-gen.go index bd3720e5bfb..2475e606f25 100644 --- a/gkehub/v1alpha2/gkehub-gen.go +++ b/gkehub/v1alpha2/gkehub-gen.go @@ -1902,8 +1902,8 @@ func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall // Filter sets the optional parameter "filter": A filter to narrow down // results to a preferred subset. The filtering language accepts strings -// like "displayName=tokyo", and is documented in more detail in AIP-160 -// (https://google.aip.dev/160). +// like "displayName=tokyo", and is documented in more detail in +// AIP-160 (https://google.aip.dev/160). func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { c.urlParams_.Set("filter", filter) return c @@ -2032,7 +2032,7 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocat // ], // "parameters": { // "filter": { - // "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like \"displayName=tokyo\", and is documented in more detail in [AIP-160](https://google.aip.dev/160).", + // "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", // "location": "query", // "type": "string" // }, diff --git a/gkehub/v2alpha/gkehub-api.json b/gkehub/v2alpha/gkehub-api.json index 3e3c1367ef6..126c9af5418 100644 --- a/gkehub/v2alpha/gkehub-api.json +++ b/gkehub/v2alpha/gkehub-api.json @@ -144,7 +144,7 @@ ], "parameters": { "filter": { - "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like \"displayName=tokyo\", and is documented in more detail in [AIP-160](https://google.aip.dev/160).", + "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", "location": "query", "type": "string" }, @@ -280,7 +280,7 @@ } } }, - "revision": "20220318", + "revision": "20220401", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "CancelOperationRequest": { diff --git a/gkehub/v2alpha/gkehub-gen.go b/gkehub/v2alpha/gkehub-gen.go index f4913d847d6..bfcb3dba754 100644 --- a/gkehub/v2alpha/gkehub-gen.go +++ b/gkehub/v2alpha/gkehub-gen.go @@ -586,8 +586,8 @@ func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall // Filter sets the optional parameter "filter": A filter to narrow down // results to a preferred subset. The filtering language accepts strings -// like "displayName=tokyo", and is documented in more detail in AIP-160 -// (https://google.aip.dev/160). +// like "displayName=tokyo", and is documented in more detail in +// AIP-160 (https://google.aip.dev/160). func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { c.urlParams_.Set("filter", filter) return c @@ -716,7 +716,7 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocat // ], // "parameters": { // "filter": { - // "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like \"displayName=tokyo\", and is documented in more detail in [AIP-160](https://google.aip.dev/160).", + // "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", // "location": "query", // "type": "string" // }, diff --git a/iam/v1/iam-api.json b/iam/v1/iam-api.json index 862bcee7120..24824d069fc 100644 --- a/iam/v1/iam-api.json +++ b/iam/v1/iam-api.json @@ -1790,7 +1790,7 @@ ] }, "upload": { - "description": "Creates a ServiceAccountKey, using a public key that you provide.", + "description": "Uploads the public key portion of a key pair that you manage, and associates the public key with a ServiceAccount. After you upload the public key, you can use the private key from the key pair as a service account key.", "flatPath": "v1/projects/{projectsId}/serviceAccounts/{serviceAccountsId}/keys:upload", "httpMethod": "POST", "id": "iam.projects.serviceAccounts.keys.upload", @@ -1921,7 +1921,7 @@ } } }, - "revision": "20220324", + "revision": "20220331", "rootUrl": "https://iam.googleapis.com/", "schemas": { "AdminAuditData": { @@ -3030,7 +3030,7 @@ "id": "UploadServiceAccountKeyRequest", "properties": { "publicKeyData": { - "description": "A field that allows clients to upload their own public key. If set, use this public key data to create a service account key for given service account. Please note, the expected format for this field is X509_PEM.", + "description": "The public key to associate with the service account. Must be an RSA public key that is wrapped in an X.509 v3 certificate. Include the first line, `-----BEGIN CERTIFICATE-----`, and the last line, `-----END CERTIFICATE-----`.", "format": "byte", "type": "string" } diff --git a/iam/v1/iam-gen.go b/iam/v1/iam-gen.go index f64240d12f5..c4185d5feb7 100644 --- a/iam/v1/iam-gen.go +++ b/iam/v1/iam-gen.go @@ -2567,10 +2567,10 @@ type UndeleteWorkloadIdentityPoolRequest struct { // UploadServiceAccountKeyRequest: The service account key upload // request. type UploadServiceAccountKeyRequest struct { - // PublicKeyData: A field that allows clients to upload their own public - // key. If set, use this public key data to create a service account key - // for given service account. Please note, the expected format for this - // field is X509_PEM. + // PublicKeyData: The public key to associate with the service account. + // Must be an RSA public key that is wrapped in an X.509 v3 certificate. + // Include the first line, `-----BEGIN CERTIFICATE-----`, and the last + // line, `-----END CERTIFICATE-----`. PublicKeyData string `json:"publicKeyData,omitempty"` // ForceSendFields is a list of field names (e.g. "PublicKeyData") to @@ -11489,8 +11489,10 @@ type ProjectsServiceAccountsKeysUploadCall struct { header_ http.Header } -// Upload: Creates a ServiceAccountKey, using a public key that you -// provide. +// Upload: Uploads the public key portion of a key pair that you manage, +// and associates the public key with a ServiceAccount. After you upload +// the public key, you can use the private key from the key pair as a +// service account key. // // - name: The resource name of the service account in the following // format: `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. Using @@ -11595,7 +11597,7 @@ func (c *ProjectsServiceAccountsKeysUploadCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Creates a ServiceAccountKey, using a public key that you provide.", + // "description": "Uploads the public key portion of a key pair that you manage, and associates the public key with a ServiceAccount. After you upload the public key, you can use the private key from the key pair as a service account key.", // "flatPath": "v1/projects/{projectsId}/serviceAccounts/{serviceAccountsId}/keys:upload", // "httpMethod": "POST", // "id": "iam.projects.serviceAccounts.keys.upload", diff --git a/metastore/v1beta/metastore-api.json b/metastore/v1beta/metastore-api.json index b638ebe3bf1..7fa4963ef6e 100644 --- a/metastore/v1beta/metastore-api.json +++ b/metastore/v1beta/metastore-api.json @@ -1198,7 +1198,7 @@ } } }, - "revision": "20220205", + "revision": "20220331", "rootUrl": "https://metastore.googleapis.com/", "schemas": { "AuditConfig": { @@ -1438,7 +1438,7 @@ "type": "object" }, "Empty": { - "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for Empty is empty JSON object {}.", + "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" diff --git a/metastore/v1beta/metastore-gen.go b/metastore/v1beta/metastore-gen.go index 6b79e974357..65278ef4066 100644 --- a/metastore/v1beta/metastore-gen.go +++ b/metastore/v1beta/metastore-gen.go @@ -661,8 +661,7 @@ func (s *DataplexConfig) MarshalJSON() ([]byte, error) { // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For // instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } The JSON representation for Empty is empty -// JSON object {}. +// (google.protobuf.Empty); } type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. diff --git a/mybusinessqanda/v1/mybusinessqanda-api.json b/mybusinessqanda/v1/mybusinessqanda-api.json index 6a22b1e7016..43b51a255b6 100644 --- a/mybusinessqanda/v1/mybusinessqanda-api.json +++ b/mybusinessqanda/v1/mybusinessqanda-api.json @@ -147,28 +147,6 @@ "$ref": "Empty" } }, - "deleteAnswers": { - "description": "Deletes the answer written by the current user to a question.", - "flatPath": "v1/locations/{locationsId}/questions/{questionsId}/answers", - "httpMethod": "DELETE", - "id": "mybusinessqanda.locations.questions.deleteAnswers", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the question to delete an answer for.", - "location": "path", - "pattern": "^locations/[^/]+/questions/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}/answers", - "response": { - "$ref": "Empty" - } - }, "list": { "description": "Returns the paginated list of questions and some of its answers for a specified location. This operation is only valid if the specified location is verified.", "flatPath": "v1/locations/{locationsId}/questions", @@ -253,6 +231,28 @@ "resources": { "answers": { "methods": { + "delete": { + "description": "Deletes the answer written by the current user to a question.", + "flatPath": "v1/locations/{locationsId}/questions/{questionsId}/answers:delete", + "httpMethod": "DELETE", + "id": "mybusinessqanda.locations.questions.answers.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the question to delete an answer for.", + "location": "path", + "pattern": "^locations/[^/]+/questions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}/answers:delete", + "response": { + "$ref": "Empty" + } + }, "list": { "description": "Returns the paginated list of answers for a specified question.", "flatPath": "v1/locations/{locationsId}/questions/{questionsId}/answers", @@ -281,12 +281,12 @@ "parent": { "description": "Required. The name of the question to fetch answers for.", "location": "path", - "pattern": "^locations/[^/]+/questions/[^/]+/answers$", + "pattern": "^locations/[^/]+/questions/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+parent}", + "path": "v1/{+parent}/answers", "response": { "$ref": "ListAnswersResponse" } @@ -323,7 +323,7 @@ } } }, - "revision": "20220322", + "revision": "20220407", "rootUrl": "https://mybusinessqanda.googleapis.com/", "schemas": { "Answer": { diff --git a/mybusinessqanda/v1/mybusinessqanda-gen.go b/mybusinessqanda/v1/mybusinessqanda-gen.go index e344677b461..204c950cedd 100644 --- a/mybusinessqanda/v1/mybusinessqanda-gen.go +++ b/mybusinessqanda/v1/mybusinessqanda-gen.go @@ -706,136 +706,6 @@ func (c *LocationsQuestionsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, } -// method id "mybusinessqanda.locations.questions.deleteAnswers": - -type LocationsQuestionsDeleteAnswersCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// DeleteAnswers: Deletes the answer written by the current user to a -// question. -// -// - name: The name of the question to delete an answer for. -func (r *LocationsQuestionsService) DeleteAnswers(name string) *LocationsQuestionsDeleteAnswersCall { - c := &LocationsQuestionsDeleteAnswersCall{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 *LocationsQuestionsDeleteAnswersCall) Fields(s ...googleapi.Field) *LocationsQuestionsDeleteAnswersCall { - 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 *LocationsQuestionsDeleteAnswersCall) Context(ctx context.Context) *LocationsQuestionsDeleteAnswersCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *LocationsQuestionsDeleteAnswersCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *LocationsQuestionsDeleteAnswersCall) 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}/answers") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "mybusinessqanda.locations.questions.deleteAnswers" 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 *LocationsQuestionsDeleteAnswersCall) Do(opts ...googleapi.CallOption) (*Empty, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, &googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - } - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - ret := &Empty{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Deletes the answer written by the current user to a question.", - // "flatPath": "v1/locations/{locationsId}/questions/{questionsId}/answers", - // "httpMethod": "DELETE", - // "id": "mybusinessqanda.locations.questions.deleteAnswers", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name of the question to delete an answer for.", - // "location": "path", - // "pattern": "^locations/[^/]+/questions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}/answers", - // "response": { - // "$ref": "Empty" - // } - // } - -} - // method id "mybusinessqanda.locations.questions.list": type LocationsQuestionsListCall struct { @@ -1223,6 +1093,135 @@ func (c *LocationsQuestionsPatchCall) Do(opts ...googleapi.CallOption) (*Questio } +// method id "mybusinessqanda.locations.questions.answers.delete": + +type LocationsQuestionsAnswersDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes the answer written by the current user to a question. +// +// - name: The name of the question to delete an answer for. +func (r *LocationsQuestionsAnswersService) Delete(name string) *LocationsQuestionsAnswersDeleteCall { + c := &LocationsQuestionsAnswersDeleteCall{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 *LocationsQuestionsAnswersDeleteCall) Fields(s ...googleapi.Field) *LocationsQuestionsAnswersDeleteCall { + 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 *LocationsQuestionsAnswersDeleteCall) Context(ctx context.Context) *LocationsQuestionsAnswersDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *LocationsQuestionsAnswersDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *LocationsQuestionsAnswersDeleteCall) 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}/answers:delete") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "mybusinessqanda.locations.questions.answers.delete" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *LocationsQuestionsAnswersDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes the answer written by the current user to a question.", + // "flatPath": "v1/locations/{locationsId}/questions/{questionsId}/answers:delete", + // "httpMethod": "DELETE", + // "id": "mybusinessqanda.locations.questions.answers.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the question to delete an answer for.", + // "location": "path", + // "pattern": "^locations/[^/]+/questions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}/answers:delete", + // "response": { + // "$ref": "Empty" + // } + // } + +} + // method id "mybusinessqanda.locations.questions.answers.list": type LocationsQuestionsAnswersListCall struct { @@ -1315,7 +1314,7 @@ func (c *LocationsQuestionsAnswersListCall) doRequest(alt string) (*http.Respons var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/answers") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -1393,12 +1392,12 @@ func (c *LocationsQuestionsAnswersListCall) Do(opts ...googleapi.CallOption) (*L // "parent": { // "description": "Required. The name of the question to fetch answers for.", // "location": "path", - // "pattern": "^locations/[^/]+/questions/[^/]+/answers$", + // "pattern": "^locations/[^/]+/questions/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}", + // "path": "v1/{+parent}/answers", // "response": { // "$ref": "ListAnswersResponse" // } diff --git a/networkservices/v1beta1/networkservices-api.json b/networkservices/v1beta1/networkservices-api.json index aafb78b7835..a70fd30aeb9 100644 --- a/networkservices/v1beta1/networkservices-api.json +++ b/networkservices/v1beta1/networkservices-api.json @@ -144,7 +144,7 @@ ], "parameters": { "filter": { - "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like \"displayName=tokyo\", and is documented in more detail in [AIP-160](https://google.aip.dev/160).", + "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", "location": "query", "type": "string" }, @@ -1498,40 +1498,6 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, - "patch": { - "description": "Updates the parameters of a single ServiceBinding.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/serviceBindings/{serviceBindingsId}", - "httpMethod": "PATCH", - "id": "networkservices.projects.locations.serviceBindings.patch", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. Name of the ServiceBinding resource. It matches pattern `projects/*/locations/global/serviceBindings/service_binding_name\u003e`.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/serviceBindings/[^/]+$", - "required": true, - "type": "string" - }, - "updateMask": { - "description": "Optional. Field mask is used to specify the fields to be overwritten in the ServiceBinding resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.", - "format": "google-fieldmask", - "location": "query", - "type": "string" - } - }, - "path": "v1beta1/{+name}", - "request": { - "$ref": "ServiceBinding" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, "setIamPolicy": { "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/serviceBindings/{serviceBindingsId}:setIamPolicy", @@ -1909,7 +1875,7 @@ } } }, - "revision": "20220309", + "revision": "20220404", "rootUrl": "https://networkservices.googleapis.com/", "schemas": { "AuditConfig": { @@ -1969,7 +1935,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", "items": { "type": "string" }, @@ -1989,7 +1955,7 @@ "type": "object" }, "Empty": { - "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", + "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" @@ -3367,10 +3333,6 @@ "description": "Optional. A free-text description of the resource. Max length 1024 characters.", "type": "string" }, - "endpointFilter": { - "description": "Optional. The endpoint filter associated with the Service Binding. The syntax is described in http://cloud/service-directory/docs/reference/rpc/google.cloud.servicedirectory.v1#google.cloud.servicedirectory.v1.ResolveServiceRequest", - "type": "string" - }, "labels": { "additionalProperties": { "type": "string" @@ -3401,7 +3363,7 @@ "properties": { "policy": { "$ref": "Policy", - "description": "REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them." + "description": "REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud services (such as Projects) might reject them." }, "updateMask": { "description": "OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the mask will be modified. If no mask is provided, the following default mask is used: `paths: \"bindings, etag\"`", @@ -3570,7 +3532,7 @@ "id": "TestIamPermissionsRequest", "properties": { "permissions": { - "description": "The set of permissions to check for the `resource`. Permissions with wildcards (such as '*' or 'storage.*') are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).", + "description": "The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).", "items": { "type": "string" }, @@ -3677,7 +3639,7 @@ "type": "object" }, "TlsRouteRouteMatch": { - "description": "RouteMatch defines the predicate used to match requests to a given action. Multiple match types are “AND”ed for evaluation. If no routeMatch field is specified, this rule will unconditionally match traffic.", + "description": "RouteMatch defines the predicate used to match requests to a given action. Multiple match types are \"AND\"ed for evaluation. If no routeMatch field is specified, this rule will unconditionally match traffic.", "id": "TlsRouteRouteMatch", "properties": { "alpn": { @@ -3706,7 +3668,7 @@ "description": "Required. The detailed rule defining how to route matched traffic." }, "matches": { - "description": "Required. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are “OR”ed for evaluation.", + "description": "Required. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are \"OR\"ed for evaluation.", "items": { "$ref": "TlsRouteRouteMatch" }, diff --git a/networkservices/v1beta1/networkservices-gen.go b/networkservices/v1beta1/networkservices-gen.go index 672683e6e56..8b80e26e447 100644 --- a/networkservices/v1beta1/networkservices-gen.go +++ b/networkservices/v1beta1/networkservices-gen.go @@ -375,8 +375,8 @@ type Binding struct { // (https://cloud.google.com/iam/help/conditions/resource-policies). Condition *Expr `json:"condition,omitempty"` - // Members: Specifies the principals requesting access for a Cloud - // Platform resource. `members` can have the following values: * + // Members: Specifies the principals requesting access for a Google + // Cloud resource. `members` can have the following values: * // `allUsers`: A special identifier that represents anyone who is on the // internet; with or without a Google account. * // `allAuthenticatedUsers`: A special identifier that represents anyone @@ -445,8 +445,7 @@ type CancelOperationRequest struct { // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For // instance: service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } The JSON representation for `Empty` is -// empty JSON object `{}`. +// (google.protobuf.Empty); } type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. @@ -2869,11 +2868,6 @@ type ServiceBinding struct { // length 1024 characters. Description string `json:"description,omitempty"` - // EndpointFilter: Optional. The endpoint filter associated with the - // Service Binding. The syntax is described in - // http://cloud/service-directory/docs/reference/rpc/google.cloud.servicedirectory.v1#google.cloud.servicedirectory.v1.ResolveServiceRequest - EndpointFilter string `json:"endpointFilter,omitempty"` - // Labels: Optional. Set of label tags associated with the // ServiceBinding resource. Labels map[string]string `json:"labels,omitempty"` @@ -2921,7 +2915,7 @@ func (s *ServiceBinding) MarshalJSON() ([]byte, error) { type SetIamPolicyRequest struct { // Policy: REQUIRED: The complete policy to be applied to the // `resource`. The size of the policy is limited to a few 10s of KB. An - // empty policy is a valid policy but certain Cloud Platform services + // empty policy is a valid policy but certain Google Cloud services // (such as Projects) might reject them. Policy *Policy `json:"policy,omitempty"` @@ -3224,7 +3218,7 @@ func (s *TcpRouteRouteRule) MarshalJSON() ([]byte, error) { // method. type TestIamPermissionsRequest struct { // Permissions: The set of permissions to check for the `resource`. - // Permissions with wildcards (such as '*' or 'storage.*') are not + // Permissions with wildcards (such as `*` or `storage.*`) are not // allowed. For more information see IAM Overview // (https://cloud.google.com/iam/docs/overview#permissions). Permissions []string `json:"permissions,omitempty"` @@ -3418,7 +3412,7 @@ func (s *TlsRouteRouteDestination) MarshalJSON() ([]byte, error) { } // TlsRouteRouteMatch: RouteMatch defines the predicate used to match -// requests to a given action. Multiple match types are “AND”ed for +// requests to a given action. Multiple match types are "AND"ed for // evaluation. If no routeMatch field is specified, this rule will // unconditionally match traffic. type TlsRouteRouteMatch struct { @@ -3466,7 +3460,7 @@ type TlsRouteRouteRule struct { Action *TlsRouteRouteAction `json:"action,omitempty"` // Matches: Required. RouteMatch defines the predicate used to match - // requests to a given action. Multiple match types are “OR”ed for + // requests to a given action. Multiple match types are "OR"ed for // evaluation. Matches []*TlsRouteRouteMatch `json:"matches,omitempty"` @@ -3694,8 +3688,8 @@ func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall // Filter sets the optional parameter "filter": A filter to narrow down // results to a preferred subset. The filtering language accepts strings -// like "displayName=tokyo", and is documented in more detail in AIP-160 -// (https://google.aip.dev/160). +// like "displayName=tokyo", and is documented in more detail in +// AIP-160 (https://google.aip.dev/160). func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { c.urlParams_.Set("filter", filter) return c @@ -3824,7 +3818,7 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocat // ], // "parameters": { // "filter": { - // "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like \"displayName=tokyo\", and is documented in more detail in [AIP-160](https://google.aip.dev/160).", + // "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", // "location": "query", // "type": "string" // }, @@ -10691,166 +10685,6 @@ func (c *ProjectsLocationsServiceBindingsListCall) Pages(ctx context.Context, f } } -// method id "networkservices.projects.locations.serviceBindings.patch": - -type ProjectsLocationsServiceBindingsPatchCall struct { - s *Service - name string - servicebinding *ServiceBinding - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Patch: Updates the parameters of a single ServiceBinding. -// -// - name: Name of the ServiceBinding resource. It matches pattern -// `projects/*/locations/global/serviceBindings/service_binding_name>`. -func (r *ProjectsLocationsServiceBindingsService) Patch(name string, servicebinding *ServiceBinding) *ProjectsLocationsServiceBindingsPatchCall { - c := &ProjectsLocationsServiceBindingsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.servicebinding = servicebinding - return c -} - -// UpdateMask sets the optional parameter "updateMask": Field mask is -// used to specify the fields to be overwritten in the ServiceBinding -// resource by the update. The fields specified in the update_mask are -// relative to the resource, not the full request. A field will be -// overwritten if it is in the mask. If the user does not provide a mask -// then all fields will be overwritten. -func (c *ProjectsLocationsServiceBindingsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsServiceBindingsPatchCall { - 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 *ProjectsLocationsServiceBindingsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsServiceBindingsPatchCall { - 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 *ProjectsLocationsServiceBindingsPatchCall) Context(ctx context.Context) *ProjectsLocationsServiceBindingsPatchCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsServiceBindingsPatchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsServiceBindingsPatchCall) 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.servicebinding) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "networkservices.projects.locations.serviceBindings.patch" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsServiceBindingsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, &googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - } - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, err - } - ret := &Operation{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Updates the parameters of a single ServiceBinding.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/serviceBindings/{serviceBindingsId}", - // "httpMethod": "PATCH", - // "id": "networkservices.projects.locations.serviceBindings.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. Name of the ServiceBinding resource. It matches pattern `projects/*/locations/global/serviceBindings/service_binding_name\u003e`.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/serviceBindings/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Optional. Field mask is used to specify the fields to be overwritten in the ServiceBinding resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "request": { - // "$ref": "ServiceBinding" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - // method id "networkservices.projects.locations.serviceBindings.setIamPolicy": type ProjectsLocationsServiceBindingsSetIamPolicyCall struct { diff --git a/servicenetworking/v1beta/servicenetworking-api.json b/servicenetworking/v1beta/servicenetworking-api.json index cdc7f4878af..231593b63d7 100644 --- a/servicenetworking/v1beta/servicenetworking-api.json +++ b/servicenetworking/v1beta/servicenetworking-api.json @@ -307,7 +307,7 @@ } } }, - "revision": "20220129", + "revision": "20220406", "rootUrl": "https://servicenetworking.googleapis.com/", "schemas": { "AddDnsRecordSetMetadata": { @@ -477,7 +477,7 @@ "type": "string" }, "jwtLocations": { - "description": "Defines the locations to extract the JWT. JWT locations can be either from HTTP headers or URL query parameters. The rule is that the first match wins. The checking order is: checking all headers first, then URL query parameters. If not specified, default to use following 3 locations: 1) Authorization: Bearer 2) x-goog-iap-jwt-assertion 3) access_token query parameter Default locations can be specified as followings: jwt_locations: - header: Authorization value_prefix: \"Bearer \" - header: x-goog-iap-jwt-assertion - query: access_token", + "description": "Defines the locations to extract the JWT. For now it is only used by the Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) JWT locations can be one of HTTP headers, URL query parameters or cookies. The rule is that the first match wins. If not specified, default to use following 3 locations: 1) Authorization: Bearer 2) x-goog-iap-jwt-assertion 3) access_token query parameter Default locations can be specified as followings: jwt_locations: - header: Authorization value_prefix: \"Bearer \" - header: x-goog-iap-jwt-assertion - query: access_token", "items": { "$ref": "JwtLocation" }, @@ -1290,6 +1290,10 @@ "description": "Specifies a location to extract JWT from an API request.", "id": "JwtLocation", "properties": { + "cookie": { + "description": "Specifies cookie name to extract JWT token.", + "type": "string" + }, "header": { "description": "Specifies HTTP header name to extract JWT token.", "type": "string" diff --git a/servicenetworking/v1beta/servicenetworking-gen.go b/servicenetworking/v1beta/servicenetworking-gen.go index 18d95ab4879..e3468953b84 100644 --- a/servicenetworking/v1beta/servicenetworking-gen.go +++ b/servicenetworking/v1beta/servicenetworking-gen.go @@ -451,11 +451,13 @@ type AuthProvider struct { // https://www.googleapis.com/oauth2/v1/certs JwksUri string `json:"jwksUri,omitempty"` - // JwtLocations: Defines the locations to extract the JWT. JWT locations - // can be either from HTTP headers or URL query parameters. The rule is - // that the first match wins. The checking order is: checking all - // headers first, then URL query parameters. If not specified, default - // to use following 3 locations: 1) Authorization: Bearer 2) + // JwtLocations: Defines the locations to extract the JWT. For now it is + // only used by the Cloud Endpoints to store the OpenAPI extension + // [x-google-jwt-locations] + // (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) + // JWT locations can be one of HTTP headers, URL query parameters or + // cookies. The rule is that the first match wins. If not specified, + // default to use following 3 locations: 1) Authorization: Bearer 2) // x-goog-iap-jwt-assertion 3) access_token query parameter Default // locations can be specified as followings: jwt_locations: - header: // Authorization value_prefix: "Bearer " - header: @@ -2059,6 +2061,9 @@ func (s *HttpRule) MarshalJSON() ([]byte, error) { // JwtLocation: Specifies a location to extract JWT from an API request. type JwtLocation struct { + // Cookie: Specifies cookie name to extract JWT token. + Cookie string `json:"cookie,omitempty"` + // Header: Specifies HTTP header name to extract JWT token. Header string `json:"header,omitempty"` @@ -2074,7 +2079,7 @@ type JwtLocation struct { // value_prefix="Bearer " with a space at the end. ValuePrefix string `json:"valuePrefix,omitempty"` - // ForceSendFields is a list of field names (e.g. "Header") to + // ForceSendFields is a list of field names (e.g. "Cookie") 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 @@ -2082,7 +2087,7 @@ type JwtLocation struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Header") to include in API + // NullFields is a list of field names (e.g. "Cookie") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as