From 4fe9fdf35169cad74c22a4290fc2e0dd9ab98f82 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 3 Oct 2024 00:22:24 -0700 Subject: [PATCH] feat(all): auto-regenerate discovery clients (#2811) --- chat/v1/chat-api.json | 77 ++++- chat/v1/chat-gen.go | 118 +++++-- developerconnect/v1/developerconnect-api.json | 47 ++- discoveryengine/v1/discoveryengine-api.json | 64 +++- discoveryengine/v1/discoveryengine-gen.go | 46 ++- .../v1alpha/discoveryengine-api.json | 64 +++- .../v1alpha/discoveryengine-gen.go | 46 ++- .../v1beta/discoveryengine-api.json | 124 ++++++- discoveryengine/v1beta/discoveryengine-gen.go | 326 ++++++++++++++++++ firebaseml/v2beta/firebaseml-api.json | 4 +- firebaseml/v2beta/firebaseml-gen.go | 10 +- migrationcenter/v1/migrationcenter-api.json | 7 +- migrationcenter/v1/migrationcenter-gen.go | 6 +- .../v1beta2/securitycenter-api.json | 25 +- securitycenter/v1beta2/securitycenter-gen.go | 56 ++- .../serviceconsumermanagement-api.json | 4 +- .../v1beta1/serviceconsumermanagement-gen.go | 2 +- serviceusage/v1/serviceusage-api.json | 4 +- serviceusage/v1/serviceusage-gen.go | 2 +- 19 files changed, 949 insertions(+), 83 deletions(-) diff --git a/chat/v1/chat-api.json b/chat/v1/chat-api.json index c785aa32ff..de69885b2e 100644 --- a/chat/v1/chat-api.json +++ b/chat/v1/chat-api.json @@ -459,7 +459,7 @@ "type": "string" }, "updateMask": { - "description": "Required. The updated field paths, comma separated if there are multiple. You can update the following fields for a space: - `space_details` - `display_name`: Only supports updating the display name for spaces where `spaceType` field is `SPACE`. If you receive the error message `ALREADY_EXISTS`, try a different value. An existing space within the Google Workspace organization might already use this display name. - `space_type`: Only supports changing a `GROUP_CHAT` space type to `SPACE`. Include `display_name` together with `space_type` in the update mask and ensure that the specified space has a non-empty display name and the `SPACE` space type. Including the `space_type` mask and the `SPACE` type in the specified space when updating the display name is optional if the existing space already has the `SPACE` type. Trying to update the space type in other ways results in an invalid argument error. `space_type` is not supported with admin access. - `space_history_state`: Updates [space history settings](https://support.google.com/chat/answer/7664687) by turning history on or off for the space. Only supported if history settings are enabled for the Google Workspace organization. To update the space history state, you must omit all other field masks in your request. `space_history_state` is not supported with admin access. - `access_settings.audience`: Updates the [access setting](https://support.google.com/chat/answer/11971020) of who can discover the space, join the space, and preview the messages in named space where `spaceType` field is `SPACE`. If the existing space has a target audience, you can remove the audience and restrict space access by omitting a value for this field mask. To update access settings for a space, the authenticating user must be a space manager and omit all other field masks in your request. You can't update this field if the space is in [import mode](https://developers.google.com/workspace/chat/import-data-overview). To learn more, see [Make a space discoverable to specific users](https://developers.google.com/workspace/chat/space-target-audience). `access_settings.audience` is not supported with admin access. - Developer Preview: Supports changing the [permission settings](https://support.google.com/chat/answer/13340792) of a space, supported field paths include: `permission_settings.manage_members_and_groups`, `permission_settings.modify_space_details`, `permission_settings.toggle_history`, `permission_settings.use_at_mention_all`, `permission_settings.manage_apps`, `permission_settings.manage_webhooks`, `permission_settings.reply_messages` (Warning: mutually exclusive with all other non-permission settings field paths). `permission_settings` is not supported with admin access.", + "description": "- Supports changing the [permission settings](https://support.google.com/chat/answer/13340792) of a space, supported field paths include: `permission_settings.manage_members_and_groups`, `permission_settings.modify_space_details`, `permission_settings.toggle_history`, `permission_settings.use_at_mention_all`, `permission_settings.manage_apps`, `permission_settings.manage_webhooks`, `permission_settings.reply_messages` (Warning: mutually exclusive with all other non-permission settings field paths). `permission_settings` is not supported with admin access.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -1344,7 +1344,7 @@ } } }, - "revision": "20240919", + "revision": "20240926", "rootUrl": "https://chat.googleapis.com/", "schemas": { "AccessSettings": { @@ -3993,6 +3993,61 @@ }, "type": "object" }, + "PermissionSetting": { + "description": "Represents a space permission setting.", + "id": "PermissionSetting", + "properties": { + "managersAllowed": { + "description": "Whether spaces managers have this permission.", + "type": "boolean" + }, + "membersAllowed": { + "description": "Whether non-manager members have this permission.", + "type": "boolean" + } + }, + "type": "object" + }, + "PermissionSettings": { + "description": "[Permission settings](https://support.google.com/chat/answer/13340792) for a named space. To set permission settings when creating a space, specify the `PredefinedPermissionSettings` field in your request.", + "id": "PermissionSettings", + "properties": { + "manageApps": { + "$ref": "PermissionSetting", + "description": "Setting for managing apps in a space." + }, + "manageMembersAndGroups": { + "$ref": "PermissionSetting", + "description": "Setting for managing members and groups in a space." + }, + "manageWebhooks": { + "$ref": "PermissionSetting", + "description": "Setting for managing webhooks in a space." + }, + "modifySpaceDetails": { + "$ref": "PermissionSetting", + "description": "Setting for updating space name, avatar, description and guidelines." + }, + "postMessages": { + "$ref": "PermissionSetting", + "description": "Output only. Setting for posting messages in a space.", + "readOnly": true + }, + "replyMessages": { + "$ref": "PermissionSetting", + "description": "Setting for replying to messages in a space." + }, + "toggleHistory": { + "$ref": "PermissionSetting", + "description": "Setting for toggling space history on and off." + }, + "useAtMentionAll": { + "$ref": "PermissionSetting", + "description": "Setting for using @all in a space." + } + }, + "type": "object" + }, "QuotedMessageMetadata": { "description": "Information about a quoted message.", "id": "QuotedMessageMetadata", @@ -4286,6 +4341,24 @@ "description": "Resource name of the space. Format: `spaces/{space}` Where `{space}` represents the system-assigned ID for the space. You can obtain the space ID by calling the [`spaces.list()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/list) method or from the space URL. For example, if the space URL is `https://mail.google.com/mail/u/0/#chat/space/AAAAAAAAA`, the space ID is `AAAAAAAAA`.", "type": "string" }, + "permissionSettings": { + "$ref": "PermissionSettings", + "description": "Optional. Exact permission settings which can be set to update the space. Input for updating a space. Otherwise, output only. For space creation, use `predefined_permission_settings` instead." + }, + "predefinedPermissionSettings": { + "description": "Optional. Input only. Space permission settings. Input for creating a space, a collaboration space is created if this field is not set. After you create the space, settings are populated in the `PermissionSettings` field.", + "enum": [ + "PREDEFINED_PERMISSION_SETTINGS_UNSPECIFIED", + "COLLABORATION_SPACE", + "ANNOUNCEMENT_SPACE" + ], + "enumDescriptions": [ + "Unspecified. Don't use.", + "Setting to make the space a collaboration space where all members can post messages.", + "Setting to make the space an announcement space where only space managers can post messages." + ], + "type": "string" + }, "singleUserBotDm": { "description": "Optional. Whether the space is a DM between a Chat app and a single human.", "type": "boolean" diff --git a/chat/v1/chat-gen.go b/chat/v1/chat-gen.go index ea39d62fda..d3a2c7ef62 100644 --- a/chat/v1/chat-gen.go +++ b/chat/v1/chat-gen.go @@ -4344,6 +4344,70 @@ func (s OpenLink) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// PermissionSetting: Represents a space permission setting. +type PermissionSetting struct { + // ManagersAllowed: Whether spaces managers have this permission. + ManagersAllowed bool `json:"managersAllowed,omitempty"` + // MembersAllowed: Whether non-manager members have this permission. + MembersAllowed bool `json:"membersAllowed,omitempty"` + // ForceSendFields is a list of field names (e.g. "ManagersAllowed") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ManagersAllowed") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s PermissionSetting) MarshalJSON() ([]byte, error) { + type NoMethod PermissionSetting + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// PermissionSettings: Permission settings +// (https://support.google.com/chat/answer/13340792) for a named space. To set +// permission settings when creating a space, specify the +// `PredefinedPermissionSettings` field in your request. +type PermissionSettings struct { + // ManageApps: Setting for managing apps in a space. + ManageApps *PermissionSetting `json:"manageApps,omitempty"` + // ManageMembersAndGroups: Setting for managing members and groups in a space. + ManageMembersAndGroups *PermissionSetting `json:"manageMembersAndGroups,omitempty"` + // ManageWebhooks: Setting for managing webhooks in a space. + ManageWebhooks *PermissionSetting `json:"manageWebhooks,omitempty"` + // ModifySpaceDetails: Setting for updating space name, avatar, description and + // guidelines. + ModifySpaceDetails *PermissionSetting `json:"modifySpaceDetails,omitempty"` + // PostMessages: Output only. Setting for posting messages in a space. + PostMessages *PermissionSetting `json:"postMessages,omitempty"` + // ReplyMessages: Setting for replying to messages in a space. + ReplyMessages *PermissionSetting `json:"replyMessages,omitempty"` + // ToggleHistory: Setting for toggling space history on and off. + ToggleHistory *PermissionSetting `json:"toggleHistory,omitempty"` + // UseAtMentionAll: Setting for using @all in a space. + UseAtMentionAll *PermissionSetting `json:"useAtMentionAll,omitempty"` + // ForceSendFields is a list of field names (e.g. "ManageApps") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ManageApps") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s PermissionSettings) MarshalJSON() ([]byte, error) { + type NoMethod PermissionSettings + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // QuotedMessageMetadata: Information about a quoted message. type QuotedMessageMetadata struct { // LastUpdateTime: Output only. The timestamp when the quoted message was @@ -4784,6 +4848,22 @@ type Space struct { // `https://mail.google.com/mail/u/0/#chat/space/AAAAAAAAA`, the space ID is // `AAAAAAAAA`. Name string `json:"name,omitempty"` + // PermissionSettings: Optional. Exact permission settings which can be set to + // update the space. Input for updating a space. Otherwise, output only. For + // space creation, use `predefined_permission_settings` instead. + PermissionSettings *PermissionSettings `json:"permissionSettings,omitempty"` + // PredefinedPermissionSettings: Optional. Input only. Space permission + // settings. Input for creating a space, a collaboration space is created if + // this field is not set. After you create the space, settings are populated in + // the `PermissionSettings` field. + // + // Possible values: + // "PREDEFINED_PERMISSION_SETTINGS_UNSPECIFIED" - Unspecified. Don't use. + // "COLLABORATION_SPACE" - Setting to make the space a collaboration space + // where all members can post messages. + // "ANNOUNCEMENT_SPACE" - Setting to make the space an announcement space + // where only space managers can post messages. + PredefinedPermissionSettings string `json:"predefinedPermissionSettings,omitempty"` // SingleUserBotDm: Optional. Whether the space is a DM between a Chat app and // a single human. SingleUserBotDm bool `json:"singleUserBotDm,omitempty"` @@ -6611,40 +6691,10 @@ func (r *SpacesService) Patch(name string, space *Space) *SpacesPatchCall { return c } -// UpdateMask sets the optional parameter "updateMask": Required. The updated -// field paths, comma separated if there are multiple. You can update the -// following fields for a space: - `space_details` - `display_name`: Only -// supports updating the display name for spaces where `spaceType` field is -// `SPACE`. If you receive the error message `ALREADY_EXISTS`, try a different -// value. An existing space within the Google Workspace organization might -// already use this display name. - `space_type`: Only supports changing a -// `GROUP_CHAT` space type to `SPACE`. Include `display_name` together with -// `space_type` in the update mask and ensure that the specified space has a -// non-empty display name and the `SPACE` space type. Including the -// `space_type` mask and the `SPACE` type in the specified space when updating -// the display name is optional if the existing space already has the `SPACE` -// type. Trying to update the space type in other ways results in an invalid -// argument error. `space_type` is not supported with admin access. - -// `space_history_state`: Updates space history settings -// (https://support.google.com/chat/answer/7664687) by turning history on or -// off for the space. Only supported if history settings are enabled for the -// Google Workspace organization. To update the space history state, you must -// omit all other field masks in your request. `space_history_state` is not -// supported with admin access. - `access_settings.audience`: Updates the -// access setting (https://support.google.com/chat/answer/11971020) of who can -// discover the space, join the space, and preview the messages in named space -// where `spaceType` field is `SPACE`. If the existing space has a target -// audience, you can remove the audience and restrict space access by omitting -// a value for this field mask. To update access settings for a space, the -// authenticating user must be a space manager and omit all other field masks -// in your request. You can't update this field if the space is in import mode -// (https://developers.google.com/workspace/chat/import-data-overview). To -// learn more, see Make a space discoverable to specific users -// (https://developers.google.com/workspace/chat/space-target-audience). -// `access_settings.audience` is not supported with admin access. - Developer -// Preview: Supports changing the permission settings -// (https://support.google.com/chat/answer/13340792) of a space, supported -// field paths include: `permission_settings.manage_members_and_groups`, +// UpdateMask sets the optional parameter "updateMask": - Supports changing the +// permission settings (https://support.google.com/chat/answer/13340792) of a +// space, supported field paths include: +// `permission_settings.manage_members_and_groups`, // `permission_settings.modify_space_details`, // `permission_settings.toggle_history`, // `permission_settings.use_at_mention_all`, `permission_settings.manage_apps`, diff --git a/developerconnect/v1/developerconnect-api.json b/developerconnect/v1/developerconnect-api.json index 4b6f7bba56..5548ba3392 100644 --- a/developerconnect/v1/developerconnect-api.json +++ b/developerconnect/v1/developerconnect-api.json @@ -20,6 +20,51 @@ "description": "Regional Endpoint", "endpointUrl": "https://developerconnect.us-central1.rep.googleapis.com/", "location": "us-central1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://developerconnect.europe-west1.rep.googleapis.com/", + "location": "europe-west1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://developerconnect.asia-east1.rep.googleapis.com/", + "location": "asia-east1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://developerconnect.asia-east2.rep.googleapis.com/", + "location": "asia-east2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://developerconnect.europe-west4.rep.googleapis.com/", + "location": "europe-west4" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://developerconnect.us-east4.rep.googleapis.com/", + "location": "us-east4" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://developerconnect.us-east5.rep.googleapis.com/", + "location": "us-east5" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://developerconnect.asia-southeast1.rep.googleapis.com/", + "location": "asia-southeast1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://developerconnect.us-west1.rep.googleapis.com/", + "location": "us-west1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://developerconnect.us-west2.rep.googleapis.com/", + "location": "us-west2" } ], "fullyEncodeReservedExpansion": true, @@ -847,7 +892,7 @@ } } }, - "revision": "20240919", + "revision": "20240926", "rootUrl": "https://developerconnect.googleapis.com/", "schemas": { "CancelOperationRequest": { diff --git a/discoveryengine/v1/discoveryengine-api.json b/discoveryengine/v1/discoveryengine-api.json index 6e44f0954d..e17726c098 100644 --- a/discoveryengine/v1/discoveryengine-api.json +++ b/discoveryengine/v1/discoveryengine-api.json @@ -5629,15 +5629,15 @@ } } }, - "identity_mapping_stores": { + "identityMappingStores": { "resources": { "operations": { "methods": { "get": { "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/identity_mapping_stores/{identity_mapping_storesId}/operations/{operationsId}", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/identityMappingStores/{identityMappingStoresId}/operations/{operationsId}", "httpMethod": "GET", - "id": "discoveryengine.projects.locations.identity_mapping_stores.operations.get", + "id": "discoveryengine.projects.locations.identityMappingStores.operations.get", "parameterOrder": [ "name" ], @@ -5645,7 +5645,7 @@ "name": { "description": "The name of the operation resource.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/identity_mapping_stores/[^/]+/operations/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/identityMappingStores/[^/]+/operations/[^/]+$", "required": true, "type": "string" } @@ -5660,9 +5660,9 @@ }, "list": { "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/identity_mapping_stores/{identity_mapping_storesId}/operations", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/identityMappingStores/{identityMappingStoresId}/operations", "httpMethod": "GET", - "id": "discoveryengine.projects.locations.identity_mapping_stores.operations.list", + "id": "discoveryengine.projects.locations.identityMappingStores.operations.list", "parameterOrder": [ "name" ], @@ -5675,7 +5675,7 @@ "name": { "description": "The name of the operation's parent resource.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/identity_mapping_stores/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/identityMappingStores/[^/]+$", "required": true, "type": "string" }, @@ -5986,7 +5986,7 @@ } } }, - "revision": "20240920", + "revision": "20240930", "rootUrl": "https://discoveryengine.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -8163,6 +8163,10 @@ "description": "The display name of the model.", "type": "string" }, + "errorMessage": { + "description": "Currently this is only populated if the model state is `INPUT_VALIDATION_FAILED`.", + "type": "string" + }, "metrics": { "additionalProperties": { "format": "double", @@ -8744,6 +8748,10 @@ }, "type": "array" }, + "disableAnalytics": { + "description": "Optional. Whether to disable analytics for searches performed on this engine.", + "type": "boolean" + }, "displayName": { "description": "Required. The display name of the engine. Should be human readable. UTF-8 encoded string with limit of 1024 characters.", "type": "string" @@ -11692,6 +11700,14 @@ "description": "Obfuscated Dasher customer ID.", "type": "string" }, + "superAdminEmailAddress": { + "description": "Optional. The super admin email address for the workspace that will be used for access token generation. For now we only use it for Native Google Drive connector data ingestion.", + "type": "string" + }, + "superAdminServiceAccount": { + "description": "Optional. The super admin service account for the workspace that will be used for access token generation. For now we only use it for Native Google Drive connector data ingestion.", + "type": "string" + }, "type": { "description": "The Google Workspace data source.", "enum": [ @@ -12540,6 +12556,10 @@ "description": "The display name of the model.", "type": "string" }, + "errorMessage": { + "description": "Currently this is only populated if the model state is `INPUT_VALIDATION_FAILED`.", + "type": "string" + }, "metrics": { "additionalProperties": { "format": "double", @@ -12992,6 +13012,10 @@ }, "type": "array" }, + "disableAnalytics": { + "description": "Optional. Whether to disable analytics for searches performed on this engine.", + "type": "boolean" + }, "displayName": { "description": "Required. The display name of the engine. Should be human readable. UTF-8 encoded string with limit of 1024 characters.", "type": "string" @@ -15428,6 +15452,14 @@ "description": "Obfuscated Dasher customer ID.", "type": "string" }, + "superAdminEmailAddress": { + "description": "Optional. The super admin email address for the workspace that will be used for access token generation. For now we only use it for Native Google Drive connector data ingestion.", + "type": "string" + }, + "superAdminServiceAccount": { + "description": "Optional. The super admin service account for the workspace that will be used for access token generation. For now we only use it for Native Google Drive connector data ingestion.", + "type": "string" + }, "type": { "description": "The Google Workspace data source.", "enum": [ @@ -15768,6 +15800,10 @@ "description": "The display name of the model.", "type": "string" }, + "errorMessage": { + "description": "Currently this is only populated if the model state is `INPUT_VALIDATION_FAILED`.", + "type": "string" + }, "metrics": { "additionalProperties": { "format": "double", @@ -16211,6 +16247,10 @@ }, "type": "array" }, + "disableAnalytics": { + "description": "Optional. Whether to disable analytics for searches performed on this engine.", + "type": "boolean" + }, "displayName": { "description": "Required. The display name of the engine. Should be human readable. UTF-8 encoded string with limit of 1024 characters.", "type": "string" @@ -17996,6 +18036,14 @@ "description": "Obfuscated Dasher customer ID.", "type": "string" }, + "superAdminEmailAddress": { + "description": "Optional. The super admin email address for the workspace that will be used for access token generation. For now we only use it for Native Google Drive connector data ingestion.", + "type": "string" + }, + "superAdminServiceAccount": { + "description": "Optional. The super admin service account for the workspace that will be used for access token generation. For now we only use it for Native Google Drive connector data ingestion.", + "type": "string" + }, "type": { "description": "The Google Workspace data source.", "enum": [ diff --git a/discoveryengine/v1/discoveryengine-gen.go b/discoveryengine/v1/discoveryengine-gen.go index 3d8f99ae0e..a307e05da2 100644 --- a/discoveryengine/v1/discoveryengine-gen.go +++ b/discoveryengine/v1/discoveryengine-gen.go @@ -3939,6 +3939,9 @@ type GoogleCloudDiscoveryengineV1CustomTuningModel struct { CreateTime string `json:"createTime,omitempty"` // DisplayName: The display name of the model. DisplayName string `json:"displayName,omitempty"` + // ErrorMessage: Currently this is only populated if the model state is + // `INPUT_VALIDATION_FAILED`. + ErrorMessage string `json:"errorMessage,omitempty"` // Metrics: The metrics of the trained model. Metrics map[string]float64 `json:"metrics,omitempty"` // ModelState: The state that the model is in (e.g.`TRAINING` or @@ -4646,6 +4649,9 @@ type GoogleCloudDiscoveryengineV1Engine struct { // associated here. Note that when used in CreateEngineRequest, one DataStore // id must be provided as the system will use it for necessary initializations. DataStoreIds []string `json:"dataStoreIds,omitempty"` + // DisableAnalytics: Optional. Whether to disable analytics for searches + // performed on this engine. + DisableAnalytics bool `json:"disableAnalytics,omitempty"` // DisplayName: Required. The display name of the engine. Should be human // readable. UTF-8 encoded string with limit of 1024 characters. DisplayName string `json:"displayName,omitempty"` @@ -9138,6 +9144,14 @@ func (s GoogleCloudDiscoveryengineV1UserInfo) MarshalJSON() ([]byte, error) { type GoogleCloudDiscoveryengineV1WorkspaceConfig struct { // DasherCustomerId: Obfuscated Dasher customer ID. DasherCustomerId string `json:"dasherCustomerId,omitempty"` + // SuperAdminEmailAddress: Optional. The super admin email address for the + // workspace that will be used for access token generation. For now we only use + // it for Native Google Drive connector data ingestion. + SuperAdminEmailAddress string `json:"superAdminEmailAddress,omitempty"` + // SuperAdminServiceAccount: Optional. The super admin service account for the + // workspace that will be used for access token generation. For now we only use + // it for Native Google Drive connector data ingestion. + SuperAdminServiceAccount string `json:"superAdminServiceAccount,omitempty"` // Type: The Google Workspace data source. // // Possible values: @@ -10262,6 +10276,9 @@ type GoogleCloudDiscoveryengineV1alphaCustomTuningModel struct { CreateTime string `json:"createTime,omitempty"` // DisplayName: The display name of the model. DisplayName string `json:"displayName,omitempty"` + // ErrorMessage: Currently this is only populated if the model state is + // `INPUT_VALIDATION_FAILED`. + ErrorMessage string `json:"errorMessage,omitempty"` // Metrics: The metrics of the trained model. Metrics map[string]float64 `json:"metrics,omitempty"` // ModelState: The state that the model is in (e.g.`TRAINING` or @@ -10802,6 +10819,9 @@ type GoogleCloudDiscoveryengineV1alphaEngine struct { // associated here. Note that when used in CreateEngineRequest, one DataStore // id must be provided as the system will use it for necessary initializations. DataStoreIds []string `json:"dataStoreIds,omitempty"` + // DisableAnalytics: Optional. Whether to disable analytics for searches + // performed on this engine. + DisableAnalytics bool `json:"disableAnalytics,omitempty"` // DisplayName: Required. The display name of the engine. Should be human // readable. UTF-8 encoded string with limit of 1024 characters. DisplayName string `json:"displayName,omitempty"` @@ -14284,6 +14304,14 @@ func (s GoogleCloudDiscoveryengineV1alphaUserInfo) MarshalJSON() ([]byte, error) type GoogleCloudDiscoveryengineV1alphaWorkspaceConfig struct { // DasherCustomerId: Obfuscated Dasher customer ID. DasherCustomerId string `json:"dasherCustomerId,omitempty"` + // SuperAdminEmailAddress: Optional. The super admin email address for the + // workspace that will be used for access token generation. For now we only use + // it for Native Google Drive connector data ingestion. + SuperAdminEmailAddress string `json:"superAdminEmailAddress,omitempty"` + // SuperAdminServiceAccount: Optional. The super admin service account for the + // workspace that will be used for access token generation. For now we only use + // it for Native Google Drive connector data ingestion. + SuperAdminServiceAccount string `json:"superAdminServiceAccount,omitempty"` // Type: The Google Workspace data source. // // Possible values: @@ -14764,6 +14792,9 @@ type GoogleCloudDiscoveryengineV1betaCustomTuningModel struct { CreateTime string `json:"createTime,omitempty"` // DisplayName: The display name of the model. DisplayName string `json:"displayName,omitempty"` + // ErrorMessage: Currently this is only populated if the model state is + // `INPUT_VALIDATION_FAILED`. + ErrorMessage string `json:"errorMessage,omitempty"` // Metrics: The metrics of the trained model. Metrics map[string]float64 `json:"metrics,omitempty"` // ModelState: The state that the model is in (e.g.`TRAINING` or @@ -15294,6 +15325,9 @@ type GoogleCloudDiscoveryengineV1betaEngine struct { // associated here. Note that when used in CreateEngineRequest, one DataStore // id must be provided as the system will use it for necessary initializations. DataStoreIds []string `json:"dataStoreIds,omitempty"` + // DisableAnalytics: Optional. Whether to disable analytics for searches + // performed on this engine. + DisableAnalytics bool `json:"disableAnalytics,omitempty"` // DisplayName: Required. The display name of the engine. Should be human // readable. UTF-8 encoded string with limit of 1024 characters. DisplayName string `json:"displayName,omitempty"` @@ -17948,6 +17982,14 @@ func (s GoogleCloudDiscoveryengineV1betaUserInfo) MarshalJSON() ([]byte, error) type GoogleCloudDiscoveryengineV1betaWorkspaceConfig struct { // DasherCustomerId: Obfuscated Dasher customer ID. DasherCustomerId string `json:"dasherCustomerId,omitempty"` + // SuperAdminEmailAddress: Optional. The super admin email address for the + // workspace that will be used for access token generation. For now we only use + // it for Native Google Drive connector data ingestion. + SuperAdminEmailAddress string `json:"superAdminEmailAddress,omitempty"` + // SuperAdminServiceAccount: Optional. The super admin service account for the + // workspace that will be used for access token generation. For now we only use + // it for Native Google Drive connector data ingestion. + SuperAdminServiceAccount string `json:"superAdminServiceAccount,omitempty"` // Type: The Google Workspace data source. // // Possible values: @@ -38454,7 +38496,7 @@ func (c *ProjectsLocationsIdentityMappingStoresOperationsGetCall) doRequest(alt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "discoveryengine.projects.locations.identity_mapping_stores.operations.get" call. +// Do executes the "discoveryengine.projects.locations.identityMappingStores.operations.get" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use @@ -38583,7 +38625,7 @@ func (c *ProjectsLocationsIdentityMappingStoresOperationsListCall) doRequest(alt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "discoveryengine.projects.locations.identity_mapping_stores.operations.list" call. +// Do executes the "discoveryengine.projects.locations.identityMappingStores.operations.list" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a // response was returned at all) in error.(*googleapi.Error).Header. Use diff --git a/discoveryengine/v1alpha/discoveryengine-api.json b/discoveryengine/v1alpha/discoveryengine-api.json index 97b8cebeb0..468e585edd 100644 --- a/discoveryengine/v1alpha/discoveryengine-api.json +++ b/discoveryengine/v1alpha/discoveryengine-api.json @@ -6709,15 +6709,15 @@ } } }, - "identity_mapping_stores": { + "identityMappingStores": { "resources": { "operations": { "methods": { "get": { "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/identity_mapping_stores/{identity_mapping_storesId}/operations/{operationsId}", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/identityMappingStores/{identityMappingStoresId}/operations/{operationsId}", "httpMethod": "GET", - "id": "discoveryengine.projects.locations.identity_mapping_stores.operations.get", + "id": "discoveryengine.projects.locations.identityMappingStores.operations.get", "parameterOrder": [ "name" ], @@ -6725,7 +6725,7 @@ "name": { "description": "The name of the operation resource.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/identity_mapping_stores/[^/]+/operations/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/identityMappingStores/[^/]+/operations/[^/]+$", "required": true, "type": "string" } @@ -6740,9 +6740,9 @@ }, "list": { "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", - "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/identity_mapping_stores/{identity_mapping_storesId}/operations", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/identityMappingStores/{identityMappingStoresId}/operations", "httpMethod": "GET", - "id": "discoveryengine.projects.locations.identity_mapping_stores.operations.list", + "id": "discoveryengine.projects.locations.identityMappingStores.operations.list", "parameterOrder": [ "name" ], @@ -6755,7 +6755,7 @@ "name": { "description": "The name of the operation's parent resource.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/identity_mapping_stores/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/identityMappingStores/[^/]+$", "required": true, "type": "string" }, @@ -7517,7 +7517,7 @@ } } }, - "revision": "20240920", + "revision": "20240930", "rootUrl": "https://discoveryengine.googleapis.com/", "schemas": { "GoogleApiDistribution": { @@ -8531,6 +8531,10 @@ }, "type": "array" }, + "disableAnalytics": { + "description": "Optional. Whether to disable analytics for searches performed on this engine.", + "type": "boolean" + }, "displayName": { "description": "Required. The display name of the engine. Should be human readable. UTF-8 encoded string with limit of 1024 characters.", "type": "string" @@ -9342,6 +9346,14 @@ "description": "Obfuscated Dasher customer ID.", "type": "string" }, + "superAdminEmailAddress": { + "description": "Optional. The super admin email address for the workspace that will be used for access token generation. For now we only use it for Native Google Drive connector data ingestion.", + "type": "string" + }, + "superAdminServiceAccount": { + "description": "Optional. The super admin service account for the workspace that will be used for access token generation. For now we only use it for Native Google Drive connector data ingestion.", + "type": "string" + }, "type": { "description": "The Google Workspace data source.", "enum": [ @@ -9790,6 +9802,10 @@ "format": "int32", "type": "integer" }, + "naturalLanguageQueryUnderstandingSpec": { + "$ref": "GoogleCloudDiscoveryengineV1alphaSearchRequestNaturalLanguageQueryUnderstandingSpec", + "description": "Optional. Specification to enable natural language understanding capabilities for search requests." + }, "orderBy": { "description": "The order in which documents are returned. Documents can be ordered by a field in an Document object. Leave it unset if ordered by relevance. `order_by` expression is case-sensitive. For more information on ordering, see [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order) If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.", "type": "string" @@ -11529,6 +11545,10 @@ "description": "The display name of the model.", "type": "string" }, + "errorMessage": { + "description": "Currently this is only populated if the model state is `INPUT_VALIDATION_FAILED`.", + "type": "string" + }, "metrics": { "additionalProperties": { "format": "double", @@ -12189,6 +12209,10 @@ }, "type": "array" }, + "disableAnalytics": { + "description": "Optional. Whether to disable analytics for searches performed on this engine.", + "type": "boolean" + }, "displayName": { "description": "Required. The display name of the engine. Should be human readable. UTF-8 encoded string with limit of 1024 characters.", "type": "string" @@ -17120,6 +17144,14 @@ "description": "Obfuscated Dasher customer ID.", "type": "string" }, + "superAdminEmailAddress": { + "description": "Optional. The super admin email address for the workspace that will be used for access token generation. For now we only use it for Native Google Drive connector data ingestion.", + "type": "string" + }, + "superAdminServiceAccount": { + "description": "Optional. The super admin service account for the workspace that will be used for access token generation. For now we only use it for Native Google Drive connector data ingestion.", + "type": "string" + }, "type": { "description": "The Google Workspace data source.", "enum": [ @@ -17460,6 +17492,10 @@ "description": "The display name of the model.", "type": "string" }, + "errorMessage": { + "description": "Currently this is only populated if the model state is `INPUT_VALIDATION_FAILED`.", + "type": "string" + }, "metrics": { "additionalProperties": { "format": "double", @@ -17903,6 +17939,10 @@ }, "type": "array" }, + "disableAnalytics": { + "description": "Optional. Whether to disable analytics for searches performed on this engine.", + "type": "boolean" + }, "displayName": { "description": "Required. The display name of the engine. Should be human readable. UTF-8 encoded string with limit of 1024 characters.", "type": "string" @@ -19688,6 +19728,14 @@ "description": "Obfuscated Dasher customer ID.", "type": "string" }, + "superAdminEmailAddress": { + "description": "Optional. The super admin email address for the workspace that will be used for access token generation. For now we only use it for Native Google Drive connector data ingestion.", + "type": "string" + }, + "superAdminServiceAccount": { + "description": "Optional. The super admin service account for the workspace that will be used for access token generation. For now we only use it for Native Google Drive connector data ingestion.", + "type": "string" + }, "type": { "description": "The Google Workspace data source.", "enum": [ diff --git a/discoveryengine/v1alpha/discoveryengine-gen.go b/discoveryengine/v1alpha/discoveryengine-gen.go index 0304e26ff5..1b3ba0c15d 100644 --- a/discoveryengine/v1alpha/discoveryengine-gen.go +++ b/discoveryengine/v1alpha/discoveryengine-gen.go @@ -2527,6 +2527,9 @@ type GoogleCloudDiscoveryengineV1Engine struct { // associated here. Note that when used in CreateEngineRequest, one DataStore // id must be provided as the system will use it for necessary initializations. DataStoreIds []string `json:"dataStoreIds,omitempty"` + // DisableAnalytics: Optional. Whether to disable analytics for searches + // performed on this engine. + DisableAnalytics bool `json:"disableAnalytics,omitempty"` // DisplayName: Required. The display name of the engine. Should be human // readable. UTF-8 encoded string with limit of 1024 characters. DisplayName string `json:"displayName,omitempty"` @@ -3595,6 +3598,14 @@ func (s GoogleCloudDiscoveryengineV1UpdateTargetSiteMetadata) MarshalJSON() ([]b type GoogleCloudDiscoveryengineV1WorkspaceConfig struct { // DasherCustomerId: Obfuscated Dasher customer ID. DasherCustomerId string `json:"dasherCustomerId,omitempty"` + // SuperAdminEmailAddress: Optional. The super admin email address for the + // workspace that will be used for access token generation. For now we only use + // it for Native Google Drive connector data ingestion. + SuperAdminEmailAddress string `json:"superAdminEmailAddress,omitempty"` + // SuperAdminServiceAccount: Optional. The super admin service account for the + // workspace that will be used for access token generation. For now we only use + // it for Native Google Drive connector data ingestion. + SuperAdminServiceAccount string `json:"superAdminServiceAccount,omitempty"` // Type: The Google Workspace data source. // // Possible values: @@ -4185,6 +4196,9 @@ type GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchParams s // MaxReturnResults: Number of search results to return. The default value is // 10. MaxReturnResults int64 `json:"maxReturnResults,omitempty"` + // NaturalLanguageQueryUnderstandingSpec: Optional. Specification to enable + // natural language understanding capabilities for search requests. + NaturalLanguageQueryUnderstandingSpec *GoogleCloudDiscoveryengineV1alphaSearchRequestNaturalLanguageQueryUnderstandingSpec `json:"naturalLanguageQueryUnderstandingSpec,omitempty"` // OrderBy: The order in which documents are returned. Documents can be ordered // by a field in an Document object. Leave it unset if ordered by relevance. // `order_by` expression is case-sensitive. For more information on ordering, @@ -6654,6 +6668,9 @@ type GoogleCloudDiscoveryengineV1alphaCustomTuningModel struct { CreateTime string `json:"createTime,omitempty"` // DisplayName: The display name of the model. DisplayName string `json:"displayName,omitempty"` + // ErrorMessage: Currently this is only populated if the model state is + // `INPUT_VALIDATION_FAILED`. + ErrorMessage string `json:"errorMessage,omitempty"` // Metrics: The metrics of the trained model. Metrics map[string]float64 `json:"metrics,omitempty"` // ModelState: The state that the model is in (e.g.`TRAINING` or @@ -7500,6 +7517,9 @@ type GoogleCloudDiscoveryengineV1alphaEngine struct { // associated here. Note that when used in CreateEngineRequest, one DataStore // id must be provided as the system will use it for necessary initializations. DataStoreIds []string `json:"dataStoreIds,omitempty"` + // DisableAnalytics: Optional. Whether to disable analytics for searches + // performed on this engine. + DisableAnalytics bool `json:"disableAnalytics,omitempty"` // DisplayName: Required. The display name of the engine. Should be human // readable. UTF-8 encoded string with limit of 1024 characters. DisplayName string `json:"displayName,omitempty"` @@ -14751,6 +14771,14 @@ func (s GoogleCloudDiscoveryengineV1alphaUserInfo) MarshalJSON() ([]byte, error) type GoogleCloudDiscoveryengineV1alphaWorkspaceConfig struct { // DasherCustomerId: Obfuscated Dasher customer ID. DasherCustomerId string `json:"dasherCustomerId,omitempty"` + // SuperAdminEmailAddress: Optional. The super admin email address for the + // workspace that will be used for access token generation. For now we only use + // it for Native Google Drive connector data ingestion. + SuperAdminEmailAddress string `json:"superAdminEmailAddress,omitempty"` + // SuperAdminServiceAccount: Optional. The super admin service account for the + // workspace that will be used for access token generation. For now we only use + // it for Native Google Drive connector data ingestion. + SuperAdminServiceAccount string `json:"superAdminServiceAccount,omitempty"` // Type: The Google Workspace data source. // // Possible values: @@ -15231,6 +15259,9 @@ type GoogleCloudDiscoveryengineV1betaCustomTuningModel struct { CreateTime string `json:"createTime,omitempty"` // DisplayName: The display name of the model. DisplayName string `json:"displayName,omitempty"` + // ErrorMessage: Currently this is only populated if the model state is + // `INPUT_VALIDATION_FAILED`. + ErrorMessage string `json:"errorMessage,omitempty"` // Metrics: The metrics of the trained model. Metrics map[string]float64 `json:"metrics,omitempty"` // ModelState: The state that the model is in (e.g.`TRAINING` or @@ -15761,6 +15792,9 @@ type GoogleCloudDiscoveryengineV1betaEngine struct { // associated here. Note that when used in CreateEngineRequest, one DataStore // id must be provided as the system will use it for necessary initializations. DataStoreIds []string `json:"dataStoreIds,omitempty"` + // DisableAnalytics: Optional. Whether to disable analytics for searches + // performed on this engine. + DisableAnalytics bool `json:"disableAnalytics,omitempty"` // DisplayName: Required. The display name of the engine. Should be human // readable. UTF-8 encoded string with limit of 1024 characters. DisplayName string `json:"displayName,omitempty"` @@ -18415,6 +18449,14 @@ func (s GoogleCloudDiscoveryengineV1betaUserInfo) MarshalJSON() ([]byte, error) type GoogleCloudDiscoveryengineV1betaWorkspaceConfig struct { // DasherCustomerId: Obfuscated Dasher customer ID. DasherCustomerId string `json:"dasherCustomerId,omitempty"` + // SuperAdminEmailAddress: Optional. The super admin email address for the + // workspace that will be used for access token generation. For now we only use + // it for Native Google Drive connector data ingestion. + SuperAdminEmailAddress string `json:"superAdminEmailAddress,omitempty"` + // SuperAdminServiceAccount: Optional. The super admin service account for the + // workspace that will be used for access token generation. For now we only use + // it for Native Google Drive connector data ingestion. + SuperAdminServiceAccount string `json:"superAdminServiceAccount,omitempty"` // Type: The Google Workspace data source. // // Possible values: @@ -43110,7 +43152,7 @@ func (c *ProjectsLocationsIdentityMappingStoresOperationsGetCall) doRequest(alt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "discoveryengine.projects.locations.identity_mapping_stores.operations.get" call. +// Do executes the "discoveryengine.projects.locations.identityMappingStores.operations.get" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use @@ -43239,7 +43281,7 @@ func (c *ProjectsLocationsIdentityMappingStoresOperationsListCall) doRequest(alt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "discoveryengine.projects.locations.identity_mapping_stores.operations.list" call. +// Do executes the "discoveryengine.projects.locations.identityMappingStores.operations.list" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a // response was returned at all) in error.(*googleapi.Error).Header. Use diff --git a/discoveryengine/v1beta/discoveryengine-api.json b/discoveryengine/v1beta/discoveryengine-api.json index a974c6f037..bb91b39a5e 100644 --- a/discoveryengine/v1beta/discoveryengine-api.json +++ b/discoveryengine/v1beta/discoveryengine-api.json @@ -6158,6 +6158,80 @@ } } }, + "identityMappingStores": { + "resources": { + "operations": { + "methods": { + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/identityMappingStores/{identityMappingStoresId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "discoveryengine.projects.locations.identityMappingStores.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/identityMappingStores/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/identityMappingStores/{identityMappingStoresId}/operations", + "httpMethod": "GET", + "id": "discoveryengine.projects.locations.identityMappingStores.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/identityMappingStores/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, "operations": { "methods": { "get": { @@ -6786,7 +6860,7 @@ } } }, - "revision": "20240920", + "revision": "20240930", "rootUrl": "https://discoveryengine.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -7614,6 +7688,10 @@ }, "type": "array" }, + "disableAnalytics": { + "description": "Optional. Whether to disable analytics for searches performed on this engine.", + "type": "boolean" + }, "displayName": { "description": "Required. The display name of the engine. Should be human readable. UTF-8 encoded string with limit of 1024 characters.", "type": "string" @@ -8425,6 +8503,14 @@ "description": "Obfuscated Dasher customer ID.", "type": "string" }, + "superAdminEmailAddress": { + "description": "Optional. The super admin email address for the workspace that will be used for access token generation. For now we only use it for Native Google Drive connector data ingestion.", + "type": "string" + }, + "superAdminServiceAccount": { + "description": "Optional. The super admin service account for the workspace that will be used for access token generation. For now we only use it for Native Google Drive connector data ingestion.", + "type": "string" + }, "type": { "description": "The Google Workspace data source.", "enum": [ @@ -9273,6 +9359,10 @@ "description": "The display name of the model.", "type": "string" }, + "errorMessage": { + "description": "Currently this is only populated if the model state is `INPUT_VALIDATION_FAILED`.", + "type": "string" + }, "metrics": { "additionalProperties": { "format": "double", @@ -9725,6 +9815,10 @@ }, "type": "array" }, + "disableAnalytics": { + "description": "Optional. Whether to disable analytics for searches performed on this engine.", + "type": "boolean" + }, "displayName": { "description": "Required. The display name of the engine. Should be human readable. UTF-8 encoded string with limit of 1024 characters.", "type": "string" @@ -12161,6 +12255,14 @@ "description": "Obfuscated Dasher customer ID.", "type": "string" }, + "superAdminEmailAddress": { + "description": "Optional. The super admin email address for the workspace that will be used for access token generation. For now we only use it for Native Google Drive connector data ingestion.", + "type": "string" + }, + "superAdminServiceAccount": { + "description": "Optional. The super admin service account for the workspace that will be used for access token generation. For now we only use it for Native Google Drive connector data ingestion.", + "type": "string" + }, "type": { "description": "The Google Workspace data source.", "enum": [ @@ -12590,6 +12692,10 @@ "format": "int32", "type": "integer" }, + "naturalLanguageQueryUnderstandingSpec": { + "$ref": "GoogleCloudDiscoveryengineV1betaSearchRequestNaturalLanguageQueryUnderstandingSpec", + "description": "Optional. Specification to enable natural language understanding capabilities for search requests." + }, "orderBy": { "description": "The order in which documents are returned. Documents can be ordered by a field in an Document object. Leave it unset if ordered by relevance. `order_by` expression is case-sensitive. For more information on ordering, see [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order) If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.", "type": "string" @@ -14229,6 +14335,10 @@ "description": "The display name of the model.", "type": "string" }, + "errorMessage": { + "description": "Currently this is only populated if the model state is `INPUT_VALIDATION_FAILED`.", + "type": "string" + }, "metrics": { "additionalProperties": { "format": "double", @@ -14844,6 +14954,10 @@ }, "type": "array" }, + "disableAnalytics": { + "description": "Optional. Whether to disable analytics for searches performed on this engine.", + "type": "boolean" + }, "displayName": { "description": "Required. The display name of the engine. Should be human readable. UTF-8 encoded string with limit of 1024 characters.", "type": "string" @@ -18889,6 +19003,14 @@ "description": "Obfuscated Dasher customer ID.", "type": "string" }, + "superAdminEmailAddress": { + "description": "Optional. The super admin email address for the workspace that will be used for access token generation. For now we only use it for Native Google Drive connector data ingestion.", + "type": "string" + }, + "superAdminServiceAccount": { + "description": "Optional. The super admin service account for the workspace that will be used for access token generation. For now we only use it for Native Google Drive connector data ingestion.", + "type": "string" + }, "type": { "description": "The Google Workspace data source.", "enum": [ diff --git a/discoveryengine/v1beta/discoveryengine-gen.go b/discoveryengine/v1beta/discoveryengine-gen.go index d738f40c08..450ed6de94 100644 --- a/discoveryengine/v1beta/discoveryengine-gen.go +++ b/discoveryengine/v1beta/discoveryengine-gen.go @@ -175,6 +175,7 @@ func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs.DataStores = NewProjectsLocationsDataStoresService(s) rs.Evaluations = NewProjectsLocationsEvaluationsService(s) rs.GroundingConfigs = NewProjectsLocationsGroundingConfigsService(s) + rs.IdentityMappingStores = NewProjectsLocationsIdentityMappingStoresService(s) rs.Operations = NewProjectsLocationsOperationsService(s) rs.RankingConfigs = NewProjectsLocationsRankingConfigsService(s) rs.SampleQuerySets = NewProjectsLocationsSampleQuerySetsService(s) @@ -193,6 +194,8 @@ type ProjectsLocationsService struct { GroundingConfigs *ProjectsLocationsGroundingConfigsService + IdentityMappingStores *ProjectsLocationsIdentityMappingStoresService + Operations *ProjectsLocationsOperationsService RankingConfigs *ProjectsLocationsRankingConfigsService @@ -838,6 +841,27 @@ type ProjectsLocationsGroundingConfigsService struct { s *Service } +func NewProjectsLocationsIdentityMappingStoresService(s *Service) *ProjectsLocationsIdentityMappingStoresService { + rs := &ProjectsLocationsIdentityMappingStoresService{s: s} + rs.Operations = NewProjectsLocationsIdentityMappingStoresOperationsService(s) + return rs +} + +type ProjectsLocationsIdentityMappingStoresService struct { + s *Service + + Operations *ProjectsLocationsIdentityMappingStoresOperationsService +} + +func NewProjectsLocationsIdentityMappingStoresOperationsService(s *Service) *ProjectsLocationsIdentityMappingStoresOperationsService { + rs := &ProjectsLocationsIdentityMappingStoresOperationsService{s: s} + return rs +} + +type ProjectsLocationsIdentityMappingStoresOperationsService struct { + s *Service +} + func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService { rs := &ProjectsLocationsOperationsService{s: s} return rs @@ -2054,6 +2078,9 @@ type GoogleCloudDiscoveryengineV1Engine struct { // associated here. Note that when used in CreateEngineRequest, one DataStore // id must be provided as the system will use it for necessary initializations. DataStoreIds []string `json:"dataStoreIds,omitempty"` + // DisableAnalytics: Optional. Whether to disable analytics for searches + // performed on this engine. + DisableAnalytics bool `json:"disableAnalytics,omitempty"` // DisplayName: Required. The display name of the engine. Should be human // readable. UTF-8 encoded string with limit of 1024 characters. DisplayName string `json:"displayName,omitempty"` @@ -3122,6 +3149,14 @@ func (s GoogleCloudDiscoveryengineV1UpdateTargetSiteMetadata) MarshalJSON() ([]b type GoogleCloudDiscoveryengineV1WorkspaceConfig struct { // DasherCustomerId: Obfuscated Dasher customer ID. DasherCustomerId string `json:"dasherCustomerId,omitempty"` + // SuperAdminEmailAddress: Optional. The super admin email address for the + // workspace that will be used for access token generation. For now we only use + // it for Native Google Drive connector data ingestion. + SuperAdminEmailAddress string `json:"superAdminEmailAddress,omitempty"` + // SuperAdminServiceAccount: Optional. The super admin service account for the + // workspace that will be used for access token generation. For now we only use + // it for Native Google Drive connector data ingestion. + SuperAdminServiceAccount string `json:"superAdminServiceAccount,omitempty"` // Type: The Google Workspace data source. // // Possible values: @@ -4246,6 +4281,9 @@ type GoogleCloudDiscoveryengineV1alphaCustomTuningModel struct { CreateTime string `json:"createTime,omitempty"` // DisplayName: The display name of the model. DisplayName string `json:"displayName,omitempty"` + // ErrorMessage: Currently this is only populated if the model state is + // `INPUT_VALIDATION_FAILED`. + ErrorMessage string `json:"errorMessage,omitempty"` // Metrics: The metrics of the trained model. Metrics map[string]float64 `json:"metrics,omitempty"` // ModelState: The state that the model is in (e.g.`TRAINING` or @@ -4786,6 +4824,9 @@ type GoogleCloudDiscoveryengineV1alphaEngine struct { // associated here. Note that when used in CreateEngineRequest, one DataStore // id must be provided as the system will use it for necessary initializations. DataStoreIds []string `json:"dataStoreIds,omitempty"` + // DisableAnalytics: Optional. Whether to disable analytics for searches + // performed on this engine. + DisableAnalytics bool `json:"disableAnalytics,omitempty"` // DisplayName: Required. The display name of the engine. Should be human // readable. UTF-8 encoded string with limit of 1024 characters. DisplayName string `json:"displayName,omitempty"` @@ -8268,6 +8309,14 @@ func (s GoogleCloudDiscoveryengineV1alphaUserInfo) MarshalJSON() ([]byte, error) type GoogleCloudDiscoveryengineV1alphaWorkspaceConfig struct { // DasherCustomerId: Obfuscated Dasher customer ID. DasherCustomerId string `json:"dasherCustomerId,omitempty"` + // SuperAdminEmailAddress: Optional. The super admin email address for the + // workspace that will be used for access token generation. For now we only use + // it for Native Google Drive connector data ingestion. + SuperAdminEmailAddress string `json:"superAdminEmailAddress,omitempty"` + // SuperAdminServiceAccount: Optional. The super admin service account for the + // workspace that will be used for access token generation. For now we only use + // it for Native Google Drive connector data ingestion. + SuperAdminServiceAccount string `json:"superAdminServiceAccount,omitempty"` // Type: The Google Workspace data source. // // Possible values: @@ -8826,6 +8875,9 @@ type GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchParams st // MaxReturnResults: Number of search results to return. The default value is // 10. MaxReturnResults int64 `json:"maxReturnResults,omitempty"` + // NaturalLanguageQueryUnderstandingSpec: Optional. Specification to enable + // natural language understanding capabilities for search requests. + NaturalLanguageQueryUnderstandingSpec *GoogleCloudDiscoveryengineV1betaSearchRequestNaturalLanguageQueryUnderstandingSpec `json:"naturalLanguageQueryUnderstandingSpec,omitempty"` // OrderBy: The order in which documents are returned. Documents can be ordered // by a field in an Document object. Leave it unset if ordered by relevance. // `order_by` expression is case-sensitive. For more information on ordering, @@ -11149,6 +11201,9 @@ type GoogleCloudDiscoveryengineV1betaCustomTuningModel struct { CreateTime string `json:"createTime,omitempty"` // DisplayName: The display name of the model. DisplayName string `json:"displayName,omitempty"` + // ErrorMessage: Currently this is only populated if the model state is + // `INPUT_VALIDATION_FAILED`. + ErrorMessage string `json:"errorMessage,omitempty"` // Metrics: The metrics of the trained model. Metrics map[string]float64 `json:"metrics,omitempty"` // ModelState: The state that the model is in (e.g.`TRAINING` or @@ -11923,6 +11978,9 @@ type GoogleCloudDiscoveryengineV1betaEngine struct { // associated here. Note that when used in CreateEngineRequest, one DataStore // id must be provided as the system will use it for necessary initializations. DataStoreIds []string `json:"dataStoreIds,omitempty"` + // DisableAnalytics: Optional. Whether to disable analytics for searches + // performed on this engine. + DisableAnalytics bool `json:"disableAnalytics,omitempty"` // DisplayName: Required. The display name of the engine. Should be human // readable. UTF-8 encoded string with limit of 1024 characters. DisplayName string `json:"displayName,omitempty"` @@ -17963,6 +18021,14 @@ func (s GoogleCloudDiscoveryengineV1betaUserInfo) MarshalJSON() ([]byte, error) type GoogleCloudDiscoveryengineV1betaWorkspaceConfig struct { // DasherCustomerId: Obfuscated Dasher customer ID. DasherCustomerId string `json:"dasherCustomerId,omitempty"` + // SuperAdminEmailAddress: Optional. The super admin email address for the + // workspace that will be used for access token generation. For now we only use + // it for Native Google Drive connector data ingestion. + SuperAdminEmailAddress string `json:"superAdminEmailAddress,omitempty"` + // SuperAdminServiceAccount: Optional. The super admin service account for the + // workspace that will be used for access token generation. For now we only use + // it for Native Google Drive connector data ingestion. + SuperAdminServiceAccount string `json:"superAdminServiceAccount,omitempty"` // Type: The Google Workspace data source. // // Possible values: @@ -40462,6 +40528,266 @@ func (c *ProjectsLocationsGroundingConfigsCheckCall) Do(opts ...googleapi.CallOp return ret, nil } +type ProjectsLocationsIdentityMappingStoresOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the latest state of a long-running operation. Clients can use this +// method to poll the operation result at intervals as recommended by the API +// service. +// +// - name: The name of the operation resource. +func (r *ProjectsLocationsIdentityMappingStoresOperationsService) Get(name string) *ProjectsLocationsIdentityMappingStoresOperationsGetCall { + c := &ProjectsLocationsIdentityMappingStoresOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsIdentityMappingStoresOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsIdentityMappingStoresOperationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsIdentityMappingStoresOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsIdentityMappingStoresOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsIdentityMappingStoresOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsIdentityMappingStoresOperationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsIdentityMappingStoresOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIdentityMappingStoresOperationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "discoveryengine.projects.locations.identityMappingStores.operations.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsIdentityMappingStoresOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsIdentityMappingStoresOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists operations that match the specified filter in the request. If +// the server doesn't support this method, it returns `UNIMPLEMENTED`. +// +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsIdentityMappingStoresOperationsService) List(name string) *ProjectsLocationsIdentityMappingStoresOperationsListCall { + c := &ProjectsLocationsIdentityMappingStoresOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list filter. +func (c *ProjectsLocationsIdentityMappingStoresOperationsListCall) Filter(filter string) *ProjectsLocationsIdentityMappingStoresOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list page +// size. +func (c *ProjectsLocationsIdentityMappingStoresOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsIdentityMappingStoresOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list page +// token. +func (c *ProjectsLocationsIdentityMappingStoresOperationsListCall) PageToken(pageToken string) *ProjectsLocationsIdentityMappingStoresOperationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsIdentityMappingStoresOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIdentityMappingStoresOperationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsIdentityMappingStoresOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIdentityMappingStoresOperationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsIdentityMappingStoresOperationsListCall) Context(ctx context.Context) *ProjectsLocationsIdentityMappingStoresOperationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsIdentityMappingStoresOperationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIdentityMappingStoresOperationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}/operations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "discoveryengine.projects.locations.identityMappingStores.operations.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsIdentityMappingStoresOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningListOperationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsIdentityMappingStoresOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + type ProjectsLocationsOperationsGetCall struct { s *Service name string diff --git a/firebaseml/v2beta/firebaseml-api.json b/firebaseml/v2beta/firebaseml-api.json index 0065084edd..07dccbe6e4 100644 --- a/firebaseml/v2beta/firebaseml-api.json +++ b/firebaseml/v2beta/firebaseml-api.json @@ -206,7 +206,7 @@ } } }, - "revision": "20240925", + "revision": "20240930", "rootUrl": "https://firebaseml.googleapis.com/", "schemas": { "Date": { @@ -1097,7 +1097,7 @@ "id": "GoogleCloudAiplatformV1beta1RetrievalMetadata", "properties": { "googleSearchDynamicRetrievalScore": { - "description": "Optional. Score indicating how likely information from google search could help answer the prompt. The score is in the range [0, 1], where 0 is the least likely and 1 is the most likely. This score is only populated when google search grounding and dynamic retrieval is enabled. It will be compared to the threshold to determine whether to trigger google search.", + "description": "Optional. Score indicating how likely information from Google Search could help answer the prompt. The score is in the range `[0, 1]`, where 0 is the least likely and 1 is the most likely. This score is only populated when Google Search grounding and dynamic retrieval is enabled. It will be compared to the threshold to determine whether to trigger Google Search.", "format": "float", "type": "number" } diff --git a/firebaseml/v2beta/firebaseml-gen.go b/firebaseml/v2beta/firebaseml-gen.go index 9387972130..38e823618c 100644 --- a/firebaseml/v2beta/firebaseml-gen.go +++ b/firebaseml/v2beta/firebaseml-gen.go @@ -1376,11 +1376,11 @@ func (s GoogleCloudAiplatformV1beta1Retrieval) MarshalJSON() ([]byte, error) { // in the grounding flow. type GoogleCloudAiplatformV1beta1RetrievalMetadata struct { // GoogleSearchDynamicRetrievalScore: Optional. Score indicating how likely - // information from google search could help answer the prompt. The score is in - // the range [0, 1], where 0 is the least likely and 1 is the most likely. This - // score is only populated when google search grounding and dynamic retrieval - // is enabled. It will be compared to the threshold to determine whether to - // trigger google search. + // information from Google Search could help answer the prompt. The score is in + // the range `[0, 1]`, where 0 is the least likely and 1 is the most likely. + // This score is only populated when Google Search grounding and dynamic + // retrieval is enabled. It will be compared to the threshold to determine + // whether to trigger Google Search. GoogleSearchDynamicRetrievalScore float64 `json:"googleSearchDynamicRetrievalScore,omitempty"` // ForceSendFields is a list of field names (e.g. // "GoogleSearchDynamicRetrievalScore") to unconditionally include in API diff --git a/migrationcenter/v1/migrationcenter-api.json b/migrationcenter/v1/migrationcenter-api.json index 0b802f831b..0ff1b305c5 100644 --- a/migrationcenter/v1/migrationcenter-api.json +++ b/migrationcenter/v1/migrationcenter-api.json @@ -2309,7 +2309,7 @@ } } }, - "revision": "20240906", + "revision": "20240926", "rootUrl": "https://migrationcenter.googleapis.com/", "schemas": { "AddAssetsToGroupRequest": { @@ -4365,7 +4365,8 @@ "type": "integer" }, "cpuThreadCount": { - "description": "Number of CPU threads allocated to the machine.", + "deprecated": true, + "description": "Deprecated: use MachineDetails.core_count instead. Number of CPU threads allocated to the machine.", "format": "int32", "type": "integer" }, @@ -5199,7 +5200,7 @@ "properties": { "coreCountHistogram": { "$ref": "ReportSummaryHistogramChartData", - "description": "Histogram showing a distribution of CPU core counts." + "description": "Histogram showing a distribution of logical CPU core counts." }, "memoryBytesHistogram": { "$ref": "ReportSummaryHistogramChartData", diff --git a/migrationcenter/v1/migrationcenter-gen.go b/migrationcenter/v1/migrationcenter-gen.go index ae3992f3ec..f92271f4be 100644 --- a/migrationcenter/v1/migrationcenter-gen.go +++ b/migrationcenter/v1/migrationcenter-gen.go @@ -2787,7 +2787,8 @@ type MachineArchitectureDetails struct { CpuName string `json:"cpuName,omitempty"` // CpuSocketCount: Number of processor sockets allocated to the machine. CpuSocketCount int64 `json:"cpuSocketCount,omitempty"` - // CpuThreadCount: Number of CPU threads allocated to the machine. + // CpuThreadCount: Deprecated: use MachineDetails.core_count instead. Number of + // CPU threads allocated to the machine. CpuThreadCount int64 `json:"cpuThreadCount,omitempty"` // FirmwareType: Firmware type. // @@ -3805,7 +3806,8 @@ func (s ReportSummary) MarshalJSON() ([]byte, error) { // ReportSummaryAssetAggregateStats: Aggregate statistics for a collection of // assets. type ReportSummaryAssetAggregateStats struct { - // CoreCountHistogram: Histogram showing a distribution of CPU core counts. + // CoreCountHistogram: Histogram showing a distribution of logical CPU core + // counts. CoreCountHistogram *ReportSummaryHistogramChartData `json:"coreCountHistogram,omitempty"` // MemoryBytesHistogram: Histogram showing a distribution of memory sizes. MemoryBytesHistogram *ReportSummaryHistogramChartData `json:"memoryBytesHistogram,omitempty"` diff --git a/securitycenter/v1beta2/securitycenter-api.json b/securitycenter/v1beta2/securitycenter-api.json index 341cfd521c..931046c2ed 100644 --- a/securitycenter/v1beta2/securitycenter-api.json +++ b/securitycenter/v1beta2/securitycenter-api.json @@ -1993,7 +1993,7 @@ } } }, - "revision": "20240918", + "revision": "20240926", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { @@ -2291,6 +2291,10 @@ "description": "Represents an Azure resource group.", "id": "AzureResourceGroup", "properties": { + "id": { + "description": "The ID of the Azure resource group.", + "type": "string" + }, "name": { "description": "The name of the Azure resource group. This is not a UUID.", "type": "string" @@ -2385,6 +2389,17 @@ }, "type": "object" }, + "CelPolicySpec": { + "description": "YAML-based rule that uses CEL, which supports the declaration of variables and a filtering predicate. A vulnerable resource is emitted if the evaluation is false. Given: 1) the resource types as: - resource_types: \"compute.googleapis.com/Instance\" - resource_types: \"compute.googleapis.com/Firewall\" 2) the CEL policy spec as: name: bad_instance resource_filters: - name: instance resource_type: compute.googleapis.com/Instance filter: \u003e instance.status == 'RUNNING' \u0026\u0026 'public' in instance.tags.items - name: firewall resource_type: compute.googleapis.com/Firewall filter: \u003e firewall.direction == 'INGRESS' \u0026\u0026 !firewall.disabled \u0026\u0026 firewall.allowed.exists(rule, rule.IPProtocol.upperAscii() in ['TCP', 'ALL'] \u0026\u0026 rule.ports.exists(port, network.portsInRange(port, '11-256'))) rule: match: - predicate: \u003e instance.networkInterfaces.exists(net, firewall.network == net.network) output: \u003e {'message': 'Compute instance with publicly accessible ports', 'instance': instance.name} Users are able to join resource types together using the exact format as Kubernetes Validating Admission policies.", + "id": "CelPolicySpec", + "properties": { + "spec": { + "description": "The CEL policy to evaluate to produce findings. A finding is generated when the policy validation evaluates to false.", + "type": "string" + } + }, + "type": "object" + }, "CloudArmor": { "description": "Fields related to Google Cloud Armor findings.", "id": "CloudArmor", @@ -3782,6 +3797,10 @@ "description": "Defines the properties in a custom module configuration for Security Health Analytics. Use the custom module configuration to create custom detectors that generate custom findings for resources that you specify.", "id": "GoogleCloudSecuritycenterV1CustomConfig", "properties": { + "celPolicy": { + "$ref": "CelPolicySpec", + "description": "The CEL policy spec attached to the custom module." + }, "customOutput": { "$ref": "GoogleCloudSecuritycenterV1CustomOutputSpec", "description": "Custom output properties." @@ -4864,6 +4883,10 @@ "description": "Represents an Azure resource group.", "id": "GoogleCloudSecuritycenterV2AzureResourceGroup", "properties": { + "id": { + "description": "The ID of the Azure resource group.", + "type": "string" + }, "name": { "description": "The name of the Azure resource group. This is not a UUID.", "type": "string" diff --git a/securitycenter/v1beta2/securitycenter-gen.go b/securitycenter/v1beta2/securitycenter-gen.go index 896ce252e2..87a1973bff 100644 --- a/securitycenter/v1beta2/securitycenter-gen.go +++ b/securitycenter/v1beta2/securitycenter-gen.go @@ -877,15 +877,17 @@ func (s AzureMetadata) MarshalJSON() ([]byte, error) { // AzureResourceGroup: Represents an Azure resource group. type AzureResourceGroup struct { + // Id: The ID of the Azure resource group. + Id string `json:"id,omitempty"` // Name: The name of the Azure resource group. This is not a UUID. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Name") to include in API requests + // NullFields is a list of field names (e.g. "Id") to include in API requests // with the JSON null value. By default, fields with empty values are omitted // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -1018,6 +1020,44 @@ func (s BackupDisasterRecovery) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// CelPolicySpec: YAML-based rule that uses CEL, which supports the declaration +// of variables and a filtering predicate. A vulnerable resource is emitted if +// the evaluation is false. Given: 1) the resource types as: - resource_types: +// "compute.googleapis.com/Instance" - resource_types: +// "compute.googleapis.com/Firewall" 2) the CEL policy spec as: name: +// bad_instance resource_filters: - name: instance resource_type: +// compute.googleapis.com/Instance filter: > instance.status == 'RUNNING' && +// 'public' in instance.tags.items - name: firewall resource_type: +// compute.googleapis.com/Firewall filter: > firewall.direction == 'INGRESS' && +// !firewall.disabled && firewall.allowed.exists(rule, +// rule.IPProtocol.upperAscii() in ['TCP', 'ALL'] && rule.ports.exists(port, +// network.portsInRange(port, '11-256'))) rule: match: - predicate: > +// instance.networkInterfaces.exists(net, firewall.network == net.network) +// output: > {'message': 'Compute instance with publicly accessible ports', +// 'instance': instance.name} Users are able to join resource types together +// using the exact format as Kubernetes Validating Admission policies. +type CelPolicySpec struct { + // Spec: The CEL policy to evaluate to produce findings. A finding is generated + // when the policy validation evaluates to false. + Spec string `json:"spec,omitempty"` + // ForceSendFields is a list of field names (e.g. "Spec") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Spec") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s CelPolicySpec) MarshalJSON() ([]byte, error) { + type NoMethod CelPolicySpec + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // CloudArmor: Fields related to Google Cloud Armor findings. type CloudArmor struct { // AdaptiveProtection: Information about potential Layer 7 DDoS attacks @@ -2566,6 +2606,8 @@ type GoogleCloudSecuritycenterV1BulkMuteFindingsResponse struct { // configuration to create custom detectors that generate custom findings for // resources that you specify. type GoogleCloudSecuritycenterV1CustomConfig struct { + // CelPolicy: The CEL policy spec attached to the custom module. + CelPolicy *CelPolicySpec `json:"celPolicy,omitempty"` // CustomOutput: Custom output properties. CustomOutput *GoogleCloudSecuritycenterV1CustomOutputSpec `json:"customOutput,omitempty"` // Description: Text that describes the vulnerability or misconfiguration that @@ -2593,13 +2635,13 @@ type GoogleCloudSecuritycenterV1CustomConfig struct { // "MEDIUM" - Medium severity. // "LOW" - Low severity. Severity string `json:"severity,omitempty"` - // ForceSendFields is a list of field names (e.g. "CustomOutput") to + // ForceSendFields is a list of field names (e.g. "CelPolicy") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CustomOutput") to include in API + // NullFields is a list of field names (e.g. "CelPolicy") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -3927,15 +3969,17 @@ func (s GoogleCloudSecuritycenterV2AzureMetadata) MarshalJSON() ([]byte, error) // GoogleCloudSecuritycenterV2AzureResourceGroup: Represents an Azure resource // group. type GoogleCloudSecuritycenterV2AzureResourceGroup struct { + // Id: The ID of the Azure resource group. + Id string `json:"id,omitempty"` // Name: The name of the Azure resource group. This is not a UUID. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Name") to include in API requests + // NullFields is a list of field names (e.g. "Id") to include in API requests // with the JSON null value. By default, fields with empty values are omitted // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. diff --git a/serviceconsumermanagement/v1beta1/serviceconsumermanagement-api.json b/serviceconsumermanagement/v1beta1/serviceconsumermanagement-api.json index 84559a1fa3..6aceb181f5 100644 --- a/serviceconsumermanagement/v1beta1/serviceconsumermanagement-api.json +++ b/serviceconsumermanagement/v1beta1/serviceconsumermanagement-api.json @@ -715,7 +715,7 @@ } } }, - "revision": "20240919", + "revision": "20240929", "rootUrl": "https://serviceconsumermanagement.googleapis.com/", "schemas": { "Api": { @@ -2086,7 +2086,7 @@ "type": "object" }, "Mixin": { - "description": "Declares an API Interface to be included in this interface. The including interface must redeclare all the methods from the included interface, but documentation and options are inherited as follows: - If after comment and whitespace stripping, the documentation string of the redeclared method is empty, it will be inherited from the original method. - Each annotation belonging to the service config (http, visibility) which is not set in the redeclared method will be inherited. - If an http annotation is inherited, the path pattern will be modified as follows. Any version prefix will be replaced by the version of the including interface plus the root path if specified. Example of a simple mixin: package google.acl.v1; service AccessControl { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v1/{resource=**}:getAcl\"; } } package google.storage.v2; service Storage { // rpc GetAcl(GetAclRequest) returns (Acl); // Get a data record. rpc GetData(GetDataRequest) returns (Data) { option (google.api.http).get = \"/v2/{resource=**}\"; } } Example of a mixin configuration: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl The mixin construct implies that all methods in `AccessControl` are also declared with same name and request/response types in `Storage`. A documentation generator or annotation processor will see the effective `Storage.GetAcl` method after inherting documentation and annotations as follows: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/{resource=**}:getAcl\"; } ... } Note how the version in the path pattern changed from `v1` to `v2`. If the `root` field in the mixin is specified, it should be a relative path under which inherited HTTP paths are placed. Example: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl root: acls This implies the following inherited HTTP annotation: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/acls/{resource=**}:getAcl\"; } ... }", + "description": "Declares an API Interface to be included in this interface. The including interface must redeclare all the methods from the included interface, but documentation and options are inherited as follows: - If after comment and whitespace stripping, the documentation string of the redeclared method is empty, it will be inherited from the original method. - Each annotation belonging to the service config (http, visibility) which is not set in the redeclared method will be inherited. - If an http annotation is inherited, the path pattern will be modified as follows. Any version prefix will be replaced by the version of the including interface plus the root path if specified. Example of a simple mixin: package google.acl.v1; service AccessControl { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v1/{resource=**}:getAcl\"; } } package google.storage.v2; service Storage { // rpc GetAcl(GetAclRequest) returns (Acl); // Get a data record. rpc GetData(GetDataRequest) returns (Data) { option (google.api.http).get = \"/v2/{resource=**}\"; } } Example of a mixin configuration: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl The mixin construct implies that all methods in `AccessControl` are also declared with same name and request/response types in `Storage`. A documentation generator or annotation processor will see the effective `Storage.GetAcl` method after inheriting documentation and annotations as follows: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/{resource=**}:getAcl\"; } ... } Note how the version in the path pattern changed from `v1` to `v2`. If the `root` field in the mixin is specified, it should be a relative path under which inherited HTTP paths are placed. Example: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl root: acls This implies the following inherited HTTP annotation: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/acls/{resource=**}:getAcl\"; } ... }", "id": "Mixin", "properties": { "name": { diff --git a/serviceconsumermanagement/v1beta1/serviceconsumermanagement-gen.go b/serviceconsumermanagement/v1beta1/serviceconsumermanagement-gen.go index 1bdb862736..9940dfefb7 100644 --- a/serviceconsumermanagement/v1beta1/serviceconsumermanagement-gen.go +++ b/serviceconsumermanagement/v1beta1/serviceconsumermanagement-gen.go @@ -2281,7 +2281,7 @@ func (s MetricRule) MarshalJSON() ([]byte, error) { // mixin construct implies that all methods in `AccessControl` are also // declared with same name and request/response types in `Storage`. A // documentation generator or annotation processor will see the effective -// `Storage.GetAcl` method after inherting documentation and annotations as +// `Storage.GetAcl` method after inheriting documentation and annotations as // follows: service Storage { // Get the underlying ACL object. rpc // GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = // "/v2/{resource=**}:getAcl"; } ... } Note how the version in the path pattern diff --git a/serviceusage/v1/serviceusage-api.json b/serviceusage/v1/serviceusage-api.json index 04c7053832..a004d52f04 100644 --- a/serviceusage/v1/serviceusage-api.json +++ b/serviceusage/v1/serviceusage-api.json @@ -426,7 +426,7 @@ } } }, - "revision": "20240919", + "revision": "20240929", "rootUrl": "https://serviceusage.googleapis.com/", "schemas": { "AddEnableRulesMetadata": { @@ -2675,7 +2675,7 @@ "type": "object" }, "Mixin": { - "description": "Declares an API Interface to be included in this interface. The including interface must redeclare all the methods from the included interface, but documentation and options are inherited as follows: - If after comment and whitespace stripping, the documentation string of the redeclared method is empty, it will be inherited from the original method. - Each annotation belonging to the service config (http, visibility) which is not set in the redeclared method will be inherited. - If an http annotation is inherited, the path pattern will be modified as follows. Any version prefix will be replaced by the version of the including interface plus the root path if specified. Example of a simple mixin: package google.acl.v1; service AccessControl { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v1/{resource=**}:getAcl\"; } } package google.storage.v2; service Storage { // rpc GetAcl(GetAclRequest) returns (Acl); // Get a data record. rpc GetData(GetDataRequest) returns (Data) { option (google.api.http).get = \"/v2/{resource=**}\"; } } Example of a mixin configuration: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl The mixin construct implies that all methods in `AccessControl` are also declared with same name and request/response types in `Storage`. A documentation generator or annotation processor will see the effective `Storage.GetAcl` method after inherting documentation and annotations as follows: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/{resource=**}:getAcl\"; } ... } Note how the version in the path pattern changed from `v1` to `v2`. If the `root` field in the mixin is specified, it should be a relative path under which inherited HTTP paths are placed. Example: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl root: acls This implies the following inherited HTTP annotation: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/acls/{resource=**}:getAcl\"; } ... }", + "description": "Declares an API Interface to be included in this interface. The including interface must redeclare all the methods from the included interface, but documentation and options are inherited as follows: - If after comment and whitespace stripping, the documentation string of the redeclared method is empty, it will be inherited from the original method. - Each annotation belonging to the service config (http, visibility) which is not set in the redeclared method will be inherited. - If an http annotation is inherited, the path pattern will be modified as follows. Any version prefix will be replaced by the version of the including interface plus the root path if specified. Example of a simple mixin: package google.acl.v1; service AccessControl { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v1/{resource=**}:getAcl\"; } } package google.storage.v2; service Storage { // rpc GetAcl(GetAclRequest) returns (Acl); // Get a data record. rpc GetData(GetDataRequest) returns (Data) { option (google.api.http).get = \"/v2/{resource=**}\"; } } Example of a mixin configuration: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl The mixin construct implies that all methods in `AccessControl` are also declared with same name and request/response types in `Storage`. A documentation generator or annotation processor will see the effective `Storage.GetAcl` method after inheriting documentation and annotations as follows: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/{resource=**}:getAcl\"; } ... } Note how the version in the path pattern changed from `v1` to `v2`. If the `root` field in the mixin is specified, it should be a relative path under which inherited HTTP paths are placed. Example: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl root: acls This implies the following inherited HTTP annotation: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/acls/{resource=**}:getAcl\"; } ... }", "id": "Mixin", "properties": { "name": { diff --git a/serviceusage/v1/serviceusage-gen.go b/serviceusage/v1/serviceusage-gen.go index 7ad6038e08..16bfdd400e 100644 --- a/serviceusage/v1/serviceusage-gen.go +++ b/serviceusage/v1/serviceusage-gen.go @@ -3344,7 +3344,7 @@ func (s MetricRule) MarshalJSON() ([]byte, error) { // mixin construct implies that all methods in `AccessControl` are also // declared with same name and request/response types in `Storage`. A // documentation generator or annotation processor will see the effective -// `Storage.GetAcl` method after inherting documentation and annotations as +// `Storage.GetAcl` method after inheriting documentation and annotations as // follows: service Storage { // Get the underlying ACL object. rpc // GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = // "/v2/{resource=**}:getAcl"; } ... } Note how the version in the path pattern