From 51947d3685e056a0576e9ffae7f08275720cd73a Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 30 Jan 2025 00:34:26 -0800 Subject: [PATCH] feat(all): auto-regenerate discovery clients (#2988) --- admin/reports/v1/admin-api.json | 8 +- analyticshub/v1/analyticshub-api.json | 3 +- analyticshub/v1/analyticshub-gen.go | 2 - analyticshub/v1beta1/analyticshub-api.json | 3 +- analyticshub/v1beta1/analyticshub-gen.go | 2 - cloudfunctions/v1/cloudfunctions-api.json | 4 +- cloudfunctions/v1/cloudfunctions-gen.go | 8 +- cloudfunctions/v2/cloudfunctions-api.json | 23 +- cloudfunctions/v2/cloudfunctions-gen.go | 11 +- .../v2alpha/cloudfunctions-api.json | 23 +- cloudfunctions/v2alpha/cloudfunctions-gen.go | 11 +- cloudfunctions/v2beta/cloudfunctions-api.json | 23 +- cloudfunctions/v2beta/cloudfunctions-gen.go | 11 +- compute/v0.beta/compute-api.json | 4 +- compute/v0.beta/compute-gen.go | 1 + compute/v1/compute-api.json | 9 +- compute/v1/compute-gen.go | 6 + datamigration/v1/datamigration-api.json | 4 +- datamigration/v1/datamigration-gen.go | 6 +- discoveryengine/v1/discoveryengine-api.json | 197 ++- discoveryengine/v1/discoveryengine-gen.go | 287 +++- .../v1alpha/discoveryengine-api.json | 556 ++++++- .../v1alpha/discoveryengine-gen.go | 1382 ++++++++++++++++- .../v1beta/discoveryengine-api.json | 551 ++++++- discoveryengine/v1beta/discoveryengine-gen.go | 1379 +++++++++++++++- eventarc/v1/eventarc-api.json | 3 +- youtube/v3/youtube-api.json | 6 +- youtube/v3/youtube-gen.go | 19 +- 28 files changed, 4441 insertions(+), 101 deletions(-) diff --git a/admin/reports/v1/admin-api.json b/admin/reports/v1/admin-api.json index 359945838fb..e87cc680a3e 100644 --- a/admin/reports/v1/admin-api.json +++ b/admin/reports/v1/admin-api.json @@ -448,7 +448,7 @@ "parameters": { "description": "The `parameters` query string is a comma-separated list of event parameters that refine a report's results. The parameter is associated with a specific application. The application values for the Customers usage report include `accounts`, `app_maker`, `apps_scripts`, `calendar`, `classroom`, `cros`, `docs`, `gmail`, `gplus`, `device_management`, `meet`, and `sites`. A `parameters` query string is in the CSV form of `app_name1:param_name1, app_name2:param_name2`. *Note:* The API doesn't accept multiple values of a parameter. If a particular parameter is supplied more than once in the API request, the API only accepts the last value of that request parameter. In addition, if an invalid request parameter is supplied in the API request, the API ignores that request parameter and returns the response corresponding to the remaining valid request parameters. An example of an invalid request parameter is one that does not belong to the application. If no parameters are requested, all parameters are returned. ", "location": "query", - "pattern": "(((accounts)|(app_maker)|(apps_scripts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)|(meet)):[^,]+,)*(((accounts)|(app_maker)|(apps_scripts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)|(meet)):[^,]+)", + "pattern": "(((accounts)|(app_maker)|(apps_scripts)|(chat)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)|(meet)):[^,]+,)*(((accounts)|(app_maker)|(apps_scripts)|(chat)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)|(meet)):[^,]+)", "type": "string" } }, @@ -572,7 +572,7 @@ "filters": { "description": "The `filters` query string is a comma-separated list of an application's event parameters where the parameter's value is manipulated by a relational operator. The `filters` query string includes the name of the application whose usage is returned in the report. The application values for the Users Usage Report include `accounts`, `docs`, and `gmail`. Filters are in the form `[application name]:parameter name[parameter value],...`. In this example, the `\u003c\u003e` 'not equal to' operator is URL-encoded in the request's query string (%3C%3E): GET https://www.googleapis.com/admin/reports/v1/usage/users/all/dates/2013-03-03 ?parameters=accounts:last_login_time \u0026filters=accounts:last_login_time%3C%3E2010-10-28T10:26:35.000Z The relational operators include: - `==` - 'equal to'. - `\u003c\u003e` - 'not equal to'. It is URL-encoded (%3C%3E). - `\u003c` - 'less than'. It is URL-encoded (%3C). - `\u003c=` - 'less than or equal to'. It is URL-encoded (%3C=). - `\u003e` - 'greater than'. It is URL-encoded (%3E). - `\u003e=` - 'greater than or equal to'. It is URL-encoded (%3E=). ", "location": "query", - "pattern": "(((accounts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[a-z0-9_]+[\u003c,\u003c=,==,\u003e=,\u003e,!=][^,]+,)*(((accounts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[a-z0-9_]+[\u003c,\u003c=,==,\u003e=,\u003e,!=][^,]+)", + "pattern": "(((accounts)|(chat)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[a-z0-9_]+[\u003c,\u003c=,==,\u003e=,\u003e,!=][^,]+,)*(((accounts)|(chat)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[a-z0-9_]+[\u003c,\u003c=,==,\u003e=,\u003e,!=][^,]+)", "type": "string" }, "groupIdFilter": { @@ -605,7 +605,7 @@ "parameters": { "description": "The `parameters` query string is a comma-separated list of event parameters that refine a report's results. The parameter is associated with a specific application. The application values for the Customers Usage report include `accounts`, `app_maker`, `apps_scripts`, `calendar`, `classroom`, `cros`, `docs`, `gmail`, `gplus`, `device_management`, `meet`, and `sites`. A `parameters` query string is in the CSV form of `app_name1:param_name1, app_name2:param_name2`. *Note:* The API doesn't accept multiple values of a parameter. If a particular parameter is supplied more than once in the API request, the API only accepts the last value of that request parameter. In addition, if an invalid request parameter is supplied in the API request, the API ignores that request parameter and returns the response corresponding to the remaining valid request parameters. An example of an invalid request parameter is one that does not belong to the application. If no parameters are requested, all parameters are returned. ", "location": "query", - "pattern": "(((accounts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[^,]+,)*(((accounts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[^,]+)", + "pattern": "(((accounts)|(chat)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[^,]+,)*(((accounts)|(chat)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[^,]+)", "type": "string" }, "userKey": { @@ -626,7 +626,7 @@ } } }, - "revision": "20240220", + "revision": "20250128", "rootUrl": "https://admin.googleapis.com/", "schemas": { "Activities": { diff --git a/analyticshub/v1/analyticshub-api.json b/analyticshub/v1/analyticshub-api.json index be0624c0b28..35cdec997c4 100644 --- a/analyticshub/v1/analyticshub-api.json +++ b/analyticshub/v1/analyticshub-api.json @@ -1022,7 +1022,7 @@ } } }, - "revision": "20250115", + "revision": "20250126", "rootUrl": "https://analyticshub.googleapis.com/", "schemas": { "AnalyticsHubSubscriptionInfo": { @@ -1412,7 +1412,6 @@ "type": "object" }, "DestinationDatasetReference": { - "description": "Contains the reference that identifies a destination bigquery dataset.", "id": "DestinationDatasetReference", "properties": { "datasetId": { diff --git a/analyticshub/v1/analyticshub-gen.go b/analyticshub/v1/analyticshub-gen.go index a5ddddfc61f..5479863e85e 100644 --- a/analyticshub/v1/analyticshub-gen.go +++ b/analyticshub/v1/analyticshub-gen.go @@ -891,8 +891,6 @@ func (s DestinationDataset) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DestinationDatasetReference: Contains the reference that identifies a -// destination bigquery dataset. type DestinationDatasetReference struct { // DatasetId: Required. A unique ID for this dataset, without the project name. // The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores diff --git a/analyticshub/v1beta1/analyticshub-api.json b/analyticshub/v1beta1/analyticshub-api.json index c9eb6cd5d63..9ceb441c59a 100644 --- a/analyticshub/v1beta1/analyticshub-api.json +++ b/analyticshub/v1beta1/analyticshub-api.json @@ -695,7 +695,7 @@ } } }, - "revision": "20241213", + "revision": "20250126", "rootUrl": "https://analyticshub.googleapis.com/", "schemas": { "AuditConfig": { @@ -928,7 +928,6 @@ "type": "object" }, "GoogleCloudBigqueryDataexchangeV1beta1DestinationDatasetReference": { - "description": "Contains the reference that identifies a destination bigquery dataset.", "id": "GoogleCloudBigqueryDataexchangeV1beta1DestinationDatasetReference", "properties": { "datasetId": { diff --git a/analyticshub/v1beta1/analyticshub-gen.go b/analyticshub/v1beta1/analyticshub-gen.go index ad997f3133b..e46510720c5 100644 --- a/analyticshub/v1beta1/analyticshub-gen.go +++ b/analyticshub/v1beta1/analyticshub-gen.go @@ -701,8 +701,6 @@ func (s GoogleCloudBigqueryDataexchangeV1beta1DestinationDataset) MarshalJSON() return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudBigqueryDataexchangeV1beta1DestinationDatasetReference: Contains -// the reference that identifies a destination bigquery dataset. type GoogleCloudBigqueryDataexchangeV1beta1DestinationDatasetReference struct { // DatasetId: Required. A unique ID for this dataset, without the project name. // The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores diff --git a/cloudfunctions/v1/cloudfunctions-api.json b/cloudfunctions/v1/cloudfunctions-api.json index 8f9bac8f882..38f5a148249 100644 --- a/cloudfunctions/v1/cloudfunctions-api.json +++ b/cloudfunctions/v1/cloudfunctions-api.json @@ -552,7 +552,7 @@ } } }, - "revision": "20250102", + "revision": "20250124", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AuditConfig": { @@ -1259,7 +1259,7 @@ "type": "string" }, "projectId": { - "description": "Project identifier (preferrably project number but can also be the project ID) of the project that contains the secret. If not set, it will be populated with the function's project assuming that the secret exists in the same project as of the function.", + "description": "Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it will be populated with the function's project assuming that the secret exists in the same project as of the function.", "type": "string" }, "secret": { diff --git a/cloudfunctions/v1/cloudfunctions-gen.go b/cloudfunctions/v1/cloudfunctions-gen.go index 155dbe31b34..2e9fbd16cd9 100644 --- a/cloudfunctions/v1/cloudfunctions-gen.go +++ b/cloudfunctions/v1/cloudfunctions-gen.go @@ -1261,10 +1261,10 @@ type Retry struct { type SecretEnvVar struct { // Key: Name of the environment variable. Key string `json:"key,omitempty"` - // ProjectId: Project identifier (preferrably project number but can also be - // the project ID) of the project that contains the secret. If not set, it will - // be populated with the function's project assuming that the secret exists in - // the same project as of the function. + // ProjectId: Project identifier (preferably project number but can also be the + // project ID) of the project that contains the secret. If not set, it will be + // populated with the function's project assuming that the secret exists in the + // same project as of the function. ProjectId string `json:"projectId,omitempty"` // Secret: Name of the secret in secret manager (not the full resource name). Secret string `json:"secret,omitempty"` diff --git a/cloudfunctions/v2/cloudfunctions-api.json b/cloudfunctions/v2/cloudfunctions-api.json index b001ec2712e..0b75153a4d2 100644 --- a/cloudfunctions/v2/cloudfunctions-api.json +++ b/cloudfunctions/v2/cloudfunctions-api.json @@ -744,7 +744,7 @@ } } }, - "revision": "20250116", + "revision": "20250124", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AbortFunctionUpgradeRequest": { @@ -1086,6 +1086,11 @@ "description": "A user-defined name of the function. Function names must be unique globally and match pattern `projects/*/locations/*/functions/*`", "type": "string" }, + "satisfiesPzi": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, "satisfiesPzs": { "description": "Output only. Reserved for future use.", "readOnly": true, @@ -1103,7 +1108,9 @@ "FAILED", "DEPLOYING", "DELETING", - "UNKNOWN" + "UNKNOWN", + "DETACHING", + "DETACH_FAILED" ], "enumDescriptions": [ "Not specified. Invalid state.", @@ -1111,7 +1118,9 @@ "Function deployment failed and the function is not serving.", "Function is being created or updated.", "Function is being deleted.", - "Function deployment failed and the function serving state is undefined. The function should be updated or deleted to move it out of this state." + "Function deployment failed and the function serving state is undefined. The function should be updated or deleted to move it out of this state.", + "Function is being detached.", + "Function detach failed and the function is still serving." ], "readOnly": true, "type": "string" @@ -2095,7 +2104,7 @@ "type": "object" }, "UpgradeInfo": { - "description": "Information related to: * A function's eligibility for 1st Gen to 2nd Gen migration and 2nd Gen to CRf detach. * Current state of migration for function undergoing migration/detach.", + "description": "Information related to: * A function's eligibility for 1st Gen to 2nd Gen migration. * Current state of migration for function undergoing migration.", "id": "UpgradeInfo", "properties": { "buildConfig": { @@ -2122,8 +2131,7 @@ "REDIRECT_FUNCTION_UPGRADE_TRAFFIC_SUCCESSFUL", "REDIRECT_FUNCTION_UPGRADE_TRAFFIC_ERROR", "ROLLBACK_FUNCTION_UPGRADE_TRAFFIC_ERROR", - "COMMIT_FUNCTION_UPGRADE_ERROR", - "DETACH_IN_PROGRESS" + "COMMIT_FUNCTION_UPGRADE_ERROR" ], "enumDescriptions": [ "Unspecified state. Most functions are in this upgrade state.", @@ -2135,8 +2143,7 @@ "RedirectFunctionUpgradeTraffic API was successful and traffic is served by 2nd Gen function stack.", "RedirectFunctionUpgradeTraffic API was un-successful.", "RollbackFunctionUpgradeTraffic API was un-successful.", - "CommitFunctionUpgrade API was un-successful.", - "Function is requested to be detached from 2nd Gen to CRf." + "CommitFunctionUpgrade API was un-successful." ], "type": "string" } diff --git a/cloudfunctions/v2/cloudfunctions-gen.go b/cloudfunctions/v2/cloudfunctions-gen.go index dc638b6d5f6..e9dbece2fd7 100644 --- a/cloudfunctions/v2/cloudfunctions-gen.go +++ b/cloudfunctions/v2/cloudfunctions-gen.go @@ -710,6 +710,8 @@ type Function struct { // Name: A user-defined name of the function. Function names must be unique // globally and match pattern `projects/*/locations/*/functions/*` Name string `json:"name,omitempty"` + // SatisfiesPzi: Output only. Reserved for future use. + SatisfiesPzi bool `json:"satisfiesPzi,omitempty"` // SatisfiesPzs: Output only. Reserved for future use. SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` // ServiceConfig: Describes the Service being deployed. Currently deploys @@ -726,6 +728,9 @@ type Function struct { // "UNKNOWN" - Function deployment failed and the function serving state is // undefined. The function should be updated or deleted to move it out of this // state. + // "DETACHING" - Function is being detached. + // "DETACH_FAILED" - Function detach failed and the function is still + // serving. State string `json:"state,omitempty"` // StateMessages: Output only. State Messages for this Cloud Function. StateMessages []*GoogleCloudFunctionsV2StateMessage `json:"stateMessages,omitempty"` @@ -1927,8 +1932,8 @@ func (s TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { } // UpgradeInfo: Information related to: * A function's eligibility for 1st Gen -// to 2nd Gen migration and 2nd Gen to CRf detach. * Current state of migration -// for function undergoing migration/detach. +// to 2nd Gen migration. * Current state of migration for function undergoing +// migration. type UpgradeInfo struct { // BuildConfig: Describes the Build step of the function that builds a // container to prepare for 2nd gen upgrade. @@ -1964,8 +1969,6 @@ type UpgradeInfo struct { // API was un-successful. // "COMMIT_FUNCTION_UPGRADE_ERROR" - CommitFunctionUpgrade API was // un-successful. - // "DETACH_IN_PROGRESS" - Function is requested to be detached from 2nd Gen - // to CRf. UpgradeState string `json:"upgradeState,omitempty"` // ForceSendFields is a list of field names (e.g. "BuildConfig") to // unconditionally include in API requests. By default, fields with empty or diff --git a/cloudfunctions/v2alpha/cloudfunctions-api.json b/cloudfunctions/v2alpha/cloudfunctions-api.json index 0ee6000656d..1c103748737 100644 --- a/cloudfunctions/v2alpha/cloudfunctions-api.json +++ b/cloudfunctions/v2alpha/cloudfunctions-api.json @@ -744,7 +744,7 @@ } } }, - "revision": "20250116", + "revision": "20250124", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AbortFunctionUpgradeRequest": { @@ -1086,6 +1086,11 @@ "description": "A user-defined name of the function. Function names must be unique globally and match pattern `projects/*/locations/*/functions/*`", "type": "string" }, + "satisfiesPzi": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, "satisfiesPzs": { "description": "Output only. Reserved for future use.", "readOnly": true, @@ -1103,7 +1108,9 @@ "FAILED", "DEPLOYING", "DELETING", - "UNKNOWN" + "UNKNOWN", + "DETACHING", + "DETACH_FAILED" ], "enumDescriptions": [ "Not specified. Invalid state.", @@ -1111,7 +1118,9 @@ "Function deployment failed and the function is not serving.", "Function is being created or updated.", "Function is being deleted.", - "Function deployment failed and the function serving state is undefined. The function should be updated or deleted to move it out of this state." + "Function deployment failed and the function serving state is undefined. The function should be updated or deleted to move it out of this state.", + "Function is being detached.", + "Function detach failed and the function is still serving." ], "readOnly": true, "type": "string" @@ -2095,7 +2104,7 @@ "type": "object" }, "UpgradeInfo": { - "description": "Information related to: * A function's eligibility for 1st Gen to 2nd Gen migration and 2nd Gen to CRf detach. * Current state of migration for function undergoing migration/detach.", + "description": "Information related to: * A function's eligibility for 1st Gen to 2nd Gen migration. * Current state of migration for function undergoing migration.", "id": "UpgradeInfo", "properties": { "buildConfig": { @@ -2122,8 +2131,7 @@ "REDIRECT_FUNCTION_UPGRADE_TRAFFIC_SUCCESSFUL", "REDIRECT_FUNCTION_UPGRADE_TRAFFIC_ERROR", "ROLLBACK_FUNCTION_UPGRADE_TRAFFIC_ERROR", - "COMMIT_FUNCTION_UPGRADE_ERROR", - "DETACH_IN_PROGRESS" + "COMMIT_FUNCTION_UPGRADE_ERROR" ], "enumDescriptions": [ "Unspecified state. Most functions are in this upgrade state.", @@ -2135,8 +2143,7 @@ "RedirectFunctionUpgradeTraffic API was successful and traffic is served by 2nd Gen function stack.", "RedirectFunctionUpgradeTraffic API was un-successful.", "RollbackFunctionUpgradeTraffic API was un-successful.", - "CommitFunctionUpgrade API was un-successful.", - "Function is requested to be detached from 2nd Gen to CRf." + "CommitFunctionUpgrade API was un-successful." ], "type": "string" } diff --git a/cloudfunctions/v2alpha/cloudfunctions-gen.go b/cloudfunctions/v2alpha/cloudfunctions-gen.go index 95b6f37556f..0857881b3c9 100644 --- a/cloudfunctions/v2alpha/cloudfunctions-gen.go +++ b/cloudfunctions/v2alpha/cloudfunctions-gen.go @@ -710,6 +710,8 @@ type Function struct { // Name: A user-defined name of the function. Function names must be unique // globally and match pattern `projects/*/locations/*/functions/*` Name string `json:"name,omitempty"` + // SatisfiesPzi: Output only. Reserved for future use. + SatisfiesPzi bool `json:"satisfiesPzi,omitempty"` // SatisfiesPzs: Output only. Reserved for future use. SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` // ServiceConfig: Describes the Service being deployed. Currently deploys @@ -726,6 +728,9 @@ type Function struct { // "UNKNOWN" - Function deployment failed and the function serving state is // undefined. The function should be updated or deleted to move it out of this // state. + // "DETACHING" - Function is being detached. + // "DETACH_FAILED" - Function detach failed and the function is still + // serving. State string `json:"state,omitempty"` // StateMessages: Output only. State Messages for this Cloud Function. StateMessages []*GoogleCloudFunctionsV2alphaStateMessage `json:"stateMessages,omitempty"` @@ -1927,8 +1932,8 @@ func (s TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { } // UpgradeInfo: Information related to: * A function's eligibility for 1st Gen -// to 2nd Gen migration and 2nd Gen to CRf detach. * Current state of migration -// for function undergoing migration/detach. +// to 2nd Gen migration. * Current state of migration for function undergoing +// migration. type UpgradeInfo struct { // BuildConfig: Describes the Build step of the function that builds a // container to prepare for 2nd gen upgrade. @@ -1964,8 +1969,6 @@ type UpgradeInfo struct { // API was un-successful. // "COMMIT_FUNCTION_UPGRADE_ERROR" - CommitFunctionUpgrade API was // un-successful. - // "DETACH_IN_PROGRESS" - Function is requested to be detached from 2nd Gen - // to CRf. UpgradeState string `json:"upgradeState,omitempty"` // ForceSendFields is a list of field names (e.g. "BuildConfig") to // unconditionally include in API requests. By default, fields with empty or diff --git a/cloudfunctions/v2beta/cloudfunctions-api.json b/cloudfunctions/v2beta/cloudfunctions-api.json index cf3e8fe1066..114471d7e30 100644 --- a/cloudfunctions/v2beta/cloudfunctions-api.json +++ b/cloudfunctions/v2beta/cloudfunctions-api.json @@ -744,7 +744,7 @@ } } }, - "revision": "20250116", + "revision": "20250124", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AbortFunctionUpgradeRequest": { @@ -1086,6 +1086,11 @@ "description": "A user-defined name of the function. Function names must be unique globally and match pattern `projects/*/locations/*/functions/*`", "type": "string" }, + "satisfiesPzi": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, "satisfiesPzs": { "description": "Output only. Reserved for future use.", "readOnly": true, @@ -1103,7 +1108,9 @@ "FAILED", "DEPLOYING", "DELETING", - "UNKNOWN" + "UNKNOWN", + "DETACHING", + "DETACH_FAILED" ], "enumDescriptions": [ "Not specified. Invalid state.", @@ -1111,7 +1118,9 @@ "Function deployment failed and the function is not serving.", "Function is being created or updated.", "Function is being deleted.", - "Function deployment failed and the function serving state is undefined. The function should be updated or deleted to move it out of this state." + "Function deployment failed and the function serving state is undefined. The function should be updated or deleted to move it out of this state.", + "Function is being detached.", + "Function detach failed and the function is still serving." ], "readOnly": true, "type": "string" @@ -2095,7 +2104,7 @@ "type": "object" }, "UpgradeInfo": { - "description": "Information related to: * A function's eligibility for 1st Gen to 2nd Gen migration and 2nd Gen to CRf detach. * Current state of migration for function undergoing migration/detach.", + "description": "Information related to: * A function's eligibility for 1st Gen to 2nd Gen migration. * Current state of migration for function undergoing migration.", "id": "UpgradeInfo", "properties": { "buildConfig": { @@ -2122,8 +2131,7 @@ "REDIRECT_FUNCTION_UPGRADE_TRAFFIC_SUCCESSFUL", "REDIRECT_FUNCTION_UPGRADE_TRAFFIC_ERROR", "ROLLBACK_FUNCTION_UPGRADE_TRAFFIC_ERROR", - "COMMIT_FUNCTION_UPGRADE_ERROR", - "DETACH_IN_PROGRESS" + "COMMIT_FUNCTION_UPGRADE_ERROR" ], "enumDescriptions": [ "Unspecified state. Most functions are in this upgrade state.", @@ -2135,8 +2143,7 @@ "RedirectFunctionUpgradeTraffic API was successful and traffic is served by 2nd Gen function stack.", "RedirectFunctionUpgradeTraffic API was un-successful.", "RollbackFunctionUpgradeTraffic API was un-successful.", - "CommitFunctionUpgrade API was un-successful.", - "Function is requested to be detached from 2nd Gen to CRf." + "CommitFunctionUpgrade API was un-successful." ], "type": "string" } diff --git a/cloudfunctions/v2beta/cloudfunctions-gen.go b/cloudfunctions/v2beta/cloudfunctions-gen.go index 1c2e0347c84..a80a29f1b09 100644 --- a/cloudfunctions/v2beta/cloudfunctions-gen.go +++ b/cloudfunctions/v2beta/cloudfunctions-gen.go @@ -710,6 +710,8 @@ type Function struct { // Name: A user-defined name of the function. Function names must be unique // globally and match pattern `projects/*/locations/*/functions/*` Name string `json:"name,omitempty"` + // SatisfiesPzi: Output only. Reserved for future use. + SatisfiesPzi bool `json:"satisfiesPzi,omitempty"` // SatisfiesPzs: Output only. Reserved for future use. SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` // ServiceConfig: Describes the Service being deployed. Currently deploys @@ -726,6 +728,9 @@ type Function struct { // "UNKNOWN" - Function deployment failed and the function serving state is // undefined. The function should be updated or deleted to move it out of this // state. + // "DETACHING" - Function is being detached. + // "DETACH_FAILED" - Function detach failed and the function is still + // serving. State string `json:"state,omitempty"` // StateMessages: Output only. State Messages for this Cloud Function. StateMessages []*GoogleCloudFunctionsV2betaStateMessage `json:"stateMessages,omitempty"` @@ -1927,8 +1932,8 @@ func (s TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { } // UpgradeInfo: Information related to: * A function's eligibility for 1st Gen -// to 2nd Gen migration and 2nd Gen to CRf detach. * Current state of migration -// for function undergoing migration/detach. +// to 2nd Gen migration. * Current state of migration for function undergoing +// migration. type UpgradeInfo struct { // BuildConfig: Describes the Build step of the function that builds a // container to prepare for 2nd gen upgrade. @@ -1964,8 +1969,6 @@ type UpgradeInfo struct { // API was un-successful. // "COMMIT_FUNCTION_UPGRADE_ERROR" - CommitFunctionUpgrade API was // un-successful. - // "DETACH_IN_PROGRESS" - Function is requested to be detached from 2nd Gen - // to CRf. UpgradeState string `json:"upgradeState,omitempty"` // ForceSendFields is a list of field names (e.g. "BuildConfig") to // unconditionally include in API requests. By default, fields with empty or diff --git a/compute/v0.beta/compute-api.json b/compute/v0.beta/compute-api.json index fd98677e99d..5898c81a342 100644 --- a/compute/v0.beta/compute-api.json +++ b/compute/v0.beta/compute-api.json @@ -42856,7 +42856,7 @@ } } }, - "revision": "20250107", + "revision": "20250119", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AWSV4Signature": { @@ -48120,6 +48120,7 @@ "ACCELERATOR_OPTIMIZED", "ACCELERATOR_OPTIMIZED_A3", "ACCELERATOR_OPTIMIZED_A3_MEGA", + "ACCELERATOR_OPTIMIZED_A3_ULTRA", "COMPUTE_OPTIMIZED", "COMPUTE_OPTIMIZED_C2D", "COMPUTE_OPTIMIZED_C3", @@ -48166,6 +48167,7 @@ "", "", "", + "", "" ], "type": "string" diff --git a/compute/v0.beta/compute-gen.go b/compute/v0.beta/compute-gen.go index ffdac8681e8..3976399e386 100644 --- a/compute/v0.beta/compute-gen.go +++ b/compute/v0.beta/compute-gen.go @@ -7798,6 +7798,7 @@ type Commitment struct { // "ACCELERATOR_OPTIMIZED" // "ACCELERATOR_OPTIMIZED_A3" // "ACCELERATOR_OPTIMIZED_A3_MEGA" + // "ACCELERATOR_OPTIMIZED_A3_ULTRA" // "COMPUTE_OPTIMIZED" // "COMPUTE_OPTIMIZED_C2D" // "COMPUTE_OPTIMIZED_C3" diff --git a/compute/v1/compute-api.json b/compute/v1/compute-api.json index 73e6e35e299..064c91115f2 100644 --- a/compute/v1/compute-api.json +++ b/compute/v1/compute-api.json @@ -38015,7 +38015,7 @@ } } }, - "revision": "20250107", + "revision": "20250119", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AWSV4Signature": { @@ -42933,6 +42933,7 @@ "ACCELERATOR_OPTIMIZED", "ACCELERATOR_OPTIMIZED_A3", "ACCELERATOR_OPTIMIZED_A3_MEGA", + "ACCELERATOR_OPTIMIZED_A3_ULTRA", "COMPUTE_OPTIMIZED", "COMPUTE_OPTIMIZED_C2D", "COMPUTE_OPTIMIZED_C3", @@ -42979,6 +42980,7 @@ "", "", "", + "", "" ], "type": "string" @@ -73235,6 +73237,11 @@ "format": "int32", "type": "integer" }, + "hostErrorTimeoutSeconds": { + "description": "Specify the time in seconds for host error detection, the value must be within the range of [90, 330] with the increment of 30, if unset, the default behavior of host error recovery will be used.", + "format": "int32", + "type": "integer" + }, "instanceTerminationAction": { "description": "Specifies the termination action for the instance.", "enum": [ diff --git a/compute/v1/compute-gen.go b/compute/v1/compute-gen.go index 0debe6e5cf7..f1a3740cf89 100644 --- a/compute/v1/compute-gen.go +++ b/compute/v1/compute-gen.go @@ -7255,6 +7255,7 @@ type Commitment struct { // "ACCELERATOR_OPTIMIZED" // "ACCELERATOR_OPTIMIZED_A3" // "ACCELERATOR_OPTIMIZED_A3_MEGA" + // "ACCELERATOR_OPTIMIZED_A3_ULTRA" // "COMPUTE_OPTIMIZED" // "COMPUTE_OPTIMIZED_C2D" // "COMPUTE_OPTIMIZED_C3" @@ -40674,6 +40675,11 @@ type Scheduling struct { // in. The value must be a number between 1 and the number of availability // domains specified in the spread placement policy attached to the instance. AvailabilityDomain int64 `json:"availabilityDomain,omitempty"` + // HostErrorTimeoutSeconds: Specify the time in seconds for host error + // detection, the value must be within the range of [90, 330] with the + // increment of 30, if unset, the default behavior of host error recovery will + // be used. + HostErrorTimeoutSeconds int64 `json:"hostErrorTimeoutSeconds,omitempty"` // InstanceTerminationAction: Specifies the termination action for the // instance. // diff --git a/datamigration/v1/datamigration-api.json b/datamigration/v1/datamigration-api.json index a5e90e18966..c63e01e9c7b 100644 --- a/datamigration/v1/datamigration-api.json +++ b/datamigration/v1/datamigration-api.json @@ -767,7 +767,7 @@ "Unspecified view. Defaults to basic view.", "Default view. Does not return DDLs or Issues.", "Return full entity details including mappings, ddl and issues.", - "Top-most (Database, Schema) nodes which are returned contains summary details for their decendents such as the number of entities per type and issues rollups. When this view is used, only a single page of result is returned and the page_size property of the request is ignored. The returned page will only include the top-most node types." + "Top-most (Database, Schema) nodes which are returned contains summary details for their descendants such as the number of entities per type and issues rollups. When this view is used, only a single page of result is returned and the page_size property of the request is ignored. The returned page will only include the top-most node types." ], "location": "query", "type": "string" @@ -2332,7 +2332,7 @@ } } }, - "revision": "20250115", + "revision": "20250122", "rootUrl": "https://datamigration.googleapis.com/", "schemas": { "AlloyDbConnectionProfile": { diff --git a/datamigration/v1/datamigration-gen.go b/datamigration/v1/datamigration-gen.go index a79adbf32c5..ded6494fa1c 100644 --- a/datamigration/v1/datamigration-gen.go +++ b/datamigration/v1/datamigration-gen.go @@ -7756,9 +7756,9 @@ func (c *ProjectsLocationsConversionWorkspacesDescribeDatabaseEntitiesCall) Unco // // "DATABASE_ENTITY_VIEW_ROOT_SUMMARY" - Top-most (Database, Schema) nodes // -// which are returned contains summary details for their decendents such as the -// number of entities per type and issues rollups. When this view is used, only -// a single page of result is returned and the page_size property of the +// which are returned contains summary details for their descendants such as +// the number of entities per type and issues rollups. When this view is used, +// only a single page of result is returned and the page_size property of the // request is ignored. The returned page will only include the top-most node // types. func (c *ProjectsLocationsConversionWorkspacesDescribeDatabaseEntitiesCall) View(view string) *ProjectsLocationsConversionWorkspacesDescribeDatabaseEntitiesCall { diff --git a/discoveryengine/v1/discoveryengine-api.json b/discoveryengine/v1/discoveryengine-api.json index d056539838a..ff5aadb03a6 100644 --- a/discoveryengine/v1/discoveryengine-api.json +++ b/discoveryengine/v1/discoveryengine-api.json @@ -6371,7 +6371,7 @@ } } }, - "revision": "20250121", + "revision": "20250125", "rootUrl": "https://discoveryengine.googleapis.com/", "schemas": { "GoogleApiDistribution": { @@ -8511,6 +8511,7 @@ "ACTIVE", "KEY_ISSUE", "DELETING", + "DELETE_FAILED", "UNUSABLE", "ACTIVE_ROTATING" ], @@ -8520,6 +8521,7 @@ "The CmekConfig can be used with DataStores.", "The CmekConfig is unavailable, most likely due to the KMS Key being revoked.", "The CmekConfig is deleting.", + "The CmekConfig deletion process failed.", "The CmekConfig is not usable, most likely due to some internal issue.", "The KMS key version is being rotated." ], @@ -9223,6 +9225,10 @@ "$ref": "GoogleCloudDiscoveryengineV1DocumentProcessingConfig", "description": "Configuration for Document understanding and enrichment." }, + "healthcareFhirConfig": { + "$ref": "GoogleCloudDiscoveryengineV1HealthcareFhirConfig", + "description": "Optional. Configuration for `HEALTHCARE_FHIR` vertical." + }, "industryVertical": { "description": "Immutable. The industry vertical that the data store registers.", "enum": [ @@ -10462,6 +10468,43 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1HealthcareFhirConfig": { + "description": "Config to data store for `HEALTHCARE_FHIR` vertical.", + "id": "GoogleCloudDiscoveryengineV1HealthcareFhirConfig", + "properties": { + "enableConfigurableSchema": { + "description": "Whether to enable configurable schema for `HEALTHCARE_FHIR` vertical. If set to `true`, the predefined healthcare fhir schema can be extended for more customized searching and filtering.", + "type": "boolean" + }, + "enableStaticIndexingForBatchIngestion": { + "description": "Whether to enable static indexing for `HEALTHCARE_FHIR` batch ingestion. If set to `true`, the batch ingestion will be processed in a static indexing mode which is slower but more capable of handling larger volume.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1IdentityMappingEntryOperationMetadata": { + "description": "IdentityMappingEntry LongRunningOperation metadata for [IdentityMappingStoreService.ImportIdentityMappings] and [IdentityMappingStoreService.PurgeIdentityMappings]", + "id": "GoogleCloudDiscoveryengineV1IdentityMappingEntryOperationMetadata", + "properties": { + "failureCount": { + "description": "The number of IdentityMappingEntries that failed to be processed.", + "format": "int64", + "type": "string" + }, + "successCount": { + "description": "The number of IdentityMappingEntries that were successfully processed.", + "format": "int64", + "type": "string" + }, + "totalCount": { + "description": "The total number of IdentityMappingEntries that were processed.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsMetadata": { "description": "Metadata related to the progress of the ImportCompletionSuggestions operation. This will be returned by the google.longrunning.Operation.metadata field.", "id": "GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsMetadata", @@ -10697,6 +10740,20 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1ImportIdentityMappingsResponse": { + "description": "Response message for IdentityMappingStoreService.ImportIdentityMappings", + "id": "GoogleCloudDiscoveryengineV1ImportIdentityMappingsResponse", + "properties": { + "errorSamples": { + "description": "A sample of errors encountered while processing the request.", + "items": { + "$ref": "GoogleRpcStatus" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesMetadata": { "description": "Metadata related to the progress of the ImportSuggestionDenyListEntries operation. This is returned by the google.longrunning.Operation.metadata field.", "id": "GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesMetadata", @@ -11884,7 +11941,7 @@ }, "userInfo": { "$ref": "GoogleCloudDiscoveryengineV1UserInfo", - "description": "Information about the end user. Highly recommended for analytics. UserInfo.user_agent is used to deduce `device_type` for analytics." + "description": "Information about the end user. Highly recommended for analytics and personalization. UserInfo.user_agent is used to deduce `device_type` for analytics." }, "userLabels": { "additionalProperties": { @@ -14174,6 +14231,7 @@ "ACTIVE", "KEY_ISSUE", "DELETING", + "DELETE_FAILED", "UNUSABLE", "ACTIVE_ROTATING" ], @@ -14183,6 +14241,7 @@ "The CmekConfig can be used with DataStores.", "The CmekConfig is unavailable, most likely due to the KMS Key being revoked.", "The CmekConfig is deleting.", + "The CmekConfig deletion process failed.", "The CmekConfig is not usable, most likely due to some internal issue.", "The KMS key version is being rotated." ], @@ -14857,7 +14916,8 @@ "ACTIVE", "FAILED", "RUNNING", - "WARNING" + "WARNING", + "INITIALIZATION_FAILED" ], "enumDescriptions": [ "Default value.", @@ -14865,7 +14925,8 @@ "The connector is successfully set up and awaiting next sync run.", "The connector is in error. The error details can be found in DataConnector.errors. If the error is unfixable, the DataConnector can be deleted by [CollectionService.DeleteCollection] API.", "The connector is actively syncing records from the data source.", - "The connector has completed a sync run, but encountered non-fatal errors." + "The connector has completed a sync run, but encountered non-fatal errors.", + "Connector initialization failed. Potential causes include runtime errors or issues in the asynchronous pipeline, preventing the request from reaching downstream services (except for some connector types)." ], "readOnly": true, "type": "string" @@ -14991,6 +15052,10 @@ "$ref": "GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig", "description": "Configuration for Document understanding and enrichment." }, + "healthcareFhirConfig": { + "$ref": "GoogleCloudDiscoveryengineV1alphaHealthcareFhirConfig", + "description": "Optional. Configuration for `HEALTHCARE_FHIR` vertical." + }, "idpConfig": { "$ref": "GoogleCloudDiscoveryengineV1alphaIdpConfig", "description": "Output only. Data store level identity provider config.", @@ -16089,6 +16154,43 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaHealthcareFhirConfig": { + "description": "Config to data store for `HEALTHCARE_FHIR` vertical.", + "id": "GoogleCloudDiscoveryengineV1alphaHealthcareFhirConfig", + "properties": { + "enableConfigurableSchema": { + "description": "Whether to enable configurable schema for `HEALTHCARE_FHIR` vertical. If set to `true`, the predefined healthcare fhir schema can be extended for more customized searching and filtering.", + "type": "boolean" + }, + "enableStaticIndexingForBatchIngestion": { + "description": "Whether to enable static indexing for `HEALTHCARE_FHIR` batch ingestion. If set to `true`, the batch ingestion will be processed in a static indexing mode which is slower but more capable of handling larger volume.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1alphaIdentityMappingEntryOperationMetadata": { + "description": "IdentityMappingEntry LongRunningOperation metadata for [IdentityMappingStoreService.ImportIdentityMappings] and [IdentityMappingStoreService.PurgeIdentityMappings]", + "id": "GoogleCloudDiscoveryengineV1alphaIdentityMappingEntryOperationMetadata", + "properties": { + "failureCount": { + "description": "The number of IdentityMappingEntries that failed to be processed.", + "format": "int64", + "type": "string" + }, + "successCount": { + "description": "The number of IdentityMappingEntries that were successfully processed.", + "format": "int64", + "type": "string" + }, + "totalCount": { + "description": "The total number of IdentityMappingEntries that were processed.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaIdentityScheduleConfig": { "description": "The configuration for the identity data synchronization runs.", "id": "GoogleCloudDiscoveryengineV1alphaIdentityScheduleConfig", @@ -16247,6 +16349,20 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaImportIdentityMappingsResponse": { + "description": "Response message for IdentityMappingStoreService.ImportIdentityMappings", + "id": "GoogleCloudDiscoveryengineV1alphaImportIdentityMappingsResponse", + "properties": { + "errorSamples": { + "description": "A sample of errors encountered while processing the request.", + "items": { + "$ref": "GoogleRpcStatus" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaImportSampleQueriesMetadata": { "description": "Metadata related to the progress of the ImportSampleQueries operation. This will be returned by the google.longrunning.Operation.metadata field.", "id": "GoogleCloudDiscoveryengineV1alphaImportSampleQueriesMetadata", @@ -16892,6 +17008,18 @@ "format": "int32", "type": "integer" }, + "noindexUris": { + "description": "URIs that have no index meta tag. Sample limited to 1000.", + "items": { + "type": "string" + }, + "type": "array" + }, + "noindexUrisCount": { + "description": "Total number of URIs that have no index meta tag.", + "format": "int32", + "type": "integer" + }, "pendingCount": { "description": "Total number of URIs that have yet to be crawled.", "format": "int32", @@ -17332,7 +17460,7 @@ }, "userInfo": { "$ref": "GoogleCloudDiscoveryengineV1alphaUserInfo", - "description": "Information about the end user. Highly recommended for analytics. UserInfo.user_agent is used to deduce `device_type` for analytics." + "description": "Information about the end user. Highly recommended for analytics and personalization. UserInfo.user_agent is used to deduce `device_type` for analytics." }, "userLabels": { "additionalProperties": { @@ -18497,6 +18625,7 @@ "ACTIVE", "KEY_ISSUE", "DELETING", + "DELETE_FAILED", "UNUSABLE", "ACTIVE_ROTATING" ], @@ -18506,6 +18635,7 @@ "The CmekConfig can be used with DataStores.", "The CmekConfig is unavailable, most likely due to the KMS Key being revoked.", "The CmekConfig is deleting.", + "The CmekConfig deletion process failed.", "The CmekConfig is not usable, most likely due to some internal issue.", "The KMS key version is being rotated." ], @@ -18884,6 +19014,10 @@ "$ref": "GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig", "description": "Configuration for Document understanding and enrichment." }, + "healthcareFhirConfig": { + "$ref": "GoogleCloudDiscoveryengineV1betaHealthcareFhirConfig", + "description": "Optional. Configuration for `HEALTHCARE_FHIR` vertical." + }, "industryVertical": { "description": "Immutable. The industry vertical that the data store registers.", "enum": [ @@ -19555,6 +19689,43 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1betaHealthcareFhirConfig": { + "description": "Config to data store for `HEALTHCARE_FHIR` vertical.", + "id": "GoogleCloudDiscoveryengineV1betaHealthcareFhirConfig", + "properties": { + "enableConfigurableSchema": { + "description": "Whether to enable configurable schema for `HEALTHCARE_FHIR` vertical. If set to `true`, the predefined healthcare fhir schema can be extended for more customized searching and filtering.", + "type": "boolean" + }, + "enableStaticIndexingForBatchIngestion": { + "description": "Whether to enable static indexing for `HEALTHCARE_FHIR` batch ingestion. If set to `true`, the batch ingestion will be processed in a static indexing mode which is slower but more capable of handling larger volume.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1betaIdentityMappingEntryOperationMetadata": { + "description": "IdentityMappingEntry LongRunningOperation metadata for [IdentityMappingStoreService.ImportIdentityMappings] and [IdentityMappingStoreService.PurgeIdentityMappings]", + "id": "GoogleCloudDiscoveryengineV1betaIdentityMappingEntryOperationMetadata", + "properties": { + "failureCount": { + "description": "The number of IdentityMappingEntries that failed to be processed.", + "format": "int64", + "type": "string" + }, + "successCount": { + "description": "The number of IdentityMappingEntries that were successfully processed.", + "format": "int64", + "type": "string" + }, + "totalCount": { + "description": "The total number of IdentityMappingEntries that were processed.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsMetadata": { "description": "Metadata related to the progress of the ImportCompletionSuggestions operation. This will be returned by the google.longrunning.Operation.metadata field.", "id": "GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsMetadata", @@ -19661,6 +19832,20 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1betaImportIdentityMappingsResponse": { + "description": "Response message for IdentityMappingStoreService.ImportIdentityMappings", + "id": "GoogleCloudDiscoveryengineV1betaImportIdentityMappingsResponse", + "properties": { + "errorSamples": { + "description": "A sample of errors encountered while processing the request.", + "items": { + "$ref": "GoogleRpcStatus" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1betaImportSampleQueriesMetadata": { "description": "Metadata related to the progress of the ImportSampleQueries operation. This will be returned by the google.longrunning.Operation.metadata field.", "id": "GoogleCloudDiscoveryengineV1betaImportSampleQueriesMetadata", @@ -20299,7 +20484,7 @@ }, "userInfo": { "$ref": "GoogleCloudDiscoveryengineV1betaUserInfo", - "description": "Information about the end user. Highly recommended for analytics. UserInfo.user_agent is used to deduce `device_type` for analytics." + "description": "Information about the end user. Highly recommended for analytics and personalization. UserInfo.user_agent is used to deduce `device_type` for analytics." }, "userLabels": { "additionalProperties": { diff --git a/discoveryengine/v1/discoveryengine-gen.go b/discoveryengine/v1/discoveryengine-gen.go index 4846b7be9bb..a2169e811ff 100644 --- a/discoveryengine/v1/discoveryengine-gen.go +++ b/discoveryengine/v1/discoveryengine-gen.go @@ -3954,6 +3954,7 @@ type GoogleCloudDiscoveryengineV1CmekConfig struct { // "KEY_ISSUE" - The CmekConfig is unavailable, most likely due to the KMS // Key being revoked. // "DELETING" - The CmekConfig is deleting. + // "DELETE_FAILED" - The CmekConfig deletion process failed. // "UNUSABLE" - The CmekConfig is not usable, most likely due to some // internal issue. // "ACTIVE_ROTATING" - The KMS key version is being rotated. @@ -4904,6 +4905,9 @@ type GoogleCloudDiscoveryengineV1DataStore struct { // DocumentProcessingConfig: Configuration for Document understanding and // enrichment. DocumentProcessingConfig *GoogleCloudDiscoveryengineV1DocumentProcessingConfig `json:"documentProcessingConfig,omitempty"` + // HealthcareFhirConfig: Optional. Configuration for `HEALTHCARE_FHIR` + // vertical. + HealthcareFhirConfig *GoogleCloudDiscoveryengineV1HealthcareFhirConfig `json:"healthcareFhirConfig,omitempty"` // IndustryVertical: Immutable. The industry vertical that the data store // registers. // @@ -6706,6 +6710,67 @@ func (s GoogleCloudDiscoveryengineV1GroundingFact) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1HealthcareFhirConfig: Config to data store for +// `HEALTHCARE_FHIR` vertical. +type GoogleCloudDiscoveryengineV1HealthcareFhirConfig struct { + // EnableConfigurableSchema: Whether to enable configurable schema for + // `HEALTHCARE_FHIR` vertical. If set to `true`, the predefined healthcare fhir + // schema can be extended for more customized searching and filtering. + EnableConfigurableSchema bool `json:"enableConfigurableSchema,omitempty"` + // EnableStaticIndexingForBatchIngestion: Whether to enable static indexing for + // `HEALTHCARE_FHIR` batch ingestion. If set to `true`, the batch ingestion + // will be processed in a static indexing mode which is slower but more capable + // of handling larger volume. + EnableStaticIndexingForBatchIngestion bool `json:"enableStaticIndexingForBatchIngestion,omitempty"` + // ForceSendFields is a list of field names (e.g. "EnableConfigurableSchema") + // 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. "EnableConfigurableSchema") 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 GoogleCloudDiscoveryengineV1HealthcareFhirConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1HealthcareFhirConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1IdentityMappingEntryOperationMetadata: +// IdentityMappingEntry LongRunningOperation metadata for +// [IdentityMappingStoreService.ImportIdentityMappings] and +// [IdentityMappingStoreService.PurgeIdentityMappings] +type GoogleCloudDiscoveryengineV1IdentityMappingEntryOperationMetadata struct { + // FailureCount: The number of IdentityMappingEntries that failed to be + // processed. + FailureCount int64 `json:"failureCount,omitempty,string"` + // SuccessCount: The number of IdentityMappingEntries that were successfully + // processed. + SuccessCount int64 `json:"successCount,omitempty,string"` + // TotalCount: The total number of IdentityMappingEntries that were processed. + TotalCount int64 `json:"totalCount,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "FailureCount") 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. "FailureCount") 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 GoogleCloudDiscoveryengineV1IdentityMappingEntryOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1IdentityMappingEntryOperationMetadata + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsMetadata: Metadata // related to the progress of the ImportCompletionSuggestions operation. This // will be returned by the google.longrunning.Operation.metadata field. @@ -7017,6 +7082,29 @@ func (s GoogleCloudDiscoveryengineV1ImportErrorConfig) MarshalJSON() ([]byte, er return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1ImportIdentityMappingsResponse: Response message +// for IdentityMappingStoreService.ImportIdentityMappings +type GoogleCloudDiscoveryengineV1ImportIdentityMappingsResponse struct { + // ErrorSamples: A sample of errors encountered while processing the request. + ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"` + // ForceSendFields is a list of field names (e.g. "ErrorSamples") 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. "ErrorSamples") 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 GoogleCloudDiscoveryengineV1ImportIdentityMappingsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1ImportIdentityMappingsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesMetadata: // Metadata related to the progress of the ImportSuggestionDenyListEntries // operation. This is returned by the google.longrunning.Operation.metadata @@ -8762,8 +8850,9 @@ type GoogleCloudDiscoveryengineV1SearchRequest struct { // SpellCorrectionSpec: The spell correction specification that specifies the // mode under which spell correction takes effect. SpellCorrectionSpec *GoogleCloudDiscoveryengineV1SearchRequestSpellCorrectionSpec `json:"spellCorrectionSpec,omitempty"` - // UserInfo: Information about the end user. Highly recommended for analytics. - // UserInfo.user_agent is used to deduce `device_type` for analytics. + // UserInfo: Information about the end user. Highly recommended for analytics + // and personalization. UserInfo.user_agent is used to deduce `device_type` for + // analytics. UserInfo *GoogleCloudDiscoveryengineV1UserInfo `json:"userInfo,omitempty"` // UserLabels: The user labels applied to a resource must meet the following // requirements: * Each resource can have multiple labels, up to a maximum of @@ -12046,6 +12135,7 @@ type GoogleCloudDiscoveryengineV1alphaCmekConfig struct { // "KEY_ISSUE" - The CmekConfig is unavailable, most likely due to the KMS // Key being revoked. // "DELETING" - The CmekConfig is deleting. + // "DELETE_FAILED" - The CmekConfig deletion process failed. // "UNUSABLE" - The CmekConfig is not usable, most likely due to some // internal issue. // "ACTIVE_ROTATING" - The KMS key version is being rotated. @@ -12859,6 +12949,10 @@ type GoogleCloudDiscoveryengineV1alphaDataConnector struct { // source. // "WARNING" - The connector has completed a sync run, but encountered // non-fatal errors. + // "INITIALIZATION_FAILED" - Connector initialization failed. Potential + // causes include runtime errors or issues in the asynchronous pipeline, + // preventing the request from reaching downstream services (except for some + // connector types). State string `json:"state,omitempty"` // StaticIpAddresses: Output only. The static IP addresses used by this // connector. @@ -12974,6 +13068,9 @@ type GoogleCloudDiscoveryengineV1alphaDataStore struct { // DocumentProcessingConfig: Configuration for Document understanding and // enrichment. DocumentProcessingConfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig `json:"documentProcessingConfig,omitempty"` + // HealthcareFhirConfig: Optional. Configuration for `HEALTHCARE_FHIR` + // vertical. + HealthcareFhirConfig *GoogleCloudDiscoveryengineV1alphaHealthcareFhirConfig `json:"healthcareFhirConfig,omitempty"` // IdpConfig: Output only. Data store level identity provider config. IdpConfig *GoogleCloudDiscoveryengineV1alphaIdpConfig `json:"idpConfig,omitempty"` // IndustryVertical: Immutable. The industry vertical that the data store @@ -14477,6 +14574,67 @@ func (s GoogleCloudDiscoveryengineV1alphaGetUriPatternDocumentDataResponse) Mars return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1alphaHealthcareFhirConfig: Config to data store +// for `HEALTHCARE_FHIR` vertical. +type GoogleCloudDiscoveryengineV1alphaHealthcareFhirConfig struct { + // EnableConfigurableSchema: Whether to enable configurable schema for + // `HEALTHCARE_FHIR` vertical. If set to `true`, the predefined healthcare fhir + // schema can be extended for more customized searching and filtering. + EnableConfigurableSchema bool `json:"enableConfigurableSchema,omitempty"` + // EnableStaticIndexingForBatchIngestion: Whether to enable static indexing for + // `HEALTHCARE_FHIR` batch ingestion. If set to `true`, the batch ingestion + // will be processed in a static indexing mode which is slower but more capable + // of handling larger volume. + EnableStaticIndexingForBatchIngestion bool `json:"enableStaticIndexingForBatchIngestion,omitempty"` + // ForceSendFields is a list of field names (e.g. "EnableConfigurableSchema") + // 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. "EnableConfigurableSchema") 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 GoogleCloudDiscoveryengineV1alphaHealthcareFhirConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaHealthcareFhirConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1alphaIdentityMappingEntryOperationMetadata: +// IdentityMappingEntry LongRunningOperation metadata for +// [IdentityMappingStoreService.ImportIdentityMappings] and +// [IdentityMappingStoreService.PurgeIdentityMappings] +type GoogleCloudDiscoveryengineV1alphaIdentityMappingEntryOperationMetadata struct { + // FailureCount: The number of IdentityMappingEntries that failed to be + // processed. + FailureCount int64 `json:"failureCount,omitempty,string"` + // SuccessCount: The number of IdentityMappingEntries that were successfully + // processed. + SuccessCount int64 `json:"successCount,omitempty,string"` + // TotalCount: The total number of IdentityMappingEntries that were processed. + TotalCount int64 `json:"totalCount,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "FailureCount") 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. "FailureCount") 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 GoogleCloudDiscoveryengineV1alphaIdentityMappingEntryOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaIdentityMappingEntryOperationMetadata + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1alphaIdentityScheduleConfig: The configuration // for the identity data synchronization runs. type GoogleCloudDiscoveryengineV1alphaIdentityScheduleConfig struct { @@ -14708,6 +14866,29 @@ func (s GoogleCloudDiscoveryengineV1alphaImportErrorConfig) MarshalJSON() ([]byt return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1alphaImportIdentityMappingsResponse: Response +// message for IdentityMappingStoreService.ImportIdentityMappings +type GoogleCloudDiscoveryengineV1alphaImportIdentityMappingsResponse struct { + // ErrorSamples: A sample of errors encountered while processing the request. + ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"` + // ForceSendFields is a list of field names (e.g. "ErrorSamples") 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. "ErrorSamples") 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 GoogleCloudDiscoveryengineV1alphaImportIdentityMappingsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaImportIdentityMappingsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1alphaImportSampleQueriesMetadata: Metadata // related to the progress of the ImportSampleQueries operation. This will be // returned by the google.longrunning.Operation.metadata field. @@ -15588,6 +15769,10 @@ type GoogleCloudDiscoveryengineV1alphaRecrawlUrisMetadata struct { // InvalidUrisCount: Total number of unique URIs in the request that have // invalid format. InvalidUrisCount int64 `json:"invalidUrisCount,omitempty"` + // NoindexUris: URIs that have no index meta tag. Sample limited to 1000. + NoindexUris []string `json:"noindexUris,omitempty"` + // NoindexUrisCount: Total number of URIs that have no index meta tag. + NoindexUrisCount int64 `json:"noindexUrisCount,omitempty"` // PendingCount: Total number of URIs that have yet to be crawled. PendingCount int64 `json:"pendingCount,omitempty"` // QuotaExceededCount: Total number of URIs that were rejected due to @@ -16100,8 +16285,9 @@ type GoogleCloudDiscoveryengineV1alphaSearchRequest struct { // SpellCorrectionSpec: The spell correction specification that specifies the // mode under which spell correction takes effect. SpellCorrectionSpec *GoogleCloudDiscoveryengineV1alphaSearchRequestSpellCorrectionSpec `json:"spellCorrectionSpec,omitempty"` - // UserInfo: Information about the end user. Highly recommended for analytics. - // UserInfo.user_agent is used to deduce `device_type` for analytics. + // UserInfo: Information about the end user. Highly recommended for analytics + // and personalization. UserInfo.user_agent is used to deduce `device_type` for + // analytics. UserInfo *GoogleCloudDiscoveryengineV1alphaUserInfo `json:"userInfo,omitempty"` // UserLabels: The user labels applied to a resource must meet the following // requirements: * Each resource can have multiple labels, up to a maximum of @@ -17884,6 +18070,7 @@ type GoogleCloudDiscoveryengineV1betaCmekConfig struct { // "KEY_ISSUE" - The CmekConfig is unavailable, most likely due to the KMS // Key being revoked. // "DELETING" - The CmekConfig is deleting. + // "DELETE_FAILED" - The CmekConfig deletion process failed. // "UNUSABLE" - The CmekConfig is not usable, most likely due to some // internal issue. // "ACTIVE_ROTATING" - The KMS key version is being rotated. @@ -18396,6 +18583,9 @@ type GoogleCloudDiscoveryengineV1betaDataStore struct { // DocumentProcessingConfig: Configuration for Document understanding and // enrichment. DocumentProcessingConfig *GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig `json:"documentProcessingConfig,omitempty"` + // HealthcareFhirConfig: Optional. Configuration for `HEALTHCARE_FHIR` + // vertical. + HealthcareFhirConfig *GoogleCloudDiscoveryengineV1betaHealthcareFhirConfig `json:"healthcareFhirConfig,omitempty"` // IndustryVertical: Immutable. The industry vertical that the data store // registers. // @@ -19317,6 +19507,67 @@ func (s GoogleCloudDiscoveryengineV1betaFetchSitemapsResponseSitemapMetadata) Ma return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1betaHealthcareFhirConfig: Config to data store +// for `HEALTHCARE_FHIR` vertical. +type GoogleCloudDiscoveryengineV1betaHealthcareFhirConfig struct { + // EnableConfigurableSchema: Whether to enable configurable schema for + // `HEALTHCARE_FHIR` vertical. If set to `true`, the predefined healthcare fhir + // schema can be extended for more customized searching and filtering. + EnableConfigurableSchema bool `json:"enableConfigurableSchema,omitempty"` + // EnableStaticIndexingForBatchIngestion: Whether to enable static indexing for + // `HEALTHCARE_FHIR` batch ingestion. If set to `true`, the batch ingestion + // will be processed in a static indexing mode which is slower but more capable + // of handling larger volume. + EnableStaticIndexingForBatchIngestion bool `json:"enableStaticIndexingForBatchIngestion,omitempty"` + // ForceSendFields is a list of field names (e.g. "EnableConfigurableSchema") + // 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. "EnableConfigurableSchema") 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 GoogleCloudDiscoveryengineV1betaHealthcareFhirConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaHealthcareFhirConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1betaIdentityMappingEntryOperationMetadata: +// IdentityMappingEntry LongRunningOperation metadata for +// [IdentityMappingStoreService.ImportIdentityMappings] and +// [IdentityMappingStoreService.PurgeIdentityMappings] +type GoogleCloudDiscoveryengineV1betaIdentityMappingEntryOperationMetadata struct { + // FailureCount: The number of IdentityMappingEntries that failed to be + // processed. + FailureCount int64 `json:"failureCount,omitempty,string"` + // SuccessCount: The number of IdentityMappingEntries that were successfully + // processed. + SuccessCount int64 `json:"successCount,omitempty,string"` + // TotalCount: The total number of IdentityMappingEntries that were processed. + TotalCount int64 `json:"totalCount,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "FailureCount") 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. "FailureCount") 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 GoogleCloudDiscoveryengineV1betaIdentityMappingEntryOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaIdentityMappingEntryOperationMetadata + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsMetadata: // Metadata related to the progress of the ImportCompletionSuggestions // operation. This will be returned by the @@ -19463,6 +19714,29 @@ func (s GoogleCloudDiscoveryengineV1betaImportErrorConfig) MarshalJSON() ([]byte return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1betaImportIdentityMappingsResponse: Response +// message for IdentityMappingStoreService.ImportIdentityMappings +type GoogleCloudDiscoveryengineV1betaImportIdentityMappingsResponse struct { + // ErrorSamples: A sample of errors encountered while processing the request. + ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"` + // ForceSendFields is a list of field names (e.g. "ErrorSamples") 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. "ErrorSamples") 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 GoogleCloudDiscoveryengineV1betaImportIdentityMappingsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaImportIdentityMappingsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1betaImportSampleQueriesMetadata: Metadata // related to the progress of the ImportSampleQueries operation. This will be // returned by the google.longrunning.Operation.metadata field. @@ -20310,8 +20584,9 @@ type GoogleCloudDiscoveryengineV1betaSearchRequest struct { // SpellCorrectionSpec: The spell correction specification that specifies the // mode under which spell correction takes effect. SpellCorrectionSpec *GoogleCloudDiscoveryengineV1betaSearchRequestSpellCorrectionSpec `json:"spellCorrectionSpec,omitempty"` - // UserInfo: Information about the end user. Highly recommended for analytics. - // UserInfo.user_agent is used to deduce `device_type` for analytics. + // UserInfo: Information about the end user. Highly recommended for analytics + // and personalization. UserInfo.user_agent is used to deduce `device_type` for + // analytics. UserInfo *GoogleCloudDiscoveryengineV1betaUserInfo `json:"userInfo,omitempty"` // UserLabels: The user labels applied to a resource must meet the following // requirements: * Each resource can have multiple labels, up to a maximum of diff --git a/discoveryengine/v1alpha/discoveryengine-api.json b/discoveryengine/v1alpha/discoveryengine-api.json index 3fba8bfb368..52cbf8a11d9 100644 --- a/discoveryengine/v1alpha/discoveryengine-api.json +++ b/discoveryengine/v1alpha/discoveryengine-api.json @@ -7717,6 +7717,229 @@ } }, "identityMappingStores": { + "methods": { + "create": { + "description": "Creates a new Identity Mapping Store.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/identityMappingStores", + "httpMethod": "POST", + "id": "discoveryengine.projects.locations.identityMappingStores.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "cmekConfigName": { + "description": "Resource name of the CmekConfig to use for protecting this Identity Mapping Store.", + "location": "query", + "type": "string" + }, + "disableCmek": { + "description": "Identity Mapping Store without CMEK protections. If a default CmekConfig is set for the project, setting this field will override the default CmekConfig as well.", + "location": "query", + "type": "boolean" + }, + "identityMappingStoreId": { + "description": "Required. The ID of the Identity Mapping Store to create. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 63 characters.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent collection resource name, such as `projects/{project}/locations/{location}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/identityMappingStores", + "request": { + "$ref": "GoogleCloudDiscoveryengineV1alphaIdentityMappingStore" + }, + "response": { + "$ref": "GoogleCloudDiscoveryengineV1alphaIdentityMappingStore" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes the Identity Mapping Store.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/identityMappingStores/{identityMappingStoresId}", + "httpMethod": "DELETE", + "id": "discoveryengine.projects.locations.identityMappingStores.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the Identity Mapping Store to delete. Format: `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/identityMappingStores/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the Identity Mapping Store.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/identityMappingStores/{identityMappingStoresId}", + "httpMethod": "GET", + "id": "discoveryengine.projects.locations.identityMappingStores.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the Identity Mapping Store to get. Format: `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/identityMappingStores/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "GoogleCloudDiscoveryengineV1alphaIdentityMappingStore" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "importIdentityMappings": { + "description": "Imports a list of Identity Mapping Entries to an Identity Mapping Store.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/identityMappingStores/{identityMappingStoresId}:importIdentityMappings", + "httpMethod": "POST", + "id": "discoveryengine.projects.locations.identityMappingStores.importIdentityMappings", + "parameterOrder": [ + "identityMappingStore" + ], + "parameters": { + "identityMappingStore": { + "description": "Required. The name of the Identity Mapping Store to import Identity Mapping Entries to. Format: `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/identityMappingStores/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+identityMappingStore}:importIdentityMappings", + "request": { + "$ref": "GoogleCloudDiscoveryengineV1alphaImportIdentityMappingsRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists all Identity Mapping Stores.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/identityMappingStores", + "httpMethod": "GET", + "id": "discoveryengine.projects.locations.identityMappingStores.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Maximum number of IdentityMappingStores to return. If unspecified, defaults to 100. The maximum allowed value is 1000. Values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token, received from a previous `ListIdentityMappingStores` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListIdentityMappingStores` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent of the Identity Mapping Stores to list. Format: `projects/{project}/locations/{location}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/identityMappingStores", + "response": { + "$ref": "GoogleCloudDiscoveryengineV1alphaListIdentityMappingStoresResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "listIdentityMappings": { + "description": "Lists Identity Mappings in an Identity Mapping Store.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/identityMappingStores/{identityMappingStoresId}:listIdentityMappings", + "httpMethod": "GET", + "id": "discoveryengine.projects.locations.identityMappingStores.listIdentityMappings", + "parameterOrder": [ + "identityMappingStore" + ], + "parameters": { + "identityMappingStore": { + "description": "Required. The name of the Identity Mapping Store to list Identity Mapping Entries in. Format: `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/identityMappingStores/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "Maximum number of IdentityMappings to return. If unspecified, defaults to 2000. The maximum allowed value is 10000. Values above 10000 will be coerced to 10000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token, received from a previous `ListIdentityMappings` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListIdentityMappings` must match the call that provided the page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1alpha/{+identityMappingStore}:listIdentityMappings", + "response": { + "$ref": "GoogleCloudDiscoveryengineV1alphaListIdentityMappingsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "purgeIdentityMappings": { + "description": "Purges specified or all Identity Mapping Entries from an Identity Mapping Store.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/identityMappingStores/{identityMappingStoresId}:purgeIdentityMappings", + "httpMethod": "POST", + "id": "discoveryengine.projects.locations.identityMappingStores.purgeIdentityMappings", + "parameterOrder": [ + "identityMappingStore" + ], + "parameters": { + "identityMappingStore": { + "description": "Required. The name of the Identity Mapping Store to purge Identity Mapping Entries from. Format: `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/identityMappingStores/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+identityMappingStore}:purgeIdentityMappings", + "request": { + "$ref": "GoogleCloudDiscoveryengineV1alphaPurgeIdentityMappingsRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, "resources": { "operations": { "methods": { @@ -8552,7 +8775,7 @@ } } }, - "revision": "20250121", + "revision": "20250125", "rootUrl": "https://discoveryengine.googleapis.com/", "schemas": { "GoogleApiDistribution": { @@ -9015,6 +9238,7 @@ "ACTIVE", "KEY_ISSUE", "DELETING", + "DELETE_FAILED", "UNUSABLE", "ACTIVE_ROTATING" ], @@ -9024,6 +9248,7 @@ "The CmekConfig can be used with DataStores.", "The CmekConfig is unavailable, most likely due to the KMS Key being revoked.", "The CmekConfig is deleting.", + "The CmekConfig deletion process failed.", "The CmekConfig is not usable, most likely due to some internal issue.", "The KMS key version is being rotated." ], @@ -9379,6 +9604,10 @@ "$ref": "GoogleCloudDiscoveryengineV1DocumentProcessingConfig", "description": "Configuration for Document understanding and enrichment." }, + "healthcareFhirConfig": { + "$ref": "GoogleCloudDiscoveryengineV1HealthcareFhirConfig", + "description": "Optional. Configuration for `HEALTHCARE_FHIR` vertical." + }, "industryVertical": { "description": "Immutable. The industry vertical that the data store registers.", "enum": [ @@ -9910,6 +10139,43 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1HealthcareFhirConfig": { + "description": "Config to data store for `HEALTHCARE_FHIR` vertical.", + "id": "GoogleCloudDiscoveryengineV1HealthcareFhirConfig", + "properties": { + "enableConfigurableSchema": { + "description": "Whether to enable configurable schema for `HEALTHCARE_FHIR` vertical. If set to `true`, the predefined healthcare fhir schema can be extended for more customized searching and filtering.", + "type": "boolean" + }, + "enableStaticIndexingForBatchIngestion": { + "description": "Whether to enable static indexing for `HEALTHCARE_FHIR` batch ingestion. If set to `true`, the batch ingestion will be processed in a static indexing mode which is slower but more capable of handling larger volume.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1IdentityMappingEntryOperationMetadata": { + "description": "IdentityMappingEntry LongRunningOperation metadata for [IdentityMappingStoreService.ImportIdentityMappings] and [IdentityMappingStoreService.PurgeIdentityMappings]", + "id": "GoogleCloudDiscoveryengineV1IdentityMappingEntryOperationMetadata", + "properties": { + "failureCount": { + "description": "The number of IdentityMappingEntries that failed to be processed.", + "format": "int64", + "type": "string" + }, + "successCount": { + "description": "The number of IdentityMappingEntries that were successfully processed.", + "format": "int64", + "type": "string" + }, + "totalCount": { + "description": "The total number of IdentityMappingEntries that were processed.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsMetadata": { "description": "Metadata related to the progress of the ImportCompletionSuggestions operation. This will be returned by the google.longrunning.Operation.metadata field.", "id": "GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsMetadata", @@ -10016,6 +10282,20 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1ImportIdentityMappingsResponse": { + "description": "Response message for IdentityMappingStoreService.ImportIdentityMappings", + "id": "GoogleCloudDiscoveryengineV1ImportIdentityMappingsResponse", + "properties": { + "errorSamples": { + "description": "A sample of errors encountered while processing the request.", + "items": { + "$ref": "GoogleRpcStatus" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesMetadata": { "description": "Metadata related to the progress of the ImportSuggestionDenyListEntries operation. This is returned by the google.longrunning.Operation.metadata field.", "id": "GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesMetadata", @@ -13152,6 +13432,7 @@ "ACTIVE", "KEY_ISSUE", "DELETING", + "DELETE_FAILED", "UNUSABLE", "ACTIVE_ROTATING" ], @@ -13161,6 +13442,7 @@ "The CmekConfig can be used with DataStores.", "The CmekConfig is unavailable, most likely due to the KMS Key being revoked.", "The CmekConfig is deleting.", + "The CmekConfig deletion process failed.", "The CmekConfig is not usable, most likely due to some internal issue.", "The KMS key version is being rotated." ], @@ -14190,7 +14472,8 @@ "ACTIVE", "FAILED", "RUNNING", - "WARNING" + "WARNING", + "INITIALIZATION_FAILED" ], "enumDescriptions": [ "Default value.", @@ -14198,7 +14481,8 @@ "The connector is successfully set up and awaiting next sync run.", "The connector is in error. The error details can be found in DataConnector.errors. If the error is unfixable, the DataConnector can be deleted by [CollectionService.DeleteCollection] API.", "The connector is actively syncing records from the data source.", - "The connector has completed a sync run, but encountered non-fatal errors." + "The connector has completed a sync run, but encountered non-fatal errors.", + "Connector initialization failed. Potential causes include runtime errors or issues in the asynchronous pipeline, preventing the request from reaching downstream services (except for some connector types)." ], "readOnly": true, "type": "string" @@ -14324,6 +14608,10 @@ "$ref": "GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig", "description": "Configuration for Document understanding and enrichment." }, + "healthcareFhirConfig": { + "$ref": "GoogleCloudDiscoveryengineV1alphaHealthcareFhirConfig", + "description": "Optional. Configuration for `HEALTHCARE_FHIR` vertical." + }, "idpConfig": { "$ref": "GoogleCloudDiscoveryengineV1alphaIdpConfig", "description": "Output only. Data store level identity provider config.", @@ -16275,6 +16563,87 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaHealthcareFhirConfig": { + "description": "Config to data store for `HEALTHCARE_FHIR` vertical.", + "id": "GoogleCloudDiscoveryengineV1alphaHealthcareFhirConfig", + "properties": { + "enableConfigurableSchema": { + "description": "Whether to enable configurable schema for `HEALTHCARE_FHIR` vertical. If set to `true`, the predefined healthcare fhir schema can be extended for more customized searching and filtering.", + "type": "boolean" + }, + "enableStaticIndexingForBatchIngestion": { + "description": "Whether to enable static indexing for `HEALTHCARE_FHIR` batch ingestion. If set to `true`, the batch ingestion will be processed in a static indexing mode which is slower but more capable of handling larger volume.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1alphaIdentityMappingEntry": { + "description": "Identity Mapping Entry that maps an external identity to an internal identity.", + "id": "GoogleCloudDiscoveryengineV1alphaIdentityMappingEntry", + "properties": { + "externalIdentity": { + "description": "Required. Identity outside the customer identity provider. The length limit of external identity will be of 100 characters.", + "type": "string" + }, + "groupId": { + "description": "Group identifier. For Google Workspace user account, group_id should be the google workspace group email. For non-google identity provider, group_id is the mapped group identifier configured during the workforcepool config.", + "type": "string" + }, + "userId": { + "description": "User identifier. For Google Workspace user account, user_id should be the google workspace user email. For non-google identity provider, user_id is the mapped user identifier configured during the workforcepool config.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1alphaIdentityMappingEntryOperationMetadata": { + "description": "IdentityMappingEntry LongRunningOperation metadata for [IdentityMappingStoreService.ImportIdentityMappings] and [IdentityMappingStoreService.PurgeIdentityMappings]", + "id": "GoogleCloudDiscoveryengineV1alphaIdentityMappingEntryOperationMetadata", + "properties": { + "failureCount": { + "description": "The number of IdentityMappingEntries that failed to be processed.", + "format": "int64", + "type": "string" + }, + "successCount": { + "description": "The number of IdentityMappingEntries that were successfully processed.", + "format": "int64", + "type": "string" + }, + "totalCount": { + "description": "The total number of IdentityMappingEntries that were processed.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1alphaIdentityMappingStore": { + "description": "Identity Mapping Store which contains Identity Mapping Entries.", + "id": "GoogleCloudDiscoveryengineV1alphaIdentityMappingStore", + "properties": { + "cmekConfig": { + "$ref": "GoogleCloudDiscoveryengineV1alphaCmekConfig", + "description": "Output only. CMEK-related information for the Identity Mapping Store.", + "readOnly": true + }, + "idpConfig": { + "$ref": "GoogleCloudDiscoveryengineV1alphaIdpConfig", + "description": "Output only. The identity provider configuration this is bound to translate the identity mapping entries within.", + "readOnly": true + }, + "kmsKeyName": { + "description": "Input only. The KMS key to be used to protect this Identity Mapping Store at creation time. Must be set for requests that need to comply with CMEK Org Policy protections. If this field is set and processed successfully, the Identity Mapping Store will be protected by the KMS key, as indicated in the cmek_config field.", + "type": "string" + }, + "name": { + "description": "Immutable. The full resource name of the identity mapping store. Format: `projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaIdentityScheduleConfig": { "description": "The configuration for the identity data synchronization runs.", "id": "GoogleCloudDiscoveryengineV1alphaIdentityScheduleConfig", @@ -16562,6 +16931,45 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaImportIdentityMappingsRequest": { + "description": "Request message for IdentityMappingStoreService.ImportIdentityMappings", + "id": "GoogleCloudDiscoveryengineV1alphaImportIdentityMappingsRequest", + "properties": { + "inlineSource": { + "$ref": "GoogleCloudDiscoveryengineV1alphaImportIdentityMappingsRequestInlineSource", + "description": "The inline source to import identity mapping entries from." + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1alphaImportIdentityMappingsRequestInlineSource": { + "description": "The inline source to import identity mapping entries from.", + "id": "GoogleCloudDiscoveryengineV1alphaImportIdentityMappingsRequestInlineSource", + "properties": { + "identityMappingEntries": { + "description": "A maximum of 10000 entries can be imported at one time", + "items": { + "$ref": "GoogleCloudDiscoveryengineV1alphaIdentityMappingEntry" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1alphaImportIdentityMappingsResponse": { + "description": "Response message for IdentityMappingStoreService.ImportIdentityMappings", + "id": "GoogleCloudDiscoveryengineV1alphaImportIdentityMappingsResponse", + "properties": { + "errorSamples": { + "description": "A sample of errors encountered while processing the request.", + "items": { + "$ref": "GoogleRpcStatus" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaImportSampleQueriesMetadata": { "description": "Metadata related to the progress of the ImportSampleQueries operation. This will be returned by the google.longrunning.Operation.metadata field.", "id": "GoogleCloudDiscoveryengineV1alphaImportSampleQueriesMetadata", @@ -17089,6 +17497,42 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaListIdentityMappingStoresResponse": { + "description": "Response message for IdentityMappingStoreService.ListIdentityMappingStores", + "id": "GoogleCloudDiscoveryengineV1alphaListIdentityMappingStoresResponse", + "properties": { + "identityMappingStores": { + "description": "The Identity Mapping Stores.", + "items": { + "$ref": "GoogleCloudDiscoveryengineV1alphaIdentityMappingStore" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1alphaListIdentityMappingsResponse": { + "description": "Response message for IdentityMappingStoreService.ListIdentityMappings", + "id": "GoogleCloudDiscoveryengineV1alphaListIdentityMappingsResponse", + "properties": { + "identityMappingEntries": { + "description": "The Identity Mapping Entries.", + "items": { + "$ref": "GoogleCloudDiscoveryengineV1alphaIdentityMappingEntry" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaListSampleQueriesResponse": { "description": "Response message for SampleQueryService.ListSampleQueries method.", "id": "GoogleCloudDiscoveryengineV1alphaListSampleQueriesResponse", @@ -17657,6 +18101,39 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaPurgeIdentityMappingsRequest": { + "description": "Request message for IdentityMappingStoreService.PurgeIdentityMappings", + "id": "GoogleCloudDiscoveryengineV1alphaPurgeIdentityMappingsRequest", + "properties": { + "filter": { + "description": "Filter matching identity mappings to purge. The eligible field for filtering is: * `update_time`: in ISO 8601 \"zulu\" format. * `external_id` Examples: * Deleting all identity mappings updated in a time range: `update_time \u003e \"2012-04-23T18:25:43.511Z\" AND update_time \u003c \"2012-04-23T18:30:43.511Z\"` * Deleting all identity mappings for a given external_id: `external_id = \"id1\"` * Deleting all identity mappings inside an identity mapping store: `*` The filtering fields are assumed to have an implicit AND. Should not be used with source. An error will be thrown, if both are provided.", + "type": "string" + }, + "force": { + "description": "Actually performs the purge. If `force` is set to false, return the expected purge count without deleting any identity mappings. This field is only supported for purge with filter. For input source this field is ignored and data will be purged regardless of the value of this field.", + "type": "boolean" + }, + "inlineSource": { + "$ref": "GoogleCloudDiscoveryengineV1alphaPurgeIdentityMappingsRequestInlineSource", + "description": "The inline source to purge identity mapping entries from." + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1alphaPurgeIdentityMappingsRequestInlineSource": { + "description": "The inline source to purge identity mapping entries from.", + "id": "GoogleCloudDiscoveryengineV1alphaPurgeIdentityMappingsRequestInlineSource", + "properties": { + "identityMappingEntries": { + "description": "A maximum of 10000 entries can be purged at one time", + "items": { + "$ref": "GoogleCloudDiscoveryengineV1alphaIdentityMappingEntry" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesMetadata": { "description": "Metadata related to the progress of the PurgeSuggestionDenyListEntries operation. This is returned by the google.longrunning.Operation.metadata field.", "id": "GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesMetadata", @@ -18008,6 +18485,18 @@ "format": "int32", "type": "integer" }, + "noindexUris": { + "description": "URIs that have no index meta tag. Sample limited to 1000.", + "items": { + "type": "string" + }, + "type": "array" + }, + "noindexUrisCount": { + "description": "Total number of URIs that have no index meta tag.", + "format": "int32", + "type": "integer" + }, "pendingCount": { "description": "Total number of URIs that have yet to be crawled.", "format": "int32", @@ -18803,7 +19292,7 @@ }, "userInfo": { "$ref": "GoogleCloudDiscoveryengineV1alphaUserInfo", - "description": "Information about the end user. Highly recommended for analytics. UserInfo.user_agent is used to deduce `device_type` for analytics." + "description": "Information about the end user. Highly recommended for analytics and personalization. UserInfo.user_agent is used to deduce `device_type` for analytics." }, "userLabels": { "additionalProperties": { @@ -21209,6 +21698,7 @@ "ACTIVE", "KEY_ISSUE", "DELETING", + "DELETE_FAILED", "UNUSABLE", "ACTIVE_ROTATING" ], @@ -21218,6 +21708,7 @@ "The CmekConfig can be used with DataStores.", "The CmekConfig is unavailable, most likely due to the KMS Key being revoked.", "The CmekConfig is deleting.", + "The CmekConfig deletion process failed.", "The CmekConfig is not usable, most likely due to some internal issue.", "The KMS key version is being rotated." ], @@ -21596,6 +22087,10 @@ "$ref": "GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig", "description": "Configuration for Document understanding and enrichment." }, + "healthcareFhirConfig": { + "$ref": "GoogleCloudDiscoveryengineV1betaHealthcareFhirConfig", + "description": "Optional. Configuration for `HEALTHCARE_FHIR` vertical." + }, "industryVertical": { "description": "Immutable. The industry vertical that the data store registers.", "enum": [ @@ -22267,6 +22762,43 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1betaHealthcareFhirConfig": { + "description": "Config to data store for `HEALTHCARE_FHIR` vertical.", + "id": "GoogleCloudDiscoveryengineV1betaHealthcareFhirConfig", + "properties": { + "enableConfigurableSchema": { + "description": "Whether to enable configurable schema for `HEALTHCARE_FHIR` vertical. If set to `true`, the predefined healthcare fhir schema can be extended for more customized searching and filtering.", + "type": "boolean" + }, + "enableStaticIndexingForBatchIngestion": { + "description": "Whether to enable static indexing for `HEALTHCARE_FHIR` batch ingestion. If set to `true`, the batch ingestion will be processed in a static indexing mode which is slower but more capable of handling larger volume.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1betaIdentityMappingEntryOperationMetadata": { + "description": "IdentityMappingEntry LongRunningOperation metadata for [IdentityMappingStoreService.ImportIdentityMappings] and [IdentityMappingStoreService.PurgeIdentityMappings]", + "id": "GoogleCloudDiscoveryengineV1betaIdentityMappingEntryOperationMetadata", + "properties": { + "failureCount": { + "description": "The number of IdentityMappingEntries that failed to be processed.", + "format": "int64", + "type": "string" + }, + "successCount": { + "description": "The number of IdentityMappingEntries that were successfully processed.", + "format": "int64", + "type": "string" + }, + "totalCount": { + "description": "The total number of IdentityMappingEntries that were processed.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsMetadata": { "description": "Metadata related to the progress of the ImportCompletionSuggestions operation. This will be returned by the google.longrunning.Operation.metadata field.", "id": "GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsMetadata", @@ -22373,6 +22905,20 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1betaImportIdentityMappingsResponse": { + "description": "Response message for IdentityMappingStoreService.ImportIdentityMappings", + "id": "GoogleCloudDiscoveryengineV1betaImportIdentityMappingsResponse", + "properties": { + "errorSamples": { + "description": "A sample of errors encountered while processing the request.", + "items": { + "$ref": "GoogleRpcStatus" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1betaImportSampleQueriesMetadata": { "description": "Metadata related to the progress of the ImportSampleQueries operation. This will be returned by the google.longrunning.Operation.metadata field.", "id": "GoogleCloudDiscoveryengineV1betaImportSampleQueriesMetadata", @@ -23011,7 +23557,7 @@ }, "userInfo": { "$ref": "GoogleCloudDiscoveryengineV1betaUserInfo", - "description": "Information about the end user. Highly recommended for analytics. UserInfo.user_agent is used to deduce `device_type` for analytics." + "description": "Information about the end user. Highly recommended for analytics and personalization. UserInfo.user_agent is used to deduce `device_type` for analytics." }, "userLabels": { "additionalProperties": { diff --git a/discoveryengine/v1alpha/discoveryengine-gen.go b/discoveryengine/v1alpha/discoveryengine-gen.go index 0787bb331ee..fc71172c7ee 100644 --- a/discoveryengine/v1alpha/discoveryengine-gen.go +++ b/discoveryengine/v1alpha/discoveryengine-gen.go @@ -1865,6 +1865,7 @@ type GoogleCloudDiscoveryengineV1CmekConfig struct { // "KEY_ISSUE" - The CmekConfig is unavailable, most likely due to the KMS // Key being revoked. // "DELETING" - The CmekConfig is deleting. + // "DELETE_FAILED" - The CmekConfig deletion process failed. // "UNUSABLE" - The CmekConfig is not usable, most likely due to some // internal issue. // "ACTIVE_ROTATING" - The KMS key version is being rotated. @@ -2345,6 +2346,9 @@ type GoogleCloudDiscoveryengineV1DataStore struct { // DocumentProcessingConfig: Configuration for Document understanding and // enrichment. DocumentProcessingConfig *GoogleCloudDiscoveryengineV1DocumentProcessingConfig `json:"documentProcessingConfig,omitempty"` + // HealthcareFhirConfig: Optional. Configuration for `HEALTHCARE_FHIR` + // vertical. + HealthcareFhirConfig *GoogleCloudDiscoveryengineV1HealthcareFhirConfig `json:"healthcareFhirConfig,omitempty"` // IndustryVertical: Immutable. The industry vertical that the data store // registers. // @@ -3081,6 +3085,67 @@ func (s GoogleCloudDiscoveryengineV1EngineSearchEngineConfig) MarshalJSON() ([]b return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1HealthcareFhirConfig: Config to data store for +// `HEALTHCARE_FHIR` vertical. +type GoogleCloudDiscoveryengineV1HealthcareFhirConfig struct { + // EnableConfigurableSchema: Whether to enable configurable schema for + // `HEALTHCARE_FHIR` vertical. If set to `true`, the predefined healthcare fhir + // schema can be extended for more customized searching and filtering. + EnableConfigurableSchema bool `json:"enableConfigurableSchema,omitempty"` + // EnableStaticIndexingForBatchIngestion: Whether to enable static indexing for + // `HEALTHCARE_FHIR` batch ingestion. If set to `true`, the batch ingestion + // will be processed in a static indexing mode which is slower but more capable + // of handling larger volume. + EnableStaticIndexingForBatchIngestion bool `json:"enableStaticIndexingForBatchIngestion,omitempty"` + // ForceSendFields is a list of field names (e.g. "EnableConfigurableSchema") + // 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. "EnableConfigurableSchema") 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 GoogleCloudDiscoveryengineV1HealthcareFhirConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1HealthcareFhirConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1IdentityMappingEntryOperationMetadata: +// IdentityMappingEntry LongRunningOperation metadata for +// [IdentityMappingStoreService.ImportIdentityMappings] and +// [IdentityMappingStoreService.PurgeIdentityMappings] +type GoogleCloudDiscoveryengineV1IdentityMappingEntryOperationMetadata struct { + // FailureCount: The number of IdentityMappingEntries that failed to be + // processed. + FailureCount int64 `json:"failureCount,omitempty,string"` + // SuccessCount: The number of IdentityMappingEntries that were successfully + // processed. + SuccessCount int64 `json:"successCount,omitempty,string"` + // TotalCount: The total number of IdentityMappingEntries that were processed. + TotalCount int64 `json:"totalCount,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "FailureCount") 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. "FailureCount") 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 GoogleCloudDiscoveryengineV1IdentityMappingEntryOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1IdentityMappingEntryOperationMetadata + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsMetadata: Metadata // related to the progress of the ImportCompletionSuggestions operation. This // will be returned by the google.longrunning.Operation.metadata field. @@ -3226,6 +3291,29 @@ func (s GoogleCloudDiscoveryengineV1ImportErrorConfig) MarshalJSON() ([]byte, er return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1ImportIdentityMappingsResponse: Response message +// for IdentityMappingStoreService.ImportIdentityMappings +type GoogleCloudDiscoveryengineV1ImportIdentityMappingsResponse struct { + // ErrorSamples: A sample of errors encountered while processing the request. + ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"` + // ForceSendFields is a list of field names (e.g. "ErrorSamples") 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. "ErrorSamples") 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 GoogleCloudDiscoveryengineV1ImportIdentityMappingsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1ImportIdentityMappingsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesMetadata: // Metadata related to the progress of the ImportSuggestionDenyListEntries // operation. This is returned by the google.longrunning.Operation.metadata @@ -7483,6 +7571,7 @@ type GoogleCloudDiscoveryengineV1alphaCmekConfig struct { // "KEY_ISSUE" - The CmekConfig is unavailable, most likely due to the KMS // Key being revoked. // "DELETING" - The CmekConfig is deleting. + // "DELETE_FAILED" - The CmekConfig deletion process failed. // "UNUSABLE" - The CmekConfig is not usable, most likely due to some // internal issue. // "ACTIVE_ROTATING" - The KMS key version is being rotated. @@ -8778,6 +8867,10 @@ type GoogleCloudDiscoveryengineV1alphaDataConnector struct { // source. // "WARNING" - The connector has completed a sync run, but encountered // non-fatal errors. + // "INITIALIZATION_FAILED" - Connector initialization failed. Potential + // causes include runtime errors or issues in the asynchronous pipeline, + // preventing the request from reaching downstream services (except for some + // connector types). State string `json:"state,omitempty"` // StaticIpAddresses: Output only. The static IP addresses used by this // connector. @@ -8896,6 +8989,9 @@ type GoogleCloudDiscoveryengineV1alphaDataStore struct { // DocumentProcessingConfig: Configuration for Document understanding and // enrichment. DocumentProcessingConfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig `json:"documentProcessingConfig,omitempty"` + // HealthcareFhirConfig: Optional. Configuration for `HEALTHCARE_FHIR` + // vertical. + HealthcareFhirConfig *GoogleCloudDiscoveryengineV1alphaHealthcareFhirConfig `json:"healthcareFhirConfig,omitempty"` // IdpConfig: Output only. Data store level identity provider config. IdpConfig *GoogleCloudDiscoveryengineV1alphaIdpConfig `json:"idpConfig,omitempty"` // IndustryVertical: Immutable. The industry vertical that the data store @@ -11737,6 +11833,143 @@ func (s GoogleCloudDiscoveryengineV1alphaGuidedSearchSpec) MarshalJSON() ([]byte return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1alphaHealthcareFhirConfig: Config to data store +// for `HEALTHCARE_FHIR` vertical. +type GoogleCloudDiscoveryengineV1alphaHealthcareFhirConfig struct { + // EnableConfigurableSchema: Whether to enable configurable schema for + // `HEALTHCARE_FHIR` vertical. If set to `true`, the predefined healthcare fhir + // schema can be extended for more customized searching and filtering. + EnableConfigurableSchema bool `json:"enableConfigurableSchema,omitempty"` + // EnableStaticIndexingForBatchIngestion: Whether to enable static indexing for + // `HEALTHCARE_FHIR` batch ingestion. If set to `true`, the batch ingestion + // will be processed in a static indexing mode which is slower but more capable + // of handling larger volume. + EnableStaticIndexingForBatchIngestion bool `json:"enableStaticIndexingForBatchIngestion,omitempty"` + // ForceSendFields is a list of field names (e.g. "EnableConfigurableSchema") + // 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. "EnableConfigurableSchema") 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 GoogleCloudDiscoveryengineV1alphaHealthcareFhirConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaHealthcareFhirConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1alphaIdentityMappingEntry: Identity Mapping +// Entry that maps an external identity to an internal identity. +type GoogleCloudDiscoveryengineV1alphaIdentityMappingEntry struct { + // ExternalIdentity: Required. Identity outside the customer identity provider. + // The length limit of external identity will be of 100 characters. + ExternalIdentity string `json:"externalIdentity,omitempty"` + // GroupId: Group identifier. For Google Workspace user account, group_id + // should be the google workspace group email. For non-google identity + // provider, group_id is the mapped group identifier configured during the + // workforcepool config. + GroupId string `json:"groupId,omitempty"` + // UserId: User identifier. For Google Workspace user account, user_id should + // be the google workspace user email. For non-google identity provider, + // user_id is the mapped user identifier configured during the workforcepool + // config. + UserId string `json:"userId,omitempty"` + // ForceSendFields is a list of field names (e.g. "ExternalIdentity") 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. "ExternalIdentity") 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 GoogleCloudDiscoveryengineV1alphaIdentityMappingEntry) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaIdentityMappingEntry + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1alphaIdentityMappingEntryOperationMetadata: +// IdentityMappingEntry LongRunningOperation metadata for +// [IdentityMappingStoreService.ImportIdentityMappings] and +// [IdentityMappingStoreService.PurgeIdentityMappings] +type GoogleCloudDiscoveryengineV1alphaIdentityMappingEntryOperationMetadata struct { + // FailureCount: The number of IdentityMappingEntries that failed to be + // processed. + FailureCount int64 `json:"failureCount,omitempty,string"` + // SuccessCount: The number of IdentityMappingEntries that were successfully + // processed. + SuccessCount int64 `json:"successCount,omitempty,string"` + // TotalCount: The total number of IdentityMappingEntries that were processed. + TotalCount int64 `json:"totalCount,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "FailureCount") 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. "FailureCount") 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 GoogleCloudDiscoveryengineV1alphaIdentityMappingEntryOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaIdentityMappingEntryOperationMetadata + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1alphaIdentityMappingStore: Identity Mapping +// Store which contains Identity Mapping Entries. +type GoogleCloudDiscoveryengineV1alphaIdentityMappingStore struct { + // CmekConfig: Output only. CMEK-related information for the Identity Mapping + // Store. + CmekConfig *GoogleCloudDiscoveryengineV1alphaCmekConfig `json:"cmekConfig,omitempty"` + // IdpConfig: Output only. The identity provider configuration this is bound to + // translate the identity mapping entries within. + IdpConfig *GoogleCloudDiscoveryengineV1alphaIdpConfig `json:"idpConfig,omitempty"` + // KmsKeyName: Input only. The KMS key to be used to protect this Identity + // Mapping Store at creation time. Must be set for requests that need to comply + // with CMEK Org Policy protections. If this field is set and processed + // successfully, the Identity Mapping Store will be protected by the KMS key, + // as indicated in the cmek_config field. + KmsKeyName string `json:"kmsKeyName,omitempty"` + // Name: Immutable. The full resource name of the identity mapping store. + // Format: + // `projects/{project}/locations/{location}/identityMappingStores/{identity_mapp + // ing_store}`. This field must be a UTF-8 encoded string with a length limit + // of 1024 characters. + Name string `json:"name,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "CmekConfig") 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. "CmekConfig") 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 GoogleCloudDiscoveryengineV1alphaIdentityMappingStore) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaIdentityMappingStore + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1alphaIdentityScheduleConfig: The configuration // for the identity data synchronization runs. type GoogleCloudDiscoveryengineV1alphaIdentityScheduleConfig struct { @@ -12134,6 +12367,76 @@ func (s GoogleCloudDiscoveryengineV1alphaImportErrorConfig) MarshalJSON() ([]byt return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1alphaImportIdentityMappingsRequest: Request +// message for IdentityMappingStoreService.ImportIdentityMappings +type GoogleCloudDiscoveryengineV1alphaImportIdentityMappingsRequest struct { + // InlineSource: The inline source to import identity mapping entries from. + InlineSource *GoogleCloudDiscoveryengineV1alphaImportIdentityMappingsRequestInlineSource `json:"inlineSource,omitempty"` + // ForceSendFields is a list of field names (e.g. "InlineSource") 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. "InlineSource") 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 GoogleCloudDiscoveryengineV1alphaImportIdentityMappingsRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaImportIdentityMappingsRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1alphaImportIdentityMappingsRequestInlineSource: +// The inline source to import identity mapping entries from. +type GoogleCloudDiscoveryengineV1alphaImportIdentityMappingsRequestInlineSource struct { + // IdentityMappingEntries: A maximum of 10000 entries can be imported at one + // time + IdentityMappingEntries []*GoogleCloudDiscoveryengineV1alphaIdentityMappingEntry `json:"identityMappingEntries,omitempty"` + // ForceSendFields is a list of field names (e.g. "IdentityMappingEntries") 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. "IdentityMappingEntries") 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 GoogleCloudDiscoveryengineV1alphaImportIdentityMappingsRequestInlineSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaImportIdentityMappingsRequestInlineSource + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1alphaImportIdentityMappingsResponse: Response +// message for IdentityMappingStoreService.ImportIdentityMappings +type GoogleCloudDiscoveryengineV1alphaImportIdentityMappingsResponse struct { + // ErrorSamples: A sample of errors encountered while processing the request. + ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"` + // ForceSendFields is a list of field names (e.g. "ErrorSamples") 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. "ErrorSamples") 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 GoogleCloudDiscoveryengineV1alphaImportIdentityMappingsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaImportIdentityMappingsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1alphaImportSampleQueriesMetadata: Metadata // related to the progress of the ImportSampleQueries operation. This will be // returned by the google.longrunning.Operation.metadata field. @@ -12928,6 +13231,64 @@ func (s GoogleCloudDiscoveryengineV1alphaListEvaluationsResponse) MarshalJSON() return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1alphaListIdentityMappingStoresResponse: Response +// message for IdentityMappingStoreService.ListIdentityMappingStores +type GoogleCloudDiscoveryengineV1alphaListIdentityMappingStoresResponse struct { + // IdentityMappingStores: The Identity Mapping Stores. + IdentityMappingStores []*GoogleCloudDiscoveryengineV1alphaIdentityMappingStore `json:"identityMappingStores,omitempty"` + // NextPageToken: A token that can be sent as `page_token` to retrieve the next + // page. If this field is omitted, there are no subsequent pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "IdentityMappingStores") 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. "IdentityMappingStores") 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 GoogleCloudDiscoveryengineV1alphaListIdentityMappingStoresResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaListIdentityMappingStoresResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1alphaListIdentityMappingsResponse: Response +// message for IdentityMappingStoreService.ListIdentityMappings +type GoogleCloudDiscoveryengineV1alphaListIdentityMappingsResponse struct { + // IdentityMappingEntries: The Identity Mapping Entries. + IdentityMappingEntries []*GoogleCloudDiscoveryengineV1alphaIdentityMappingEntry `json:"identityMappingEntries,omitempty"` + // NextPageToken: A token that can be sent as `page_token` to retrieve the next + // page. If this field is omitted, there are no subsequent pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "IdentityMappingEntries") 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. "IdentityMappingEntries") 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 GoogleCloudDiscoveryengineV1alphaListIdentityMappingsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaListIdentityMappingsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1alphaListSampleQueriesResponse: Response message // for SampleQueryService.ListSampleQueries method. type GoogleCloudDiscoveryengineV1alphaListSampleQueriesResponse struct { @@ -13795,6 +14156,67 @@ func (s GoogleCloudDiscoveryengineV1alphaPurgeErrorConfig) MarshalJSON() ([]byte return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1alphaPurgeIdentityMappingsRequest: Request +// message for IdentityMappingStoreService.PurgeIdentityMappings +type GoogleCloudDiscoveryengineV1alphaPurgeIdentityMappingsRequest struct { + // Filter: Filter matching identity mappings to purge. The eligible field for + // filtering is: * `update_time`: in ISO 8601 "zulu" format. * `external_id` + // Examples: * Deleting all identity mappings updated in a time range: + // `update_time > "2012-04-23T18:25:43.511Z" AND update_time < + // "2012-04-23T18:30:43.511Z" * Deleting all identity mappings for a given + // external_id: `external_id = "id1" * Deleting all identity mappings inside + // an identity mapping store: `*` The filtering fields are assumed to have an + // implicit AND. Should not be used with source. An error will be thrown, if + // both are provided. + Filter string `json:"filter,omitempty"` + // Force: Actually performs the purge. If `force` is set to false, return the + // expected purge count without deleting any identity mappings. This field is + // only supported for purge with filter. For input source this field is ignored + // and data will be purged regardless of the value of this field. + Force bool `json:"force,omitempty"` + // InlineSource: The inline source to purge identity mapping entries from. + InlineSource *GoogleCloudDiscoveryengineV1alphaPurgeIdentityMappingsRequestInlineSource `json:"inlineSource,omitempty"` + // ForceSendFields is a list of field names (e.g. "Filter") 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. "Filter") 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 GoogleCloudDiscoveryengineV1alphaPurgeIdentityMappingsRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeIdentityMappingsRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1alphaPurgeIdentityMappingsRequestInlineSource: +// The inline source to purge identity mapping entries from. +type GoogleCloudDiscoveryengineV1alphaPurgeIdentityMappingsRequestInlineSource struct { + // IdentityMappingEntries: A maximum of 10000 entries can be purged at one time + IdentityMappingEntries []*GoogleCloudDiscoveryengineV1alphaIdentityMappingEntry `json:"identityMappingEntries,omitempty"` + // ForceSendFields is a list of field names (e.g. "IdentityMappingEntries") 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. "IdentityMappingEntries") 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 GoogleCloudDiscoveryengineV1alphaPurgeIdentityMappingsRequestInlineSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeIdentityMappingsRequestInlineSource + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesMetadata: // Metadata related to the progress of the PurgeSuggestionDenyListEntries // operation. This is returned by the google.longrunning.Operation.metadata @@ -14368,6 +14790,10 @@ type GoogleCloudDiscoveryengineV1alphaRecrawlUrisMetadata struct { // InvalidUrisCount: Total number of unique URIs in the request that have // invalid format. InvalidUrisCount int64 `json:"invalidUrisCount,omitempty"` + // NoindexUris: URIs that have no index meta tag. Sample limited to 1000. + NoindexUris []string `json:"noindexUris,omitempty"` + // NoindexUrisCount: Total number of URIs that have no index meta tag. + NoindexUrisCount int64 `json:"noindexUrisCount,omitempty"` // PendingCount: Total number of URIs that have yet to be crawled. PendingCount int64 `json:"pendingCount,omitempty"` // QuotaExceededCount: Total number of URIs that were rejected due to @@ -15406,8 +15832,9 @@ type GoogleCloudDiscoveryengineV1alphaSearchRequest struct { // SpellCorrectionSpec: The spell correction specification that specifies the // mode under which spell correction takes effect. SpellCorrectionSpec *GoogleCloudDiscoveryengineV1alphaSearchRequestSpellCorrectionSpec `json:"spellCorrectionSpec,omitempty"` - // UserInfo: Information about the end user. Highly recommended for analytics. - // UserInfo.user_agent is used to deduce `device_type` for analytics. + // UserInfo: Information about the end user. Highly recommended for analytics + // and personalization. UserInfo.user_agent is used to deduce `device_type` for + // analytics. UserInfo *GoogleCloudDiscoveryengineV1alphaUserInfo `json:"userInfo,omitempty"` // UserLabels: The user labels applied to a resource must meet the following // requirements: * Each resource can have multiple labels, up to a maximum of @@ -18931,6 +19358,7 @@ type GoogleCloudDiscoveryengineV1betaCmekConfig struct { // "KEY_ISSUE" - The CmekConfig is unavailable, most likely due to the KMS // Key being revoked. // "DELETING" - The CmekConfig is deleting. + // "DELETE_FAILED" - The CmekConfig deletion process failed. // "UNUSABLE" - The CmekConfig is not usable, most likely due to some // internal issue. // "ACTIVE_ROTATING" - The KMS key version is being rotated. @@ -19443,6 +19871,9 @@ type GoogleCloudDiscoveryengineV1betaDataStore struct { // DocumentProcessingConfig: Configuration for Document understanding and // enrichment. DocumentProcessingConfig *GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig `json:"documentProcessingConfig,omitempty"` + // HealthcareFhirConfig: Optional. Configuration for `HEALTHCARE_FHIR` + // vertical. + HealthcareFhirConfig *GoogleCloudDiscoveryengineV1betaHealthcareFhirConfig `json:"healthcareFhirConfig,omitempty"` // IndustryVertical: Immutable. The industry vertical that the data store // registers. // @@ -20364,6 +20795,67 @@ func (s GoogleCloudDiscoveryengineV1betaFetchSitemapsResponseSitemapMetadata) Ma return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1betaHealthcareFhirConfig: Config to data store +// for `HEALTHCARE_FHIR` vertical. +type GoogleCloudDiscoveryengineV1betaHealthcareFhirConfig struct { + // EnableConfigurableSchema: Whether to enable configurable schema for + // `HEALTHCARE_FHIR` vertical. If set to `true`, the predefined healthcare fhir + // schema can be extended for more customized searching and filtering. + EnableConfigurableSchema bool `json:"enableConfigurableSchema,omitempty"` + // EnableStaticIndexingForBatchIngestion: Whether to enable static indexing for + // `HEALTHCARE_FHIR` batch ingestion. If set to `true`, the batch ingestion + // will be processed in a static indexing mode which is slower but more capable + // of handling larger volume. + EnableStaticIndexingForBatchIngestion bool `json:"enableStaticIndexingForBatchIngestion,omitempty"` + // ForceSendFields is a list of field names (e.g. "EnableConfigurableSchema") + // 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. "EnableConfigurableSchema") 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 GoogleCloudDiscoveryengineV1betaHealthcareFhirConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaHealthcareFhirConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1betaIdentityMappingEntryOperationMetadata: +// IdentityMappingEntry LongRunningOperation metadata for +// [IdentityMappingStoreService.ImportIdentityMappings] and +// [IdentityMappingStoreService.PurgeIdentityMappings] +type GoogleCloudDiscoveryengineV1betaIdentityMappingEntryOperationMetadata struct { + // FailureCount: The number of IdentityMappingEntries that failed to be + // processed. + FailureCount int64 `json:"failureCount,omitempty,string"` + // SuccessCount: The number of IdentityMappingEntries that were successfully + // processed. + SuccessCount int64 `json:"successCount,omitempty,string"` + // TotalCount: The total number of IdentityMappingEntries that were processed. + TotalCount int64 `json:"totalCount,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "FailureCount") 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. "FailureCount") 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 GoogleCloudDiscoveryengineV1betaIdentityMappingEntryOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaIdentityMappingEntryOperationMetadata + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsMetadata: // Metadata related to the progress of the ImportCompletionSuggestions // operation. This will be returned by the @@ -20510,6 +21002,29 @@ func (s GoogleCloudDiscoveryengineV1betaImportErrorConfig) MarshalJSON() ([]byte return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1betaImportIdentityMappingsResponse: Response +// message for IdentityMappingStoreService.ImportIdentityMappings +type GoogleCloudDiscoveryengineV1betaImportIdentityMappingsResponse struct { + // ErrorSamples: A sample of errors encountered while processing the request. + ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"` + // ForceSendFields is a list of field names (e.g. "ErrorSamples") 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. "ErrorSamples") 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 GoogleCloudDiscoveryengineV1betaImportIdentityMappingsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaImportIdentityMappingsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1betaImportSampleQueriesMetadata: Metadata // related to the progress of the ImportSampleQueries operation. This will be // returned by the google.longrunning.Operation.metadata field. @@ -21357,8 +21872,9 @@ type GoogleCloudDiscoveryengineV1betaSearchRequest struct { // SpellCorrectionSpec: The spell correction specification that specifies the // mode under which spell correction takes effect. SpellCorrectionSpec *GoogleCloudDiscoveryengineV1betaSearchRequestSpellCorrectionSpec `json:"spellCorrectionSpec,omitempty"` - // UserInfo: Information about the end user. Highly recommended for analytics. - // UserInfo.user_agent is used to deduce `device_type` for analytics. + // UserInfo: Information about the end user. Highly recommended for analytics + // and personalization. UserInfo.user_agent is used to deduce `device_type` for + // analytics. UserInfo *GoogleCloudDiscoveryengineV1betaUserInfo `json:"userInfo,omitempty"` // UserLabels: The user labels applied to a resource must meet the following // requirements: * Each resource can have multiple labels, up to a maximum of @@ -51784,6 +52300,864 @@ func (c *ProjectsLocationsGroundingConfigsCheckCall) Do(opts ...googleapi.CallOp return ret, nil } +type ProjectsLocationsIdentityMappingStoresCreateCall struct { + s *Service + parent string + googleclouddiscoveryenginev1alphaidentitymappingstore *GoogleCloudDiscoveryengineV1alphaIdentityMappingStore + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new Identity Mapping Store. +// +// - parent: The parent collection resource name, such as +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsIdentityMappingStoresService) Create(parent string, googleclouddiscoveryenginev1alphaidentitymappingstore *GoogleCloudDiscoveryengineV1alphaIdentityMappingStore) *ProjectsLocationsIdentityMappingStoresCreateCall { + c := &ProjectsLocationsIdentityMappingStoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleclouddiscoveryenginev1alphaidentitymappingstore = googleclouddiscoveryenginev1alphaidentitymappingstore + return c +} + +// CmekConfigName sets the optional parameter "cmekConfigName": Resource name +// of the CmekConfig to use for protecting this Identity Mapping Store. +func (c *ProjectsLocationsIdentityMappingStoresCreateCall) CmekConfigName(cmekConfigName string) *ProjectsLocationsIdentityMappingStoresCreateCall { + c.urlParams_.Set("cmekConfigName", cmekConfigName) + return c +} + +// DisableCmek sets the optional parameter "disableCmek": Identity Mapping +// Store without CMEK protections. If a default CmekConfig is set for the +// project, setting this field will override the default CmekConfig as well. +func (c *ProjectsLocationsIdentityMappingStoresCreateCall) DisableCmek(disableCmek bool) *ProjectsLocationsIdentityMappingStoresCreateCall { + c.urlParams_.Set("disableCmek", fmt.Sprint(disableCmek)) + return c +} + +// IdentityMappingStoreId sets the optional parameter "identityMappingStoreId": +// Required. The ID of the Identity Mapping Store to create. The ID must +// contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens +// (-). The maximum length is 63 characters. +func (c *ProjectsLocationsIdentityMappingStoresCreateCall) IdentityMappingStoreId(identityMappingStoreId string) *ProjectsLocationsIdentityMappingStoresCreateCall { + c.urlParams_.Set("identityMappingStoreId", identityMappingStoreId) + 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 *ProjectsLocationsIdentityMappingStoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsIdentityMappingStoresCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsIdentityMappingStoresCreateCall) Context(ctx context.Context) *ProjectsLocationsIdentityMappingStoresCreateCall { + 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 *ProjectsLocationsIdentityMappingStoresCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIdentityMappingStoresCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googleclouddiscoveryenginev1alphaidentitymappingstore) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/identityMappingStores") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "discoveryengine.projects.locations.identityMappingStores.create", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "discoveryengine.projects.locations.identityMappingStores.create" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudDiscoveryengineV1alphaIdentityMappingStore.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 *ProjectsLocationsIdentityMappingStoresCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaIdentityMappingStore, 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 := &GoogleCloudDiscoveryengineV1alphaIdentityMappingStore{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "discoveryengine.projects.locations.identityMappingStores.create", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsIdentityMappingStoresDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes the Identity Mapping Store. +// +// - name: The name of the Identity Mapping Store to delete. Format: +// `projects/{project}/locations/{location}/identityMappingStores/{identityMap +// pingStore}`. +func (r *ProjectsLocationsIdentityMappingStoresService) Delete(name string) *ProjectsLocationsIdentityMappingStoresDeleteCall { + c := &ProjectsLocationsIdentityMappingStoresDeleteCall{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 *ProjectsLocationsIdentityMappingStoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsIdentityMappingStoresDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsIdentityMappingStoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsIdentityMappingStoresDeleteCall { + 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 *ProjectsLocationsIdentityMappingStoresDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIdentityMappingStoresDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "discoveryengine.projects.locations.identityMappingStores.delete", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "discoveryengine.projects.locations.identityMappingStores.delete" 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 *ProjectsLocationsIdentityMappingStoresDeleteCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "discoveryengine.projects.locations.identityMappingStores.delete", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsIdentityMappingStoresGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the Identity Mapping Store. +// +// - name: The name of the Identity Mapping Store to get. Format: +// `projects/{project}/locations/{location}/identityMappingStores/{identityMap +// pingStore}`. +func (r *ProjectsLocationsIdentityMappingStoresService) Get(name string) *ProjectsLocationsIdentityMappingStoresGetCall { + c := &ProjectsLocationsIdentityMappingStoresGetCall{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 *ProjectsLocationsIdentityMappingStoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsIdentityMappingStoresGetCall { + 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 *ProjectsLocationsIdentityMappingStoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsIdentityMappingStoresGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsIdentityMappingStoresGetCall) Context(ctx context.Context) *ProjectsLocationsIdentityMappingStoresGetCall { + 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 *ProjectsLocationsIdentityMappingStoresGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIdentityMappingStoresGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "discoveryengine.projects.locations.identityMappingStores.get", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "discoveryengine.projects.locations.identityMappingStores.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudDiscoveryengineV1alphaIdentityMappingStore.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 *ProjectsLocationsIdentityMappingStoresGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaIdentityMappingStore, 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 := &GoogleCloudDiscoveryengineV1alphaIdentityMappingStore{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "discoveryengine.projects.locations.identityMappingStores.get", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsIdentityMappingStoresImportIdentityMappingsCall struct { + s *Service + identityMappingStore string + googleclouddiscoveryenginev1alphaimportidentitymappingsrequest *GoogleCloudDiscoveryengineV1alphaImportIdentityMappingsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// ImportIdentityMappings: Imports a list of Identity Mapping Entries to an +// Identity Mapping Store. +// +// - identityMappingStore: The name of the Identity Mapping Store to import +// Identity Mapping Entries to. Format: +// `projects/{project}/locations/{location}/identityMappingStores/{identityMap +// pingStore}`. +func (r *ProjectsLocationsIdentityMappingStoresService) ImportIdentityMappings(identityMappingStore string, googleclouddiscoveryenginev1alphaimportidentitymappingsrequest *GoogleCloudDiscoveryengineV1alphaImportIdentityMappingsRequest) *ProjectsLocationsIdentityMappingStoresImportIdentityMappingsCall { + c := &ProjectsLocationsIdentityMappingStoresImportIdentityMappingsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.identityMappingStore = identityMappingStore + c.googleclouddiscoveryenginev1alphaimportidentitymappingsrequest = googleclouddiscoveryenginev1alphaimportidentitymappingsrequest + 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 *ProjectsLocationsIdentityMappingStoresImportIdentityMappingsCall) Fields(s ...googleapi.Field) *ProjectsLocationsIdentityMappingStoresImportIdentityMappingsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsIdentityMappingStoresImportIdentityMappingsCall) Context(ctx context.Context) *ProjectsLocationsIdentityMappingStoresImportIdentityMappingsCall { + 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 *ProjectsLocationsIdentityMappingStoresImportIdentityMappingsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIdentityMappingStoresImportIdentityMappingsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googleclouddiscoveryenginev1alphaimportidentitymappingsrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+identityMappingStore}:importIdentityMappings") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "identityMappingStore": c.identityMappingStore, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "discoveryengine.projects.locations.identityMappingStores.importIdentityMappings", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "discoveryengine.projects.locations.identityMappingStores.importIdentityMappings" 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 *ProjectsLocationsIdentityMappingStoresImportIdentityMappingsCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "discoveryengine.projects.locations.identityMappingStores.importIdentityMappings", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsIdentityMappingStoresListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists all Identity Mapping Stores. +// +// - parent: The parent of the Identity Mapping Stores to list. Format: +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsIdentityMappingStoresService) List(parent string) *ProjectsLocationsIdentityMappingStoresListCall { + c := &ProjectsLocationsIdentityMappingStoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// IdentityMappingStores to return. If unspecified, defaults to 100. The +// maximum allowed value is 1000. Values above 1000 will be coerced to 1000. +func (c *ProjectsLocationsIdentityMappingStoresListCall) PageSize(pageSize int64) *ProjectsLocationsIdentityMappingStoresListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, received +// from a previous `ListIdentityMappingStores` call. Provide this to retrieve +// the subsequent page. When paginating, all other parameters provided to +// `ListIdentityMappingStores` must match the call that provided the page +// token. +func (c *ProjectsLocationsIdentityMappingStoresListCall) PageToken(pageToken string) *ProjectsLocationsIdentityMappingStoresListCall { + 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 *ProjectsLocationsIdentityMappingStoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIdentityMappingStoresListCall { + 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 *ProjectsLocationsIdentityMappingStoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIdentityMappingStoresListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsIdentityMappingStoresListCall) Context(ctx context.Context) *ProjectsLocationsIdentityMappingStoresListCall { + 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 *ProjectsLocationsIdentityMappingStoresListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIdentityMappingStoresListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/identityMappingStores") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "discoveryengine.projects.locations.identityMappingStores.list", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "discoveryengine.projects.locations.identityMappingStores.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudDiscoveryengineV1alphaListIdentityMappingStoresResponse.ServerRes +// ponse.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 *ProjectsLocationsIdentityMappingStoresListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaListIdentityMappingStoresResponse, 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 := &GoogleCloudDiscoveryengineV1alphaListIdentityMappingStoresResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "discoveryengine.projects.locations.identityMappingStores.list", "response", internallog.HTTPResponse(res, b)) + 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 *ProjectsLocationsIdentityMappingStoresListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaListIdentityMappingStoresResponse) 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 ProjectsLocationsIdentityMappingStoresListIdentityMappingsCall struct { + s *Service + identityMappingStore string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// ListIdentityMappings: Lists Identity Mappings in an Identity Mapping Store. +// +// - identityMappingStore: The name of the Identity Mapping Store to list +// Identity Mapping Entries in. Format: +// `projects/{project}/locations/{location}/identityMappingStores/{identityMap +// pingStore}`. +func (r *ProjectsLocationsIdentityMappingStoresService) ListIdentityMappings(identityMappingStore string) *ProjectsLocationsIdentityMappingStoresListIdentityMappingsCall { + c := &ProjectsLocationsIdentityMappingStoresListIdentityMappingsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.identityMappingStore = identityMappingStore + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// IdentityMappings to return. If unspecified, defaults to 2000. The maximum +// allowed value is 10000. Values above 10000 will be coerced to 10000. +func (c *ProjectsLocationsIdentityMappingStoresListIdentityMappingsCall) PageSize(pageSize int64) *ProjectsLocationsIdentityMappingStoresListIdentityMappingsCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, received +// from a previous `ListIdentityMappings` call. Provide this to retrieve the +// subsequent page. When paginating, all other parameters provided to +// `ListIdentityMappings` must match the call that provided the page token. +func (c *ProjectsLocationsIdentityMappingStoresListIdentityMappingsCall) PageToken(pageToken string) *ProjectsLocationsIdentityMappingStoresListIdentityMappingsCall { + 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 *ProjectsLocationsIdentityMappingStoresListIdentityMappingsCall) Fields(s ...googleapi.Field) *ProjectsLocationsIdentityMappingStoresListIdentityMappingsCall { + 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 *ProjectsLocationsIdentityMappingStoresListIdentityMappingsCall) IfNoneMatch(entityTag string) *ProjectsLocationsIdentityMappingStoresListIdentityMappingsCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsIdentityMappingStoresListIdentityMappingsCall) Context(ctx context.Context) *ProjectsLocationsIdentityMappingStoresListIdentityMappingsCall { + 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 *ProjectsLocationsIdentityMappingStoresListIdentityMappingsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIdentityMappingStoresListIdentityMappingsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+identityMappingStore}:listIdentityMappings") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "identityMappingStore": c.identityMappingStore, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "discoveryengine.projects.locations.identityMappingStores.listIdentityMappings", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "discoveryengine.projects.locations.identityMappingStores.listIdentityMappings" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudDiscoveryengineV1alphaListIdentityMappingsResponse.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 *ProjectsLocationsIdentityMappingStoresListIdentityMappingsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaListIdentityMappingsResponse, 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 := &GoogleCloudDiscoveryengineV1alphaListIdentityMappingsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "discoveryengine.projects.locations.identityMappingStores.listIdentityMappings", "response", internallog.HTTPResponse(res, b)) + 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 *ProjectsLocationsIdentityMappingStoresListIdentityMappingsCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaListIdentityMappingsResponse) 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 ProjectsLocationsIdentityMappingStoresPurgeIdentityMappingsCall struct { + s *Service + identityMappingStore string + googleclouddiscoveryenginev1alphapurgeidentitymappingsrequest *GoogleCloudDiscoveryengineV1alphaPurgeIdentityMappingsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// PurgeIdentityMappings: Purges specified or all Identity Mapping Entries from +// an Identity Mapping Store. +// +// - identityMappingStore: The name of the Identity Mapping Store to purge +// Identity Mapping Entries from. Format: +// `projects/{project}/locations/{location}/identityMappingStores/{identityMap +// pingStore}`. +func (r *ProjectsLocationsIdentityMappingStoresService) PurgeIdentityMappings(identityMappingStore string, googleclouddiscoveryenginev1alphapurgeidentitymappingsrequest *GoogleCloudDiscoveryengineV1alphaPurgeIdentityMappingsRequest) *ProjectsLocationsIdentityMappingStoresPurgeIdentityMappingsCall { + c := &ProjectsLocationsIdentityMappingStoresPurgeIdentityMappingsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.identityMappingStore = identityMappingStore + c.googleclouddiscoveryenginev1alphapurgeidentitymappingsrequest = googleclouddiscoveryenginev1alphapurgeidentitymappingsrequest + 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 *ProjectsLocationsIdentityMappingStoresPurgeIdentityMappingsCall) Fields(s ...googleapi.Field) *ProjectsLocationsIdentityMappingStoresPurgeIdentityMappingsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsIdentityMappingStoresPurgeIdentityMappingsCall) Context(ctx context.Context) *ProjectsLocationsIdentityMappingStoresPurgeIdentityMappingsCall { + 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 *ProjectsLocationsIdentityMappingStoresPurgeIdentityMappingsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIdentityMappingStoresPurgeIdentityMappingsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googleclouddiscoveryenginev1alphapurgeidentitymappingsrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+identityMappingStore}:purgeIdentityMappings") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "identityMappingStore": c.identityMappingStore, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "discoveryengine.projects.locations.identityMappingStores.purgeIdentityMappings", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "discoveryengine.projects.locations.identityMappingStores.purgeIdentityMappings" 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 *ProjectsLocationsIdentityMappingStoresPurgeIdentityMappingsCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "discoveryengine.projects.locations.identityMappingStores.purgeIdentityMappings", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type ProjectsLocationsIdentityMappingStoresOperationsGetCall struct { s *Service name string diff --git a/discoveryengine/v1beta/discoveryengine-api.json b/discoveryengine/v1beta/discoveryengine-api.json index e246cfd4915..1313e951d05 100644 --- a/discoveryengine/v1beta/discoveryengine-api.json +++ b/discoveryengine/v1beta/discoveryengine-api.json @@ -6655,6 +6655,229 @@ } }, "identityMappingStores": { + "methods": { + "create": { + "description": "Creates a new Identity Mapping Store.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/identityMappingStores", + "httpMethod": "POST", + "id": "discoveryengine.projects.locations.identityMappingStores.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "cmekConfigName": { + "description": "Resource name of the CmekConfig to use for protecting this Identity Mapping Store.", + "location": "query", + "type": "string" + }, + "disableCmek": { + "description": "Identity Mapping Store without CMEK protections. If a default CmekConfig is set for the project, setting this field will override the default CmekConfig as well.", + "location": "query", + "type": "boolean" + }, + "identityMappingStoreId": { + "description": "Required. The ID of the Identity Mapping Store to create. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 63 characters.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent collection resource name, such as `projects/{project}/locations/{location}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+parent}/identityMappingStores", + "request": { + "$ref": "GoogleCloudDiscoveryengineV1betaIdentityMappingStore" + }, + "response": { + "$ref": "GoogleCloudDiscoveryengineV1betaIdentityMappingStore" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes the Identity Mapping Store.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/identityMappingStores/{identityMappingStoresId}", + "httpMethod": "DELETE", + "id": "discoveryengine.projects.locations.identityMappingStores.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the Identity Mapping Store to delete. Format: `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/identityMappingStores/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the Identity Mapping Store.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/identityMappingStores/{identityMappingStoresId}", + "httpMethod": "GET", + "id": "discoveryengine.projects.locations.identityMappingStores.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the Identity Mapping Store to get. Format: `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/identityMappingStores/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+name}", + "response": { + "$ref": "GoogleCloudDiscoveryengineV1betaIdentityMappingStore" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "importIdentityMappings": { + "description": "Imports a list of Identity Mapping Entries to an Identity Mapping Store.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/identityMappingStores/{identityMappingStoresId}:importIdentityMappings", + "httpMethod": "POST", + "id": "discoveryengine.projects.locations.identityMappingStores.importIdentityMappings", + "parameterOrder": [ + "identityMappingStore" + ], + "parameters": { + "identityMappingStore": { + "description": "Required. The name of the Identity Mapping Store to import Identity Mapping Entries to. Format: `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/identityMappingStores/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+identityMappingStore}:importIdentityMappings", + "request": { + "$ref": "GoogleCloudDiscoveryengineV1betaImportIdentityMappingsRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists all Identity Mapping Stores.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/identityMappingStores", + "httpMethod": "GET", + "id": "discoveryengine.projects.locations.identityMappingStores.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Maximum number of IdentityMappingStores to return. If unspecified, defaults to 100. The maximum allowed value is 1000. Values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token, received from a previous `ListIdentityMappingStores` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListIdentityMappingStores` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent of the Identity Mapping Stores to list. Format: `projects/{project}/locations/{location}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+parent}/identityMappingStores", + "response": { + "$ref": "GoogleCloudDiscoveryengineV1betaListIdentityMappingStoresResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "listIdentityMappings": { + "description": "Lists Identity Mappings in an Identity Mapping Store.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/identityMappingStores/{identityMappingStoresId}:listIdentityMappings", + "httpMethod": "GET", + "id": "discoveryengine.projects.locations.identityMappingStores.listIdentityMappings", + "parameterOrder": [ + "identityMappingStore" + ], + "parameters": { + "identityMappingStore": { + "description": "Required. The name of the Identity Mapping Store to list Identity Mapping Entries in. Format: `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/identityMappingStores/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "Maximum number of IdentityMappings to return. If unspecified, defaults to 2000. The maximum allowed value is 10000. Values above 10000 will be coerced to 10000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token, received from a previous `ListIdentityMappings` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListIdentityMappings` must match the call that provided the page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta/{+identityMappingStore}:listIdentityMappings", + "response": { + "$ref": "GoogleCloudDiscoveryengineV1betaListIdentityMappingsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "purgeIdentityMappings": { + "description": "Purges specified or all Identity Mapping Entries from an Identity Mapping Store.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/identityMappingStores/{identityMappingStoresId}:purgeIdentityMappings", + "httpMethod": "POST", + "id": "discoveryengine.projects.locations.identityMappingStores.purgeIdentityMappings", + "parameterOrder": [ + "identityMappingStore" + ], + "parameters": { + "identityMappingStore": { + "description": "Required. The name of the Identity Mapping Store to purge Identity Mapping Entries from. Format: `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/identityMappingStores/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+identityMappingStore}:purgeIdentityMappings", + "request": { + "$ref": "GoogleCloudDiscoveryengineV1betaPurgeIdentityMappingsRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, "resources": { "operations": { "methods": { @@ -7384,7 +7607,7 @@ } } }, - "revision": "20250121", + "revision": "20250125", "rootUrl": "https://discoveryengine.googleapis.com/", "schemas": { "GoogleApiDistribution": { @@ -7847,6 +8070,7 @@ "ACTIVE", "KEY_ISSUE", "DELETING", + "DELETE_FAILED", "UNUSABLE", "ACTIVE_ROTATING" ], @@ -7856,6 +8080,7 @@ "The CmekConfig can be used with DataStores.", "The CmekConfig is unavailable, most likely due to the KMS Key being revoked.", "The CmekConfig is deleting.", + "The CmekConfig deletion process failed.", "The CmekConfig is not usable, most likely due to some internal issue.", "The KMS key version is being rotated." ], @@ -8211,6 +8436,10 @@ "$ref": "GoogleCloudDiscoveryengineV1DocumentProcessingConfig", "description": "Configuration for Document understanding and enrichment." }, + "healthcareFhirConfig": { + "$ref": "GoogleCloudDiscoveryengineV1HealthcareFhirConfig", + "description": "Optional. Configuration for `HEALTHCARE_FHIR` vertical." + }, "industryVertical": { "description": "Immutable. The industry vertical that the data store registers.", "enum": [ @@ -8742,6 +8971,43 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1HealthcareFhirConfig": { + "description": "Config to data store for `HEALTHCARE_FHIR` vertical.", + "id": "GoogleCloudDiscoveryengineV1HealthcareFhirConfig", + "properties": { + "enableConfigurableSchema": { + "description": "Whether to enable configurable schema for `HEALTHCARE_FHIR` vertical. If set to `true`, the predefined healthcare fhir schema can be extended for more customized searching and filtering.", + "type": "boolean" + }, + "enableStaticIndexingForBatchIngestion": { + "description": "Whether to enable static indexing for `HEALTHCARE_FHIR` batch ingestion. If set to `true`, the batch ingestion will be processed in a static indexing mode which is slower but more capable of handling larger volume.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1IdentityMappingEntryOperationMetadata": { + "description": "IdentityMappingEntry LongRunningOperation metadata for [IdentityMappingStoreService.ImportIdentityMappings] and [IdentityMappingStoreService.PurgeIdentityMappings]", + "id": "GoogleCloudDiscoveryengineV1IdentityMappingEntryOperationMetadata", + "properties": { + "failureCount": { + "description": "The number of IdentityMappingEntries that failed to be processed.", + "format": "int64", + "type": "string" + }, + "successCount": { + "description": "The number of IdentityMappingEntries that were successfully processed.", + "format": "int64", + "type": "string" + }, + "totalCount": { + "description": "The total number of IdentityMappingEntries that were processed.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsMetadata": { "description": "Metadata related to the progress of the ImportCompletionSuggestions operation. This will be returned by the google.longrunning.Operation.metadata field.", "id": "GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsMetadata", @@ -8848,6 +9114,20 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1ImportIdentityMappingsResponse": { + "description": "Response message for IdentityMappingStoreService.ImportIdentityMappings", + "id": "GoogleCloudDiscoveryengineV1ImportIdentityMappingsResponse", + "properties": { + "errorSamples": { + "description": "A sample of errors encountered while processing the request.", + "items": { + "$ref": "GoogleRpcStatus" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesMetadata": { "description": "Metadata related to the progress of the ImportSuggestionDenyListEntries operation. This is returned by the google.longrunning.Operation.metadata field.", "id": "GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesMetadata", @@ -10491,6 +10771,7 @@ "ACTIVE", "KEY_ISSUE", "DELETING", + "DELETE_FAILED", "UNUSABLE", "ACTIVE_ROTATING" ], @@ -10500,6 +10781,7 @@ "The CmekConfig can be used with DataStores.", "The CmekConfig is unavailable, most likely due to the KMS Key being revoked.", "The CmekConfig is deleting.", + "The CmekConfig deletion process failed.", "The CmekConfig is not usable, most likely due to some internal issue.", "The KMS key version is being rotated." ], @@ -11174,7 +11456,8 @@ "ACTIVE", "FAILED", "RUNNING", - "WARNING" + "WARNING", + "INITIALIZATION_FAILED" ], "enumDescriptions": [ "Default value.", @@ -11182,7 +11465,8 @@ "The connector is successfully set up and awaiting next sync run.", "The connector is in error. The error details can be found in DataConnector.errors. If the error is unfixable, the DataConnector can be deleted by [CollectionService.DeleteCollection] API.", "The connector is actively syncing records from the data source.", - "The connector has completed a sync run, but encountered non-fatal errors." + "The connector has completed a sync run, but encountered non-fatal errors.", + "Connector initialization failed. Potential causes include runtime errors or issues in the asynchronous pipeline, preventing the request from reaching downstream services (except for some connector types)." ], "readOnly": true, "type": "string" @@ -11308,6 +11592,10 @@ "$ref": "GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig", "description": "Configuration for Document understanding and enrichment." }, + "healthcareFhirConfig": { + "$ref": "GoogleCloudDiscoveryengineV1alphaHealthcareFhirConfig", + "description": "Optional. Configuration for `HEALTHCARE_FHIR` vertical." + }, "idpConfig": { "$ref": "GoogleCloudDiscoveryengineV1alphaIdpConfig", "description": "Output only. Data store level identity provider config.", @@ -12406,6 +12694,43 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaHealthcareFhirConfig": { + "description": "Config to data store for `HEALTHCARE_FHIR` vertical.", + "id": "GoogleCloudDiscoveryengineV1alphaHealthcareFhirConfig", + "properties": { + "enableConfigurableSchema": { + "description": "Whether to enable configurable schema for `HEALTHCARE_FHIR` vertical. If set to `true`, the predefined healthcare fhir schema can be extended for more customized searching and filtering.", + "type": "boolean" + }, + "enableStaticIndexingForBatchIngestion": { + "description": "Whether to enable static indexing for `HEALTHCARE_FHIR` batch ingestion. If set to `true`, the batch ingestion will be processed in a static indexing mode which is slower but more capable of handling larger volume.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1alphaIdentityMappingEntryOperationMetadata": { + "description": "IdentityMappingEntry LongRunningOperation metadata for [IdentityMappingStoreService.ImportIdentityMappings] and [IdentityMappingStoreService.PurgeIdentityMappings]", + "id": "GoogleCloudDiscoveryengineV1alphaIdentityMappingEntryOperationMetadata", + "properties": { + "failureCount": { + "description": "The number of IdentityMappingEntries that failed to be processed.", + "format": "int64", + "type": "string" + }, + "successCount": { + "description": "The number of IdentityMappingEntries that were successfully processed.", + "format": "int64", + "type": "string" + }, + "totalCount": { + "description": "The total number of IdentityMappingEntries that were processed.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaIdentityScheduleConfig": { "description": "The configuration for the identity data synchronization runs.", "id": "GoogleCloudDiscoveryengineV1alphaIdentityScheduleConfig", @@ -12564,6 +12889,20 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaImportIdentityMappingsResponse": { + "description": "Response message for IdentityMappingStoreService.ImportIdentityMappings", + "id": "GoogleCloudDiscoveryengineV1alphaImportIdentityMappingsResponse", + "properties": { + "errorSamples": { + "description": "A sample of errors encountered while processing the request.", + "items": { + "$ref": "GoogleRpcStatus" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaImportSampleQueriesMetadata": { "description": "Metadata related to the progress of the ImportSampleQueries operation. This will be returned by the google.longrunning.Operation.metadata field.", "id": "GoogleCloudDiscoveryengineV1alphaImportSampleQueriesMetadata", @@ -13209,6 +13548,18 @@ "format": "int32", "type": "integer" }, + "noindexUris": { + "description": "URIs that have no index meta tag. Sample limited to 1000.", + "items": { + "type": "string" + }, + "type": "array" + }, + "noindexUrisCount": { + "description": "Total number of URIs that have no index meta tag.", + "format": "int32", + "type": "integer" + }, "pendingCount": { "description": "Total number of URIs that have yet to be crawled.", "format": "int32", @@ -13649,7 +14000,7 @@ }, "userInfo": { "$ref": "GoogleCloudDiscoveryengineV1alphaUserInfo", - "description": "Information about the end user. Highly recommended for analytics. UserInfo.user_agent is used to deduce `device_type` for analytics." + "description": "Information about the end user. Highly recommended for analytics and personalization. UserInfo.user_agent is used to deduce `device_type` for analytics." }, "userLabels": { "additionalProperties": { @@ -16764,6 +17115,7 @@ "ACTIVE", "KEY_ISSUE", "DELETING", + "DELETE_FAILED", "UNUSABLE", "ACTIVE_ROTATING" ], @@ -16773,6 +17125,7 @@ "The CmekConfig can be used with DataStores.", "The CmekConfig is unavailable, most likely due to the KMS Key being revoked.", "The CmekConfig is deleting.", + "The CmekConfig deletion process failed.", "The CmekConfig is not usable, most likely due to some internal issue.", "The KMS key version is being rotated." ], @@ -17506,6 +17859,10 @@ "$ref": "GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig", "description": "Configuration for Document understanding and enrichment." }, + "healthcareFhirConfig": { + "$ref": "GoogleCloudDiscoveryengineV1betaHealthcareFhirConfig", + "description": "Optional. Configuration for `HEALTHCARE_FHIR` vertical." + }, "industryVertical": { "description": "Immutable. The industry vertical that the data store registers.", "enum": [ @@ -18911,6 +19268,82 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1betaHealthcareFhirConfig": { + "description": "Config to data store for `HEALTHCARE_FHIR` vertical.", + "id": "GoogleCloudDiscoveryengineV1betaHealthcareFhirConfig", + "properties": { + "enableConfigurableSchema": { + "description": "Whether to enable configurable schema for `HEALTHCARE_FHIR` vertical. If set to `true`, the predefined healthcare fhir schema can be extended for more customized searching and filtering.", + "type": "boolean" + }, + "enableStaticIndexingForBatchIngestion": { + "description": "Whether to enable static indexing for `HEALTHCARE_FHIR` batch ingestion. If set to `true`, the batch ingestion will be processed in a static indexing mode which is slower but more capable of handling larger volume.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1betaIdentityMappingEntry": { + "description": "Identity Mapping Entry that maps an external identity to an internal identity.", + "id": "GoogleCloudDiscoveryengineV1betaIdentityMappingEntry", + "properties": { + "externalIdentity": { + "description": "Required. Identity outside the customer identity provider. The length limit of external identity will be of 100 characters.", + "type": "string" + }, + "groupId": { + "description": "Group identifier. For Google Workspace user account, group_id should be the google workspace group email. For non-google identity provider, group_id is the mapped group identifier configured during the workforcepool config.", + "type": "string" + }, + "userId": { + "description": "User identifier. For Google Workspace user account, user_id should be the google workspace user email. For non-google identity provider, user_id is the mapped user identifier configured during the workforcepool config.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1betaIdentityMappingEntryOperationMetadata": { + "description": "IdentityMappingEntry LongRunningOperation metadata for [IdentityMappingStoreService.ImportIdentityMappings] and [IdentityMappingStoreService.PurgeIdentityMappings]", + "id": "GoogleCloudDiscoveryengineV1betaIdentityMappingEntryOperationMetadata", + "properties": { + "failureCount": { + "description": "The number of IdentityMappingEntries that failed to be processed.", + "format": "int64", + "type": "string" + }, + "successCount": { + "description": "The number of IdentityMappingEntries that were successfully processed.", + "format": "int64", + "type": "string" + }, + "totalCount": { + "description": "The total number of IdentityMappingEntries that were processed.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1betaIdentityMappingStore": { + "description": "Identity Mapping Store which contains Identity Mapping Entries.", + "id": "GoogleCloudDiscoveryengineV1betaIdentityMappingStore", + "properties": { + "cmekConfig": { + "$ref": "GoogleCloudDiscoveryengineV1betaCmekConfig", + "description": "Output only. CMEK-related information for the Identity Mapping Store.", + "readOnly": true + }, + "kmsKeyName": { + "description": "Input only. The KMS key to be used to protect this Identity Mapping Store at creation time. Must be set for requests that need to comply with CMEK Org Policy protections. If this field is set and processed successfully, the Identity Mapping Store will be protected by the KMS key, as indicated in the cmek_config field.", + "type": "string" + }, + "name": { + "description": "Immutable. The full resource name of the identity mapping store. Format: `projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsMetadata": { "description": "Metadata related to the progress of the ImportCompletionSuggestions operation. This will be returned by the google.longrunning.Operation.metadata field.", "id": "GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsMetadata", @@ -19146,6 +19579,45 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1betaImportIdentityMappingsRequest": { + "description": "Request message for IdentityMappingStoreService.ImportIdentityMappings", + "id": "GoogleCloudDiscoveryengineV1betaImportIdentityMappingsRequest", + "properties": { + "inlineSource": { + "$ref": "GoogleCloudDiscoveryengineV1betaImportIdentityMappingsRequestInlineSource", + "description": "The inline source to import identity mapping entries from." + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1betaImportIdentityMappingsRequestInlineSource": { + "description": "The inline source to import identity mapping entries from.", + "id": "GoogleCloudDiscoveryengineV1betaImportIdentityMappingsRequestInlineSource", + "properties": { + "identityMappingEntries": { + "description": "A maximum of 10000 entries can be imported at one time", + "items": { + "$ref": "GoogleCloudDiscoveryengineV1betaIdentityMappingEntry" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1betaImportIdentityMappingsResponse": { + "description": "Response message for IdentityMappingStoreService.ImportIdentityMappings", + "id": "GoogleCloudDiscoveryengineV1betaImportIdentityMappingsResponse", + "properties": { + "errorSamples": { + "description": "A sample of errors encountered while processing the request.", + "items": { + "$ref": "GoogleRpcStatus" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1betaImportSampleQueriesMetadata": { "description": "Metadata related to the progress of the ImportSampleQueries operation. This will be returned by the google.longrunning.Operation.metadata field.", "id": "GoogleCloudDiscoveryengineV1betaImportSampleQueriesMetadata", @@ -19605,6 +20077,42 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1betaListIdentityMappingStoresResponse": { + "description": "Response message for IdentityMappingStoreService.ListIdentityMappingStores", + "id": "GoogleCloudDiscoveryengineV1betaListIdentityMappingStoresResponse", + "properties": { + "identityMappingStores": { + "description": "The Identity Mapping Stores.", + "items": { + "$ref": "GoogleCloudDiscoveryengineV1betaIdentityMappingStore" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1betaListIdentityMappingsResponse": { + "description": "Response message for IdentityMappingStoreService.ListIdentityMappings", + "id": "GoogleCloudDiscoveryengineV1betaListIdentityMappingsResponse", + "properties": { + "identityMappingEntries": { + "description": "The Identity Mapping Entries.", + "items": { + "$ref": "GoogleCloudDiscoveryengineV1betaIdentityMappingEntry" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1betaListSampleQueriesResponse": { "description": "Response message for SampleQueryService.ListSampleQueries method.", "id": "GoogleCloudDiscoveryengineV1betaListSampleQueriesResponse", @@ -20020,6 +20528,39 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1betaPurgeIdentityMappingsRequest": { + "description": "Request message for IdentityMappingStoreService.PurgeIdentityMappings", + "id": "GoogleCloudDiscoveryengineV1betaPurgeIdentityMappingsRequest", + "properties": { + "filter": { + "description": "Filter matching identity mappings to purge. The eligible field for filtering is: * `update_time`: in ISO 8601 \"zulu\" format. * `external_id` Examples: * Deleting all identity mappings updated in a time range: `update_time \u003e \"2012-04-23T18:25:43.511Z\" AND update_time \u003c \"2012-04-23T18:30:43.511Z\"` * Deleting all identity mappings for a given external_id: `external_id = \"id1\"` * Deleting all identity mappings inside an identity mapping store: `*` The filtering fields are assumed to have an implicit AND. Should not be used with source. An error will be thrown, if both are provided.", + "type": "string" + }, + "force": { + "description": "Actually performs the purge. If `force` is set to false, return the expected purge count without deleting any identity mappings. This field is only supported for purge with filter. For input source this field is ignored and data will be purged regardless of the value of this field.", + "type": "boolean" + }, + "inlineSource": { + "$ref": "GoogleCloudDiscoveryengineV1betaPurgeIdentityMappingsRequestInlineSource", + "description": "The inline source to purge identity mapping entries from." + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1betaPurgeIdentityMappingsRequestInlineSource": { + "description": "The inline source to purge identity mapping entries from.", + "id": "GoogleCloudDiscoveryengineV1betaPurgeIdentityMappingsRequestInlineSource", + "properties": { + "identityMappingEntries": { + "description": "A maximum of 10000 entries can be purged at one time", + "items": { + "$ref": "GoogleCloudDiscoveryengineV1betaIdentityMappingEntry" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesMetadata": { "description": "Metadata related to the progress of the PurgeSuggestionDenyListEntries operation. This is returned by the google.longrunning.Operation.metadata field.", "id": "GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesMetadata", @@ -20774,7 +21315,7 @@ }, "userInfo": { "$ref": "GoogleCloudDiscoveryengineV1betaUserInfo", - "description": "Information about the end user. Highly recommended for analytics. UserInfo.user_agent is used to deduce `device_type` for analytics." + "description": "Information about the end user. Highly recommended for analytics and personalization. UserInfo.user_agent is used to deduce `device_type` for analytics." }, "userLabels": { "additionalProperties": { diff --git a/discoveryengine/v1beta/discoveryengine-gen.go b/discoveryengine/v1beta/discoveryengine-gen.go index 911fe92395c..cb77140d5a9 100644 --- a/discoveryengine/v1beta/discoveryengine-gen.go +++ b/discoveryengine/v1beta/discoveryengine-gen.go @@ -1781,6 +1781,7 @@ type GoogleCloudDiscoveryengineV1CmekConfig struct { // "KEY_ISSUE" - The CmekConfig is unavailable, most likely due to the KMS // Key being revoked. // "DELETING" - The CmekConfig is deleting. + // "DELETE_FAILED" - The CmekConfig deletion process failed. // "UNUSABLE" - The CmekConfig is not usable, most likely due to some // internal issue. // "ACTIVE_ROTATING" - The KMS key version is being rotated. @@ -2261,6 +2262,9 @@ type GoogleCloudDiscoveryengineV1DataStore struct { // DocumentProcessingConfig: Configuration for Document understanding and // enrichment. DocumentProcessingConfig *GoogleCloudDiscoveryengineV1DocumentProcessingConfig `json:"documentProcessingConfig,omitempty"` + // HealthcareFhirConfig: Optional. Configuration for `HEALTHCARE_FHIR` + // vertical. + HealthcareFhirConfig *GoogleCloudDiscoveryengineV1HealthcareFhirConfig `json:"healthcareFhirConfig,omitempty"` // IndustryVertical: Immutable. The industry vertical that the data store // registers. // @@ -2997,6 +3001,67 @@ func (s GoogleCloudDiscoveryengineV1EngineSearchEngineConfig) MarshalJSON() ([]b return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1HealthcareFhirConfig: Config to data store for +// `HEALTHCARE_FHIR` vertical. +type GoogleCloudDiscoveryengineV1HealthcareFhirConfig struct { + // EnableConfigurableSchema: Whether to enable configurable schema for + // `HEALTHCARE_FHIR` vertical. If set to `true`, the predefined healthcare fhir + // schema can be extended for more customized searching and filtering. + EnableConfigurableSchema bool `json:"enableConfigurableSchema,omitempty"` + // EnableStaticIndexingForBatchIngestion: Whether to enable static indexing for + // `HEALTHCARE_FHIR` batch ingestion. If set to `true`, the batch ingestion + // will be processed in a static indexing mode which is slower but more capable + // of handling larger volume. + EnableStaticIndexingForBatchIngestion bool `json:"enableStaticIndexingForBatchIngestion,omitempty"` + // ForceSendFields is a list of field names (e.g. "EnableConfigurableSchema") + // 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. "EnableConfigurableSchema") 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 GoogleCloudDiscoveryengineV1HealthcareFhirConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1HealthcareFhirConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1IdentityMappingEntryOperationMetadata: +// IdentityMappingEntry LongRunningOperation metadata for +// [IdentityMappingStoreService.ImportIdentityMappings] and +// [IdentityMappingStoreService.PurgeIdentityMappings] +type GoogleCloudDiscoveryengineV1IdentityMappingEntryOperationMetadata struct { + // FailureCount: The number of IdentityMappingEntries that failed to be + // processed. + FailureCount int64 `json:"failureCount,omitempty,string"` + // SuccessCount: The number of IdentityMappingEntries that were successfully + // processed. + SuccessCount int64 `json:"successCount,omitempty,string"` + // TotalCount: The total number of IdentityMappingEntries that were processed. + TotalCount int64 `json:"totalCount,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "FailureCount") 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. "FailureCount") 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 GoogleCloudDiscoveryengineV1IdentityMappingEntryOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1IdentityMappingEntryOperationMetadata + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsMetadata: Metadata // related to the progress of the ImportCompletionSuggestions operation. This // will be returned by the google.longrunning.Operation.metadata field. @@ -3142,6 +3207,29 @@ func (s GoogleCloudDiscoveryengineV1ImportErrorConfig) MarshalJSON() ([]byte, er return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1ImportIdentityMappingsResponse: Response message +// for IdentityMappingStoreService.ImportIdentityMappings +type GoogleCloudDiscoveryengineV1ImportIdentityMappingsResponse struct { + // ErrorSamples: A sample of errors encountered while processing the request. + ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"` + // ForceSendFields is a list of field names (e.g. "ErrorSamples") 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. "ErrorSamples") 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 GoogleCloudDiscoveryengineV1ImportIdentityMappingsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1ImportIdentityMappingsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesMetadata: // Metadata related to the progress of the ImportSuggestionDenyListEntries // operation. This is returned by the google.longrunning.Operation.metadata @@ -5298,6 +5386,7 @@ type GoogleCloudDiscoveryengineV1alphaCmekConfig struct { // "KEY_ISSUE" - The CmekConfig is unavailable, most likely due to the KMS // Key being revoked. // "DELETING" - The CmekConfig is deleting. + // "DELETE_FAILED" - The CmekConfig deletion process failed. // "UNUSABLE" - The CmekConfig is not usable, most likely due to some // internal issue. // "ACTIVE_ROTATING" - The KMS key version is being rotated. @@ -6111,6 +6200,10 @@ type GoogleCloudDiscoveryengineV1alphaDataConnector struct { // source. // "WARNING" - The connector has completed a sync run, but encountered // non-fatal errors. + // "INITIALIZATION_FAILED" - Connector initialization failed. Potential + // causes include runtime errors or issues in the asynchronous pipeline, + // preventing the request from reaching downstream services (except for some + // connector types). State string `json:"state,omitempty"` // StaticIpAddresses: Output only. The static IP addresses used by this // connector. @@ -6226,6 +6319,9 @@ type GoogleCloudDiscoveryengineV1alphaDataStore struct { // DocumentProcessingConfig: Configuration for Document understanding and // enrichment. DocumentProcessingConfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig `json:"documentProcessingConfig,omitempty"` + // HealthcareFhirConfig: Optional. Configuration for `HEALTHCARE_FHIR` + // vertical. + HealthcareFhirConfig *GoogleCloudDiscoveryengineV1alphaHealthcareFhirConfig `json:"healthcareFhirConfig,omitempty"` // IdpConfig: Output only. Data store level identity provider config. IdpConfig *GoogleCloudDiscoveryengineV1alphaIdpConfig `json:"idpConfig,omitempty"` // IndustryVertical: Immutable. The industry vertical that the data store @@ -7729,6 +7825,67 @@ func (s GoogleCloudDiscoveryengineV1alphaGetUriPatternDocumentDataResponse) Mars return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1alphaHealthcareFhirConfig: Config to data store +// for `HEALTHCARE_FHIR` vertical. +type GoogleCloudDiscoveryengineV1alphaHealthcareFhirConfig struct { + // EnableConfigurableSchema: Whether to enable configurable schema for + // `HEALTHCARE_FHIR` vertical. If set to `true`, the predefined healthcare fhir + // schema can be extended for more customized searching and filtering. + EnableConfigurableSchema bool `json:"enableConfigurableSchema,omitempty"` + // EnableStaticIndexingForBatchIngestion: Whether to enable static indexing for + // `HEALTHCARE_FHIR` batch ingestion. If set to `true`, the batch ingestion + // will be processed in a static indexing mode which is slower but more capable + // of handling larger volume. + EnableStaticIndexingForBatchIngestion bool `json:"enableStaticIndexingForBatchIngestion,omitempty"` + // ForceSendFields is a list of field names (e.g. "EnableConfigurableSchema") + // 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. "EnableConfigurableSchema") 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 GoogleCloudDiscoveryengineV1alphaHealthcareFhirConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaHealthcareFhirConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1alphaIdentityMappingEntryOperationMetadata: +// IdentityMappingEntry LongRunningOperation metadata for +// [IdentityMappingStoreService.ImportIdentityMappings] and +// [IdentityMappingStoreService.PurgeIdentityMappings] +type GoogleCloudDiscoveryengineV1alphaIdentityMappingEntryOperationMetadata struct { + // FailureCount: The number of IdentityMappingEntries that failed to be + // processed. + FailureCount int64 `json:"failureCount,omitempty,string"` + // SuccessCount: The number of IdentityMappingEntries that were successfully + // processed. + SuccessCount int64 `json:"successCount,omitempty,string"` + // TotalCount: The total number of IdentityMappingEntries that were processed. + TotalCount int64 `json:"totalCount,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "FailureCount") 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. "FailureCount") 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 GoogleCloudDiscoveryengineV1alphaIdentityMappingEntryOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaIdentityMappingEntryOperationMetadata + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1alphaIdentityScheduleConfig: The configuration // for the identity data synchronization runs. type GoogleCloudDiscoveryengineV1alphaIdentityScheduleConfig struct { @@ -7960,6 +8117,29 @@ func (s GoogleCloudDiscoveryengineV1alphaImportErrorConfig) MarshalJSON() ([]byt return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1alphaImportIdentityMappingsResponse: Response +// message for IdentityMappingStoreService.ImportIdentityMappings +type GoogleCloudDiscoveryengineV1alphaImportIdentityMappingsResponse struct { + // ErrorSamples: A sample of errors encountered while processing the request. + ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"` + // ForceSendFields is a list of field names (e.g. "ErrorSamples") 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. "ErrorSamples") 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 GoogleCloudDiscoveryengineV1alphaImportIdentityMappingsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaImportIdentityMappingsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1alphaImportSampleQueriesMetadata: Metadata // related to the progress of the ImportSampleQueries operation. This will be // returned by the google.longrunning.Operation.metadata field. @@ -8840,6 +9020,10 @@ type GoogleCloudDiscoveryengineV1alphaRecrawlUrisMetadata struct { // InvalidUrisCount: Total number of unique URIs in the request that have // invalid format. InvalidUrisCount int64 `json:"invalidUrisCount,omitempty"` + // NoindexUris: URIs that have no index meta tag. Sample limited to 1000. + NoindexUris []string `json:"noindexUris,omitempty"` + // NoindexUrisCount: Total number of URIs that have no index meta tag. + NoindexUrisCount int64 `json:"noindexUrisCount,omitempty"` // PendingCount: Total number of URIs that have yet to be crawled. PendingCount int64 `json:"pendingCount,omitempty"` // QuotaExceededCount: Total number of URIs that were rejected due to @@ -9352,8 +9536,9 @@ type GoogleCloudDiscoveryengineV1alphaSearchRequest struct { // SpellCorrectionSpec: The spell correction specification that specifies the // mode under which spell correction takes effect. SpellCorrectionSpec *GoogleCloudDiscoveryengineV1alphaSearchRequestSpellCorrectionSpec `json:"spellCorrectionSpec,omitempty"` - // UserInfo: Information about the end user. Highly recommended for analytics. - // UserInfo.user_agent is used to deduce `device_type` for analytics. + // UserInfo: Information about the end user. Highly recommended for analytics + // and personalization. UserInfo.user_agent is used to deduce `device_type` for + // analytics. UserInfo *GoogleCloudDiscoveryengineV1alphaUserInfo `json:"userInfo,omitempty"` // UserLabels: The user labels applied to a resource must meet the following // requirements: * Each resource can have multiple labels, up to a maximum of @@ -13787,6 +13972,7 @@ type GoogleCloudDiscoveryengineV1betaCmekConfig struct { // "KEY_ISSUE" - The CmekConfig is unavailable, most likely due to the KMS // Key being revoked. // "DELETING" - The CmekConfig is deleting. + // "DELETE_FAILED" - The CmekConfig deletion process failed. // "UNUSABLE" - The CmekConfig is not usable, most likely due to some // internal issue. // "ACTIVE_ROTATING" - The KMS key version is being rotated. @@ -14772,6 +14958,9 @@ type GoogleCloudDiscoveryengineV1betaDataStore struct { // DocumentProcessingConfig: Configuration for Document understanding and // enrichment. DocumentProcessingConfig *GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig `json:"documentProcessingConfig,omitempty"` + // HealthcareFhirConfig: Optional. Configuration for `HEALTHCARE_FHIR` + // vertical. + HealthcareFhirConfig *GoogleCloudDiscoveryengineV1betaHealthcareFhirConfig `json:"healthcareFhirConfig,omitempty"` // IndustryVertical: Immutable. The industry vertical that the data store // registers. // @@ -16829,6 +17018,140 @@ func (s GoogleCloudDiscoveryengineV1betaGroundingFact) MarshalJSON() ([]byte, er return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1betaHealthcareFhirConfig: Config to data store +// for `HEALTHCARE_FHIR` vertical. +type GoogleCloudDiscoveryengineV1betaHealthcareFhirConfig struct { + // EnableConfigurableSchema: Whether to enable configurable schema for + // `HEALTHCARE_FHIR` vertical. If set to `true`, the predefined healthcare fhir + // schema can be extended for more customized searching and filtering. + EnableConfigurableSchema bool `json:"enableConfigurableSchema,omitempty"` + // EnableStaticIndexingForBatchIngestion: Whether to enable static indexing for + // `HEALTHCARE_FHIR` batch ingestion. If set to `true`, the batch ingestion + // will be processed in a static indexing mode which is slower but more capable + // of handling larger volume. + EnableStaticIndexingForBatchIngestion bool `json:"enableStaticIndexingForBatchIngestion,omitempty"` + // ForceSendFields is a list of field names (e.g. "EnableConfigurableSchema") + // 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. "EnableConfigurableSchema") 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 GoogleCloudDiscoveryengineV1betaHealthcareFhirConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaHealthcareFhirConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1betaIdentityMappingEntry: Identity Mapping Entry +// that maps an external identity to an internal identity. +type GoogleCloudDiscoveryengineV1betaIdentityMappingEntry struct { + // ExternalIdentity: Required. Identity outside the customer identity provider. + // The length limit of external identity will be of 100 characters. + ExternalIdentity string `json:"externalIdentity,omitempty"` + // GroupId: Group identifier. For Google Workspace user account, group_id + // should be the google workspace group email. For non-google identity + // provider, group_id is the mapped group identifier configured during the + // workforcepool config. + GroupId string `json:"groupId,omitempty"` + // UserId: User identifier. For Google Workspace user account, user_id should + // be the google workspace user email. For non-google identity provider, + // user_id is the mapped user identifier configured during the workforcepool + // config. + UserId string `json:"userId,omitempty"` + // ForceSendFields is a list of field names (e.g. "ExternalIdentity") 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. "ExternalIdentity") 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 GoogleCloudDiscoveryengineV1betaIdentityMappingEntry) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaIdentityMappingEntry + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1betaIdentityMappingEntryOperationMetadata: +// IdentityMappingEntry LongRunningOperation metadata for +// [IdentityMappingStoreService.ImportIdentityMappings] and +// [IdentityMappingStoreService.PurgeIdentityMappings] +type GoogleCloudDiscoveryengineV1betaIdentityMappingEntryOperationMetadata struct { + // FailureCount: The number of IdentityMappingEntries that failed to be + // processed. + FailureCount int64 `json:"failureCount,omitempty,string"` + // SuccessCount: The number of IdentityMappingEntries that were successfully + // processed. + SuccessCount int64 `json:"successCount,omitempty,string"` + // TotalCount: The total number of IdentityMappingEntries that were processed. + TotalCount int64 `json:"totalCount,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "FailureCount") 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. "FailureCount") 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 GoogleCloudDiscoveryengineV1betaIdentityMappingEntryOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaIdentityMappingEntryOperationMetadata + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1betaIdentityMappingStore: Identity Mapping Store +// which contains Identity Mapping Entries. +type GoogleCloudDiscoveryengineV1betaIdentityMappingStore struct { + // CmekConfig: Output only. CMEK-related information for the Identity Mapping + // Store. + CmekConfig *GoogleCloudDiscoveryengineV1betaCmekConfig `json:"cmekConfig,omitempty"` + // KmsKeyName: Input only. The KMS key to be used to protect this Identity + // Mapping Store at creation time. Must be set for requests that need to comply + // with CMEK Org Policy protections. If this field is set and processed + // successfully, the Identity Mapping Store will be protected by the KMS key, + // as indicated in the cmek_config field. + KmsKeyName string `json:"kmsKeyName,omitempty"` + // Name: Immutable. The full resource name of the identity mapping store. + // Format: + // `projects/{project}/locations/{location}/identityMappingStores/{identity_mapp + // ing_store}`. This field must be a UTF-8 encoded string with a length limit + // of 1024 characters. + Name string `json:"name,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "CmekConfig") 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. "CmekConfig") 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 GoogleCloudDiscoveryengineV1betaIdentityMappingStore) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaIdentityMappingStore + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsMetadata: // Metadata related to the progress of the ImportCompletionSuggestions // operation. This will be returned by the @@ -17141,6 +17464,76 @@ func (s GoogleCloudDiscoveryengineV1betaImportErrorConfig) MarshalJSON() ([]byte return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1betaImportIdentityMappingsRequest: Request +// message for IdentityMappingStoreService.ImportIdentityMappings +type GoogleCloudDiscoveryengineV1betaImportIdentityMappingsRequest struct { + // InlineSource: The inline source to import identity mapping entries from. + InlineSource *GoogleCloudDiscoveryengineV1betaImportIdentityMappingsRequestInlineSource `json:"inlineSource,omitempty"` + // ForceSendFields is a list of field names (e.g. "InlineSource") 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. "InlineSource") 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 GoogleCloudDiscoveryengineV1betaImportIdentityMappingsRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaImportIdentityMappingsRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1betaImportIdentityMappingsRequestInlineSource: +// The inline source to import identity mapping entries from. +type GoogleCloudDiscoveryengineV1betaImportIdentityMappingsRequestInlineSource struct { + // IdentityMappingEntries: A maximum of 10000 entries can be imported at one + // time + IdentityMappingEntries []*GoogleCloudDiscoveryengineV1betaIdentityMappingEntry `json:"identityMappingEntries,omitempty"` + // ForceSendFields is a list of field names (e.g. "IdentityMappingEntries") 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. "IdentityMappingEntries") 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 GoogleCloudDiscoveryengineV1betaImportIdentityMappingsRequestInlineSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaImportIdentityMappingsRequestInlineSource + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1betaImportIdentityMappingsResponse: Response +// message for IdentityMappingStoreService.ImportIdentityMappings +type GoogleCloudDiscoveryengineV1betaImportIdentityMappingsResponse struct { + // ErrorSamples: A sample of errors encountered while processing the request. + ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"` + // ForceSendFields is a list of field names (e.g. "ErrorSamples") 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. "ErrorSamples") 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 GoogleCloudDiscoveryengineV1betaImportIdentityMappingsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaImportIdentityMappingsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1betaImportSampleQueriesMetadata: Metadata // related to the progress of the ImportSampleQueries operation. This will be // returned by the google.longrunning.Operation.metadata field. @@ -17820,6 +18213,64 @@ func (s GoogleCloudDiscoveryengineV1betaListEvaluationsResponse) MarshalJSON() ( return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1betaListIdentityMappingStoresResponse: Response +// message for IdentityMappingStoreService.ListIdentityMappingStores +type GoogleCloudDiscoveryengineV1betaListIdentityMappingStoresResponse struct { + // IdentityMappingStores: The Identity Mapping Stores. + IdentityMappingStores []*GoogleCloudDiscoveryengineV1betaIdentityMappingStore `json:"identityMappingStores,omitempty"` + // NextPageToken: A token that can be sent as `page_token` to retrieve the next + // page. If this field is omitted, there are no subsequent pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "IdentityMappingStores") 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. "IdentityMappingStores") 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 GoogleCloudDiscoveryengineV1betaListIdentityMappingStoresResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaListIdentityMappingStoresResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1betaListIdentityMappingsResponse: Response +// message for IdentityMappingStoreService.ListIdentityMappings +type GoogleCloudDiscoveryengineV1betaListIdentityMappingsResponse struct { + // IdentityMappingEntries: The Identity Mapping Entries. + IdentityMappingEntries []*GoogleCloudDiscoveryengineV1betaIdentityMappingEntry `json:"identityMappingEntries,omitempty"` + // NextPageToken: A token that can be sent as `page_token` to retrieve the next + // page. If this field is omitted, there are no subsequent pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "IdentityMappingEntries") 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. "IdentityMappingEntries") 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 GoogleCloudDiscoveryengineV1betaListIdentityMappingsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaListIdentityMappingsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1betaListSampleQueriesResponse: Response message // for SampleQueryService.ListSampleQueries method. type GoogleCloudDiscoveryengineV1betaListSampleQueriesResponse struct { @@ -18428,6 +18879,67 @@ func (s GoogleCloudDiscoveryengineV1betaPurgeErrorConfig) MarshalJSON() ([]byte, return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1betaPurgeIdentityMappingsRequest: Request +// message for IdentityMappingStoreService.PurgeIdentityMappings +type GoogleCloudDiscoveryengineV1betaPurgeIdentityMappingsRequest struct { + // Filter: Filter matching identity mappings to purge. The eligible field for + // filtering is: * `update_time`: in ISO 8601 "zulu" format. * `external_id` + // Examples: * Deleting all identity mappings updated in a time range: + // `update_time > "2012-04-23T18:25:43.511Z" AND update_time < + // "2012-04-23T18:30:43.511Z" * Deleting all identity mappings for a given + // external_id: `external_id = "id1" * Deleting all identity mappings inside + // an identity mapping store: `*` The filtering fields are assumed to have an + // implicit AND. Should not be used with source. An error will be thrown, if + // both are provided. + Filter string `json:"filter,omitempty"` + // Force: Actually performs the purge. If `force` is set to false, return the + // expected purge count without deleting any identity mappings. This field is + // only supported for purge with filter. For input source this field is ignored + // and data will be purged regardless of the value of this field. + Force bool `json:"force,omitempty"` + // InlineSource: The inline source to purge identity mapping entries from. + InlineSource *GoogleCloudDiscoveryengineV1betaPurgeIdentityMappingsRequestInlineSource `json:"inlineSource,omitempty"` + // ForceSendFields is a list of field names (e.g. "Filter") 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. "Filter") 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 GoogleCloudDiscoveryengineV1betaPurgeIdentityMappingsRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaPurgeIdentityMappingsRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1betaPurgeIdentityMappingsRequestInlineSource: +// The inline source to purge identity mapping entries from. +type GoogleCloudDiscoveryengineV1betaPurgeIdentityMappingsRequestInlineSource struct { + // IdentityMappingEntries: A maximum of 10000 entries can be purged at one time + IdentityMappingEntries []*GoogleCloudDiscoveryengineV1betaIdentityMappingEntry `json:"identityMappingEntries,omitempty"` + // ForceSendFields is a list of field names (e.g. "IdentityMappingEntries") 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. "IdentityMappingEntries") 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 GoogleCloudDiscoveryengineV1betaPurgeIdentityMappingsRequestInlineSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaPurgeIdentityMappingsRequestInlineSource + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesMetadata: // Metadata related to the progress of the PurgeSuggestionDenyListEntries // operation. This is returned by the google.longrunning.Operation.metadata @@ -19531,8 +20043,9 @@ type GoogleCloudDiscoveryengineV1betaSearchRequest struct { // SpellCorrectionSpec: The spell correction specification that specifies the // mode under which spell correction takes effect. SpellCorrectionSpec *GoogleCloudDiscoveryengineV1betaSearchRequestSpellCorrectionSpec `json:"spellCorrectionSpec,omitempty"` - // UserInfo: Information about the end user. Highly recommended for analytics. - // UserInfo.user_agent is used to deduce `device_type` for analytics. + // UserInfo: Information about the end user. Highly recommended for analytics + // and personalization. UserInfo.user_agent is used to deduce `device_type` for + // analytics. UserInfo *GoogleCloudDiscoveryengineV1betaUserInfo `json:"userInfo,omitempty"` // UserLabels: The user labels applied to a resource must meet the following // requirements: * Each resource can have multiple labels, up to a maximum of @@ -47499,6 +48012,864 @@ func (c *ProjectsLocationsGroundingConfigsCheckCall) Do(opts ...googleapi.CallOp return ret, nil } +type ProjectsLocationsIdentityMappingStoresCreateCall struct { + s *Service + parent string + googleclouddiscoveryenginev1betaidentitymappingstore *GoogleCloudDiscoveryengineV1betaIdentityMappingStore + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new Identity Mapping Store. +// +// - parent: The parent collection resource name, such as +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsIdentityMappingStoresService) Create(parent string, googleclouddiscoveryenginev1betaidentitymappingstore *GoogleCloudDiscoveryengineV1betaIdentityMappingStore) *ProjectsLocationsIdentityMappingStoresCreateCall { + c := &ProjectsLocationsIdentityMappingStoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleclouddiscoveryenginev1betaidentitymappingstore = googleclouddiscoveryenginev1betaidentitymappingstore + return c +} + +// CmekConfigName sets the optional parameter "cmekConfigName": Resource name +// of the CmekConfig to use for protecting this Identity Mapping Store. +func (c *ProjectsLocationsIdentityMappingStoresCreateCall) CmekConfigName(cmekConfigName string) *ProjectsLocationsIdentityMappingStoresCreateCall { + c.urlParams_.Set("cmekConfigName", cmekConfigName) + return c +} + +// DisableCmek sets the optional parameter "disableCmek": Identity Mapping +// Store without CMEK protections. If a default CmekConfig is set for the +// project, setting this field will override the default CmekConfig as well. +func (c *ProjectsLocationsIdentityMappingStoresCreateCall) DisableCmek(disableCmek bool) *ProjectsLocationsIdentityMappingStoresCreateCall { + c.urlParams_.Set("disableCmek", fmt.Sprint(disableCmek)) + return c +} + +// IdentityMappingStoreId sets the optional parameter "identityMappingStoreId": +// Required. The ID of the Identity Mapping Store to create. The ID must +// contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens +// (-). The maximum length is 63 characters. +func (c *ProjectsLocationsIdentityMappingStoresCreateCall) IdentityMappingStoreId(identityMappingStoreId string) *ProjectsLocationsIdentityMappingStoresCreateCall { + c.urlParams_.Set("identityMappingStoreId", identityMappingStoreId) + 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 *ProjectsLocationsIdentityMappingStoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsIdentityMappingStoresCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsIdentityMappingStoresCreateCall) Context(ctx context.Context) *ProjectsLocationsIdentityMappingStoresCreateCall { + 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 *ProjectsLocationsIdentityMappingStoresCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIdentityMappingStoresCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googleclouddiscoveryenginev1betaidentitymappingstore) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/identityMappingStores") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "discoveryengine.projects.locations.identityMappingStores.create", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "discoveryengine.projects.locations.identityMappingStores.create" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudDiscoveryengineV1betaIdentityMappingStore.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 *ProjectsLocationsIdentityMappingStoresCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaIdentityMappingStore, 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 := &GoogleCloudDiscoveryengineV1betaIdentityMappingStore{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "discoveryengine.projects.locations.identityMappingStores.create", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsIdentityMappingStoresDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes the Identity Mapping Store. +// +// - name: The name of the Identity Mapping Store to delete. Format: +// `projects/{project}/locations/{location}/identityMappingStores/{identityMap +// pingStore}`. +func (r *ProjectsLocationsIdentityMappingStoresService) Delete(name string) *ProjectsLocationsIdentityMappingStoresDeleteCall { + c := &ProjectsLocationsIdentityMappingStoresDeleteCall{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 *ProjectsLocationsIdentityMappingStoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsIdentityMappingStoresDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsIdentityMappingStoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsIdentityMappingStoresDeleteCall { + 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 *ProjectsLocationsIdentityMappingStoresDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIdentityMappingStoresDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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("DELETE", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "discoveryengine.projects.locations.identityMappingStores.delete", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "discoveryengine.projects.locations.identityMappingStores.delete" 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 *ProjectsLocationsIdentityMappingStoresDeleteCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "discoveryengine.projects.locations.identityMappingStores.delete", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsIdentityMappingStoresGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the Identity Mapping Store. +// +// - name: The name of the Identity Mapping Store to get. Format: +// `projects/{project}/locations/{location}/identityMappingStores/{identityMap +// pingStore}`. +func (r *ProjectsLocationsIdentityMappingStoresService) Get(name string) *ProjectsLocationsIdentityMappingStoresGetCall { + c := &ProjectsLocationsIdentityMappingStoresGetCall{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 *ProjectsLocationsIdentityMappingStoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsIdentityMappingStoresGetCall { + 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 *ProjectsLocationsIdentityMappingStoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsIdentityMappingStoresGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsIdentityMappingStoresGetCall) Context(ctx context.Context) *ProjectsLocationsIdentityMappingStoresGetCall { + 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 *ProjectsLocationsIdentityMappingStoresGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIdentityMappingStoresGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + 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, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "discoveryengine.projects.locations.identityMappingStores.get", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "discoveryengine.projects.locations.identityMappingStores.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudDiscoveryengineV1betaIdentityMappingStore.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 *ProjectsLocationsIdentityMappingStoresGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaIdentityMappingStore, 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 := &GoogleCloudDiscoveryengineV1betaIdentityMappingStore{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "discoveryengine.projects.locations.identityMappingStores.get", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsIdentityMappingStoresImportIdentityMappingsCall struct { + s *Service + identityMappingStore string + googleclouddiscoveryenginev1betaimportidentitymappingsrequest *GoogleCloudDiscoveryengineV1betaImportIdentityMappingsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// ImportIdentityMappings: Imports a list of Identity Mapping Entries to an +// Identity Mapping Store. +// +// - identityMappingStore: The name of the Identity Mapping Store to import +// Identity Mapping Entries to. Format: +// `projects/{project}/locations/{location}/identityMappingStores/{identityMap +// pingStore}`. +func (r *ProjectsLocationsIdentityMappingStoresService) ImportIdentityMappings(identityMappingStore string, googleclouddiscoveryenginev1betaimportidentitymappingsrequest *GoogleCloudDiscoveryengineV1betaImportIdentityMappingsRequest) *ProjectsLocationsIdentityMappingStoresImportIdentityMappingsCall { + c := &ProjectsLocationsIdentityMappingStoresImportIdentityMappingsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.identityMappingStore = identityMappingStore + c.googleclouddiscoveryenginev1betaimportidentitymappingsrequest = googleclouddiscoveryenginev1betaimportidentitymappingsrequest + 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 *ProjectsLocationsIdentityMappingStoresImportIdentityMappingsCall) Fields(s ...googleapi.Field) *ProjectsLocationsIdentityMappingStoresImportIdentityMappingsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsIdentityMappingStoresImportIdentityMappingsCall) Context(ctx context.Context) *ProjectsLocationsIdentityMappingStoresImportIdentityMappingsCall { + 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 *ProjectsLocationsIdentityMappingStoresImportIdentityMappingsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIdentityMappingStoresImportIdentityMappingsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googleclouddiscoveryenginev1betaimportidentitymappingsrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+identityMappingStore}:importIdentityMappings") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "identityMappingStore": c.identityMappingStore, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "discoveryengine.projects.locations.identityMappingStores.importIdentityMappings", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "discoveryengine.projects.locations.identityMappingStores.importIdentityMappings" 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 *ProjectsLocationsIdentityMappingStoresImportIdentityMappingsCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "discoveryengine.projects.locations.identityMappingStores.importIdentityMappings", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsIdentityMappingStoresListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists all Identity Mapping Stores. +// +// - parent: The parent of the Identity Mapping Stores to list. Format: +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsIdentityMappingStoresService) List(parent string) *ProjectsLocationsIdentityMappingStoresListCall { + c := &ProjectsLocationsIdentityMappingStoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// IdentityMappingStores to return. If unspecified, defaults to 100. The +// maximum allowed value is 1000. Values above 1000 will be coerced to 1000. +func (c *ProjectsLocationsIdentityMappingStoresListCall) PageSize(pageSize int64) *ProjectsLocationsIdentityMappingStoresListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, received +// from a previous `ListIdentityMappingStores` call. Provide this to retrieve +// the subsequent page. When paginating, all other parameters provided to +// `ListIdentityMappingStores` must match the call that provided the page +// token. +func (c *ProjectsLocationsIdentityMappingStoresListCall) PageToken(pageToken string) *ProjectsLocationsIdentityMappingStoresListCall { + 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 *ProjectsLocationsIdentityMappingStoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIdentityMappingStoresListCall { + 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 *ProjectsLocationsIdentityMappingStoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIdentityMappingStoresListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsIdentityMappingStoresListCall) Context(ctx context.Context) *ProjectsLocationsIdentityMappingStoresListCall { + 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 *ProjectsLocationsIdentityMappingStoresListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIdentityMappingStoresListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/identityMappingStores") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "discoveryengine.projects.locations.identityMappingStores.list", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "discoveryengine.projects.locations.identityMappingStores.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudDiscoveryengineV1betaListIdentityMappingStoresResponse.ServerResp +// onse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsIdentityMappingStoresListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaListIdentityMappingStoresResponse, 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 := &GoogleCloudDiscoveryengineV1betaListIdentityMappingStoresResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "discoveryengine.projects.locations.identityMappingStores.list", "response", internallog.HTTPResponse(res, b)) + 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 *ProjectsLocationsIdentityMappingStoresListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1betaListIdentityMappingStoresResponse) 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 ProjectsLocationsIdentityMappingStoresListIdentityMappingsCall struct { + s *Service + identityMappingStore string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// ListIdentityMappings: Lists Identity Mappings in an Identity Mapping Store. +// +// - identityMappingStore: The name of the Identity Mapping Store to list +// Identity Mapping Entries in. Format: +// `projects/{project}/locations/{location}/identityMappingStores/{identityMap +// pingStore}`. +func (r *ProjectsLocationsIdentityMappingStoresService) ListIdentityMappings(identityMappingStore string) *ProjectsLocationsIdentityMappingStoresListIdentityMappingsCall { + c := &ProjectsLocationsIdentityMappingStoresListIdentityMappingsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.identityMappingStore = identityMappingStore + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// IdentityMappings to return. If unspecified, defaults to 2000. The maximum +// allowed value is 10000. Values above 10000 will be coerced to 10000. +func (c *ProjectsLocationsIdentityMappingStoresListIdentityMappingsCall) PageSize(pageSize int64) *ProjectsLocationsIdentityMappingStoresListIdentityMappingsCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, received +// from a previous `ListIdentityMappings` call. Provide this to retrieve the +// subsequent page. When paginating, all other parameters provided to +// `ListIdentityMappings` must match the call that provided the page token. +func (c *ProjectsLocationsIdentityMappingStoresListIdentityMappingsCall) PageToken(pageToken string) *ProjectsLocationsIdentityMappingStoresListIdentityMappingsCall { + 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 *ProjectsLocationsIdentityMappingStoresListIdentityMappingsCall) Fields(s ...googleapi.Field) *ProjectsLocationsIdentityMappingStoresListIdentityMappingsCall { + 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 *ProjectsLocationsIdentityMappingStoresListIdentityMappingsCall) IfNoneMatch(entityTag string) *ProjectsLocationsIdentityMappingStoresListIdentityMappingsCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsIdentityMappingStoresListIdentityMappingsCall) Context(ctx context.Context) *ProjectsLocationsIdentityMappingStoresListIdentityMappingsCall { + 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 *ProjectsLocationsIdentityMappingStoresListIdentityMappingsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIdentityMappingStoresListIdentityMappingsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+identityMappingStore}:listIdentityMappings") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "identityMappingStore": c.identityMappingStore, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "discoveryengine.projects.locations.identityMappingStores.listIdentityMappings", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "discoveryengine.projects.locations.identityMappingStores.listIdentityMappings" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudDiscoveryengineV1betaListIdentityMappingsResponse.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 *ProjectsLocationsIdentityMappingStoresListIdentityMappingsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaListIdentityMappingsResponse, 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 := &GoogleCloudDiscoveryengineV1betaListIdentityMappingsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "discoveryengine.projects.locations.identityMappingStores.listIdentityMappings", "response", internallog.HTTPResponse(res, b)) + 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 *ProjectsLocationsIdentityMappingStoresListIdentityMappingsCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1betaListIdentityMappingsResponse) 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 ProjectsLocationsIdentityMappingStoresPurgeIdentityMappingsCall struct { + s *Service + identityMappingStore string + googleclouddiscoveryenginev1betapurgeidentitymappingsrequest *GoogleCloudDiscoveryengineV1betaPurgeIdentityMappingsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// PurgeIdentityMappings: Purges specified or all Identity Mapping Entries from +// an Identity Mapping Store. +// +// - identityMappingStore: The name of the Identity Mapping Store to purge +// Identity Mapping Entries from. Format: +// `projects/{project}/locations/{location}/identityMappingStores/{identityMap +// pingStore}`. +func (r *ProjectsLocationsIdentityMappingStoresService) PurgeIdentityMappings(identityMappingStore string, googleclouddiscoveryenginev1betapurgeidentitymappingsrequest *GoogleCloudDiscoveryengineV1betaPurgeIdentityMappingsRequest) *ProjectsLocationsIdentityMappingStoresPurgeIdentityMappingsCall { + c := &ProjectsLocationsIdentityMappingStoresPurgeIdentityMappingsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.identityMappingStore = identityMappingStore + c.googleclouddiscoveryenginev1betapurgeidentitymappingsrequest = googleclouddiscoveryenginev1betapurgeidentitymappingsrequest + 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 *ProjectsLocationsIdentityMappingStoresPurgeIdentityMappingsCall) Fields(s ...googleapi.Field) *ProjectsLocationsIdentityMappingStoresPurgeIdentityMappingsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsIdentityMappingStoresPurgeIdentityMappingsCall) Context(ctx context.Context) *ProjectsLocationsIdentityMappingStoresPurgeIdentityMappingsCall { + 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 *ProjectsLocationsIdentityMappingStoresPurgeIdentityMappingsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIdentityMappingStoresPurgeIdentityMappingsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googleclouddiscoveryenginev1betapurgeidentitymappingsrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+identityMappingStore}:purgeIdentityMappings") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "identityMappingStore": c.identityMappingStore, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "discoveryengine.projects.locations.identityMappingStores.purgeIdentityMappings", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "discoveryengine.projects.locations.identityMappingStores.purgeIdentityMappings" 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 *ProjectsLocationsIdentityMappingStoresPurgeIdentityMappingsCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "discoveryengine.projects.locations.identityMappingStores.purgeIdentityMappings", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type ProjectsLocationsIdentityMappingStoresOperationsGetCall struct { s *Service name string diff --git a/eventarc/v1/eventarc-api.json b/eventarc/v1/eventarc-api.json index 0ff64f19626..3936468f56c 100644 --- a/eventarc/v1/eventarc-api.json +++ b/eventarc/v1/eventarc-api.json @@ -2460,7 +2460,7 @@ } } }, - "revision": "20250103", + "revision": "20250124", "rootUrl": "https://eventarc.googleapis.com/", "schemas": { "AuditConfig": { @@ -3734,6 +3734,7 @@ }, "etag": { "description": "Output only. This checksum is computed by the server based on the value of other fields, and might be sent only on create requests to ensure that the client has an up-to-date value before proceeding.", + "readOnly": true, "type": "string" }, "inputPayloadFormat": { diff --git a/youtube/v3/youtube-api.json b/youtube/v3/youtube-api.json index 036d40caf16..c01fc61d364 100644 --- a/youtube/v3/youtube-api.json +++ b/youtube/v3/youtube-api.json @@ -4100,7 +4100,7 @@ } } }, - "revision": "20250122", + "revision": "20250128", "rootUrl": "https://youtube.googleapis.com/", "schemas": { "AbuseReport": { @@ -5528,6 +5528,10 @@ "description": "JSON template for the status part of a channel.", "id": "ChannelStatus", "properties": { + "isChannelMonetizationEnabled": { + "description": "Whether the channel is considered ypp monetization enabled. See go/yppornot for more details.", + "type": "boolean" + }, "isLinked": { "description": "If true, then the user is linked to either a YouTube username or G+ account. Otherwise, the user doesn't have a public YouTube identity.", "type": "boolean" diff --git a/youtube/v3/youtube-gen.go b/youtube/v3/youtube-gen.go index 926022df923..38a006f0a41 100644 --- a/youtube/v3/youtube-gen.go +++ b/youtube/v3/youtube-gen.go @@ -2107,6 +2107,9 @@ func (s ChannelStatistics) MarshalJSON() ([]byte, error) { // ChannelStatus: JSON template for the status part of a channel. type ChannelStatus struct { + // IsChannelMonetizationEnabled: Whether the channel is considered ypp + // monetization enabled. See go/yppornot for more details. + IsChannelMonetizationEnabled bool `json:"isChannelMonetizationEnabled,omitempty"` // IsLinked: If true, then the user is linked to either a YouTube username or // G+ account. Otherwise, the user doesn't have a public YouTube identity. IsLinked bool `json:"isLinked,omitempty"` @@ -2128,15 +2131,15 @@ type ChannelStatus struct { // "private" PrivacyStatus string `json:"privacyStatus,omitempty"` SelfDeclaredMadeForKids bool `json:"selfDeclaredMadeForKids,omitempty"` - // ForceSendFields is a list of field names (e.g. "IsLinked") 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 is a list of field names (e.g. + // "IsChannelMonetizationEnabled") 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. "IsLinked") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "IsChannelMonetizationEnabled") 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:"-"` }