diff --git a/analyticsadmin/v1alpha/analyticsadmin-api.json b/analyticsadmin/v1alpha/analyticsadmin-api.json index 5500733ec23..f06b7cd8808 100644 --- a/analyticsadmin/v1alpha/analyticsadmin-api.json +++ b/analyticsadmin/v1alpha/analyticsadmin-api.json @@ -689,7 +689,7 @@ ] }, "delete": { - "description": "Marks target Property as soft-deleted (ie: \"trashed\") and returns it. This API does not have a method to restore soft-deleted properties. However, they can be restored using the Trash Can UI. If the properties are not restored before the expiration time, the Property and all child resources (eg: GoogleAdsLinks, Streams, UserLinks) will be permanently purged. https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found, or is not an GA4 Property.", + "description": "Marks target Property as soft-deleted (ie: \"trashed\") and returns it. This API does not have a method to restore soft-deleted properties. However, they can be restored using the Trash Can UI. If the properties are not restored before the expiration time, the Property and all child resources (eg: GoogleAdsLinks, Streams, UserLinks) will be permanently purged. https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found, or is not a GA4 Property.", "flatPath": "v1alpha/properties/{propertiesId}", "httpMethod": "DELETE", "id": "analyticsadmin.properties.delete", @@ -2956,7 +2956,7 @@ } } }, - "revision": "20221025", + "revision": "20221101", "rootUrl": "https://analyticsadmin.googleapis.com/", "schemas": { "GoogleAnalyticsAdminV1alphaAccessBetweenFilter": { @@ -3544,7 +3544,7 @@ "type": "string" }, "filterClauses": { - "description": "Required. Immutable. null Filter clauses that define the Audience. All clauses will be AND’ed together.", + "description": "Required. Immutable. Unordered list. Filter clauses that define the Audience. All clauses will be AND’ed together.", "items": { "$ref": "GoogleAnalyticsAdminV1alphaAudienceFilterClause" }, @@ -5709,7 +5709,7 @@ "DATA_STREAM", "ATTRIBUTION_SETTINGS", "EXPANDED_DATA_SET", - "CHANNEL_GROUPING" + "CHANNEL_GROUP" ], "enumDescriptions": [ "Resource type unknown or not specified.", @@ -5729,7 +5729,7 @@ "DataStream resource", "AttributionSettings resource", "ExpandedDataSet resource", - "ChannelGrouping resource" + "ChannelGroup resource" ], "type": "string" }, diff --git a/analyticsadmin/v1alpha/analyticsadmin-gen.go b/analyticsadmin/v1alpha/analyticsadmin-gen.go index e51825f33fb..1a87351045a 100644 --- a/analyticsadmin/v1alpha/analyticsadmin-gen.go +++ b/analyticsadmin/v1alpha/analyticsadmin-gen.go @@ -1392,8 +1392,8 @@ type GoogleAnalyticsAdminV1alphaAudience struct { // ever met the filter clause. ExclusionDurationMode string `json:"exclusionDurationMode,omitempty"` - // FilterClauses: Required. Immutable. null Filter clauses that define - // the Audience. All clauses will be AND’ed together. + // FilterClauses: Required. Immutable. Unordered list. Filter clauses + // that define the Audience. All clauses will be AND’ed together. FilterClauses []*GoogleAnalyticsAdminV1alphaAudienceFilterClause `json:"filterClauses,omitempty"` // MembershipDurationDays: Required. Immutable. The duration a user @@ -5034,7 +5034,7 @@ type GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest struct { // "DATA_STREAM" - DataStream resource // "ATTRIBUTION_SETTINGS" - AttributionSettings resource // "EXPANDED_DATA_SET" - ExpandedDataSet resource - // "CHANNEL_GROUPING" - ChannelGrouping resource + // "CHANNEL_GROUP" - ChannelGroup resource ResourceType []string `json:"resourceType,omitempty"` // ForceSendFields is a list of field names (e.g. "Action") to @@ -8328,7 +8328,7 @@ type PropertiesDeleteCall struct { // Property and all child resources (eg: GoogleAdsLinks, Streams, // UserLinks) will be permanently purged. // https://support.google.com/analytics/answer/6154772 Returns an error -// if the target is not found, or is not an GA4 Property. +// if the target is not found, or is not a GA4 Property. // // - name: The name of the Property to soft-delete. Format: // properties/{property_id} Example: "properties/1000". @@ -8425,7 +8425,7 @@ func (c *PropertiesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleAnalytic } return ret, nil // { - // "description": "Marks target Property as soft-deleted (ie: \"trashed\") and returns it. This API does not have a method to restore soft-deleted properties. However, they can be restored using the Trash Can UI. If the properties are not restored before the expiration time, the Property and all child resources (eg: GoogleAdsLinks, Streams, UserLinks) will be permanently purged. https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found, or is not an GA4 Property.", + // "description": "Marks target Property as soft-deleted (ie: \"trashed\") and returns it. This API does not have a method to restore soft-deleted properties. However, they can be restored using the Trash Can UI. If the properties are not restored before the expiration time, the Property and all child resources (eg: GoogleAdsLinks, Streams, UserLinks) will be permanently purged. https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found, or is not a GA4 Property.", // "flatPath": "v1alpha/properties/{propertiesId}", // "httpMethod": "DELETE", // "id": "analyticsadmin.properties.delete", diff --git a/androiddeviceprovisioning/v1/androiddeviceprovisioning-api.json b/androiddeviceprovisioning/v1/androiddeviceprovisioning-api.json index dcf44553182..3941fffdc47 100644 --- a/androiddeviceprovisioning/v1/androiddeviceprovisioning-api.json +++ b/androiddeviceprovisioning/v1/androiddeviceprovisioning-api.json @@ -825,7 +825,7 @@ } } }, - "revision": "20221023", + "revision": "20221031", "rootUrl": "https://androiddeviceprovisioning.googleapis.com/", "schemas": { "ClaimDeviceRequest": { @@ -866,6 +866,11 @@ "Zero-touch enrollment section type." ], "type": "string" + }, + "simlockProfileId": { + "description": "Optional. Must and can only be set when DeviceProvisioningSectionType is SECTION_TYPE_SIM_LOCK. The unique identifier of the SimLock profile (go/simlock/profiles).", + "format": "int64", + "type": "string" } }, "type": "object" diff --git a/androiddeviceprovisioning/v1/androiddeviceprovisioning-gen.go b/androiddeviceprovisioning/v1/androiddeviceprovisioning-gen.go index 18e24547f86..d734fbec107 100644 --- a/androiddeviceprovisioning/v1/androiddeviceprovisioning-gen.go +++ b/androiddeviceprovisioning/v1/androiddeviceprovisioning-gen.go @@ -272,6 +272,11 @@ type ClaimDeviceRequest struct { // "SECTION_TYPE_ZERO_TOUCH" - Zero-touch enrollment section type. SectionType string `json:"sectionType,omitempty"` + // SimlockProfileId: Optional. Must and can only be set when + // DeviceProvisioningSectionType is SECTION_TYPE_SIM_LOCK. The unique + // identifier of the SimLock profile (go/simlock/profiles). + SimlockProfileId int64 `json:"simlockProfileId,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "CustomerId") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any diff --git a/androidmanagement/v1/androidmanagement-api.json b/androidmanagement/v1/androidmanagement-api.json index a70895880ea..54a73c44154 100644 --- a/androidmanagement/v1/androidmanagement-api.json +++ b/androidmanagement/v1/androidmanagement-api.json @@ -1065,7 +1065,7 @@ } } }, - "revision": "20221017", + "revision": "20221024", "rootUrl": "https://androidmanagement.googleapis.com/", "schemas": { "AdbShellCommandEvent": { @@ -1692,7 +1692,7 @@ "type": "string" }, "events": { - "description": "List of app events. The most recent 20 events are stored in the list.", + "description": "The list of app events which have occurred in the last 30 hours.", "items": { "$ref": "ApplicationEvent" }, diff --git a/androidmanagement/v1/androidmanagement-gen.go b/androidmanagement/v1/androidmanagement-gen.go index 676d7abb6df..70c92998b22 100644 --- a/androidmanagement/v1/androidmanagement-gen.go +++ b/androidmanagement/v1/androidmanagement-gen.go @@ -1045,8 +1045,8 @@ type ApplicationReport struct { // DisplayName: The display name of the app. DisplayName string `json:"displayName,omitempty"` - // Events: List of app events. The most recent 20 events are stored in - // the list. + // Events: The list of app events which have occurred in the last 30 + // hours. Events []*ApplicationEvent `json:"events,omitempty"` // InstallerPackageName: The package name of the app that installed this diff --git a/androidpublisher/v3/androidpublisher-api.json b/androidpublisher/v3/androidpublisher-api.json index 2ccdbf06ec0..e74783f5f05 100644 --- a/androidpublisher/v3/androidpublisher-api.json +++ b/androidpublisher/v3/androidpublisher-api.json @@ -3920,7 +3920,7 @@ } } }, - "revision": "20221025", + "revision": "20221101", "rootUrl": "https://androidpublisher.googleapis.com/", "schemas": { "AcquisitionTargetingRule": { @@ -5732,7 +5732,7 @@ "type": "boolean" }, "streamingTaxType": { - "description": "To collect communications or amusement taxes in the United States, choose the appropriate tax category. By default Google will determine the collected rate based on the buyer ZIP code. [Learn more](https://support.google.com/googleplay/android-developer/answer/10463498#streaming_tax).", + "description": "To collect communications or amusement taxes in the United States, choose the appropriate tax category. [Learn more](https://support.google.com/googleplay/android-developer/answer/10463498#streaming_tax).", "enum": [ "STREAMING_TAX_TYPE_UNSPECIFIED", "STREAMING_TAX_TYPE_TELCO_VIDEO_RENTAL", diff --git a/androidpublisher/v3/androidpublisher-gen.go b/androidpublisher/v3/androidpublisher-gen.go index 708177e136c..815713e829e 100644 --- a/androidpublisher/v3/androidpublisher-gen.go +++ b/androidpublisher/v3/androidpublisher-gen.go @@ -3811,9 +3811,7 @@ type RegionalTaxRateInfo struct { EligibleForStreamingServiceTaxRate bool `json:"eligibleForStreamingServiceTaxRate,omitempty"` // StreamingTaxType: To collect communications or amusement taxes in the - // United States, choose the appropriate tax category. By default Google - // will determine the collected rate based on the buyer ZIP code. Learn - // more + // United States, choose the appropriate tax category. Learn more // (https://support.google.com/googleplay/android-developer/answer/10463498#streaming_tax). // // Possible values: diff --git a/api-list.json b/api-list.json index b6a302b0496..40c0d1a8c10 100644 --- a/api-list.json +++ b/api-list.json @@ -5503,7 +5503,7 @@ "name": "transcoder", "version": "v1", "title": "Transcoder API", - "description": "This API converts video files into formats suitable for consumer distribution.", + "description": "This API converts video files into formats suitable for consumer distribution. For more information, see the Transcoder API overview \u003chttps://cloud.google.com/transcoder/docs/concepts/overview\u003e.", "discoveryRestUrl": "https://transcoder.googleapis.com/$discovery/rest?version=v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", @@ -5557,6 +5557,21 @@ "documentationLink": "https://cloud.google.com/translate/docs/quickstarts", "preferred": true }, + { + "kind": "discovery#directoryItem", + "id": "travelimpactmodel:v1", + "name": "travelimpactmodel", + "version": "v1", + "title": "Travel Impact Model API", + "description": "Travel Impact Model API lets you query travel carbon emission estimates.", + "discoveryRestUrl": "https://travelimpactmodel.googleapis.com/$discovery/rest?version=v1", + "icons": { + "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", + "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" + }, + "documentationLink": "https://developers.google.com/travel/impact-model", + "preferred": true + }, { "kind": "discovery#directoryItem", "id": "vault:v1", diff --git a/bigquery/v2/bigquery-api.json b/bigquery/v2/bigquery-api.json index 89139000ebd..307221f17c9 100644 --- a/bigquery/v2/bigquery-api.json +++ b/bigquery/v2/bigquery-api.json @@ -1710,7 +1710,7 @@ } } }, - "revision": "20220924", + "revision": "20221015", "rootUrl": "https://bigquery.googleapis.com/", "schemas": { "AggregateClassificationMetrics": { @@ -2856,6 +2856,10 @@ "description": "[Output-only] A URL that can be used to access the resource again. You can use this URL in Get or Update requests to the resource.", "type": "string" }, + "storageBillingModel": { + "description": "[Optional] Storage billing model to be used for all tables in the dataset. Can be set to PHYSICAL. Default is LOGICAL.", + "type": "string" + }, "tags": { "description": "[Optional]The tags associated with this dataset. Tag keys are globally unique.", "items": { @@ -3435,6 +3439,14 @@ "format": "int32", "type": "integer" }, + "metadataCacheMode": { + "description": "[Optional] Metadata Cache Mode for the table. Set this to enable caching of metadata from external data source.", + "type": "string" + }, + "objectMetadata": { + "description": "ObjectMetadata is used to create Object Tables. Object Tables contain a listing of objects (with their metadata) found at the source_uris. If ObjectMetadata is set, source_format should be omitted. Currently SIMPLE is the only supported Object Metadata type.", + "type": "string" + }, "parquetOptions": { "$ref": "ParquetOptions", "description": "Additional properties to set if sourceFormat is set to Parquet." diff --git a/bigquery/v2/bigquery-gen.go b/bigquery/v2/bigquery-gen.go index 5dcae556e7d..4ca3a5ef527 100644 --- a/bigquery/v2/bigquery-gen.go +++ b/bigquery/v2/bigquery-gen.go @@ -2183,6 +2183,11 @@ type Dataset struct { // resource. SelfLink string `json:"selfLink,omitempty"` + // StorageBillingModel: [Optional] Storage billing model to be used for + // all tables in the dataset. Can be set to PHYSICAL. Default is + // LOGICAL. + StorageBillingModel string `json:"storageBillingModel,omitempty"` + // Tags: [Optional]The tags associated with this dataset. Tag keys are // globally unique. Tags []*DatasetTags `json:"tags,omitempty"` @@ -3248,6 +3253,17 @@ type ExternalDataConfiguration struct { // and Avro formats. MaxBadRecords int64 `json:"maxBadRecords,omitempty"` + // MetadataCacheMode: [Optional] Metadata Cache Mode for the table. Set + // this to enable caching of metadata from external data source. + MetadataCacheMode string `json:"metadataCacheMode,omitempty"` + + // ObjectMetadata: ObjectMetadata is used to create Object Tables. + // Object Tables contain a listing of objects (with their metadata) + // found at the source_uris. If ObjectMetadata is set, source_format + // should be omitted. Currently SIMPLE is the only supported Object + // Metadata type. + ObjectMetadata string `json:"objectMetadata,omitempty"` + // ParquetOptions: Additional properties to set if sourceFormat is set // to Parquet. ParquetOptions *ParquetOptions `json:"parquetOptions,omitempty"` diff --git a/chat/v1/chat-api.json b/chat/v1/chat-api.json index 16f84fe9cb6..4ec48d339f0 100644 --- a/chat/v1/chat-api.json +++ b/chat/v1/chat-api.json @@ -4,6 +4,15 @@ "scopes": { "https://www.googleapis.com/auth/chat.memberships": { "description": "View, add, and remove members from conversations in Google Chat" + }, + "https://www.googleapis.com/auth/chat.messages": { + "description": "View, compose, send, update, and delete messages, and add, view, and delete reactions to messages." + }, + "https://www.googleapis.com/auth/chat.messages.create": { + "description": "Compose and send messages in Google Chat" + }, + "https://www.googleapis.com/auth/chat.messages.readonly": { + "description": "view messages and reactions in Google Chat" } } } @@ -137,7 +146,7 @@ "type": "string" }, "parent": { - "description": "Required. Space resource name, in the form \"spaces/*\". Example: spaces/AAAAAAAAAAA", + "description": "Required. The resource name of the space in which to create a message. Format: spaces/{space}", "location": "path", "pattern": "^dms/[^/]+$", "required": true, @@ -149,7 +158,7 @@ "type": "string" }, "threadKey": { - "description": "Optional. Deprecated: Use thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).", + "description": "Optional. Deprecated: Use thread.thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).", "location": "query", "type": "string" } @@ -192,7 +201,7 @@ "type": "string" }, "parent": { - "description": "Required. Space resource name, in the form \"spaces/*\". Example: spaces/AAAAAAAAAAA", + "description": "Required. The resource name of the space in which to create a message. Format: spaces/{space}", "location": "path", "pattern": "^dms/[^/]+$", "required": true, @@ -204,7 +213,7 @@ "type": "string" }, "threadKey": { - "description": "Optional. Deprecated: Use thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).", + "description": "Optional. Deprecated: Use thread.thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).", "location": "query", "type": "string" } @@ -251,7 +260,7 @@ "type": "string" }, "parent": { - "description": "Required. Space resource name, in the form \"spaces/*\". Example: spaces/AAAAAAAAAAA", + "description": "Required. The resource name of the space in which to create a message. Format: spaces/{space}", "location": "path", "pattern": "^dms/[^/]+/conversations/[^/]+$", "required": true, @@ -263,7 +272,7 @@ "type": "string" }, "threadKey": { - "description": "Optional. Deprecated: Use thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).", + "description": "Optional. Deprecated: Use thread.thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).", "location": "query", "type": "string" } @@ -303,6 +312,10 @@ "response": { "$ref": "Media" }, + "scopes": [ + "https://www.googleapis.com/auth/chat.messages", + "https://www.googleapis.com/auth/chat.messages.readonly" + ], "supportsMediaDownload": true } } @@ -339,7 +352,7 @@ "type": "string" }, "parent": { - "description": "Required. Space resource name, in the form \"spaces/*\". Example: spaces/AAAAAAAAAAA", + "description": "Required. The resource name of the space in which to create a message. Format: spaces/{space}", "location": "path", "pattern": "^rooms/[^/]+$", "required": true, @@ -351,7 +364,7 @@ "type": "string" }, "threadKey": { - "description": "Optional. Deprecated: Use thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).", + "description": "Optional. Deprecated: Use thread.thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).", "location": "query", "type": "string" } @@ -394,7 +407,7 @@ "type": "string" }, "parent": { - "description": "Required. Space resource name, in the form \"spaces/*\". Example: spaces/AAAAAAAAAAA", + "description": "Required. The resource name of the space in which to create a message. Format: spaces/{space}", "location": "path", "pattern": "^rooms/[^/]+$", "required": true, @@ -406,7 +419,7 @@ "type": "string" }, "threadKey": { - "description": "Optional. Deprecated: Use thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).", + "description": "Optional. Deprecated: Use thread.thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).", "location": "query", "type": "string" } @@ -453,7 +466,7 @@ "type": "string" }, "parent": { - "description": "Required. Space resource name, in the form \"spaces/*\". Example: spaces/AAAAAAAAAAA", + "description": "Required. The resource name of the space in which to create a message. Format: spaces/{space}", "location": "path", "pattern": "^rooms/[^/]+/conversations/[^/]+$", "required": true, @@ -465,7 +478,7 @@ "type": "string" }, "threadKey": { - "description": "Optional. Deprecated: Use thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).", + "description": "Optional. Deprecated: Use thread.thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).", "location": "query", "type": "string" } @@ -560,7 +573,7 @@ "type": "string" }, "parent": { - "description": "Required. Space resource name, in the form \"spaces/*\". Example: spaces/AAAAAAAAAAA", + "description": "Required. The resource name of the space in which to create a message. Format: spaces/{space}", "location": "path", "pattern": "^spaces/[^/]+$", "required": true, @@ -572,7 +585,7 @@ "type": "string" }, "threadKey": { - "description": "Optional. Deprecated: Use thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).", + "description": "Optional. Deprecated: Use thread.thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).", "location": "query", "type": "string" } @@ -615,7 +628,7 @@ ] }, "list": { - "description": "Lists human memberships in a space for joined members. Requires [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts).", + "description": "Lists memberships in a space. Requires [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts).", "flatPath": "v1/spaces/{spacesId}/members", "httpMethod": "GET", "id": "chat.spaces.members.list", @@ -655,7 +668,7 @@ "messages": { "methods": { "create": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview): Creates a message. Requires [authentication](https://developers.google.com/chat/api/guides/auth).", + "description": "Creates a message. For example usage, see [Create a message](https://developers.google.com/chat/api/guides/crudl/messages#create_a_message). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` or `chat.messages.create` authorization scope.", "flatPath": "v1/spaces/{spacesId}/messages", "httpMethod": "POST", "id": "chat.spaces.messages.create", @@ -684,7 +697,7 @@ "type": "string" }, "parent": { - "description": "Required. Space resource name, in the form \"spaces/*\". Example: spaces/AAAAAAAAAAA", + "description": "Required. The resource name of the space in which to create a message. Format: spaces/{space}", "location": "path", "pattern": "^spaces/[^/]+$", "required": true, @@ -696,7 +709,7 @@ "type": "string" }, "threadKey": { - "description": "Optional. Deprecated: Use thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).", + "description": "Optional. Deprecated: Use thread.thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).", "location": "query", "type": "string" } @@ -707,10 +720,14 @@ }, "response": { "$ref": "Message" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/chat.messages", + "https://www.googleapis.com/auth/chat.messages.create" + ] }, "delete": { - "description": "Deletes a message. Requires [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). [Developer Preview](https://developers.google.com/workspace/preview): Deletes a message. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.messages` authorization scope.", + "description": "Deletes a message. For example usage, see [Delete a message](https://developers.google.com/chat/api/guides/crudl/messages#delete_a_message). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` authorization scope.", "flatPath": "v1/spaces/{spacesId}/messages/{messagesId}", "httpMethod": "DELETE", "id": "chat.spaces.messages.delete", @@ -729,10 +746,13 @@ "path": "v1/{+name}", "response": { "$ref": "Empty" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/chat.messages" + ] }, "get": { - "description": "Returns a message. Requires [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). [Developer Preview](https://developers.google.com/workspace/preview): Returns a message. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.messages` or `chat.messages.readonly` authorization scope. Messages from a blocked member or messages from a blocked space can also be fetched.", + "description": "Returns a message. For example usage, see [Read a message](https://developers.google.com/chat/api/guides/crudl/messages#read_a_message). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [Service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` or `chat.messages.readonly` authorization scope. Note: Might return a message from a blocked member or space.", "flatPath": "v1/spaces/{spacesId}/messages/{messagesId}", "httpMethod": "GET", "id": "chat.spaces.messages.get", @@ -751,10 +771,14 @@ "path": "v1/{+name}", "response": { "$ref": "Message" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/chat.messages", + "https://www.googleapis.com/auth/chat.messages.readonly" + ] }, "update": { - "description": "Updates a message. Requires [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts).", + "description": "Updates a message. For example usage, see [Update a message](https://developers.google.com/chat/api/guides/crudl/messages#update_a_message). Requires [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts).", "flatPath": "v1/spaces/{spacesId}/messages/{messagesId}", "httpMethod": "PUT", "id": "chat.spaces.messages.update", @@ -787,7 +811,10 @@ }, "response": { "$ref": "Message" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/chat.messages" + ] } }, "resources": { @@ -822,7 +849,7 @@ } } }, - "revision": "20221020", + "revision": "20221029", "rootUrl": "https://chat.googleapis.com/", "schemas": { "ActionParameter": { @@ -1443,6 +1470,18 @@ "description": "Apps Script function to invoke when the containing element is clicked/activated.", "type": "string" }, + "interaction": { + "description": "Optional. Required when opening a [dialog](https://developers.google.com/chat/how-tos/dialogs). What to do in response to an interaction with a user, such as a user clicking button on a card message. If unspecified, the app responds by executing an `action` - like opening a link or running a function - as normal. By specifying an `interaction`, the app can respond in special interactive ways. For example, by setting `interaction` to `OPEN_DIALOG`, the app can open a [dialog](https://developers.google.com/chat/how-tos/dialogs). When specified, a loading indicator is not shown. Supported by Chat apps, but not Google Workspace Add-ons. If specified for an add-on, the entire card is stripped and nothing is shown in the client.", + "enum": [ + "INTERACTION_UNSPECIFIED", + "OPEN_DIALOG" + ], + "enumDescriptions": [ + "Default value. The `action` executes as normal.", + "Opens a [dialog](https://developers.google.com/chat/how-tos/dialogs), a windowed, card-based interface that Chat apps use to interact with users. Only supported by Chat apps in response to button-clicks on card messages. Not supported by Google Workspace Add-ons. If specified for an add-on, the entire card is stripped and nothing is shown in the client." + ], + "type": "string" + }, "loadIndicator": { "description": "Specifies the loading indicator that the action displays while making the call to the action.", "enum": [ diff --git a/chat/v1/chat-gen.go b/chat/v1/chat-gen.go index d52cc7fce28..0f228945154 100644 --- a/chat/v1/chat-gen.go +++ b/chat/v1/chat-gen.go @@ -23,6 +23,10 @@ // // # Other authentication options // +// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes: +// +// chatService, err := chat.NewService(ctx, option.WithScopes(chat.ChatMessagesReadonlyScope)) +// // To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: // // chatService, err := chat.NewService(ctx, option.WithAPIKey("AIza...")) @@ -82,12 +86,25 @@ const mtlsBasePath = "https://chat.mtls.googleapis.com/" const ( // View, add, and remove members from conversations in Google Chat ChatMembershipsScope = "https://www.googleapis.com/auth/chat.memberships" + + // View, compose, send, update, and delete messages, and add, view, and + // delete reactions to messages. + ChatMessagesScope = "https://www.googleapis.com/auth/chat.messages" + + // Compose and send messages in Google Chat + ChatMessagesCreateScope = "https://www.googleapis.com/auth/chat.messages.create" + + // view messages and reactions in Google Chat + ChatMessagesReadonlyScope = "https://www.googleapis.com/auth/chat.messages.readonly" ) // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { scopesOption := internaloption.WithDefaultScopes( "https://www.googleapis.com/auth/chat.memberships", + "https://www.googleapis.com/auth/chat.messages", + "https://www.googleapis.com/auth/chat.messages.create", + "https://www.googleapis.com/auth/chat.messages.readonly", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) @@ -1342,6 +1359,31 @@ type GoogleAppsCardV1Action struct { // is clicked/activated. Function string `json:"function,omitempty"` + // Interaction: Optional. Required when opening a dialog + // (https://developers.google.com/chat/how-tos/dialogs). What to do in + // response to an interaction with a user, such as a user clicking + // button on a card message. If unspecified, the app responds by + // executing an `action` - like opening a link or running a function - + // as normal. By specifying an `interaction`, the app can respond in + // special interactive ways. For example, by setting `interaction` to + // `OPEN_DIALOG`, the app can open a dialog + // (https://developers.google.com/chat/how-tos/dialogs). When specified, + // a loading indicator is not shown. Supported by Chat apps, but not + // Google Workspace Add-ons. If specified for an add-on, the entire card + // is stripped and nothing is shown in the client. + // + // Possible values: + // "INTERACTION_UNSPECIFIED" - Default value. The `action` executes as + // normal. + // "OPEN_DIALOG" - Opens a + // [dialog](https://developers.google.com/chat/how-tos/dialogs), a + // windowed, card-based interface that Chat apps use to interact with + // users. Only supported by Chat apps in response to button-clicks on + // card messages. Not supported by Google Workspace Add-ons. If + // specified for an add-on, the entire card is stripped and nothing is + // shown in the client. + Interaction string `json:"interaction,omitempty"` + // LoadIndicator: Specifies the loading indicator that the action // displays while making the call to the action. // @@ -3911,8 +3953,8 @@ type DmsMessagesCall struct { // Messages: Legacy path for creating message. Calling these will result // in a BadRequest response. // -// - parent: Space resource name, in the form "spaces/*". Example: -// spaces/AAAAAAAAAAA. +// - parent: The resource name of the space in which to create a +// message. Format: spaces/{space}. func (r *DmsService) Messages(parent string, message *Message) *DmsMessagesCall { c := &DmsMessagesCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -3962,8 +4004,8 @@ func (c *DmsMessagesCall) RequestId(requestId string) *DmsMessagesCall { } // ThreadKey sets the optional parameter "threadKey": Deprecated: Use -// thread_key instead. Opaque thread identifier. To start or add to a -// thread, create a message and specify a `threadKey` or the +// thread.thread_key instead. Opaque thread identifier. To start or add +// to a thread, create a message and specify a `threadKey` or the // thread.name. For example usage, see Start or reply to a message // thread // (/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread). @@ -4092,7 +4134,7 @@ func (c *DmsMessagesCall) Do(opts ...googleapi.CallOption) (*Message, error) { // "type": "string" // }, // "parent": { - // "description": "Required. Space resource name, in the form \"spaces/*\". Example: spaces/AAAAAAAAAAA", + // "description": "Required. The resource name of the space in which to create a message. Format: spaces/{space}", // "location": "path", // "pattern": "^dms/[^/]+$", // "required": true, @@ -4104,7 +4146,7 @@ func (c *DmsMessagesCall) Do(opts ...googleapi.CallOption) (*Message, error) { // "type": "string" // }, // "threadKey": { - // "description": "Optional. Deprecated: Use thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).", + // "description": "Optional. Deprecated: Use thread.thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).", // "location": "query", // "type": "string" // } @@ -4134,8 +4176,8 @@ type DmsWebhooksCall struct { // Webhooks: Legacy path for creating message. Calling these will result // in a BadRequest response. // -// - parent: Space resource name, in the form "spaces/*". Example: -// spaces/AAAAAAAAAAA. +// - parent: The resource name of the space in which to create a +// message. Format: spaces/{space}. func (r *DmsService) Webhooks(parent string, message *Message) *DmsWebhooksCall { c := &DmsWebhooksCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -4185,8 +4227,8 @@ func (c *DmsWebhooksCall) RequestId(requestId string) *DmsWebhooksCall { } // ThreadKey sets the optional parameter "threadKey": Deprecated: Use -// thread_key instead. Opaque thread identifier. To start or add to a -// thread, create a message and specify a `threadKey` or the +// thread.thread_key instead. Opaque thread identifier. To start or add +// to a thread, create a message and specify a `threadKey` or the // thread.name. For example usage, see Start or reply to a message // thread // (/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread). @@ -4315,7 +4357,7 @@ func (c *DmsWebhooksCall) Do(opts ...googleapi.CallOption) (*Message, error) { // "type": "string" // }, // "parent": { - // "description": "Required. Space resource name, in the form \"spaces/*\". Example: spaces/AAAAAAAAAAA", + // "description": "Required. The resource name of the space in which to create a message. Format: spaces/{space}", // "location": "path", // "pattern": "^dms/[^/]+$", // "required": true, @@ -4327,7 +4369,7 @@ func (c *DmsWebhooksCall) Do(opts ...googleapi.CallOption) (*Message, error) { // "type": "string" // }, // "threadKey": { - // "description": "Optional. Deprecated: Use thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).", + // "description": "Optional. Deprecated: Use thread.thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).", // "location": "query", // "type": "string" // } @@ -4357,8 +4399,8 @@ type DmsConversationsMessagesCall struct { // Messages: Legacy path for creating message. Calling these will result // in a BadRequest response. // -// - parent: Space resource name, in the form "spaces/*". Example: -// spaces/AAAAAAAAAAA. +// - parent: The resource name of the space in which to create a +// message. Format: spaces/{space}. func (r *DmsConversationsService) Messages(parent string, message *Message) *DmsConversationsMessagesCall { c := &DmsConversationsMessagesCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -4408,8 +4450,8 @@ func (c *DmsConversationsMessagesCall) RequestId(requestId string) *DmsConversat } // ThreadKey sets the optional parameter "threadKey": Deprecated: Use -// thread_key instead. Opaque thread identifier. To start or add to a -// thread, create a message and specify a `threadKey` or the +// thread.thread_key instead. Opaque thread identifier. To start or add +// to a thread, create a message and specify a `threadKey` or the // thread.name. For example usage, see Start or reply to a message // thread // (/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread). @@ -4538,7 +4580,7 @@ func (c *DmsConversationsMessagesCall) Do(opts ...googleapi.CallOption) (*Messag // "type": "string" // }, // "parent": { - // "description": "Required. Space resource name, in the form \"spaces/*\". Example: spaces/AAAAAAAAAAA", + // "description": "Required. The resource name of the space in which to create a message. Format: spaces/{space}", // "location": "path", // "pattern": "^dms/[^/]+/conversations/[^/]+$", // "required": true, @@ -4550,7 +4592,7 @@ func (c *DmsConversationsMessagesCall) Do(opts ...googleapi.CallOption) (*Messag // "type": "string" // }, // "threadKey": { - // "description": "Optional. Deprecated: Use thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).", + // "description": "Optional. Deprecated: Use thread.thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).", // "location": "query", // "type": "string" // } @@ -4723,6 +4765,10 @@ func (c *MediaDownloadCall) Do(opts ...googleapi.CallOption) (*Media, error) { // "response": { // "$ref": "Media" // }, + // "scopes": [ + // "https://www.googleapis.com/auth/chat.messages", + // "https://www.googleapis.com/auth/chat.messages.readonly" + // ], // "supportsMediaDownload": true // } @@ -4742,8 +4788,8 @@ type RoomsMessagesCall struct { // Messages: Legacy path for creating message. Calling these will result // in a BadRequest response. // -// - parent: Space resource name, in the form "spaces/*". Example: -// spaces/AAAAAAAAAAA. +// - parent: The resource name of the space in which to create a +// message. Format: spaces/{space}. func (r *RoomsService) Messages(parent string, message *Message) *RoomsMessagesCall { c := &RoomsMessagesCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -4793,8 +4839,8 @@ func (c *RoomsMessagesCall) RequestId(requestId string) *RoomsMessagesCall { } // ThreadKey sets the optional parameter "threadKey": Deprecated: Use -// thread_key instead. Opaque thread identifier. To start or add to a -// thread, create a message and specify a `threadKey` or the +// thread.thread_key instead. Opaque thread identifier. To start or add +// to a thread, create a message and specify a `threadKey` or the // thread.name. For example usage, see Start or reply to a message // thread // (/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread). @@ -4923,7 +4969,7 @@ func (c *RoomsMessagesCall) Do(opts ...googleapi.CallOption) (*Message, error) { // "type": "string" // }, // "parent": { - // "description": "Required. Space resource name, in the form \"spaces/*\". Example: spaces/AAAAAAAAAAA", + // "description": "Required. The resource name of the space in which to create a message. Format: spaces/{space}", // "location": "path", // "pattern": "^rooms/[^/]+$", // "required": true, @@ -4935,7 +4981,7 @@ func (c *RoomsMessagesCall) Do(opts ...googleapi.CallOption) (*Message, error) { // "type": "string" // }, // "threadKey": { - // "description": "Optional. Deprecated: Use thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).", + // "description": "Optional. Deprecated: Use thread.thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).", // "location": "query", // "type": "string" // } @@ -4965,8 +5011,8 @@ type RoomsWebhooksCall struct { // Webhooks: Legacy path for creating message. Calling these will result // in a BadRequest response. // -// - parent: Space resource name, in the form "spaces/*". Example: -// spaces/AAAAAAAAAAA. +// - parent: The resource name of the space in which to create a +// message. Format: spaces/{space}. func (r *RoomsService) Webhooks(parent string, message *Message) *RoomsWebhooksCall { c := &RoomsWebhooksCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -5016,8 +5062,8 @@ func (c *RoomsWebhooksCall) RequestId(requestId string) *RoomsWebhooksCall { } // ThreadKey sets the optional parameter "threadKey": Deprecated: Use -// thread_key instead. Opaque thread identifier. To start or add to a -// thread, create a message and specify a `threadKey` or the +// thread.thread_key instead. Opaque thread identifier. To start or add +// to a thread, create a message and specify a `threadKey` or the // thread.name. For example usage, see Start or reply to a message // thread // (/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread). @@ -5146,7 +5192,7 @@ func (c *RoomsWebhooksCall) Do(opts ...googleapi.CallOption) (*Message, error) { // "type": "string" // }, // "parent": { - // "description": "Required. Space resource name, in the form \"spaces/*\". Example: spaces/AAAAAAAAAAA", + // "description": "Required. The resource name of the space in which to create a message. Format: spaces/{space}", // "location": "path", // "pattern": "^rooms/[^/]+$", // "required": true, @@ -5158,7 +5204,7 @@ func (c *RoomsWebhooksCall) Do(opts ...googleapi.CallOption) (*Message, error) { // "type": "string" // }, // "threadKey": { - // "description": "Optional. Deprecated: Use thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).", + // "description": "Optional. Deprecated: Use thread.thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).", // "location": "query", // "type": "string" // } @@ -5188,8 +5234,8 @@ type RoomsConversationsMessagesCall struct { // Messages: Legacy path for creating message. Calling these will result // in a BadRequest response. // -// - parent: Space resource name, in the form "spaces/*". Example: -// spaces/AAAAAAAAAAA. +// - parent: The resource name of the space in which to create a +// message. Format: spaces/{space}. func (r *RoomsConversationsService) Messages(parent string, message *Message) *RoomsConversationsMessagesCall { c := &RoomsConversationsMessagesCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -5239,8 +5285,8 @@ func (c *RoomsConversationsMessagesCall) RequestId(requestId string) *RoomsConve } // ThreadKey sets the optional parameter "threadKey": Deprecated: Use -// thread_key instead. Opaque thread identifier. To start or add to a -// thread, create a message and specify a `threadKey` or the +// thread.thread_key instead. Opaque thread identifier. To start or add +// to a thread, create a message and specify a `threadKey` or the // thread.name. For example usage, see Start or reply to a message // thread // (/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread). @@ -5369,7 +5415,7 @@ func (c *RoomsConversationsMessagesCall) Do(opts ...googleapi.CallOption) (*Mess // "type": "string" // }, // "parent": { - // "description": "Required. Space resource name, in the form \"spaces/*\". Example: spaces/AAAAAAAAAAA", + // "description": "Required. The resource name of the space in which to create a message. Format: spaces/{space}", // "location": "path", // "pattern": "^rooms/[^/]+/conversations/[^/]+$", // "required": true, @@ -5381,7 +5427,7 @@ func (c *RoomsConversationsMessagesCall) Do(opts ...googleapi.CallOption) (*Mess // "type": "string" // }, // "threadKey": { - // "description": "Optional. Deprecated: Use thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).", + // "description": "Optional. Deprecated: Use thread.thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).", // "location": "query", // "type": "string" // } @@ -5736,8 +5782,8 @@ type SpacesWebhooksCall struct { // Webhooks: Legacy path for creating message. Calling these will result // in a BadRequest response. // -// - parent: Space resource name, in the form "spaces/*". Example: -// spaces/AAAAAAAAAAA. +// - parent: The resource name of the space in which to create a +// message. Format: spaces/{space}. func (r *SpacesService) Webhooks(parent string, message *Message) *SpacesWebhooksCall { c := &SpacesWebhooksCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -5787,8 +5833,8 @@ func (c *SpacesWebhooksCall) RequestId(requestId string) *SpacesWebhooksCall { } // ThreadKey sets the optional parameter "threadKey": Deprecated: Use -// thread_key instead. Opaque thread identifier. To start or add to a -// thread, create a message and specify a `threadKey` or the +// thread.thread_key instead. Opaque thread identifier. To start or add +// to a thread, create a message and specify a `threadKey` or the // thread.name. For example usage, see Start or reply to a message // thread // (/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread). @@ -5917,7 +5963,7 @@ func (c *SpacesWebhooksCall) Do(opts ...googleapi.CallOption) (*Message, error) // "type": "string" // }, // "parent": { - // "description": "Required. Space resource name, in the form \"spaces/*\". Example: spaces/AAAAAAAAAAA", + // "description": "Required. The resource name of the space in which to create a message. Format: spaces/{space}", // "location": "path", // "pattern": "^spaces/[^/]+$", // "required": true, @@ -5929,7 +5975,7 @@ func (c *SpacesWebhooksCall) Do(opts ...googleapi.CallOption) (*Message, error) // "type": "string" // }, // "threadKey": { - // "description": "Optional. Deprecated: Use thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).", + // "description": "Optional. Deprecated: Use thread.thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).", // "location": "query", // "type": "string" // } @@ -6104,8 +6150,8 @@ type SpacesMembersListCall struct { header_ http.Header } -// List: Lists human memberships in a space for joined members. Requires -// service account authentication +// List: Lists memberships in a space. Requires service account +// authentication // (https://developers.google.com/chat/api/guides/auth/service-accounts). // // - parent: The resource name of the space for which to fetch a @@ -6234,7 +6280,7 @@ func (c *SpacesMembersListCall) Do(opts ...googleapi.CallOption) (*ListMembershi } return ret, nil // { - // "description": "Lists human memberships in a space for joined members. Requires [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts).", + // "description": "Lists memberships in a space. Requires [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts).", // "flatPath": "v1/spaces/{spacesId}/members", // "httpMethod": "GET", // "id": "chat.spaces.members.list", @@ -6304,13 +6350,22 @@ type SpacesMessagesCreateCall struct { header_ http.Header } -// Create: Developer Preview -// (https://developers.google.com/workspace/preview): Creates a message. +// Create: Creates a message. For example usage, see Create a message +// (https://developers.google.com/chat/api/guides/crudl/messages#create_a_message). // Requires authentication -// (https://developers.google.com/chat/api/guides/auth). +// (https://developers.google.com/chat/api/guides/auth). Fully supports +// service account authentication +// (https://developers.google.com/chat/api/guides/auth/service-accounts). +// Supports user authentication +// (https://developers.google.com/chat/api/guides/auth/users) as part of +// the Google Workspace Developer Preview Program +// (https://developers.google.com/workspace/preview), which grants early +// access to certain features. User authentication +// (https://developers.google.com/chat/api/guides/auth/users) requires +// the `chat.messages` or `chat.messages.create` authorization scope. // -// - parent: Space resource name, in the form "spaces/*". Example: -// spaces/AAAAAAAAAAA. +// - parent: The resource name of the space in which to create a +// message. Format: spaces/{space}. func (r *SpacesMessagesService) Create(parent string, message *Message) *SpacesMessagesCreateCall { c := &SpacesMessagesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -6360,8 +6415,8 @@ func (c *SpacesMessagesCreateCall) RequestId(requestId string) *SpacesMessagesCr } // ThreadKey sets the optional parameter "threadKey": Deprecated: Use -// thread_key instead. Opaque thread identifier. To start or add to a -// thread, create a message and specify a `threadKey` or the +// thread.thread_key instead. Opaque thread identifier. To start or add +// to a thread, create a message and specify a `threadKey` or the // thread.name. For example usage, see Start or reply to a message // thread // (/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread). @@ -6461,7 +6516,7 @@ func (c *SpacesMessagesCreateCall) Do(opts ...googleapi.CallOption) (*Message, e } return ret, nil // { - // "description": "[Developer Preview](https://developers.google.com/workspace/preview): Creates a message. Requires [authentication](https://developers.google.com/chat/api/guides/auth).", + // "description": "Creates a message. For example usage, see [Create a message](https://developers.google.com/chat/api/guides/crudl/messages#create_a_message). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` or `chat.messages.create` authorization scope.", // "flatPath": "v1/spaces/{spacesId}/messages", // "httpMethod": "POST", // "id": "chat.spaces.messages.create", @@ -6490,7 +6545,7 @@ func (c *SpacesMessagesCreateCall) Do(opts ...googleapi.CallOption) (*Message, e // "type": "string" // }, // "parent": { - // "description": "Required. Space resource name, in the form \"spaces/*\". Example: spaces/AAAAAAAAAAA", + // "description": "Required. The resource name of the space in which to create a message. Format: spaces/{space}", // "location": "path", // "pattern": "^spaces/[^/]+$", // "required": true, @@ -6502,7 +6557,7 @@ func (c *SpacesMessagesCreateCall) Do(opts ...googleapi.CallOption) (*Message, e // "type": "string" // }, // "threadKey": { - // "description": "Optional. Deprecated: Use thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).", + // "description": "Optional. Deprecated: Use thread.thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).", // "location": "query", // "type": "string" // } @@ -6513,7 +6568,11 @@ func (c *SpacesMessagesCreateCall) Do(opts ...googleapi.CallOption) (*Message, e // }, // "response": { // "$ref": "Message" - // } + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/chat.messages", + // "https://www.googleapis.com/auth/chat.messages.create" + // ] // } } @@ -6528,12 +6587,19 @@ type SpacesMessagesDeleteCall struct { header_ http.Header } -// Delete: Deletes a message. Requires service account authentication +// Delete: Deletes a message. For example usage, see Delete a message +// (https://developers.google.com/chat/api/guides/crudl/messages#delete_a_message). +// Requires authentication +// (https://developers.google.com/chat/api/guides/auth). Fully supports +// service account authentication // (https://developers.google.com/chat/api/guides/auth/service-accounts). -// Developer Preview (https://developers.google.com/workspace/preview): -// Deletes a message. Requires user authentication -// (https://developers.google.com/chat/api/guides/auth/users) and the -// `chat.messages` authorization scope. +// Supports user authentication +// (https://developers.google.com/chat/api/guides/auth/users) as part of +// the Google Workspace Developer Preview Program +// (https://developers.google.com/workspace/preview), which grants early +// access to certain features. User authentication +// (https://developers.google.com/chat/api/guides/auth/users) requires +// the `chat.messages` authorization scope. // // - name: Resource name of the message to be deleted, in the form // "spaces/*/messages/*" Example: @@ -6630,7 +6696,7 @@ func (c *SpacesMessagesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, err } return ret, nil // { - // "description": "Deletes a message. Requires [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). [Developer Preview](https://developers.google.com/workspace/preview): Deletes a message. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.messages` authorization scope.", + // "description": "Deletes a message. For example usage, see [Delete a message](https://developers.google.com/chat/api/guides/crudl/messages#delete_a_message). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` authorization scope.", // "flatPath": "v1/spaces/{spacesId}/messages/{messagesId}", // "httpMethod": "DELETE", // "id": "chat.spaces.messages.delete", @@ -6649,7 +6715,10 @@ func (c *SpacesMessagesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, err // "path": "v1/{+name}", // "response": { // "$ref": "Empty" - // } + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/chat.messages" + // ] // } } @@ -6665,14 +6734,20 @@ type SpacesMessagesGetCall struct { header_ http.Header } -// Get: Returns a message. Requires service account authentication +// Get: Returns a message. For example usage, see Read a message +// (https://developers.google.com/chat/api/guides/crudl/messages#read_a_message). +// Requires authentication +// (https://developers.google.com/chat/api/guides/auth). Fully supports +// Service account authentication // (https://developers.google.com/chat/api/guides/auth/service-accounts). -// Developer Preview (https://developers.google.com/workspace/preview): -// Returns a message. Requires user authentication -// (https://developers.google.com/chat/api/guides/auth/users) and the -// `chat.messages` or `chat.messages.readonly` authorization scope. -// Messages from a blocked member or messages from a blocked space can -// also be fetched. +// Supports user authentication +// (https://developers.google.com/chat/api/guides/auth/users) as part of +// the Google Workspace Developer Preview Program +// (https://developers.google.com/workspace/preview), which grants early +// access to certain features. User authentication +// (https://developers.google.com/chat/api/guides/auth/users) requires +// the `chat.messages` or `chat.messages.readonly` authorization scope. +// Note: Might return a message from a blocked member or space. // // - name: Resource name of the message to retrieve. Format: // spaces/{space}/messages/{message} If the message begins with @@ -6786,7 +6861,7 @@ func (c *SpacesMessagesGetCall) Do(opts ...googleapi.CallOption) (*Message, erro } return ret, nil // { - // "description": "Returns a message. Requires [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). [Developer Preview](https://developers.google.com/workspace/preview): Returns a message. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.messages` or `chat.messages.readonly` authorization scope. Messages from a blocked member or messages from a blocked space can also be fetched.", + // "description": "Returns a message. For example usage, see [Read a message](https://developers.google.com/chat/api/guides/crudl/messages#read_a_message). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [Service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` or `chat.messages.readonly` authorization scope. Note: Might return a message from a blocked member or space.", // "flatPath": "v1/spaces/{spacesId}/messages/{messagesId}", // "httpMethod": "GET", // "id": "chat.spaces.messages.get", @@ -6805,7 +6880,11 @@ func (c *SpacesMessagesGetCall) Do(opts ...googleapi.CallOption) (*Message, erro // "path": "v1/{+name}", // "response": { // "$ref": "Message" - // } + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/chat.messages", + // "https://www.googleapis.com/auth/chat.messages.readonly" + // ] // } } @@ -6821,7 +6900,9 @@ type SpacesMessagesUpdateCall struct { header_ http.Header } -// Update: Updates a message. Requires service account authentication +// Update: Updates a message. For example usage, see Update a message +// (https://developers.google.com/chat/api/guides/crudl/messages#update_a_message). +// Requires service account authentication // (https://developers.google.com/chat/api/guides/auth/service-accounts). // // - name: Resource name in the form `spaces/*/messages/*`. Example: @@ -6945,7 +7026,7 @@ func (c *SpacesMessagesUpdateCall) Do(opts ...googleapi.CallOption) (*Message, e } return ret, nil // { - // "description": "Updates a message. Requires [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts).", + // "description": "Updates a message. For example usage, see [Update a message](https://developers.google.com/chat/api/guides/crudl/messages#update_a_message). Requires [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts).", // "flatPath": "v1/spaces/{spacesId}/messages/{messagesId}", // "httpMethod": "PUT", // "id": "chat.spaces.messages.update", @@ -6978,7 +7059,10 @@ func (c *SpacesMessagesUpdateCall) Do(opts ...googleapi.CallOption) (*Message, e // }, // "response": { // "$ref": "Message" - // } + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/chat.messages" + // ] // } } diff --git a/cloudbuild/v1/cloudbuild-api.json b/cloudbuild/v1/cloudbuild-api.json index 727aeebe9e7..9c40d35c392 100644 --- a/cloudbuild/v1/cloudbuild-api.json +++ b/cloudbuild/v1/cloudbuild-api.json @@ -2295,7 +2295,7 @@ } } }, - "revision": "20221015", + "revision": "20221027", "rootUrl": "https://cloudbuild.googleapis.com/", "schemas": { "ApprovalConfig": { @@ -4019,50 +4019,6 @@ }, "type": "object" }, - "GoogleDevtoolsCloudbuildV2OperationMetadata": { - "description": "Represents the metadata of the long-running operation.", - "id": "GoogleDevtoolsCloudbuildV2OperationMetadata", - "properties": { - "apiVersion": { - "description": "Output only. API version used to start the operation.", - "readOnly": true, - "type": "string" - }, - "createTime": { - "description": "Output only. The time the operation was created.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "endTime": { - "description": "Output only. The time the operation finished running.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "requestedCancellation": { - "description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", - "readOnly": true, - "type": "boolean" - }, - "statusMessage": { - "description": "Output only. Human-readable status of the operation, if any.", - "readOnly": true, - "type": "string" - }, - "target": { - "description": "Output only. Server-defined resource path for the target of the operation.", - "readOnly": true, - "type": "string" - }, - "verb": { - "description": "Output only. Name of the verb executed by the operation.", - "readOnly": true, - "type": "string" - } - }, - "type": "object" - }, "HTTPDelivery": { "description": "HTTPDelivery is the delivery configuration for an HTTP notification.", "id": "HTTPDelivery", @@ -4845,50 +4801,6 @@ }, "type": "object" }, - "RunWorkflowCustomOperationMetadata": { - "description": "Represents the custom metadata of the RunWorkflow long-running operation.", - "id": "RunWorkflowCustomOperationMetadata", - "properties": { - "apiVersion": { - "description": "Output only. API version used to start the operation.", - "readOnly": true, - "type": "string" - }, - "createTime": { - "description": "Output only. The time the operation was created.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "endTime": { - "description": "Output only. The time the operation finished running.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "pipelineRunId": { - "description": "Output only. ID of the pipeline run created by RunWorkflow.", - "readOnly": true, - "type": "string" - }, - "requestedCancellation": { - "description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", - "readOnly": true, - "type": "boolean" - }, - "target": { - "description": "Output only. Server-defined resource path for the target of the operation.", - "readOnly": true, - "type": "string" - }, - "verb": { - "description": "Output only. Name of the verb executed by the operation.", - "readOnly": true, - "type": "string" - } - }, - "type": "object" - }, "SMTPDelivery": { "description": "SMTPDelivery is the delivery configuration for an SMTP (email) notification.", "id": "SMTPDelivery", diff --git a/cloudbuild/v1/cloudbuild-gen.go b/cloudbuild/v1/cloudbuild-gen.go index 1cfdf42964e..7f98f852832 100644 --- a/cloudbuild/v1/cloudbuild-gen.go +++ b/cloudbuild/v1/cloudbuild-gen.go @@ -2960,58 +2960,6 @@ func (s *GitRepoSource) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsCloudbuildV2OperationMetadata: Represents the metadata -// of the long-running operation. -type GoogleDevtoolsCloudbuildV2OperationMetadata struct { - // ApiVersion: Output only. API version used to start the operation. - ApiVersion string `json:"apiVersion,omitempty"` - - // CreateTime: Output only. The time the operation was created. - CreateTime string `json:"createTime,omitempty"` - - // EndTime: Output only. The time the operation finished running. - EndTime string `json:"endTime,omitempty"` - - // RequestedCancellation: Output only. Identifies whether the user has - // requested cancellation of the operation. Operations that have - // successfully been cancelled have Operation.error value with a - // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. - RequestedCancellation bool `json:"requestedCancellation,omitempty"` - - // StatusMessage: Output only. Human-readable status of the operation, - // if any. - StatusMessage string `json:"statusMessage,omitempty"` - - // Target: Output only. Server-defined resource path for the target of - // the operation. - Target string `json:"target,omitempty"` - - // Verb: Output only. Name of the verb executed by the operation. - Verb string `json:"verb,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ApiVersion") to - // unconditionally include in API requests. By default, fields with - // empty 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. "ApiVersion") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleDevtoolsCloudbuildV2OperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleDevtoolsCloudbuildV2OperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // HTTPDelivery: HTTPDelivery is the delivery configuration for an HTTP // notification. type HTTPDelivery struct { @@ -4438,58 +4386,6 @@ func (s *RunBuildTriggerRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// RunWorkflowCustomOperationMetadata: Represents the custom metadata of -// the RunWorkflow long-running operation. -type RunWorkflowCustomOperationMetadata struct { - // ApiVersion: Output only. API version used to start the operation. - ApiVersion string `json:"apiVersion,omitempty"` - - // CreateTime: Output only. The time the operation was created. - CreateTime string `json:"createTime,omitempty"` - - // EndTime: Output only. The time the operation finished running. - EndTime string `json:"endTime,omitempty"` - - // PipelineRunId: Output only. ID of the pipeline run created by - // RunWorkflow. - PipelineRunId string `json:"pipelineRunId,omitempty"` - - // RequestedCancellation: Output only. Identifies whether the user has - // requested cancellation of the operation. Operations that have - // successfully been cancelled have Operation.error value with a - // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. - RequestedCancellation bool `json:"requestedCancellation,omitempty"` - - // Target: Output only. Server-defined resource path for the target of - // the operation. - Target string `json:"target,omitempty"` - - // Verb: Output only. Name of the verb executed by the operation. - Verb string `json:"verb,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ApiVersion") to - // unconditionally include in API requests. By default, fields with - // empty 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. "ApiVersion") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *RunWorkflowCustomOperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod RunWorkflowCustomOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // SMTPDelivery: SMTPDelivery is the delivery configuration for an SMTP // (email) notification. type SMTPDelivery struct { diff --git a/clouddeploy/v1/clouddeploy-api.json b/clouddeploy/v1/clouddeploy-api.json index f540ddd2453..9d1dc9c7621 100644 --- a/clouddeploy/v1/clouddeploy-api.json +++ b/clouddeploy/v1/clouddeploy-api.json @@ -1334,7 +1334,7 @@ } } }, - "revision": "20220915", + "revision": "20221020", "rootUrl": "https://clouddeploy.googleapis.com/", "schemas": { "AbandonReleaseRequest": { @@ -1650,7 +1650,7 @@ "enumDescriptions": [ "Type is unspecified.", "A Pub/Sub notification failed to be sent.", - "Release render status changed notification." + "Deprecated: This field is never used. Use release_render log type instead." ], "type": "string" } @@ -1990,7 +1990,7 @@ "enumDescriptions": [ "Type is unspecified.", "A Pub/Sub notification failed to be sent.", - "Release render status changed notification." + "Deprecated: This field is never used. Use release_render log type instead." ], "type": "string" } @@ -2550,7 +2550,7 @@ "enumDescriptions": [ "Type is unspecified.", "A Pub/Sub notification failed to be sent.", - "Release render status changed notification." + "Deprecated: This field is never used. Use release_render log type instead." ], "type": "string" } @@ -2789,7 +2789,7 @@ "enumDescriptions": [ "Type is unspecified.", "A Pub/Sub notification failed to be sent.", - "Release render status changed notification." + "Deprecated: This field is never used. Use release_render log type instead." ], "type": "string" } @@ -3034,7 +3034,7 @@ "enumDescriptions": [ "Type is unspecified.", "A Pub/Sub notification failed to be sent.", - "Release render status changed notification." + "Deprecated: This field is never used. Use release_render log type instead." ], "type": "string" } diff --git a/clouddeploy/v1/clouddeploy-gen.go b/clouddeploy/v1/clouddeploy-gen.go index 9cc3bef1138..ce944b3d00b 100644 --- a/clouddeploy/v1/clouddeploy-gen.go +++ b/clouddeploy/v1/clouddeploy-gen.go @@ -814,8 +814,8 @@ type DeliveryPipelineNotificationEvent struct { // "TYPE_UNSPECIFIED" - Type is unspecified. // "TYPE_PUBSUB_NOTIFICATION_FAILURE" - A Pub/Sub notification failed // to be sent. - // "TYPE_RENDER_STATUES_CHANGE" - Release render status changed - // notification. + // "TYPE_RENDER_STATUES_CHANGE" - Deprecated: This field is never + // used. Use release_render log type instead. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "DeliveryPipeline") to @@ -1297,8 +1297,8 @@ type JobRunNotificationEvent struct { // "TYPE_UNSPECIFIED" - Type is unspecified. // "TYPE_PUBSUB_NOTIFICATION_FAILURE" - A Pub/Sub notification failed // to be sent. - // "TYPE_RENDER_STATUES_CHANGE" - Release render status changed - // notification. + // "TYPE_RENDER_STATUES_CHANGE" - Deprecated: This field is never + // used. Use release_render log type instead. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "JobRun") to @@ -2201,8 +2201,8 @@ type ReleaseNotificationEvent struct { // "TYPE_UNSPECIFIED" - Type is unspecified. // "TYPE_PUBSUB_NOTIFICATION_FAILURE" - A Pub/Sub notification failed // to be sent. - // "TYPE_RENDER_STATUES_CHANGE" - Release render status changed - // notification. + // "TYPE_RENDER_STATUES_CHANGE" - Deprecated: This field is never + // used. Use release_render log type instead. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Message") to @@ -2475,8 +2475,8 @@ type RolloutNotificationEvent struct { // "TYPE_UNSPECIFIED" - Type is unspecified. // "TYPE_PUBSUB_NOTIFICATION_FAILURE" - A Pub/Sub notification failed // to be sent. - // "TYPE_RENDER_STATUES_CHANGE" - Release render status changed - // notification. + // "TYPE_RENDER_STATUES_CHANGE" - Deprecated: This field is never + // used. Use release_render log type instead. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Message") to @@ -2894,8 +2894,8 @@ type TargetNotificationEvent struct { // "TYPE_UNSPECIFIED" - Type is unspecified. // "TYPE_PUBSUB_NOTIFICATION_FAILURE" - A Pub/Sub notification failed // to be sent. - // "TYPE_RENDER_STATUES_CHANGE" - Release render status changed - // notification. + // "TYPE_RENDER_STATUES_CHANGE" - Deprecated: This field is never + // used. Use release_render log type instead. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Message") to diff --git a/cloudfunctions/v2/cloudfunctions-api.json b/cloudfunctions/v2/cloudfunctions-api.json index 1e4be833279..2b210a58c62 100644 --- a/cloudfunctions/v2/cloudfunctions-api.json +++ b/cloudfunctions/v2/cloudfunctions-api.json @@ -571,7 +571,7 @@ } } }, - "revision": "20221020", + "revision": "20221027", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AuditConfig": { @@ -1753,7 +1753,7 @@ "type": "object" }, "ServiceConfig": { - "description": "Describes the Service being deployed. Currently Supported : Cloud Run (fully managed).", + "description": "Describes the Service being deployed. Currently Supported : Cloud Run (fully managed). Next tag: 23", "id": "ServiceConfig", "properties": { "allTrafficOnLatestRevision": { diff --git a/cloudfunctions/v2/cloudfunctions-gen.go b/cloudfunctions/v2/cloudfunctions-gen.go index 0c39dce45c2..394b0bba557 100644 --- a/cloudfunctions/v2/cloudfunctions-gen.go +++ b/cloudfunctions/v2/cloudfunctions-gen.go @@ -1954,7 +1954,7 @@ func (s *SecretVolume) MarshalJSON() ([]byte, error) { } // ServiceConfig: Describes the Service being deployed. Currently -// Supported : Cloud Run (fully managed). +// Supported : Cloud Run (fully managed). Next tag: 23 type ServiceConfig struct { // AllTrafficOnLatestRevision: Whether 100% of traffic is routed to the // latest revision. On CreateFunction and UpdateFunction, when set to diff --git a/cloudfunctions/v2alpha/cloudfunctions-api.json b/cloudfunctions/v2alpha/cloudfunctions-api.json index 8ea62f4b66d..cbc87190444 100644 --- a/cloudfunctions/v2alpha/cloudfunctions-api.json +++ b/cloudfunctions/v2alpha/cloudfunctions-api.json @@ -571,7 +571,7 @@ } } }, - "revision": "20221020", + "revision": "20221027", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AuditConfig": { @@ -1753,7 +1753,7 @@ "type": "object" }, "ServiceConfig": { - "description": "Describes the Service being deployed. Currently Supported : Cloud Run (fully managed).", + "description": "Describes the Service being deployed. Currently Supported : Cloud Run (fully managed). Next tag: 23", "id": "ServiceConfig", "properties": { "allTrafficOnLatestRevision": { diff --git a/cloudfunctions/v2alpha/cloudfunctions-gen.go b/cloudfunctions/v2alpha/cloudfunctions-gen.go index ef85b98a5d5..41ce209298f 100644 --- a/cloudfunctions/v2alpha/cloudfunctions-gen.go +++ b/cloudfunctions/v2alpha/cloudfunctions-gen.go @@ -1954,7 +1954,7 @@ func (s *SecretVolume) MarshalJSON() ([]byte, error) { } // ServiceConfig: Describes the Service being deployed. Currently -// Supported : Cloud Run (fully managed). +// Supported : Cloud Run (fully managed). Next tag: 23 type ServiceConfig struct { // AllTrafficOnLatestRevision: Whether 100% of traffic is routed to the // latest revision. On CreateFunction and UpdateFunction, when set to diff --git a/cloudfunctions/v2beta/cloudfunctions-api.json b/cloudfunctions/v2beta/cloudfunctions-api.json index b6b0380f26c..c75880d0a8f 100644 --- a/cloudfunctions/v2beta/cloudfunctions-api.json +++ b/cloudfunctions/v2beta/cloudfunctions-api.json @@ -571,7 +571,7 @@ } } }, - "revision": "20221020", + "revision": "20221027", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AuditConfig": { @@ -1753,7 +1753,7 @@ "type": "object" }, "ServiceConfig": { - "description": "Describes the Service being deployed. Currently Supported : Cloud Run (fully managed).", + "description": "Describes the Service being deployed. Currently Supported : Cloud Run (fully managed). Next tag: 23", "id": "ServiceConfig", "properties": { "allTrafficOnLatestRevision": { diff --git a/cloudfunctions/v2beta/cloudfunctions-gen.go b/cloudfunctions/v2beta/cloudfunctions-gen.go index 545fb2d8009..e6c0d9230f9 100644 --- a/cloudfunctions/v2beta/cloudfunctions-gen.go +++ b/cloudfunctions/v2beta/cloudfunctions-gen.go @@ -1954,7 +1954,7 @@ func (s *SecretVolume) MarshalJSON() ([]byte, error) { } // ServiceConfig: Describes the Service being deployed. Currently -// Supported : Cloud Run (fully managed). +// Supported : Cloud Run (fully managed). Next tag: 23 type ServiceConfig struct { // AllTrafficOnLatestRevision: Whether 100% of traffic is routed to the // latest revision. On CreateFunction and UpdateFunction, when set to diff --git a/composer/v1beta1/composer-api.json b/composer/v1beta1/composer-api.json index 5cf13579121..9c40c2521ef 100644 --- a/composer/v1beta1/composer-api.json +++ b/composer/v1beta1/composer-api.json @@ -518,7 +518,7 @@ } } }, - "revision": "20220920", + "revision": "20221028", "rootUrl": "https://composer.googleapis.com/", "schemas": { "AllowedIpRange": { @@ -605,6 +605,17 @@ }, "type": "object" }, + "CloudDataLineageIntegration": { + "description": "Configuration for Cloud Data Lineage integration.", + "id": "CloudDataLineageIntegration", + "properties": { + "enabled": { + "description": "Optional. Whether or not Cloud Data Lineage integration is enabled.", + "type": "boolean" + } + }, + "type": "object" + }, "DatabaseConfig": { "description": "The configuration of Cloud SQL instance that is used by the Apache Airflow software.", "id": "DatabaseConfig", @@ -916,6 +927,18 @@ "description": "Request to load a snapshot into a Cloud Composer environment.", "id": "LoadSnapshotRequest", "properties": { + "skipAirflowOverridesSetting": { + "description": "Whether or not to skip setting Airflow overrides when loading the environment's state.", + "type": "boolean" + }, + "skipEnvironmentVariablesSetting": { + "description": "Whether or not to skip setting environment variables when loading the environment's state.", + "type": "boolean" + }, + "skipGcsDataCopying": { + "description": "Whether or not to skip copying Cloud Storage data when loading the environment's state.", + "type": "boolean" + }, "skipPypiPackagesInstallation": { "description": "Whether or not to skip installing Pypi packages when loading the environment's state.", "type": "boolean" @@ -1287,6 +1310,10 @@ "description": "Optional. Apache Airflow configuration properties to override. Property keys contain the section and property names, separated by a hyphen, for example \"core-dags_are_paused_at_creation\". Section names must not contain hyphens (\"-\"), opening square brackets (\"[\"), or closing square brackets (\"]\"). The property name must not be empty and must not contain an equals sign (\"=\") or semicolon (\";\"). Section and property names must not contain a period (\".\"). Apache Airflow configuration property names must be written in [snake_case](https://en.wikipedia.org/wiki/Snake_case). Property values can contain any character, and can be written in any lower/upper case format. Certain Apache Airflow configuration property values are [blocked](/composer/docs/concepts/airflow-configurations), and cannot be overridden.", "type": "object" }, + "cloudDataLineageIntegration": { + "$ref": "CloudDataLineageIntegration", + "description": "Optional. The configuration for Cloud Data Lineage integration." + }, "envVariables": { "additionalProperties": { "type": "string" diff --git a/composer/v1beta1/composer-gen.go b/composer/v1beta1/composer-gen.go index b5c52ccfd29..959d836dcac 100644 --- a/composer/v1beta1/composer-gen.go +++ b/composer/v1beta1/composer-gen.go @@ -364,6 +364,36 @@ func (s *CidrBlock) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// CloudDataLineageIntegration: Configuration for Cloud Data Lineage +// integration. +type CloudDataLineageIntegration struct { + // Enabled: Optional. Whether or not Cloud Data Lineage integration is + // enabled. + Enabled bool `json:"enabled,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Enabled") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Enabled") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CloudDataLineageIntegration) MarshalJSON() ([]byte, error) { + type NoMethod CloudDataLineageIntegration + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // DatabaseConfig: The configuration of Cloud SQL instance that is used // by the Apache Airflow software. type DatabaseConfig struct { @@ -915,6 +945,18 @@ func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) { // LoadSnapshotRequest: Request to load a snapshot into a Cloud Composer // environment. type LoadSnapshotRequest struct { + // SkipAirflowOverridesSetting: Whether or not to skip setting Airflow + // overrides when loading the environment's state. + SkipAirflowOverridesSetting bool `json:"skipAirflowOverridesSetting,omitempty"` + + // SkipEnvironmentVariablesSetting: Whether or not to skip setting + // environment variables when loading the environment's state. + SkipEnvironmentVariablesSetting bool `json:"skipEnvironmentVariablesSetting,omitempty"` + + // SkipGcsDataCopying: Whether or not to skip copying Cloud Storage data + // when loading the environment's state. + SkipGcsDataCopying bool `json:"skipGcsDataCopying,omitempty"` + // SkipPypiPackagesInstallation: Whether or not to skip installing Pypi // packages when loading the environment's state. SkipPypiPackagesInstallation bool `json:"skipPypiPackagesInstallation,omitempty"` @@ -924,7 +966,7 @@ type LoadSnapshotRequest struct { SnapshotPath string `json:"snapshotPath,omitempty"` // ForceSendFields is a list of field names (e.g. - // "SkipPypiPackagesInstallation") to unconditionally include in API + // "SkipAirflowOverridesSetting") 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 @@ -933,7 +975,7 @@ type LoadSnapshotRequest struct { ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. - // "SkipPypiPackagesInstallation") to include in API requests with the + // "SkipAirflowOverridesSetting") to include in API requests with the // JSON null value. By default, fields with empty values are omitted // from API requests. However, any field with an empty value appearing // in NullFields will be sent to the server as null. It is an error if a @@ -1610,6 +1652,10 @@ type SoftwareConfig struct { // be overridden. AirflowConfigOverrides map[string]string `json:"airflowConfigOverrides,omitempty"` + // CloudDataLineageIntegration: Optional. The configuration for Cloud + // Data Lineage integration. + CloudDataLineageIntegration *CloudDataLineageIntegration `json:"cloudDataLineageIntegration,omitempty"` + // EnvVariables: Optional. Additional environment variables to provide // to the Apache Airflow scheduler, worker, and webserver processes. // Environment variable names must match the regular expression diff --git a/container/v1/container-api.json b/container/v1/container-api.json index 9b6a3feda9b..a88873efd92 100644 --- a/container/v1/container-api.json +++ b/container/v1/container-api.json @@ -2487,7 +2487,7 @@ } } }, - "revision": "20220923", + "revision": "20221017", "rootUrl": "https://container.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -3229,6 +3229,14 @@ "$ref": "DNSConfig", "description": "DNSConfig contains clusterDNS config for this cluster." }, + "desiredEnablePrivateEndpoint": { + "description": "Enable/Disable private endpoint for the cluster's master.", + "type": "boolean" + }, + "desiredGatewayApiConfig": { + "$ref": "GatewayAPIConfig", + "description": "The desired config of Gateway API on this cluster." + }, "desiredGcfsConfig": { "$ref": "GcfsConfig", "description": "The desired GCFS config for the cluster" @@ -3633,6 +3641,29 @@ }, "type": "object" }, + "GatewayAPIConfig": { + "description": "GatewayAPIConfig contains the desired config of Gateway API on this cluster.", + "id": "GatewayAPIConfig", + "properties": { + "channel": { + "description": "The Gateway API release channel to use for Gateway API.", + "enum": [ + "CHANNEL_UNSPECIFIED", + "CHANNEL_DISABLED", + "CHANNEL_EXPERIMENTAL", + "CHANNEL_STANDARD" + ], + "enumDescriptions": [ + "Default value.", + "Gateway API support is disabled", + "Gateway API support is enabled, experimental CRDs are installed", + "Gateway API support is enabled, standard CRDs are installed" + ], + "type": "string" + } + }, + "type": "object" + }, "GcePersistentDiskCsiDriverConfig": { "description": "Configuration for the Compute Engine PD CSI driver.", "id": "GcePersistentDiskCsiDriverConfig", @@ -3980,6 +4011,20 @@ "description": "Parameters that can be configured on Linux nodes.", "id": "LinuxNodeConfig", "properties": { + "cgroupMode": { + "description": "cgroup_mode specifies the cgroup mode to be used on the node.", + "enum": [ + "CGROUP_MODE_UNSPECIFIED", + "CGROUP_MODE_V1", + "CGROUP_MODE_V2" + ], + "enumDescriptions": [ + "CGROUP_MODE_UNSPECIFIED is when unspecified cgroup configuration is used. The default for the GKE node OS image will be used.", + "CGROUP_MODE_V1 specifies to use cgroupv1 for the cgroup configuration on the node image.", + "CGROUP_MODE_V2 specifies to use cgroupv2 for the cgroup configuration on the node image." + ], + "type": "string" + }, "sysctls": { "additionalProperties": { "type": "string" @@ -4074,12 +4119,18 @@ "enum": [ "COMPONENT_UNSPECIFIED", "SYSTEM_COMPONENTS", - "WORKLOADS" + "WORKLOADS", + "APISERVER", + "SCHEDULER", + "CONTROLLER_MANAGER" ], "enumDescriptions": [ "Default value. This shouldn't be used.", "system components", - "workloads" + "workloads", + "kube-apiserver", + "kube-scheduler", + "kube-controller-manager" ], "type": "string" }, @@ -4234,6 +4285,10 @@ "enabled": { "description": "Whether or not master authorized networks is enabled.", "type": "boolean" + }, + "gcpPublicCidrsAccessEnabled": { + "description": "Whether master is accessbile via Google Compute Engine Public IP addresses.", + "type": "boolean" } }, "type": "object" @@ -4363,6 +4418,10 @@ "description": "Whether L4ILB Subsetting is enabled for this cluster.", "type": "boolean" }, + "gatewayApiConfig": { + "$ref": "GatewayAPIConfig", + "description": "GatewayAPIConfig contains the desired config of Gateway API on this cluster." + }, "network": { "description": "Output only. The relative name of the Google Compute Engine network(https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to which the cluster is connected. Example: projects/my-project/global/networks/my-network", "type": "string" @@ -4563,6 +4622,13 @@ "$ref": "ReservationAffinity", "description": "The optional reservation affinity. Setting this field will apply the specified [Zonal Compute Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) to this node pool." }, + "resourceLabels": { + "additionalProperties": { + "type": "string" + }, + "description": "The resource labels for the node pool to use to annotate any related Google Compute Engine resources.", + "type": "object" + }, "sandboxConfig": { "$ref": "SandboxConfig", "description": "Sandbox configuration for this node." @@ -4680,6 +4746,10 @@ "description": "Input only. Whether to create a new range for pod IPs in this node pool. Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they are not specified. If neither `create_pod_range` or `pod_range` are specified, the cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is used. Only applicable if `ip_allocation_policy.use_ip_aliases` is true. This field cannot be changed after the node pool has been created.", "type": "boolean" }, + "enablePrivateNodes": { + "description": "Whether nodes have internal IP addresses only. If enable_private_nodes is not specified, then the value is derived from cluster.privateClusterConfig.enablePrivateNodes", + "type": "boolean" + }, "networkPerformanceConfig": { "$ref": "NetworkPerformanceConfig", "description": "Network bandwidth tier configuration." @@ -5136,6 +5206,10 @@ "description": "Output only. The internal IP address of this cluster's master endpoint.", "type": "string" }, + "privateEndpointSubnetwork": { + "description": "Subnet to provision the master's private endpoint during cluster creation. Specified in projects/*/regions/*/subnetworks/* format.", + "type": "string" + }, "publicEndpoint": { "description": "Output only. The external IP address of this cluster's master endpoint.", "type": "string" @@ -5279,6 +5353,20 @@ }, "type": "object" }, + "ResourceLabels": { + "description": "Collection of [GCP labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).", + "id": "ResourceLabels", + "properties": { + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Map of node label keys and node label values.", + "type": "object" + } + }, + "type": "object" + }, "ResourceLimit": { "description": "Contains information about amount of some resource in the cluster. For memory, value should be in GB.", "id": "ResourceLimit", @@ -5878,7 +5966,7 @@ "type": "integer" }, "batchPercentage": { - "description": "Percentage of the bool pool nodes to drain in a batch. The range of this field should be (0.0, 1.0].", + "description": "Percentage of the blue pool nodes to drain in a batch. The range of this field should be (0.0, 1.0].", "format": "float", "type": "number" }, @@ -6172,6 +6260,10 @@ "description": "Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field.", "type": "string" }, + "resourceLabels": { + "$ref": "ResourceLabels", + "description": "The resource labels for the node pool to use to annotate any related Google Compute Engine resources." + }, "tags": { "$ref": "NetworkTags", "description": "The desired network tags to be applied to all nodes in the node pool. If this field is not present, the tags will not be changed. Otherwise, the existing network tags will be *replaced* with the provided tags." diff --git a/container/v1/container-gen.go b/container/v1/container-gen.go index 06051281c02..fb3d9e836c0 100644 --- a/container/v1/container-gen.go +++ b/container/v1/container-gen.go @@ -1389,6 +1389,14 @@ type ClusterUpdate struct { // cluster. DesiredDnsConfig *DNSConfig `json:"desiredDnsConfig,omitempty"` + // DesiredEnablePrivateEndpoint: Enable/Disable private endpoint for the + // cluster's master. + DesiredEnablePrivateEndpoint bool `json:"desiredEnablePrivateEndpoint,omitempty"` + + // DesiredGatewayApiConfig: The desired config of Gateway API on this + // cluster. + DesiredGatewayApiConfig *GatewayAPIConfig `json:"desiredGatewayApiConfig,omitempty"` + // DesiredGcfsConfig: The desired GCFS config for the cluster DesiredGcfsConfig *GcfsConfig `json:"desiredGcfsConfig,omitempty"` @@ -2097,6 +2105,43 @@ func (s *GPUSharingConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GatewayAPIConfig: GatewayAPIConfig contains the desired config of +// Gateway API on this cluster. +type GatewayAPIConfig struct { + // Channel: The Gateway API release channel to use for Gateway API. + // + // Possible values: + // "CHANNEL_UNSPECIFIED" - Default value. + // "CHANNEL_DISABLED" - Gateway API support is disabled + // "CHANNEL_EXPERIMENTAL" - Gateway API support is enabled, + // experimental CRDs are installed + // "CHANNEL_STANDARD" - Gateway API support is enabled, standard CRDs + // are installed + Channel string `json:"channel,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Channel") 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. "Channel") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GatewayAPIConfig) MarshalJSON() ([]byte, error) { + type NoMethod GatewayAPIConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GcePersistentDiskCsiDriverConfig: Configuration for the Compute // Engine PD CSI driver. type GcePersistentDiskCsiDriverConfig struct { @@ -2755,6 +2800,19 @@ func (s *LegacyAbac) MarshalJSON() ([]byte, error) { // LinuxNodeConfig: Parameters that can be configured on Linux nodes. type LinuxNodeConfig struct { + // CgroupMode: cgroup_mode specifies the cgroup mode to be used on the + // node. + // + // Possible values: + // "CGROUP_MODE_UNSPECIFIED" - CGROUP_MODE_UNSPECIFIED is when + // unspecified cgroup configuration is used. The default for the GKE + // node OS image will be used. + // "CGROUP_MODE_V1" - CGROUP_MODE_V1 specifies to use cgroupv1 for the + // cgroup configuration on the node image. + // "CGROUP_MODE_V2" - CGROUP_MODE_V2 specifies to use cgroupv2 for the + // cgroup configuration on the node image. + CgroupMode string `json:"cgroupMode,omitempty"` + // Sysctls: The Linux kernel parameters to be applied to the nodes and // all pods running on the nodes. The following parameters are // supported. net.core.busy_poll net.core.busy_read @@ -2763,7 +2821,7 @@ type LinuxNodeConfig struct { // net.ipv4.tcp_rmem net.ipv4.tcp_wmem net.ipv4.tcp_tw_reuse Sysctls map[string]string `json:"sysctls,omitempty"` - // ForceSendFields is a list of field names (e.g. "Sysctls") to + // ForceSendFields is a list of field names (e.g. "CgroupMode") 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 @@ -2771,7 +2829,7 @@ type LinuxNodeConfig struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Sysctls") to include in + // NullFields is a list of field names (e.g. "CgroupMode") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -2946,6 +3004,9 @@ type LoggingComponentConfig struct { // "COMPONENT_UNSPECIFIED" - Default value. This shouldn't be used. // "SYSTEM_COMPONENTS" - system components // "WORKLOADS" - workloads + // "APISERVER" - kube-apiserver + // "SCHEDULER" - kube-scheduler + // "CONTROLLER_MANAGER" - kube-controller-manager EnableComponents []string `json:"enableComponents,omitempty"` // ForceSendFields is a list of field names (e.g. "EnableComponents") to @@ -3262,6 +3323,10 @@ type MasterAuthorizedNetworksConfig struct { // Enabled: Whether or not master authorized networks is enabled. Enabled bool `json:"enabled,omitempty"` + // GcpPublicCidrsAccessEnabled: Whether master is accessbile via Google + // Compute Engine Public IP addresses. + GcpPublicCidrsAccessEnabled bool `json:"gcpPublicCidrsAccessEnabled,omitempty"` + // ForceSendFields is a list of field names (e.g. "CidrBlocks") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -3508,6 +3573,10 @@ type NetworkConfig struct { // cluster. EnableL4ilbSubsetting bool `json:"enableL4ilbSubsetting,omitempty"` + // GatewayApiConfig: GatewayAPIConfig contains the desired config of + // Gateway API on this cluster. + GatewayApiConfig *GatewayAPIConfig `json:"gatewayApiConfig,omitempty"` + // Network: Output only. The relative name of the Google Compute Engine // network(https://cloud.google.com/compute/docs/networks-and-firewalls#n // etworks) to which the cluster is connected. Example: @@ -3826,6 +3895,10 @@ type NodeConfig struct { // to this node pool. ReservationAffinity *ReservationAffinity `json:"reservationAffinity,omitempty"` + // ResourceLabels: The resource labels for the node pool to use to + // annotate any related Google Compute Engine resources. + ResourceLabels map[string]string `json:"resourceLabels,omitempty"` + // SandboxConfig: Sandbox configuration for this node. SandboxConfig *SandboxConfig `json:"sandboxConfig,omitempty"` @@ -4051,6 +4124,11 @@ type NodeNetworkConfig struct { // This field cannot be changed after the node pool has been created. CreatePodRange bool `json:"createPodRange,omitempty"` + // EnablePrivateNodes: Whether nodes have internal IP addresses only. If + // enable_private_nodes is not specified, then the value is derived from + // cluster.privateClusterConfig.enablePrivateNodes + EnablePrivateNodes bool `json:"enablePrivateNodes,omitempty"` + // NetworkPerformanceConfig: Network bandwidth tier configuration. NetworkPerformanceConfig *NetworkPerformanceConfig `json:"networkPerformanceConfig,omitempty"` @@ -4673,6 +4751,11 @@ type PrivateClusterConfig struct { // cluster's master endpoint. PrivateEndpoint string `json:"privateEndpoint,omitempty"` + // PrivateEndpointSubnetwork: Subnet to provision the master's private + // endpoint during cluster creation. Specified in + // projects/*/regions/*/subnetworks/* format. + PrivateEndpointSubnetwork string `json:"privateEndpointSubnetwork,omitempty"` + // PublicEndpoint: Output only. The external IP address of this // cluster's master endpoint. PublicEndpoint string `json:"publicEndpoint,omitempty"` @@ -4961,6 +5044,35 @@ func (s *ReservationAffinity) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ResourceLabels: Collection of GCP labels +// (https://cloud.google.com/resource-manager/docs/creating-managing-labels). +type ResourceLabels struct { + // Labels: Map of node label keys and node label values. + Labels map[string]string `json:"labels,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Labels") to + // unconditionally include in API requests. By default, fields with + // empty 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. "Labels") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ResourceLabels) MarshalJSON() ([]byte, error) { + type NoMethod ResourceLabels + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ResourceLimit: Contains information about amount of some resource in // the cluster. For memory, value should be in GB. type ResourceLimit struct { @@ -6005,7 +6117,7 @@ type StandardRolloutPolicy struct { // BatchNodeCount: Number of blue nodes to drain in a batch. BatchNodeCount int64 `json:"batchNodeCount,omitempty"` - // BatchPercentage: Percentage of the bool pool nodes to drain in a + // BatchPercentage: Percentage of the blue pool nodes to drain in a // batch. The range of this field should be (0.0, 1.0]. BatchPercentage float64 `json:"batchPercentage,omitempty"` @@ -6526,6 +6638,10 @@ type UpdateNodePoolRequest struct { // This field has been deprecated and replaced by the name field. ProjectId string `json:"projectId,omitempty"` + // ResourceLabels: The resource labels for the node pool to use to + // annotate any related Google Compute Engine resources. + ResourceLabels *ResourceLabels `json:"resourceLabels,omitempty"` + // Tags: The desired network tags to be applied to all nodes in the node // pool. If this field is not present, the tags will not be changed. // Otherwise, the existing network tags will be *replaced* with the diff --git a/container/v1beta1/container-api.json b/container/v1beta1/container-api.json index 40c0aff12e4..3bab1277cff 100644 --- a/container/v1beta1/container-api.json +++ b/container/v1beta1/container-api.json @@ -2512,7 +2512,7 @@ } } }, - "revision": "20220923", + "revision": "20221017", "rootUrl": "https://container.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -3345,6 +3345,14 @@ "$ref": "DNSConfig", "description": "DNSConfig contains clusterDNS config for this cluster." }, + "desiredEnablePrivateEndpoint": { + "description": "Enable/Disable private endpoint for the cluster's master.", + "type": "boolean" + }, + "desiredGatewayApiConfig": { + "$ref": "GatewayAPIConfig", + "description": "The desired config of Gateway API on this cluster." + }, "desiredGcfsConfig": { "$ref": "GcfsConfig", "description": "The desired GCFS config for the cluster." @@ -3809,6 +3817,29 @@ }, "type": "object" }, + "GatewayAPIConfig": { + "description": "GatewayAPIConfig contains the desired config of Gateway API on this cluster.", + "id": "GatewayAPIConfig", + "properties": { + "channel": { + "description": "The Gateway API release channel to use for Gateway API.", + "enum": [ + "CHANNEL_UNSPECIFIED", + "CHANNEL_DISABLED", + "CHANNEL_EXPERIMENTAL", + "CHANNEL_STANDARD" + ], + "enumDescriptions": [ + "Default value.", + "Gateway API support is disabled", + "Gateway API support is enabled, experimental CRDs are installed", + "Gateway API support is enabled, standard CRDs are installed" + ], + "type": "string" + } + }, + "type": "object" + }, "GcePersistentDiskCsiDriverConfig": { "description": "Configuration for the Compute Engine PD CSI driver.", "id": "GcePersistentDiskCsiDriverConfig", @@ -4359,12 +4390,18 @@ "enum": [ "COMPONENT_UNSPECIFIED", "SYSTEM_COMPONENTS", - "WORKLOADS" + "WORKLOADS", + "APISERVER", + "SCHEDULER", + "CONTROLLER_MANAGER" ], "enumDescriptions": [ "Default value. This shouldn't be used.", "system components", - "workloads" + "workloads", + "kube-apiserver", + "kube-scheduler", + "kube-controller-manager" ], "type": "string" }, @@ -4524,6 +4561,10 @@ "enabled": { "description": "Whether or not master authorized networks is enabled.", "type": "boolean" + }, + "gcpPublicCidrsAccessEnabled": { + "description": "Whether master is accessbile via Google Compute Engine Public IP addresses.", + "type": "boolean" } }, "type": "object" @@ -4655,6 +4696,10 @@ "description": "Whether L4ILB Subsetting is enabled for this cluster.", "type": "boolean" }, + "gatewayApiConfig": { + "$ref": "GatewayAPIConfig", + "description": "GatewayAPIConfig contains the desired config of Gateway API on this cluster." + }, "network": { "description": "Output only. The relative name of the Google Compute Engine network(https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to which the cluster is connected. Example: projects/my-project/global/networks/my-network", "type": "string" @@ -4871,6 +4916,13 @@ "$ref": "ReservationAffinity", "description": "The optional reservation affinity. Setting this field will apply the specified [Zonal Compute Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) to this node pool." }, + "resourceLabels": { + "additionalProperties": { + "type": "string" + }, + "description": "The resource labels for the node pool to use to annotate any related Google Compute Engine resources.", + "type": "object" + }, "sandboxConfig": { "$ref": "SandboxConfig", "description": "Sandbox configuration for this node." @@ -4988,6 +5040,10 @@ "description": "Input only. Whether to create a new range for pod IPs in this node pool. Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they are not specified. If neither `create_pod_range` or `pod_range` are specified, the cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is used. Only applicable if `ip_allocation_policy.use_ip_aliases` is true. This field cannot be changed after the node pool has been created.", "type": "boolean" }, + "enablePrivateNodes": { + "description": "Whether nodes have internal IP addresses only. If enable_private_nodes is not specified, then the value is derived from cluster.privateClusterConfig.enablePrivateNodes", + "type": "boolean" + }, "networkPerformanceConfig": { "$ref": "NetworkPerformanceConfig", "description": "Network bandwidth tier configuration." @@ -5478,6 +5534,10 @@ "description": "Output only. The internal IP address of this cluster's master endpoint.", "type": "string" }, + "privateEndpointSubnetwork": { + "description": "Subnet to provision the master's private endpoint during cluster creation. Specified in projects/*/regions/*/subnetworks/* format.", + "type": "string" + }, "publicEndpoint": { "description": "Output only. The external IP address of this cluster's master endpoint.", "type": "string" @@ -5653,6 +5713,20 @@ }, "type": "object" }, + "ResourceLabels": { + "description": "Collection of [GCP labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).", + "id": "ResourceLabels", + "properties": { + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Map of node label keys and node label values.", + "type": "object" + } + }, + "type": "object" + }, "ResourceLimit": { "description": "Contains information about amount of some resource in the cluster. For memory, value should be in GB.", "id": "ResourceLimit", @@ -6263,7 +6337,7 @@ "type": "integer" }, "batchPercentage": { - "description": "Percentage of the bool pool nodes to drain in a batch. The range of this field should be (0.0, 1.0].", + "description": "Percentage of the blue pool nodes to drain in a batch. The range of this field should be (0.0, 1.0].", "format": "float", "type": "number" }, @@ -6576,6 +6650,10 @@ "description": "Required. Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field.", "type": "string" }, + "resourceLabels": { + "$ref": "ResourceLabels", + "description": "The resource labels for the node pool to use to annotate any related Google Compute Engine resources." + }, "tags": { "$ref": "NetworkTags", "description": "The desired network tags to be applied to all nodes in the node pool. If this field is not present, the tags will not be changed. Otherwise, the existing network tags will be *replaced* with the provided tags." diff --git a/container/v1beta1/container-gen.go b/container/v1beta1/container-gen.go index 5bbcc8abecc..6fdfce50987 100644 --- a/container/v1beta1/container-gen.go +++ b/container/v1beta1/container-gen.go @@ -1522,6 +1522,14 @@ type ClusterUpdate struct { // cluster. DesiredDnsConfig *DNSConfig `json:"desiredDnsConfig,omitempty"` + // DesiredEnablePrivateEndpoint: Enable/Disable private endpoint for the + // cluster's master. + DesiredEnablePrivateEndpoint bool `json:"desiredEnablePrivateEndpoint,omitempty"` + + // DesiredGatewayApiConfig: The desired config of Gateway API on this + // cluster. + DesiredGatewayApiConfig *GatewayAPIConfig `json:"desiredGatewayApiConfig,omitempty"` + // DesiredGcfsConfig: The desired GCFS config for the cluster. DesiredGcfsConfig *GcfsConfig `json:"desiredGcfsConfig,omitempty"` @@ -2331,6 +2339,43 @@ func (s *GPUSharingConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GatewayAPIConfig: GatewayAPIConfig contains the desired config of +// Gateway API on this cluster. +type GatewayAPIConfig struct { + // Channel: The Gateway API release channel to use for Gateway API. + // + // Possible values: + // "CHANNEL_UNSPECIFIED" - Default value. + // "CHANNEL_DISABLED" - Gateway API support is disabled + // "CHANNEL_EXPERIMENTAL" - Gateway API support is enabled, + // experimental CRDs are installed + // "CHANNEL_STANDARD" - Gateway API support is enabled, standard CRDs + // are installed + Channel string `json:"channel,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Channel") 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. "Channel") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GatewayAPIConfig) MarshalJSON() ([]byte, error) { + type NoMethod GatewayAPIConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GcePersistentDiskCsiDriverConfig: Configuration for the Compute // Engine PD CSI driver. type GcePersistentDiskCsiDriverConfig struct { @@ -3362,6 +3407,9 @@ type LoggingComponentConfig struct { // "COMPONENT_UNSPECIFIED" - Default value. This shouldn't be used. // "SYSTEM_COMPONENTS" - system components // "WORKLOADS" - workloads + // "APISERVER" - kube-apiserver + // "SCHEDULER" - kube-scheduler + // "CONTROLLER_MANAGER" - kube-controller-manager EnableComponents []string `json:"enableComponents,omitempty"` // ForceSendFields is a list of field names (e.g. "EnableComponents") to @@ -3680,6 +3728,10 @@ type MasterAuthorizedNetworksConfig struct { // Enabled: Whether or not master authorized networks is enabled. Enabled bool `json:"enabled,omitempty"` + // GcpPublicCidrsAccessEnabled: Whether master is accessbile via Google + // Compute Engine Public IP addresses. + GcpPublicCidrsAccessEnabled bool `json:"gcpPublicCidrsAccessEnabled,omitempty"` + // ForceSendFields is a list of field names (e.g. "CidrBlocks") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -3928,6 +3980,10 @@ type NetworkConfig struct { // cluster. EnableL4ilbSubsetting bool `json:"enableL4ilbSubsetting,omitempty"` + // GatewayApiConfig: GatewayAPIConfig contains the desired config of + // Gateway API on this cluster. + GatewayApiConfig *GatewayAPIConfig `json:"gatewayApiConfig,omitempty"` + // Network: Output only. The relative name of the Google Compute Engine // network(https://cloud.google.com/compute/docs/networks-and-firewalls#n // etworks) to which the cluster is connected. Example: @@ -4260,6 +4316,10 @@ type NodeConfig struct { // to this node pool. ReservationAffinity *ReservationAffinity `json:"reservationAffinity,omitempty"` + // ResourceLabels: The resource labels for the node pool to use to + // annotate any related Google Compute Engine resources. + ResourceLabels map[string]string `json:"resourceLabels,omitempty"` + // SandboxConfig: Sandbox configuration for this node. SandboxConfig *SandboxConfig `json:"sandboxConfig,omitempty"` @@ -4479,6 +4539,11 @@ type NodeNetworkConfig struct { // This field cannot be changed after the node pool has been created. CreatePodRange bool `json:"createPodRange,omitempty"` + // EnablePrivateNodes: Whether nodes have internal IP addresses only. If + // enable_private_nodes is not specified, then the value is derived from + // cluster.privateClusterConfig.enablePrivateNodes + EnablePrivateNodes bool `json:"enablePrivateNodes,omitempty"` + // NetworkPerformanceConfig: Network bandwidth tier configuration. NetworkPerformanceConfig *NetworkPerformanceConfig `json:"networkPerformanceConfig,omitempty"` @@ -5185,6 +5250,11 @@ type PrivateClusterConfig struct { // cluster's master endpoint. PrivateEndpoint string `json:"privateEndpoint,omitempty"` + // PrivateEndpointSubnetwork: Subnet to provision the master's private + // endpoint during cluster creation. Specified in + // projects/*/regions/*/subnetworks/* format. + PrivateEndpointSubnetwork string `json:"privateEndpointSubnetwork,omitempty"` + // PublicEndpoint: Output only. The external IP address of this // cluster's master endpoint. PublicEndpoint string `json:"publicEndpoint,omitempty"` @@ -5521,6 +5591,35 @@ func (s *ReservationAffinity) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ResourceLabels: Collection of GCP labels +// (https://cloud.google.com/resource-manager/docs/creating-managing-labels). +type ResourceLabels struct { + // Labels: Map of node label keys and node label values. + Labels map[string]string `json:"labels,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Labels") to + // unconditionally include in API requests. By default, fields with + // empty 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. "Labels") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ResourceLabels) MarshalJSON() ([]byte, error) { + type NoMethod ResourceLabels + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ResourceLimit: Contains information about amount of some resource in // the cluster. For memory, value should be in GB. type ResourceLimit struct { @@ -6576,7 +6675,7 @@ type StandardRolloutPolicy struct { // BatchNodeCount: Number of blue nodes to drain in a batch. BatchNodeCount int64 `json:"batchNodeCount,omitempty"` - // BatchPercentage: Percentage of the bool pool nodes to drain in a + // BatchPercentage: Percentage of the blue pool nodes to drain in a // batch. The range of this field should be (0.0, 1.0]. BatchPercentage float64 `json:"batchPercentage,omitempty"` @@ -7133,6 +7232,10 @@ type UpdateNodePoolRequest struct { // This field has been deprecated and replaced by the name field. ProjectId string `json:"projectId,omitempty"` + // ResourceLabels: The resource labels for the node pool to use to + // annotate any related Google Compute Engine resources. + ResourceLabels *ResourceLabels `json:"resourceLabels,omitempty"` + // Tags: The desired network tags to be applied to all nodes in the node // pool. If this field is not present, the tags will not be changed. // Otherwise, the existing network tags will be *replaced* with the diff --git a/dataflow/v1b3/dataflow-api.json b/dataflow/v1b3/dataflow-api.json index 58a895a72be..de2ef57b160 100644 --- a/dataflow/v1b3/dataflow-api.json +++ b/dataflow/v1b3/dataflow-api.json @@ -2240,7 +2240,7 @@ } } }, - "revision": "20220914", + "revision": "20221025", "rootUrl": "https://dataflow.googleapis.com/", "schemas": { "ApproximateProgress": { @@ -6032,7 +6032,7 @@ "type": "object" }, "Step": { - "description": "Defines a particular step within a Cloud Dataflow job. A job consists of multiple steps, each of which performs some specific operation as part of the overall job. Data is typically passed from one step to another as part of the job. Here's an example of a sequence of steps which together implement a Map-Reduce job: * Read a collection of data from some source, parsing the collection's elements. * Validate the elements. * Apply a user-defined function to map each element to some value and extract an element-specific key value. * Group elements with the same key into a single element with that key, transforming a multiply-keyed collection into a uniquely-keyed collection. * Write the elements out to some data sink. Note that the Cloud Dataflow service may be used to run many different types of jobs, not just Map-Reduce.", + "description": "Defines a particular step within a Cloud Dataflow job. A job consists of multiple steps, each of which performs some specific operation as part of the overall job. Data is typically passed from one step to another as part of the job. **Note:** The properties of this object are not stable and might change. Here's an example of a sequence of steps which together implement a Map-Reduce job: * Read a collection of data from some source, parsing the collection's elements. * Validate the elements. * Apply a user-defined function to map each element to some value and extract an element-specific key value. * Group elements with the same key into a single element with that key, transforming a multiply-keyed collection into a uniquely-keyed collection. * Write the elements out to some data sink. Note that the Cloud Dataflow service may be used to run many different types of jobs, not just Map-Reduce.", "id": "Step", "properties": { "kind": { diff --git a/dataflow/v1b3/dataflow-gen.go b/dataflow/v1b3/dataflow-gen.go index 4bcbf1e5119..bc8157a540e 100644 --- a/dataflow/v1b3/dataflow-gen.go +++ b/dataflow/v1b3/dataflow-gen.go @@ -6419,7 +6419,8 @@ func (s *Status) MarshalJSON() ([]byte, error) { // Step: Defines a particular step within a Cloud Dataflow job. A job // consists of multiple steps, each of which performs some specific // operation as part of the overall job. Data is typically passed from -// one step to another as part of the job. Here's an example of a +// one step to another as part of the job. **Note:** The properties of +// this object are not stable and might change. Here's an example of a // sequence of steps which together implement a Map-Reduce job: * Read a // collection of data from some source, parsing the collection's // elements. * Validate the elements. * Apply a user-defined function to diff --git a/dataplex/v1/dataplex-api.json b/dataplex/v1/dataplex-api.json index ba4d9c48bc6..af71a4247c8 100644 --- a/dataplex/v1/dataplex-api.json +++ b/dataplex/v1/dataplex-api.json @@ -2764,7 +2764,7 @@ } } }, - "revision": "20221015", + "revision": "20221021", "rootUrl": "https://dataplex.googleapis.com/", "schemas": { "Empty": { @@ -3428,6 +3428,142 @@ }, "type": "object" }, + "GoogleCloudDataplexV1DataScanEvent": { + "description": "These messages contain information about the execution of a datascan. The monitored resource is 'DataScan'", + "id": "GoogleCloudDataplexV1DataScanEvent", + "properties": { + "dataProfile": { + "$ref": "GoogleCloudDataplexV1DataScanEventDataProfileResult", + "description": "Data profile result for data profile type data scan." + }, + "dataQuality": { + "$ref": "GoogleCloudDataplexV1DataScanEventDataQualityResult", + "description": "Data quality result for data quality type data scan." + }, + "dataSource": { + "description": "The data source of the data scan", + "type": "string" + }, + "endTime": { + "description": "The time when the data scan job finished.", + "format": "google-datetime", + "type": "string" + }, + "jobId": { + "description": "The identifier of the specific data scan job this log entry is for.", + "type": "string" + }, + "message": { + "description": "The message describing the data scan job event.", + "type": "string" + }, + "scope": { + "description": "The scope of the data scan (e.g. full, incremental).", + "enum": [ + "SCOPE_UNSPECIFIED", + "FULL", + "INCREMENTAL" + ], + "enumDescriptions": [ + "An unspecified scope type.", + "Data scan runs on all of the data.", + "Data scan runs on incremental data." + ], + "type": "string" + }, + "specVersion": { + "description": "A version identifier of the spec which was used to execute this job.", + "type": "string" + }, + "startTime": { + "description": "The time when the data scan job started to run.", + "format": "google-datetime", + "type": "string" + }, + "state": { + "description": "The status of the data scan job.", + "enum": [ + "STATE_UNSPECIFIED", + "STARTED", + "SUCCEEDED", + "FAILED", + "CANCELLED" + ], + "enumDescriptions": [ + "Unspecified job state.", + "Data scan started.", + "Data scan successfully completed.", + "Data scan was unsuccessful.", + "Data scan was cancelled." + ], + "type": "string" + }, + "trigger": { + "description": "The trigger type of the data scan job.", + "enum": [ + "TRIGGER_UNSPECIFIED", + "ON_DEMAND", + "SCHEDULE" + ], + "enumDescriptions": [ + "An unspecified trigger type.", + "Data scan triggers on demand.", + "Data scan triggers as per schedule." + ], + "type": "string" + }, + "type": { + "description": "The type of the data scan.", + "enum": [ + "SCAN_TYPE_UNSPECIFIED", + "DATA_PROFILE", + "DATA_QUALITY" + ], + "enumDescriptions": [ + "An unspecified data scan type.", + "Data scan for data profile.", + "Data scan for data quality." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDataplexV1DataScanEventDataProfileResult": { + "description": "Data profile result for data scan job.", + "id": "GoogleCloudDataplexV1DataScanEventDataProfileResult", + "properties": { + "rowCount": { + "description": "The count of rows processed in the data scan job.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDataplexV1DataScanEventDataQualityResult": { + "description": "Data quality result for data scan job.", + "id": "GoogleCloudDataplexV1DataScanEventDataQualityResult", + "properties": { + "dimensionPassed": { + "additionalProperties": { + "type": "boolean" + }, + "description": "The result of each dimension for data quality result. The key of the map is the name of the dimension. The value is the bool value depicting whether the dimension result was pass or not.", + "type": "object" + }, + "passed": { + "description": "Whether the data quality result was pass or not.", + "type": "boolean" + }, + "rowCount": { + "description": "The count of rows processed in the data scan job.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDataplexV1DiscoveryEvent": { "description": "The payload associated with Discovery data processing.", "id": "GoogleCloudDataplexV1DiscoveryEvent", diff --git a/dataplex/v1/dataplex-gen.go b/dataplex/v1/dataplex-gen.go index 2dd6e36da92..6a798509414 100644 --- a/dataplex/v1/dataplex-gen.go +++ b/dataplex/v1/dataplex-gen.go @@ -1260,6 +1260,161 @@ func (s *GoogleCloudDataplexV1ContentSqlScript) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDataplexV1DataScanEvent: These messages contain +// information about the execution of a datascan. The monitored resource +// is 'DataScan' +type GoogleCloudDataplexV1DataScanEvent struct { + // DataProfile: Data profile result for data profile type data scan. + DataProfile *GoogleCloudDataplexV1DataScanEventDataProfileResult `json:"dataProfile,omitempty"` + + // DataQuality: Data quality result for data quality type data scan. + DataQuality *GoogleCloudDataplexV1DataScanEventDataQualityResult `json:"dataQuality,omitempty"` + + // DataSource: The data source of the data scan + DataSource string `json:"dataSource,omitempty"` + + // EndTime: The time when the data scan job finished. + EndTime string `json:"endTime,omitempty"` + + // JobId: The identifier of the specific data scan job this log entry is + // for. + JobId string `json:"jobId,omitempty"` + + // Message: The message describing the data scan job event. + Message string `json:"message,omitempty"` + + // Scope: The scope of the data scan (e.g. full, incremental). + // + // Possible values: + // "SCOPE_UNSPECIFIED" - An unspecified scope type. + // "FULL" - Data scan runs on all of the data. + // "INCREMENTAL" - Data scan runs on incremental data. + Scope string `json:"scope,omitempty"` + + // SpecVersion: A version identifier of the spec which was used to + // execute this job. + SpecVersion string `json:"specVersion,omitempty"` + + // StartTime: The time when the data scan job started to run. + StartTime string `json:"startTime,omitempty"` + + // State: The status of the data scan job. + // + // Possible values: + // "STATE_UNSPECIFIED" - Unspecified job state. + // "STARTED" - Data scan started. + // "SUCCEEDED" - Data scan successfully completed. + // "FAILED" - Data scan was unsuccessful. + // "CANCELLED" - Data scan was cancelled. + State string `json:"state,omitempty"` + + // Trigger: The trigger type of the data scan job. + // + // Possible values: + // "TRIGGER_UNSPECIFIED" - An unspecified trigger type. + // "ON_DEMAND" - Data scan triggers on demand. + // "SCHEDULE" - Data scan triggers as per schedule. + Trigger string `json:"trigger,omitempty"` + + // Type: The type of the data scan. + // + // Possible values: + // "SCAN_TYPE_UNSPECIFIED" - An unspecified data scan type. + // "DATA_PROFILE" - Data scan for data profile. + // "DATA_QUALITY" - Data scan for data quality. + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DataProfile") 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. "DataProfile") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDataplexV1DataScanEvent) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1DataScanEvent + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDataplexV1DataScanEventDataProfileResult: Data profile +// result for data scan job. +type GoogleCloudDataplexV1DataScanEventDataProfileResult struct { + // RowCount: The count of rows processed in the data scan job. + RowCount int64 `json:"rowCount,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "RowCount") 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. "RowCount") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDataplexV1DataScanEventDataProfileResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1DataScanEventDataProfileResult + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDataplexV1DataScanEventDataQualityResult: Data quality +// result for data scan job. +type GoogleCloudDataplexV1DataScanEventDataQualityResult struct { + // DimensionPassed: The result of each dimension for data quality + // result. The key of the map is the name of the dimension. The value is + // the bool value depicting whether the dimension result was pass or + // not. + DimensionPassed map[string]bool `json:"dimensionPassed,omitempty"` + + // Passed: Whether the data quality result was pass or not. + Passed bool `json:"passed,omitempty"` + + // RowCount: The count of rows processed in the data scan job. + RowCount int64 `json:"rowCount,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "DimensionPassed") 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. "DimensionPassed") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDataplexV1DataScanEventDataQualityResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1DataScanEventDataQualityResult + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDataplexV1DiscoveryEvent: The payload associated with // Discovery data processing. type GoogleCloudDataplexV1DiscoveryEvent struct { diff --git a/dataproc/v1/dataproc-api.json b/dataproc/v1/dataproc-api.json index 8b39aa1d22e..305ef371d5c 100644 --- a/dataproc/v1/dataproc-api.json +++ b/dataproc/v1/dataproc-api.json @@ -2564,7 +2564,7 @@ } } }, - "revision": "20221013", + "revision": "20221025", "rootUrl": "https://dataproc.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -3504,75 +3504,6 @@ }, "type": "object" }, - "GceNodePoolOperationMetadata": { - "description": "Metadata describing the Compute Engine node pool operation.", - "id": "GceNodePoolOperationMetadata", - "properties": { - "clusterUuid": { - "description": "Output only. Cluster UUID associated with the Compute Engine node pool operation.", - "readOnly": true, - "type": "string" - }, - "description": { - "description": "Output only. Short description of operation.", - "readOnly": true, - "type": "string" - }, - "gceNodePoolId": { - "description": "Output only. Compute Engine node pool ID for the operation.", - "readOnly": true, - "type": "string" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Output only. Labels associated with the operation", - "readOnly": true, - "type": "object" - }, - "operationType": { - "description": "The operation type.", - "enum": [ - "GCE_NODE_POOL_OPERATION_TYPE_UNSPECIFIED", - "CREATE", - "UPDATE", - "DELETE", - "RESIZE" - ], - "enumDescriptions": [ - "Compute Engine node pool operation type is unknown.", - "Create Compute Engine node pool operation type.", - "Update Compute Engine node pool operation type.", - "Delete Compute Engine node pool operation type.", - "Resize Compute Engine node pool operation type." - ], - "type": "string" - }, - "status": { - "$ref": "ClusterOperationStatus", - "description": "Output only. Current operation status.", - "readOnly": true - }, - "statusHistory": { - "description": "Output only. The previous operation status.", - "items": { - "$ref": "ClusterOperationStatus" - }, - "readOnly": true, - "type": "array" - }, - "warnings": { - "description": "Output only. Errors encountered during operation execution.", - "items": { - "type": "string" - }, - "readOnly": true, - "type": "array" - } - }, - "type": "object" - }, "GetIamPolicyRequest": { "description": "Request message for GetIamPolicy method.", "id": "GetIamPolicyRequest", @@ -4669,6 +4600,75 @@ }, "type": "object" }, + "NodeGroupOperationMetadata": { + "description": "Metadata describing the node group operation.", + "id": "NodeGroupOperationMetadata", + "properties": { + "clusterUuid": { + "description": "Output only. Cluster UUID associated with the node group operation.", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "Output only. Short description of operation.", + "readOnly": true, + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Output only. Labels associated with the operation.", + "readOnly": true, + "type": "object" + }, + "nodeGroupId": { + "description": "Output only. Node group ID for the operation.", + "readOnly": true, + "type": "string" + }, + "operationType": { + "description": "The operation type.", + "enum": [ + "NODE_GROUP_OPERATION_TYPE_UNSPECIFIED", + "CREATE", + "UPDATE", + "DELETE", + "RESIZE" + ], + "enumDescriptions": [ + "Node group operation type is unknown.", + "Create node group operation type.", + "Update node group operation type.", + "Delete node group operation type.", + "Resize node group operation type." + ], + "type": "string" + }, + "status": { + "$ref": "ClusterOperationStatus", + "description": "Output only. Current operation status.", + "readOnly": true + }, + "statusHistory": { + "description": "Output only. The previous operation status.", + "items": { + "$ref": "ClusterOperationStatus" + }, + "readOnly": true, + "type": "array" + }, + "warnings": { + "description": "Output only. Errors encountered during operation execution.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, "NodeInitializationAction": { "description": "Specifies an executable to run on a fully configured node and a timeout period for executable completion.", "id": "NodeInitializationAction", @@ -5176,6 +5176,11 @@ "description": "Runtime information about workload execution.", "id": "RuntimeInfo", "properties": { + "approximateUsage": { + "$ref": "UsageMetrics", + "description": "Output only. Approximate workload resource usage calculated after workload finishes.", + "readOnly": true + }, "diagnosticOutputUri": { "description": "Output only. A URI pointing to the location of the diagnostics tarball.", "readOnly": true, @@ -5844,6 +5849,23 @@ }, "type": "object" }, + "UsageMetrics": { + "description": "Usage metrics represent total resources consumed by a workload.", + "id": "UsageMetrics", + "properties": { + "milliDcuSeconds": { + "description": "Optional. DCU usage in milliDCU*seconds.", + "format": "int64", + "type": "string" + }, + "shuffleStorageGbSeconds": { + "description": "Optional. Shuffle storage usage in GB*Seconds", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "ValueValidation": { "description": "Validation based on a list of allowed values.", "id": "ValueValidation", diff --git a/dataproc/v1/dataproc-gen.go b/dataproc/v1/dataproc-gen.go index c84b6f8287d..8d59188614b 100644 --- a/dataproc/v1/dataproc-gen.go +++ b/dataproc/v1/dataproc-gen.go @@ -1794,66 +1794,6 @@ func (s *GceClusterConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GceNodePoolOperationMetadata: Metadata describing the Compute Engine -// node pool operation. -type GceNodePoolOperationMetadata struct { - // ClusterUuid: Output only. Cluster UUID associated with the Compute - // Engine node pool operation. - ClusterUuid string `json:"clusterUuid,omitempty"` - - // Description: Output only. Short description of operation. - Description string `json:"description,omitempty"` - - // GceNodePoolId: Output only. Compute Engine node pool ID for the - // operation. - GceNodePoolId string `json:"gceNodePoolId,omitempty"` - - // Labels: Output only. Labels associated with the operation - Labels map[string]string `json:"labels,omitempty"` - - // OperationType: The operation type. - // - // Possible values: - // "GCE_NODE_POOL_OPERATION_TYPE_UNSPECIFIED" - Compute Engine node - // pool operation type is unknown. - // "CREATE" - Create Compute Engine node pool operation type. - // "UPDATE" - Update Compute Engine node pool operation type. - // "DELETE" - Delete Compute Engine node pool operation type. - // "RESIZE" - Resize Compute Engine node pool operation type. - OperationType string `json:"operationType,omitempty"` - - // Status: Output only. Current operation status. - Status *ClusterOperationStatus `json:"status,omitempty"` - - // StatusHistory: Output only. The previous operation status. - StatusHistory []*ClusterOperationStatus `json:"statusHistory,omitempty"` - - // Warnings: Output only. Errors encountered during operation execution. - Warnings []string `json:"warnings,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ClusterUuid") 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. "ClusterUuid") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GceNodePoolOperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GceNodePoolOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GetIamPolicyRequest: Request message for GetIamPolicy method. type GetIamPolicyRequest struct { // Options: OPTIONAL: A GetPolicyOptions object for specifying options @@ -3736,6 +3676,65 @@ func (s *NodeGroupAffinity) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// NodeGroupOperationMetadata: Metadata describing the node group +// operation. +type NodeGroupOperationMetadata struct { + // ClusterUuid: Output only. Cluster UUID associated with the node group + // operation. + ClusterUuid string `json:"clusterUuid,omitempty"` + + // Description: Output only. Short description of operation. + Description string `json:"description,omitempty"` + + // Labels: Output only. Labels associated with the operation. + Labels map[string]string `json:"labels,omitempty"` + + // NodeGroupId: Output only. Node group ID for the operation. + NodeGroupId string `json:"nodeGroupId,omitempty"` + + // OperationType: The operation type. + // + // Possible values: + // "NODE_GROUP_OPERATION_TYPE_UNSPECIFIED" - Node group operation type + // is unknown. + // "CREATE" - Create node group operation type. + // "UPDATE" - Update node group operation type. + // "DELETE" - Delete node group operation type. + // "RESIZE" - Resize node group operation type. + OperationType string `json:"operationType,omitempty"` + + // Status: Output only. Current operation status. + Status *ClusterOperationStatus `json:"status,omitempty"` + + // StatusHistory: Output only. The previous operation status. + StatusHistory []*ClusterOperationStatus `json:"statusHistory,omitempty"` + + // Warnings: Output only. Errors encountered during operation execution. + Warnings []string `json:"warnings,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ClusterUuid") 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. "ClusterUuid") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *NodeGroupOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod NodeGroupOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // NodeInitializationAction: Specifies an executable to run on a fully // configured node and a timeout period for executable completion. type NodeInitializationAction struct { @@ -4563,6 +4562,10 @@ func (s *RuntimeConfig) MarshalJSON() ([]byte, error) { // RuntimeInfo: Runtime information about workload execution. type RuntimeInfo struct { + // ApproximateUsage: Output only. Approximate workload resource usage + // calculated after workload finishes. + ApproximateUsage *UsageMetrics `json:"approximateUsage,omitempty"` + // DiagnosticOutputUri: Output only. A URI pointing to the location of // the diagnostics tarball. DiagnosticOutputUri string `json:"diagnosticOutputUri,omitempty"` @@ -4575,15 +4578,15 @@ type RuntimeInfo struct { // and stderr of the workload. OutputUri string `json:"outputUri,omitempty"` - // ForceSendFields is a list of field names (e.g. "DiagnosticOutputUri") - // to unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "ApproximateUsage") 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. "DiagnosticOutputUri") to + // NullFields is a list of field names (e.g. "ApproximateUsage") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the @@ -5655,6 +5658,40 @@ func (s *TrinoJob) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// UsageMetrics: Usage metrics represent total resources consumed by a +// workload. +type UsageMetrics struct { + // MilliDcuSeconds: Optional. DCU usage in milliDCU*seconds. + MilliDcuSeconds int64 `json:"milliDcuSeconds,omitempty,string"` + + // ShuffleStorageGbSeconds: Optional. Shuffle storage usage in + // GB*Seconds + ShuffleStorageGbSeconds int64 `json:"shuffleStorageGbSeconds,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "MilliDcuSeconds") 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. "MilliDcuSeconds") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *UsageMetrics) MarshalJSON() ([]byte, error) { + type NoMethod UsageMetrics + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ValueValidation: Validation based on a list of allowed values. type ValueValidation struct { // Values: Required. List of allowed values for the parameter. diff --git a/datastream/v1/datastream-api.json b/datastream/v1/datastream-api.json index bf1d21f7538..40f4231b6dd 100644 --- a/datastream/v1/datastream-api.json +++ b/datastream/v1/datastream-api.json @@ -1217,7 +1217,7 @@ } } }, - "revision": "20220824", + "revision": "20221026", "rootUrl": "https://datastream.googleapis.com/", "schemas": { "AvroFileFormat": { @@ -2294,7 +2294,7 @@ }, "streamLargeObjects": { "$ref": "StreamLargeObjects", - "description": "Stream large object values." + "description": "Stream large object values. NOTE: This feature is currently experimental." } }, "type": "object" @@ -2452,7 +2452,7 @@ "type": "string" }, "replicationSlot": { - "description": "Required. The name of the logical replication slot that's configured with the pgoutput plugin.", + "description": "Required. Immutable. The name of the logical replication slot that's configured with the pgoutput plugin.", "type": "string" } }, diff --git a/datastream/v1/datastream-gen.go b/datastream/v1/datastream-gen.go index fac024629ed..23ff013d3dc 100644 --- a/datastream/v1/datastream-gen.go +++ b/datastream/v1/datastream-gen.go @@ -1856,7 +1856,8 @@ type OracleSourceConfig struct { // default value will be used. MaxConcurrentCdcTasks int64 `json:"maxConcurrentCdcTasks,omitempty"` - // StreamLargeObjects: Stream large object values. + // StreamLargeObjects: Stream large object values. NOTE: This feature is + // currently experimental. StreamLargeObjects *StreamLargeObjects `json:"streamLargeObjects,omitempty"` // ForceSendFields is a list of field names (e.g. "DropLargeObjects") to @@ -2108,8 +2109,8 @@ type PostgresqlSourceConfig struct { // set of all tables that are defined in the stream's include_objects. Publication string `json:"publication,omitempty"` - // ReplicationSlot: Required. The name of the logical replication slot - // that's configured with the pgoutput plugin. + // ReplicationSlot: Required. Immutable. The name of the logical + // replication slot that's configured with the pgoutput plugin. ReplicationSlot string `json:"replicationSlot,omitempty"` // ForceSendFields is a list of field names (e.g. "ExcludeObjects") to diff --git a/dialogflow/v2/dialogflow-api.json b/dialogflow/v2/dialogflow-api.json index 3897913f98f..b71200067f3 100644 --- a/dialogflow/v2/dialogflow-api.json +++ b/dialogflow/v2/dialogflow-api.json @@ -8077,7 +8077,7 @@ } } }, - "revision": "20220906", + "revision": "20221026", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AudioInput": { @@ -15490,6 +15490,10 @@ "description": "Optional. The unique identifier of this participant. Format: `projects//locations//conversations//participants/`.", "type": "string" }, + "obfuscatedExternalUserId": { + "description": "Optional. Obfuscated user id that should be associated with the created participant. You can specify a user id as follows: 1. If you set this field in CreateParticipantRequest or UpdateParticipantRequest, Dialogflow adds the obfuscated user id with the participant. 2. If you set this field in AnalyzeContent or StreamingAnalyzeContent, Dialogflow will update Participant.obfuscated_external_user_id. Dialogflow returns an error if you try to add a user id for a non-END_USER participant. Dialogflow uses this user id for billing and measurement purposes. For example, Dialogflow determines whether a user in one conversation returned in a later conversation. Note: * Please never pass raw user ids to Dialogflow. Always obfuscate your user id first. * Dialogflow only accepts a UTF-8 encoded string, e.g., a hex digest of a hash function like SHA-512. * The length of the user id must be \u003c= 256 characters.", + "type": "string" + }, "role": { "description": "Immutable. The role this participant plays in the conversation. This field must be set during participant creation and is then immutable.", "enum": [ @@ -15979,6 +15983,10 @@ "description": "Configures speech transcription for ConversationProfile.", "id": "GoogleCloudDialogflowV2SpeechToTextConfig", "properties": { + "model": { + "description": "Which Speech model to select. Select the model best suited to your domain to get best results. If a model is not explicitly specified, then a default model is used. Refer to [Cloud Speech API documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) for more details.", + "type": "string" + }, "speechModelVariant": { "description": "The speech model used in speech to text. `SPEECH_MODEL_VARIANT_UNSPECIFIED`, `USE_BEST_AVAILABLE` will be treated as `USE_ENHANCED`. It can be overridden in AnalyzeContentRequest and StreamingAnalyzeContentRequest request. If enhanced model variant is specified and an enhanced version of the specified model for the language does not exist, then it would emit an error.", "enum": [ diff --git a/dialogflow/v2/dialogflow-gen.go b/dialogflow/v2/dialogflow-gen.go index 781f529a383..b7bd9bebc39 100644 --- a/dialogflow/v2/dialogflow-gen.go +++ b/dialogflow/v2/dialogflow-gen.go @@ -14433,6 +14433,23 @@ type GoogleCloudDialogflowV2Participant struct { // `projects//locations//conversations//participants/`. Name string `json:"name,omitempty"` + // ObfuscatedExternalUserId: Optional. Obfuscated user id that should be + // associated with the created participant. You can specify a user id as + // follows: 1. If you set this field in CreateParticipantRequest or + // UpdateParticipantRequest, Dialogflow adds the obfuscated user id with + // the participant. 2. If you set this field in AnalyzeContent or + // StreamingAnalyzeContent, Dialogflow will update + // Participant.obfuscated_external_user_id. Dialogflow returns an error + // if you try to add a user id for a non-END_USER participant. + // Dialogflow uses this user id for billing and measurement purposes. + // For example, Dialogflow determines whether a user in one conversation + // returned in a later conversation. Note: * Please never pass raw user + // ids to Dialogflow. Always obfuscate your user id first. * Dialogflow + // only accepts a UTF-8 encoded string, e.g., a hex digest of a hash + // function like SHA-512. * The length of the user id must be <= 256 + // characters. + ObfuscatedExternalUserId string `json:"obfuscatedExternalUserId,omitempty"` + // Role: Immutable. The role this participant plays in the conversation. // This field must be set during participant creation and is then // immutable. @@ -15401,6 +15418,14 @@ func (s *GoogleCloudDialogflowV2SpeechContext) UnmarshalJSON(data []byte) error // GoogleCloudDialogflowV2SpeechToTextConfig: Configures speech // transcription for ConversationProfile. type GoogleCloudDialogflowV2SpeechToTextConfig struct { + // Model: Which Speech model to select. Select the model best suited to + // your domain to get best results. If a model is not explicitly + // specified, then a default model is used. Refer to Cloud Speech API + // documentation + // (https://cloud.google.com/speech-to-text/docs/basics#select-model) + // for more details. + Model string `json:"model,omitempty"` + // SpeechModelVariant: The speech model used in speech to text. // `SPEECH_MODEL_VARIANT_UNSPECIFIED`, `USE_BEST_AVAILABLE` will be // treated as `USE_ENHANCED`. It can be overridden in @@ -15431,21 +15456,20 @@ type GoogleCloudDialogflowV2SpeechToTextConfig struct { // to make your project eligible. SpeechModelVariant string `json:"speechModelVariant,omitempty"` - // ForceSendFields is a list of field names (e.g. "SpeechModelVariant") - // to unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "Model") 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. "SpeechModelVariant") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "Model") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } diff --git a/dialogflow/v2beta1/dialogflow-api.json b/dialogflow/v2beta1/dialogflow-api.json index fcf1aa11e82..2e2b65f1e4a 100644 --- a/dialogflow/v2beta1/dialogflow-api.json +++ b/dialogflow/v2beta1/dialogflow-api.json @@ -7507,7 +7507,7 @@ } } }, - "revision": "20220906", + "revision": "20221026", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AudioInput": { @@ -17664,6 +17664,10 @@ "description": "Configures speech transcription for ConversationProfile.", "id": "GoogleCloudDialogflowV2beta1SpeechToTextConfig", "properties": { + "model": { + "description": "Which Speech model to select. Select the model best suited to your domain to get best results. If a model is not explicitly specified, then a default model is used. Refer to [Cloud Speech API documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) for more details.", + "type": "string" + }, "speechModelVariant": { "description": "The speech model used in speech to text. `SPEECH_MODEL_VARIANT_UNSPECIFIED`, `USE_BEST_AVAILABLE` will be treated as `USE_ENHANCED`. It can be overridden in AnalyzeContentRequest and StreamingAnalyzeContentRequest request. If enhanced model variant is specified and an enhanced version of the specified model for the language does not exist, then it would emit an error.", "enum": [ diff --git a/dialogflow/v2beta1/dialogflow-gen.go b/dialogflow/v2beta1/dialogflow-gen.go index 5994c513b14..f3e802af154 100644 --- a/dialogflow/v2beta1/dialogflow-gen.go +++ b/dialogflow/v2beta1/dialogflow-gen.go @@ -19177,6 +19177,14 @@ func (s *GoogleCloudDialogflowV2beta1SpeechContext) UnmarshalJSON(data []byte) e // GoogleCloudDialogflowV2beta1SpeechToTextConfig: Configures speech // transcription for ConversationProfile. type GoogleCloudDialogflowV2beta1SpeechToTextConfig struct { + // Model: Which Speech model to select. Select the model best suited to + // your domain to get best results. If a model is not explicitly + // specified, then a default model is used. Refer to Cloud Speech API + // documentation + // (https://cloud.google.com/speech-to-text/docs/basics#select-model) + // for more details. + Model string `json:"model,omitempty"` + // SpeechModelVariant: The speech model used in speech to text. // `SPEECH_MODEL_VARIANT_UNSPECIFIED`, `USE_BEST_AVAILABLE` will be // treated as `USE_ENHANCED`. It can be overridden in @@ -19207,21 +19215,20 @@ type GoogleCloudDialogflowV2beta1SpeechToTextConfig struct { // to make your project eligible. SpeechModelVariant string `json:"speechModelVariant,omitempty"` - // ForceSendFields is a list of field names (e.g. "SpeechModelVariant") - // to unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "Model") 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. "SpeechModelVariant") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "Model") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } diff --git a/dialogflow/v3/dialogflow-api.json b/dialogflow/v3/dialogflow-api.json index 0feb9330f41..a219d39cc49 100644 --- a/dialogflow/v3/dialogflow-api.json +++ b/dialogflow/v3/dialogflow-api.json @@ -3820,7 +3820,7 @@ } } }, - "revision": "20220906", + "revision": "20221026", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -6909,7 +6909,7 @@ "type": "string" }, "retentionWindowDays": { - "description": "Retains data in interaction logging for the specified number of days. This does not apply to Cloud logging, which is owned by the user - not Dialogflow. User must set a value lower than Dialogflow's default 365d TTL. Setting a value higher than that has no effect. A missing value or setting to 0 also means we use Dialogflow's default TTL. Note: Interaction logging is a limited access feature. Talk to your Google representative to check availability for you.", + "description": "Retains data in interaction logging for the specified number of days. This does not apply to Cloud logging, which is owned by the user - not Dialogflow. User must set a value lower than Dialogflow's default 365d TTL (time to live). Setting a value higher than that has no effect. A missing value or setting to 0 also means we use Dialogflow's default TTL.", "format": "int32", "type": "integer" } @@ -6945,7 +6945,7 @@ "type": "boolean" }, "gcsBucket": { - "description": "Cloud Storage bucket to export audio record to. Settings this field would grant the Storage Object Creator role to the Dialogflow Service Agent. API caller that tries to modify this field should have the permission of storage.buckets.setIamPolicy.", + "description": "Cloud Storage bucket to export audio record to. Setting this field would grant the Storage Object Creator role to the Dialogflow Service Agent. API caller that tries to modify this field should have the permission of storage.buckets.setIamPolicy.", "type": "string" } }, diff --git a/dialogflow/v3/dialogflow-gen.go b/dialogflow/v3/dialogflow-gen.go index cfa902a2398..d426f0ef677 100644 --- a/dialogflow/v3/dialogflow-gen.go +++ b/dialogflow/v3/dialogflow-gen.go @@ -6264,11 +6264,9 @@ type GoogleCloudDialogflowCxV3SecuritySettings struct { // RetentionWindowDays: Retains data in interaction logging for the // specified number of days. This does not apply to Cloud logging, which // is owned by the user - not Dialogflow. User must set a value lower - // than Dialogflow's default 365d TTL. Setting a value higher than that - // has no effect. A missing value or setting to 0 also means we use - // Dialogflow's default TTL. Note: Interaction logging is a limited - // access feature. Talk to your Google representative to check - // availability for you. + // than Dialogflow's default 365d TTL (time to live). Setting a value + // higher than that has no effect. A missing value or setting to 0 also + // means we use Dialogflow's default TTL. RetentionWindowDays int64 `json:"retentionWindowDays,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -6318,7 +6316,7 @@ type GoogleCloudDialogflowCxV3SecuritySettingsAudioExportSettings struct { // EnableAudioRedaction: Enable audio redaction if it is true. EnableAudioRedaction bool `json:"enableAudioRedaction,omitempty"` - // GcsBucket: Cloud Storage bucket to export audio record to. Settings + // GcsBucket: Cloud Storage bucket to export audio record to. Setting // this field would grant the Storage Object Creator role to the // Dialogflow Service Agent. API caller that tries to modify this field // should have the permission of storage.buckets.setIamPolicy. diff --git a/dialogflow/v3beta1/dialogflow-api.json b/dialogflow/v3beta1/dialogflow-api.json index d505c7eff3c..956a5216dca 100644 --- a/dialogflow/v3beta1/dialogflow-api.json +++ b/dialogflow/v3beta1/dialogflow-api.json @@ -3820,7 +3820,7 @@ } } }, - "revision": "20220906", + "revision": "20221026", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AudioInput": { @@ -8700,7 +8700,7 @@ "type": "string" }, "retentionWindowDays": { - "description": "Retains data in interaction logging for the specified number of days. This does not apply to Cloud logging, which is owned by the user - not Dialogflow. User must set a value lower than Dialogflow's default 365d TTL. Setting a value higher than that has no effect. A missing value or setting to 0 also means we use Dialogflow's default TTL. Note: Interaction logging is a limited access feature. Talk to your Google representative to check availability for you.", + "description": "Retains data in interaction logging for the specified number of days. This does not apply to Cloud logging, which is owned by the user - not Dialogflow. User must set a value lower than Dialogflow's default 365d TTL (time to live). Setting a value higher than that has no effect. A missing value or setting to 0 also means we use Dialogflow's default TTL.", "format": "int32", "type": "integer" } @@ -8736,7 +8736,7 @@ "type": "boolean" }, "gcsBucket": { - "description": "Cloud Storage bucket to export audio record to. Settings this field would grant the Storage Object Creator role to the Dialogflow Service Agent. API caller that tries to modify this field should have the permission of storage.buckets.setIamPolicy.", + "description": "Cloud Storage bucket to export audio record to. Setting this field would grant the Storage Object Creator role to the Dialogflow Service Agent. API caller that tries to modify this field should have the permission of storage.buckets.setIamPolicy.", "type": "string" } }, diff --git a/dialogflow/v3beta1/dialogflow-gen.go b/dialogflow/v3beta1/dialogflow-gen.go index fcc0d8cb681..3add3c3b057 100644 --- a/dialogflow/v3beta1/dialogflow-gen.go +++ b/dialogflow/v3beta1/dialogflow-gen.go @@ -9682,11 +9682,9 @@ type GoogleCloudDialogflowCxV3beta1SecuritySettings struct { // RetentionWindowDays: Retains data in interaction logging for the // specified number of days. This does not apply to Cloud logging, which // is owned by the user - not Dialogflow. User must set a value lower - // than Dialogflow's default 365d TTL. Setting a value higher than that - // has no effect. A missing value or setting to 0 also means we use - // Dialogflow's default TTL. Note: Interaction logging is a limited - // access feature. Talk to your Google representative to check - // availability for you. + // than Dialogflow's default 365d TTL (time to live). Setting a value + // higher than that has no effect. A missing value or setting to 0 also + // means we use Dialogflow's default TTL. RetentionWindowDays int64 `json:"retentionWindowDays,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -9736,7 +9734,7 @@ type GoogleCloudDialogflowCxV3beta1SecuritySettingsAudioExportSettings struct { // EnableAudioRedaction: Enable audio redaction if it is true. EnableAudioRedaction bool `json:"enableAudioRedaction,omitempty"` - // GcsBucket: Cloud Storage bucket to export audio record to. Settings + // GcsBucket: Cloud Storage bucket to export audio record to. Setting // this field would grant the Storage Object Creator role to the // Dialogflow Service Agent. API caller that tries to modify this field // should have the permission of storage.buckets.setIamPolicy. diff --git a/drive/v2/drive-api.json b/drive/v2/drive-api.json index 357e286ddd5..e55e50366eb 100644 --- a/drive/v2/drive-api.json +++ b/drive/v2/drive-api.json @@ -38,7 +38,7 @@ "description": "Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions.", "discoveryVersion": "v1", "documentationLink": "https://developers.google.com/drive/", - "etag": "\"uWj2hSb4GVjzdDlAnRd2gbM1ZQ8/HvNXm3E7ARcVP_rbssfNJotZAR4\"", + "etag": "\"uWj2hSb4GVjzdDlAnRd2gbM1ZQ8/32GB2PNZ2lWba9qudN1uJMonks8\"", "icons": { "x16": "https://ssl.gstatic.com/docs/doclist/images/drive_icon_16.png", "x32": "https://ssl.gstatic.com/docs/doclist/images/drive_icon_32.png" @@ -3668,7 +3668,7 @@ } } }, - "revision": "20221002", + "revision": "20221023", "rootUrl": "https://www.googleapis.com/", "schemas": { "About": { @@ -4902,7 +4902,7 @@ "type": "boolean" }, "canReadRevisions": { - "description": "Whether the current user can read the revisions resource of this file. For a shared drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.", + "description": "Whether the current user can read the revisions resource of this file. For a shared drive item, whether revisions of non-folder descendants of this item, or this item itself if it isn't a folder, can be read.", "type": "boolean" }, "canReadTeamDrive": { @@ -4969,7 +4969,7 @@ "type": "string" }, "downloadUrl": { - "description": "Short lived download URL for the file. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.", + "description": "Short lived download URL for the file. This field is only populated for files with content stored in Google Drive; it isn't populated for Docs Editors or shortcut files.", "type": "string" }, "driveId": { @@ -5002,11 +5002,11 @@ "type": "object" }, "fileExtension": { - "description": "The final component of fullFileExtension with trailing text that does not appear to be part of the extension removed. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.", + "description": "The final component of fullFileExtension with trailing text that does not appear to be part of the extension removed. This field is only populated for files with content stored in Google Drive; it isn't populated for Docs Editors or shortcut files.", "type": "string" }, "fileSize": { - "description": "The size of the file in bytes. This field is populated for files with content stored in Google Drive and for files in Docs Editors; it is not populated for shortcut files.", + "description": "The size of the file in bytes. This field is populated for files with content stored in Google Drive and for files in Docs Editors; it isn't populated for shortcut files.", "format": "int64", "type": "string" }, @@ -5015,7 +5015,7 @@ "type": "string" }, "fullFileExtension": { - "description": "The full file extension; extracted from the title. May contain multiple concatenated extensions, such as \"tar.gz\". Removing an extension from the title does not clear this field; however, changing the extension on the title does update this field. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.", + "description": "The full file extension; extracted from the title. May contain multiple concatenated extensions, such as \"tar.gz\". Removing an extension from the title does not clear this field; however, changing the extension on the title does update this field. This field is only populated for files with content stored in Google Drive; it isn't populated for Docs Editors or shortcut files.", "type": "string" }, "hasAugmentedPermissions": { @@ -5027,7 +5027,7 @@ "type": "boolean" }, "headRevisionId": { - "description": "The ID of the file's head revision. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.", + "description": "The ID of the file's head revision. This field is only populated for files with content stored in Google Drive; it isn't populated for Docs Editors or shortcut files.", "type": "string" }, "iconLink": { @@ -5156,7 +5156,7 @@ "type": "object" }, "indexableText": { - "description": "Indexable text attributes for the file (can only be written)", + "description": "Indexable text attributes for the file (can only be written). For more information, see Manage file metadata.", "properties": { "text": { "description": "The text to be indexed for this file.", @@ -5250,7 +5250,7 @@ "type": "string" }, "md5Checksum": { - "description": "An MD5 checksum for the content of this file. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.", + "description": "An MD5 checksum for the content of this file. This field is only populated for files with content stored in Google Drive; it isn't populated for Docs Editors or shortcut files.", "type": "string" }, "mimeType": { @@ -5338,11 +5338,11 @@ "type": "string" }, "sha1Checksum": { - "description": "The SHA1 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.", + "description": "The SHA1 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it isn't populated for Docs Editors or shortcut files.", "type": "string" }, "sha256Checksum": { - "description": "The SHA256 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.", + "description": "The SHA256 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it isn't populated for Docs Editors or shortcut files.", "type": "string" }, "shareable": { diff --git a/drive/v2/drive-gen.go b/drive/v2/drive-gen.go index 1ce82325deb..5f8e7df6fe9 100644 --- a/drive/v2/drive-gen.go +++ b/drive/v2/drive-gen.go @@ -1984,8 +1984,8 @@ type File struct { Description string `json:"description,omitempty"` // DownloadUrl: Short lived download URL for the file. This field is - // only populated for files with content stored in Google Drive; it is - // not populated for Docs Editors or shortcut files. + // only populated for files with content stored in Google Drive; it + // isn't populated for Docs Editors or shortcut files. DownloadUrl string `json:"downloadUrl,omitempty"` // DriveId: ID of the shared drive the file resides in. Only populated @@ -2012,12 +2012,12 @@ type File struct { // FileExtension: The final component of fullFileExtension with trailing // text that does not appear to be part of the extension removed. This // field is only populated for files with content stored in Google - // Drive; it is not populated for Docs Editors or shortcut files. + // Drive; it isn't populated for Docs Editors or shortcut files. FileExtension string `json:"fileExtension,omitempty"` // FileSize: The size of the file in bytes. This field is populated for // files with content stored in Google Drive and for files in Docs - // Editors; it is not populated for shortcut files. + // Editors; it isn't populated for shortcut files. FileSize int64 `json:"fileSize,omitempty,string"` // FolderColorRgb: Folder color as an RGB hex string if the file is a @@ -2032,7 +2032,7 @@ type File struct { // Removing an extension from the title does not clear this field; // however, changing the extension on the title does update this field. // This field is only populated for files with content stored in Google - // Drive; it is not populated for Docs Editors or shortcut files. + // Drive; it isn't populated for Docs Editors or shortcut files. FullFileExtension string `json:"fullFileExtension,omitempty"` // HasAugmentedPermissions: Whether there are permissions directly on @@ -2045,8 +2045,8 @@ type File struct { HasThumbnail bool `json:"hasThumbnail,omitempty"` // HeadRevisionId: The ID of the file's head revision. This field is - // only populated for files with content stored in Google Drive; it is - // not populated for Docs Editors or shortcut files. + // only populated for files with content stored in Google Drive; it + // isn't populated for Docs Editors or shortcut files. HeadRevisionId string `json:"headRevisionId,omitempty"` // IconLink: A link to the file's icon. @@ -2061,7 +2061,7 @@ type File struct { ImageMediaMetadata *FileImageMediaMetadata `json:"imageMediaMetadata,omitempty"` // IndexableText: Indexable text attributes for the file (can only be - // written) + // written). For more information, see Manage file metadata. IndexableText *FileIndexableText `json:"indexableText,omitempty"` // IsAppAuthorized: Whether the file was created or opened by the @@ -2096,7 +2096,7 @@ type File struct { // Md5Checksum: An MD5 checksum for the content of this file. This field // is only populated for files with content stored in Google Drive; it - // is not populated for Docs Editors or shortcut files. + // isn't populated for Docs Editors or shortcut files. Md5Checksum string `json:"md5Checksum,omitempty"` // MimeType: The MIME type of the file. This is only mutable on update @@ -2167,13 +2167,13 @@ type File struct { // Sha1Checksum: The SHA1 checksum associated with this file, if // available. This field is only populated for files with content stored - // in Google Drive; it is not populated for Docs Editors or shortcut + // in Google Drive; it isn't populated for Docs Editors or shortcut // files. Sha1Checksum string `json:"sha1Checksum,omitempty"` // Sha256Checksum: The SHA256 checksum associated with this file, if // available. This field is only populated for files with content stored - // in Google Drive; it is not populated for Docs Editors or shortcut + // in Google Drive; it isn't populated for Docs Editors or shortcut // files. Sha256Checksum string `json:"sha256Checksum,omitempty"` @@ -2419,7 +2419,7 @@ type FileCapabilities struct { // CanReadRevisions: Whether the current user can read the revisions // resource of this file. For a shared drive item, whether revisions of - // non-folder descendants of this item, or this item itself if it is not + // non-folder descendants of this item, or this item itself if it isn't // a folder, can be read. CanReadRevisions bool `json:"canReadRevisions,omitempty"` @@ -2649,7 +2649,7 @@ func (s *FileImageMediaMetadataLocation) UnmarshalJSON(data []byte) error { } // FileIndexableText: Indexable text attributes for the file (can only -// be written) +// be written). For more information, see Manage file metadata. type FileIndexableText struct { // Text: The text to be indexed for this file. Text string `json:"text,omitempty"` diff --git a/drive/v3/drive-api.json b/drive/v3/drive-api.json index d2c5eeb8265..dfe5ce214f3 100644 --- a/drive/v3/drive-api.json +++ b/drive/v3/drive-api.json @@ -35,7 +35,7 @@ "description": "Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions.", "discoveryVersion": "v1", "documentationLink": "https://developers.google.com/drive/", - "etag": "\"uWj2hSb4GVjzdDlAnRd2gbM1ZQ8/pqc6_FFI8R5V0mO3Ezlrf52ddCQ\"", + "etag": "\"uWj2hSb4GVjzdDlAnRd2gbM1ZQ8/i6TQ0TGQtceOw3gUFmDQmrB6DWw\"", "icons": { "x16": "https://ssl.gstatic.com/docs/doclist/images/drive_icon_16.png", "x32": "https://ssl.gstatic.com/docs/doclist/images/drive_icon_32.png" @@ -2312,7 +2312,7 @@ } } }, - "revision": "20221002", + "revision": "20221023", "rootUrl": "https://www.googleapis.com/", "schemas": { "About": { @@ -3045,7 +3045,7 @@ "type": "boolean" }, "canReadRevisions": { - "description": "Whether the current user can read the revisions resource of this file. For a shared drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.", + "description": "Whether the current user can read the revisions resource of this file. For a shared drive item, whether revisions of non-folder descendants of this item, or this item itself if it isn't a folder, can be read.", "type": "boolean" }, "canReadTeamDrive": { @@ -3087,7 +3087,7 @@ "description": "Additional information about the content of the file. These fields are never populated in responses.", "properties": { "indexableText": { - "description": "Text to be indexed for the file to improve fullText queries. This is limited to 128KB in length and may contain HTML elements.", + "description": "Text to be indexed for the file to improve fullText queries. This is limited to 128 KB in length and may contain HTML elements. For more information, see Manage file metadata.", "type": "string" }, "thumbnail": { @@ -3154,7 +3154,7 @@ "type": "string" }, "fullFileExtension": { - "description": "The full file extension extracted from the name field. May contain multiple concatenated extensions, such as \"tar.gz\". This is only available for files with binary content in Google Drive.\nThis is automatically updated when the name field changes, however it is not cleared if the new name does not contain a valid extension.", + "description": "The full file extension extracted from the name field. May contain multiple concatenated extensions, such as \"tar.gz\". This is only available for files with binary content in Google Drive.\nThis is automatically updated when the name field changes, however it isn't cleared if the new name does not contain a valid extension.", "type": "string" }, "hasAugmentedPermissions": { @@ -3413,11 +3413,11 @@ "type": "string" }, "sha1Checksum": { - "description": "The SHA1 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.", + "description": "The SHA1 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it isn't populated for Docs Editors or shortcut files.", "type": "string" }, "sha256Checksum": { - "description": "The SHA256 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.", + "description": "The SHA256 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it isn't populated for Docs Editors or shortcut files.", "type": "string" }, "shared": { diff --git a/drive/v3/drive-gen.go b/drive/v3/drive-gen.go index 7c9d6b6c7c9..af1650dbf1c 100644 --- a/drive/v3/drive-gen.go +++ b/drive/v3/drive-gen.go @@ -1267,7 +1267,7 @@ type File struct { // "tar.gz". This is only available for files with binary content in // Google Drive. // This is automatically updated when the name field changes, however it - // is not cleared if the new name does not contain a valid extension. + // isn't cleared if the new name does not contain a valid extension. FullFileExtension string `json:"fullFileExtension,omitempty"` // HasAugmentedPermissions: Whether there are permissions directly on @@ -1389,13 +1389,13 @@ type File struct { // Sha1Checksum: The SHA1 checksum associated with this file, if // available. This field is only populated for files with content stored - // in Google Drive; it is not populated for Docs Editors or shortcut + // in Google Drive; it isn't populated for Docs Editors or shortcut // files. Sha1Checksum string `json:"sha1Checksum,omitempty"` // Sha256Checksum: The SHA256 checksum associated with this file, if // available. This field is only populated for files with content stored - // in Google Drive; it is not populated for Docs Editors or shortcut + // in Google Drive; it isn't populated for Docs Editors or shortcut // files. Sha256Checksum string `json:"sha256Checksum,omitempty"` @@ -1649,7 +1649,7 @@ type FileCapabilities struct { // CanReadRevisions: Whether the current user can read the revisions // resource of this file. For a shared drive item, whether revisions of - // non-folder descendants of this item, or this item itself if it is not + // non-folder descendants of this item, or this item itself if it isn't // a folder, can be read. CanReadRevisions bool `json:"canReadRevisions,omitempty"` @@ -1714,8 +1714,8 @@ func (s *FileCapabilities) MarshalJSON() ([]byte, error) { // file. These fields are never populated in responses. type FileContentHints struct { // IndexableText: Text to be indexed for the file to improve fullText - // queries. This is limited to 128KB in length and may contain HTML - // elements. + // queries. This is limited to 128 KB in length and may contain HTML + // elements. For more information, see Manage file metadata. IndexableText string `json:"indexableText,omitempty"` // Thumbnail: A thumbnail for the file. This will only be used if Google diff --git a/essentialcontacts/v1/essentialcontacts-api.json b/essentialcontacts/v1/essentialcontacts-api.json index cdf2327d0e4..df8e14736b0 100644 --- a/essentialcontacts/v1/essentialcontacts-api.json +++ b/essentialcontacts/v1/essentialcontacts-api.json @@ -297,7 +297,7 @@ ], "parameters": { "name": { - "description": "The identifier for the contact. Format: {resource_type}/{resource_id}/contacts/{contact_id}", + "description": "Output only. The identifier for the contact. Format: {resource_type}/{resource_id}/contacts/{contact_id}", "location": "path", "pattern": "^folders/[^/]+/contacts/[^/]+$", "required": true, @@ -545,7 +545,7 @@ ], "parameters": { "name": { - "description": "The identifier for the contact. Format: {resource_type}/{resource_id}/contacts/{contact_id}", + "description": "Output only. The identifier for the contact. Format: {resource_type}/{resource_id}/contacts/{contact_id}", "location": "path", "pattern": "^organizations/[^/]+/contacts/[^/]+$", "required": true, @@ -793,7 +793,7 @@ ], "parameters": { "name": { - "description": "The identifier for the contact. Format: {resource_type}/{resource_id}/contacts/{contact_id}", + "description": "Output only. The identifier for the contact. Format: {resource_type}/{resource_id}/contacts/{contact_id}", "location": "path", "pattern": "^projects/[^/]+/contacts/[^/]+$", "required": true, @@ -850,7 +850,7 @@ } } }, - "revision": "20220317", + "revision": "20221031", "rootUrl": "https://essentialcontacts.googleapis.com/", "schemas": { "GoogleCloudEssentialcontactsV1ComputeContactsResponse": { @@ -876,19 +876,20 @@ "id": "GoogleCloudEssentialcontactsV1Contact", "properties": { "email": { - "description": "Required. The email address to send notifications to. This does not need to be a Google account.", + "description": "Required. The email address to send notifications to. The email address does not need to be a Google Account.", "type": "string" }, "languageTag": { - "description": "The preferred language for notifications, as a ISO 639-1 language code. See [Supported languages](https://cloud.google.com/resource-manager/docs/managing-notification-contacts#supported-languages) for a list of supported languages.", + "description": "Required. The preferred language for notifications, as a ISO 639-1 language code. See [Supported languages](https://cloud.google.com/resource-manager/docs/managing-notification-contacts#supported-languages) for a list of supported languages.", "type": "string" }, "name": { - "description": "The identifier for the contact. Format: {resource_type}/{resource_id}/contacts/{contact_id}", + "description": "Output only. The identifier for the contact. Format: {resource_type}/{resource_id}/contacts/{contact_id}", + "readOnly": true, "type": "string" }, "notificationCategorySubscriptions": { - "description": "The categories of notifications that the contact will receive communications for.", + "description": "Required. The categories of notifications that the contact will receive communications for.", "items": { "enum": [ "NOTIFICATION_CATEGORY_UNSPECIFIED", diff --git a/essentialcontacts/v1/essentialcontacts-gen.go b/essentialcontacts/v1/essentialcontacts-gen.go index bcd246a6292..c6f7aecba84 100644 --- a/essentialcontacts/v1/essentialcontacts-gen.go +++ b/essentialcontacts/v1/essentialcontacts-gen.go @@ -251,22 +251,22 @@ func (s *GoogleCloudEssentialcontactsV1ComputeContactsResponse) MarshalJSON() ([ // GoogleCloudEssentialcontactsV1Contact: A contact that will receive // notifications from Google Cloud. type GoogleCloudEssentialcontactsV1Contact struct { - // Email: Required. The email address to send notifications to. This - // does not need to be a Google account. + // Email: Required. The email address to send notifications to. The + // email address does not need to be a Google Account. Email string `json:"email,omitempty"` - // LanguageTag: The preferred language for notifications, as a ISO 639-1 - // language code. See Supported languages + // LanguageTag: Required. The preferred language for notifications, as a + // ISO 639-1 language code. See Supported languages // (https://cloud.google.com/resource-manager/docs/managing-notification-contacts#supported-languages) // for a list of supported languages. LanguageTag string `json:"languageTag,omitempty"` - // Name: The identifier for the contact. Format: + // Name: Output only. The identifier for the contact. Format: // {resource_type}/{resource_id}/contacts/{contact_id} Name string `json:"name,omitempty"` - // NotificationCategorySubscriptions: The categories of notifications - // that the contact will receive communications for. + // NotificationCategorySubscriptions: Required. The categories of + // notifications that the contact will receive communications for. // // Possible values: // "NOTIFICATION_CATEGORY_UNSPECIFIED" - Notification category is @@ -1371,7 +1371,7 @@ type FoldersContactsPatchCall struct { // Patch: Updates a contact. Note: A contact's email address cannot be // changed. // -// - name: The identifier for the contact. Format: +// - name: Output only. The identifier for the contact. Format: // {resource_type}/{resource_id}/contacts/{contact_id}. func (r *FoldersContactsService) Patch(nameid string, googlecloudessentialcontactsv1contact *GoogleCloudEssentialcontactsV1Contact) *FoldersContactsPatchCall { c := &FoldersContactsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -1489,7 +1489,7 @@ func (c *FoldersContactsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleClou // ], // "parameters": { // "name": { - // "description": "The identifier for the contact. Format: {resource_type}/{resource_id}/contacts/{contact_id}", + // "description": "Output only. The identifier for the contact. Format: {resource_type}/{resource_id}/contacts/{contact_id}", // "location": "path", // "pattern": "^folders/[^/]+/contacts/[^/]+$", // "required": true, @@ -2589,7 +2589,7 @@ type OrganizationsContactsPatchCall struct { // Patch: Updates a contact. Note: A contact's email address cannot be // changed. // -// - name: The identifier for the contact. Format: +// - name: Output only. The identifier for the contact. Format: // {resource_type}/{resource_id}/contacts/{contact_id}. func (r *OrganizationsContactsService) Patch(nameid string, googlecloudessentialcontactsv1contact *GoogleCloudEssentialcontactsV1Contact) *OrganizationsContactsPatchCall { c := &OrganizationsContactsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -2707,7 +2707,7 @@ func (c *OrganizationsContactsPatchCall) Do(opts ...googleapi.CallOption) (*Goog // ], // "parameters": { // "name": { - // "description": "The identifier for the contact. Format: {resource_type}/{resource_id}/contacts/{contact_id}", + // "description": "Output only. The identifier for the contact. Format: {resource_type}/{resource_id}/contacts/{contact_id}", // "location": "path", // "pattern": "^organizations/[^/]+/contacts/[^/]+$", // "required": true, @@ -3807,7 +3807,7 @@ type ProjectsContactsPatchCall struct { // Patch: Updates a contact. Note: A contact's email address cannot be // changed. // -// - name: The identifier for the contact. Format: +// - name: Output only. The identifier for the contact. Format: // {resource_type}/{resource_id}/contacts/{contact_id}. func (r *ProjectsContactsService) Patch(nameid string, googlecloudessentialcontactsv1contact *GoogleCloudEssentialcontactsV1Contact) *ProjectsContactsPatchCall { c := &ProjectsContactsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -3925,7 +3925,7 @@ func (c *ProjectsContactsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleClo // ], // "parameters": { // "name": { - // "description": "The identifier for the contact. Format: {resource_type}/{resource_id}/contacts/{contact_id}", + // "description": "Output only. The identifier for the contact. Format: {resource_type}/{resource_id}/contacts/{contact_id}", // "location": "path", // "pattern": "^projects/[^/]+/contacts/[^/]+$", // "required": true, diff --git a/eventarc/v1/eventarc-api.json b/eventarc/v1/eventarc-api.json index 2446e45e19f..679581b56cc 100644 --- a/eventarc/v1/eventarc-api.json +++ b/eventarc/v1/eventarc-api.json @@ -1197,7 +1197,7 @@ } } }, - "revision": "20220916", + "revision": "20221021", "rootUrl": "https://eventarc.googleapis.com/", "schemas": { "AuditConfig": { @@ -2058,7 +2058,7 @@ "type": "string" }, "eventFilters": { - "description": "Required. null The list of filters that applies to event attributes. Only events that match all the provided filters are sent to the destination.", + "description": "Required. Unordered list. The list of filters that applies to event attributes. Only events that match all the provided filters are sent to the destination.", "items": { "$ref": "EventFilter" }, diff --git a/eventarc/v1/eventarc-gen.go b/eventarc/v1/eventarc-gen.go index 312631d5826..c070f8e5885 100644 --- a/eventarc/v1/eventarc-gen.go +++ b/eventarc/v1/eventarc-gen.go @@ -1846,9 +1846,9 @@ type Trigger struct { // to ensure that the client has an up-to-date value before proceeding. Etag string `json:"etag,omitempty"` - // EventFilters: Required. null The list of filters that applies to - // event attributes. Only events that match all the provided filters are - // sent to the destination. + // EventFilters: Required. Unordered list. The list of filters that + // applies to event attributes. Only events that match all the provided + // filters are sent to the destination. EventFilters []*EventFilter `json:"eventFilters,omitempty"` // Labels: Optional. User labels attached to the triggers that can be diff --git a/eventarc/v1beta1/eventarc-api.json b/eventarc/v1beta1/eventarc-api.json index 1569ff09783..eb99dd77320 100644 --- a/eventarc/v1beta1/eventarc-api.json +++ b/eventarc/v1beta1/eventarc-api.json @@ -584,7 +584,7 @@ } } }, - "revision": "20220826", + "revision": "20221021", "rootUrl": "https://eventarc.googleapis.com/", "schemas": { "AuditConfig": { @@ -1067,7 +1067,7 @@ "type": "object" }, "matchingCriteria": { - "description": "Required. null The criteria by which events are filtered. Only events that match with this criteria will be sent to the destination.", + "description": "Required. Unordered list. The criteria by which events are filtered. Only events that match with this criteria will be sent to the destination.", "items": { "$ref": "MatchingCriteria" }, diff --git a/eventarc/v1beta1/eventarc-gen.go b/eventarc/v1beta1/eventarc-gen.go index 6e87d1a4486..3c9ffe99dd1 100644 --- a/eventarc/v1beta1/eventarc-gen.go +++ b/eventarc/v1beta1/eventarc-gen.go @@ -1163,9 +1163,9 @@ type Trigger struct { // used to group resources. Labels map[string]string `json:"labels,omitempty"` - // MatchingCriteria: Required. null The criteria by which events are - // filtered. Only events that match with this criteria will be sent to - // the destination. + // MatchingCriteria: Required. Unordered list. The criteria by which + // events are filtered. Only events that match with this criteria will + // be sent to the destination. MatchingCriteria []*MatchingCriteria `json:"matchingCriteria,omitempty"` // Name: Required. The resource name of the trigger. Must be unique diff --git a/file/v1/file-api.json b/file/v1/file-api.json index ff33b960d13..b0e283f647f 100644 --- a/file/v1/file-api.json +++ b/file/v1/file-api.json @@ -846,7 +846,7 @@ } } }, - "revision": "20220729", + "revision": "20221026", "rootUrl": "https://file.googleapis.com/", "schemas": { "Backup": { @@ -1383,7 +1383,9 @@ "DELETING", "ERROR", "RESTORING", - "SUSPENDED" + "SUSPENDED", + "SUSPENDING", + "RESUMING" ], "enumDescriptions": [ "State not set.", @@ -1393,7 +1395,9 @@ "The instance is shutting down.", "The instance is experiencing an issue and might be unusable. You can get further details from the `statusMessage` field of the `Instance` resource.", "The instance is restoring a backup to an existing file share and may be unusable during this time.", - "The instance is suspended. You can get further details from the `suspension_reasons` field of the `Instance` resource." + "The instance is suspended. You can get further details from the `suspension_reasons` field of the `Instance` resource.", + "The instance is in the process of becoming suspended.", + "The instance is in the process of becoming active." ], "readOnly": true, "type": "string" diff --git a/file/v1/file-gen.go b/file/v1/file-gen.go index 82bceea1cdb..99d8ce19f58 100644 --- a/file/v1/file-gen.go +++ b/file/v1/file-gen.go @@ -997,6 +997,9 @@ type Instance struct { // "SUSPENDED" - The instance is suspended. You can get further // details from the `suspension_reasons` field of the `Instance` // resource. + // "SUSPENDING" - The instance is in the process of becoming + // suspended. + // "RESUMING" - The instance is in the process of becoming active. State string `json:"state,omitempty"` // StatusMessage: Output only. Additional information about the instance diff --git a/file/v1beta1/file-api.json b/file/v1beta1/file-api.json index 42672a82e37..1a902ee9803 100644 --- a/file/v1beta1/file-api.json +++ b/file/v1beta1/file-api.json @@ -1041,7 +1041,7 @@ } } }, - "revision": "20220729", + "revision": "20221026", "rootUrl": "https://file.googleapis.com/", "schemas": { "Backup": { @@ -1610,7 +1610,9 @@ "ERROR", "RESTORING", "SUSPENDED", - "REVERTING" + "REVERTING", + "SUSPENDING", + "RESUMING" ], "enumDescriptions": [ "State not set.", @@ -1621,7 +1623,9 @@ "The instance is experiencing an issue and might be unusable. You can get further details from the `statusMessage` field of the `Instance` resource.", "The instance is restoring a snapshot or backup to an existing file share and may be unusable during this time.", "The instance is suspended. You can get further details from the `suspension_reasons` field of the `Instance` resource.", - "The instance is reverting to a snapshot." + "The instance is reverting to a snapshot.", + "The instance is in the process of becoming suspended.", + "The instance is in the process of becoming active." ], "readOnly": true, "type": "string" diff --git a/file/v1beta1/file-gen.go b/file/v1beta1/file-gen.go index 88dd6528bae..17f3d3c8ab9 100644 --- a/file/v1beta1/file-gen.go +++ b/file/v1beta1/file-gen.go @@ -1035,6 +1035,9 @@ type Instance struct { // details from the `suspension_reasons` field of the `Instance` // resource. // "REVERTING" - The instance is reverting to a snapshot. + // "SUSPENDING" - The instance is in the process of becoming + // suspended. + // "RESUMING" - The instance is in the process of becoming active. State string `json:"state,omitempty"` // StatusMessage: Output only. Additional information about the instance diff --git a/gkehub/v1/gkehub-api.json b/gkehub/v1/gkehub-api.json index a978e67555f..7ffbe4de7d0 100644 --- a/gkehub/v1/gkehub-api.json +++ b/gkehub/v1/gkehub-api.json @@ -905,7 +905,7 @@ } } }, - "revision": "20220912", + "revision": "20221018", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AnthosVMMembershipSpec": { @@ -1132,6 +1132,10 @@ "$ref": "AppDevExperienceFeatureSpec", "description": "Appdevexperience specific spec." }, + "fleetobservability": { + "$ref": "FleetObservabilityFeatureSpec", + "description": "FleetObservability feature spec." + }, "multiclusteringress": { "$ref": "MultiClusterIngressFeatureSpec", "description": "Multicluster Ingress-specific spec." @@ -1147,6 +1151,10 @@ "$ref": "AppDevExperienceFeatureState", "description": "Appdevexperience specific state." }, + "fleetobservability": { + "$ref": "FleetObservabilityFeatureState", + "description": "FleetObservability feature state." + }, "state": { "$ref": "FeatureState", "description": "Output only. The \"running state\" of the Feature in this Hub.", @@ -1988,6 +1996,21 @@ "description": "Output only. State of the Feature resource itself.", "readOnly": true }, + "scopeSpecs": { + "additionalProperties": { + "$ref": "ScopeFeatureSpec" + }, + "description": "Optional. Scope-specific configuration for this Feature. If this Feature does not support any per-Scope configuration, this field may be unused. The keys indicate which Scope the configuration is for, in the form: `projects/{p}/locations/global/scopes/{s}` Where {p} is the project, {s} is a valid Scope in this project. {p} WILL match the Feature's project. {p} will always be returned as the project number, but the project ID is also accepted during input. If the same Scope is specified in the map twice (using the project ID form, and the project number form), exactly ONE of the entries will be saved, with no guarantees as to which. For this reason, it is recommended the same format be used for all entries when mutating a Feature.", + "type": "object" + }, + "scopeStates": { + "additionalProperties": { + "$ref": "ScopeFeatureState" + }, + "description": "Output only. Scope-specific Feature status. If this Feature does report any per-Scope status, this field may be unused. The keys indicate which Scope the state is for, in the form: `projects/{p}/locations/global/scopes/{s}` Where {p} is the project, {s} is a valid Scope in this project. {p} WILL match the Feature's project.", + "readOnly": true, + "type": "object" + }, "spec": { "$ref": "CommonFeatureSpec", "description": "Optional. Hub-wide Feature configuration. If this Feature does not support any Hub-wide configuration, this field may be unused." @@ -2065,6 +2088,30 @@ }, "type": "object" }, + "FleetObservabilityFeatureSpec": { + "description": "**Fleet Observability**: The Hub-wide input for the FleetObservability feature.", + "id": "FleetObservabilityFeatureSpec", + "properties": {}, + "type": "object" + }, + "FleetObservabilityFeatureState": { + "description": "**FleetObservability**: An empty state left as an example Hub-wide Feature state.", + "id": "FleetObservabilityFeatureState", + "properties": {}, + "type": "object" + }, + "FleetObservabilityMembershipSpec": { + "description": "**FleetObservability**: The membership-specific input for FleetObservability feature.", + "id": "FleetObservabilityMembershipSpec", + "properties": {}, + "type": "object" + }, + "FleetObservabilityMembershipState": { + "description": "**FleetObservability**: An empty state left as an example membership-specific Feature state.", + "id": "FleetObservabilityMembershipState", + "properties": {}, + "type": "object" + }, "GenerateConnectManifestResponse": { "description": "GenerateConnectManifestResponse contains manifest information for installing/upgrading a Connect agent.", "id": "GenerateConnectManifestResponse", @@ -2598,6 +2645,10 @@ "$ref": "ConfigManagementMembershipSpec", "description": "Config Management-specific spec." }, + "fleetobservability": { + "$ref": "FleetObservabilityMembershipSpec", + "description": "Fleet observability membership spec" + }, "identityservice": { "$ref": "IdentityServiceMembershipSpec", "description": "Identity Service-specific spec." @@ -2625,6 +2676,10 @@ "$ref": "ConfigManagementMembershipState", "description": "Config Management-specific state." }, + "fleetobservability": { + "$ref": "FleetObservabilityMembershipState", + "description": "Fleet observability membership state." + }, "identityservice": { "$ref": "IdentityServiceMembershipState", "description": "Identity Service-specific state." @@ -2889,6 +2944,24 @@ }, "type": "object" }, + "ScopeFeatureSpec": { + "description": "ScopeFeatureSpec contains feature specs for a fleet scope.", + "id": "ScopeFeatureSpec", + "properties": {}, + "type": "object" + }, + "ScopeFeatureState": { + "description": "ScopeFeatureState contains Scope-wide Feature status information.", + "id": "ScopeFeatureState", + "properties": { + "state": { + "$ref": "FeatureState", + "description": "Output only. The \"running state\" of the Feature in this Scope.", + "readOnly": true + } + }, + "type": "object" + }, "ServiceMeshControlPlaneManagement": { "description": "Status of control plane management.", "id": "ServiceMeshControlPlaneManagement", diff --git a/gkehub/v1/gkehub-gen.go b/gkehub/v1/gkehub-gen.go index e23f104b50c..48ef3f3efb1 100644 --- a/gkehub/v1/gkehub-gen.go +++ b/gkehub/v1/gkehub-gen.go @@ -663,6 +663,9 @@ type CommonFeatureSpec struct { // Appdevexperience: Appdevexperience specific spec. Appdevexperience *AppDevExperienceFeatureSpec `json:"appdevexperience,omitempty"` + // Fleetobservability: FleetObservability feature spec. + Fleetobservability *FleetObservabilityFeatureSpec `json:"fleetobservability,omitempty"` + // Multiclusteringress: Multicluster Ingress-specific spec. Multiclusteringress *MultiClusterIngressFeatureSpec `json:"multiclusteringress,omitempty"` @@ -696,6 +699,9 @@ type CommonFeatureState struct { // Appdevexperience: Appdevexperience specific state. Appdevexperience *AppDevExperienceFeatureState `json:"appdevexperience,omitempty"` + // Fleetobservability: FleetObservability feature state. + Fleetobservability *FleetObservabilityFeatureState `json:"fleetobservability,omitempty"` + // State: Output only. The "running state" of the Feature in this Hub. State *FeatureState `json:"state,omitempty"` @@ -1952,6 +1958,28 @@ type Feature struct { // ResourceState: Output only. State of the Feature resource itself. ResourceState *FeatureResourceState `json:"resourceState,omitempty"` + // ScopeSpecs: Optional. Scope-specific configuration for this Feature. + // If this Feature does not support any per-Scope configuration, this + // field may be unused. The keys indicate which Scope the configuration + // is for, in the form: `projects/{p}/locations/global/scopes/{s}` Where + // {p} is the project, {s} is a valid Scope in this project. {p} WILL + // match the Feature's project. {p} will always be returned as the + // project number, but the project ID is also accepted during input. If + // the same Scope is specified in the map twice (using the project ID + // form, and the project number form), exactly ONE of the entries will + // be saved, with no guarantees as to which. For this reason, it is + // recommended the same format be used for all entries when mutating a + // Feature. + ScopeSpecs map[string]ScopeFeatureSpec `json:"scopeSpecs,omitempty"` + + // ScopeStates: Output only. Scope-specific Feature status. If this + // Feature does report any per-Scope status, this field may be unused. + // The keys indicate which Scope the state is for, in the form: + // `projects/{p}/locations/global/scopes/{s}` Where {p} is the project, + // {s} is a valid Scope in this project. {p} WILL match the Feature's + // project. + ScopeStates map[string]ScopeFeatureState `json:"scopeStates,omitempty"` + // Spec: Optional. Hub-wide Feature configuration. If this Feature does // not support any Hub-wide configuration, this field may be unused. Spec *CommonFeatureSpec `json:"spec,omitempty"` @@ -2081,6 +2109,26 @@ func (s *FeatureState) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// FleetObservabilityFeatureSpec: **Fleet Observability**: The Hub-wide +// input for the FleetObservability feature. +type FleetObservabilityFeatureSpec struct { +} + +// FleetObservabilityFeatureState: **FleetObservability**: An empty +// state left as an example Hub-wide Feature state. +type FleetObservabilityFeatureState struct { +} + +// FleetObservabilityMembershipSpec: **FleetObservability**: The +// membership-specific input for FleetObservability feature. +type FleetObservabilityMembershipSpec struct { +} + +// FleetObservabilityMembershipState: **FleetObservability**: An empty +// state left as an example membership-specific Feature state. +type FleetObservabilityMembershipState struct { +} + // GenerateConnectManifestResponse: GenerateConnectManifestResponse // contains manifest information for installing/upgrading a Connect // agent. @@ -2930,6 +2978,9 @@ type MembershipFeatureSpec struct { // Configmanagement: Config Management-specific spec. Configmanagement *ConfigManagementMembershipSpec `json:"configmanagement,omitempty"` + // Fleetobservability: Fleet observability membership spec + Fleetobservability *FleetObservabilityMembershipSpec `json:"fleetobservability,omitempty"` + // Identityservice: Identity Service-specific spec. Identityservice *IdentityServiceMembershipSpec `json:"identityservice,omitempty"` @@ -2971,6 +3022,9 @@ type MembershipFeatureState struct { // Configmanagement: Config Management-specific state. Configmanagement *ConfigManagementMembershipState `json:"configmanagement,omitempty"` + // Fleetobservability: Fleet observability membership state. + Fleetobservability *FleetObservabilityMembershipState `json:"fleetobservability,omitempty"` + // Identityservice: Identity Service-specific state. Identityservice *IdentityServiceMembershipState `json:"identityservice,omitempty"` @@ -3480,6 +3534,40 @@ func (s *ResourceOptions) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ScopeFeatureSpec: ScopeFeatureSpec contains feature specs for a fleet +// scope. +type ScopeFeatureSpec struct { +} + +// ScopeFeatureState: ScopeFeatureState contains Scope-wide Feature +// status information. +type ScopeFeatureState struct { + // State: Output only. The "running state" of the Feature in this Scope. + State *FeatureState `json:"state,omitempty"` + + // ForceSendFields is a list of field names (e.g. "State") 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. "State") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ScopeFeatureState) MarshalJSON() ([]byte, error) { + type NoMethod ScopeFeatureState + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ServiceMeshControlPlaneManagement: Status of control plane // management. type ServiceMeshControlPlaneManagement struct { diff --git a/gkehub/v1alpha/gkehub-api.json b/gkehub/v1alpha/gkehub-api.json index 8b4e754e9b2..2d8bd7c3d81 100644 --- a/gkehub/v1alpha/gkehub-api.json +++ b/gkehub/v1alpha/gkehub-api.json @@ -1179,7 +1179,7 @@ } } }, - "revision": "20220923", + "revision": "20221018", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AnthosObservabilityFeatureSpec": { @@ -1483,6 +1483,10 @@ "$ref": "CloudAuditLoggingFeatureSpec", "description": "Cloud Audit Logging-specific spec." }, + "fleetobservability": { + "$ref": "FleetObservabilityFeatureSpec", + "description": "FleetObservability feature spec." + }, "multiclusteringress": { "$ref": "MultiClusterIngressFeatureSpec", "description": "Multicluster Ingress-specific spec." @@ -1502,6 +1506,10 @@ "$ref": "AppDevExperienceFeatureState", "description": "Appdevexperience specific state." }, + "fleetobservability": { + "$ref": "FleetObservabilityFeatureState", + "description": "FleetObservability feature state." + }, "servicemesh": { "$ref": "ServiceMeshFeatureState", "description": "Service Mesh-specific state." @@ -2404,6 +2412,21 @@ "description": "Output only. State of the Feature resource itself.", "readOnly": true }, + "scopeSpecs": { + "additionalProperties": { + "$ref": "ScopeFeatureSpec" + }, + "description": "Optional. Scope-specific configuration for this Feature. If this Feature does not support any per-Scope configuration, this field may be unused. The keys indicate which Scope the configuration is for, in the form: `projects/{p}/locations/global/scopes/{s}` Where {p} is the project, {s} is a valid Scope in this project. {p} WILL match the Feature's project. {p} will always be returned as the project number, but the project ID is also accepted during input. If the same Scope is specified in the map twice (using the project ID form, and the project number form), exactly ONE of the entries will be saved, with no guarantees as to which. For this reason, it is recommended the same format be used for all entries when mutating a Feature.", + "type": "object" + }, + "scopeStates": { + "additionalProperties": { + "$ref": "ScopeFeatureState" + }, + "description": "Output only. Scope-specific Feature status. If this Feature does report any per-Scope status, this field may be unused. The keys indicate which Scope the state is for, in the form: `projects/{p}/locations/global/scopes/{s}` Where {p} is the project, {s} is a valid Scope in this project. {p} WILL match the Feature's project.", + "readOnly": true, + "type": "object" + }, "spec": { "$ref": "CommonFeatureSpec", "description": "Optional. Hub-wide Feature configuration. If this Feature does not support any Hub-wide configuration, this field may be unused." @@ -2576,6 +2599,30 @@ }, "type": "object" }, + "FleetObservabilityFeatureSpec": { + "description": "**Fleet Observability**: The Hub-wide input for the FleetObservability feature.", + "id": "FleetObservabilityFeatureSpec", + "properties": {}, + "type": "object" + }, + "FleetObservabilityFeatureState": { + "description": "**FleetObservability**: An empty state left as an example Hub-wide Feature state.", + "id": "FleetObservabilityFeatureState", + "properties": {}, + "type": "object" + }, + "FleetObservabilityMembershipSpec": { + "description": "**FleetObservability**: The membership-specific input for FleetObservability feature.", + "id": "FleetObservabilityMembershipSpec", + "properties": {}, + "type": "object" + }, + "FleetObservabilityMembershipState": { + "description": "**FleetObservability**: An empty state left as an example membership-specific Feature state.", + "id": "FleetObservabilityMembershipState", + "properties": {}, + "type": "object" + }, "GenerateConnectManifestResponse": { "description": "GenerateConnectManifestResponse contains manifest information for installing/upgrading a Connect agent.", "id": "GenerateConnectManifestResponse", @@ -3160,6 +3207,10 @@ "$ref": "ConfigManagementMembershipSpec", "description": "Config Management-specific spec." }, + "fleetobservability": { + "$ref": "FleetObservabilityMembershipSpec", + "description": "Fleet observability membership spec" + }, "identityservice": { "$ref": "IdentityServiceMembershipSpec", "description": "Identity Service-specific spec." @@ -3195,6 +3246,10 @@ "$ref": "ConfigManagementMembershipState", "description": "Config Management-specific state." }, + "fleetobservability": { + "$ref": "FleetObservabilityMembershipState", + "description": "Fleet observability membership state." + }, "identityservice": { "$ref": "IdentityServiceMembershipState", "description": "Identity Service-specific state." @@ -3559,10 +3614,6 @@ "description": "**Policy Controller**: State for a single cluster.", "id": "PolicyControllerMembershipState", "properties": { - "clusterName": { - "description": "The user-defined name for the cluster used by ClusterSelectors to group clusters together. This should match Membership's membership_name, unless the user installed PC on the cluster manually prior to enabling the PC hub feature. Unique within a Policy Controller installation.", - "type": "string" - }, "componentStates": { "additionalProperties": { "$ref": "PolicyControllerOnClusterState" @@ -3705,6 +3756,24 @@ }, "type": "object" }, + "ScopeFeatureSpec": { + "description": "ScopeFeatureSpec contains feature specs for a fleet scope.", + "id": "ScopeFeatureSpec", + "properties": {}, + "type": "object" + }, + "ScopeFeatureState": { + "description": "ScopeFeatureState contains Scope-wide Feature status information.", + "id": "ScopeFeatureState", + "properties": { + "state": { + "$ref": "FeatureState", + "description": "Output only. The \"running state\" of the Feature in this Scope.", + "readOnly": true + } + }, + "type": "object" + }, "ServiceMeshAnalysisMessage": { "description": "AnalysisMessage is a single message produced by an analyzer, and it used to communicate to the end user about the state of their Service Mesh configuration.", "id": "ServiceMeshAnalysisMessage", diff --git a/gkehub/v1alpha/gkehub-gen.go b/gkehub/v1alpha/gkehub-gen.go index 516035f464f..6fbbc3e702a 100644 --- a/gkehub/v1alpha/gkehub-gen.go +++ b/gkehub/v1alpha/gkehub-gen.go @@ -863,6 +863,9 @@ type CommonFeatureSpec struct { // Cloudauditlogging: Cloud Audit Logging-specific spec. Cloudauditlogging *CloudAuditLoggingFeatureSpec `json:"cloudauditlogging,omitempty"` + // Fleetobservability: FleetObservability feature spec. + Fleetobservability *FleetObservabilityFeatureSpec `json:"fleetobservability,omitempty"` + // Multiclusteringress: Multicluster Ingress-specific spec. Multiclusteringress *MultiClusterIngressFeatureSpec `json:"multiclusteringress,omitempty"` @@ -899,6 +902,9 @@ type CommonFeatureState struct { // Appdevexperience: Appdevexperience specific state. Appdevexperience *AppDevExperienceFeatureState `json:"appdevexperience,omitempty"` + // Fleetobservability: FleetObservability feature state. + Fleetobservability *FleetObservabilityFeatureState `json:"fleetobservability,omitempty"` + // Servicemesh: Service Mesh-specific state. Servicemesh *ServiceMeshFeatureState `json:"servicemesh,omitempty"` @@ -2259,6 +2265,28 @@ type Feature struct { // ResourceState: Output only. State of the Feature resource itself. ResourceState *FeatureResourceState `json:"resourceState,omitempty"` + // ScopeSpecs: Optional. Scope-specific configuration for this Feature. + // If this Feature does not support any per-Scope configuration, this + // field may be unused. The keys indicate which Scope the configuration + // is for, in the form: `projects/{p}/locations/global/scopes/{s}` Where + // {p} is the project, {s} is a valid Scope in this project. {p} WILL + // match the Feature's project. {p} will always be returned as the + // project number, but the project ID is also accepted during input. If + // the same Scope is specified in the map twice (using the project ID + // form, and the project number form), exactly ONE of the entries will + // be saved, with no guarantees as to which. For this reason, it is + // recommended the same format be used for all entries when mutating a + // Feature. + ScopeSpecs map[string]ScopeFeatureSpec `json:"scopeSpecs,omitempty"` + + // ScopeStates: Output only. Scope-specific Feature status. If this + // Feature does report any per-Scope status, this field may be unused. + // The keys indicate which Scope the state is for, in the form: + // `projects/{p}/locations/global/scopes/{s}` Where {p} is the project, + // {s} is a valid Scope in this project. {p} WILL match the Feature's + // project. + ScopeStates map[string]ScopeFeatureState `json:"scopeStates,omitempty"` + // Spec: Optional. Hub-wide Feature configuration. If this Feature does // not support any Hub-wide configuration, this field may be unused. Spec *CommonFeatureSpec `json:"spec,omitempty"` @@ -2523,6 +2551,26 @@ func (s *FleetLifecycleState) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// FleetObservabilityFeatureSpec: **Fleet Observability**: The Hub-wide +// input for the FleetObservability feature. +type FleetObservabilityFeatureSpec struct { +} + +// FleetObservabilityFeatureState: **FleetObservability**: An empty +// state left as an example Hub-wide Feature state. +type FleetObservabilityFeatureState struct { +} + +// FleetObservabilityMembershipSpec: **FleetObservability**: The +// membership-specific input for FleetObservability feature. +type FleetObservabilityMembershipSpec struct { +} + +// FleetObservabilityMembershipState: **FleetObservability**: An empty +// state left as an example membership-specific Feature state. +type FleetObservabilityMembershipState struct { +} + // GenerateConnectManifestResponse: GenerateConnectManifestResponse // contains manifest information for installing/upgrading a Connect // agent. @@ -3461,6 +3509,9 @@ type MembershipFeatureSpec struct { // Configmanagement: Config Management-specific spec. Configmanagement *ConfigManagementMembershipSpec `json:"configmanagement,omitempty"` + // Fleetobservability: Fleet observability membership spec + Fleetobservability *FleetObservabilityMembershipSpec `json:"fleetobservability,omitempty"` + // Identityservice: Identity Service-specific spec. Identityservice *IdentityServiceMembershipSpec `json:"identityservice,omitempty"` @@ -3509,6 +3560,9 @@ type MembershipFeatureState struct { // Configmanagement: Config Management-specific state. Configmanagement *ConfigManagementMembershipState `json:"configmanagement,omitempty"` + // Fleetobservability: Fleet observability membership state. + Fleetobservability *FleetObservabilityMembershipState `json:"fleetobservability,omitempty"` + // Identityservice: Identity Service-specific state. Identityservice *IdentityServiceMembershipState `json:"identityservice,omitempty"` @@ -4147,13 +4201,6 @@ func (s *PolicyControllerMembershipSpec) MarshalJSON() ([]byte, error) { // PolicyControllerMembershipState: **Policy Controller**: State for a // single cluster. type PolicyControllerMembershipState struct { - // ClusterName: The user-defined name for the cluster used by - // ClusterSelectors to group clusters together. This should match - // Membership's membership_name, unless the user installed PC on the - // cluster manually prior to enabling the PC hub feature. Unique within - // a Policy Controller installation. - ClusterName string `json:"clusterName,omitempty"` - // ComponentStates: Currently these include (also serving as map keys): // 1. "admission" 2. "audit" 3. "mutation" 4. "constraint template // library" @@ -4201,7 +4248,7 @@ type PolicyControllerMembershipState struct { // still recorded (through audit). State string `json:"state,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClusterName") to + // ForceSendFields is a list of field names (e.g. "ComponentStates") 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 @@ -4209,12 +4256,13 @@ type PolicyControllerMembershipState struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ClusterName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ComponentStates") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } @@ -4442,6 +4490,40 @@ func (s *ResourceOptions) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ScopeFeatureSpec: ScopeFeatureSpec contains feature specs for a fleet +// scope. +type ScopeFeatureSpec struct { +} + +// ScopeFeatureState: ScopeFeatureState contains Scope-wide Feature +// status information. +type ScopeFeatureState struct { + // State: Output only. The "running state" of the Feature in this Scope. + State *FeatureState `json:"state,omitempty"` + + // ForceSendFields is a list of field names (e.g. "State") 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. "State") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ScopeFeatureState) MarshalJSON() ([]byte, error) { + type NoMethod ScopeFeatureState + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ServiceMeshAnalysisMessage: AnalysisMessage is a single message // produced by an analyzer, and it used to communicate to the end user // about the state of their Service Mesh configuration. diff --git a/gkehub/v1beta/gkehub-api.json b/gkehub/v1beta/gkehub-api.json index 84faccb73be..57f12d96794 100644 --- a/gkehub/v1beta/gkehub-api.json +++ b/gkehub/v1beta/gkehub-api.json @@ -670,7 +670,7 @@ } } }, - "revision": "20220923", + "revision": "20221018", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AnthosObservabilityFeatureSpec": { @@ -894,6 +894,10 @@ "$ref": "AppDevExperienceFeatureSpec", "description": "Appdevexperience specific spec." }, + "fleetobservability": { + "$ref": "FleetObservabilityFeatureSpec", + "description": "FleetObservability feature spec." + }, "multiclusteringress": { "$ref": "MultiClusterIngressFeatureSpec", "description": "Multicluster Ingress-specific spec." @@ -909,6 +913,10 @@ "$ref": "AppDevExperienceFeatureState", "description": "Appdevexperience specific state." }, + "fleetobservability": { + "$ref": "FleetObservabilityFeatureState", + "description": "FleetObservability feature state." + }, "state": { "$ref": "FeatureState", "description": "Output only. The \"running state\" of the Feature in this Hub.", @@ -1781,6 +1789,21 @@ "description": "Output only. State of the Feature resource itself.", "readOnly": true }, + "scopeSpecs": { + "additionalProperties": { + "$ref": "ScopeFeatureSpec" + }, + "description": "Optional. Scope-specific configuration for this Feature. If this Feature does not support any per-Scope configuration, this field may be unused. The keys indicate which Scope the configuration is for, in the form: `projects/{p}/locations/global/scopes/{s}` Where {p} is the project, {s} is a valid Scope in this project. {p} WILL match the Feature's project. {p} will always be returned as the project number, but the project ID is also accepted during input. If the same Scope is specified in the map twice (using the project ID form, and the project number form), exactly ONE of the entries will be saved, with no guarantees as to which. For this reason, it is recommended the same format be used for all entries when mutating a Feature.", + "type": "object" + }, + "scopeStates": { + "additionalProperties": { + "$ref": "ScopeFeatureState" + }, + "description": "Output only. Scope-specific Feature status. If this Feature does report any per-Scope status, this field may be unused. The keys indicate which Scope the state is for, in the form: `projects/{p}/locations/global/scopes/{s}` Where {p} is the project, {s} is a valid Scope in this project. {p} WILL match the Feature's project.", + "readOnly": true, + "type": "object" + }, "spec": { "$ref": "CommonFeatureSpec", "description": "Optional. Hub-wide Feature configuration. If this Feature does not support any Hub-wide configuration, this field may be unused." @@ -1858,6 +1881,30 @@ }, "type": "object" }, + "FleetObservabilityFeatureSpec": { + "description": "**Fleet Observability**: The Hub-wide input for the FleetObservability feature.", + "id": "FleetObservabilityFeatureSpec", + "properties": {}, + "type": "object" + }, + "FleetObservabilityFeatureState": { + "description": "**FleetObservability**: An empty state left as an example Hub-wide Feature state.", + "id": "FleetObservabilityFeatureState", + "properties": {}, + "type": "object" + }, + "FleetObservabilityMembershipSpec": { + "description": "**FleetObservability**: The membership-specific input for FleetObservability feature.", + "id": "FleetObservabilityMembershipSpec", + "properties": {}, + "type": "object" + }, + "FleetObservabilityMembershipState": { + "description": "**FleetObservability**: An empty state left as an example membership-specific Feature state.", + "id": "FleetObservabilityMembershipState", + "properties": {}, + "type": "object" + }, "GoogleRpcStatus": { "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", "id": "GoogleRpcStatus", @@ -2166,6 +2213,10 @@ "$ref": "ConfigManagementMembershipSpec", "description": "Config Management-specific spec." }, + "fleetobservability": { + "$ref": "FleetObservabilityMembershipSpec", + "description": "Fleet observability membership spec" + }, "identityservice": { "$ref": "IdentityServiceMembershipSpec", "description": "Identity Service-specific spec." @@ -2197,6 +2248,10 @@ "$ref": "ConfigManagementMembershipState", "description": "Config Management-specific state." }, + "fleetobservability": { + "$ref": "FleetObservabilityMembershipState", + "description": "Fleet observability membership state." + }, "identityservice": { "$ref": "IdentityServiceMembershipState", "description": "Identity Service-specific state." @@ -2483,10 +2538,6 @@ "description": "**Policy Controller**: State for a single cluster.", "id": "PolicyControllerMembershipState", "properties": { - "clusterName": { - "description": "The user-defined name for the cluster used by ClusterSelectors to group clusters together. This should match Membership's membership_name, unless the user installed PC on the cluster manually prior to enabling the PC hub feature. Unique within a Policy Controller installation.", - "type": "string" - }, "componentStates": { "additionalProperties": { "$ref": "PolicyControllerOnClusterState" @@ -2595,6 +2646,24 @@ }, "type": "object" }, + "ScopeFeatureSpec": { + "description": "ScopeFeatureSpec contains feature specs for a fleet scope.", + "id": "ScopeFeatureSpec", + "properties": {}, + "type": "object" + }, + "ScopeFeatureState": { + "description": "ScopeFeatureState contains Scope-wide Feature status information.", + "id": "ScopeFeatureState", + "properties": { + "state": { + "$ref": "FeatureState", + "description": "Output only. The \"running state\" of the Feature in this Scope.", + "readOnly": true + } + }, + "type": "object" + }, "ServiceMeshControlPlaneManagement": { "description": "Status of control plane management.", "id": "ServiceMeshControlPlaneManagement", diff --git a/gkehub/v1beta/gkehub-gen.go b/gkehub/v1beta/gkehub-gen.go index a162265d997..91722d87e93 100644 --- a/gkehub/v1beta/gkehub-gen.go +++ b/gkehub/v1beta/gkehub-gen.go @@ -647,6 +647,9 @@ type CommonFeatureSpec struct { // Appdevexperience: Appdevexperience specific spec. Appdevexperience *AppDevExperienceFeatureSpec `json:"appdevexperience,omitempty"` + // Fleetobservability: FleetObservability feature spec. + Fleetobservability *FleetObservabilityFeatureSpec `json:"fleetobservability,omitempty"` + // Multiclusteringress: Multicluster Ingress-specific spec. Multiclusteringress *MultiClusterIngressFeatureSpec `json:"multiclusteringress,omitempty"` @@ -680,6 +683,9 @@ type CommonFeatureState struct { // Appdevexperience: Appdevexperience specific state. Appdevexperience *AppDevExperienceFeatureState `json:"appdevexperience,omitempty"` + // Fleetobservability: FleetObservability feature state. + Fleetobservability *FleetObservabilityFeatureState `json:"fleetobservability,omitempty"` + // State: Output only. The "running state" of the Feature in this Hub. State *FeatureState `json:"state,omitempty"` @@ -1973,6 +1979,28 @@ type Feature struct { // ResourceState: Output only. State of the Feature resource itself. ResourceState *FeatureResourceState `json:"resourceState,omitempty"` + // ScopeSpecs: Optional. Scope-specific configuration for this Feature. + // If this Feature does not support any per-Scope configuration, this + // field may be unused. The keys indicate which Scope the configuration + // is for, in the form: `projects/{p}/locations/global/scopes/{s}` Where + // {p} is the project, {s} is a valid Scope in this project. {p} WILL + // match the Feature's project. {p} will always be returned as the + // project number, but the project ID is also accepted during input. If + // the same Scope is specified in the map twice (using the project ID + // form, and the project number form), exactly ONE of the entries will + // be saved, with no guarantees as to which. For this reason, it is + // recommended the same format be used for all entries when mutating a + // Feature. + ScopeSpecs map[string]ScopeFeatureSpec `json:"scopeSpecs,omitempty"` + + // ScopeStates: Output only. Scope-specific Feature status. If this + // Feature does report any per-Scope status, this field may be unused. + // The keys indicate which Scope the state is for, in the form: + // `projects/{p}/locations/global/scopes/{s}` Where {p} is the project, + // {s} is a valid Scope in this project. {p} WILL match the Feature's + // project. + ScopeStates map[string]ScopeFeatureState `json:"scopeStates,omitempty"` + // Spec: Optional. Hub-wide Feature configuration. If this Feature does // not support any Hub-wide configuration, this field may be unused. Spec *CommonFeatureSpec `json:"spec,omitempty"` @@ -2102,6 +2130,26 @@ func (s *FeatureState) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// FleetObservabilityFeatureSpec: **Fleet Observability**: The Hub-wide +// input for the FleetObservability feature. +type FleetObservabilityFeatureSpec struct { +} + +// FleetObservabilityFeatureState: **FleetObservability**: An empty +// state left as an example Hub-wide Feature state. +type FleetObservabilityFeatureState struct { +} + +// FleetObservabilityMembershipSpec: **FleetObservability**: The +// membership-specific input for FleetObservability feature. +type FleetObservabilityMembershipSpec struct { +} + +// FleetObservabilityMembershipState: **FleetObservability**: An empty +// state left as an example membership-specific Feature state. +type FleetObservabilityMembershipState struct { +} + // GoogleRpcStatus: The `Status` type defines a logical error model that // is suitable for different programming environments, including REST // APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each @@ -2580,6 +2628,9 @@ type MembershipFeatureSpec struct { // Configmanagement: Config Management-specific spec. Configmanagement *ConfigManagementMembershipSpec `json:"configmanagement,omitempty"` + // Fleetobservability: Fleet observability membership spec + Fleetobservability *FleetObservabilityMembershipSpec `json:"fleetobservability,omitempty"` + // Identityservice: Identity Service-specific spec. Identityservice *IdentityServiceMembershipSpec `json:"identityservice,omitempty"` @@ -2625,6 +2676,9 @@ type MembershipFeatureState struct { // Configmanagement: Config Management-specific state. Configmanagement *ConfigManagementMembershipState `json:"configmanagement,omitempty"` + // Fleetobservability: Fleet observability membership state. + Fleetobservability *FleetObservabilityMembershipState `json:"fleetobservability,omitempty"` + // Identityservice: Identity Service-specific state. Identityservice *IdentityServiceMembershipState `json:"identityservice,omitempty"` @@ -3133,13 +3187,6 @@ func (s *PolicyControllerMembershipSpec) MarshalJSON() ([]byte, error) { // PolicyControllerMembershipState: **Policy Controller**: State for a // single cluster. type PolicyControllerMembershipState struct { - // ClusterName: The user-defined name for the cluster used by - // ClusterSelectors to group clusters together. This should match - // Membership's membership_name, unless the user installed PC on the - // cluster manually prior to enabling the PC hub feature. Unique within - // a Policy Controller installation. - ClusterName string `json:"clusterName,omitempty"` - // ComponentStates: Currently these include (also serving as map keys): // 1. "admission" 2. "audit" 3. "mutation" 4. "constraint template // library" @@ -3187,7 +3234,7 @@ type PolicyControllerMembershipState struct { // still recorded (through audit). State string `json:"state,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClusterName") to + // ForceSendFields is a list of field names (e.g. "ComponentStates") 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 @@ -3195,12 +3242,13 @@ type PolicyControllerMembershipState struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ClusterName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ComponentStates") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } @@ -3348,6 +3396,40 @@ func (s *PolicyControllerTemplateLibraryConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ScopeFeatureSpec: ScopeFeatureSpec contains feature specs for a fleet +// scope. +type ScopeFeatureSpec struct { +} + +// ScopeFeatureState: ScopeFeatureState contains Scope-wide Feature +// status information. +type ScopeFeatureState struct { + // State: Output only. The "running state" of the Feature in this Scope. + State *FeatureState `json:"state,omitempty"` + + // ForceSendFields is a list of field names (e.g. "State") 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. "State") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ScopeFeatureState) MarshalJSON() ([]byte, error) { + type NoMethod ScopeFeatureState + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ServiceMeshControlPlaneManagement: Status of control plane // management. type ServiceMeshControlPlaneManagement struct { diff --git a/healthcare/v1beta1/healthcare-api.json b/healthcare/v1beta1/healthcare-api.json index bcefccd5183..5c5b41cf756 100644 --- a/healthcare/v1beta1/healthcare-api.json +++ b/healthcare/v1beta1/healthcare-api.json @@ -4865,9 +4865,55 @@ } } }, - "revision": "20220929", + "revision": "20221025", "rootUrl": "https://healthcare.googleapis.com/", "schemas": { + "Action": { + "description": "Specifies a selection of tags and an `Action` to apply to each one.", + "id": "Action", + "properties": { + "cleanImageTag": { + "$ref": "ImageConfig", + "description": "Inspect image and transform sensitive burnt-in text. Doesn't apply to elements nested in a sequence, which revert to `Keep`. Supported [tags](http://dicom.nema.org/medical/dicom/2018e/output/chtml/part06/chapter_6.html): PixelData" + }, + "cleanTextTag": { + "$ref": "CleanTextTag", + "description": "Inspect text and transform sensitive text. Configurable via TextConfig. Supported Value Representations: AE, LO, LT, PN, SH, ST, UC, UT, DA, DT, AS" + }, + "deleteTag": { + "$ref": "DeleteTag", + "description": "Delete tag." + }, + "keepTag": { + "$ref": "KeepTag", + "description": "Keep tag unchanged." + }, + "queries": { + "description": "Select all tags with the listed tag IDs, names, or Value Representations (VRs). Examples: ID: \"00100010\" Keyword: \"PatientName\" VR: \"PN\"", + "items": { + "type": "string" + }, + "type": "array" + }, + "recurseTag": { + "$ref": "RecurseTag", + "description": "Recursively apply DICOM de-id to tags nested in a sequence. Supported [Value Representation] (http://dicom.nema.org/medical/dicom/2018e/output/chtml/part05/sect_6.2.html#table_6.2-1): SQ" + }, + "regenUidTag": { + "$ref": "RegenUidTag", + "description": "Replace UID with a new generated UID. Supported [Value Representation] (http://dicom.nema.org/medical/dicom/2018e/output/chtml/part05/sect_6.2.html#table_6.2-1): UI" + }, + "removeTag": { + "$ref": "RemoveTag", + "description": "Replace with empty tag." + }, + "resetTag": { + "$ref": "ResetTag", + "description": "Reset tag to a placeholder value." + } + }, + "type": "object" + }, "ActivateConsentRequest": { "description": "Activates the latest revision of the specified Consent by committing a new revision with `state` updated to `ACTIVE`. If the latest revision of the given Consent is in the `ACTIVE` state, no new revision is committed. A FAILED_PRECONDITION error occurs if the latest revision of the given consent is in the `REJECTED` or `REVOKED` state.", "id": "ActivateConsentRequest", @@ -5219,6 +5265,12 @@ }, "type": "object" }, + "CharacterMaskField": { + "description": "Replace field value with masking character. Supported [types](https://www.hl7.org/fhir/datatypes.html): Code, Decimal, HumanName, Id, LanguageCode, Markdown, Oid, String, Uri, Uuid, Xhtml", + "id": "CharacterMaskField", + "properties": {}, + "type": "object" + }, "CheckDataAccessRequest": { "description": "Checks if a particular data_id of a User data mapping in the given consent store is consented for a given use.", "id": "CheckDataAccessRequest", @@ -5273,6 +5325,24 @@ }, "type": "object" }, + "CleanDescriptorsOption": { + "description": "This option is based on the DICOM Standard's [Clean Descriptors Option](http://dicom.nema.org/medical/dicom/2018e/output/chtml/part15/sect_E.3.5.html), and the `CleanText` `Action` is applied to all the specified fields. When cleaning text, the process attempts to transform phrases matching any of the tags marked for removal (action codes D, Z, X, and U) in the [Basic Profile](http://dicom.nema.org/medical/dicom/2018e/output/chtml/part15/chapter_E.html). These contextual phrases are replaced with the token \"[CTX]\". This option uses an additional `InfoType` during inspection.", + "id": "CleanDescriptorsOption", + "properties": {}, + "type": "object" + }, + "CleanTextField": { + "description": "Inspect text and transform sensitive text. Configure using `TextConfig`. Supported [types](https://www.hl7.org/fhir/datatypes.html): Code, Date, DateTime, Decimal, HumanName, Id, LanguageCode, Markdown, Oid, String, Uri, Uuid, Xhtml", + "id": "CleanTextField", + "properties": {}, + "type": "object" + }, + "CleanTextTag": { + "description": "Inspect text and transform sensitive text. Configurable using `TextConfig`. Supported [Value Representations] (http://dicom.nema.org/medical/dicom/2018e/output/chtml/part05/sect_6.2.html#table_6.2-1): AE, LO, LT, PN, SH, ST, UC, UT, DA, DT, AS", + "id": "CleanTextTag", + "properties": {}, + "type": "object" + }, "CloudHealthcareSource": { "description": "Cloud Healthcare API resource.", "id": "CloudHealthcareSource", @@ -5487,6 +5557,12 @@ }, "type": "object" }, + "ContextualDeidConfig": { + "description": "The fields that aren't marked `Keep` or `CleanText` in the `BASIC` profile are collected into a contextual phrase list. For fields marked `CleanText`, the process attempts to transform phrases matching these contextual entries. These contextual phrases are replaced with the token \"[CTX]\". This feature uses an additional InfoType during inspection.", + "id": "ContextualDeidConfig", + "properties": {}, + "type": "object" + }, "CreateMessageRequest": { "description": "Creates a new message.", "id": "CreateMessageRequest", @@ -5514,6 +5590,12 @@ }, "type": "object" }, + "CryptoHashField": { + "description": "Replace field value with a hash of that value. Supported [types](https://www.hl7.org/fhir/datatypes.html): Code, Decimal, HumanName, Id, LanguageCode, Markdown, Oid, String, Uri, Uuid, Xhtml", + "id": "CryptoHashField", + "properties": {}, + "type": "object" + }, "Dataset": { "description": "A message representing a health dataset. A health dataset represents a collection of healthcare data pertaining to one or more patients. This may include multiple modalities of healthcare data, such as electronic medical records or medical imaging data.", "id": "Dataset", @@ -5545,6 +5627,12 @@ }, "type": "object" }, + "DateShiftField": { + "description": "Shift the date by a randomized number of days. See [date shifting](https://cloud.google.com/dlp/docs/concepts-date-shifting) for more information. Supported [types](https://www.hl7.org/fhir/datatypes.html): Date, DateTime", + "id": "DateShiftField", + "properties": {}, + "type": "object" + }, "DeidentifiedStoreDestination": { "description": "Contains configuration for streaming de-identified FHIR export.", "id": "DeidentifiedStoreDestination", @@ -5572,10 +5660,18 @@ "$ref": "DicomConfig", "description": "Configures de-id of application/DICOM content. Deprecated. Use `dicom_tag_config` instead." }, + "dicomTagConfig": { + "$ref": "DicomTagConfig", + "description": "Configures de-id of application/DICOM content." + }, "fhir": { "$ref": "FhirConfig", "description": "Configures de-id of application/FHIR content. Deprecated. Use `fhir_field_config` instead." }, + "fhirFieldConfig": { + "$ref": "FhirFieldConfig", + "description": "Configures de-id of application/FHIR content." + }, "image": { "$ref": "ImageConfig", "description": "Configures the de-identification of image pixels in the source_dataset. Deprecated. Use `dicom_tag_config.options.clean_image` instead." @@ -5677,6 +5773,12 @@ "properties": {}, "type": "object" }, + "DeleteTag": { + "description": "Delete tag.", + "id": "DeleteTag", + "properties": {}, + "type": "object" + }, "Detail": { "description": "Contains multiple sensitive information findings for each resource slice.", "id": "Detail", @@ -5767,6 +5869,42 @@ }, "type": "object" }, + "DicomTagConfig": { + "description": "Specifies the parameters needed for the de-identification of DICOM stores.", + "id": "DicomTagConfig", + "properties": { + "actions": { + "description": "Specifies custom tag selections and `Actions` to apply to them. Overrides `options` and `profile`. Conflicting `Actions` are applied in the order given.", + "items": { + "$ref": "Action" + }, + "type": "array" + }, + "options": { + "$ref": "Options", + "description": "Specifies additional options to apply, overriding the base `profile`." + }, + "profileType": { + "description": "Base profile type for handling DICOM tags.", + "enum": [ + "PROFILE_TYPE_UNSPECIFIED", + "MINIMAL_KEEP_LIST_PROFILE", + "ATTRIBUTE_CONFIDENTIALITY_BASIC_PROFILE", + "KEEP_ALL_PROFILE", + "DEIDENTIFY_TAG_CONTENTS" + ], + "enumDescriptions": [ + "No profile provided. Same as `ATTRIBUTE_CONFIDENTIALITY_BASIC_PROFILE`.", + "Keep only the tags required to produce valid DICOM objects.", + "Remove tags based on DICOM Standard's [Attribute Confidentiality Basic Profile (DICOM Standard Edition 2018e)](http://dicom.nema.org/medical/dicom/2018e/output/chtml/part15/chapter_E.html).", + "Keep all tags.", + "Inspect tag contents and replace sensitive text. The process can be configured using the TextConfig. Applies to all tags with the following [Value Representations] (http://dicom.nema.org/medical/dicom/2018e/output/chtml/part05/sect_6.2.html#table_6.2-1): AE, LO, LT, PN, SH, ST, UC, UT, DA, DT, AS" + ], + "type": "string" + } + }, + "type": "object" + }, "Empty": { "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", @@ -6118,6 +6256,40 @@ }, "type": "object" }, + "FhirFieldConfig": { + "description": "Specifies how to handle the de-identification of a FHIR store.", + "id": "FhirFieldConfig", + "properties": { + "fieldMetadataList": { + "description": "Specifies FHIR paths to match and how to transform them. Any field that is not matched by a `FieldMetadata` is passed through to the output dataset unmodified. All extensions will be processed according to `keep_extensions`. If a field can be matched by more than one `FieldMetadata`, the first `FieldMetadata.Action` is applied. Overrides `options` and `profile`.", + "items": { + "$ref": "GoogleCloudHealthcareV1beta1DeidentifyFieldMetadata" + }, + "type": "array" + }, + "options": { + "$ref": "GoogleCloudHealthcareV1beta1DeidentifyOptions", + "description": "Specifies additional options, overriding the base `profile`." + }, + "profileType": { + "description": "Base profile type for handling FHIR fields.", + "enum": [ + "PROFILE_TYPE_UNSPECIFIED", + "KEEP_ALL", + "BASIC", + "CLEAN_ALL" + ], + "enumDescriptions": [ + "No profile provided. Same as `BASIC`.", + "`Keep` all fields.", + "Transforms known HIPAA 18 fields and cleans known unstructured text fields.", + "Cleans all supported tags. Applies to types: Code, Date, DateTime, Decimal, HumanName, Id, LanguageCode, Markdown, Oid, String, Uri, Uuid, Xhtml" + ], + "type": "string" + } + }, + "type": "object" + }, "FhirFilter": { "description": "Filter configuration.", "id": "FhirFilter", @@ -6502,6 +6674,71 @@ "properties": {}, "type": "object" }, + "GoogleCloudHealthcareV1beta1DeidentifyFieldMetadata": { + "description": "Specifies the FHIR paths to match and how to handle the de-identification of matching fields.", + "id": "GoogleCloudHealthcareV1beta1DeidentifyFieldMetadata", + "properties": { + "characterMaskField": { + "$ref": "CharacterMaskField", + "description": "Replace the field's value with a masking character. Supported [types](https://www.hl7.org/fhir/datatypes.html): Code, Decimal, HumanName, Id, LanguageCode, Markdown, Oid, String, Uri, Uuid, Xhtml" + }, + "cleanTextField": { + "$ref": "CleanTextField", + "description": "Inspect the field's text and transform sensitive text. Configure using `TextConfig`. Supported [types](https://www.hl7.org/fhir/datatypes.html): Code, Date, DateTime, Decimal, HumanName, Id, LanguageCode, Markdown, Oid, String, Uri, Uuid, Xhtml" + }, + "cryptoHashField": { + "$ref": "CryptoHashField", + "description": "Replace field value with a hash of that value. Supported [types](https://www.hl7.org/fhir/datatypes.html): Code, Decimal, HumanName, Id, LanguageCode, Markdown, Oid, String, Uri, Uuid, Xhtml" + }, + "dateShiftField": { + "$ref": "DateShiftField", + "description": "Shift the date by a randomized number of days. See [date shifting](https://cloud.google.com/dlp/docs/concepts-date-shifting) for more information. Supported [types](https://www.hl7.org/fhir/datatypes.html): Date, DateTime" + }, + "keepField": { + "$ref": "KeepField", + "description": "Keep the field unchanged." + }, + "paths": { + "description": "List of paths to FHIR fields to redact. Each path is a period-separated list where each component is either a field name or FHIR type name. All types begin with an upper case letter. For example, the resource field \"Patient.Address.city\", which uses a string type, can be matched by \"Patient.Address.String\". Path also supports partialkk matching. For example, \"Patient.Address.city\" can be matched by \"Address.city\" (Patient omitted). Partial matching and type matching can be combined, for example \"Patient.Address.city\" can be matched by \"Address.String\". For \"choice\" types (those defined in the FHIR spec with the form: field[x]), use two separate components. For example, \"deceasedAge.unit\" is matched by \"Deceased.Age.unit\". Supported [types](https://www.hl7.org/fhir/datatypes.html) are: AdministrativeGenderCode, Base64Binary, Boolean, Code, Date, DateTime, Decimal, HumanName, Id, Instant, Integer, LanguageCode, Markdown, Oid, PositiveInt, String, UnsignedInt, Uri, Uuid, Xhtml. The sub-type for HumanName (for example HumanName.given, HumanName.family) can be omitted.", + "items": { + "type": "string" + }, + "type": "array" + }, + "removeField": { + "$ref": "RemoveField", + "description": "Remove the field." + } + }, + "type": "object" + }, + "GoogleCloudHealthcareV1beta1DeidentifyOptions": { + "description": "Specifies additional options to apply to the base `profile`.", + "id": "GoogleCloudHealthcareV1beta1DeidentifyOptions", + "properties": { + "characterMaskConfig": { + "$ref": "CharacterMaskConfig", + "description": "Character mask config for `CharacterMaskField` `FieldMetadatas`." + }, + "contextualDeid": { + "$ref": "ContextualDeidConfig", + "description": "Configure contextual de-id." + }, + "cryptoHashConfig": { + "$ref": "CryptoHashConfig", + "description": "Crypo hash config for `CharacterMaskField` `FieldMetadatas`." + }, + "dateShiftConfig": { + "$ref": "DateShiftConfig", + "description": "Date shifting config for `CharacterMaskField` `FieldMetadatas`." + }, + "keepExtensions": { + "$ref": "KeepExtensionsConfig", + "description": "Configure keeping extensions by default." + } + }, + "type": "object" + }, "GoogleCloudHealthcareV1beta1DicomBigQueryDestination": { "description": "The BigQuery table where the server writes output.", "id": "GoogleCloudHealthcareV1beta1DicomBigQueryDestination", @@ -6812,19 +7049,35 @@ "description": "Specifies how to handle de-identification of image pixels.", "id": "ImageConfig", "properties": { + "additionalInfoTypes": { + "description": "Additional InfoTypes to redact in the images in addition to those used by `text_redaction_mode`. Can only be used when `text_redaction_mode` is set to `REDACT_SENSITIVE_TEXT`, `REDACT_SENSITIVE_TEXT_CLEAN_DESCRIPTORS` or `TEXT_REDACTION_MODE_UNSPECIFIED`.", + "items": { + "type": "string" + }, + "type": "array" + }, + "excludeInfoTypes": { + "description": "InfoTypes to skip redacting, overriding those used by `text_redaction_mode`. Can only be used when `text_redaction_mode` is set to `REDACT_SENSITIVE_TEXT` or `REDACT_SENSITIVE_TEXT_CLEAN_DESCRIPTORS`.", + "items": { + "type": "string" + }, + "type": "array" + }, "textRedactionMode": { "description": "Determines how to redact text from image.", "enum": [ "TEXT_REDACTION_MODE_UNSPECIFIED", "REDACT_ALL_TEXT", "REDACT_SENSITIVE_TEXT", - "REDACT_NO_TEXT" + "REDACT_NO_TEXT", + "REDACT_SENSITIVE_TEXT_CLEAN_DESCRIPTORS" ], "enumDescriptions": [ "No text redaction specified. Same as REDACT_NO_TEXT.", "Redact all text.", "Redact sensitive text. Uses the set of [Default DICOM InfoTypes](https://cloud.google.com/healthcare-api/docs/how-tos/dicom-deidentify#default_dicom_infotypes).", - "Do not redact text." + "Do not redact text.", + "This mode is like `REDACT_SENSITIVE_TEXT` with the addition of the [Clean Descriptors Option] (https://dicom.nema.org/medical/dicom/2018e/output/chtml/part15/sect_E.3.5.html) enabled: When cleaning text, the process attempts to transform phrases matching any of the tags marked for removal (action codes D, Z, X, and U) in the [Basic Profile] (https://dicom.nema.org/medical/dicom/2018e/output/chtml/part15/chapter_E.html). These contextual phrases are replaced with the token \"[CTX]\". This mode uses an additional InfoType during inspection." ], "type": "string" } @@ -6988,6 +7241,24 @@ }, "type": "object" }, + "KeepExtensionsConfig": { + "description": "The behaviour for handling FHIR extensions that aren't otherwise specified for de-identification. If provided, all extensions are preserved during de-identification by default. If unspecified, all extensions are removed during de-identification by default.", + "id": "KeepExtensionsConfig", + "properties": {}, + "type": "object" + }, + "KeepField": { + "description": "Keep field unchanged.", + "id": "KeepField", + "properties": {}, + "type": "object" + }, + "KeepTag": { + "description": "Keep tag unchanged.", + "id": "KeepTag", + "properties": {}, + "type": "object" + }, "KmsWrappedCryptoKey": { "description": "Include to use an existing data crypto key wrapped by KMS. The wrapped key must be a 128-, 192-, or 256-bit key. The key must grant the Cloud IAM permission `cloudkms.cryptoKeyVersions.useToDecrypt` to the project's Cloud Healthcare Service Agent service account. For more information, see [Creating a wrapped key] (https://cloud.google.com/dlp/docs/create-wrapped-key).", "id": "KmsWrappedCryptoKey", @@ -7453,6 +7724,35 @@ }, "type": "object" }, + "Options": { + "description": "Specifies additional options to apply to the base profile.", + "id": "Options", + "properties": { + "cleanDescriptors": { + "$ref": "CleanDescriptorsOption", + "description": "Set Clean Descriptors Option." + }, + "cleanImage": { + "$ref": "ImageConfig", + "description": "Apply `Action.clean_image` to [`PixelData`](http://dicom.nema.org/medical/dicom/2018e/output/chtml/part06/chapter_6.html) as configured." + }, + "primaryIds": { + "description": "Set `Action` for [`StudyInstanceUID`, `SeriesInstanceUID`, `SOPInstanceUID`, and `MediaStorageSOPInstanceUID`](http://dicom.nema.org/medical/dicom/2018e/output/chtml/part06/chapter_6.html).", + "enum": [ + "PRIMARY_IDS_OPTION_UNSPECIFIED", + "KEEP", + "REGEN" + ], + "enumDescriptions": [ + "No value provided. Default to the behavior specified by the base profile.", + "Keep primary IDs.", + "Regenerate primary IDs." + ], + "type": "string" + } + }, + "type": "object" + }, "ParsedData": { "description": "The content of an HL7v2 message in a structured format.", "id": "ParsedData", @@ -7609,12 +7909,24 @@ }, "type": "object" }, + "RecurseTag": { + "description": "Recursively apply DICOM de-id to tags nested in a sequence. Supported [Value Representation] (http://dicom.nema.org/medical/dicom/2018e/output/chtml/part05/sect_6.2.html#table_6.2-1): SQ", + "id": "RecurseTag", + "properties": {}, + "type": "object" + }, "RedactConfig": { "description": "Define how to redact sensitive values. Default behaviour is erase. For example, \"My name is Jane.\" becomes \"My name is .\"", "id": "RedactConfig", "properties": {}, "type": "object" }, + "RegenUidTag": { + "description": "Replace UID with a new generated UID. Supported [Value Representation] (http://dicom.nema.org/medical/dicom/2018e/output/chtml/part05/sect_6.2.html#table_6.2-1): UI", + "id": "RegenUidTag", + "properties": {}, + "type": "object" + }, "RejectConsentRequest": { "description": "Rejects the latest revision of the specified Consent by committing a new revision with `state` updated to `REJECTED`. If the latest revision of the given Consent is in the `REJECTED` state, no new revision is committed.", "id": "RejectConsentRequest", @@ -7626,12 +7938,30 @@ }, "type": "object" }, + "RemoveField": { + "description": "Remove field.", + "id": "RemoveField", + "properties": {}, + "type": "object" + }, + "RemoveTag": { + "description": "Replace with empty tag.", + "id": "RemoveTag", + "properties": {}, + "type": "object" + }, "ReplaceWithInfoTypeConfig": { "description": "When using the INSPECT_AND_TRANSFORM action, each match is replaced with the name of the info_type. For example, \"My name is Jane\" becomes \"My name is [PERSON_NAME].\" The TRANSFORM action is equivalent to redacting.", "id": "ReplaceWithInfoTypeConfig", "properties": {}, "type": "object" }, + "ResetTag": { + "description": "Reset tag to a placeholder value.", + "id": "ResetTag", + "properties": {}, + "type": "object" + }, "ResourceAnnotation": { "description": "Resource level annotation.", "id": "ResourceAnnotation", @@ -8055,6 +8385,34 @@ "description": "Configures how to transform sensitive text `InfoTypes`.", "id": "TextConfig", "properties": { + "additionalTransformations": { + "description": "Additional transformations to apply to the detected data, overriding `profile`.", + "items": { + "$ref": "InfoTypeTransformation" + }, + "type": "array" + }, + "excludeInfoTypes": { + "description": "InfoTypes to skip transforming, overriding `profile`.", + "items": { + "type": "string" + }, + "type": "array" + }, + "profileType": { + "description": "Base profile type for text transformation.", + "enum": [ + "PROFILE_TYPE_UNSPECIFIED", + "EMPTY", + "BASIC" + ], + "enumDescriptions": [ + "Same as BASIC.", + "Empty profile which does not perform any transformations.", + "Basic profile applies: DATE -\u003e DateShift Default -\u003e ReplaceWithInfoType" + ], + "type": "string" + }, "transformations": { "description": "The transformations to apply to the detected data. Deprecated. Use `additional_transformations` instead.", "items": { diff --git a/healthcare/v1beta1/healthcare-gen.go b/healthcare/v1beta1/healthcare-gen.go index 87b344213e7..66435ffcc29 100644 --- a/healthcare/v1beta1/healthcare-gen.go +++ b/healthcare/v1beta1/healthcare-gen.go @@ -398,6 +398,73 @@ type ProjectsLocationsServicesNlpService struct { s *Service } +// Action: Specifies a selection of tags and an `Action` to apply to +// each one. +type Action struct { + // CleanImageTag: Inspect image and transform sensitive burnt-in text. + // Doesn't apply to elements nested in a sequence, which revert to + // `Keep`. Supported tags + // (http://dicom.nema.org/medical/dicom/2018e/output/chtml/part06/chapter_6.html): + // PixelData + CleanImageTag *ImageConfig `json:"cleanImageTag,omitempty"` + + // CleanTextTag: Inspect text and transform sensitive text. Configurable + // via TextConfig. Supported Value Representations: AE, LO, LT, PN, SH, + // ST, UC, UT, DA, DT, AS + CleanTextTag *CleanTextTag `json:"cleanTextTag,omitempty"` + + // DeleteTag: Delete tag. + DeleteTag *DeleteTag `json:"deleteTag,omitempty"` + + // KeepTag: Keep tag unchanged. + KeepTag *KeepTag `json:"keepTag,omitempty"` + + // Queries: Select all tags with the listed tag IDs, names, or Value + // Representations (VRs). Examples: ID: "00100010" Keyword: + // "PatientName" VR: "PN" + Queries []string `json:"queries,omitempty"` + + // RecurseTag: Recursively apply DICOM de-id to tags nested in a + // sequence. Supported [Value Representation] + // (http://dicom.nema.org/medical/dicom/2018e/output/chtml/part05/sect_6.2.html#table_6.2-1): + // SQ + RecurseTag *RecurseTag `json:"recurseTag,omitempty"` + + // RegenUidTag: Replace UID with a new generated UID. Supported [Value + // Representation] + // (http://dicom.nema.org/medical/dicom/2018e/output/chtml/part05/sect_6.2.html#table_6.2-1): + // UI + RegenUidTag *RegenUidTag `json:"regenUidTag,omitempty"` + + // RemoveTag: Replace with empty tag. + RemoveTag *RemoveTag `json:"removeTag,omitempty"` + + // ResetTag: Reset tag to a placeholder value. + ResetTag *ResetTag `json:"resetTag,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CleanImageTag") 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. "CleanImageTag") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Action) MarshalJSON() ([]byte, error) { + type NoMethod Action + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ActivateConsentRequest: Activates the latest revision of the // specified Consent by committing a new revision with `state` updated // to `ACTIVE`. If the latest revision of the given Consent is in the @@ -1097,6 +1164,13 @@ func (s *CharacterMaskConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// CharacterMaskField: Replace field value with masking character. +// Supported types (https://www.hl7.org/fhir/datatypes.html): Code, +// Decimal, HumanName, Id, LanguageCode, Markdown, Oid, String, Uri, +// Uuid, Xhtml +type CharacterMaskField struct { +} + // CheckDataAccessRequest: Checks if a particular data_id of a User data // mapping in the given consent store is consented for a given use. type CheckDataAccessRequest struct { @@ -1195,6 +1269,34 @@ func (s *CheckDataAccessResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// CleanDescriptorsOption: This option is based on the DICOM Standard's +// Clean Descriptors Option +// (http://dicom.nema.org/medical/dicom/2018e/output/chtml/part15/sect_E.3.5.html), +// and the `CleanText` `Action` is applied to all the specified fields. +// When cleaning text, the process attempts to transform phrases +// matching any of the tags marked for removal (action codes D, Z, X, +// and U) in the Basic Profile +// (http://dicom.nema.org/medical/dicom/2018e/output/chtml/part15/chapter_E.html). +// These contextual phrases are replaced with the token "[CTX]". This +// option uses an additional `InfoType` during inspection. +type CleanDescriptorsOption struct { +} + +// CleanTextField: Inspect text and transform sensitive text. Configure +// using `TextConfig`. Supported types +// (https://www.hl7.org/fhir/datatypes.html): Code, Date, DateTime, +// Decimal, HumanName, Id, LanguageCode, Markdown, Oid, String, Uri, +// Uuid, Xhtml +type CleanTextField struct { +} + +// CleanTextTag: Inspect text and transform sensitive text. Configurable +// using `TextConfig`. Supported [Value Representations] +// (http://dicom.nema.org/medical/dicom/2018e/output/chtml/part05/sect_6.2.html#table_6.2-1): +// AE, LO, LT, PN, SH, ST, UC, UT, DA, DT, AS +type CleanTextTag struct { +} + // CloudHealthcareSource: Cloud Healthcare API resource. type CloudHealthcareSource struct { // Name: Full path of a Cloud Healthcare API resource. @@ -1550,6 +1652,15 @@ func (s *ConsentStore) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ContextualDeidConfig: The fields that aren't marked `Keep` or +// `CleanText` in the `BASIC` profile are collected into a contextual +// phrase list. For fields marked `CleanText`, the process attempts to +// transform phrases matching these contextual entries. These contextual +// phrases are replaced with the token "[CTX]". This feature uses an +// additional InfoType during inspection. +type ContextualDeidConfig struct { +} + // CreateMessageRequest: Creates a new message. type CreateMessageRequest struct { // Message: HL7v2 message. @@ -1615,6 +1726,13 @@ func (s *CryptoHashConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// CryptoHashField: Replace field value with a hash of that value. +// Supported types (https://www.hl7.org/fhir/datatypes.html): Code, +// Decimal, HumanName, Id, LanguageCode, Markdown, Oid, String, Uri, +// Uuid, Xhtml +type CryptoHashField struct { +} + // Dataset: A message representing a health dataset. A health dataset // represents a collection of healthcare data pertaining to one or more // patients. This may include multiple modalities of healthcare data, @@ -1694,6 +1812,14 @@ func (s *DateShiftConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// DateShiftField: Shift the date by a randomized number of days. See +// date shifting +// (https://cloud.google.com/dlp/docs/concepts-date-shifting) for more +// information. Supported types +// (https://www.hl7.org/fhir/datatypes.html): Date, DateTime +type DateShiftField struct { +} + // DeidentifiedStoreDestination: Contains configuration for streaming // de-identified FHIR export. type DeidentifiedStoreDestination struct { @@ -1744,10 +1870,16 @@ type DeidentifyConfig struct { // `dicom_tag_config` instead. Dicom *DicomConfig `json:"dicom,omitempty"` + // DicomTagConfig: Configures de-id of application/DICOM content. + DicomTagConfig *DicomTagConfig `json:"dicomTagConfig,omitempty"` + // Fhir: Configures de-id of application/FHIR content. Deprecated. Use // `fhir_field_config` instead. Fhir *FhirConfig `json:"fhir,omitempty"` + // FhirFieldConfig: Configures de-id of application/FHIR content. + FhirFieldConfig *FhirFieldConfig `json:"fhirFieldConfig,omitempty"` + // Image: Configures the de-identification of image pixels in the // source_dataset. Deprecated. Use // `dicom_tag_config.options.clean_image` instead. @@ -1975,6 +2107,10 @@ func (s *DeidentifyOperationMetadata) MarshalJSON() ([]byte, error) { type DeidentifySummary struct { } +// DeleteTag: Delete tag. +type DeleteTag struct { +} + // Detail: Contains multiple sensitive information findings for each // resource slice. type Detail struct { @@ -2159,6 +2295,61 @@ func (s *DicomStore) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// DicomTagConfig: Specifies the parameters needed for the +// de-identification of DICOM stores. +type DicomTagConfig struct { + // Actions: Specifies custom tag selections and `Actions` to apply to + // them. Overrides `options` and `profile`. Conflicting `Actions` are + // applied in the order given. + Actions []*Action `json:"actions,omitempty"` + + // Options: Specifies additional options to apply, overriding the base + // `profile`. + Options *Options `json:"options,omitempty"` + + // ProfileType: Base profile type for handling DICOM tags. + // + // Possible values: + // "PROFILE_TYPE_UNSPECIFIED" - No profile provided. Same as + // `ATTRIBUTE_CONFIDENTIALITY_BASIC_PROFILE`. + // "MINIMAL_KEEP_LIST_PROFILE" - Keep only the tags required to + // produce valid DICOM objects. + // "ATTRIBUTE_CONFIDENTIALITY_BASIC_PROFILE" - Remove tags based on + // DICOM Standard's [Attribute Confidentiality Basic Profile (DICOM + // Standard Edition + // 2018e)](http://dicom.nema.org/medical/dicom/2018e/output/chtml/part15/ + // chapter_E.html). + // "KEEP_ALL_PROFILE" - Keep all tags. + // "DEIDENTIFY_TAG_CONTENTS" - Inspect tag contents and replace + // sensitive text. The process can be configured using the TextConfig. + // Applies to all tags with the following [Value Representations] + // (http://dicom.nema.org/medical/dicom/2018e/output/chtml/part05/sect_6.2.html#table_6.2-1): + // AE, LO, LT, PN, SH, ST, UC, UT, DA, DT, AS + ProfileType string `json:"profileType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Actions") 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. "Actions") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *DicomTagConfig) MarshalJSON() ([]byte, error) { + type NoMethod DicomTagConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Empty: A generic empty message that you can re-use to avoid defining // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For @@ -2860,6 +3051,56 @@ func (s *FhirConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// FhirFieldConfig: Specifies how to handle the de-identification of a +// FHIR store. +type FhirFieldConfig struct { + // FieldMetadataList: Specifies FHIR paths to match and how to transform + // them. Any field that is not matched by a `FieldMetadata` is passed + // through to the output dataset unmodified. All extensions will be + // processed according to `keep_extensions`. If a field can be matched + // by more than one `FieldMetadata`, the first `FieldMetadata.Action` is + // applied. Overrides `options` and `profile`. + FieldMetadataList []*GoogleCloudHealthcareV1beta1DeidentifyFieldMetadata `json:"fieldMetadataList,omitempty"` + + // Options: Specifies additional options, overriding the base `profile`. + Options *GoogleCloudHealthcareV1beta1DeidentifyOptions `json:"options,omitempty"` + + // ProfileType: Base profile type for handling FHIR fields. + // + // Possible values: + // "PROFILE_TYPE_UNSPECIFIED" - No profile provided. Same as `BASIC`. + // "KEEP_ALL" - `Keep` all fields. + // "BASIC" - Transforms known HIPAA 18 fields and cleans known + // unstructured text fields. + // "CLEAN_ALL" - Cleans all supported tags. Applies to types: Code, + // Date, DateTime, Decimal, HumanName, Id, LanguageCode, Markdown, Oid, + // String, Uri, Uuid, Xhtml + ProfileType string `json:"profileType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FieldMetadataList") + // 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. "FieldMetadataList") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *FhirFieldConfig) MarshalJSON() ([]byte, error) { + type NoMethod FhirFieldConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // FhirFilter: Filter configuration. type FhirFilter struct { // Resources: List of resources to include in the output. If this list @@ -3624,6 +3865,130 @@ type GoogleCloudHealthcareV1beta1DeidentifyDeidentifyDicomStoreSummary struct { type GoogleCloudHealthcareV1beta1DeidentifyDeidentifyFhirStoreSummary struct { } +// GoogleCloudHealthcareV1beta1DeidentifyFieldMetadata: Specifies the +// FHIR paths to match and how to handle the de-identification of +// matching fields. +type GoogleCloudHealthcareV1beta1DeidentifyFieldMetadata struct { + // CharacterMaskField: Replace the field's value with a masking + // character. Supported types (https://www.hl7.org/fhir/datatypes.html): + // Code, Decimal, HumanName, Id, LanguageCode, Markdown, Oid, String, + // Uri, Uuid, Xhtml + CharacterMaskField *CharacterMaskField `json:"characterMaskField,omitempty"` + + // CleanTextField: Inspect the field's text and transform sensitive + // text. Configure using `TextConfig`. Supported types + // (https://www.hl7.org/fhir/datatypes.html): Code, Date, DateTime, + // Decimal, HumanName, Id, LanguageCode, Markdown, Oid, String, Uri, + // Uuid, Xhtml + CleanTextField *CleanTextField `json:"cleanTextField,omitempty"` + + // CryptoHashField: Replace field value with a hash of that value. + // Supported types (https://www.hl7.org/fhir/datatypes.html): Code, + // Decimal, HumanName, Id, LanguageCode, Markdown, Oid, String, Uri, + // Uuid, Xhtml + CryptoHashField *CryptoHashField `json:"cryptoHashField,omitempty"` + + // DateShiftField: Shift the date by a randomized number of days. See + // date shifting + // (https://cloud.google.com/dlp/docs/concepts-date-shifting) for more + // information. Supported types + // (https://www.hl7.org/fhir/datatypes.html): Date, DateTime + DateShiftField *DateShiftField `json:"dateShiftField,omitempty"` + + // KeepField: Keep the field unchanged. + KeepField *KeepField `json:"keepField,omitempty"` + + // Paths: List of paths to FHIR fields to redact. Each path is a + // period-separated list where each component is either a field name or + // FHIR type name. All types begin with an upper case letter. For + // example, the resource field "Patient.Address.city", which uses a + // string type, can be matched by "Patient.Address.String". Path also + // supports partialkk matching. For example, "Patient.Address.city" can + // be matched by "Address.city" (Patient omitted). Partial matching and + // type matching can be combined, for example "Patient.Address.city" can + // be matched by "Address.String". For "choice" types (those defined in + // the FHIR spec with the form: field[x]), use two separate components. + // For example, "deceasedAge.unit" is matched by "Deceased.Age.unit". + // Supported types (https://www.hl7.org/fhir/datatypes.html) are: + // AdministrativeGenderCode, Base64Binary, Boolean, Code, Date, + // DateTime, Decimal, HumanName, Id, Instant, Integer, LanguageCode, + // Markdown, Oid, PositiveInt, String, UnsignedInt, Uri, Uuid, Xhtml. + // The sub-type for HumanName (for example HumanName.given, + // HumanName.family) can be omitted. + Paths []string `json:"paths,omitempty"` + + // RemoveField: Remove the field. + RemoveField *RemoveField `json:"removeField,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CharacterMaskField") + // 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. "CharacterMaskField") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudHealthcareV1beta1DeidentifyFieldMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudHealthcareV1beta1DeidentifyFieldMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudHealthcareV1beta1DeidentifyOptions: Specifies additional +// options to apply to the base `profile`. +type GoogleCloudHealthcareV1beta1DeidentifyOptions struct { + // CharacterMaskConfig: Character mask config for `CharacterMaskField` + // `FieldMetadatas`. + CharacterMaskConfig *CharacterMaskConfig `json:"characterMaskConfig,omitempty"` + + // ContextualDeid: Configure contextual de-id. + ContextualDeid *ContextualDeidConfig `json:"contextualDeid,omitempty"` + + // CryptoHashConfig: Crypo hash config for `CharacterMaskField` + // `FieldMetadatas`. + CryptoHashConfig *CryptoHashConfig `json:"cryptoHashConfig,omitempty"` + + // DateShiftConfig: Date shifting config for `CharacterMaskField` + // `FieldMetadatas`. + DateShiftConfig *DateShiftConfig `json:"dateShiftConfig,omitempty"` + + // KeepExtensions: Configure keeping extensions by default. + KeepExtensions *KeepExtensionsConfig `json:"keepExtensions,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CharacterMaskConfig") + // 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. "CharacterMaskConfig") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudHealthcareV1beta1DeidentifyOptions) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudHealthcareV1beta1DeidentifyOptions + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudHealthcareV1beta1DicomBigQueryDestination: The BigQuery // table where the server writes output. type GoogleCloudHealthcareV1beta1DicomBigQueryDestination struct { @@ -4366,6 +4731,19 @@ func (s *ImageAnnotation) MarshalJSON() ([]byte, error) { // ImageConfig: Specifies how to handle de-identification of image // pixels. type ImageConfig struct { + // AdditionalInfoTypes: Additional InfoTypes to redact in the images in + // addition to those used by `text_redaction_mode`. Can only be used + // when `text_redaction_mode` is set to `REDACT_SENSITIVE_TEXT`, + // `REDACT_SENSITIVE_TEXT_CLEAN_DESCRIPTORS` or + // `TEXT_REDACTION_MODE_UNSPECIFIED`. + AdditionalInfoTypes []string `json:"additionalInfoTypes,omitempty"` + + // ExcludeInfoTypes: InfoTypes to skip redacting, overriding those used + // by `text_redaction_mode`. Can only be used when `text_redaction_mode` + // is set to `REDACT_SENSITIVE_TEXT` or + // `REDACT_SENSITIVE_TEXT_CLEAN_DESCRIPTORS`. + ExcludeInfoTypes []string `json:"excludeInfoTypes,omitempty"` + // TextRedactionMode: Determines how to redact text from image. // // Possible values: @@ -4377,9 +4755,19 @@ type ImageConfig struct { // InfoTypes](https://cloud.google.com/healthcare-api/docs/how-tos/dicom- // deidentify#default_dicom_infotypes). // "REDACT_NO_TEXT" - Do not redact text. + // "REDACT_SENSITIVE_TEXT_CLEAN_DESCRIPTORS" - This mode is like + // `REDACT_SENSITIVE_TEXT` with the addition of the [Clean Descriptors + // Option] + // (https://dicom.nema.org/medical/dicom/2018e/output/chtml/part15/sect_E.3.5.html) + // enabled: When cleaning text, the process attempts to transform + // phrases matching any of the tags marked for removal (action codes D, + // Z, X, and U) in the [Basic Profile] + // (https://dicom.nema.org/medical/dicom/2018e/output/chtml/part15/chapter_E.html). + // These contextual phrases are replaced with the token "[CTX]". This + // mode uses an additional InfoType during inspection. TextRedactionMode string `json:"textRedactionMode,omitempty"` - // ForceSendFields is a list of field names (e.g. "TextRedactionMode") + // ForceSendFields is a list of field names (e.g. "AdditionalInfoTypes") // 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 @@ -4387,7 +4775,7 @@ type ImageConfig struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "TextRedactionMode") to + // NullFields is a list of field names (e.g. "AdditionalInfoTypes") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the @@ -4725,6 +5113,22 @@ func (s *IngestMessageResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// KeepExtensionsConfig: The behaviour for handling FHIR extensions that +// aren't otherwise specified for de-identification. If provided, all +// extensions are preserved during de-identification by default. If +// unspecified, all extensions are removed during de-identification by +// default. +type KeepExtensionsConfig struct { +} + +// KeepField: Keep field unchanged. +type KeepField struct { +} + +// KeepTag: Keep tag unchanged. +type KeepTag struct { +} + // KmsWrappedCryptoKey: Include to use an existing data crypto key // wrapped by KMS. The wrapped key must be a 128-, 192-, or 256-bit key. // The key must grant the Cloud IAM permission @@ -5648,6 +6052,51 @@ func (s *OperationMetadata) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Options: Specifies additional options to apply to the base profile. +type Options struct { + // CleanDescriptors: Set Clean Descriptors Option. + CleanDescriptors *CleanDescriptorsOption `json:"cleanDescriptors,omitempty"` + + // CleanImage: Apply `Action.clean_image` to `PixelData` + // (http://dicom.nema.org/medical/dicom/2018e/output/chtml/part06/chapter_6.html) + // as configured. + CleanImage *ImageConfig `json:"cleanImage,omitempty"` + + // PrimaryIds: Set `Action` for `StudyInstanceUID`, `SeriesInstanceUID`, + // `SOPInstanceUID`, and `MediaStorageSOPInstanceUID` + // (http://dicom.nema.org/medical/dicom/2018e/output/chtml/part06/chapter_6.html). + // + // Possible values: + // "PRIMARY_IDS_OPTION_UNSPECIFIED" - No value provided. Default to + // the behavior specified by the base profile. + // "KEEP" - Keep primary IDs. + // "REGEN" - Regenerate primary IDs. + PrimaryIds string `json:"primaryIds,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CleanDescriptors") 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. "CleanDescriptors") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *Options) MarshalJSON() ([]byte, error) { + type NoMethod Options + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ParsedData: The content of an HL7v2 message in a structured format. type ParsedData struct { Segments []*Segment `json:"segments,omitempty"` @@ -5992,12 +6441,26 @@ func (s *QueryAccessibleDataResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// RecurseTag: Recursively apply DICOM de-id to tags nested in a +// sequence. Supported [Value Representation] +// (http://dicom.nema.org/medical/dicom/2018e/output/chtml/part05/sect_6.2.html#table_6.2-1): +// SQ +type RecurseTag struct { +} + // RedactConfig: Define how to redact sensitive values. Default // behaviour is erase. For example, "My name is Jane." becomes "My name // is ." type RedactConfig struct { } +// RegenUidTag: Replace UID with a new generated UID. Supported [Value +// Representation] +// (http://dicom.nema.org/medical/dicom/2018e/output/chtml/part05/sect_6.2.html#table_6.2-1): +// UI +type RegenUidTag struct { +} + // RejectConsentRequest: Rejects the latest revision of the specified // Consent by committing a new revision with `state` updated to // `REJECTED`. If the latest revision of the given Consent is in the @@ -6036,6 +6499,14 @@ func (s *RejectConsentRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// RemoveField: Remove field. +type RemoveField struct { +} + +// RemoveTag: Replace with empty tag. +type RemoveTag struct { +} + // ReplaceWithInfoTypeConfig: When using the INSPECT_AND_TRANSFORM // action, each match is replaced with the name of the info_type. For // example, "My name is Jane" becomes "My name is [PERSON_NAME]." The @@ -6043,6 +6514,10 @@ func (s *RejectConsentRequest) MarshalJSON() ([]byte, error) { type ReplaceWithInfoTypeConfig struct { } +// ResetTag: Reset tag to a placeholder value. +type ResetTag struct { +} + // ResourceAnnotation: Resource level annotation. type ResourceAnnotation struct { // Label: A description of the annotation record. @@ -6896,25 +7371,43 @@ func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { // TextConfig: Configures how to transform sensitive text `InfoTypes`. type TextConfig struct { + // AdditionalTransformations: Additional transformations to apply to the + // detected data, overriding `profile`. + AdditionalTransformations []*InfoTypeTransformation `json:"additionalTransformations,omitempty"` + + // ExcludeInfoTypes: InfoTypes to skip transforming, overriding + // `profile`. + ExcludeInfoTypes []string `json:"excludeInfoTypes,omitempty"` + + // ProfileType: Base profile type for text transformation. + // + // Possible values: + // "PROFILE_TYPE_UNSPECIFIED" - Same as BASIC. + // "EMPTY" - Empty profile which does not perform any transformations. + // "BASIC" - Basic profile applies: DATE -> DateShift Default -> + // ReplaceWithInfoType + ProfileType string `json:"profileType,omitempty"` + // Transformations: The transformations to apply to the detected data. // Deprecated. Use `additional_transformations` instead. Transformations []*InfoTypeTransformation `json:"transformations,omitempty"` - // ForceSendFields is a list of field names (e.g. "Transformations") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. + // "AdditionalTransformations") 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. "Transformations") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. + // "AdditionalTransformations") to include in API requests with the JSON + // null value. By default, fields with empty values are omitted from API + // requests. However, any field with an empty value appearing in + // NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. NullFields []string `json:"-"` } diff --git a/iap/v1/iap-api.json b/iap/v1/iap-api.json index c00e0a6a9e4..6cb66c5f182 100644 --- a/iap/v1/iap-api.json +++ b/iap/v1/iap-api.json @@ -652,7 +652,7 @@ } } }, - "revision": "20220829", + "revision": "20221028", "rootUrl": "https://iap.googleapis.com/", "schemas": { "AccessDeniedPageSettings": { @@ -1100,12 +1100,14 @@ "enum": [ "METHOD_UNSPECIFIED", "LOGIN", - "SECURE_KEY" + "SECURE_KEY", + "ENROLLED_SECOND_FACTORS" ], "enumDescriptions": [ "Reauthentication disabled.", "Prompts the user to log in again.", - "User must use their secure key 2nd factor device." + "User must use their secure key 2nd factor device.", + "User can use any enabled 2nd factor." ], "type": "string" }, @@ -1201,14 +1203,14 @@ "id": "TunnelDestGroup", "properties": { "cidrs": { - "description": "null List of CIDRs that this group applies to.", + "description": "Unordered list. List of CIDRs that this group applies to.", "items": { "type": "string" }, "type": "array" }, "fqdns": { - "description": "null List of FQDNs that this group applies to.", + "description": "Unordered list. List of FQDNs that this group applies to.", "items": { "type": "string" }, diff --git a/iap/v1/iap-gen.go b/iap/v1/iap-gen.go index 33e9b9ab4d7..a93e122e489 100644 --- a/iap/v1/iap-gen.go +++ b/iap/v1/iap-gen.go @@ -1242,6 +1242,7 @@ type ReauthSettings struct { // "METHOD_UNSPECIFIED" - Reauthentication disabled. // "LOGIN" - Prompts the user to log in again. // "SECURE_KEY" - User must use their secure key 2nd factor device. + // "ENROLLED_SECOND_FACTORS" - User can use any enabled 2nd factor. Method string `json:"method,omitempty"` // PolicyType: How IAP determines the effective policy in cases of @@ -1450,10 +1451,10 @@ func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { // TunnelDestGroup: A TunnelDestGroup. type TunnelDestGroup struct { - // Cidrs: null List of CIDRs that this group applies to. + // Cidrs: Unordered list. List of CIDRs that this group applies to. Cidrs []string `json:"cidrs,omitempty"` - // Fqdns: null List of FQDNs that this group applies to. + // Fqdns: Unordered list. List of FQDNs that this group applies to. Fqdns []string `json:"fqdns,omitempty"` // Name: Required. Immutable. Identifier for the TunnelDestGroup. Must diff --git a/integrations/v1alpha/integrations-api.json b/integrations/v1alpha/integrations-api.json index 009c3983695..bc09deef73e 100644 --- a/integrations/v1alpha/integrations-api.json +++ b/integrations/v1alpha/integrations-api.json @@ -937,7 +937,7 @@ ], "parameters": { "name": { - "description": "Required. The version to archive. Format: projects/{project}/integrations/{integration}/versions/{version}", + "description": "Required. The version to archive. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", "required": true, @@ -970,7 +970,7 @@ "type": "boolean" }, "parent": { - "description": "Required. The parent resource where this version will be created. Format: projects/{project}/integrations/{integration}", + "description": "Required. The parent resource where this version will be created. Format: projects/{project}/locations/{location}/integrations/{integration}", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", "required": true, @@ -998,7 +998,7 @@ ], "parameters": { "name": { - "description": "Required. The version to deactivate. Format: projects/{project}/integrations/{integration}/versions/{version}", + "description": "Required. The version to deactivate. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", "required": true, @@ -1026,7 +1026,7 @@ ], "parameters": { "name": { - "description": "Required. The version to retrieve. Format: projects/{project}/integrations/{integration}/versions/{version}", + "description": "Required. The version to retrieve. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", "required": true, @@ -1078,7 +1078,7 @@ "type": "string" }, "parent": { - "description": "Required. The parent resource where this version will be created. Format: projects/{project}/integrations/{integration} Specifically, when parent equals: 1. projects//locations//integrations/, Meaning: \"List versions (with filter) for a particular integration\". 2. projects//locations//integrations/- Meaning: \"List versions (with filter) for a client within a particular region\". 3. projects//locations/-/integrations/- Meaning: \"List versions (with filter) for a client\".", + "description": "Required. The parent resource where this version will be created. Format: projects/{project}/locations/{location}/integrations/{integration} Specifically, when parent equals: 1. projects//locations//integrations/, Meaning: \"List versions (with filter) for a particular integration\". 2. projects//locations//integrations/- Meaning: \"List versions (with filter) for a client within a particular region\". 3. projects//locations/-/integrations/- Meaning: \"List versions (with filter) for a client\".", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", "required": true, @@ -1137,7 +1137,7 @@ ], "parameters": { "name": { - "description": "Required. The version to publish. Format: projects/{project}/integrations/{integration}/versions/{version}", + "description": "Required. The version to publish. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", "required": true, @@ -1165,7 +1165,7 @@ ], "parameters": { "integrationVersion": { - "description": "Required. The version to take over edit lock. Format: projects/{project}/integrations/{integration}/versions/{version}", + "description": "Required. The version to take over edit lock. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", "required": true, @@ -1193,7 +1193,7 @@ ], "parameters": { "name": { - "description": "Required. The version to validate. Format: projects/{project}/integrations/{integration}/versions/{version}", + "description": "Required. The version to validate. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", "required": true, @@ -1640,7 +1640,7 @@ ], "parameters": { "name": { - "description": "Required. The bundle to archive. Format: projects/{project}/integrations/{integration}", + "description": "Required. The bundle to archive. Format: projects/{project}/locations/{location}/integrations/{integration}", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", "required": true, @@ -2144,7 +2144,7 @@ ], "parameters": { "name": { - "description": "Required. The version to archive. Format: projects/{project}/integrations/{integration}/versions/{version}", + "description": "Required. The version to archive. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", "required": true, @@ -2177,7 +2177,7 @@ "type": "boolean" }, "parent": { - "description": "Required. The parent resource where this version will be created. Format: projects/{project}/integrations/{integration}", + "description": "Required. The parent resource where this version will be created. Format: projects/{project}/locations/{location}/integrations/{integration}", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", "required": true, @@ -2205,7 +2205,7 @@ ], "parameters": { "name": { - "description": "Required. The version to deactivate. Format: projects/{project}/integrations/{integration}/versions/{version}", + "description": "Required. The version to deactivate. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", "required": true, @@ -2248,7 +2248,7 @@ "type": "string" }, "name": { - "description": "Required. The version to download. Format: projects/{project}/integrations/{integration}/versions/{version}", + "description": "Required. The version to download. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", "required": true, @@ -2273,7 +2273,7 @@ ], "parameters": { "name": { - "description": "Required. The version to retrieve. Format: projects/{project}/integrations/{integration}/versions/{version}", + "description": "Required. The version to retrieve. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", "required": true, @@ -2350,7 +2350,7 @@ "type": "string" }, "parent": { - "description": "Required. The parent resource where this version will be created. Format: projects/{project}/integrations/{integration} Specifically, when parent equals: 1. projects//locations//integrations/, Meaning: \"List versions (with filter) for a particular integration\". 2. projects//locations//integrations/- Meaning: \"List versions (with filter) for a client within a particular region\". 3. projects//locations/-/integrations/- Meaning: \"List versions (with filter) for a client\".", + "description": "Required. The parent resource where this version will be created. Format: projects/{project}/locations/{location}/integrations/{integration} Specifically, when parent equals: 1. projects//locations//integrations/, Meaning: \"List versions (with filter) for a particular integration\". 2. projects//locations//integrations/- Meaning: \"List versions (with filter) for a client within a particular region\". 3. projects//locations/-/integrations/- Meaning: \"List versions (with filter) for a client\".", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", "required": true, @@ -2409,7 +2409,7 @@ ], "parameters": { "name": { - "description": "Required. The version to publish. Format: projects/{project}/integrations/{integration}/versions/{version}", + "description": "Required. The version to publish. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", "required": true, @@ -2437,7 +2437,7 @@ ], "parameters": { "integrationVersion": { - "description": "Required. The version to take over edit lock. Format: projects/{project}/integrations/{integration}/versions/{version}", + "description": "Required. The version to take over edit lock. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", "required": true, @@ -2493,7 +2493,7 @@ ], "parameters": { "parent": { - "description": "Required. The version to upload. Format: projects/{project}/integrations/{integration}", + "description": "Required. The version to upload. Format: projects/{project}/locations/{location}/integrations/{integration}", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", "required": true, @@ -2521,7 +2521,7 @@ ], "parameters": { "name": { - "description": "Required. The version to validate. Format: projects/{project}/integrations/{integration}/versions/{version}", + "description": "Required. The version to validate. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", "required": true, @@ -3308,7 +3308,7 @@ } } }, - "revision": "20221019", + "revision": "20221025", "rootUrl": "https://integrations.googleapis.com/", "schemas": { "CrmlogErrorCode": { diff --git a/integrations/v1alpha/integrations-gen.go b/integrations/v1alpha/integrations-gen.go index 9404bf2e975..cae2bde77c6 100644 --- a/integrations/v1alpha/integrations-gen.go +++ b/integrations/v1alpha/integrations-gen.go @@ -15412,7 +15412,8 @@ type ProjectsLocationsIntegrationsVersionsArchiveCall struct { // there is no unarchive mechanism. // // - name: The version to archive. Format: -// projects/{project}/integrations/{integration}/versions/{version}. +// projects/{project}/locations/{location}/integrations/{integration}/v +// ersions/{version}. func (r *ProjectsLocationsIntegrationsVersionsService) Archive(name string, googlecloudintegrationsv1alphaarchiveintegrationversionrequest *GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionRequest) *ProjectsLocationsIntegrationsVersionsArchiveCall { c := &ProjectsLocationsIntegrationsVersionsArchiveCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -15523,7 +15524,7 @@ func (c *ProjectsLocationsIntegrationsVersionsArchiveCall) Do(opts ...googleapi. // ], // "parameters": { // "name": { - // "description": "Required. The version to archive. Format: projects/{project}/integrations/{integration}/versions/{version}", + // "description": "Required. The version to archive. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", // "required": true, @@ -15559,7 +15560,8 @@ type ProjectsLocationsIntegrationsVersionsCreateCall struct { // project. // // - parent: The parent resource where this version will be created. -// Format: projects/{project}/integrations/{integration}. +// Format: +// projects/{project}/locations/{location}/integrations/{integration}. func (r *ProjectsLocationsIntegrationsVersionsService) Create(parent string, googlecloudintegrationsv1alphaintegrationversion *GoogleCloudIntegrationsV1alphaIntegrationVersion) *ProjectsLocationsIntegrationsVersionsCreateCall { c := &ProjectsLocationsIntegrationsVersionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -15685,7 +15687,7 @@ func (c *ProjectsLocationsIntegrationsVersionsCreateCall) Do(opts ...googleapi.C // "type": "boolean" // }, // "parent": { - // "description": "Required. The parent resource where this version will be created. Format: projects/{project}/integrations/{integration}", + // "description": "Required. The parent resource where this version will be created. Format: projects/{project}/locations/{location}/integrations/{integration}", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", // "required": true, @@ -15724,7 +15726,8 @@ type ProjectsLocationsIntegrationsVersionsDeactivateCall struct { // added include action, action_by, action_timestamp. // // - name: The version to deactivate. Format: -// projects/{project}/integrations/{integration}/versions/{version}. +// projects/{project}/locations/{location}/integrations/{integration}/v +// ersions/{version}. func (r *ProjectsLocationsIntegrationsVersionsService) Deactivate(name string, googlecloudintegrationsv1alphadeactivateintegrationversionrequest *GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionRequest) *ProjectsLocationsIntegrationsVersionsDeactivateCall { c := &ProjectsLocationsIntegrationsVersionsDeactivateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -15835,7 +15838,7 @@ func (c *ProjectsLocationsIntegrationsVersionsDeactivateCall) Do(opts ...googlea // ], // "parameters": { // "name": { - // "description": "Required. The version to deactivate. Format: projects/{project}/integrations/{integration}/versions/{version}", + // "description": "Required. The version to deactivate. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", // "required": true, @@ -15870,7 +15873,8 @@ type ProjectsLocationsIntegrationsVersionsGetCall struct { // Get: Get a integration in the specified project. // // - name: The version to retrieve. Format: -// projects/{project}/integrations/{integration}/versions/{version}. +// projects/{project}/locations/{location}/integrations/{integration}/v +// ersions/{version}. func (r *ProjectsLocationsIntegrationsVersionsService) Get(name string) *ProjectsLocationsIntegrationsVersionsGetCall { c := &ProjectsLocationsIntegrationsVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -15987,7 +15991,7 @@ func (c *ProjectsLocationsIntegrationsVersionsGetCall) Do(opts ...googleapi.Call // ], // "parameters": { // "name": { - // "description": "Required. The version to retrieve. Format: projects/{project}/integrations/{integration}/versions/{version}", + // "description": "Required. The version to retrieve. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", // "required": true, @@ -16020,9 +16024,11 @@ type ProjectsLocationsIntegrationsVersionsListCall struct { // project. // // - parent: The parent resource where this version will be created. -// Format: projects/{project}/integrations/{integration} Specifically, -// when parent equals: 1. projects//locations//integrations/, Meaning: -// "List versions (with filter) for a particular integration". 2. +// Format: +// projects/{project}/locations/{location}/integrations/{integration} +// Specifically, when parent equals: 1. +// projects//locations//integrations/, Meaning: "List versions (with +// filter) for a particular integration". 2. // projects//locations//integrations/- Meaning: "List versions (with // filter) for a client within a particular region". 3. // projects//locations/-/integrations/- Meaning: "List versions (with @@ -16219,7 +16225,7 @@ func (c *ProjectsLocationsIntegrationsVersionsListCall) Do(opts ...googleapi.Cal // "type": "string" // }, // "parent": { - // "description": "Required. The parent resource where this version will be created. Format: projects/{project}/integrations/{integration} Specifically, when parent equals: 1. projects//locations//integrations/, Meaning: \"List versions (with filter) for a particular integration\". 2. projects//locations//integrations/- Meaning: \"List versions (with filter) for a client within a particular region\". 3. projects//locations/-/integrations/- Meaning: \"List versions (with filter) for a client\".", + // "description": "Required. The parent resource where this version will be created. Format: projects/{project}/locations/{location}/integrations/{integration} Specifically, when parent equals: 1. projects//locations//integrations/, Meaning: \"List versions (with filter) for a particular integration\". 2. projects//locations//integrations/- Meaning: \"List versions (with filter) for a client within a particular region\". 3. projects//locations/-/integrations/- Meaning: \"List versions (with filter) for a client\".", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", // "required": true, @@ -16437,7 +16443,8 @@ type ProjectsLocationsIntegrationsVersionsPublishCall struct { // released. // // - name: The version to publish. Format: -// projects/{project}/integrations/{integration}/versions/{version}. +// projects/{project}/locations/{location}/integrations/{integration}/v +// ersions/{version}. func (r *ProjectsLocationsIntegrationsVersionsService) Publish(name string, googlecloudintegrationsv1alphapublishintegrationversionrequest *GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest) *ProjectsLocationsIntegrationsVersionsPublishCall { c := &ProjectsLocationsIntegrationsVersionsPublishCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -16548,7 +16555,7 @@ func (c *ProjectsLocationsIntegrationsVersionsPublishCall) Do(opts ...googleapi. // ], // "parameters": { // "name": { - // "description": "Required. The version to publish. Format: projects/{project}/integrations/{integration}/versions/{version}", + // "description": "Required. The version to publish. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", // "required": true, @@ -16594,7 +16601,8 @@ type ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall struct { // updated include last_modified_timestamp, last_modified_by. // // - integrationVersion: The version to take over edit lock. Format: -// projects/{project}/integrations/{integration}/versions/{version}. +// projects/{project}/locations/{location}/integrations/{integration}/v +// ersions/{version}. func (r *ProjectsLocationsIntegrationsVersionsService) TakeoverEditLock(integrationVersion string, googlecloudintegrationsv1alphatakeovereditlockrequest *GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest) *ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall { c := &ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.integrationVersion = integrationVersion @@ -16705,7 +16713,7 @@ func (c *ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall) Do(opts ...g // ], // "parameters": { // "integrationVersion": { - // "description": "Required. The version to take over edit lock. Format: projects/{project}/integrations/{integration}/versions/{version}", + // "description": "Required. The version to take over edit lock. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", // "required": true, @@ -16743,7 +16751,8 @@ type ProjectsLocationsIntegrationsVersionsValidateCall struct { // response is returned. // // - name: The version to validate. Format: -// projects/{project}/integrations/{integration}/versions/{version}. +// projects/{project}/locations/{location}/integrations/{integration}/v +// ersions/{version}. func (r *ProjectsLocationsIntegrationsVersionsService) Validate(name string, googlecloudintegrationsv1alphavalidateintegrationversionrequest *GoogleCloudIntegrationsV1alphaValidateIntegrationVersionRequest) *ProjectsLocationsIntegrationsVersionsValidateCall { c := &ProjectsLocationsIntegrationsVersionsValidateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -16854,7 +16863,7 @@ func (c *ProjectsLocationsIntegrationsVersionsValidateCall) Do(opts ...googleapi // ], // "parameters": { // "name": { - // "description": "Required. The version to validate. Format: projects/{project}/integrations/{integration}/versions/{version}", + // "description": "Required. The version to validate. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", // "required": true, @@ -18950,7 +18959,7 @@ type ProjectsLocationsProductsIntegrationsArchiveBundleCall struct { // MOVED TO A SEPARATE SERVICE. Soft-deletes the bundle. // // - name: The bundle to archive. Format: -// projects/{project}/integrations/{integration}. +// projects/{project}/locations/{location}/integrations/{integration}. func (r *ProjectsLocationsProductsIntegrationsService) ArchiveBundle(name string, googlecloudintegrationsv1alphaarchivebundlerequest *GoogleCloudIntegrationsV1alphaArchiveBundleRequest) *ProjectsLocationsProductsIntegrationsArchiveBundleCall { c := &ProjectsLocationsProductsIntegrationsArchiveBundleCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -19060,7 +19069,7 @@ func (c *ProjectsLocationsProductsIntegrationsArchiveBundleCall) Do(opts ...goog // ], // "parameters": { // "name": { - // "description": "Required. The bundle to archive. Format: projects/{project}/integrations/{integration}", + // "description": "Required. The bundle to archive. Format: projects/{project}/locations/{location}/integrations/{integration}", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", // "required": true, @@ -21233,7 +21242,8 @@ type ProjectsLocationsProductsIntegrationsVersionsArchiveCall struct { // there is no unarchive mechanism. // // - name: The version to archive. Format: -// projects/{project}/integrations/{integration}/versions/{version}. +// projects/{project}/locations/{location}/integrations/{integration}/v +// ersions/{version}. func (r *ProjectsLocationsProductsIntegrationsVersionsService) Archive(name string, googlecloudintegrationsv1alphaarchiveintegrationversionrequest *GoogleCloudIntegrationsV1alphaArchiveIntegrationVersionRequest) *ProjectsLocationsProductsIntegrationsVersionsArchiveCall { c := &ProjectsLocationsProductsIntegrationsVersionsArchiveCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -21344,7 +21354,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsArchiveCall) Do(opts ...go // ], // "parameters": { // "name": { - // "description": "Required. The version to archive. Format: projects/{project}/integrations/{integration}/versions/{version}", + // "description": "Required. The version to archive. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", // "required": true, @@ -21380,7 +21390,8 @@ type ProjectsLocationsProductsIntegrationsVersionsCreateCall struct { // project. // // - parent: The parent resource where this version will be created. -// Format: projects/{project}/integrations/{integration}. +// Format: +// projects/{project}/locations/{location}/integrations/{integration}. func (r *ProjectsLocationsProductsIntegrationsVersionsService) Create(parent string, googlecloudintegrationsv1alphaintegrationversion *GoogleCloudIntegrationsV1alphaIntegrationVersion) *ProjectsLocationsProductsIntegrationsVersionsCreateCall { c := &ProjectsLocationsProductsIntegrationsVersionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -21506,7 +21517,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsCreateCall) Do(opts ...goo // "type": "boolean" // }, // "parent": { - // "description": "Required. The parent resource where this version will be created. Format: projects/{project}/integrations/{integration}", + // "description": "Required. The parent resource where this version will be created. Format: projects/{project}/locations/{location}/integrations/{integration}", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", // "required": true, @@ -21545,7 +21556,8 @@ type ProjectsLocationsProductsIntegrationsVersionsDeactivateCall struct { // added include action, action_by, action_timestamp. // // - name: The version to deactivate. Format: -// projects/{project}/integrations/{integration}/versions/{version}. +// projects/{project}/locations/{location}/integrations/{integration}/v +// ersions/{version}. func (r *ProjectsLocationsProductsIntegrationsVersionsService) Deactivate(name string, googlecloudintegrationsv1alphadeactivateintegrationversionrequest *GoogleCloudIntegrationsV1alphaDeactivateIntegrationVersionRequest) *ProjectsLocationsProductsIntegrationsVersionsDeactivateCall { c := &ProjectsLocationsProductsIntegrationsVersionsDeactivateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -21656,7 +21668,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsDeactivateCall) Do(opts .. // ], // "parameters": { // "name": { - // "description": "Required. The version to deactivate. Format: projects/{project}/integrations/{integration}/versions/{version}", + // "description": "Required. The version to deactivate. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", // "required": true, @@ -21693,7 +21705,8 @@ type ProjectsLocationsProductsIntegrationsVersionsDownloadCall struct { // response as a string. // // - name: The version to download. Format: -// projects/{project}/integrations/{integration}/versions/{version}. +// projects/{project}/locations/{location}/integrations/{integration}/v +// ersions/{version}. func (r *ProjectsLocationsProductsIntegrationsVersionsService) Download(name string) *ProjectsLocationsProductsIntegrationsVersionsDownloadCall { c := &ProjectsLocationsProductsIntegrationsVersionsDownloadCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -21839,7 +21852,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsDownloadCall) Do(opts ...g // "type": "string" // }, // "name": { - // "description": "Required. The version to download. Format: projects/{project}/integrations/{integration}/versions/{version}", + // "description": "Required. The version to download. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", // "required": true, @@ -21871,7 +21884,8 @@ type ProjectsLocationsProductsIntegrationsVersionsGetCall struct { // Get: Get a integration in the specified project. // // - name: The version to retrieve. Format: -// projects/{project}/integrations/{integration}/versions/{version}. +// projects/{project}/locations/{location}/integrations/{integration}/v +// ersions/{version}. func (r *ProjectsLocationsProductsIntegrationsVersionsService) Get(name string) *ProjectsLocationsProductsIntegrationsVersionsGetCall { c := &ProjectsLocationsProductsIntegrationsVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -21988,7 +22002,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsGetCall) Do(opts ...google // ], // "parameters": { // "name": { - // "description": "Required. The version to retrieve. Format: projects/{project}/integrations/{integration}/versions/{version}", + // "description": "Required. The version to retrieve. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", // "required": true, @@ -22172,9 +22186,11 @@ type ProjectsLocationsProductsIntegrationsVersionsListCall struct { // project. // // - parent: The parent resource where this version will be created. -// Format: projects/{project}/integrations/{integration} Specifically, -// when parent equals: 1. projects//locations//integrations/, Meaning: -// "List versions (with filter) for a particular integration". 2. +// Format: +// projects/{project}/locations/{location}/integrations/{integration} +// Specifically, when parent equals: 1. +// projects//locations//integrations/, Meaning: "List versions (with +// filter) for a particular integration". 2. // projects//locations//integrations/- Meaning: "List versions (with // filter) for a client within a particular region". 3. // projects//locations/-/integrations/- Meaning: "List versions (with @@ -22371,7 +22387,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsListCall) Do(opts ...googl // "type": "string" // }, // "parent": { - // "description": "Required. The parent resource where this version will be created. Format: projects/{project}/integrations/{integration} Specifically, when parent equals: 1. projects//locations//integrations/, Meaning: \"List versions (with filter) for a particular integration\". 2. projects//locations//integrations/- Meaning: \"List versions (with filter) for a client within a particular region\". 3. projects//locations/-/integrations/- Meaning: \"List versions (with filter) for a client\".", + // "description": "Required. The parent resource where this version will be created. Format: projects/{project}/locations/{location}/integrations/{integration} Specifically, when parent equals: 1. projects//locations//integrations/, Meaning: \"List versions (with filter) for a particular integration\". 2. projects//locations//integrations/- Meaning: \"List versions (with filter) for a client within a particular region\". 3. projects//locations/-/integrations/- Meaning: \"List versions (with filter) for a client\".", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", // "required": true, @@ -22589,7 +22605,8 @@ type ProjectsLocationsProductsIntegrationsVersionsPublishCall struct { // released. // // - name: The version to publish. Format: -// projects/{project}/integrations/{integration}/versions/{version}. +// projects/{project}/locations/{location}/integrations/{integration}/v +// ersions/{version}. func (r *ProjectsLocationsProductsIntegrationsVersionsService) Publish(name string, googlecloudintegrationsv1alphapublishintegrationversionrequest *GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest) *ProjectsLocationsProductsIntegrationsVersionsPublishCall { c := &ProjectsLocationsProductsIntegrationsVersionsPublishCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -22700,7 +22717,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsPublishCall) Do(opts ...go // ], // "parameters": { // "name": { - // "description": "Required. The version to publish. Format: projects/{project}/integrations/{integration}/versions/{version}", + // "description": "Required. The version to publish. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", // "required": true, @@ -22746,7 +22763,8 @@ type ProjectsLocationsProductsIntegrationsVersionsTakeoverEditLockCall struct { // updated include last_modified_timestamp, last_modified_by. // // - integrationVersion: The version to take over edit lock. Format: -// projects/{project}/integrations/{integration}/versions/{version}. +// projects/{project}/locations/{location}/integrations/{integration}/v +// ersions/{version}. func (r *ProjectsLocationsProductsIntegrationsVersionsService) TakeoverEditLock(integrationVersion string, googlecloudintegrationsv1alphatakeovereditlockrequest *GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest) *ProjectsLocationsProductsIntegrationsVersionsTakeoverEditLockCall { c := &ProjectsLocationsProductsIntegrationsVersionsTakeoverEditLockCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.integrationVersion = integrationVersion @@ -22857,7 +22875,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsTakeoverEditLockCall) Do(o // ], // "parameters": { // "integrationVersion": { - // "description": "Required. The version to take over edit lock. Format: projects/{project}/integrations/{integration}/versions/{version}", + // "description": "Required. The version to take over edit lock. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", // "required": true, @@ -23041,7 +23059,7 @@ type ProjectsLocationsProductsIntegrationsVersionsUploadCall struct { // content. // // - parent: The version to upload. Format: -// projects/{project}/integrations/{integration}. +// projects/{project}/locations/{location}/integrations/{integration}. func (r *ProjectsLocationsProductsIntegrationsVersionsService) Upload(parent string, googlecloudintegrationsv1alphauploadintegrationversionrequest *GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest) *ProjectsLocationsProductsIntegrationsVersionsUploadCall { c := &ProjectsLocationsProductsIntegrationsVersionsUploadCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -23152,7 +23170,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsUploadCall) Do(opts ...goo // ], // "parameters": { // "parent": { - // "description": "Required. The version to upload. Format: projects/{project}/integrations/{integration}", + // "description": "Required. The version to upload. Format: projects/{project}/locations/{location}/integrations/{integration}", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", // "required": true, @@ -23190,7 +23208,8 @@ type ProjectsLocationsProductsIntegrationsVersionsValidateCall struct { // response is returned. // // - name: The version to validate. Format: -// projects/{project}/integrations/{integration}/versions/{version}. +// projects/{project}/locations/{location}/integrations/{integration}/v +// ersions/{version}. func (r *ProjectsLocationsProductsIntegrationsVersionsService) Validate(name string, googlecloudintegrationsv1alphavalidateintegrationversionrequest *GoogleCloudIntegrationsV1alphaValidateIntegrationVersionRequest) *ProjectsLocationsProductsIntegrationsVersionsValidateCall { c := &ProjectsLocationsProductsIntegrationsVersionsValidateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -23301,7 +23320,7 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsValidateCall) Do(opts ...g // ], // "parameters": { // "name": { - // "description": "Required. The version to validate. Format: projects/{project}/integrations/{integration}/versions/{version}", + // "description": "Required. The version to validate. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", // "required": true, diff --git a/managedidentities/v1beta1/managedidentities-api.json b/managedidentities/v1beta1/managedidentities-api.json index 3a74912b570..62a1e2a6e69 100644 --- a/managedidentities/v1beta1/managedidentities-api.json +++ b/managedidentities/v1beta1/managedidentities-api.json @@ -351,6 +351,34 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "domainJoinMachine": { + "description": "DomainJoinMachine API joins a Compute Engine VM to the domain", + "flatPath": "v1beta1/projects/{projectsId}/locations/global/domains/{domainsId}:domainJoinMachine", + "httpMethod": "POST", + "id": "managedidentities.projects.locations.global.domains.domainJoinMachine", + "parameterOrder": [ + "domain" + ], + "parameters": { + "domain": { + "description": "Required. The domain resource name using the form: projects/{project_id}/locations/global/domains/{domain_name}", + "location": "path", + "pattern": "^projects/[^/]+/locations/global/domains/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+domain}:domainJoinMachine", + "request": { + "$ref": "DomainJoinMachineRequest" + }, + "response": { + "$ref": "DomainJoinMachineResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "enableMigration": { "description": "Enable Domain Migration", "flatPath": "v1beta1/projects/{projectsId}/locations/global/domains/{domainsId}:enableMigration", @@ -1487,7 +1515,7 @@ } } }, - "revision": "20220826", + "revision": "20221027", "rootUrl": "https://managedidentities.googleapis.com/", "schemas": { "AttachTrustRequest": { @@ -1846,6 +1874,32 @@ }, "type": "object" }, + "DomainJoinMachineRequest": { + "description": "DomainJoinMachineRequest is the request message for DomainJoinMachine method", + "id": "DomainJoinMachineRequest", + "properties": { + "ouName": { + "description": "Optional. OU name to which the VM needs to be domain joined. If the field is not provided, the VM is joined to the default OU which is created. The default OU for the domain join api is created as GCE Instances under the Cloud OU. Example - OU=GCE Instances,OU=Cloud,DC=ad,DC=test,DC=com If the field is provided, then the custom OU is searched for under GCE Instances OU. Example - if ou_name=test_ou then the VM is domain joined to the following OU: OU=test_ou,OU=GCE Instances,OU=Cloud,DC=ad,DC=test,DC=com if present. If OU is not present under GCE Instances, then error is returned.", + "type": "string" + }, + "vmIdToken": { + "description": "Required. Full instance id token of compute engine VM to verify instance identity. More about this: https://cloud.google.com/compute/docs/instances/verifying-instance-identity#request_signature", + "type": "string" + } + }, + "type": "object" + }, + "DomainJoinMachineResponse": { + "description": "DomainJoinMachineResponse is the response message for DomainJoinMachine method", + "id": "DomainJoinMachineResponse", + "properties": { + "domainJoinBlob": { + "description": "The response is the offline domain join blob that is returned after running the djoin command. To correctly use the response of the API, please refer to the sample usage.", + "type": "string" + } + }, + "type": "object" + }, "Empty": { "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", diff --git a/managedidentities/v1beta1/managedidentities-gen.go b/managedidentities/v1beta1/managedidentities-gen.go index f9828545eb6..ab1c693a993 100644 --- a/managedidentities/v1beta1/managedidentities-gen.go +++ b/managedidentities/v1beta1/managedidentities-gen.go @@ -759,6 +759,84 @@ func (s *Domain) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// DomainJoinMachineRequest: DomainJoinMachineRequest is the request +// message for DomainJoinMachine method +type DomainJoinMachineRequest struct { + // OuName: Optional. OU name to which the VM needs to be domain joined. + // If the field is not provided, the VM is joined to the default OU + // which is created. The default OU for the domain join api is created + // as GCE Instances under the Cloud OU. Example - OU=GCE + // Instances,OU=Cloud,DC=ad,DC=test,DC=com If the field is provided, + // then the custom OU is searched for under GCE Instances OU. Example - + // if ou_name=test_ou then the VM is domain joined to the following OU: + // OU=test_ou,OU=GCE Instances,OU=Cloud,DC=ad,DC=test,DC=com if present. + // If OU is not present under GCE Instances, then error is returned. + OuName string `json:"ouName,omitempty"` + + // VmIdToken: Required. Full instance id token of compute engine VM to + // verify instance identity. More about this: + // https://cloud.google.com/compute/docs/instances/verifying-instance-identity#request_signature + VmIdToken string `json:"vmIdToken,omitempty"` + + // ForceSendFields is a list of field names (e.g. "OuName") 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. "OuName") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *DomainJoinMachineRequest) MarshalJSON() ([]byte, error) { + type NoMethod DomainJoinMachineRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// DomainJoinMachineResponse: DomainJoinMachineResponse is the response +// message for DomainJoinMachine method +type DomainJoinMachineResponse struct { + // DomainJoinBlob: The response is the offline domain join blob that is + // returned after running the djoin command. To correctly use the + // response of the API, please refer to the sample usage. + DomainJoinBlob string `json:"domainJoinBlob,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "DomainJoinBlob") 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. "DomainJoinBlob") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *DomainJoinMachineResponse) MarshalJSON() ([]byte, error) { + type NoMethod DomainJoinMachineResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Empty: A generic empty message that you can re-use to avoid defining // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For @@ -4126,6 +4204,150 @@ func (c *ProjectsLocationsGlobalDomainsDisableMigrationCall) Do(opts ...googleap } +// method id "managedidentities.projects.locations.global.domains.domainJoinMachine": + +type ProjectsLocationsGlobalDomainsDomainJoinMachineCall struct { + s *Service + domain string + domainjoinmachinerequest *DomainJoinMachineRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// DomainJoinMachine: DomainJoinMachine API joins a Compute Engine VM to +// the domain +// +// - domain: The domain resource name using the form: +// projects/{project_id}/locations/global/domains/{domain_name}. +func (r *ProjectsLocationsGlobalDomainsService) DomainJoinMachine(domain string, domainjoinmachinerequest *DomainJoinMachineRequest) *ProjectsLocationsGlobalDomainsDomainJoinMachineCall { + c := &ProjectsLocationsGlobalDomainsDomainJoinMachineCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.domain = domain + c.domainjoinmachinerequest = domainjoinmachinerequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsGlobalDomainsDomainJoinMachineCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalDomainsDomainJoinMachineCall { + 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 *ProjectsLocationsGlobalDomainsDomainJoinMachineCall) Context(ctx context.Context) *ProjectsLocationsGlobalDomainsDomainJoinMachineCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsGlobalDomainsDomainJoinMachineCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGlobalDomainsDomainJoinMachineCall) 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.domainjoinmachinerequest) + if err != nil { + return 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/{+domain}:domainJoinMachine") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "domain": c.domain, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "managedidentities.projects.locations.global.domains.domainJoinMachine" call. +// Exactly one of *DomainJoinMachineResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *DomainJoinMachineResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsGlobalDomainsDomainJoinMachineCall) Do(opts ...googleapi.CallOption) (*DomainJoinMachineResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &DomainJoinMachineResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "DomainJoinMachine API joins a Compute Engine VM to the domain", + // "flatPath": "v1beta1/projects/{projectsId}/locations/global/domains/{domainsId}:domainJoinMachine", + // "httpMethod": "POST", + // "id": "managedidentities.projects.locations.global.domains.domainJoinMachine", + // "parameterOrder": [ + // "domain" + // ], + // "parameters": { + // "domain": { + // "description": "Required. The domain resource name using the form: projects/{project_id}/locations/global/domains/{domain_name}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/global/domains/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+domain}:domainJoinMachine", + // "request": { + // "$ref": "DomainJoinMachineRequest" + // }, + // "response": { + // "$ref": "DomainJoinMachineResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "managedidentities.projects.locations.global.domains.enableMigration": type ProjectsLocationsGlobalDomainsEnableMigrationCall struct { diff --git a/monitoring/v1/monitoring-api.json b/monitoring/v1/monitoring-api.json index 4f695011761..c2b4fd7b62d 100644 --- a/monitoring/v1/monitoring-api.json +++ b/monitoring/v1/monitoring-api.json @@ -769,7 +769,7 @@ } } }, - "revision": "20220930", + "revision": "20221024", "rootUrl": "https://monitoring.googleapis.com/", "schemas": { "Aggregation": { @@ -1837,7 +1837,15 @@ "TableDisplayOptions": { "description": "Table display options that can be reused.", "id": "TableDisplayOptions", - "properties": {}, + "properties": { + "shownColumns": { + "description": "Optional. This field is unused and has been replaced by TimeSeriesTable.column_settings", + "items": { + "type": "string" + }, + "type": "array" + } + }, "type": "object" }, "Text": { diff --git a/monitoring/v1/monitoring-gen.go b/monitoring/v1/monitoring-gen.go index 296d0aa305f..a8fef2cc627 100644 --- a/monitoring/v1/monitoring-gen.go +++ b/monitoring/v1/monitoring-gen.go @@ -2276,6 +2276,31 @@ func (s *TableDataSet) MarshalJSON() ([]byte, error) { // TableDisplayOptions: Table display options that can be reused. type TableDisplayOptions struct { + // ShownColumns: Optional. This field is unused and has been replaced by + // TimeSeriesTable.column_settings + ShownColumns []string `json:"shownColumns,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ShownColumns") 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. "ShownColumns") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TableDisplayOptions) MarshalJSON() ([]byte, error) { + type NoMethod TableDisplayOptions + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // Text: A widget that displays textual content. diff --git a/paymentsresellersubscription/v1/paymentsresellersubscription-api.json b/paymentsresellersubscription/v1/paymentsresellersubscription-api.json index 163c065e0c0..45db4bb3273 100644 --- a/paymentsresellersubscription/v1/paymentsresellersubscription-api.json +++ b/paymentsresellersubscription/v1/paymentsresellersubscription-api.json @@ -396,7 +396,7 @@ } } }, - "revision": "20221014", + "revision": "20221031", "rootUrl": "https://paymentsresellersubscription.googleapis.com/", "schemas": { "GoogleCloudPaymentsResellerSubscriptionV1Amount": { @@ -996,7 +996,7 @@ "type": "object" }, "GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem": { - "description": "Individual line item definition of a subscription. Next id: 8", + "description": "Individual line item definition of a subscription. Next id: 9", "id": "GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem", "properties": { "description": { diff --git a/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go b/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go index fb091e42973..e8a568e8d22 100644 --- a/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go +++ b/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go @@ -1122,7 +1122,7 @@ func (s *GoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetail } // GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem: -// Individual line item definition of a subscription. Next id: 8 +// Individual line item definition of a subscription. Next id: 9 type GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem struct { // Description: Output only. Description of this line item. Description string `json:"description,omitempty"` diff --git a/playintegrity/v1/playintegrity-api.json b/playintegrity/v1/playintegrity-api.json index 46d9aad9dd7..8198b75ddca 100644 --- a/playintegrity/v1/playintegrity-api.json +++ b/playintegrity/v1/playintegrity-api.json @@ -138,7 +138,7 @@ } } }, - "revision": "20221013", + "revision": "20221031", "rootUrl": "https://playintegrity.googleapis.com/", "schemas": { "AccountActivity": { @@ -176,10 +176,6 @@ "$ref": "AccountActivity", "description": "Details about the account activity for the user in the scope." }, - "accountRiskVerdict": { - "$ref": "AccountRiskVerdict", - "description": "Details about the account risk for the user in the scope. This feature is available only to selected developers." - }, "appLicensingVerdict": { "description": "Required. Details about the licensing status of the user for the app in the scope.", "enum": [ @@ -199,53 +195,6 @@ }, "type": "object" }, - "AccountRiskVerdict": { - "description": "Contains information about account risk that indicates if the current user session seems low risk, unknown, or risky before you allow important actions to proceed.", - "id": "AccountRiskVerdict", - "properties": { - "risk": { - "description": "Required. Indicates the account risk level of the current user session.", - "enum": [ - "RISK_UNSPECIFIED", - "UNEVALUATED", - "HIGHER", - "UNKNOWN", - "LOWER", - "LOWEST" - ], - "enumDescriptions": [ - "Risk has not been set.", - "The account risk is not evaluated, because the device is not trusted or the user does not have a Play app license.", - "Play thinks that at least one of the user accounts on the device has some unusual store engagement behavior that could be risky.", - "Play does not have sufficient information to assess the risk. The account may be new, or it may lack activity on the Play Store.", - "Play thinks the user could be genuine, since there is some store engagement. However, some signals to support the trust level are missing.", - "Play thinks the user is more likely to be genuine due to harder to replicate store engagement signals." - ], - "type": "string" - }, - "riskLevel": { - "description": "Required. Indicates the account risk level of the current user session.", - "enum": [ - "RISK_LEVEL_UNSPECIFIED", - "RISK_LEVEL_UNEVALUATED", - "RISK_LEVEL_RISK", - "RISK_LEVEL_UNKNOWN", - "RISK_LEVEL_LOW_RISK", - "RISK_LEVEL_LOWEST_RISK" - ], - "enumDescriptions": [ - "Risk level has not been set.", - "The account risk is not evaluated, because the device is not trusted or the user does not have a Play app license.", - "Play thinks that at least one of the user accounts on the device has some unusual store engagement behavior that could be risky.", - "Play does not have sufficient information to assess the risk. The account may be new, or it may lack activity on the Play Store.", - "Play thinks the user could be genuine, since there is some store engagement. However, some signals to support the trust level are missing.", - "Play thinks the user is more likely to be genuine due to harder to replicate store engagement signals." - ], - "type": "string" - } - }, - "type": "object" - }, "AppIntegrity": { "description": "Contains the application integrity information.", "id": "AppIntegrity", diff --git a/playintegrity/v1/playintegrity-gen.go b/playintegrity/v1/playintegrity-gen.go index 02094d98d1e..14376d69365 100644 --- a/playintegrity/v1/playintegrity-gen.go +++ b/playintegrity/v1/playintegrity-gen.go @@ -201,10 +201,6 @@ type AccountDetails struct { // the scope. AccountActivity *AccountActivity `json:"accountActivity,omitempty"` - // AccountRiskVerdict: Details about the account risk for the user in - // the scope. This feature is available only to selected developers. - AccountRiskVerdict *AccountRiskVerdict `json:"accountRiskVerdict,omitempty"` - // AppLicensingVerdict: Required. Details about the licensing status of // the user for the app in the scope. // @@ -244,74 +240,6 @@ func (s *AccountDetails) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AccountRiskVerdict: Contains information about account risk that -// indicates if the current user session seems low risk, unknown, or -// risky before you allow important actions to proceed. -type AccountRiskVerdict struct { - // Risk: Required. Indicates the account risk level of the current user - // session. - // - // Possible values: - // "RISK_UNSPECIFIED" - Risk has not been set. - // "UNEVALUATED" - The account risk is not evaluated, because the - // device is not trusted or the user does not have a Play app license. - // "HIGHER" - Play thinks that at least one of the user accounts on - // the device has some unusual store engagement behavior that could be - // risky. - // "UNKNOWN" - Play does not have sufficient information to assess the - // risk. The account may be new, or it may lack activity on the Play - // Store. - // "LOWER" - Play thinks the user could be genuine, since there is - // some store engagement. However, some signals to support the trust - // level are missing. - // "LOWEST" - Play thinks the user is more likely to be genuine due to - // harder to replicate store engagement signals. - Risk string `json:"risk,omitempty"` - - // RiskLevel: Required. Indicates the account risk level of the current - // user session. - // - // Possible values: - // "RISK_LEVEL_UNSPECIFIED" - Risk level has not been set. - // "RISK_LEVEL_UNEVALUATED" - The account risk is not evaluated, - // because the device is not trusted or the user does not have a Play - // app license. - // "RISK_LEVEL_RISK" - Play thinks that at least one of the user - // accounts on the device has some unusual store engagement behavior - // that could be risky. - // "RISK_LEVEL_UNKNOWN" - Play does not have sufficient information to - // assess the risk. The account may be new, or it may lack activity on - // the Play Store. - // "RISK_LEVEL_LOW_RISK" - Play thinks the user could be genuine, - // since there is some store engagement. However, some signals to - // support the trust level are missing. - // "RISK_LEVEL_LOWEST_RISK" - Play thinks the user is more likely to - // be genuine due to harder to replicate store engagement signals. - RiskLevel string `json:"riskLevel,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Risk") 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. "Risk") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *AccountRiskVerdict) MarshalJSON() ([]byte, error) { - type NoMethod AccountRiskVerdict - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // AppIntegrity: Contains the application integrity information. type AppIntegrity struct { // AppRecognitionVerdict: Required. Details about the app recognition diff --git a/run/v1/run-api.json b/run/v1/run-api.json index 90b627c189c..e9b67730234 100644 --- a/run/v1/run-api.json +++ b/run/v1/run-api.json @@ -2289,7 +2289,7 @@ } } }, - "revision": "20221016", + "revision": "20221023", "rootUrl": "https://run.googleapis.com/", "schemas": { "Addressable": { @@ -2862,7 +2862,7 @@ }, "template": { "$ref": "TaskTemplateSpec", - "description": "Optional. Describes the task(s) that will be created when executing an execution." + "description": "Optional. The template used to create tasks for this execution." } }, "type": "object" diff --git a/run/v1/run-gen.go b/run/v1/run-gen.go index 91c959ad185..eaf37d91d5e 100644 --- a/run/v1/run-gen.go +++ b/run/v1/run-gen.go @@ -1440,8 +1440,8 @@ type ExecutionSpec struct { // execution. TaskCount int64 `json:"taskCount,omitempty"` - // Template: Optional. Describes the task(s) that will be created when - // executing an execution. + // Template: Optional. The template used to create tasks for this + // execution. Template *TaskTemplateSpec `json:"template,omitempty"` // ForceSendFields is a list of field names (e.g. "Parallelism") to diff --git a/run/v2/run-api.json b/run/v2/run-api.json index d4e5d7cc024..47ca3c9f9d0 100644 --- a/run/v2/run-api.json +++ b/run/v2/run-api.json @@ -163,11 +163,6 @@ "location": "query", "type": "string" }, - "force": { - "description": "If set to true, the Job and its Executions will be deleted no matter whether any Executions are still running or not. If set to false or unset, the Job and its Executions can only be deleted if there are no running Executions. Any running Execution will fail the deletion.", - "location": "query", - "type": "boolean" - }, "name": { "description": "Required. The full name of the Job. Format: projects/{project}/locations/{location}/jobs/{job}", "location": "path", @@ -1064,7 +1059,7 @@ } } }, - "revision": "20221016", + "revision": "20221023", "rootUrl": "https://run.googleapis.com/", "schemas": { "GoogleCloudRunV2BinaryAuthorization": { @@ -1492,7 +1487,7 @@ }, "template": { "$ref": "GoogleCloudRunV2TaskTemplate", - "description": "Output only. Describes the task(s) that will be created when executing an execution.", + "description": "Output only. The template used to create tasks for this execution.", "readOnly": true }, "uid": { diff --git a/run/v2/run-gen.go b/run/v2/run-gen.go index 608363b256a..f523901a289 100644 --- a/run/v2/run-gen.go +++ b/run/v2/run-gen.go @@ -773,8 +773,8 @@ type GoogleCloudRunV2Execution struct { // https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ TaskCount int64 `json:"taskCount,omitempty"` - // Template: Output only. Describes the task(s) that will be created - // when executing an execution. + // Template: Output only. The template used to create tasks for this + // execution. Template *GoogleCloudRunV2TaskTemplate `json:"template,omitempty"` // Uid: Output only. Server assigned unique identifier for the @@ -3502,16 +3502,6 @@ func (c *ProjectsLocationsJobsDeleteCall) Etag(etag string) *ProjectsLocationsJo return c } -// Force sets the optional parameter "force": If set to true, the Job -// and its Executions will be deleted no matter whether any Executions -// are still running or not. If set to false or unset, the Job and its -// Executions can only be deleted if there are no running Executions. -// Any running Execution will fail the deletion. -func (c *ProjectsLocationsJobsDeleteCall) Force(force bool) *ProjectsLocationsJobsDeleteCall { - c.urlParams_.Set("force", fmt.Sprint(force)) - return c -} - // ValidateOnly sets the optional parameter "validateOnly": Indicates // that the request should be validated without actually deleting any // resources. @@ -3619,11 +3609,6 @@ func (c *ProjectsLocationsJobsDeleteCall) Do(opts ...googleapi.CallOption) (*Goo // "location": "query", // "type": "string" // }, - // "force": { - // "description": "If set to true, the Job and its Executions will be deleted no matter whether any Executions are still running or not. If set to false or unset, the Job and its Executions can only be deleted if there are no running Executions. Any running Execution will fail the deletion.", - // "location": "query", - // "type": "boolean" - // }, // "name": { // "description": "Required. The full name of the Job. Format: projects/{project}/locations/{location}/jobs/{job}", // "location": "path", diff --git a/tpu/v2alpha1/tpu-api.json b/tpu/v2alpha1/tpu-api.json index e6402d62623..bd520560bf8 100644 --- a/tpu/v2alpha1/tpu-api.json +++ b/tpu/v2alpha1/tpu-api.json @@ -759,7 +759,7 @@ } } }, - "revision": "20220907", + "revision": "20221025", "rootUrl": "https://tpu.googleapis.com/", "schemas": { "AcceleratorType": { @@ -771,7 +771,7 @@ "type": "string" }, "type": { - "description": "the accelerator type.", + "description": "The accelerator type.", "type": "string" } }, diff --git a/tpu/v2alpha1/tpu-gen.go b/tpu/v2alpha1/tpu-gen.go index 0c28f49915d..3b47de7338b 100644 --- a/tpu/v2alpha1/tpu-gen.go +++ b/tpu/v2alpha1/tpu-gen.go @@ -212,7 +212,7 @@ type AcceleratorType struct { // Name: The resource name. Name string `json:"name,omitempty"` - // Type: the accelerator type. + // Type: The accelerator type. Type string `json:"type,omitempty"` // ServerResponse contains the HTTP response code and headers from the diff --git a/travelimpactmodel/v1/travelimpactmodel-api.json b/travelimpactmodel/v1/travelimpactmodel-api.json new file mode 100644 index 00000000000..d84a58849d6 --- /dev/null +++ b/travelimpactmodel/v1/travelimpactmodel-api.json @@ -0,0 +1,277 @@ +{ + "basePath": "", + "baseUrl": "https://travelimpactmodel.googleapis.com/", + "batchPath": "batch", + "canonicalName": "Travel Impact Model", + "description": "Travel Impact Model API lets you query travel carbon emission estimates.", + "discoveryVersion": "v1", + "documentationLink": "https://developers.google.com/travel/impact-model", + "fullyEncodeReservedExpansion": true, + "icons": { + "x16": "http://www.google.com/images/icons/product/search-16.gif", + "x32": "http://www.google.com/images/icons/product/search-32.gif" + }, + "id": "travelimpactmodel:v1", + "kind": "discovery#restDescription", + "mtlsRootUrl": "https://travelimpactmodel.mtls.googleapis.com/", + "name": "travelimpactmodel", + "ownerDomain": "google.com", + "ownerName": "Google", + "parameters": { + "$.xgafv": { + "description": "V1 error format.", + "enum": [ + "1", + "2" + ], + "enumDescriptions": [ + "v1 error format", + "v2 error format" + ], + "location": "query", + "type": "string" + }, + "access_token": { + "description": "OAuth access token.", + "location": "query", + "type": "string" + }, + "alt": { + "default": "json", + "description": "Data format for response.", + "enum": [ + "json", + "media", + "proto" + ], + "enumDescriptions": [ + "Responses with Content-Type of application/json", + "Media download with context-dependent Content-Type", + "Responses with Content-Type of application/x-protobuf" + ], + "location": "query", + "type": "string" + }, + "callback": { + "description": "JSONP", + "location": "query", + "type": "string" + }, + "fields": { + "description": "Selector specifying which fields to include in a partial response.", + "location": "query", + "type": "string" + }, + "key": { + "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", + "location": "query", + "type": "string" + }, + "oauth_token": { + "description": "OAuth 2.0 token for the current user.", + "location": "query", + "type": "string" + }, + "prettyPrint": { + "default": "true", + "description": "Returns response with indentations and line breaks.", + "location": "query", + "type": "boolean" + }, + "quotaUser": { + "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", + "location": "query", + "type": "string" + }, + "uploadType": { + "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", + "location": "query", + "type": "string" + }, + "upload_protocol": { + "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", + "location": "query", + "type": "string" + } + }, + "protocol": "rest", + "resources": { + "flights": { + "methods": { + "computeFlightEmissions": { + "description": "Stateless method to retrieve emission estimates. Details on how emission estimates are computed: https://github.com/google/travel-impact-model The response will contain all entries that match the input flight legs, in the same order. If there are no estimates available for a certain flight leg, the response will return the flight leg object with empty emission fields. The request will still be considered successful. Reasons for missing emission estimates include: - The flight is unknown to the server. - The input flight leg is missing one or more identifiers. - The flight date is in the past. - The aircraft type is not supported by the model. - Missing seat configuration. The request can contain up to 1000 flight legs. If the request has more than 1000 direct flights, if will fail with an INVALID_ARGUMENT error.", + "flatPath": "v1/flights:computeFlightEmissions", + "httpMethod": "POST", + "id": "travelimpactmodel.flights.computeFlightEmissions", + "parameterOrder": [], + "parameters": {}, + "path": "v1/flights:computeFlightEmissions", + "request": { + "$ref": "ComputeFlightEmissionsRequest" + }, + "response": { + "$ref": "ComputeFlightEmissionsResponse" + } + } + } + } + }, + "revision": "20221031", + "rootUrl": "https://travelimpactmodel.googleapis.com/", + "schemas": { + "ComputeFlightEmissionsRequest": { + "description": "Input definition for the ComputeFlightEmissions request.", + "id": "ComputeFlightEmissionsRequest", + "properties": { + "flights": { + "description": "Required. Direct flights to return emission estimates for.", + "items": { + "$ref": "Flight" + }, + "type": "array" + } + }, + "type": "object" + }, + "ComputeFlightEmissionsResponse": { + "description": "Output definition for the ComputeFlightEmissions response.", + "id": "ComputeFlightEmissionsResponse", + "properties": { + "flightEmissions": { + "description": "List of flight legs with emission estimates.", + "items": { + "$ref": "FlightWithEmissions" + }, + "type": "array" + }, + "modelVersion": { + "$ref": "ModelVersion", + "description": "The model version under which emission estimates for all flights in this response were computed." + } + }, + "type": "object" + }, + "Date": { + "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", + "id": "Date", + "properties": { + "day": { + "description": "Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.", + "format": "int32", + "type": "integer" + }, + "month": { + "description": "Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.", + "format": "int32", + "type": "integer" + }, + "year": { + "description": "Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "EmissionsGramsPerPax": { + "description": "Grouped emissions per seating class results.", + "id": "EmissionsGramsPerPax", + "properties": { + "business": { + "description": "Emissions for one passenger in business class in grams. This field is always computed and populated, regardless of whether the aircraft has business class seats or not.", + "format": "int32", + "type": "integer" + }, + "economy": { + "description": "Emissions for one passenger in economy class in grams. This field is always computed and populated, regardless of whether the aircraft has economy class seats or not.", + "format": "int32", + "type": "integer" + }, + "first": { + "description": "Emissions for one passenger in first class in grams. This field is always computed and populated, regardless of whether the aircraft has first class seats or not.", + "format": "int32", + "type": "integer" + }, + "premiumEconomy": { + "description": "Emissions for one passenger in premium economy class in grams. This field is always computed and populated, regardless of whether the aircraft has premium economy class seats or not.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "Flight": { + "description": "All details related to a single request item for a direct flight emission estimates.", + "id": "Flight", + "properties": { + "departureDate": { + "$ref": "Date", + "description": "Required. Date of the flight in the time zone of the origin airport. Must be a date in the present or future." + }, + "destination": { + "description": "Required. IATA airport code for flight destination, e.g. \"JFK\".", + "type": "string" + }, + "flightNumber": { + "description": "Required. Flight number, e.g. 324.", + "format": "int32", + "type": "integer" + }, + "operatingCarrierCode": { + "description": "Required. IATA carrier code, e.g. \"AA\".", + "type": "string" + }, + "origin": { + "description": "Required. IATA airport code for flight origin, e.g. \"LHR\".", + "type": "string" + } + }, + "type": "object" + }, + "FlightWithEmissions": { + "description": "Direct flight with emission estimates.", + "id": "FlightWithEmissions", + "properties": { + "emissionsGramsPerPax": { + "$ref": "EmissionsGramsPerPax", + "description": "Optional. Per-passenger emission estimate numbers. Will not be present if emissions could not be computed. For the list of reasons why emissions could not be computed, see ComputeFlightEmissions." + }, + "flight": { + "$ref": "Flight", + "description": "Required. Matches the flight identifiers in the request. Note: all IATA codes are capitalized." + } + }, + "type": "object" + }, + "ModelVersion": { + "description": "Travel Impact Model version. For more information about the model versioning see https://github.com/google/travel-impact-model/#versioning.", + "id": "ModelVersion", + "properties": { + "dated": { + "description": "Dated versions: Model datasets are recreated with refreshed input data but no change to the algorithms regularly.", + "type": "string" + }, + "major": { + "description": "Major versions: Major changes to methodology (e.g. adding new data sources to the model that lead to major output changes). Such changes will be infrequent and announced well in advance. Might involve API version changes, which will respect guidelines in https://cloud.google.com/endpoints/docs/openapi/versioning-an-api#backwards-incompatible", + "format": "int32", + "type": "integer" + }, + "minor": { + "description": "Minor versions: Changes to the model that, while being consistent across schema versions, change the model parameters or implementation.", + "format": "int32", + "type": "integer" + }, + "patch": { + "description": "Patch versions: Implementation changes meant to address bugs or inaccuracies in the model implementation.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + } + }, + "servicePath": "", + "title": "Travel Impact Model API", + "version": "v1", + "version_module": true +} \ No newline at end of file diff --git a/travelimpactmodel/v1/travelimpactmodel-gen.go b/travelimpactmodel/v1/travelimpactmodel-gen.go new file mode 100644 index 00000000000..d9bc3cb5fa1 --- /dev/null +++ b/travelimpactmodel/v1/travelimpactmodel-gen.go @@ -0,0 +1,555 @@ +// Copyright 2022 Google LLC. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated file. DO NOT EDIT. + +// Package travelimpactmodel provides access to the Travel Impact Model API. +// +// For product documentation, see: https://developers.google.com/travel/impact-model +// +// # Creating a client +// +// Usage example: +// +// import "google.golang.org/api/travelimpactmodel/v1" +// ... +// ctx := context.Background() +// travelimpactmodelService, err := travelimpactmodel.NewService(ctx) +// +// In this example, Google Application Default Credentials are used for authentication. +// +// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// +// # Other authentication options +// +// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// +// travelimpactmodelService, err := travelimpactmodel.NewService(ctx, option.WithAPIKey("AIza...")) +// +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// +// config := &oauth2.Config{...} +// // ... +// token, err := config.Exchange(ctx, ...) +// travelimpactmodelService, err := travelimpactmodel.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) +// +// See https://godoc.org/google.golang.org/api/option/ for details on options. +package travelimpactmodel // import "google.golang.org/api/travelimpactmodel/v1" + +import ( + "bytes" + "context" + "encoding/json" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strconv" + "strings" + + googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" + gensupport "google.golang.org/api/internal/gensupport" + option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" + htransport "google.golang.org/api/transport/http" +) + +// Always reference these packages, just in case the auto-generated code +// below doesn't. +var _ = bytes.NewBuffer +var _ = strconv.Itoa +var _ = fmt.Sprintf +var _ = json.NewDecoder +var _ = io.Copy +var _ = url.Parse +var _ = gensupport.MarshalJSON +var _ = googleapi.Version +var _ = errors.New +var _ = strings.Replace +var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint + +const apiId = "travelimpactmodel:v1" +const apiName = "travelimpactmodel" +const apiVersion = "v1" +const basePath = "https://travelimpactmodel.googleapis.com/" +const mtlsBasePath = "https://travelimpactmodel.mtls.googleapis.com/" + +// NewService creates a new Service. +func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + client, endpoint, err := htransport.NewClient(ctx, opts...) + if err != nil { + return nil, err + } + s, err := New(client) + if err != nil { + return nil, err + } + if endpoint != "" { + s.BasePath = endpoint + } + return s, nil +} + +// New creates a new Service. It uses the provided http.Client for requests. +// +// Deprecated: please use NewService instead. +// To provide a custom HTTP client, use option.WithHTTPClient. +// If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead. +func New(client *http.Client) (*Service, error) { + if client == nil { + return nil, errors.New("client is nil") + } + s := &Service{client: client, BasePath: basePath} + s.Flights = NewFlightsService(s) + return s, nil +} + +type Service struct { + client *http.Client + BasePath string // API endpoint base URL + UserAgent string // optional additional User-Agent fragment + + Flights *FlightsService +} + +func (s *Service) userAgent() string { + if s.UserAgent == "" { + return googleapi.UserAgent + } + return googleapi.UserAgent + " " + s.UserAgent +} + +func NewFlightsService(s *Service) *FlightsService { + rs := &FlightsService{s: s} + return rs +} + +type FlightsService struct { + s *Service +} + +// ComputeFlightEmissionsRequest: Input definition for the +// ComputeFlightEmissions request. +type ComputeFlightEmissionsRequest struct { + // Flights: Required. Direct flights to return emission estimates for. + Flights []*Flight `json:"flights,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Flights") 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. "Flights") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ComputeFlightEmissionsRequest) MarshalJSON() ([]byte, error) { + type NoMethod ComputeFlightEmissionsRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ComputeFlightEmissionsResponse: Output definition for the +// ComputeFlightEmissions response. +type ComputeFlightEmissionsResponse struct { + // FlightEmissions: List of flight legs with emission estimates. + FlightEmissions []*FlightWithEmissions `json:"flightEmissions,omitempty"` + + // ModelVersion: The model version under which emission estimates for + // all flights in this response were computed. + ModelVersion *ModelVersion `json:"modelVersion,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "FlightEmissions") 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. "FlightEmissions") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *ComputeFlightEmissionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ComputeFlightEmissionsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Date: Represents a whole or partial calendar date, such as a +// birthday. The time of day and time zone are either specified +// elsewhere or are insignificant. The date is relative to the Gregorian +// Calendar. This can represent one of the following: * A full date, +// with non-zero year, month, and day values. * A month and day, with a +// zero year (for example, an anniversary). * A year on its own, with a +// zero month and a zero day. * A year and month, with a zero day (for +// example, a credit card expiration date). Related types: * +// google.type.TimeOfDay * google.type.DateTime * +// google.protobuf.Timestamp +type Date struct { + // Day: Day of a month. Must be from 1 to 31 and valid for the year and + // month, or 0 to specify a year by itself or a year and month where the + // day isn't significant. + Day int64 `json:"day,omitempty"` + + // Month: Month of a year. Must be from 1 to 12, or 0 to specify a year + // without a month and day. + Month int64 `json:"month,omitempty"` + + // Year: Year of the date. Must be from 1 to 9999, or 0 to specify a + // date without a year. + Year int64 `json:"year,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Day") to + // unconditionally include in API requests. By default, fields with + // empty 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. "Day") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Date) MarshalJSON() ([]byte, error) { + type NoMethod Date + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EmissionsGramsPerPax: Grouped emissions per seating class results. +type EmissionsGramsPerPax struct { + // Business: Emissions for one passenger in business class in grams. + // This field is always computed and populated, regardless of whether + // the aircraft has business class seats or not. + Business int64 `json:"business,omitempty"` + + // Economy: Emissions for one passenger in economy class in grams. This + // field is always computed and populated, regardless of whether the + // aircraft has economy class seats or not. + Economy int64 `json:"economy,omitempty"` + + // First: Emissions for one passenger in first class in grams. This + // field is always computed and populated, regardless of whether the + // aircraft has first class seats or not. + First int64 `json:"first,omitempty"` + + // PremiumEconomy: Emissions for one passenger in premium economy class + // in grams. This field is always computed and populated, regardless of + // whether the aircraft has premium economy class seats or not. + PremiumEconomy int64 `json:"premiumEconomy,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Business") 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. "Business") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EmissionsGramsPerPax) MarshalJSON() ([]byte, error) { + type NoMethod EmissionsGramsPerPax + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Flight: All details related to a single request item for a direct +// flight emission estimates. +type Flight struct { + // DepartureDate: Required. Date of the flight in the time zone of the + // origin airport. Must be a date in the present or future. + DepartureDate *Date `json:"departureDate,omitempty"` + + // Destination: Required. IATA airport code for flight destination, e.g. + // "JFK". + Destination string `json:"destination,omitempty"` + + // FlightNumber: Required. Flight number, e.g. 324. + FlightNumber int64 `json:"flightNumber,omitempty"` + + // OperatingCarrierCode: Required. IATA carrier code, e.g. "AA". + OperatingCarrierCode string `json:"operatingCarrierCode,omitempty"` + + // Origin: Required. IATA airport code for flight origin, e.g. "LHR". + Origin string `json:"origin,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DepartureDate") 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. "DepartureDate") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Flight) MarshalJSON() ([]byte, error) { + type NoMethod Flight + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// FlightWithEmissions: Direct flight with emission estimates. +type FlightWithEmissions struct { + // EmissionsGramsPerPax: Optional. Per-passenger emission estimate + // numbers. Will not be present if emissions could not be computed. For + // the list of reasons why emissions could not be computed, see + // ComputeFlightEmissions. + EmissionsGramsPerPax *EmissionsGramsPerPax `json:"emissionsGramsPerPax,omitempty"` + + // Flight: Required. Matches the flight identifiers in the request. + // Note: all IATA codes are capitalized. + Flight *Flight `json:"flight,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "EmissionsGramsPerPax") 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. "EmissionsGramsPerPax") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *FlightWithEmissions) MarshalJSON() ([]byte, error) { + type NoMethod FlightWithEmissions + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ModelVersion: Travel Impact Model version. For more information about +// the model versioning see +// https://github.com/google/travel-impact-model/#versioning. +type ModelVersion struct { + // Dated: Dated versions: Model datasets are recreated with refreshed + // input data but no change to the algorithms regularly. + Dated string `json:"dated,omitempty"` + + // Major: Major versions: Major changes to methodology (e.g. adding new + // data sources to the model that lead to major output changes). Such + // changes will be infrequent and announced well in advance. Might + // involve API version changes, which will respect guidelines in + // https://cloud.google.com/endpoints/docs/openapi/versioning-an-api#backwards-incompatible + Major int64 `json:"major,omitempty"` + + // Minor: Minor versions: Changes to the model that, while being + // consistent across schema versions, change the model parameters or + // implementation. + Minor int64 `json:"minor,omitempty"` + + // Patch: Patch versions: Implementation changes meant to address bugs + // or inaccuracies in the model implementation. + Patch int64 `json:"patch,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Dated") 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. "Dated") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ModelVersion) MarshalJSON() ([]byte, error) { + type NoMethod ModelVersion + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// method id "travelimpactmodel.flights.computeFlightEmissions": + +type FlightsComputeFlightEmissionsCall struct { + s *Service + computeflightemissionsrequest *ComputeFlightEmissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// ComputeFlightEmissions: Stateless method to retrieve emission +// estimates. Details on how emission estimates are computed: +// https://github.com/google/travel-impact-model The response will +// contain all entries that match the input flight legs, in the same +// order. If there are no estimates available for a certain flight leg, +// the response will return the flight leg object with empty emission +// fields. The request will still be considered successful. Reasons for +// missing emission estimates include: - The flight is unknown to the +// server. - The input flight leg is missing one or more identifiers. - +// The flight date is in the past. - The aircraft type is not supported +// by the model. - Missing seat configuration. The request can contain +// up to 1000 flight legs. If the request has more than 1000 direct +// flights, if will fail with an INVALID_ARGUMENT error. +func (r *FlightsService) ComputeFlightEmissions(computeflightemissionsrequest *ComputeFlightEmissionsRequest) *FlightsComputeFlightEmissionsCall { + c := &FlightsComputeFlightEmissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.computeflightemissionsrequest = computeflightemissionsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *FlightsComputeFlightEmissionsCall) Fields(s ...googleapi.Field) *FlightsComputeFlightEmissionsCall { + 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 *FlightsComputeFlightEmissionsCall) Context(ctx context.Context) *FlightsComputeFlightEmissionsCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *FlightsComputeFlightEmissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *FlightsComputeFlightEmissionsCall) 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.computeflightemissionsrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/flights:computeFlightEmissions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "travelimpactmodel.flights.computeFlightEmissions" call. +// Exactly one of *ComputeFlightEmissionsResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *ComputeFlightEmissionsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *FlightsComputeFlightEmissionsCall) Do(opts ...googleapi.CallOption) (*ComputeFlightEmissionsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &ComputeFlightEmissionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Stateless method to retrieve emission estimates. Details on how emission estimates are computed: https://github.com/google/travel-impact-model The response will contain all entries that match the input flight legs, in the same order. If there are no estimates available for a certain flight leg, the response will return the flight leg object with empty emission fields. The request will still be considered successful. Reasons for missing emission estimates include: - The flight is unknown to the server. - The input flight leg is missing one or more identifiers. - The flight date is in the past. - The aircraft type is not supported by the model. - Missing seat configuration. The request can contain up to 1000 flight legs. If the request has more than 1000 direct flights, if will fail with an INVALID_ARGUMENT error.", + // "flatPath": "v1/flights:computeFlightEmissions", + // "httpMethod": "POST", + // "id": "travelimpactmodel.flights.computeFlightEmissions", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v1/flights:computeFlightEmissions", + // "request": { + // "$ref": "ComputeFlightEmissionsRequest" + // }, + // "response": { + // "$ref": "ComputeFlightEmissionsResponse" + // } + // } + +} diff --git a/versionhistory/v1/versionhistory-api.json b/versionhistory/v1/versionhistory-api.json index 2604706a34d..ef1c1de3723 100644 --- a/versionhistory/v1/versionhistory-api.json +++ b/versionhistory/v1/versionhistory-api.json @@ -271,7 +271,7 @@ } } }, - "revision": "20220914", + "revision": "20221031", "rootUrl": "https://versionhistory.googleapis.com/", "schemas": { "Channel": { @@ -422,7 +422,8 @@ "LACROS", "LACROS_ARM32", "CHROMEOS", - "LACROS_ARM64" + "LACROS_ARM64", + "FUCHSIA" ], "enumDescriptions": [ "", @@ -438,6 +439,7 @@ "", "", "", + "", "" ], "type": "string" diff --git a/versionhistory/v1/versionhistory-gen.go b/versionhistory/v1/versionhistory-gen.go index 8d3b85a99f9..baa0074d8cb 100644 --- a/versionhistory/v1/versionhistory-gen.go +++ b/versionhistory/v1/versionhistory-gen.go @@ -426,6 +426,7 @@ type Platform struct { // "LACROS_ARM32" // "CHROMEOS" // "LACROS_ARM64" + // "FUCHSIA" PlatformType string `json:"platformType,omitempty"` // ForceSendFields is a list of field names (e.g. "Name") to diff --git a/workflowexecutions/v1/workflowexecutions-api.json b/workflowexecutions/v1/workflowexecutions-api.json index 879456c30d9..af8f059c465 100644 --- a/workflowexecutions/v1/workflowexecutions-api.json +++ b/workflowexecutions/v1/workflowexecutions-api.json @@ -299,7 +299,7 @@ } } }, - "revision": "20220830", + "revision": "20221020", "rootUrl": "https://workflowexecutions.googleapis.com/", "schemas": { "CancelExecutionRequest": { @@ -397,7 +397,7 @@ }, "status": { "$ref": "Status", - "description": "Output only. Status tracks the current steps and progress data of this execution. \u003e **Preview:** This field is covered by the \u003e [Pre-GA Offerings Terms](https://cloud.google.com/terms/service-terms) of \u003e the Google Cloud Terms of Service. Pre-GA features might have limited \u003e support, and changes to pre-GA features might not be compatible with \u003e other pre-GA versions. For more information, see the \u003e [launch stage descriptions](https://cloud.google.com/products#product-launch-stages). \u003e This field is usable only if your project has access. See the \u003e [access request page](https://docs.google.com/forms/d/e/1FAIpQLSdgwrSV8Y4xZv_tvI6X2JEGX1-ty9yizv3_EAOVHWVKXvDLEA/viewform).", + "description": "Output only. Status tracks the current steps and progress data of this execution.", "readOnly": true }, "workflowRevisionId": { @@ -514,7 +514,7 @@ "type": "object" }, "Status": { - "description": "\u003e **Preview:** This field is covered by the \u003e [Pre-GA Offerings Terms](https://cloud.google.com/terms/service-terms) of \u003e the Google Cloud Terms of Service. Pre-GA features might have limited \u003e support, and changes to pre-GA features might not be compatible with \u003e other pre-GA versions. For more information, see the \u003e [launch stage descriptions](https://cloud.google.com/products#product-launch-stages). \u003e This field is usable only if your project has access. See the \u003e [access request page](https://docs.google.com/forms/d/e/1FAIpQLSdgwrSV8Y4xZv_tvI6X2JEGX1-ty9yizv3_EAOVHWVKXvDLEA/viewform). Represents the current status of this execution.", + "description": "Represents the current status of this execution.", "id": "Status", "properties": { "currentSteps": { diff --git a/workflowexecutions/v1/workflowexecutions-gen.go b/workflowexecutions/v1/workflowexecutions-gen.go index 9891fda6135..40dccacb05a 100644 --- a/workflowexecutions/v1/workflowexecutions-gen.go +++ b/workflowexecutions/v1/workflowexecutions-gen.go @@ -274,16 +274,7 @@ type Execution struct { State string `json:"state,omitempty"` // Status: Output only. Status tracks the current steps and progress - // data of this execution. > **Preview:** This field is covered by the > - // Pre-GA Offerings Terms (https://cloud.google.com/terms/service-terms) - // of > the Google Cloud Terms of Service. Pre-GA features might have - // limited > support, and changes to pre-GA features might not be - // compatible with > other pre-GA versions. For more information, see - // the > launch stage descriptions - // (https://cloud.google.com/products#product-launch-stages). > This - // field is usable only if your project has access. See the > access - // request page - // (https://docs.google.com/forms/d/e/1FAIpQLSdgwrSV8Y4xZv_tvI6X2JEGX1-ty9yizv3_EAOVHWVKXvDLEA/viewform). + // data of this execution. Status *Status `json:"status,omitempty"` // WorkflowRevisionId: Output only. Revision of the workflow this @@ -521,17 +512,7 @@ func (s *StackTraceElement) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Status: > **Preview:** This field is covered by the > Pre-GA -// Offerings Terms (https://cloud.google.com/terms/service-terms) of > -// the Google Cloud Terms of Service. Pre-GA features might have limited -// > support, and changes to pre-GA features might not be compatible -// with > other pre-GA versions. For more information, see the > launch -// stage descriptions -// (https://cloud.google.com/products#product-launch-stages). > This -// field is usable only if your project has access. See the > access -// request page -// (https://docs.google.com/forms/d/e/1FAIpQLSdgwrSV8Y4xZv_tvI6X2JEGX1-ty9yizv3_EAOVHWVKXvDLEA/viewform). -// Represents the current status of this execution. +// Status: Represents the current status of this execution. type Status struct { // CurrentSteps: A list of currently executing or last executed step // names for the workflow execution currently running. If the workflow diff --git a/workflowexecutions/v1beta/workflowexecutions-api.json b/workflowexecutions/v1beta/workflowexecutions-api.json index 7f1979ee807..e5febe3a003 100644 --- a/workflowexecutions/v1beta/workflowexecutions-api.json +++ b/workflowexecutions/v1beta/workflowexecutions-api.json @@ -269,7 +269,7 @@ } } }, - "revision": "20220830", + "revision": "20221020", "rootUrl": "https://workflowexecutions.googleapis.com/", "schemas": { "CancelExecutionRequest": { @@ -367,7 +367,7 @@ }, "status": { "$ref": "Status", - "description": "Output only. Status tracks the current steps and progress data of this execution. \u003e **Preview:** This field is covered by the \u003e [Pre-GA Offerings Terms](https://cloud.google.com/terms/service-terms) of \u003e the Google Cloud Terms of Service. Pre-GA features might have limited \u003e support, and changes to pre-GA features might not be compatible with \u003e other pre-GA versions. For more information, see the \u003e [launch stage descriptions](https://cloud.google.com/products#product-launch-stages). \u003e This field is usable only if your project has access. See the \u003e [access request page](https://docs.google.com/forms/d/e/1FAIpQLSdgwrSV8Y4xZv_tvI6X2JEGX1-ty9yizv3_EAOVHWVKXvDLEA/viewform).", + "description": "Output only. Status tracks the current steps and progress data of this execution.", "readOnly": true }, "workflowRevisionId": { @@ -452,7 +452,7 @@ "type": "object" }, "Status": { - "description": "\u003e **Preview:** This field is covered by the \u003e [Pre-GA Offerings Terms](https://cloud.google.com/terms/service-terms) of \u003e the Google Cloud Terms of Service. Pre-GA features might have limited \u003e support, and changes to pre-GA features might not be compatible with \u003e other pre-GA versions. For more information, see the \u003e [launch stage descriptions](https://cloud.google.com/products#product-launch-stages). \u003e This field is usable only if your project has access. See the \u003e [access request page](https://docs.google.com/forms/d/e/1FAIpQLSdgwrSV8Y4xZv_tvI6X2JEGX1-ty9yizv3_EAOVHWVKXvDLEA/viewform). Represents the current status of this execution.", + "description": "Represents the current status of this execution.", "id": "Status", "properties": { "currentSteps": { diff --git a/workflowexecutions/v1beta/workflowexecutions-gen.go b/workflowexecutions/v1beta/workflowexecutions-gen.go index f4e38e0b3d2..6dd6bdad669 100644 --- a/workflowexecutions/v1beta/workflowexecutions-gen.go +++ b/workflowexecutions/v1beta/workflowexecutions-gen.go @@ -274,16 +274,7 @@ type Execution struct { State string `json:"state,omitempty"` // Status: Output only. Status tracks the current steps and progress - // data of this execution. > **Preview:** This field is covered by the > - // Pre-GA Offerings Terms (https://cloud.google.com/terms/service-terms) - // of > the Google Cloud Terms of Service. Pre-GA features might have - // limited > support, and changes to pre-GA features might not be - // compatible with > other pre-GA versions. For more information, see - // the > launch stage descriptions - // (https://cloud.google.com/products#product-launch-stages). > This - // field is usable only if your project has access. See the > access - // request page - // (https://docs.google.com/forms/d/e/1FAIpQLSdgwrSV8Y4xZv_tvI6X2JEGX1-ty9yizv3_EAOVHWVKXvDLEA/viewform). + // data of this execution. Status *Status `json:"status,omitempty"` // WorkflowRevisionId: Output only. Revision of the workflow this @@ -457,17 +448,7 @@ func (s *StackTraceElement) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Status: > **Preview:** This field is covered by the > Pre-GA -// Offerings Terms (https://cloud.google.com/terms/service-terms) of > -// the Google Cloud Terms of Service. Pre-GA features might have limited -// > support, and changes to pre-GA features might not be compatible -// with > other pre-GA versions. For more information, see the > launch -// stage descriptions -// (https://cloud.google.com/products#product-launch-stages). > This -// field is usable only if your project has access. See the > access -// request page -// (https://docs.google.com/forms/d/e/1FAIpQLSdgwrSV8Y4xZv_tvI6X2JEGX1-ty9yizv3_EAOVHWVKXvDLEA/viewform). -// Represents the current status of this execution. +// Status: Represents the current status of this execution. type Status struct { // CurrentSteps: A list of currently executing or last executed step // names for the workflow execution currently running. If the workflow