diff --git a/CHANGES.md b/CHANGES.md index cc1dcf26895..c1825285eae 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,16 @@ # Changes +## [0.205.0](https://github.com/googleapis/google-api-go-client/compare/v0.204.0...v0.205.0) (2024-11-06) + + +### Features + +* **all:** Auto-regenerate discovery clients ([#2852](https://github.com/googleapis/google-api-go-client/issues/2852)) ([e3868f2](https://github.com/googleapis/google-api-go-client/commit/e3868f25dbd081e7d28a8d75d0ea4a5364027f80)) +* **all:** Auto-regenerate discovery clients ([#2855](https://github.com/googleapis/google-api-go-client/issues/2855)) ([47ea8e4](https://github.com/googleapis/google-api-go-client/commit/47ea8e4b725736c1669736d0bb98240843528d4b)) +* **all:** Auto-regenerate discovery clients ([#2857](https://github.com/googleapis/google-api-go-client/issues/2857)) ([7832094](https://github.com/googleapis/google-api-go-client/commit/78320944b877761cf87ad1d375f7867659a7fae0)) +* **all:** Auto-regenerate discovery clients ([#2858](https://github.com/googleapis/google-api-go-client/issues/2858)) ([eb00c84](https://github.com/googleapis/google-api-go-client/commit/eb00c845e266f5ae5926f7cb4d8112d03ff9d63c)) +* **all:** Auto-regenerate discovery clients ([#2860](https://github.com/googleapis/google-api-go-client/issues/2860)) ([3347fa1](https://github.com/googleapis/google-api-go-client/commit/3347fa1ef84d6de6d5f0ce651bf6da6577791a9e)) + ## [0.204.0](https://github.com/googleapis/google-api-go-client/compare/v0.203.0...v0.204.0) (2024-10-31) diff --git a/accesscontextmanager/v1/accesscontextmanager-api.json b/accesscontextmanager/v1/accesscontextmanager-api.json index fdce80f6af9..7eb5a600156 100644 --- a/accesscontextmanager/v1/accesscontextmanager-api.json +++ b/accesscontextmanager/v1/accesscontextmanager-api.json @@ -1206,7 +1206,7 @@ ], "parameters": { "append": { - "description": "Optional. This field controls whether or not certain repeated settings in the update request overwrite or append to existing settings on the binding. If true, then append. Otherwise overwrite. So far, only scoped_access_settings supports appending. Global access_levels, dry_run_access_levels, reauth_settings, and session_settings are not compatible with append functionality, and the request will return an error if append=true when these settings are in the update_mask. The request will also return an error if append=true when \"scoped_access_settings\" is not set in the update_mask.", + "description": "Optional. This field controls whether or not certain repeated settings in the update request overwrite or append to existing settings on the binding. If true, then append. Otherwise overwrite. So far, only scoped_access_settings with reauth_settings supports appending. Global access_levels, access_levels in scoped_access_settings, dry_run_access_levels, reauth_settings, and session_settings are not compatible with append functionality, and the request will return an error if append=true when these settings are in the update_mask. The request will also return an error if append=true when \"scoped_access_settings\" is not set in the update_mask.", "location": "query", "type": "boolean" }, @@ -1295,7 +1295,7 @@ } } }, - "revision": "20241022", + "revision": "20241028", "rootUrl": "https://accesscontextmanager.googleapis.com/", "schemas": { "AccessContextManagerOperationMetadata": { @@ -1884,7 +1884,7 @@ "type": "object" }, "GcpUserAccessBinding": { - "description": "Restricts access to Cloud Console and Google Cloud APIs for a set of users using Context-Aware Access. Next ID: 11", + "description": "Restricts access to Cloud Console and Google Cloud APIs for a set of users using Context-Aware Access.", "id": "GcpUserAccessBinding", "properties": { "accessLevels": { @@ -1926,6 +1926,10 @@ "$ref": "ScopedAccessSettings" }, "type": "array" + }, + "sessionSettings": { + "$ref": "SessionSettings", + "description": "Optional. GCSL policy for the group key. Migrated from ReauthSettings" } }, "type": "object" diff --git a/accesscontextmanager/v1/accesscontextmanager-gen.go b/accesscontextmanager/v1/accesscontextmanager-gen.go index 1ea5064d44a..b5dcaff8468 100644 --- a/accesscontextmanager/v1/accesscontextmanager-gen.go +++ b/accesscontextmanager/v1/accesscontextmanager-gen.go @@ -1191,7 +1191,7 @@ func (s Expr) MarshalJSON() ([]byte, error) { } // GcpUserAccessBinding: Restricts access to Cloud Console and Google Cloud -// APIs for a set of users using Context-Aware Access. Next ID: 11 +// APIs for a set of users using Context-Aware Access. type GcpUserAccessBinding struct { // AccessLevels: Optional. Access level that a user must have to be granted // access. Only one access level is supported, not multiple. This repeated @@ -1228,6 +1228,9 @@ type GcpUserAccessBinding struct { // this binding's restrictions on a subset of applications. This field cannot // be set if restricted_client_applications is set. ScopedAccessSettings []*ScopedAccessSettings `json:"scopedAccessSettings,omitempty"` + // SessionSettings: Optional. GCSL policy for the group key. Migrated from + // ReauthSettings + SessionSettings *SessionSettings `json:"sessionSettings,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` @@ -6659,12 +6662,13 @@ func (r *OrganizationsGcpUserAccessBindingsService) Patch(name string, gcpuserac // Append sets the optional parameter "append": This field controls whether or // not certain repeated settings in the update request overwrite or append to // existing settings on the binding. If true, then append. Otherwise overwrite. -// So far, only scoped_access_settings supports appending. Global -// access_levels, dry_run_access_levels, reauth_settings, and session_settings -// are not compatible with append functionality, and the request will return an -// error if append=true when these settings are in the update_mask. The request -// will also return an error if append=true when "scoped_access_settings" is -// not set in the update_mask. +// So far, only scoped_access_settings with reauth_settings supports appending. +// Global access_levels, access_levels in scoped_access_settings, +// dry_run_access_levels, reauth_settings, and session_settings are not +// compatible with append functionality, and the request will return an error +// if append=true when these settings are in the update_mask. The request will +// also return an error if append=true when "scoped_access_settings" is not set +// in the update_mask. func (c *OrganizationsGcpUserAccessBindingsPatchCall) Append(append bool) *OrganizationsGcpUserAccessBindingsPatchCall { c.urlParams_.Set("append", fmt.Sprint(append)) return c diff --git a/admin/directory/v1/admin-api.json b/admin/directory/v1/admin-api.json index 8647610cd09..8eb09f396eb 100644 --- a/admin/directory/v1/admin-api.json +++ b/admin/directory/v1/admin-api.json @@ -4671,7 +4671,7 @@ } } }, - "revision": "20240924", + "revision": "20241029", "rootUrl": "https://admin.googleapis.com/", "schemas": { "Alias": { @@ -5184,6 +5184,25 @@ }, "type": "object" }, + "ByteUsage": { + "description": "Represents a data capacity with some amount of current usage in bytes.", + "id": "ByteUsage", + "properties": { + "capacityBytes": { + "description": "Output only. The total capacity value, in bytes.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "usedBytes": { + "description": "Output only. The current usage value, in bytes.", + "format": "int64", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "CalendarResource": { "description": "Public API: Resources.calendars", "id": "CalendarResource", @@ -5640,6 +5659,11 @@ "readOnly": true, "type": "string" }, + "diskSpaceUsage": { + "$ref": "ByteUsage", + "description": "Output only. How much disk space the device has available and is currently using.", + "readOnly": true + }, "diskVolumeReports": { "description": "Reports of disk space and other info about mounted/connected volumes.", "items": { diff --git a/admin/directory/v1/admin-gen.go b/admin/directory/v1/admin-gen.go index 9bf1ef8eb95..b8211cbe535 100644 --- a/admin/directory/v1/admin-gen.go +++ b/admin/directory/v1/admin-gen.go @@ -1318,6 +1318,31 @@ func (s Buildings) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// ByteUsage: Represents a data capacity with some amount of current usage in +// bytes. +type ByteUsage struct { + // CapacityBytes: Output only. The total capacity value, in bytes. + CapacityBytes int64 `json:"capacityBytes,omitempty,string"` + // UsedBytes: Output only. The current usage value, in bytes. + UsedBytes int64 `json:"usedBytes,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "CapacityBytes") 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. "CapacityBytes") 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 ByteUsage) MarshalJSON() ([]byte, error) { + type NoMethod ByteUsage + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // CalendarResource: Public API: Resources.calendars type CalendarResource struct { // BuildingId: Unique ID for the building a resource is located in. @@ -1581,6 +1606,9 @@ type ChromeOsDevice struct { // Upgrade. // "kioskUpgrade" - The device has an annual Kiosk Upgrade. DeviceLicenseType string `json:"deviceLicenseType,omitempty"` + // DiskSpaceUsage: Output only. How much disk space the device has available + // and is currently using. + DiskSpaceUsage *ByteUsage `json:"diskSpaceUsage,omitempty"` // DiskVolumeReports: Reports of disk space and other info about // mounted/connected volumes. DiskVolumeReports []*ChromeOsDeviceDiskVolumeReports `json:"diskVolumeReports,omitempty"` diff --git a/aiplatform/v1/aiplatform-api.json b/aiplatform/v1/aiplatform-api.json index b1a84d2598a..9242da59585 100644 --- a/aiplatform/v1/aiplatform-api.json +++ b/aiplatform/v1/aiplatform-api.json @@ -791,6 +791,61 @@ } }, "projects": { + "methods": { + "getCacheConfig": { + "description": "Gets a GenAI cache config.", + "flatPath": "v1/projects/{projectsId}/cacheConfig", + "httpMethod": "GET", + "id": "aiplatform.projects.getCacheConfig", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the cache config. Format: - `projects/{project}/cacheConfig`.", + "location": "path", + "pattern": "^projects/[^/]+/cacheConfig$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudAiplatformV1CacheConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "updateCacheConfig": { + "description": "Updates a cache config.", + "flatPath": "v1/projects/{projectsId}/cacheConfig", + "httpMethod": "PATCH", + "id": "aiplatform.projects.updateCacheConfig", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Identifier. Name of the cache config. Format: - `projects/{project}/cacheConfig`.", + "location": "path", + "pattern": "^projects/[^/]+/cacheConfig$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudAiplatformV1CacheConfig" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, "resources": { "locations": { "methods": { @@ -3763,6 +3818,35 @@ "https://www.googleapis.com/auth/cloud-platform.read-only" ] }, + "fetchPredictOperation": { + "description": "Fetch an asynchronous online prediction operation.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:fetchPredictOperation", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.endpoints.fetchPredictOperation", + "parameterOrder": [ + "endpoint" + ], + "parameters": { + "endpoint": { + "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` or `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+endpoint}:fetchPredictOperation", + "request": { + "$ref": "GoogleCloudAiplatformV1FetchPredictOperationRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, "generateContent": { "description": "Generate content with multimodal inputs.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:generateContent", @@ -3960,6 +4044,35 @@ "https://www.googleapis.com/auth/cloud-platform.read-only" ] }, + "predictLongRunning": { + "description": "", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:predictLongRunning", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.endpoints.predictLongRunning", + "parameterOrder": [ + "endpoint" + ], + "parameters": { + "endpoint": { + "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` or `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+endpoint}:predictLongRunning", + "request": { + "$ref": "GoogleCloudAiplatformV1PredictLongRunningRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, "rawPredict": { "description": "Perform an online prediction with an arbitrary HTTP payload. The response includes the following HTTP headers: * `X-Vertex-AI-Endpoint-Id`: ID of the Endpoint that served this prediction. * `X-Vertex-AI-Deployed-Model-Id`: ID of the Endpoint's DeployedModel that served this prediction.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:rawPredict", @@ -13932,6 +14045,35 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "fetchPredictOperation": { + "description": "Fetch an asynchronous online prediction operation.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/publishers/{publishersId}/models/{modelsId}:fetchPredictOperation", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.publishers.models.fetchPredictOperation", + "parameterOrder": [ + "endpoint" + ], + "parameters": { + "endpoint": { + "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` or `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+endpoint}:fetchPredictOperation", + "request": { + "$ref": "GoogleCloudAiplatformV1FetchPredictOperationRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, "generateContent": { "description": "Generate content with multimodal inputs.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/publishers/{publishersId}/models/{modelsId}:generateContent", @@ -13990,6 +14132,35 @@ "https://www.googleapis.com/auth/cloud-platform.read-only" ] }, + "predictLongRunning": { + "description": "", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/publishers/{publishersId}/models/{modelsId}:predictLongRunning", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.publishers.models.predictLongRunning", + "parameterOrder": [ + "endpoint" + ], + "parameters": { + "endpoint": { + "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` or `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+endpoint}:predictLongRunning", + "request": { + "$ref": "GoogleCloudAiplatformV1PredictLongRunningRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, "rawPredict": { "description": "Perform an online prediction with an arbitrary HTTP payload. The response includes the following HTTP headers: * `X-Vertex-AI-Endpoint-Id`: ID of the Endpoint that served this prediction. * `X-Vertex-AI-Deployed-Model-Id`: ID of the Endpoint's DeployedModel that served this prediction.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/publishers/{publishersId}/models/{modelsId}:rawPredict", @@ -17902,7 +18073,7 @@ } } }, - "revision": "20241025", + "revision": "20241026", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "CloudAiLargeModelsVisionGenerateVideoResponse": { @@ -18198,6 +18369,15 @@ "description": "Video", "id": "CloudAiLargeModelsVisionVideo", "properties": { + "encodedVideo": { + "description": "Base 64 encoded video bytes.", + "format": "byte", + "type": "string" + }, + "encoding": { + "description": "Video encoding, for example \"video/mp4\".", + "type": "string" + }, "uri": { "description": "Path to another storage (typically Google Cloud Storage).", "type": "string" @@ -19464,6 +19644,21 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1CacheConfig": { + "description": "Config of GenAI caching features. This is a singleton resource.", + "id": "GoogleCloudAiplatformV1CacheConfig", + "properties": { + "disableCache": { + "description": "If set to true, disables GenAI caching. Otherwise caching is enabled.", + "type": "boolean" + }, + "name": { + "description": "Identifier. Name of the cache config. Format: - `projects/{project}/cacheConfig`.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1CancelBatchPredictionJobRequest": { "description": "Request message for JobService.CancelBatchPredictionJob.", "id": "GoogleCloudAiplatformV1CancelBatchPredictionJobRequest", @@ -19556,7 +19751,7 @@ "Token generation reached a natural stopping point or a configured stop sequence.", "Token generation reached the configured maximum output tokens.", "Token generation stopped because the content potentially contains safety violations. NOTE: When streaming, content is empty if content filters blocks the output.", - "Token generation stopped because the content potentially contains copyright violations.", + "The token generation stopped because of potential recitation.", "All other reasons that stopped the token generation.", "Token generation stopped because the content contains forbidden terms.", "Token generation stopped for potentially containing prohibited content.", @@ -24290,6 +24485,17 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1FetchPredictOperationRequest": { + "description": "Request message for PredictionService.FetchPredictOperation.", + "id": "GoogleCloudAiplatformV1FetchPredictOperationRequest", + "properties": { + "operationName": { + "description": "Required. The server-assigned name for the operation.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1FileData": { "description": "URI based data.", "id": "GoogleCloudAiplatformV1FileData", @@ -24646,7 +24852,7 @@ "type": "object" }, "GoogleCloudAiplatformV1FunctionDeclaration": { - "description": "Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name and parameters. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.", + "description": "Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name, description, parameters and response type. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.", "id": "GoogleCloudAiplatformV1FunctionDeclaration", "properties": { "description": { @@ -29426,6 +29632,10 @@ "readOnly": true, "type": "string" }, + "customEnvironmentSpec": { + "$ref": "GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec", + "description": "The custom compute configuration for an execution job." + }, "dataformRepositorySource": { "$ref": "GoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource", "description": "The Dataform Repository pointing to a single file notebook repository." @@ -29531,6 +29741,25 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec": { + "description": "Compute configuration to use for an execution job.", + "id": "GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec", + "properties": { + "machineSpec": { + "$ref": "GoogleCloudAiplatformV1MachineSpec", + "description": "The specification of a single machine for the execution job." + }, + "networkSpec": { + "$ref": "GoogleCloudAiplatformV1NetworkSpec", + "description": "The network configuration to use for the execution job." + }, + "persistentDiskSpec": { + "$ref": "GoogleCloudAiplatformV1PersistentDiskSpec", + "description": "The specification of a persistent disk to attach for the execution job." + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource": { "description": "The Dataform Repository containing the input notebook.", "id": "GoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource", @@ -30838,6 +31067,24 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1PredictLongRunningRequest": { + "description": "Request message for PredictionService.PredictLongRunning.", + "id": "GoogleCloudAiplatformV1PredictLongRunningRequest", + "properties": { + "instances": { + "description": "Required. The instances that are the input to the prediction call. A DeployedModel may have an upper limit on the number of instances it supports per request, and when it is exceeded the prediction call errors in case of AutoML Models, or, in case of customer created Models, the behaviour is as documented by that Model. The schema of any single instance may be specified via Endpoint's DeployedModels' Model's PredictSchemata's instance_schema_uri.", + "items": { + "type": "any" + }, + "type": "array" + }, + "parameters": { + "description": "Optional. The parameters that govern the prediction. The schema of the parameters may be specified via Endpoint's DeployedModels' Model's PredictSchemata's parameters_schema_uri.", + "type": "any" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1PredictRequest": { "description": "Request message for PredictionService.Predict.", "id": "GoogleCloudAiplatformV1PredictRequest", @@ -35049,6 +35296,10 @@ "structuredPrompt": { "$ref": "GoogleCloudAiplatformV1SchemaPromptSpecStructuredPrompt", "description": "The prompt variation that stores preambles in separate fields." + }, + "translationPrompt": { + "$ref": "GoogleCloudAiplatformV1SchemaPromptSpecTranslationPrompt", + "description": "The prompt variation for Translation use case." } }, "type": "object" @@ -35147,6 +35398,35 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1SchemaPromptSpecReferenceSentencePair": { + "description": "A pair of sentences used as reference in source and target languages.", + "id": "GoogleCloudAiplatformV1SchemaPromptSpecReferenceSentencePair", + "properties": { + "sourceSentence": { + "description": "Source sentence in the sentence pair.", + "type": "string" + }, + "targetSentence": { + "description": "Target sentence in the sentence pair.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1SchemaPromptSpecReferenceSentencePairList": { + "description": "A list of reference sentence pairs.", + "id": "GoogleCloudAiplatformV1SchemaPromptSpecReferenceSentencePairList", + "properties": { + "referenceSentencePairs": { + "description": "Reference sentence pairs.", + "items": { + "$ref": "GoogleCloudAiplatformV1SchemaPromptSpecReferenceSentencePair" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1SchemaPromptSpecStructuredPrompt": { "description": "Prompt variation that stores preambles in separate fields.", "id": "GoogleCloudAiplatformV1SchemaPromptSpecStructuredPrompt", @@ -35198,6 +35478,108 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1SchemaPromptSpecTranslationExample": { + "description": "The translation example that contains reference sentences from various sources.", + "id": "GoogleCloudAiplatformV1SchemaPromptSpecTranslationExample", + "properties": { + "referenceSentencePairLists": { + "description": "The reference sentences from inline text.", + "items": { + "$ref": "GoogleCloudAiplatformV1SchemaPromptSpecReferenceSentencePairList" + }, + "type": "array" + }, + "referenceSentencesFileInputs": { + "description": "The reference sentences from file.", + "items": { + "$ref": "GoogleCloudAiplatformV1SchemaPromptSpecTranslationSentenceFileInput" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1SchemaPromptSpecTranslationFileInputSource": { + "id": "GoogleCloudAiplatformV1SchemaPromptSpecTranslationFileInputSource", + "properties": { + "content": { + "description": "The file's contents.", + "type": "string" + }, + "displayName": { + "description": "The file's display name.", + "type": "string" + }, + "mimeType": { + "description": "The file's mime type.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1SchemaPromptSpecTranslationGcsInputSource": { + "id": "GoogleCloudAiplatformV1SchemaPromptSpecTranslationGcsInputSource", + "properties": { + "inputUri": { + "description": "Source data URI. For example, `gs://my_bucket/my_object`.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1SchemaPromptSpecTranslationOption": { + "description": "Optional settings for translation prompt.", + "id": "GoogleCloudAiplatformV1SchemaPromptSpecTranslationOption", + "properties": { + "numberOfShots": { + "description": "How many shots to use.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1SchemaPromptSpecTranslationPrompt": { + "description": "Prompt variation for Translation use case.", + "id": "GoogleCloudAiplatformV1SchemaPromptSpecTranslationPrompt", + "properties": { + "example": { + "$ref": "GoogleCloudAiplatformV1SchemaPromptSpecTranslationExample", + "description": "The translation example." + }, + "option": { + "$ref": "GoogleCloudAiplatformV1SchemaPromptSpecTranslationOption", + "description": "The translation option." + }, + "promptMessage": { + "$ref": "GoogleCloudAiplatformV1SchemaPromptSpecPromptMessage", + "description": "The prompt message." + }, + "sourceLanguageCode": { + "description": "The source language code.", + "type": "string" + }, + "targetLanguageCode": { + "description": "The target language code.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1SchemaPromptSpecTranslationSentenceFileInput": { + "id": "GoogleCloudAiplatformV1SchemaPromptSpecTranslationSentenceFileInput", + "properties": { + "fileInputSource": { + "$ref": "GoogleCloudAiplatformV1SchemaPromptSpecTranslationFileInputSource", + "description": "Inlined file source." + }, + "gcsInputSource": { + "$ref": "GoogleCloudAiplatformV1SchemaPromptSpecTranslationGcsInputSource", + "description": "Cloud Storage file source." + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1SchemaTablesDatasetMetadata": { "description": "The metadata of Datasets that contain tables data.", "id": "GoogleCloudAiplatformV1SchemaTablesDatasetMetadata", @@ -39907,7 +40289,7 @@ "id": "GoogleCloudAiplatformV1TuningJob", "properties": { "baseModel": { - "description": "The base model that is being tuned, e.g., \"gemini-1.0-pro-002\".", + "description": "The base model that is being tuned, e.g., \"gemini-1.0-pro-002\". .", "type": "string" }, "createTime": { diff --git a/aiplatform/v1/aiplatform-gen.go b/aiplatform/v1/aiplatform-gen.go index 907dccf3a92..55580a9433a 100644 --- a/aiplatform/v1/aiplatform-gen.go +++ b/aiplatform/v1/aiplatform-gen.go @@ -1772,19 +1772,23 @@ func (s CloudAiLargeModelsVisionSemanticFilterResponse) MarshalJSON() ([]byte, e // CloudAiLargeModelsVisionVideo: Video type CloudAiLargeModelsVisionVideo struct { + // EncodedVideo: Base 64 encoded video bytes. + EncodedVideo string `json:"encodedVideo,omitempty"` + // Encoding: Video encoding, for example "video/mp4". + Encoding string `json:"encoding,omitempty"` // Uri: Path to another storage (typically Google Cloud Storage). Uri string `json:"uri,omitempty"` // Video: Raw bytes. Video string `json:"video,omitempty"` - // ForceSendFields is a list of field names (e.g. "Uri") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See + // ForceSendFields is a list of field names (e.g. "EncodedVideo") 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. "Uri") 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. "EncodedVideo") 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:"-"` } @@ -3719,6 +3723,36 @@ func (s GoogleCloudAiplatformV1BoolArray) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1CacheConfig: Config of GenAI caching features. This +// is a singleton resource. +type GoogleCloudAiplatformV1CacheConfig struct { + // DisableCache: If set to true, disables GenAI caching. Otherwise caching is + // enabled. + DisableCache bool `json:"disableCache,omitempty"` + // Name: Identifier. Name of the cache config. Format: - + // `projects/{project}/cacheConfig`. + 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. "DisableCache") 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. "DisableCache") 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 GoogleCloudAiplatformV1CacheConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1CacheConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1CancelBatchPredictionJobRequest: Request message for // JobService.CancelBatchPredictionJob. type GoogleCloudAiplatformV1CancelBatchPredictionJobRequest struct { @@ -3783,8 +3817,8 @@ type GoogleCloudAiplatformV1Candidate struct { // "SAFETY" - Token generation stopped because the content potentially // contains safety violations. NOTE: When streaming, content is empty if // content filters blocks the output. - // "RECITATION" - Token generation stopped because the content potentially - // contains copyright violations. + // "RECITATION" - The token generation stopped because of potential + // recitation. // "OTHER" - All other reasons that stopped the token generation. // "BLOCKLIST" - Token generation stopped because the content contains // forbidden terms. @@ -10543,6 +10577,29 @@ func (s GoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairLis return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1FetchPredictOperationRequest: Request message for +// PredictionService.FetchPredictOperation. +type GoogleCloudAiplatformV1FetchPredictOperationRequest struct { + // OperationName: Required. The server-assigned name for the operation. + OperationName string `json:"operationName,omitempty"` + // ForceSendFields is a list of field names (e.g. "OperationName") 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. "OperationName") 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 GoogleCloudAiplatformV1FetchPredictOperationRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1FetchPredictOperationRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1FileData: URI based data. type GoogleCloudAiplatformV1FileData struct { // FileUri: Required. URI. @@ -11193,9 +11250,9 @@ func (s GoogleCloudAiplatformV1FunctionCallingConfig) MarshalJSON() ([]byte, err // GoogleCloudAiplatformV1FunctionDeclaration: Structured representation of a // function declaration as defined by the OpenAPI 3.0 specification // (https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the -// function name and parameters. This FunctionDeclaration is a representation -// of a block of code that can be used as a `Tool` by the model and executed by -// the client. +// function name, description, parameters and response type. This +// FunctionDeclaration is a representation of a block of code that can be used +// as a `Tool` by the model and executed by the client. type GoogleCloudAiplatformV1FunctionDeclaration struct { // Description: Optional. Description and purpose of the function. Model uses // it to decide how and whether to call the function. @@ -17874,6 +17931,9 @@ type GoogleCloudAiplatformV1NotebookExecutionJob struct { // CreateTime: Output only. Timestamp when this NotebookExecutionJob was // created. CreateTime string `json:"createTime,omitempty"` + // CustomEnvironmentSpec: The custom compute configuration for an execution + // job. + CustomEnvironmentSpec *GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec `json:"customEnvironmentSpec,omitempty"` // DataformRepositorySource: The Dataform Repository pointing to a single file // notebook repository. DataformRepositorySource *GoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource `json:"dataformRepositorySource,omitempty"` @@ -17968,6 +18028,34 @@ func (s GoogleCloudAiplatformV1NotebookExecutionJob) MarshalJSON() ([]byte, erro return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec: Compute +// configuration to use for an execution job. +type GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec struct { + // MachineSpec: The specification of a single machine for the execution job. + MachineSpec *GoogleCloudAiplatformV1MachineSpec `json:"machineSpec,omitempty"` + // NetworkSpec: The network configuration to use for the execution job. + NetworkSpec *GoogleCloudAiplatformV1NetworkSpec `json:"networkSpec,omitempty"` + // PersistentDiskSpec: The specification of a persistent disk to attach for the + // execution job. + PersistentDiskSpec *GoogleCloudAiplatformV1PersistentDiskSpec `json:"persistentDiskSpec,omitempty"` + // ForceSendFields is a list of field names (e.g. "MachineSpec") 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. "MachineSpec") 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 GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource: The // Dataform Repository containing the input notebook. type GoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource struct { @@ -19521,6 +19609,39 @@ func (s GoogleCloudAiplatformV1PredefinedSplit) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1PredictLongRunningRequest: Request message for +// PredictionService.PredictLongRunning. +type GoogleCloudAiplatformV1PredictLongRunningRequest struct { + // Instances: Required. The instances that are the input to the prediction + // call. A DeployedModel may have an upper limit on the number of instances it + // supports per request, and when it is exceeded the prediction call errors in + // case of AutoML Models, or, in case of customer created Models, the behaviour + // is as documented by that Model. The schema of any single instance may be + // specified via Endpoint's DeployedModels' Model's PredictSchemata's + // instance_schema_uri. + Instances []interface{} `json:"instances,omitempty"` + // Parameters: Optional. The parameters that govern the prediction. The schema + // of the parameters may be specified via Endpoint's DeployedModels' Model's + // PredictSchemata's parameters_schema_uri. + Parameters interface{} `json:"parameters,omitempty"` + // ForceSendFields is a list of field names (e.g. "Instances") 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. "Instances") 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 GoogleCloudAiplatformV1PredictLongRunningRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1PredictLongRunningRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1PredictRequest: Request message for // PredictionService.Predict. type GoogleCloudAiplatformV1PredictRequest struct { @@ -25942,6 +26063,8 @@ type GoogleCloudAiplatformV1SchemaPromptApiSchema struct { // StructuredPrompt: The prompt variation that stores preambles in separate // fields. StructuredPrompt *GoogleCloudAiplatformV1SchemaPromptSpecStructuredPrompt `json:"structuredPrompt,omitempty"` + // TranslationPrompt: The prompt variation for Translation use case. + TranslationPrompt *GoogleCloudAiplatformV1SchemaPromptSpecTranslationPrompt `json:"translationPrompt,omitempty"` // ForceSendFields is a list of field names (e.g. "ApiSchemaVersion") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -26097,6 +26220,54 @@ func (s GoogleCloudAiplatformV1SchemaPromptSpecPromptMessage) MarshalJSON() ([]b return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1SchemaPromptSpecReferenceSentencePair: A pair of +// sentences used as reference in source and target languages. +type GoogleCloudAiplatformV1SchemaPromptSpecReferenceSentencePair struct { + // SourceSentence: Source sentence in the sentence pair. + SourceSentence string `json:"sourceSentence,omitempty"` + // TargetSentence: Target sentence in the sentence pair. + TargetSentence string `json:"targetSentence,omitempty"` + // ForceSendFields is a list of field names (e.g. "SourceSentence") 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. "SourceSentence") 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 GoogleCloudAiplatformV1SchemaPromptSpecReferenceSentencePair) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1SchemaPromptSpecReferenceSentencePair + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1SchemaPromptSpecReferenceSentencePairList: A list of +// reference sentence pairs. +type GoogleCloudAiplatformV1SchemaPromptSpecReferenceSentencePairList struct { + // ReferenceSentencePairs: Reference sentence pairs. + ReferenceSentencePairs []*GoogleCloudAiplatformV1SchemaPromptSpecReferenceSentencePair `json:"referenceSentencePairs,omitempty"` + // ForceSendFields is a list of field names (e.g. "ReferenceSentencePairs") 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. "ReferenceSentencePairs") 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 GoogleCloudAiplatformV1SchemaPromptSpecReferenceSentencePairList) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1SchemaPromptSpecReferenceSentencePairList + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1SchemaPromptSpecStructuredPrompt: Prompt variation // that stores preambles in separate fields. type GoogleCloudAiplatformV1SchemaPromptSpecStructuredPrompt struct { @@ -26138,6 +26309,154 @@ func (s GoogleCloudAiplatformV1SchemaPromptSpecStructuredPrompt) MarshalJSON() ( return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1SchemaPromptSpecTranslationExample: The translation +// example that contains reference sentences from various sources. +type GoogleCloudAiplatformV1SchemaPromptSpecTranslationExample struct { + // ReferenceSentencePairLists: The reference sentences from inline text. + ReferenceSentencePairLists []*GoogleCloudAiplatformV1SchemaPromptSpecReferenceSentencePairList `json:"referenceSentencePairLists,omitempty"` + // ReferenceSentencesFileInputs: The reference sentences from file. + ReferenceSentencesFileInputs []*GoogleCloudAiplatformV1SchemaPromptSpecTranslationSentenceFileInput `json:"referenceSentencesFileInputs,omitempty"` + // ForceSendFields is a list of field names (e.g. "ReferenceSentencePairLists") + // 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. "ReferenceSentencePairLists") 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 GoogleCloudAiplatformV1SchemaPromptSpecTranslationExample) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1SchemaPromptSpecTranslationExample + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +type GoogleCloudAiplatformV1SchemaPromptSpecTranslationFileInputSource struct { + // Content: The file's contents. + Content string `json:"content,omitempty"` + // DisplayName: The file's display name. + DisplayName string `json:"displayName,omitempty"` + // MimeType: The file's mime type. + MimeType string `json:"mimeType,omitempty"` + // ForceSendFields is a list of field names (e.g. "Content") 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. "Content") 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 GoogleCloudAiplatformV1SchemaPromptSpecTranslationFileInputSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1SchemaPromptSpecTranslationFileInputSource + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +type GoogleCloudAiplatformV1SchemaPromptSpecTranslationGcsInputSource struct { + // InputUri: Source data URI. For example, `gs://my_bucket/my_object`. + InputUri string `json:"inputUri,omitempty"` + // ForceSendFields is a list of field names (e.g. "InputUri") 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. "InputUri") 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 GoogleCloudAiplatformV1SchemaPromptSpecTranslationGcsInputSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1SchemaPromptSpecTranslationGcsInputSource + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1SchemaPromptSpecTranslationOption: Optional settings +// for translation prompt. +type GoogleCloudAiplatformV1SchemaPromptSpecTranslationOption struct { + // NumberOfShots: How many shots to use. + NumberOfShots int64 `json:"numberOfShots,omitempty"` + // ForceSendFields is a list of field names (e.g. "NumberOfShots") 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. "NumberOfShots") 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 GoogleCloudAiplatformV1SchemaPromptSpecTranslationOption) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1SchemaPromptSpecTranslationOption + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1SchemaPromptSpecTranslationPrompt: Prompt variation +// for Translation use case. +type GoogleCloudAiplatformV1SchemaPromptSpecTranslationPrompt struct { + // Example: The translation example. + Example *GoogleCloudAiplatformV1SchemaPromptSpecTranslationExample `json:"example,omitempty"` + // Option: The translation option. + Option *GoogleCloudAiplatformV1SchemaPromptSpecTranslationOption `json:"option,omitempty"` + // PromptMessage: The prompt message. + PromptMessage *GoogleCloudAiplatformV1SchemaPromptSpecPromptMessage `json:"promptMessage,omitempty"` + // SourceLanguageCode: The source language code. + SourceLanguageCode string `json:"sourceLanguageCode,omitempty"` + // TargetLanguageCode: The target language code. + TargetLanguageCode string `json:"targetLanguageCode,omitempty"` + // ForceSendFields is a list of field names (e.g. "Example") 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. "Example") 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 GoogleCloudAiplatformV1SchemaPromptSpecTranslationPrompt) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1SchemaPromptSpecTranslationPrompt + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +type GoogleCloudAiplatformV1SchemaPromptSpecTranslationSentenceFileInput struct { + // FileInputSource: Inlined file source. + FileInputSource *GoogleCloudAiplatformV1SchemaPromptSpecTranslationFileInputSource `json:"fileInputSource,omitempty"` + // GcsInputSource: Cloud Storage file source. + GcsInputSource *GoogleCloudAiplatformV1SchemaPromptSpecTranslationGcsInputSource `json:"gcsInputSource,omitempty"` + // ForceSendFields is a list of field names (e.g. "FileInputSource") 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. "FileInputSource") 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 GoogleCloudAiplatformV1SchemaPromptSpecTranslationSentenceFileInput) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1SchemaPromptSpecTranslationSentenceFileInput + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1SchemaTablesDatasetMetadata: The metadata of Datasets // that contain tables data. type GoogleCloudAiplatformV1SchemaTablesDatasetMetadata struct { @@ -33299,7 +33618,7 @@ func (s GoogleCloudAiplatformV1TuningDataStats) MarshalJSON() ([]byte, error) { // GoogleCloudAiplatformV1TuningJob: Represents a TuningJob that runs with // Google owned models. type GoogleCloudAiplatformV1TuningJob struct { - // BaseModel: The base model that is being tuned, e.g., "gemini-1.0-pro-002". + // BaseModel: The base model that is being tuned, e.g., "gemini-1.0-pro-002". . BaseModel string `json:"baseModel,omitempty"` // CreateTime: Output only. Time when the TuningJob was created. CreateTime string `json:"createTime,omitempty"` @@ -36801,6 +37120,218 @@ func (c *EndpointsStreamGenerateContentCall) Do(opts ...googleapi.CallOption) (* return ret, nil } +type ProjectsGetCacheConfigCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetCacheConfig: Gets a GenAI cache config. +// +// - name: Name of the cache config. Format: - +// `projects/{project}/cacheConfig`. +func (r *ProjectsService) GetCacheConfig(name string) *ProjectsGetCacheConfigCall { + c := &ProjectsGetCacheConfigCall{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 *ProjectsGetCacheConfigCall) Fields(s ...googleapi.Field) *ProjectsGetCacheConfigCall { + 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 *ProjectsGetCacheConfigCall) IfNoneMatch(entityTag string) *ProjectsGetCacheConfigCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsGetCacheConfigCall) Context(ctx context.Context) *ProjectsGetCacheConfigCall { + 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 *ProjectsGetCacheConfigCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsGetCacheConfigCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.getCacheConfig" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudAiplatformV1CacheConfig.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 *ProjectsGetCacheConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1CacheConfig, 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 := &GoogleCloudAiplatformV1CacheConfig{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsUpdateCacheConfigCall struct { + s *Service + name string + googlecloudaiplatformv1cacheconfig *GoogleCloudAiplatformV1CacheConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// UpdateCacheConfig: Updates a cache config. +// +// - name: Identifier. Name of the cache config. Format: - +// `projects/{project}/cacheConfig`. +func (r *ProjectsService) UpdateCacheConfig(name string, googlecloudaiplatformv1cacheconfig *GoogleCloudAiplatformV1CacheConfig) *ProjectsUpdateCacheConfigCall { + c := &ProjectsUpdateCacheConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudaiplatformv1cacheconfig = googlecloudaiplatformv1cacheconfig + 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 *ProjectsUpdateCacheConfigCall) Fields(s ...googleapi.Field) *ProjectsUpdateCacheConfigCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsUpdateCacheConfigCall) Context(ctx context.Context) *ProjectsUpdateCacheConfigCall { + 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 *ProjectsUpdateCacheConfigCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsUpdateCacheConfigCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1cacheconfig) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.updateCacheConfig" 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 *ProjectsUpdateCacheConfigCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + type ProjectsLocationsEvaluateInstancesCall struct { s *Service location string @@ -47572,6 +48103,111 @@ func (c *ProjectsLocationsEndpointsExplainCall) Do(opts ...googleapi.CallOption) return ret, nil } +type ProjectsLocationsEndpointsFetchPredictOperationCall struct { + s *Service + endpoint string + googlecloudaiplatformv1fetchpredictoperationrequest *GoogleCloudAiplatformV1FetchPredictOperationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// FetchPredictOperation: Fetch an asynchronous online prediction operation. +// +// - endpoint: The name of the Endpoint requested to serve the prediction. +// Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` or +// `projects/{project}/locations/{location}/publishers/{publisher}/models/{mod +// el}`. +func (r *ProjectsLocationsEndpointsService) FetchPredictOperation(endpoint string, googlecloudaiplatformv1fetchpredictoperationrequest *GoogleCloudAiplatformV1FetchPredictOperationRequest) *ProjectsLocationsEndpointsFetchPredictOperationCall { + c := &ProjectsLocationsEndpointsFetchPredictOperationCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.endpoint = endpoint + c.googlecloudaiplatformv1fetchpredictoperationrequest = googlecloudaiplatformv1fetchpredictoperationrequest + 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 *ProjectsLocationsEndpointsFetchPredictOperationCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsFetchPredictOperationCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsEndpointsFetchPredictOperationCall) Context(ctx context.Context) *ProjectsLocationsEndpointsFetchPredictOperationCall { + 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 *ProjectsLocationsEndpointsFetchPredictOperationCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsEndpointsFetchPredictOperationCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1fetchpredictoperationrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+endpoint}:fetchPredictOperation") + 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{ + "endpoint": c.endpoint, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.endpoints.fetchPredictOperation" 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 *ProjectsLocationsEndpointsFetchPredictOperationCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + type ProjectsLocationsEndpointsGenerateContentCall struct { s *Service model string @@ -48282,6 +48918,111 @@ func (c *ProjectsLocationsEndpointsPredictCall) Do(opts ...googleapi.CallOption) return ret, nil } +type ProjectsLocationsEndpointsPredictLongRunningCall struct { + s *Service + endpoint string + googlecloudaiplatformv1predictlongrunningrequest *GoogleCloudAiplatformV1PredictLongRunningRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// PredictLongRunning: +// +// - endpoint: The name of the Endpoint requested to serve the prediction. +// Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` or +// `projects/{project}/locations/{location}/publishers/{publisher}/models/{mod +// el}`. +func (r *ProjectsLocationsEndpointsService) PredictLongRunning(endpoint string, googlecloudaiplatformv1predictlongrunningrequest *GoogleCloudAiplatformV1PredictLongRunningRequest) *ProjectsLocationsEndpointsPredictLongRunningCall { + c := &ProjectsLocationsEndpointsPredictLongRunningCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.endpoint = endpoint + c.googlecloudaiplatformv1predictlongrunningrequest = googlecloudaiplatformv1predictlongrunningrequest + 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 *ProjectsLocationsEndpointsPredictLongRunningCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsPredictLongRunningCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsEndpointsPredictLongRunningCall) Context(ctx context.Context) *ProjectsLocationsEndpointsPredictLongRunningCall { + 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 *ProjectsLocationsEndpointsPredictLongRunningCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsEndpointsPredictLongRunningCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1predictlongrunningrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+endpoint}:predictLongRunning") + 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{ + "endpoint": c.endpoint, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.endpoints.predictLongRunning" 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 *ProjectsLocationsEndpointsPredictLongRunningCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + type ProjectsLocationsEndpointsRawPredictCall struct { s *Service endpoint string @@ -85185,6 +85926,111 @@ func (c *ProjectsLocationsPublishersModelsCountTokensCall) Do(opts ...googleapi. return ret, nil } +type ProjectsLocationsPublishersModelsFetchPredictOperationCall struct { + s *Service + endpoint string + googlecloudaiplatformv1fetchpredictoperationrequest *GoogleCloudAiplatformV1FetchPredictOperationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// FetchPredictOperation: Fetch an asynchronous online prediction operation. +// +// - endpoint: The name of the Endpoint requested to serve the prediction. +// Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` or +// `projects/{project}/locations/{location}/publishers/{publisher}/models/{mod +// el}`. +func (r *ProjectsLocationsPublishersModelsService) FetchPredictOperation(endpoint string, googlecloudaiplatformv1fetchpredictoperationrequest *GoogleCloudAiplatformV1FetchPredictOperationRequest) *ProjectsLocationsPublishersModelsFetchPredictOperationCall { + c := &ProjectsLocationsPublishersModelsFetchPredictOperationCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.endpoint = endpoint + c.googlecloudaiplatformv1fetchpredictoperationrequest = googlecloudaiplatformv1fetchpredictoperationrequest + 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 *ProjectsLocationsPublishersModelsFetchPredictOperationCall) Fields(s ...googleapi.Field) *ProjectsLocationsPublishersModelsFetchPredictOperationCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsPublishersModelsFetchPredictOperationCall) Context(ctx context.Context) *ProjectsLocationsPublishersModelsFetchPredictOperationCall { + 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 *ProjectsLocationsPublishersModelsFetchPredictOperationCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsPublishersModelsFetchPredictOperationCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1fetchpredictoperationrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+endpoint}:fetchPredictOperation") + 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{ + "endpoint": c.endpoint, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.publishers.models.fetchPredictOperation" 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 *ProjectsLocationsPublishersModelsFetchPredictOperationCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + type ProjectsLocationsPublishersModelsGenerateContentCall struct { s *Service model string @@ -85394,6 +86240,111 @@ func (c *ProjectsLocationsPublishersModelsPredictCall) Do(opts ...googleapi.Call return ret, nil } +type ProjectsLocationsPublishersModelsPredictLongRunningCall struct { + s *Service + endpoint string + googlecloudaiplatformv1predictlongrunningrequest *GoogleCloudAiplatformV1PredictLongRunningRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// PredictLongRunning: +// +// - endpoint: The name of the Endpoint requested to serve the prediction. +// Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` or +// `projects/{project}/locations/{location}/publishers/{publisher}/models/{mod +// el}`. +func (r *ProjectsLocationsPublishersModelsService) PredictLongRunning(endpoint string, googlecloudaiplatformv1predictlongrunningrequest *GoogleCloudAiplatformV1PredictLongRunningRequest) *ProjectsLocationsPublishersModelsPredictLongRunningCall { + c := &ProjectsLocationsPublishersModelsPredictLongRunningCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.endpoint = endpoint + c.googlecloudaiplatformv1predictlongrunningrequest = googlecloudaiplatformv1predictlongrunningrequest + 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 *ProjectsLocationsPublishersModelsPredictLongRunningCall) Fields(s ...googleapi.Field) *ProjectsLocationsPublishersModelsPredictLongRunningCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsPublishersModelsPredictLongRunningCall) Context(ctx context.Context) *ProjectsLocationsPublishersModelsPredictLongRunningCall { + 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 *ProjectsLocationsPublishersModelsPredictLongRunningCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsPublishersModelsPredictLongRunningCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1predictlongrunningrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+endpoint}:predictLongRunning") + 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{ + "endpoint": c.endpoint, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.publishers.models.predictLongRunning" 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 *ProjectsLocationsPublishersModelsPredictLongRunningCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + type ProjectsLocationsPublishersModelsRawPredictCall struct { s *Service endpoint string diff --git a/aiplatform/v1beta1/aiplatform-api.json b/aiplatform/v1beta1/aiplatform-api.json index 141a51f0b00..ec369b620c2 100644 --- a/aiplatform/v1beta1/aiplatform-api.json +++ b/aiplatform/v1beta1/aiplatform-api.json @@ -4565,6 +4565,35 @@ "https://www.googleapis.com/auth/cloud-platform.read-only" ] }, + "fetchPredictOperation": { + "description": "Fetch an asynchronous online prediction operation.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:fetchPredictOperation", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.endpoints.fetchPredictOperation", + "parameterOrder": [ + "endpoint" + ], + "parameters": { + "endpoint": { + "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` or `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+endpoint}:fetchPredictOperation", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1FetchPredictOperationRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, "generateContent": { "description": "Generate content with multimodal inputs.", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:generateContent", @@ -4788,6 +4817,35 @@ "https://www.googleapis.com/auth/cloud-platform.read-only" ] }, + "predictLongRunning": { + "description": "", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:predictLongRunning", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.endpoints.predictLongRunning", + "parameterOrder": [ + "endpoint" + ], + "parameters": { + "endpoint": { + "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` or `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+endpoint}:predictLongRunning", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1PredictLongRunningRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, "rawPredict": { "description": "Perform an online prediction with an arbitrary HTTP payload. The response includes the following HTTP headers: * `X-Vertex-AI-Endpoint-Id`: ID of the Endpoint that served this prediction. * `X-Vertex-AI-Deployed-Model-Id`: ID of the Endpoint's DeployedModel that served this prediction.", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:rawPredict", @@ -6191,6 +6249,250 @@ } }, "resources": { + "featureMonitors": { + "methods": { + "create": { + "description": "Creates a new FeatureMonitor in a given project, location and FeatureGroup.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/featureMonitors", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.featureGroups.featureMonitors.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "featureMonitorId": { + "description": "Required. The ID to use for this FeatureMonitor, which will become the final component of the FeatureGroup's resource name. This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within the FeatureGroup.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of FeatureGroup to create FeatureMonitor. Format: `projects/{project}/locations/{location}/featureGroups/{featuregroup}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/featureMonitors", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1FeatureMonitor" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single FeatureMonitor.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/featureMonitors/{featureMonitorsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.featureGroups.featureMonitors.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the FeatureMonitor to be deleted. Format: `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a single FeatureMonitor.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/featureMonitors/{featureMonitorsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.featureGroups.featureMonitors.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the FeatureMonitor resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleCloudAiplatformV1beta1FeatureMonitor" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists FeatureGroups in a given project and location.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/featureMonitors", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.featureGroups.featureMonitors.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Lists the FeatureMonitors that match the filter expression. The following fields are supported: * `create_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003c=`, and `\u003e=` comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003c=`, and `\u003e=` comparisons. Values must be in RFC 3339 format. * `labels`: Supports key-value equality and key presence. Examples: * `create_time \u003e \"2020-01-01\" OR update_time \u003e \"2020-01-01\"` FeatureMonitors created or updated after 2020-01-01. * `labels.env = \"prod\"` FeatureGroups with label \"env\" set to \"prod\".", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported Fields: * `create_time` * `update_time`", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The maximum number of FeatureGroups to return. The service may return fewer than this value. If unspecified, at most 100 FeatureMonitors will be returned. The maximum value is 100; any value greater than 100 will be coerced to 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous FeatureRegistryService.ListFeatureMonitors call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeatureRegistryService.ListFeatureMonitors must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the FeatureGroup to list FeatureMonitors. Format: `projects/{project}/locations/{location}/featureGroups/{featureGroup}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/featureMonitors", + "response": { + "$ref": "GoogleCloudAiplatformV1beta1ListFeatureMonitorsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "featureMonitorJobs": { + "methods": { + "create": { + "description": "Creates a new feature monitor job.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/featureMonitors/{featureMonitorsId}/featureMonitorJobs", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.featureGroups.featureMonitors.featureMonitorJobs.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "featureMonitorJobId": { + "description": "Optional. Output only. System-generated ID for feature monitor job.", + "format": "int64", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of FeatureMonitor to create FeatureMonitorJob. Format: `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/featureMonitorJobs", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1FeatureMonitorJob" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1beta1FeatureMonitorJob" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Get a feature monitor job.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/featureMonitors/{featureMonitorsId}/featureMonitorJobs/{featureMonitorJobsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.featureGroups.featureMonitors.featureMonitorJobs.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the FeatureMonitorJob resource. Format: `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{feature_monitor_job}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+/featureMonitorJobs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleCloudAiplatformV1beta1FeatureMonitorJob" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "List feature monitor jobs.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/featureMonitors/{featureMonitorsId}/featureMonitorJobs", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.featureGroups.featureMonitors.featureMonitorJobs.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Lists the FeatureMonitorJobs that match the filter expression. The following fields are supported: * `create_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003c=`, and `\u003e=` comparisons. Values must be Examples: * `create_time \u003e \"2020-01-01\"` FeatureMonitorJobs created after 2020-01-01.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported Fields: * `create_time`", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The maximum number of FeatureMonitorJobs to return. The service may return fewer than this value. If unspecified, at most 100 FeatureMonitorJobs will be returned. The maximum value is 100; any value greater than 100 will be coerced to 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous FeatureRegistryService.ListFeatureMonitorJobs call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeatureRegistryService.ListFeatureMonitorJobs must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the FeatureMonitor to list FeatureMonitorJobs. Format: `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/featureMonitorJobs", + "response": { + "$ref": "GoogleCloudAiplatformV1beta1ListFeatureMonitorJobsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, "features": { "methods": { "batchCreate": { @@ -6288,6 +6590,24 @@ "name" ], "parameters": { + "featureStatsAndAnomalySpec.latestStatsCount": { + "description": "Optional. If set, returns the most recent count of stats. Valid value is [0, 100]. If stats_time_range is set, return most recent count of stats within the stats_time_range.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "featureStatsAndAnomalySpec.statsTimeRange.endTime": { + "description": "Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end.", + "format": "google-datetime", + "location": "query", + "type": "string" + }, + "featureStatsAndAnomalySpec.statsTimeRange.startTime": { + "description": "Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will have to be the same or after the start.", + "format": "google-datetime", + "location": "query", + "type": "string" + }, "name": { "description": "Required. The name of the Feature resource. Format for entity_type as parent: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` Format for feature_group as parent: `projects/{project}/locations/{location}/featureGroups/{feature_group}`", "location": "path", @@ -8485,6 +8805,24 @@ "name" ], "parameters": { + "featureStatsAndAnomalySpec.latestStatsCount": { + "description": "Optional. If set, returns the most recent count of stats. Valid value is [0, 100]. If stats_time_range is set, return most recent count of stats within the stats_time_range.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "featureStatsAndAnomalySpec.statsTimeRange.endTime": { + "description": "Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end.", + "format": "google-datetime", + "location": "query", + "type": "string" + }, + "featureStatsAndAnomalySpec.statsTimeRange.startTime": { + "description": "Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will have to be the same or after the start.", + "format": "google-datetime", + "location": "query", + "type": "string" + }, "name": { "description": "Required. The name of the Feature resource. Format for entity_type as parent: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` Format for feature_group as parent: `projects/{project}/locations/{location}/featureGroups/{feature_group}`", "location": "path", @@ -16305,6 +16643,35 @@ "https://www.googleapis.com/auth/cloud-platform.read-only" ] }, + "fetchPredictOperation": { + "description": "Fetch an asynchronous online prediction operation.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/publishers/{publishersId}/models/{modelsId}:fetchPredictOperation", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.publishers.models.fetchPredictOperation", + "parameterOrder": [ + "endpoint" + ], + "parameters": { + "endpoint": { + "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` or `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+endpoint}:fetchPredictOperation", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1FetchPredictOperationRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, "generateContent": { "description": "Generate content with multimodal inputs.", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/publishers/{publishersId}/models/{modelsId}:generateContent", @@ -16394,6 +16761,35 @@ "https://www.googleapis.com/auth/cloud-platform.read-only" ] }, + "predictLongRunning": { + "description": "", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/publishers/{publishersId}/models/{modelsId}:predictLongRunning", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.publishers.models.predictLongRunning", + "parameterOrder": [ + "endpoint" + ], + "parameters": { + "endpoint": { + "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` or `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+endpoint}:predictLongRunning", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1PredictLongRunningRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, "rawPredict": { "description": "Perform an online prediction with an arbitrary HTTP payload. The response includes the following HTTP headers: * `X-Vertex-AI-Endpoint-Id`: ID of the Endpoint that served this prediction. * `X-Vertex-AI-Deployed-Model-Id`: ID of the Endpoint's DeployedModel that served this prediction.", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/publishers/{publishersId}/models/{modelsId}:rawPredict", @@ -21286,7 +21682,7 @@ } } }, - "revision": "20241025", + "revision": "20241026", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "CloudAiLargeModelsVisionGenerateVideoResponse": { @@ -21582,6 +21978,15 @@ "description": "Video", "id": "CloudAiLargeModelsVisionVideo", "properties": { + "encodedVideo": { + "description": "Base 64 encoded video bytes.", + "format": "byte", + "type": "string" + }, + "encoding": { + "description": "Video encoding, for example \"video/mp4\".", + "type": "string" + }, "uri": { "description": "Path to another storage (typically Google Cloud Storage).", "type": "string" @@ -23339,7 +23744,7 @@ "Token generation reached a natural stopping point or a configured stop sequence.", "Token generation reached the configured maximum output tokens.", "Token generation stopped because the content potentially contains safety violations. NOTE: When streaming, content is empty if content filters blocks the output.", - "Token generation stopped because the content potentially contains copyright violations.", + "The token generation stopped because of potential recitation.", "All other reasons that stopped the token generation.", "Token generation stopped because the content contains forbidden terms.", "Token generation stopped for potentially containing prohibited content.", @@ -25488,6 +25893,10 @@ "$ref": "GoogleCloudAiplatformV1beta1ExplanationSpec", "description": "Explanation configuration for this DeployedModel. When deploying a Model using EndpointService.DeployModel, this value overrides the value of Model.explanation_spec. All fields of explanation_spec are optional in the request. If a field of explanation_spec is not populated, the value of the same field of Model.explanation_spec is inherited. If the corresponding Model.explanation_spec is not populated, all fields of the explanation_spec will be used for the explanation configuration." }, + "fasterDeploymentConfig": { + "$ref": "GoogleCloudAiplatformV1beta1FasterDeploymentConfig", + "description": "Configuration for faster model deployment." + }, "id": { "description": "Immutable. The ID of the DeployedModel. If not provided upon deployment, Vertex AI will generate a value for this ID. This value should be 1-10 characters, and valid characters are `/[0-9]/`.", "type": "string" @@ -27581,6 +27990,17 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1FasterDeploymentConfig": { + "description": "Configuration for faster model deployment.", + "id": "GoogleCloudAiplatformV1beta1FasterDeploymentConfig", + "properties": { + "fastTryoutEnabled": { + "description": "If true, enable fast tryout feature for this deployed model.", + "type": "boolean" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1Feature": { "description": "Feature Metadata information. For example, color is a feature that describes an apple.", "id": "GoogleCloudAiplatformV1beta1Feature", @@ -27603,6 +28023,14 @@ "description": "Used to perform a consistent read-modify-write updates. If not set, a blind \"overwrite\" update happens.", "type": "string" }, + "featureStatsAndAnomaly": { + "description": "Output only. Only applicable for Vertex AI Feature Store. The list of historical stats and anomalies.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1FeatureStatsAndAnomaly" + }, + "readOnly": true, + "type": "array" + }, "labels": { "additionalProperties": { "type": "string" @@ -27764,6 +28192,143 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1FeatureMonitor": { + "description": "Vertex AI Feature Monitor.", + "id": "GoogleCloudAiplatformV1beta1FeatureMonitor", + "properties": { + "createTime": { + "description": "Output only. Timestamp when this FeatureMonitor was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "Optional. Description of the FeatureMonitor.", + "type": "string" + }, + "etag": { + "description": "Optional. Used to perform consistent read-modify-write updates. If not set, a blind \"overwrite\" update happens.", + "type": "string" + }, + "featureSelectionConfig": { + "$ref": "GoogleCloudAiplatformV1beta1FeatureSelectionConfig", + "description": "Required. Feature selection config for the FeatureMonitor." + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. The labels with user-defined metadata to organize your FeatureMonitor. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information on and examples of labels. No more than 64 user labels can be associated with one FeatureMonitor(System labels are excluded).\" System reserved label keys are prefixed with \"aiplatform.googleapis.com/\" and are immutable.", + "type": "object" + }, + "name": { + "description": "Identifier. Name of the FeatureMonitor. Format: `projects/{project}/locations/{location}/featureGroups/{featureGroup}/featureMonitors/{featureMonitor}`", + "type": "string" + }, + "scheduleConfig": { + "$ref": "GoogleCloudAiplatformV1beta1ScheduleConfig", + "description": "Required. Schedule config for the FeatureMonitor." + }, + "updateTime": { + "description": "Output only. Timestamp when this FeatureMonitor was last updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1FeatureMonitorJob": { + "description": "Vertex AI Feature Monitor Job.", + "id": "GoogleCloudAiplatformV1beta1FeatureMonitorJob", + "properties": { + "createTime": { + "description": "Output only. Timestamp when this FeatureMonitorJob was created. Creation of a FeatureMonitorJob means that the job is pending / waiting for sufficient resources but may not have started running yet.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "Optional. Description of the FeatureMonitor.", + "type": "string" + }, + "driftBaseFeatureMonitorJobId": { + "description": "Output only. FeatureMonitorJob ID comparing to which the drift is calculated.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "driftBaseSnapshotTime": { + "description": "Output only. Data snapshot time comparing to which the drift is calculated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "featureSelectionConfig": { + "$ref": "GoogleCloudAiplatformV1beta1FeatureSelectionConfig", + "description": "Output only. Feature selection config used when creating FeatureMonitorJob.", + "readOnly": true + }, + "finalStatus": { + "$ref": "GoogleRpcStatus", + "description": "Output only. Final status of the FeatureMonitorJob.", + "readOnly": true + }, + "jobSummary": { + "$ref": "GoogleCloudAiplatformV1beta1FeatureMonitorJobJobSummary", + "description": "Output only. Summary from the FeatureMonitorJob.", + "readOnly": true + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. The labels with user-defined metadata to organize your FeatureMonitorJob. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information on and examples of labels. No more than 64 user labels can be associated with one FeatureMonitor(System labels are excluded).\" System reserved label keys are prefixed with \"aiplatform.googleapis.com/\" and are immutable.", + "type": "object" + }, + "name": { + "description": "Identifier. Name of the FeatureMonitorJob. Format: `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{feature_monitor_job}`.", + "type": "string" + }, + "triggerType": { + "description": "Output only. Trigger type of the Feature Monitor Job.", + "enum": [ + "FEATURE_MONITOR_JOB_TRIGGER_UNSPECIFIED", + "FEATURE_MONITOR_JOB_TRIGGER_PERIODIC", + "FEATURE_MONITOR_JOB_TRIGGER_ON_DEMAND" + ], + "enumDescriptions": [ + "Trigger type unspecified.", + "Triggered by periodic schedule.", + "Triggered on demand by CreateFeatureMonitorJob request." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1FeatureMonitorJobJobSummary": { + "description": "Summary from the FeatureMonitorJob.", + "id": "GoogleCloudAiplatformV1beta1FeatureMonitorJobJobSummary", + "properties": { + "featureStatsAndAnomalies": { + "description": "Output only. Features and their stats and anomalies", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1FeatureStatsAndAnomaly" + }, + "readOnly": true, + "type": "array" + }, + "totalSlotMs": { + "description": "Output only. BigQuery slot milliseconds consumed.", + "format": "int64", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1FeatureMonitoringStatsAnomaly": { "description": "A list of historical SnapshotAnalysis or ImportFeaturesAnalysis stats requested by user, sorted by FeatureStatsAnomaly.start_time descending.", "id": "GoogleCloudAiplatformV1beta1FeatureMonitoringStatsAnomaly", @@ -27971,6 +28536,36 @@ "properties": {}, "type": "object" }, + "GoogleCloudAiplatformV1beta1FeatureSelectionConfig": { + "description": "Feature selection configuration for the FeatureMonitor.", + "id": "GoogleCloudAiplatformV1beta1FeatureSelectionConfig", + "properties": { + "featureConfigs": { + "description": "Optional. A list of features to be monitored and each feature's drift threshold.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1FeatureSelectionConfigFeatureConfig" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1FeatureSelectionConfigFeatureConfig": { + "description": "Feature configuration.", + "id": "GoogleCloudAiplatformV1beta1FeatureSelectionConfigFeatureConfig", + "properties": { + "driftThreshold": { + "description": "Optional. Drift threshold. If calculated difference with baseline data larger than threshold, it will be considered as the feature has drift. If not present, the threshold will be default to 0.3.", + "format": "double", + "type": "number" + }, + "featureId": { + "description": "Required. The ID of the feature resource. Final component of the Feature's resource name.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1FeatureSelector": { "description": "Selector for Features of an EntityType.", "id": "GoogleCloudAiplatformV1beta1FeatureSelector", @@ -27982,6 +28577,49 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1FeatureStatsAndAnomaly": { + "description": "Stats and Anomaly generated by FeatureMonitorJobs. Anomaly only includes Drift.", + "id": "GoogleCloudAiplatformV1beta1FeatureStatsAndAnomaly", + "properties": { + "distributionDeviation": { + "description": "Deviation from the current stats to baseline stats. 1. For categorical feature, the distribution distance is calculated by L-inifinity norm. 2. For numerical feature, the distribution distance is calculated by Jensen–Shannon divergence.", + "format": "double", + "type": "number" + }, + "driftDetected": { + "description": "If set to true, indicates current stats is detected as and comparing with baseline stats.", + "type": "boolean" + }, + "driftDetectionThreshold": { + "description": "This is the threshold used when detecting drifts, which is set in FeatureMonitor.FeatureSelectionConfig.FeatureConfig.drift_threshold", + "format": "double", + "type": "number" + }, + "featureId": { + "description": "Feature Id.", + "type": "string" + }, + "featureMonitorId": { + "description": "The ID of the FeatureMonitor that this FeatureStatsAndAnomaly generated according to.", + "type": "string" + }, + "featureMonitorJobId": { + "description": "The ID of the FeatureMonitorJob that generated this FeatureStatsAndAnomaly.", + "format": "int64", + "type": "string" + }, + "featureStats": { + "description": "Feature stats. e.g. histogram buckets. In the format of tensorflow.metadata.v0.DatasetFeatureStatistics.", + "type": "any" + }, + "statsTime": { + "description": "The timestamp we take snapshot for feature values to generate stats.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1FeatureStatsAnomaly": { "description": "Stats and Anomaly generated at specific timestamp for specific Feature. The start_time and end_time are used to define the time range of the dataset that current stats belongs to, e.g. prediction traffic is bucketed into prediction datasets by time window. If the Dataset is not defined by time window, start_time = end_time. Timestamp of the stats and anomalies always refers to end_time. Raw stats and anomalies are stored in stats_uri or anomaly_uri in the tensorflow defined protos. Field data_stats contains almost identical information with the raw stats in Vertex AI defined proto, for UI to display.", "id": "GoogleCloudAiplatformV1beta1FeatureStatsAnomaly", @@ -28850,6 +29488,17 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1FetchPredictOperationRequest": { + "description": "Request message for PredictionService.FetchPredictOperation.", + "id": "GoogleCloudAiplatformV1beta1FetchPredictOperationRequest", + "properties": { + "operationName": { + "description": "Required. The server-assigned name for the operation.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1FileData": { "description": "URI based data.", "id": "GoogleCloudAiplatformV1beta1FileData", @@ -29233,7 +29882,7 @@ "type": "object" }, "GoogleCloudAiplatformV1beta1FunctionDeclaration": { - "description": "Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name and parameters. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.", + "description": "Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name, description, parameters and response type. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.", "id": "GoogleCloudAiplatformV1beta1FunctionDeclaration", "properties": { "description": { @@ -31228,6 +31877,42 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1ListFeatureMonitorJobsResponse": { + "description": "Response message for FeatureRegistryService.ListFeatureMonitorJobs.", + "id": "GoogleCloudAiplatformV1beta1ListFeatureMonitorJobsResponse", + "properties": { + "featureMonitorJobs": { + "description": "The FeatureMonitorJobs matching the request.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1FeatureMonitorJob" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token, which can be sent as ListFeatureMonitorJobsRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1ListFeatureMonitorsResponse": { + "description": "Response message for FeatureRegistryService.ListFeatureMonitors.", + "id": "GoogleCloudAiplatformV1beta1ListFeatureMonitorsResponse", + "properties": { + "featureMonitors": { + "description": "The FeatureMonitors matching the request.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1FeatureMonitor" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token, which can be sent as ListFeatureMonitorsRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1ListFeatureOnlineStoresResponse": { "description": "Response message for FeatureOnlineStoreAdminService.ListFeatureOnlineStores.", "id": "GoogleCloudAiplatformV1beta1ListFeatureOnlineStoresResponse", @@ -35214,6 +35899,10 @@ "readOnly": true, "type": "string" }, + "customEnvironmentSpec": { + "$ref": "GoogleCloudAiplatformV1beta1NotebookExecutionJobCustomEnvironmentSpec", + "description": "The custom compute configuration for an execution job." + }, "dataformRepositorySource": { "$ref": "GoogleCloudAiplatformV1beta1NotebookExecutionJobDataformRepositorySource", "description": "The Dataform Repository pointing to a single file notebook repository." @@ -35319,6 +36008,25 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1NotebookExecutionJobCustomEnvironmentSpec": { + "description": "Compute configuration to use for an execution job.", + "id": "GoogleCloudAiplatformV1beta1NotebookExecutionJobCustomEnvironmentSpec", + "properties": { + "machineSpec": { + "$ref": "GoogleCloudAiplatformV1beta1MachineSpec", + "description": "The specification of a single machine for the execution job." + }, + "networkSpec": { + "$ref": "GoogleCloudAiplatformV1beta1NetworkSpec", + "description": "The network configuration to use for the execution job." + }, + "persistentDiskSpec": { + "$ref": "GoogleCloudAiplatformV1beta1PersistentDiskSpec", + "description": "The specification of a persistent disk to attach for the execution job." + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1NotebookExecutionJobDataformRepositorySource": { "description": "The Dataform Repository containing the input notebook.", "id": "GoogleCloudAiplatformV1beta1NotebookExecutionJobDataformRepositorySource", @@ -36800,6 +37508,24 @@ "properties": {}, "type": "object" }, + "GoogleCloudAiplatformV1beta1PredictLongRunningRequest": { + "description": "Request message for PredictionService.PredictLongRunning.", + "id": "GoogleCloudAiplatformV1beta1PredictLongRunningRequest", + "properties": { + "instances": { + "description": "Required. The instances that are the input to the prediction call. A DeployedModel may have an upper limit on the number of instances it supports per request, and when it is exceeded the prediction call errors in case of AutoML Models, or, in case of customer created Models, the behaviour is as documented by that Model. The schema of any single instance may be specified via Endpoint's DeployedModels' Model's PredictSchemata's instance_schema_uri.", + "items": { + "type": "any" + }, + "type": "array" + }, + "parameters": { + "description": "Optional. The parameters that govern the prediction. The schema of the parameters may be specified via Endpoint's DeployedModels' Model's PredictSchemata's parameters_schema_uri.", + "type": "any" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1PredictLongRunningResponse": { "description": "Response message for [PredictionService.PredictLongRunning]", "id": "GoogleCloudAiplatformV1beta1PredictLongRunningResponse", @@ -37687,6 +38413,10 @@ "description": "Request message for ReasoningEngineExecutionService.Query.", "id": "GoogleCloudAiplatformV1beta1QueryReasoningEngineRequest", "properties": { + "classMethod": { + "description": "Optional. Class method to be used for the query. It is optional and defaults to \"query\" if unspecified.", + "type": "string" + }, "input": { "additionalProperties": { "description": "Properties of the object.", @@ -39862,6 +40592,17 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1ScheduleConfig": { + "description": "Schedule configuration for the FeatureMonitor.", + "id": "GoogleCloudAiplatformV1beta1ScheduleConfig", + "properties": { + "cron": { + "description": "Cron schedule (https://en.wikipedia.org/wiki/Cron) to launch scheduled runs. To explicitly set a timezone to the cron tab, apply a prefix in the cron tab: \"CRON_TZ=${IANA_TIME_ZONE}\" or \"TZ=${IANA_TIME_ZONE}\". The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database. For example, \"CRON_TZ=America/New_York 1 * * * *\", or \"TZ=America/New_York 1 * * * *\".", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1ScheduleRunResponse": { "description": "Status of a scheduled run.", "id": "GoogleCloudAiplatformV1beta1ScheduleRunResponse", @@ -41883,6 +42624,10 @@ "structuredPrompt": { "$ref": "GoogleCloudAiplatformV1beta1SchemaPromptSpecStructuredPrompt", "description": "The prompt variation that stores preambles in separate fields." + }, + "translationPrompt": { + "$ref": "GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationPrompt", + "description": "The prompt variation for Translation use case." } }, "type": "object" @@ -41981,6 +42726,35 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1SchemaPromptSpecReferenceSentencePair": { + "description": "A pair of sentences used as reference in source and target languages.", + "id": "GoogleCloudAiplatformV1beta1SchemaPromptSpecReferenceSentencePair", + "properties": { + "sourceSentence": { + "description": "Source sentence in the sentence pair.", + "type": "string" + }, + "targetSentence": { + "description": "Target sentence in the sentence pair.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1SchemaPromptSpecReferenceSentencePairList": { + "description": "A list of reference sentence pairs.", + "id": "GoogleCloudAiplatformV1beta1SchemaPromptSpecReferenceSentencePairList", + "properties": { + "referenceSentencePairs": { + "description": "Reference sentence pairs.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1SchemaPromptSpecReferenceSentencePair" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1SchemaPromptSpecStructuredPrompt": { "description": "Prompt variation that stores preambles in separate fields.", "id": "GoogleCloudAiplatformV1beta1SchemaPromptSpecStructuredPrompt", @@ -42032,6 +42806,108 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationExample": { + "description": "The translation example that contains reference sentences from various sources.", + "id": "GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationExample", + "properties": { + "referenceSentencePairLists": { + "description": "The reference sentences from inline text.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1SchemaPromptSpecReferenceSentencePairList" + }, + "type": "array" + }, + "referenceSentencesFileInputs": { + "description": "The reference sentences from file.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationSentenceFileInput" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationFileInputSource": { + "id": "GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationFileInputSource", + "properties": { + "content": { + "description": "The file's contents.", + "type": "string" + }, + "displayName": { + "description": "The file's display name.", + "type": "string" + }, + "mimeType": { + "description": "The file's mime type.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationGcsInputSource": { + "id": "GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationGcsInputSource", + "properties": { + "inputUri": { + "description": "Source data URI. For example, `gs://my_bucket/my_object`.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationOption": { + "description": "Optional settings for translation prompt.", + "id": "GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationOption", + "properties": { + "numberOfShots": { + "description": "How many shots to use.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationPrompt": { + "description": "Prompt variation for Translation use case.", + "id": "GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationPrompt", + "properties": { + "example": { + "$ref": "GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationExample", + "description": "The translation example." + }, + "option": { + "$ref": "GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationOption", + "description": "The translation option." + }, + "promptMessage": { + "$ref": "GoogleCloudAiplatformV1beta1SchemaPromptSpecPromptMessage", + "description": "The prompt message." + }, + "sourceLanguageCode": { + "description": "The source language code.", + "type": "string" + }, + "targetLanguageCode": { + "description": "The target language code.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationSentenceFileInput": { + "id": "GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationSentenceFileInput", + "properties": { + "fileInputSource": { + "$ref": "GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationFileInputSource", + "description": "Inlined file source." + }, + "gcsInputSource": { + "$ref": "GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationGcsInputSource", + "description": "Cloud Storage file source." + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1SchemaTablesDatasetMetadata": { "description": "The metadata of Datasets that contain tables data.", "id": "GoogleCloudAiplatformV1beta1SchemaTablesDatasetMetadata", @@ -47169,7 +48045,7 @@ "id": "GoogleCloudAiplatformV1beta1TuningJob", "properties": { "baseModel": { - "description": "The base model that is being tuned, e.g., \"gemini-1.0-pro-002\".", + "description": "The base model that is being tuned, e.g., \"gemini-1.0-pro-002\". .", "type": "string" }, "createTime": { diff --git a/aiplatform/v1beta1/aiplatform-gen.go b/aiplatform/v1beta1/aiplatform-gen.go index aaaadb3da27..dceebc8be91 100644 --- a/aiplatform/v1beta1/aiplatform-gen.go +++ b/aiplatform/v1beta1/aiplatform-gen.go @@ -754,6 +754,7 @@ type ProjectsLocationsExtensionsOperationsService struct { func NewProjectsLocationsFeatureGroupsService(s *Service) *ProjectsLocationsFeatureGroupsService { rs := &ProjectsLocationsFeatureGroupsService{s: s} + rs.FeatureMonitors = NewProjectsLocationsFeatureGroupsFeatureMonitorsService(s) rs.Features = NewProjectsLocationsFeatureGroupsFeaturesService(s) rs.Operations = NewProjectsLocationsFeatureGroupsOperationsService(s) return rs @@ -762,11 +763,34 @@ func NewProjectsLocationsFeatureGroupsService(s *Service) *ProjectsLocationsFeat type ProjectsLocationsFeatureGroupsService struct { s *Service + FeatureMonitors *ProjectsLocationsFeatureGroupsFeatureMonitorsService + Features *ProjectsLocationsFeatureGroupsFeaturesService Operations *ProjectsLocationsFeatureGroupsOperationsService } +func NewProjectsLocationsFeatureGroupsFeatureMonitorsService(s *Service) *ProjectsLocationsFeatureGroupsFeatureMonitorsService { + rs := &ProjectsLocationsFeatureGroupsFeatureMonitorsService{s: s} + rs.FeatureMonitorJobs = NewProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsService(s) + return rs +} + +type ProjectsLocationsFeatureGroupsFeatureMonitorsService struct { + s *Service + + FeatureMonitorJobs *ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsService +} + +func NewProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsService(s *Service) *ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsService { + rs := &ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsService{s: s} + return rs +} + +type ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsService struct { + s *Service +} + func NewProjectsLocationsFeatureGroupsFeaturesService(s *Service) *ProjectsLocationsFeatureGroupsFeaturesService { rs := &ProjectsLocationsFeatureGroupsFeaturesService{s: s} rs.Operations = NewProjectsLocationsFeatureGroupsFeaturesOperationsService(s) @@ -2096,19 +2120,23 @@ func (s CloudAiLargeModelsVisionSemanticFilterResponse) MarshalJSON() ([]byte, e // CloudAiLargeModelsVisionVideo: Video type CloudAiLargeModelsVisionVideo struct { + // EncodedVideo: Base 64 encoded video bytes. + EncodedVideo string `json:"encodedVideo,omitempty"` + // Encoding: Video encoding, for example "video/mp4". + Encoding string `json:"encoding,omitempty"` // Uri: Path to another storage (typically Google Cloud Storage). Uri string `json:"uri,omitempty"` // Video: Raw bytes. Video string `json:"video,omitempty"` - // ForceSendFields is a list of field names (e.g. "Uri") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See + // ForceSendFields is a list of field names (e.g. "EncodedVideo") 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. "Uri") 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. "EncodedVideo") 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:"-"` } @@ -4655,8 +4683,8 @@ type GoogleCloudAiplatformV1beta1Candidate struct { // "SAFETY" - Token generation stopped because the content potentially // contains safety violations. NOTE: When streaming, content is empty if // content filters blocks the output. - // "RECITATION" - Token generation stopped because the content potentially - // contains copyright violations. + // "RECITATION" - The token generation stopped because of potential + // recitation. // "OTHER" - All other reasons that stopped the token generation. // "BLOCKLIST" - Token generation stopped because the content contains // forbidden terms. @@ -7787,6 +7815,8 @@ type GoogleCloudAiplatformV1beta1DeployedModel struct { // corresponding Model.explanation_spec is not populated, all fields of the // explanation_spec will be used for the explanation configuration. ExplanationSpec *GoogleCloudAiplatformV1beta1ExplanationSpec `json:"explanationSpec,omitempty"` + // FasterDeploymentConfig: Configuration for faster model deployment. + FasterDeploymentConfig *GoogleCloudAiplatformV1beta1FasterDeploymentConfig `json:"fasterDeploymentConfig,omitempty"` // Id: Immutable. The ID of the DeployedModel. If not provided upon deployment, // Vertex AI will generate a value for this ID. This value should be 1-10 // characters, and valid characters are `/[0-9]/`. @@ -10707,6 +10737,30 @@ func (s *GoogleCloudAiplatformV1beta1Fact) UnmarshalJSON(data []byte) error { return nil } +// GoogleCloudAiplatformV1beta1FasterDeploymentConfig: Configuration for faster +// model deployment. +type GoogleCloudAiplatformV1beta1FasterDeploymentConfig struct { + // FastTryoutEnabled: If true, enable fast tryout feature for this deployed + // model. + FastTryoutEnabled bool `json:"fastTryoutEnabled,omitempty"` + // ForceSendFields is a list of field names (e.g. "FastTryoutEnabled") 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. "FastTryoutEnabled") 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 GoogleCloudAiplatformV1beta1FasterDeploymentConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1FasterDeploymentConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1Feature: Feature Metadata information. For // example, color is a feature that describes an apple. type GoogleCloudAiplatformV1beta1Feature struct { @@ -10724,6 +10778,9 @@ type GoogleCloudAiplatformV1beta1Feature struct { // Etag: Used to perform a consistent read-modify-write updates. If not set, a // blind "overwrite" update happens. Etag string `json:"etag,omitempty"` + // FeatureStatsAndAnomaly: Output only. Only applicable for Vertex AI Feature + // Store. The list of historical stats and anomalies. + FeatureStatsAndAnomaly []*GoogleCloudAiplatformV1beta1FeatureStatsAndAnomaly `json:"featureStatsAndAnomaly,omitempty"` // Labels: Optional. The labels with user-defined metadata to organize your // Features. Label keys and values can be no longer than 64 characters (Unicode // codepoints), can only contain lowercase letters, numeric characters, @@ -10923,6 +10980,147 @@ func (s GoogleCloudAiplatformV1beta1FeatureGroupBigQueryTimeSeries) MarshalJSON( return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1FeatureMonitor: Vertex AI Feature Monitor. +type GoogleCloudAiplatformV1beta1FeatureMonitor struct { + // CreateTime: Output only. Timestamp when this FeatureMonitor was created. + CreateTime string `json:"createTime,omitempty"` + // Description: Optional. Description of the FeatureMonitor. + Description string `json:"description,omitempty"` + // Etag: Optional. Used to perform consistent read-modify-write updates. If not + // set, a blind "overwrite" update happens. + Etag string `json:"etag,omitempty"` + // FeatureSelectionConfig: Required. Feature selection config for the + // FeatureMonitor. + FeatureSelectionConfig *GoogleCloudAiplatformV1beta1FeatureSelectionConfig `json:"featureSelectionConfig,omitempty"` + // Labels: Optional. The labels with user-defined metadata to organize your + // FeatureMonitor. Label keys and values can be no longer than 64 characters + // (Unicode codepoints), can only contain lowercase letters, numeric + // characters, underscores and dashes. International characters are allowed. + // See https://goo.gl/xmQnxf for more information on and examples of labels. No + // more than 64 user labels can be associated with one FeatureMonitor(System + // labels are excluded)." System reserved label keys are prefixed with + // "aiplatform.googleapis.com/" and are immutable. + Labels map[string]string `json:"labels,omitempty"` + // Name: Identifier. Name of the FeatureMonitor. Format: + // `projects/{project}/locations/{location}/featureGroups/{featureGroup}/feature + // Monitors/{featureMonitor}` + Name string `json:"name,omitempty"` + // ScheduleConfig: Required. Schedule config for the FeatureMonitor. + ScheduleConfig *GoogleCloudAiplatformV1beta1ScheduleConfig `json:"scheduleConfig,omitempty"` + // UpdateTime: Output only. Timestamp when this FeatureMonitor was last + // updated. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "CreateTime") 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. "CreateTime") 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 GoogleCloudAiplatformV1beta1FeatureMonitor) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1FeatureMonitor + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1FeatureMonitorJob: Vertex AI Feature Monitor +// Job. +type GoogleCloudAiplatformV1beta1FeatureMonitorJob struct { + // CreateTime: Output only. Timestamp when this FeatureMonitorJob was created. + // Creation of a FeatureMonitorJob means that the job is pending / waiting for + // sufficient resources but may not have started running yet. + CreateTime string `json:"createTime,omitempty"` + // Description: Optional. Description of the FeatureMonitor. + Description string `json:"description,omitempty"` + // DriftBaseFeatureMonitorJobId: Output only. FeatureMonitorJob ID comparing to + // which the drift is calculated. + DriftBaseFeatureMonitorJobId int64 `json:"driftBaseFeatureMonitorJobId,omitempty,string"` + // DriftBaseSnapshotTime: Output only. Data snapshot time comparing to which + // the drift is calculated. + DriftBaseSnapshotTime string `json:"driftBaseSnapshotTime,omitempty"` + // FeatureSelectionConfig: Output only. Feature selection config used when + // creating FeatureMonitorJob. + FeatureSelectionConfig *GoogleCloudAiplatformV1beta1FeatureSelectionConfig `json:"featureSelectionConfig,omitempty"` + // FinalStatus: Output only. Final status of the FeatureMonitorJob. + FinalStatus *GoogleRpcStatus `json:"finalStatus,omitempty"` + // JobSummary: Output only. Summary from the FeatureMonitorJob. + JobSummary *GoogleCloudAiplatformV1beta1FeatureMonitorJobJobSummary `json:"jobSummary,omitempty"` + // Labels: Optional. The labels with user-defined metadata to organize your + // FeatureMonitorJob. Label keys and values can be no longer than 64 characters + // (Unicode codepoints), can only contain lowercase letters, numeric + // characters, underscores and dashes. International characters are allowed. + // See https://goo.gl/xmQnxf for more information on and examples of labels. No + // more than 64 user labels can be associated with one FeatureMonitor(System + // labels are excluded)." System reserved label keys are prefixed with + // "aiplatform.googleapis.com/" and are immutable. + Labels map[string]string `json:"labels,omitempty"` + // Name: Identifier. Name of the FeatureMonitorJob. Format: + // `projects/{project}/locations/{location}/featureGroups/{feature_group}/featur + // eMonitors/{feature_monitor}/featureMonitorJobs/{feature_monitor_job}`. + Name string `json:"name,omitempty"` + // TriggerType: Output only. Trigger type of the Feature Monitor Job. + // + // Possible values: + // "FEATURE_MONITOR_JOB_TRIGGER_UNSPECIFIED" - Trigger type unspecified. + // "FEATURE_MONITOR_JOB_TRIGGER_PERIODIC" - Triggered by periodic schedule. + // "FEATURE_MONITOR_JOB_TRIGGER_ON_DEMAND" - Triggered on demand by + // CreateFeatureMonitorJob request. + TriggerType string `json:"triggerType,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "CreateTime") 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. "CreateTime") 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 GoogleCloudAiplatformV1beta1FeatureMonitorJob) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1FeatureMonitorJob + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1FeatureMonitorJobJobSummary: Summary from the +// FeatureMonitorJob. +type GoogleCloudAiplatformV1beta1FeatureMonitorJobJobSummary struct { + // FeatureStatsAndAnomalies: Output only. Features and their stats and + // anomalies + FeatureStatsAndAnomalies []*GoogleCloudAiplatformV1beta1FeatureStatsAndAnomaly `json:"featureStatsAndAnomalies,omitempty"` + // TotalSlotMs: Output only. BigQuery slot milliseconds consumed. + TotalSlotMs int64 `json:"totalSlotMs,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "FeatureStatsAndAnomalies") + // 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. "FeatureStatsAndAnomalies") 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 GoogleCloudAiplatformV1beta1FeatureMonitorJobJobSummary) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1FeatureMonitorJobJobSummary + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1FeatureMonitoringStatsAnomaly: A list of // historical SnapshotAnalysis or ImportFeaturesAnalysis stats requested by // user, sorted by FeatureStatsAnomaly.start_time descending. @@ -11231,6 +11429,72 @@ func (s GoogleCloudAiplatformV1beta1FeatureOnlineStoreEmbeddingManagement) Marsh type GoogleCloudAiplatformV1beta1FeatureOnlineStoreOptimized struct { } +// GoogleCloudAiplatformV1beta1FeatureSelectionConfig: Feature selection +// configuration for the FeatureMonitor. +type GoogleCloudAiplatformV1beta1FeatureSelectionConfig struct { + // FeatureConfigs: Optional. A list of features to be monitored and each + // feature's drift threshold. + FeatureConfigs []*GoogleCloudAiplatformV1beta1FeatureSelectionConfigFeatureConfig `json:"featureConfigs,omitempty"` + // ForceSendFields is a list of field names (e.g. "FeatureConfigs") 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. "FeatureConfigs") 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 GoogleCloudAiplatformV1beta1FeatureSelectionConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1FeatureSelectionConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1FeatureSelectionConfigFeatureConfig: Feature +// configuration. +type GoogleCloudAiplatformV1beta1FeatureSelectionConfigFeatureConfig struct { + // DriftThreshold: Optional. Drift threshold. If calculated difference with + // baseline data larger than threshold, it will be considered as the feature + // has drift. If not present, the threshold will be default to 0.3. + DriftThreshold float64 `json:"driftThreshold,omitempty"` + // FeatureId: Required. The ID of the feature resource. Final component of the + // Feature's resource name. + FeatureId string `json:"featureId,omitempty"` + // ForceSendFields is a list of field names (e.g. "DriftThreshold") 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. "DriftThreshold") 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 GoogleCloudAiplatformV1beta1FeatureSelectionConfigFeatureConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1FeatureSelectionConfigFeatureConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudAiplatformV1beta1FeatureSelectionConfigFeatureConfig) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudAiplatformV1beta1FeatureSelectionConfigFeatureConfig + var s1 struct { + DriftThreshold gensupport.JSONFloat64 `json:"driftThreshold"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.DriftThreshold = float64(s1.DriftThreshold) + return nil +} + // GoogleCloudAiplatformV1beta1FeatureSelector: Selector for Features of an // EntityType. type GoogleCloudAiplatformV1beta1FeatureSelector struct { @@ -11254,6 +11518,69 @@ func (s GoogleCloudAiplatformV1beta1FeatureSelector) MarshalJSON() ([]byte, erro return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1FeatureStatsAndAnomaly: Stats and Anomaly +// generated by FeatureMonitorJobs. Anomaly only includes Drift. +type GoogleCloudAiplatformV1beta1FeatureStatsAndAnomaly struct { + // DistributionDeviation: Deviation from the current stats to baseline stats. + // 1. For categorical feature, the distribution distance is calculated by + // L-inifinity norm. 2. For numerical feature, the distribution distance is + // calculated by Jensen–Shannon divergence. + DistributionDeviation float64 `json:"distributionDeviation,omitempty"` + // DriftDetected: If set to true, indicates current stats is detected as and + // comparing with baseline stats. + DriftDetected bool `json:"driftDetected,omitempty"` + // DriftDetectionThreshold: This is the threshold used when detecting drifts, + // which is set in + // FeatureMonitor.FeatureSelectionConfig.FeatureConfig.drift_threshold + DriftDetectionThreshold float64 `json:"driftDetectionThreshold,omitempty"` + // FeatureId: Feature Id. + FeatureId string `json:"featureId,omitempty"` + // FeatureMonitorId: The ID of the FeatureMonitor that this + // FeatureStatsAndAnomaly generated according to. + FeatureMonitorId string `json:"featureMonitorId,omitempty"` + // FeatureMonitorJobId: The ID of the FeatureMonitorJob that generated this + // FeatureStatsAndAnomaly. + FeatureMonitorJobId int64 `json:"featureMonitorJobId,omitempty,string"` + // FeatureStats: Feature stats. e.g. histogram buckets. In the format of + // tensorflow.metadata.v0.DatasetFeatureStatistics. + FeatureStats interface{} `json:"featureStats,omitempty"` + // StatsTime: The timestamp we take snapshot for feature values to generate + // stats. + StatsTime string `json:"statsTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "DistributionDeviation") 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. "DistributionDeviation") 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 GoogleCloudAiplatformV1beta1FeatureStatsAndAnomaly) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1FeatureStatsAndAnomaly + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudAiplatformV1beta1FeatureStatsAndAnomaly) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudAiplatformV1beta1FeatureStatsAndAnomaly + var s1 struct { + DistributionDeviation gensupport.JSONFloat64 `json:"distributionDeviation"` + DriftDetectionThreshold gensupport.JSONFloat64 `json:"driftDetectionThreshold"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.DistributionDeviation = float64(s1.DistributionDeviation) + s.DriftDetectionThreshold = float64(s1.DriftDetectionThreshold) + return nil +} + // GoogleCloudAiplatformV1beta1FeatureStatsAnomaly: Stats and Anomaly generated // at specific timestamp for specific Feature. The start_time and end_time are // used to define the time range of the dataset that current stats belongs to, @@ -12488,6 +12815,29 @@ func (s GoogleCloudAiplatformV1beta1FetchFeatureValuesResponseFeatureNameValuePa return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1FetchPredictOperationRequest: Request message +// for PredictionService.FetchPredictOperation. +type GoogleCloudAiplatformV1beta1FetchPredictOperationRequest struct { + // OperationName: Required. The server-assigned name for the operation. + OperationName string `json:"operationName,omitempty"` + // ForceSendFields is a list of field names (e.g. "OperationName") 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. "OperationName") 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 GoogleCloudAiplatformV1beta1FetchPredictOperationRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1FetchPredictOperationRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1FileData: URI based data. type GoogleCloudAiplatformV1beta1FileData struct { // FileUri: Required. URI. @@ -13169,9 +13519,9 @@ func (s GoogleCloudAiplatformV1beta1FunctionCallingConfig) MarshalJSON() ([]byte // GoogleCloudAiplatformV1beta1FunctionDeclaration: Structured representation // of a function declaration as defined by the OpenAPI 3.0 specification // (https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the -// function name and parameters. This FunctionDeclaration is a representation -// of a block of code that can be used as a `Tool` by the model and executed by -// the client. +// function name, description, parameters and response type. This +// FunctionDeclaration is a representation of a block of code that can be used +// as a `Tool` by the model and executed by the client. type GoogleCloudAiplatformV1beta1FunctionDeclaration struct { // Description: Optional. Description and purpose of the function. Model uses // it to decide how and whether to call the function. @@ -15851,6 +16201,66 @@ func (s GoogleCloudAiplatformV1beta1ListFeatureGroupsResponse) MarshalJSON() ([] return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1ListFeatureMonitorJobsResponse: Response message +// for FeatureRegistryService.ListFeatureMonitorJobs. +type GoogleCloudAiplatformV1beta1ListFeatureMonitorJobsResponse struct { + // FeatureMonitorJobs: The FeatureMonitorJobs matching the request. + FeatureMonitorJobs []*GoogleCloudAiplatformV1beta1FeatureMonitorJob `json:"featureMonitorJobs,omitempty"` + // NextPageToken: A token, which can be sent as + // ListFeatureMonitorJobsRequest.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. "FeatureMonitorJobs") 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. "FeatureMonitorJobs") 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 GoogleCloudAiplatformV1beta1ListFeatureMonitorJobsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1ListFeatureMonitorJobsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1ListFeatureMonitorsResponse: Response message +// for FeatureRegistryService.ListFeatureMonitors. +type GoogleCloudAiplatformV1beta1ListFeatureMonitorsResponse struct { + // FeatureMonitors: The FeatureMonitors matching the request. + FeatureMonitors []*GoogleCloudAiplatformV1beta1FeatureMonitor `json:"featureMonitors,omitempty"` + // NextPageToken: A token, which can be sent as + // ListFeatureMonitorsRequest.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. "FeatureMonitors") 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. "FeatureMonitors") 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 GoogleCloudAiplatformV1beta1ListFeatureMonitorsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1ListFeatureMonitorsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1ListFeatureOnlineStoresResponse: Response // message for FeatureOnlineStoreAdminService.ListFeatureOnlineStores. type GoogleCloudAiplatformV1beta1ListFeatureOnlineStoresResponse struct { @@ -21589,6 +21999,9 @@ type GoogleCloudAiplatformV1beta1NotebookExecutionJob struct { // CreateTime: Output only. Timestamp when this NotebookExecutionJob was // created. CreateTime string `json:"createTime,omitempty"` + // CustomEnvironmentSpec: The custom compute configuration for an execution + // job. + CustomEnvironmentSpec *GoogleCloudAiplatformV1beta1NotebookExecutionJobCustomEnvironmentSpec `json:"customEnvironmentSpec,omitempty"` // DataformRepositorySource: The Dataform Repository pointing to a single file // notebook repository. DataformRepositorySource *GoogleCloudAiplatformV1beta1NotebookExecutionJobDataformRepositorySource `json:"dataformRepositorySource,omitempty"` @@ -21683,6 +22096,34 @@ func (s GoogleCloudAiplatformV1beta1NotebookExecutionJob) MarshalJSON() ([]byte, return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1NotebookExecutionJobCustomEnvironmentSpec: +// Compute configuration to use for an execution job. +type GoogleCloudAiplatformV1beta1NotebookExecutionJobCustomEnvironmentSpec struct { + // MachineSpec: The specification of a single machine for the execution job. + MachineSpec *GoogleCloudAiplatformV1beta1MachineSpec `json:"machineSpec,omitempty"` + // NetworkSpec: The network configuration to use for the execution job. + NetworkSpec *GoogleCloudAiplatformV1beta1NetworkSpec `json:"networkSpec,omitempty"` + // PersistentDiskSpec: The specification of a persistent disk to attach for the + // execution job. + PersistentDiskSpec *GoogleCloudAiplatformV1beta1PersistentDiskSpec `json:"persistentDiskSpec,omitempty"` + // ForceSendFields is a list of field names (e.g. "MachineSpec") 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. "MachineSpec") 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 GoogleCloudAiplatformV1beta1NotebookExecutionJobCustomEnvironmentSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1NotebookExecutionJobCustomEnvironmentSpec + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1NotebookExecutionJobDataformRepositorySource: // The Dataform Repository containing the input notebook. type GoogleCloudAiplatformV1beta1NotebookExecutionJobDataformRepositorySource struct { @@ -23453,6 +23894,39 @@ func (s GoogleCloudAiplatformV1beta1PredefinedSplit) MarshalJSON() ([]byte, erro type GoogleCloudAiplatformV1beta1PredictLongRunningMetadata struct { } +// GoogleCloudAiplatformV1beta1PredictLongRunningRequest: Request message for +// PredictionService.PredictLongRunning. +type GoogleCloudAiplatformV1beta1PredictLongRunningRequest struct { + // Instances: Required. The instances that are the input to the prediction + // call. A DeployedModel may have an upper limit on the number of instances it + // supports per request, and when it is exceeded the prediction call errors in + // case of AutoML Models, or, in case of customer created Models, the behaviour + // is as documented by that Model. The schema of any single instance may be + // specified via Endpoint's DeployedModels' Model's PredictSchemata's + // instance_schema_uri. + Instances []interface{} `json:"instances,omitempty"` + // Parameters: Optional. The parameters that govern the prediction. The schema + // of the parameters may be specified via Endpoint's DeployedModels' Model's + // PredictSchemata's parameters_schema_uri. + Parameters interface{} `json:"parameters,omitempty"` + // ForceSendFields is a list of field names (e.g. "Instances") 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. "Instances") 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 GoogleCloudAiplatformV1beta1PredictLongRunningRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1PredictLongRunningRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1PredictLongRunningResponse: Response message for // [PredictionService.PredictLongRunning] type GoogleCloudAiplatformV1beta1PredictLongRunningResponse struct { @@ -24704,16 +25178,19 @@ func (s GoogleCloudAiplatformV1beta1QueryExtensionResponse) MarshalJSON() ([]byt // GoogleCloudAiplatformV1beta1QueryReasoningEngineRequest: Request message for // ReasoningEngineExecutionService.Query. type GoogleCloudAiplatformV1beta1QueryReasoningEngineRequest struct { + // ClassMethod: Optional. Class method to be used for the query. It is optional + // and defaults to "query" if unspecified. + ClassMethod string `json:"classMethod,omitempty"` // Input: Optional. Input content provided by users in JSON object format. // Examples include text query, function calling parameters, media bytes, etc. Input googleapi.RawMessage `json:"input,omitempty"` - // ForceSendFields is a list of field names (e.g. "Input") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See + // ForceSendFields is a list of field names (e.g. "ClassMethod") 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. "Input") to include in API + // NullFields is a list of field names (e.g. "ClassMethod") 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. @@ -27959,6 +28436,34 @@ func (s GoogleCloudAiplatformV1beta1Schedule) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1ScheduleConfig: Schedule configuration for the +// FeatureMonitor. +type GoogleCloudAiplatformV1beta1ScheduleConfig struct { + // Cron: Cron schedule (https://en.wikipedia.org/wiki/Cron) to launch scheduled + // runs. To explicitly set a timezone to the cron tab, apply a prefix in the + // cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}". The + // ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database. + // For example, "CRON_TZ=America/New_York 1 * * * *", or "TZ=America/New_York 1 + // * * * *". + Cron string `json:"cron,omitempty"` + // ForceSendFields is a list of field names (e.g. "Cron") 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. "Cron") 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 GoogleCloudAiplatformV1beta1ScheduleConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1ScheduleConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1ScheduleRunResponse: Status of a scheduled run. type GoogleCloudAiplatformV1beta1ScheduleRunResponse struct { // RunResponse: The response of the scheduled run. @@ -31133,6 +31638,8 @@ type GoogleCloudAiplatformV1beta1SchemaPromptApiSchema struct { // StructuredPrompt: The prompt variation that stores preambles in separate // fields. StructuredPrompt *GoogleCloudAiplatformV1beta1SchemaPromptSpecStructuredPrompt `json:"structuredPrompt,omitempty"` + // TranslationPrompt: The prompt variation for Translation use case. + TranslationPrompt *GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationPrompt `json:"translationPrompt,omitempty"` // ForceSendFields is a list of field names (e.g. "ApiSchemaVersion") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -31288,6 +31795,54 @@ func (s GoogleCloudAiplatformV1beta1SchemaPromptSpecPromptMessage) MarshalJSON() return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1SchemaPromptSpecReferenceSentencePair: A pair of +// sentences used as reference in source and target languages. +type GoogleCloudAiplatformV1beta1SchemaPromptSpecReferenceSentencePair struct { + // SourceSentence: Source sentence in the sentence pair. + SourceSentence string `json:"sourceSentence,omitempty"` + // TargetSentence: Target sentence in the sentence pair. + TargetSentence string `json:"targetSentence,omitempty"` + // ForceSendFields is a list of field names (e.g. "SourceSentence") 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. "SourceSentence") 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 GoogleCloudAiplatformV1beta1SchemaPromptSpecReferenceSentencePair) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1SchemaPromptSpecReferenceSentencePair + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1SchemaPromptSpecReferenceSentencePairList: A +// list of reference sentence pairs. +type GoogleCloudAiplatformV1beta1SchemaPromptSpecReferenceSentencePairList struct { + // ReferenceSentencePairs: Reference sentence pairs. + ReferenceSentencePairs []*GoogleCloudAiplatformV1beta1SchemaPromptSpecReferenceSentencePair `json:"referenceSentencePairs,omitempty"` + // ForceSendFields is a list of field names (e.g. "ReferenceSentencePairs") 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. "ReferenceSentencePairs") 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 GoogleCloudAiplatformV1beta1SchemaPromptSpecReferenceSentencePairList) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1SchemaPromptSpecReferenceSentencePairList + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1SchemaPromptSpecStructuredPrompt: Prompt // variation that stores preambles in separate fields. type GoogleCloudAiplatformV1beta1SchemaPromptSpecStructuredPrompt struct { @@ -31329,6 +31884,154 @@ func (s GoogleCloudAiplatformV1beta1SchemaPromptSpecStructuredPrompt) MarshalJSO return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationExample: The +// translation example that contains reference sentences from various sources. +type GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationExample struct { + // ReferenceSentencePairLists: The reference sentences from inline text. + ReferenceSentencePairLists []*GoogleCloudAiplatformV1beta1SchemaPromptSpecReferenceSentencePairList `json:"referenceSentencePairLists,omitempty"` + // ReferenceSentencesFileInputs: The reference sentences from file. + ReferenceSentencesFileInputs []*GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationSentenceFileInput `json:"referenceSentencesFileInputs,omitempty"` + // ForceSendFields is a list of field names (e.g. "ReferenceSentencePairLists") + // 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. "ReferenceSentencePairLists") 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 GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationExample) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationExample + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +type GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationFileInputSource struct { + // Content: The file's contents. + Content string `json:"content,omitempty"` + // DisplayName: The file's display name. + DisplayName string `json:"displayName,omitempty"` + // MimeType: The file's mime type. + MimeType string `json:"mimeType,omitempty"` + // ForceSendFields is a list of field names (e.g. "Content") 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. "Content") 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 GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationFileInputSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationFileInputSource + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +type GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationGcsInputSource struct { + // InputUri: Source data URI. For example, `gs://my_bucket/my_object`. + InputUri string `json:"inputUri,omitempty"` + // ForceSendFields is a list of field names (e.g. "InputUri") 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. "InputUri") 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 GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationGcsInputSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationGcsInputSource + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationOption: Optional +// settings for translation prompt. +type GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationOption struct { + // NumberOfShots: How many shots to use. + NumberOfShots int64 `json:"numberOfShots,omitempty"` + // ForceSendFields is a list of field names (e.g. "NumberOfShots") 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. "NumberOfShots") 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 GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationOption) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationOption + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationPrompt: Prompt +// variation for Translation use case. +type GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationPrompt struct { + // Example: The translation example. + Example *GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationExample `json:"example,omitempty"` + // Option: The translation option. + Option *GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationOption `json:"option,omitempty"` + // PromptMessage: The prompt message. + PromptMessage *GoogleCloudAiplatformV1beta1SchemaPromptSpecPromptMessage `json:"promptMessage,omitempty"` + // SourceLanguageCode: The source language code. + SourceLanguageCode string `json:"sourceLanguageCode,omitempty"` + // TargetLanguageCode: The target language code. + TargetLanguageCode string `json:"targetLanguageCode,omitempty"` + // ForceSendFields is a list of field names (e.g. "Example") 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. "Example") 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 GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationPrompt) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationPrompt + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +type GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationSentenceFileInput struct { + // FileInputSource: Inlined file source. + FileInputSource *GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationFileInputSource `json:"fileInputSource,omitempty"` + // GcsInputSource: Cloud Storage file source. + GcsInputSource *GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationGcsInputSource `json:"gcsInputSource,omitempty"` + // ForceSendFields is a list of field names (e.g. "FileInputSource") 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. "FileInputSource") 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 GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationSentenceFileInput) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationSentenceFileInput + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1SchemaTablesDatasetMetadata: The metadata of // Datasets that contain tables data. type GoogleCloudAiplatformV1beta1SchemaTablesDatasetMetadata struct { @@ -39055,7 +39758,7 @@ func (s GoogleCloudAiplatformV1beta1TuningDataStats) MarshalJSON() ([]byte, erro // GoogleCloudAiplatformV1beta1TuningJob: Represents a TuningJob that runs with // Google owned models. type GoogleCloudAiplatformV1beta1TuningJob struct { - // BaseModel: The base model that is being tuned, e.g., "gemini-1.0-pro-002". + // BaseModel: The base model that is being tuned, e.g., "gemini-1.0-pro-002". . BaseModel string `json:"baseModel,omitempty"` // CreateTime: Output only. Time when the TuningJob was created. CreateTime string `json:"createTime,omitempty"` @@ -56560,6 +57263,111 @@ func (c *ProjectsLocationsEndpointsExplainCall) Do(opts ...googleapi.CallOption) return ret, nil } +type ProjectsLocationsEndpointsFetchPredictOperationCall struct { + s *Service + endpoint string + googlecloudaiplatformv1beta1fetchpredictoperationrequest *GoogleCloudAiplatformV1beta1FetchPredictOperationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// FetchPredictOperation: Fetch an asynchronous online prediction operation. +// +// - endpoint: The name of the Endpoint requested to serve the prediction. +// Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` or +// `projects/{project}/locations/{location}/publishers/{publisher}/models/{mod +// el}`. +func (r *ProjectsLocationsEndpointsService) FetchPredictOperation(endpoint string, googlecloudaiplatformv1beta1fetchpredictoperationrequest *GoogleCloudAiplatformV1beta1FetchPredictOperationRequest) *ProjectsLocationsEndpointsFetchPredictOperationCall { + c := &ProjectsLocationsEndpointsFetchPredictOperationCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.endpoint = endpoint + c.googlecloudaiplatformv1beta1fetchpredictoperationrequest = googlecloudaiplatformv1beta1fetchpredictoperationrequest + 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 *ProjectsLocationsEndpointsFetchPredictOperationCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsFetchPredictOperationCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsEndpointsFetchPredictOperationCall) Context(ctx context.Context) *ProjectsLocationsEndpointsFetchPredictOperationCall { + 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 *ProjectsLocationsEndpointsFetchPredictOperationCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsEndpointsFetchPredictOperationCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1fetchpredictoperationrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+endpoint}:fetchPredictOperation") + 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{ + "endpoint": c.endpoint, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.endpoints.fetchPredictOperation" 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 *ProjectsLocationsEndpointsFetchPredictOperationCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + type ProjectsLocationsEndpointsGenerateContentCall struct { s *Service model string @@ -57377,6 +58185,111 @@ func (c *ProjectsLocationsEndpointsPredictCall) Do(opts ...googleapi.CallOption) return ret, nil } +type ProjectsLocationsEndpointsPredictLongRunningCall struct { + s *Service + endpoint string + googlecloudaiplatformv1beta1predictlongrunningrequest *GoogleCloudAiplatformV1beta1PredictLongRunningRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// PredictLongRunning: +// +// - endpoint: The name of the Endpoint requested to serve the prediction. +// Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` or +// `projects/{project}/locations/{location}/publishers/{publisher}/models/{mod +// el}`. +func (r *ProjectsLocationsEndpointsService) PredictLongRunning(endpoint string, googlecloudaiplatformv1beta1predictlongrunningrequest *GoogleCloudAiplatformV1beta1PredictLongRunningRequest) *ProjectsLocationsEndpointsPredictLongRunningCall { + c := &ProjectsLocationsEndpointsPredictLongRunningCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.endpoint = endpoint + c.googlecloudaiplatformv1beta1predictlongrunningrequest = googlecloudaiplatformv1beta1predictlongrunningrequest + 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 *ProjectsLocationsEndpointsPredictLongRunningCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsPredictLongRunningCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsEndpointsPredictLongRunningCall) Context(ctx context.Context) *ProjectsLocationsEndpointsPredictLongRunningCall { + 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 *ProjectsLocationsEndpointsPredictLongRunningCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsEndpointsPredictLongRunningCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1predictlongrunningrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+endpoint}:predictLongRunning") + 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{ + "endpoint": c.endpoint, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.endpoints.predictLongRunning" 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 *ProjectsLocationsEndpointsPredictLongRunningCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + type ProjectsLocationsEndpointsRawPredictCall struct { s *Service endpoint string @@ -62503,6 +63416,890 @@ func (c *ProjectsLocationsFeatureGroupsPatchCall) Do(opts ...googleapi.CallOptio return ret, nil } +type ProjectsLocationsFeatureGroupsFeatureMonitorsCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1featuremonitor *GoogleCloudAiplatformV1beta1FeatureMonitor + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new FeatureMonitor in a given project, location and +// FeatureGroup. +// +// - parent: The resource name of FeatureGroup to create FeatureMonitor. +// Format: +// `projects/{project}/locations/{location}/featureGroups/{featuregroup}`. +func (r *ProjectsLocationsFeatureGroupsFeatureMonitorsService) Create(parent string, googlecloudaiplatformv1beta1featuremonitor *GoogleCloudAiplatformV1beta1FeatureMonitor) *ProjectsLocationsFeatureGroupsFeatureMonitorsCreateCall { + c := &ProjectsLocationsFeatureGroupsFeatureMonitorsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1featuremonitor = googlecloudaiplatformv1beta1featuremonitor + return c +} + +// FeatureMonitorId sets the optional parameter "featureMonitorId": Required. +// The ID to use for this FeatureMonitor, which will become the final component +// of the FeatureGroup's resource name. This value may be up to 60 characters, +// and valid characters are `[a-z0-9_]`. The first character cannot be a +// number. The value must be unique within the FeatureGroup. +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsCreateCall) FeatureMonitorId(featureMonitorId string) *ProjectsLocationsFeatureGroupsFeatureMonitorsCreateCall { + c.urlParams_.Set("featureMonitorId", featureMonitorId) + 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 *ProjectsLocationsFeatureGroupsFeatureMonitorsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeatureMonitorsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsCreateCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeatureMonitorsCreateCall { + 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 *ProjectsLocationsFeatureGroupsFeatureMonitorsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1featuremonitor) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/featureMonitors") + 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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featureGroups.featureMonitors.create" 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 *ProjectsLocationsFeatureGroupsFeatureMonitorsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsFeatureGroupsFeatureMonitorsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a single FeatureMonitor. +// +// - name: The name of the FeatureMonitor to be deleted. Format: +// `projects/{project}/locations/{location}/featureGroups/{feature_group}/feat +// ureMonitors/{feature_monitor}`. +func (r *ProjectsLocationsFeatureGroupsFeatureMonitorsService) Delete(name string) *ProjectsLocationsFeatureGroupsFeatureMonitorsDeleteCall { + c := &ProjectsLocationsFeatureGroupsFeatureMonitorsDeleteCall{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 *ProjectsLocationsFeatureGroupsFeatureMonitorsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeatureMonitorsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeatureMonitorsDeleteCall { + 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 *ProjectsLocationsFeatureGroupsFeatureMonitorsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featureGroups.featureMonitors.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 *ProjectsLocationsFeatureGroupsFeatureMonitorsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsFeatureGroupsFeatureMonitorsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets details of a single FeatureMonitor. +// +// - name: The name of the FeatureMonitor resource. +func (r *ProjectsLocationsFeatureGroupsFeatureMonitorsService) Get(name string) *ProjectsLocationsFeatureGroupsFeatureMonitorsGetCall { + c := &ProjectsLocationsFeatureGroupsFeatureMonitorsGetCall{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 *ProjectsLocationsFeatureGroupsFeatureMonitorsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeatureMonitorsGetCall { + 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 *ProjectsLocationsFeatureGroupsFeatureMonitorsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsFeatureMonitorsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeatureMonitorsGetCall { + 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 *ProjectsLocationsFeatureGroupsFeatureMonitorsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featureGroups.featureMonitors.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudAiplatformV1beta1FeatureMonitor.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 *ProjectsLocationsFeatureGroupsFeatureMonitorsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1FeatureMonitor, 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 := &GoogleCloudAiplatformV1beta1FeatureMonitor{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsFeatureGroupsFeatureMonitorsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists FeatureGroups in a given project and location. +// +// - parent: The resource name of the FeatureGroup to list FeatureMonitors. +// Format: +// `projects/{project}/locations/{location}/featureGroups/{featureGroup}`. +func (r *ProjectsLocationsFeatureGroupsFeatureMonitorsService) List(parent string) *ProjectsLocationsFeatureGroupsFeatureMonitorsListCall { + c := &ProjectsLocationsFeatureGroupsFeatureMonitorsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Lists the FeatureMonitors that +// match the filter expression. The following fields are supported: * +// `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. +// Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `<`, +// `>`, `<=`, and `>=` comparisons. Values must be in RFC 3339 format. * +// `labels`: Supports key-value equality and key presence. Examples: * +// `create_time > "2020-01-01" OR update_time > "2020-01-01" FeatureMonitors +// created or updated after 2020-01-01. * `labels.env = "prod" FeatureGroups +// with label "env" set to "prod". +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsListCall) Filter(filter string) *ProjectsLocationsFeatureGroupsFeatureMonitorsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": A comma-separated list of +// fields to order by, sorted in ascending order. Use "desc" after a field name +// for descending. Supported Fields: * `create_time` * `update_time` +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsListCall) OrderBy(orderBy string) *ProjectsLocationsFeatureGroupsFeatureMonitorsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of +// FeatureGroups to return. The service may return fewer than this value. If +// unspecified, at most 100 FeatureMonitors will be returned. The maximum value +// is 100; any value greater than 100 will be coerced to 100. +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsListCall) PageSize(pageSize int64) *ProjectsLocationsFeatureGroupsFeatureMonitorsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, received +// from a previous FeatureRegistryService.ListFeatureMonitors call. Provide +// this to retrieve the subsequent page. When paginating, all other parameters +// provided to FeatureRegistryService.ListFeatureMonitors must match the call +// that provided the page token. +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsListCall) PageToken(pageToken string) *ProjectsLocationsFeatureGroupsFeatureMonitorsListCall { + 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 *ProjectsLocationsFeatureGroupsFeatureMonitorsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeatureMonitorsListCall { + 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 *ProjectsLocationsFeatureGroupsFeatureMonitorsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsFeatureMonitorsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsListCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeatureMonitorsListCall { + 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 *ProjectsLocationsFeatureGroupsFeatureMonitorsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/featureMonitors") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featureGroups.featureMonitors.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudAiplatformV1beta1ListFeatureMonitorsResponse.ServerResponse.Heade +// r 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 *ProjectsLocationsFeatureGroupsFeatureMonitorsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListFeatureMonitorsResponse, 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 := &GoogleCloudAiplatformV1beta1ListFeatureMonitorsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListFeatureMonitorsResponse) 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 ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1featuremonitorjob *GoogleCloudAiplatformV1beta1FeatureMonitorJob + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new feature monitor job. +// +// - parent: The resource name of FeatureMonitor to create FeatureMonitorJob. +// Format: +// `projects/{project}/locations/{location}/featureGroups/{feature_group}/feat +// ureMonitors/{feature_monitor}`. +func (r *ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsService) Create(parent string, googlecloudaiplatformv1beta1featuremonitorjob *GoogleCloudAiplatformV1beta1FeatureMonitorJob) *ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsCreateCall { + c := &ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1featuremonitorjob = googlecloudaiplatformv1beta1featuremonitorjob + return c +} + +// FeatureMonitorJobId sets the optional parameter "featureMonitorJobId": +// Output only. System-generated ID for feature monitor job. +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsCreateCall) FeatureMonitorJobId(featureMonitorJobId int64) *ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsCreateCall { + c.urlParams_.Set("featureMonitorJobId", fmt.Sprint(featureMonitorJobId)) + 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 *ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsCreateCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsCreateCall { + 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 *ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1featuremonitorjob) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/featureMonitorJobs") + 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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featureGroups.featureMonitors.featureMonitorJobs.create" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudAiplatformV1beta1FeatureMonitorJob.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 *ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1FeatureMonitorJob, 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 := &GoogleCloudAiplatformV1beta1FeatureMonitorJob{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Get a feature monitor job. +// +// - name: The name of the FeatureMonitorJob resource. Format: +// `projects/{project}/locations/{location}/featureGroups/{feature_group}/feat +// ureMonitors/{feature_monitor}/featureMonitorJobs/{feature_monitor_job}`. +func (r *ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsService) Get(name string) *ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsGetCall { + c := &ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsGetCall{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 *ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsGetCall { + 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 *ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsGetCall { + 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 *ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featureGroups.featureMonitors.featureMonitorJobs.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudAiplatformV1beta1FeatureMonitorJob.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 *ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1FeatureMonitorJob, 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 := &GoogleCloudAiplatformV1beta1FeatureMonitorJob{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: List feature monitor jobs. +// +// - parent: The resource name of the FeatureMonitor to list +// FeatureMonitorJobs. Format: +// `projects/{project}/locations/{location}/featureGroups/{feature_group}/feat +// ureMonitors/{feature_monitor}`. +func (r *ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsService) List(parent string) *ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsListCall { + c := &ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Lists the FeatureMonitorJobs +// that match the filter expression. The following fields are supported: * +// `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. +// Values must be Examples: * `create_time > "2020-01-01" FeatureMonitorJobs +// created after 2020-01-01. +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsListCall) Filter(filter string) *ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": A comma-separated list of +// fields to order by, sorted in ascending order. Use "desc" after a field name +// for descending. Supported Fields: * `create_time` +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsListCall) OrderBy(orderBy string) *ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of +// FeatureMonitorJobs to return. The service may return fewer than this value. +// If unspecified, at most 100 FeatureMonitorJobs will be returned. The maximum +// value is 100; any value greater than 100 will be coerced to 100. +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsListCall) PageSize(pageSize int64) *ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, received +// from a previous FeatureRegistryService.ListFeatureMonitorJobs call. Provide +// this to retrieve the subsequent page. When paginating, all other parameters +// provided to FeatureRegistryService.ListFeatureMonitorJobs must match the +// call that provided the page token. +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsListCall) PageToken(pageToken string) *ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsListCall { + 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 *ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsListCall { + 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 *ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsListCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsListCall { + 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 *ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/featureMonitorJobs") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featureGroups.featureMonitors.featureMonitorJobs.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudAiplatformV1beta1ListFeatureMonitorJobsResponse.ServerResponse.He +// ader 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 *ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListFeatureMonitorJobsResponse, 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 := &GoogleCloudAiplatformV1beta1ListFeatureMonitorJobsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListFeatureMonitorJobsResponse) 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 ProjectsLocationsFeatureGroupsFeaturesBatchCreateCall struct { s *Service parent string @@ -62846,6 +64643,33 @@ func (r *ProjectsLocationsFeatureGroupsFeaturesService) Get(name string) *Projec return c } +// FeatureStatsAndAnomalySpecLatestStatsCount sets the optional parameter +// "featureStatsAndAnomalySpec.latestStatsCount": If set, returns the most +// recent count of stats. Valid value is [0, 100]. If stats_time_range is set, +// return most recent count of stats within the stats_time_range. +func (c *ProjectsLocationsFeatureGroupsFeaturesGetCall) FeatureStatsAndAnomalySpecLatestStatsCount(featureStatsAndAnomalySpecLatestStatsCount int64) *ProjectsLocationsFeatureGroupsFeaturesGetCall { + c.urlParams_.Set("featureStatsAndAnomalySpec.latestStatsCount", fmt.Sprint(featureStatsAndAnomalySpecLatestStatsCount)) + return c +} + +// FeatureStatsAndAnomalySpecStatsTimeRangeEndTime sets the optional parameter +// "featureStatsAndAnomalySpec.statsTimeRange.endTime": Exclusive end of the +// interval. If specified, a Timestamp matching this interval will have to be +// before the end. +func (c *ProjectsLocationsFeatureGroupsFeaturesGetCall) FeatureStatsAndAnomalySpecStatsTimeRangeEndTime(featureStatsAndAnomalySpecStatsTimeRangeEndTime string) *ProjectsLocationsFeatureGroupsFeaturesGetCall { + c.urlParams_.Set("featureStatsAndAnomalySpec.statsTimeRange.endTime", featureStatsAndAnomalySpecStatsTimeRangeEndTime) + return c +} + +// FeatureStatsAndAnomalySpecStatsTimeRangeStartTime sets the optional +// parameter "featureStatsAndAnomalySpec.statsTimeRange.startTime": Inclusive +// start of the interval. If specified, a Timestamp matching this interval will +// have to be the same or after the start. +func (c *ProjectsLocationsFeatureGroupsFeaturesGetCall) FeatureStatsAndAnomalySpecStatsTimeRangeStartTime(featureStatsAndAnomalySpecStatsTimeRangeStartTime string) *ProjectsLocationsFeatureGroupsFeaturesGetCall { + c.urlParams_.Set("featureStatsAndAnomalySpec.statsTimeRange.startTime", featureStatsAndAnomalySpecStatsTimeRangeStartTime) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. @@ -70978,6 +72802,33 @@ func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesService) Get(name stri return c } +// FeatureStatsAndAnomalySpecLatestStatsCount sets the optional parameter +// "featureStatsAndAnomalySpec.latestStatsCount": If set, returns the most +// recent count of stats. Valid value is [0, 100]. If stats_time_range is set, +// return most recent count of stats within the stats_time_range. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall) FeatureStatsAndAnomalySpecLatestStatsCount(featureStatsAndAnomalySpecLatestStatsCount int64) *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall { + c.urlParams_.Set("featureStatsAndAnomalySpec.latestStatsCount", fmt.Sprint(featureStatsAndAnomalySpecLatestStatsCount)) + return c +} + +// FeatureStatsAndAnomalySpecStatsTimeRangeEndTime sets the optional parameter +// "featureStatsAndAnomalySpec.statsTimeRange.endTime": Exclusive end of the +// interval. If specified, a Timestamp matching this interval will have to be +// before the end. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall) FeatureStatsAndAnomalySpecStatsTimeRangeEndTime(featureStatsAndAnomalySpecStatsTimeRangeEndTime string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall { + c.urlParams_.Set("featureStatsAndAnomalySpec.statsTimeRange.endTime", featureStatsAndAnomalySpecStatsTimeRangeEndTime) + return c +} + +// FeatureStatsAndAnomalySpecStatsTimeRangeStartTime sets the optional +// parameter "featureStatsAndAnomalySpec.statsTimeRange.startTime": Inclusive +// start of the interval. If specified, a Timestamp matching this interval will +// have to be the same or after the start. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall) FeatureStatsAndAnomalySpecStatsTimeRangeStartTime(featureStatsAndAnomalySpecStatsTimeRangeStartTime string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall { + c.urlParams_.Set("featureStatsAndAnomalySpec.statsTimeRange.startTime", featureStatsAndAnomalySpecStatsTimeRangeStartTime) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. @@ -100006,6 +101857,111 @@ func (c *ProjectsLocationsPublishersModelsCountTokensCall) Do(opts ...googleapi. return ret, nil } +type ProjectsLocationsPublishersModelsFetchPredictOperationCall struct { + s *Service + endpoint string + googlecloudaiplatformv1beta1fetchpredictoperationrequest *GoogleCloudAiplatformV1beta1FetchPredictOperationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// FetchPredictOperation: Fetch an asynchronous online prediction operation. +// +// - endpoint: The name of the Endpoint requested to serve the prediction. +// Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` or +// `projects/{project}/locations/{location}/publishers/{publisher}/models/{mod +// el}`. +func (r *ProjectsLocationsPublishersModelsService) FetchPredictOperation(endpoint string, googlecloudaiplatformv1beta1fetchpredictoperationrequest *GoogleCloudAiplatformV1beta1FetchPredictOperationRequest) *ProjectsLocationsPublishersModelsFetchPredictOperationCall { + c := &ProjectsLocationsPublishersModelsFetchPredictOperationCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.endpoint = endpoint + c.googlecloudaiplatformv1beta1fetchpredictoperationrequest = googlecloudaiplatformv1beta1fetchpredictoperationrequest + 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 *ProjectsLocationsPublishersModelsFetchPredictOperationCall) Fields(s ...googleapi.Field) *ProjectsLocationsPublishersModelsFetchPredictOperationCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsPublishersModelsFetchPredictOperationCall) Context(ctx context.Context) *ProjectsLocationsPublishersModelsFetchPredictOperationCall { + 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 *ProjectsLocationsPublishersModelsFetchPredictOperationCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsPublishersModelsFetchPredictOperationCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1fetchpredictoperationrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+endpoint}:fetchPredictOperation") + 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{ + "endpoint": c.endpoint, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.publishers.models.fetchPredictOperation" 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 *ProjectsLocationsPublishersModelsFetchPredictOperationCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + type ProjectsLocationsPublishersModelsGenerateContentCall struct { s *Service model string @@ -100331,6 +102287,111 @@ func (c *ProjectsLocationsPublishersModelsPredictCall) Do(opts ...googleapi.Call return ret, nil } +type ProjectsLocationsPublishersModelsPredictLongRunningCall struct { + s *Service + endpoint string + googlecloudaiplatformv1beta1predictlongrunningrequest *GoogleCloudAiplatformV1beta1PredictLongRunningRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// PredictLongRunning: +// +// - endpoint: The name of the Endpoint requested to serve the prediction. +// Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` or +// `projects/{project}/locations/{location}/publishers/{publisher}/models/{mod +// el}`. +func (r *ProjectsLocationsPublishersModelsService) PredictLongRunning(endpoint string, googlecloudaiplatformv1beta1predictlongrunningrequest *GoogleCloudAiplatformV1beta1PredictLongRunningRequest) *ProjectsLocationsPublishersModelsPredictLongRunningCall { + c := &ProjectsLocationsPublishersModelsPredictLongRunningCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.endpoint = endpoint + c.googlecloudaiplatformv1beta1predictlongrunningrequest = googlecloudaiplatformv1beta1predictlongrunningrequest + 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 *ProjectsLocationsPublishersModelsPredictLongRunningCall) Fields(s ...googleapi.Field) *ProjectsLocationsPublishersModelsPredictLongRunningCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsPublishersModelsPredictLongRunningCall) Context(ctx context.Context) *ProjectsLocationsPublishersModelsPredictLongRunningCall { + 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 *ProjectsLocationsPublishersModelsPredictLongRunningCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsPublishersModelsPredictLongRunningCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1predictlongrunningrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+endpoint}:predictLongRunning") + 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{ + "endpoint": c.endpoint, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.publishers.models.predictLongRunning" 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 *ProjectsLocationsPublishersModelsPredictLongRunningCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + type ProjectsLocationsPublishersModelsRawPredictCall struct { s *Service endpoint string diff --git a/alloydb/v1/alloydb-api.json b/alloydb/v1/alloydb-api.json index 6591cf1d2e4..b6d7f9b90a2 100644 --- a/alloydb/v1/alloydb-api.json +++ b/alloydb/v1/alloydb-api.json @@ -1517,7 +1517,7 @@ } } }, - "revision": "20241015", + "revision": "20241023", "rootUrl": "https://alloydb.googleapis.com/", "schemas": { "AuthorizedNetwork": { @@ -2458,7 +2458,7 @@ "additionalProperties": { "type": "string" }, - "description": "Database flags. Set at instance level. * They are copied from primary instance on read instance creation. * Read instances can set new or override existing flags that are relevant for reads, e.g. for enabling columnar cache on a read instance. Flags set on read instance may or may not be present on primary. This is a list of \"key\": \"value\" pairs. \"key\": The name of the flag. These flags are passed at instance setup time, so include both server options and system variables for Postgres. Flags are specified with underscores, not hyphens. \"value\": The value of the flag. Booleans are set to **on** for true and **off** for false. This field must be omitted if the flag doesn't take a value.", + "description": "Database flags. Set at the instance level. They are copied from the primary instance on secondary instance creation. Flags that have restrictions default to the value at primary instance on read instances during creation. Read instances can set new flags or override existing flags that are relevant for reads, for example, for enabling columnar cache on a read instance. Flags set on read instance might or might not be present on the primary instance. This is a list of \"key\": \"value\" pairs. \"key\": The name of the flag. These flags are passed at instance setup time, so include both server options and system variables for Postgres. Flags are specified with underscores, not hyphens. \"value\": The value of the flag. Booleans are set to **on** for true and **off** for false. This field must be omitted if the flag doesn't take a value.", "type": "object" }, "deleteTime": { diff --git a/alloydb/v1/alloydb-gen.go b/alloydb/v1/alloydb-gen.go index 21418acd849..f15ed0dd141 100644 --- a/alloydb/v1/alloydb-gen.go +++ b/alloydb/v1/alloydb-gen.go @@ -1173,11 +1173,13 @@ type Instance struct { ClientConnectionConfig *ClientConnectionConfig `json:"clientConnectionConfig,omitempty"` // CreateTime: Output only. Create time stamp CreateTime string `json:"createTime,omitempty"` - // DatabaseFlags: Database flags. Set at instance level. * They are copied from - // primary instance on read instance creation. * Read instances can set new or - // override existing flags that are relevant for reads, e.g. for enabling - // columnar cache on a read instance. Flags set on read instance may or may not - // be present on primary. This is a list of "key": "value" pairs. "key": The + // DatabaseFlags: Database flags. Set at the instance level. They are copied + // from the primary instance on secondary instance creation. Flags that have + // restrictions default to the value at primary instance on read instances + // during creation. Read instances can set new flags or override existing flags + // that are relevant for reads, for example, for enabling columnar cache on a + // read instance. Flags set on read instance might or might not be present on + // the primary instance. This is a list of "key": "value" pairs. "key": The // name of the flag. These flags are passed at instance setup time, so include // both server options and system variables for Postgres. Flags are specified // with underscores, not hyphens. "value": The value of the flag. Booleans are diff --git a/alloydb/v1alpha/alloydb-api.json b/alloydb/v1alpha/alloydb-api.json index 95a3a3ae8b0..5e118335422 100644 --- a/alloydb/v1alpha/alloydb-api.json +++ b/alloydb/v1alpha/alloydb-api.json @@ -1517,7 +1517,7 @@ } } }, - "revision": "20241015", + "revision": "20241023", "rootUrl": "https://alloydb.googleapis.com/", "schemas": { "AuthorizedNetwork": { @@ -2535,7 +2535,7 @@ "additionalProperties": { "type": "string" }, - "description": "Database flags. Set at instance level. * They are copied from primary instance on read instance creation. * Read instances can set new or override existing flags that are relevant for reads, e.g. for enabling columnar cache on a read instance. Flags set on read instance may or may not be present on primary. This is a list of \"key\": \"value\" pairs. \"key\": The name of the flag. These flags are passed at instance setup time, so include both server options and system variables for Postgres. Flags are specified with underscores, not hyphens. \"value\": The value of the flag. Booleans are set to **on** for true and **off** for false. This field must be omitted if the flag doesn't take a value.", + "description": "Database flags. Set at the instance level. They are copied from the primary instance on secondary instance creation. Flags that have restrictions default to the value at primary instance on read instances during creation. Read instances can set new flags or override existing flags that are relevant for reads, for example, for enabling columnar cache on a read instance. Flags set on read instance might or might not be present on the primary instance. This is a list of \"key\": \"value\" pairs. \"key\": The name of the flag. These flags are passed at instance setup time, so include both server options and system variables for Postgres. Flags are specified with underscores, not hyphens. \"value\": The value of the flag. Booleans are set to **on** for true and **off** for false. This field must be omitted if the flag doesn't take a value.", "type": "object" }, "deleteTime": { diff --git a/alloydb/v1alpha/alloydb-gen.go b/alloydb/v1alpha/alloydb-gen.go index 3f613af8c25..465c0b87fea 100644 --- a/alloydb/v1alpha/alloydb-gen.go +++ b/alloydb/v1alpha/alloydb-gen.go @@ -1268,11 +1268,13 @@ type Instance struct { ClientConnectionConfig *ClientConnectionConfig `json:"clientConnectionConfig,omitempty"` // CreateTime: Output only. Create time stamp CreateTime string `json:"createTime,omitempty"` - // DatabaseFlags: Database flags. Set at instance level. * They are copied from - // primary instance on read instance creation. * Read instances can set new or - // override existing flags that are relevant for reads, e.g. for enabling - // columnar cache on a read instance. Flags set on read instance may or may not - // be present on primary. This is a list of "key": "value" pairs. "key": The + // DatabaseFlags: Database flags. Set at the instance level. They are copied + // from the primary instance on secondary instance creation. Flags that have + // restrictions default to the value at primary instance on read instances + // during creation. Read instances can set new flags or override existing flags + // that are relevant for reads, for example, for enabling columnar cache on a + // read instance. Flags set on read instance might or might not be present on + // the primary instance. This is a list of "key": "value" pairs. "key": The // name of the flag. These flags are passed at instance setup time, so include // both server options and system variables for Postgres. Flags are specified // with underscores, not hyphens. "value": The value of the flag. Booleans are diff --git a/alloydb/v1beta/alloydb-api.json b/alloydb/v1beta/alloydb-api.json index bdc0d8e5d03..415ca9f4c72 100644 --- a/alloydb/v1beta/alloydb-api.json +++ b/alloydb/v1beta/alloydb-api.json @@ -1514,7 +1514,7 @@ } } }, - "revision": "20241015", + "revision": "20241023", "rootUrl": "https://alloydb.googleapis.com/", "schemas": { "AuthorizedNetwork": { @@ -2516,7 +2516,7 @@ "additionalProperties": { "type": "string" }, - "description": "Database flags. Set at instance level. * They are copied from primary instance on read instance creation. * Read instances can set new or override existing flags that are relevant for reads, e.g. for enabling columnar cache on a read instance. Flags set on read instance may or may not be present on primary. This is a list of \"key\": \"value\" pairs. \"key\": The name of the flag. These flags are passed at instance setup time, so include both server options and system variables for Postgres. Flags are specified with underscores, not hyphens. \"value\": The value of the flag. Booleans are set to **on** for true and **off** for false. This field must be omitted if the flag doesn't take a value.", + "description": "Database flags. Set at the instance level. They are copied from the primary instance on secondary instance creation. Flags that have restrictions default to the value at primary instance on read instances during creation. Read instances can set new flags or override existing flags that are relevant for reads, for example, for enabling columnar cache on a read instance. Flags set on read instance might or might not be present on the primary instance. This is a list of \"key\": \"value\" pairs. \"key\": The name of the flag. These flags are passed at instance setup time, so include both server options and system variables for Postgres. Flags are specified with underscores, not hyphens. \"value\": The value of the flag. Booleans are set to **on** for true and **off** for false. This field must be omitted if the flag doesn't take a value.", "type": "object" }, "deleteTime": { diff --git a/alloydb/v1beta/alloydb-gen.go b/alloydb/v1beta/alloydb-gen.go index 56a93192d4c..cba4462023a 100644 --- a/alloydb/v1beta/alloydb-gen.go +++ b/alloydb/v1beta/alloydb-gen.go @@ -1260,11 +1260,13 @@ type Instance struct { ClientConnectionConfig *ClientConnectionConfig `json:"clientConnectionConfig,omitempty"` // CreateTime: Output only. Create time stamp CreateTime string `json:"createTime,omitempty"` - // DatabaseFlags: Database flags. Set at instance level. * They are copied from - // primary instance on read instance creation. * Read instances can set new or - // override existing flags that are relevant for reads, e.g. for enabling - // columnar cache on a read instance. Flags set on read instance may or may not - // be present on primary. This is a list of "key": "value" pairs. "key": The + // DatabaseFlags: Database flags. Set at the instance level. They are copied + // from the primary instance on secondary instance creation. Flags that have + // restrictions default to the value at primary instance on read instances + // during creation. Read instances can set new flags or override existing flags + // that are relevant for reads, for example, for enabling columnar cache on a + // read instance. Flags set on read instance might or might not be present on + // the primary instance. This is a list of "key": "value" pairs. "key": The // name of the flag. These flags are passed at instance setup time, so include // both server options and system variables for Postgres. Flags are specified // with underscores, not hyphens. "value": The value of the flag. Booleans are diff --git a/analyticshub/v1/analyticshub-api.json b/analyticshub/v1/analyticshub-api.json index 062d2702047..190f6a852bf 100644 --- a/analyticshub/v1/analyticshub-api.json +++ b/analyticshub/v1/analyticshub-api.json @@ -1022,7 +1022,7 @@ } } }, - "revision": "20240925", + "revision": "20241028", "rootUrl": "https://analyticshub.googleapis.com/", "schemas": { "AnalyticsHubSubscriptionInfo": { @@ -2228,6 +2228,10 @@ "description": "Required. The parent resource path of the Subscription. e.g. `projects/subscriberproject/locations/US`", "type": "string" }, + "destinationDataset": { + "$ref": "DestinationDataset", + "description": "Optional. BigQuery destination dataset to create for the subscriber." + }, "subscriberContact": { "description": "Email of the subscriber.", "type": "string" diff --git a/analyticshub/v1/analyticshub-gen.go b/analyticshub/v1/analyticshub-gen.go index 9c269663660..4a659a77afb 100644 --- a/analyticshub/v1/analyticshub-gen.go +++ b/analyticshub/v1/analyticshub-gen.go @@ -2093,6 +2093,9 @@ type SubscribeDataExchangeRequest struct { // Destination: Required. The parent resource path of the Subscription. e.g. // `projects/subscriberproject/locations/US` Destination string `json:"destination,omitempty"` + // DestinationDataset: Optional. BigQuery destination dataset to create for the + // subscriber. + DestinationDataset *DestinationDataset `json:"destinationDataset,omitempty"` // SubscriberContact: Email of the subscriber. SubscriberContact string `json:"subscriberContact,omitempty"` // Subscription: Required. Name of the subscription to create. e.g. diff --git a/analyticshub/v1beta1/analyticshub-api.json b/analyticshub/v1beta1/analyticshub-api.json index bc904e1d47d..2a6dd602443 100644 --- a/analyticshub/v1beta1/analyticshub-api.json +++ b/analyticshub/v1beta1/analyticshub-api.json @@ -695,7 +695,7 @@ } } }, - "revision": "20240624", + "revision": "20241028", "rootUrl": "https://analyticshub.googleapis.com/", "schemas": { "AuditConfig": { @@ -833,51 +833,6 @@ }, "type": "object" }, - "DestinationDataset": { - "description": "Defines the destination bigquery dataset.", - "id": "DestinationDataset", - "properties": { - "datasetReference": { - "$ref": "DestinationDatasetReference", - "description": "Required. A reference that identifies the destination dataset." - }, - "description": { - "description": "Optional. A user-friendly description of the dataset.", - "type": "string" - }, - "friendlyName": { - "description": "Optional. A descriptive name for the dataset.", - "type": "string" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Optional. The labels associated with this dataset. You can use these to organize and group your datasets. You can set this property when inserting or updating a dataset. See https://cloud.google.com/resource-manager/docs/creating-managing-labels for more information.", - "type": "object" - }, - "location": { - "description": "Required. The geographic location where the dataset should reside. See https://cloud.google.com/bigquery/docs/locations for supported locations.", - "type": "string" - } - }, - "type": "object" - }, - "DestinationDatasetReference": { - "description": "Contains the reference that identifies a destination bigquery dataset.", - "id": "DestinationDatasetReference", - "properties": { - "datasetId": { - "description": "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 (_). The maximum length is 1,024 characters.", - "type": "string" - }, - "projectId": { - "description": "Required. The ID of the project containing this dataset.", - "type": "string" - } - }, - "type": "object" - }, "Empty": { "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", @@ -930,6 +885,51 @@ }, "type": "object" }, + "GoogleCloudBigqueryDataexchangeV1beta1DestinationDataset": { + "description": "Defines the destination bigquery dataset.", + "id": "GoogleCloudBigqueryDataexchangeV1beta1DestinationDataset", + "properties": { + "datasetReference": { + "$ref": "GoogleCloudBigqueryDataexchangeV1beta1DestinationDatasetReference", + "description": "Required. A reference that identifies the destination dataset." + }, + "description": { + "description": "Optional. A user-friendly description of the dataset.", + "type": "string" + }, + "friendlyName": { + "description": "Optional. A descriptive name for the dataset.", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. The labels associated with this dataset. You can use these to organize and group your datasets. You can set this property when inserting or updating a dataset. See https://cloud.google.com/resource-manager/docs/creating-managing-labels for more information.", + "type": "object" + }, + "location": { + "description": "Required. The geographic location where the dataset should reside. See https://cloud.google.com/bigquery/docs/locations for supported locations.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudBigqueryDataexchangeV1beta1DestinationDatasetReference": { + "description": "Contains the reference that identifies a destination bigquery dataset.", + "id": "GoogleCloudBigqueryDataexchangeV1beta1DestinationDatasetReference", + "properties": { + "datasetId": { + "description": "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 (_). The maximum length is 1,024 characters.", + "type": "string" + }, + "projectId": { + "description": "Required. The ID of the project containing this dataset.", + "type": "string" + } + }, + "type": "object" + }, "LinkedResource": { "description": "Reference to a linked resource tracked by this Subscription.", "id": "LinkedResource", @@ -1276,7 +1276,7 @@ "id": "SubscribeListingRequest", "properties": { "destinationDataset": { - "$ref": "DestinationDataset", + "$ref": "GoogleCloudBigqueryDataexchangeV1beta1DestinationDataset", "description": "BigQuery destination dataset to create for the subscriber." } }, diff --git a/analyticshub/v1beta1/analyticshub-gen.go b/analyticshub/v1beta1/analyticshub-gen.go index 2b9a30bf366..88bcf0c32eb 100644 --- a/analyticshub/v1beta1/analyticshub-gen.go +++ b/analyticshub/v1beta1/analyticshub-gen.go @@ -525,70 +525,6 @@ func (s DataProvider) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DestinationDataset: Defines the destination bigquery dataset. -type DestinationDataset struct { - // DatasetReference: Required. A reference that identifies the destination - // dataset. - DatasetReference *DestinationDatasetReference `json:"datasetReference,omitempty"` - // Description: Optional. A user-friendly description of the dataset. - Description string `json:"description,omitempty"` - // FriendlyName: Optional. A descriptive name for the dataset. - FriendlyName string `json:"friendlyName,omitempty"` - // Labels: Optional. The labels associated with this dataset. You can use these - // to organize and group your datasets. You can set this property when - // inserting or updating a dataset. See - // https://cloud.google.com/resource-manager/docs/creating-managing-labels for - // more information. - Labels map[string]string `json:"labels,omitempty"` - // Location: Required. The geographic location where the dataset should reside. - // See https://cloud.google.com/bigquery/docs/locations for supported - // locations. - Location string `json:"location,omitempty"` - // ForceSendFields is a list of field names (e.g. "DatasetReference") 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. "DatasetReference") 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 DestinationDataset) MarshalJSON() ([]byte, error) { - type NoMethod DestinationDataset - 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 - // (_). The maximum length is 1,024 characters. - DatasetId string `json:"datasetId,omitempty"` - // ProjectId: Required. The ID of the project containing this dataset. - ProjectId string `json:"projectId,omitempty"` - // ForceSendFields is a list of field names (e.g. "DatasetId") 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. "DatasetId") 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 DestinationDatasetReference) MarshalJSON() ([]byte, error) { - type NoMethod DestinationDatasetReference - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // Empty: A generic empty message that you can re-use to avoid defining // duplicated empty messages in your APIs. A typical example is to use it as // the request or the response type of an API method. For instance: service Foo @@ -701,6 +637,71 @@ func (s GetPolicyOptions) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudBigqueryDataexchangeV1beta1DestinationDataset: Defines the +// destination bigquery dataset. +type GoogleCloudBigqueryDataexchangeV1beta1DestinationDataset struct { + // DatasetReference: Required. A reference that identifies the destination + // dataset. + DatasetReference *GoogleCloudBigqueryDataexchangeV1beta1DestinationDatasetReference `json:"datasetReference,omitempty"` + // Description: Optional. A user-friendly description of the dataset. + Description string `json:"description,omitempty"` + // FriendlyName: Optional. A descriptive name for the dataset. + FriendlyName string `json:"friendlyName,omitempty"` + // Labels: Optional. The labels associated with this dataset. You can use these + // to organize and group your datasets. You can set this property when + // inserting or updating a dataset. See + // https://cloud.google.com/resource-manager/docs/creating-managing-labels for + // more information. + Labels map[string]string `json:"labels,omitempty"` + // Location: Required. The geographic location where the dataset should reside. + // See https://cloud.google.com/bigquery/docs/locations for supported + // locations. + Location string `json:"location,omitempty"` + // ForceSendFields is a list of field names (e.g. "DatasetReference") 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. "DatasetReference") 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 GoogleCloudBigqueryDataexchangeV1beta1DestinationDataset) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudBigqueryDataexchangeV1beta1DestinationDataset + 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 + // (_). The maximum length is 1,024 characters. + DatasetId string `json:"datasetId,omitempty"` + // ProjectId: Required. The ID of the project containing this dataset. + ProjectId string `json:"projectId,omitempty"` + // ForceSendFields is a list of field names (e.g. "DatasetId") 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. "DatasetId") 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 GoogleCloudBigqueryDataexchangeV1beta1DestinationDatasetReference) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudBigqueryDataexchangeV1beta1DestinationDatasetReference + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // LinkedResource: Reference to a linked resource tracked by this Subscription. type LinkedResource struct { // LinkedDataset: Output only. Name of the linked dataset, e.g. @@ -1174,7 +1175,7 @@ func (s SubscribeDataExchangeResponse) MarshalJSON() ([]byte, error) { type SubscribeListingRequest struct { // DestinationDataset: BigQuery destination dataset to create for the // subscriber. - DestinationDataset *DestinationDataset `json:"destinationDataset,omitempty"` + DestinationDataset *GoogleCloudBigqueryDataexchangeV1beta1DestinationDataset `json:"destinationDataset,omitempty"` // ForceSendFields is a list of field names (e.g. "DestinationDataset") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See diff --git a/androidmanagement/v1/androidmanagement-api.json b/androidmanagement/v1/androidmanagement-api.json index 9a17966144c..77372156419 100644 --- a/androidmanagement/v1/androidmanagement-api.json +++ b/androidmanagement/v1/androidmanagement-api.json @@ -1168,7 +1168,7 @@ } } }, - "revision": "20241022", + "revision": "20241104", "rootUrl": "https://androidmanagement.googleapis.com/", "schemas": { "AdbShellCommandEvent": { @@ -3216,7 +3216,7 @@ "type": "object" }, "ExtensionConfig": { - "description": "Configuration to enable an app as an extension app, with the capability of interacting with Android Device Policy offline. For Android versions 13 and above, extension apps are exempt from battery restrictions so will not be placed into the restricted App Standby Bucket (https://developer.android.com/topic/performance/appstandby#restricted-bucket). Extensions apps are also protected against users clearing their data or force-closing the application, although admins can continue to use the clear app data command on extension apps if needed for Android 13 and above.", + "description": "Configuration to enable an app as an extension app, with the capability of interacting with Android Device Policy offline. For Android versions 11 and above, extension apps are exempt from battery restrictions so will not be placed into the restricted App Standby Bucket (https://developer.android.com/topic/performance/appstandby#restricted-bucket). Extensions apps are also protected against users clearing their data or force-closing the application, although admins can continue to use the clear app data command on extension apps if needed for Android 11 and above.", "id": "ExtensionConfig", "properties": { "notificationReceiver": { @@ -4834,7 +4834,7 @@ "type": "array" }, "addUserDisabled": { - "description": "Whether adding new users and profiles is disabled.", + "description": "Whether adding new users and profiles is disabled. For devices where managementMode is DEVICE_OWNER this field is ignored and the user is never allowed to add or remove users.", "type": "boolean" }, "adjustVolumeDisabled": { diff --git a/androidmanagement/v1/androidmanagement-gen.go b/androidmanagement/v1/androidmanagement-gen.go index cc10e44bb22..64ea8e32448 100644 --- a/androidmanagement/v1/androidmanagement-gen.go +++ b/androidmanagement/v1/androidmanagement-gen.go @@ -2618,12 +2618,12 @@ func (s Enterprise) MarshalJSON() ([]byte, error) { // ExtensionConfig: Configuration to enable an app as an extension app, with // the capability of interacting with Android Device Policy offline. For -// Android versions 13 and above, extension apps are exempt from battery +// Android versions 11 and above, extension apps are exempt from battery // restrictions so will not be placed into the restricted App Standby Bucket // (https://developer.android.com/topic/performance/appstandby#restricted-bucket). // Extensions apps are also protected against users clearing their data or // force-closing the application, although admins can continue to use the clear -// app data command on extension apps if needed for Android 13 and above. +// app data command on extension apps if needed for Android 11 and above. type ExtensionConfig struct { // NotificationReceiver: Fully qualified class name of the receiver service // class for Android Device Policy to notify the extension app of any local @@ -4730,7 +4730,9 @@ type Policy struct { // AccountTypesWithManagementDisabled: Account types that can't be managed by // the user. AccountTypesWithManagementDisabled []string `json:"accountTypesWithManagementDisabled,omitempty"` - // AddUserDisabled: Whether adding new users and profiles is disabled. + // AddUserDisabled: Whether adding new users and profiles is disabled. For + // devices where managementMode is DEVICE_OWNER this field is ignored and the + // user is never allowed to add or remove users. AddUserDisabled bool `json:"addUserDisabled,omitempty"` // AdjustVolumeDisabled: Whether adjusting the master volume is disabled. Also // mutes the device. diff --git a/backupdr/v1/backupdr-api.json b/backupdr/v1/backupdr-api.json index 51bab4a82a4..f93bf5f591f 100644 --- a/backupdr/v1/backupdr-api.json +++ b/backupdr/v1/backupdr-api.json @@ -1663,7 +1663,7 @@ } } }, - "revision": "20241017", + "revision": "20241023", "rootUrl": "https://backupdr.googleapis.com/", "schemas": { "AbandonBackupRequest": { @@ -3698,7 +3698,7 @@ "type": "string" }, "networks": { - "description": "Required. VPC networks to which the ManagementServer instance is connected. For this version, only a single network is supported.", + "description": "Optional. VPC networks to which the ManagementServer instance is connected. For this version, only a single network is supported. This field is optional if MS is created without PSA", "items": { "$ref": "NetworkConfig" }, diff --git a/backupdr/v1/backupdr-gen.go b/backupdr/v1/backupdr-gen.go index 545a4fd0548..83bbf3df42e 100644 --- a/backupdr/v1/backupdr-gen.go +++ b/backupdr/v1/backupdr-gen.go @@ -2585,8 +2585,9 @@ type ManagementServer struct { ManagementUri *ManagementURI `json:"managementUri,omitempty"` // Name: Output only. Identifier. The resource name. Name string `json:"name,omitempty"` - // Networks: Required. VPC networks to which the ManagementServer instance is - // connected. For this version, only a single network is supported. + // Networks: Optional. VPC networks to which the ManagementServer instance is + // connected. For this version, only a single network is supported. This field + // is optional if MS is created without PSA Networks []*NetworkConfig `json:"networks,omitempty"` // Oauth2ClientId: Output only. The OAuth 2.0 client id is required to make API // calls to the BackupDR instance API of this ManagementServer. This is the diff --git a/beyondcorp/v1/beyondcorp-api.json b/beyondcorp/v1/beyondcorp-api.json index 8afa6f9e2ad..5705254f49d 100644 --- a/beyondcorp/v1/beyondcorp-api.json +++ b/beyondcorp/v1/beyondcorp-api.json @@ -2169,6 +2169,34 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "setIamPolicy": { + "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/securityGateways/{securityGatewaysId}:setIamPolicy", + "httpMethod": "POST", + "id": "beyondcorp.projects.locations.securityGateways.setIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/securityGateways/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:setIamPolicy", + "request": { + "$ref": "GoogleIamV1SetIamPolicyRequest" + }, + "response": { + "$ref": "GoogleIamV1Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "setPeering": { "description": "This is a custom method to allow customers to create a peering connections between Google network and customer networks. This is enabled only for the allowlisted customers.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/securityGateways/{securityGatewaysId}:setPeering", @@ -2401,53 +2429,9 @@ } } } - }, - "v": { - "resources": { - "projects": { - "resources": { - "locations": { - "resources": { - "securityGateways": { - "methods": { - "setIamPolicy": { - "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", - "flatPath": "v/projects/{projectsId}/locations/{locationsId}/securityGateways/{securityGatewaysId}:setIamPolicy", - "httpMethod": "POST", - "id": "beyondcorp.v.projects.locations.securityGateways.setIamPolicy", - "parameterOrder": [ - "resource" - ], - "parameters": { - "resource": { - "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/securityGateways/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v/{+resource}:setIamPolicy", - "request": { - "$ref": "GoogleIamV1SetIamPolicyRequest" - }, - "response": { - "$ref": "GoogleIamV1Policy" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - } - } - } - } - } - } } }, - "revision": "20241011", + "revision": "20241024", "rootUrl": "https://beyondcorp.googleapis.com/", "schemas": { "AllocatedConnection": { diff --git a/beyondcorp/v1/beyondcorp-gen.go b/beyondcorp/v1/beyondcorp-gen.go index 68700c11fc9..b59c0eb54f7 100644 --- a/beyondcorp/v1/beyondcorp-gen.go +++ b/beyondcorp/v1/beyondcorp-gen.go @@ -137,7 +137,6 @@ func New(client *http.Client) (*Service, error) { s := &Service{client: client, BasePath: basePath} s.Organizations = NewOrganizationsService(s) s.Projects = NewProjectsService(s) - s.V = NewVService(s) return s, nil } @@ -149,8 +148,6 @@ type Service struct { Organizations *OrganizationsService Projects *ProjectsService - - V *VService } func (s *Service) userAgent() string { @@ -394,51 +391,6 @@ type ProjectsLocationsSecurityGatewaysApplicationsService struct { s *Service } -func NewVService(s *Service) *VService { - rs := &VService{s: s} - rs.Projects = NewVProjectsService(s) - return rs -} - -type VService struct { - s *Service - - Projects *VProjectsService -} - -func NewVProjectsService(s *Service) *VProjectsService { - rs := &VProjectsService{s: s} - rs.Locations = NewVProjectsLocationsService(s) - return rs -} - -type VProjectsService struct { - s *Service - - Locations *VProjectsLocationsService -} - -func NewVProjectsLocationsService(s *Service) *VProjectsLocationsService { - rs := &VProjectsLocationsService{s: s} - rs.SecurityGateways = NewVProjectsLocationsSecurityGatewaysService(s) - return rs -} - -type VProjectsLocationsService struct { - s *Service - - SecurityGateways *VProjectsLocationsSecurityGatewaysService -} - -func NewVProjectsLocationsSecurityGatewaysService(s *Service) *VProjectsLocationsSecurityGatewaysService { - rs := &VProjectsLocationsSecurityGatewaysService{s: s} - return rs -} - -type VProjectsLocationsSecurityGatewaysService struct { - s *Service -} - // AllocatedConnection: Allocated connection of the AppGateway. type AllocatedConnection struct { // IngressPort: Required. The ingress port of an allocated connection @@ -10224,6 +10176,112 @@ func (c *ProjectsLocationsSecurityGatewaysPatchCall) Do(opts ...googleapi.CallOp return ret, nil } +type ProjectsLocationsSecurityGatewaysSetIamPolicyCall struct { + s *Service + resource string + googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, +// and `PERMISSION_DENIED` errors. +// +// - resource: REQUIRED: The resource for which the policy is being specified. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. +func (r *ProjectsLocationsSecurityGatewaysService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsSecurityGatewaysSetIamPolicyCall { + c := &ProjectsLocationsSecurityGatewaysSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest + 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 *ProjectsLocationsSecurityGatewaysSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsSecurityGatewaysSetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsSecurityGatewaysSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsSecurityGatewaysSetIamPolicyCall { + 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 *ProjectsLocationsSecurityGatewaysSetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsSecurityGatewaysSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "beyondcorp.projects.locations.securityGateways.setIamPolicy" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.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 *ProjectsLocationsSecurityGatewaysSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, 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 := &GoogleIamV1Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + type ProjectsLocationsSecurityGatewaysSetPeeringCall struct { s *Service securityGateway string @@ -11069,109 +11127,3 @@ func (c *ProjectsLocationsSecurityGatewaysApplicationsSetIamPolicyCall) Do(opts } return ret, nil } - -type VProjectsLocationsSecurityGatewaysSetIamPolicyCall struct { - s *Service - resource string - googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// SetIamPolicy: Sets the access control policy on the specified resource. -// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, -// and `PERMISSION_DENIED` errors. -// -// - resource: REQUIRED: The resource for which the policy is being specified. -// See Resource names (https://cloud.google.com/apis/design/resource_names) -// for the appropriate value for this field. -func (r *VProjectsLocationsSecurityGatewaysService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *VProjectsLocationsSecurityGatewaysSetIamPolicyCall { - c := &VProjectsLocationsSecurityGatewaysSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest - 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 *VProjectsLocationsSecurityGatewaysSetIamPolicyCall) Fields(s ...googleapi.Field) *VProjectsLocationsSecurityGatewaysSetIamPolicyCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *VProjectsLocationsSecurityGatewaysSetIamPolicyCall) Context(ctx context.Context) *VProjectsLocationsSecurityGatewaysSetIamPolicyCall { - 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 *VProjectsLocationsSecurityGatewaysSetIamPolicyCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *VProjectsLocationsSecurityGatewaysSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v/{+resource}:setIamPolicy") - 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{ - "resource": c.resource, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "beyondcorp.v.projects.locations.securityGateways.setIamPolicy" call. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleIamV1Policy.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 *VProjectsLocationsSecurityGatewaysSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, 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 := &GoogleIamV1Policy{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} diff --git a/chat/v1/chat-api.json b/chat/v1/chat-api.json index f6a3cee4867..62ce8ed92ed 100644 --- a/chat/v1/chat-api.json +++ b/chat/v1/chat-api.json @@ -567,7 +567,7 @@ "type": "string" }, "useAdminAccess": { - "description": "When `true`, the method runs using the user's Google Workspace administrator privileges. The calling user must be a Google Workspace administrator with the [manage chat and spaces conversations privilege](https://support.google.com/a/answer/13369245). Requires the `chat.admin.memberships` [OAuth 2.0 scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). Creating app memberships or creating memberships for users outside the administrator's Google Workspace organization isn't supported using admin access.", + "description": "Optional. When `true`, the method runs using the user's Google Workspace administrator privileges. The calling user must be a Google Workspace administrator with the [manage chat and spaces conversations privilege](https://support.google.com/a/answer/13369245). Requires the `chat.admin.memberships` [OAuth 2.0 scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). Creating app memberships or creating memberships for users outside the administrator's Google Workspace organization isn't supported using admin access.", "location": "query", "type": "boolean" } @@ -604,7 +604,7 @@ "type": "string" }, "useAdminAccess": { - "description": "When `true`, the method runs using the user's Google Workspace administrator privileges. The calling user must be a Google Workspace administrator with the [manage chat and spaces conversations privilege](https://support.google.com/a/answer/13369245). Requires the `chat.admin.memberships` [OAuth 2.0 scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). Deleting app memberships in a space isn't supported using admin access.", + "description": "Optional. When `true`, the method runs using the user's Google Workspace administrator privileges. The calling user must be a Google Workspace administrator with the [manage chat and spaces conversations privilege](https://support.google.com/a/answer/13369245). Requires the `chat.admin.memberships` [OAuth 2.0 scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). Deleting app memberships in a space isn't supported using admin access.", "location": "query", "type": "boolean" } @@ -638,7 +638,7 @@ "type": "string" }, "useAdminAccess": { - "description": "When `true`, the method runs using the user's Google Workspace administrator privileges. The calling user must be a Google Workspace administrator with the [manage chat and spaces conversations privilege](https://support.google.com/a/answer/13369245). Requires the `chat.admin.memberships` or `chat.admin.memberships.readonly` [OAuth 2.0 scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). Getting app memberships in a space isn't supported when using admin access.", + "description": "Optional. When `true`, the method runs using the user's Google Workspace administrator privileges. The calling user must be a Google Workspace administrator with the [manage chat and spaces conversations privilege](https://support.google.com/a/answer/13369245). Requires the `chat.admin.memberships` or `chat.admin.memberships.readonly` [OAuth 2.0 scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). Getting app memberships in a space isn't supported when using admin access.", "location": "query", "type": "boolean" } @@ -698,7 +698,7 @@ "type": "boolean" }, "useAdminAccess": { - "description": "When `true`, the method runs using the user's Google Workspace administrator privileges. The calling user must be a Google Workspace administrator with the [manage chat and spaces conversations privilege](https://support.google.com/a/answer/13369245). Requires either the `chat.admin.memberships.readonly` or `chat.admin.memberships` [OAuth 2.0 scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). Listing app memberships in a space isn't supported when using admin access.", + "description": "Optional. When `true`, the method runs using the user's Google Workspace administrator privileges. The calling user must be a Google Workspace administrator with the [manage chat and spaces conversations privilege](https://support.google.com/a/answer/13369245). Requires either the `chat.admin.memberships.readonly` or `chat.admin.memberships` [OAuth 2.0 scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes). Listing app memberships in a space isn't supported when using admin access.", "location": "query", "type": "boolean" } @@ -726,7 +726,7 @@ ], "parameters": { "name": { - "description": "Resource name of the membership, assigned by the server. Format: `spaces/{space}/members/{member}`", + "description": "Identifier. Resource name of the membership, assigned by the server. Format: `spaces/{space}/members/{member}`", "location": "path", "pattern": "^spaces/[^/]+/members/[^/]+$", "required": true, @@ -739,7 +739,7 @@ "type": "string" }, "useAdminAccess": { - "description": "When `true`, the method runs using the user's Google Workspace administrator privileges. The calling user must be a Google Workspace administrator with the [manage chat and spaces conversations privilege](https://support.google.com/a/answer/13369245). Requires the `chat.admin.memberships` [OAuth 2.0 scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes).", + "description": "Optional. When `true`, the method runs using the user's Google Workspace administrator privileges. The calling user must be a Google Workspace administrator with the [manage chat and spaces conversations privilege](https://support.google.com/a/answer/13369245). Requires the `chat.admin.memberships` [OAuth 2.0 scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes).", "location": "query", "type": "boolean" } @@ -763,7 +763,7 @@ "messages": { "methods": { "create": { - "description": "Creates a message in a Google Chat space. For an example, see [Send a message](https://developers.google.com/workspace/chat/create-messages). The `create()` method requires either [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) or [app authentication](https://developers.google.com/workspace/chat/authorize-import). Chat attributes the message sender differently depending on the type of authentication that you use in your request. The following image shows how Chat attributes a message when you use app authentication. Chat displays the Chat app as the message sender. The content of the message can contain text (`text`), cards (`cardsV2`), and accessory widgets (`accessoryWidgets`). ![Message sent with app authentication](https://developers.google.com/workspace/chat/images/message-app-auth.svg) The following image shows how Chat attributes a message when you use user authentication. Chat displays the user as the message sender and attributes the Chat app to the message by displaying its name. The content of message can only contain text (`text`). ![Message sent with user authentication](https://developers.google.com/workspace/chat/images/message-user-auth.svg) The maximum message size, including the message contents, is 32,000 bytes.", + "description": "Creates a message in a Google Chat space. For an example, see [Send a message](https://developers.google.com/workspace/chat/create-messages). The `create()` method requires either [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) or [app authentication](https://developers.google.com/workspace/chat/authorize-import). Chat attributes the message sender differently depending on the type of authentication that you use in your request. The following image shows how Chat attributes a message when you use app authentication. Chat displays the Chat app as the message sender. The content of the message can contain text (`text`), cards (`cardsV2`), and accessory widgets (`accessoryWidgets`). ![Message sent with app authentication](https://developers.google.com/workspace/chat/images/message-app-auth.svg) The following image shows how Chat attributes a message when you use user authentication. Chat displays the user as the message sender and attributes the Chat app to the message by displaying its name. The content of message can only contain text (`text`). ![Message sent with user authentication](https://developers.google.com/workspace/chat/images/message-user-auth.svg) The maximum message size, including the message contents, is 32,000 bytes. For [webhook](https://developers.google.com/workspace/chat/quickstart/webhooks) requests, the response doesn't contain the full message. The response only populates the `name` and `thread.name` fields in addition to the information that was in the request.", "flatPath": "v1/spaces/{spacesId}/messages", "httpMethod": "POST", "id": "chat.spaces.messages.create", @@ -1212,7 +1212,7 @@ "type": "integer" }, "pageToken": { - "description": "A page token, received from a previous list space events call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to list space events must match the call that provided the page token. Passing different values to the other parameters might lead to unexpected results.", + "description": "Optional. A page token, received from a previous list space events call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to list space events must match the call that provided the page token. Passing different values to the other parameters might lead to unexpected results.", "location": "query", "type": "string" }, @@ -1344,7 +1344,7 @@ } } }, - "revision": "20241020", + "revision": "20241031", "rootUrl": "https://chat.googleapis.com/", "schemas": { "AccessSettings": { @@ -2117,7 +2117,7 @@ "readOnly": true }, "unicode": { - "description": "A basic emoji represented by a unicode string.", + "description": "Optional. A basic emoji represented by a unicode string.", "type": "string" } }, @@ -2129,11 +2129,13 @@ "properties": { "emoji": { "$ref": "Emoji", - "description": "Emoji associated with the reactions." + "description": "Output only. Emoji associated with the reactions.", + "readOnly": true }, "reactionCount": { - "description": "The total number of reactions using the associated emoji.", + "description": "Output only. The total number of reactions using the associated emoji.", "format": "int32", + "readOnly": true, "type": "integer" } }, @@ -3774,14 +3776,14 @@ }, "groupMember": { "$ref": "Group", - "description": "The Google Group the membership corresponds to. Reading or mutating memberships for Google Groups requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)." + "description": "Optional. The Google Group the membership corresponds to. Reading or mutating memberships for Google Groups requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)." }, "member": { "$ref": "User", - "description": "The Google Chat user or app the membership corresponds to. If your Chat app [authenticates as a user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), the output populates the [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) `name` and `type`." + "description": "Optional. The Google Chat user or app the membership corresponds to. If your Chat app [authenticates as a user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), the output populates the [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) `name` and `type`." }, "name": { - "description": "Resource name of the membership, assigned by the server. Format: `spaces/{space}/members/{member}`", + "description": "Identifier. Resource name of the membership, assigned by the server. Format: `spaces/{space}/members/{member}`", "type": "string" }, "role": { @@ -4239,10 +4241,10 @@ "properties": { "emoji": { "$ref": "Emoji", - "description": "The emoji used in the reaction." + "description": "Required. The emoji used in the reaction." }, "name": { - "description": "The resource name of the reaction. Format: `spaces/{space}/messages/{message}/reactions/{reaction}`", + "description": "Identifier. The resource name of the reaction. Format: `spaces/{space}/messages/{message}/reactions/{reaction}`", "type": "string" }, "user": { diff --git a/chat/v1/chat-gen.go b/chat/v1/chat-gen.go index 639de7841df..fc8af65bd0f 100644 --- a/chat/v1/chat-gen.go +++ b/chat/v1/chat-gen.go @@ -1572,7 +1572,7 @@ func (s DriveLinkData) MarshalJSON() ([]byte, error) { type Emoji struct { // CustomEmoji: Output only. A custom emoji. CustomEmoji *CustomEmoji `json:"customEmoji,omitempty"` - // Unicode: A basic emoji represented by a unicode string. + // Unicode: Optional. A basic emoji represented by a unicode string. Unicode string `json:"unicode,omitempty"` // ForceSendFields is a list of field names (e.g. "CustomEmoji") to // unconditionally include in API requests. By default, fields with empty or @@ -1595,9 +1595,10 @@ func (s Emoji) MarshalJSON() ([]byte, error) { // EmojiReactionSummary: The number of people who reacted to a message with a // specific emoji. type EmojiReactionSummary struct { - // Emoji: Emoji associated with the reactions. + // Emoji: Output only. Emoji associated with the reactions. Emoji *Emoji `json:"emoji,omitempty"` - // ReactionCount: The total number of reactions using the associated emoji. + // ReactionCount: Output only. The total number of reactions using the + // associated emoji. ReactionCount int64 `json:"reactionCount,omitempty"` // ForceSendFields is a list of field names (e.g. "Emoji") to unconditionally // include in API requests. By default, fields with empty or default values are @@ -4010,19 +4011,20 @@ type Membership struct { // only, except when used to import historical memberships in import mode // spaces. DeleteTime string `json:"deleteTime,omitempty"` - // GroupMember: The Google Group the membership corresponds to. Reading or - // mutating memberships for Google Groups requires user authentication + // GroupMember: Optional. The Google Group the membership corresponds to. + // Reading or mutating memberships for Google Groups requires user + // authentication // (https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). GroupMember *Group `json:"groupMember,omitempty"` - // Member: The Google Chat user or app the membership corresponds to. If your - // Chat app authenticates as a user + // Member: Optional. The Google Chat user or app the membership corresponds to. + // If your Chat app authenticates as a user // (https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), // the output populates the user // (https://developers.google.com/workspace/chat/api/reference/rest/v1/User) // `name` and `type`. Member *User `json:"member,omitempty"` - // Name: Resource name of the membership, assigned by the server. Format: - // `spaces/{space}/members/{member}` + // Name: Identifier. Resource name of the membership, assigned by the server. + // Format: `spaces/{space}/members/{member}` Name string `json:"name,omitempty"` // Role: Optional. User's role within a Chat space, which determines their // permitted actions in the space. This field can only be used as input in @@ -4679,9 +4681,9 @@ func (s QuotedMessageMetadata) MarshalJSON() ([]byte, error) { // Reaction: A reaction to a message. type Reaction struct { - // Emoji: The emoji used in the reaction. + // Emoji: Required. The emoji used in the reaction. Emoji *Emoji `json:"emoji,omitempty"` - // Name: The resource name of the reaction. Format: + // Name: Identifier. The resource name of the reaction. Format: // `spaces/{space}/messages/{message}/reactions/{reaction}` Name string `json:"name,omitempty"` // User: Output only. The user who created the reaction. @@ -8106,8 +8108,8 @@ type SpacesMembersPatchCall struct { // You can authenticate and authorize this method with administrator privileges // by setting the `use_admin_access` field in the request. // -// - name: Resource name of the membership, assigned by the server. Format: -// `spaces/{space}/members/{member}`. +// - name: Identifier. Resource name of the membership, assigned by the server. +// Format: `spaces/{space}/members/{member}`. func (r *SpacesMembersService) Patch(name string, membership *Membership) *SpacesMembersPatchCall { c := &SpacesMembersPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -8245,6 +8247,11 @@ type SpacesMessagesCreateCall struct { // can only contain text (`text`). !Message sent with user authentication // (https://developers.google.com/workspace/chat/images/message-user-auth.svg) // The maximum message size, including the message contents, is 32,000 bytes. +// For webhook +// (https://developers.google.com/workspace/chat/quickstart/webhooks) requests, +// the response doesn't contain the full message. The response only populates +// the `name` and `thread.name` fields in addition to the information that was +// in the request. // // - parent: The resource name of the space in which to create a message. // Format: `spaces/{space}`. diff --git a/cloudchannel/v1/cloudchannel-api.json b/cloudchannel/v1/cloudchannel-api.json index 6ca03c1f02f..85f3b758a02 100644 --- a/cloudchannel/v1/cloudchannel-api.json +++ b/cloudchannel/v1/cloudchannel-api.json @@ -2289,7 +2289,7 @@ } } }, - "revision": "20241024", + "revision": "20241102", "rootUrl": "https://cloudchannel.googleapis.com/", "schemas": { "GoogleCloudChannelV1ActivateEntitlementRequest": { @@ -2429,6 +2429,10 @@ }, "type": "array" }, + "priceReferenceId": { + "description": "Optional. Price reference ID for the offer. Optional field only for offers that require additional price information. Used to guarantee that the pricing is consistent between quoting the offer and placing the order. Yet to be implemented: this field is currently not evaluated in the API if populated in a request.", + "type": "string" + }, "purchaseOrderId": { "description": "Optional. Purchase order id provided by the reseller.", "type": "string" @@ -2955,7 +2959,7 @@ "type": "string" }, "eventType": { - "description": "Type of event which happened on the customer.", + "description": "Type of event which happened for the customer.", "enum": [ "TYPE_UNSPECIFIED", "PRIMARY_DOMAIN_CHANGED", @@ -3104,6 +3108,10 @@ }, "type": "array" }, + "priceReferenceId": { + "description": "Optional. Price reference ID for the offer. Optional field only for offers that require additional price information. Used to guarantee that the pricing is consistent between quoting the offer and placing the order. Yet to be implemented: this field is currently not evaluated in the API if populated in a request.", + "type": "string" + }, "provisionedService": { "$ref": "GoogleCloudChannelV1ProvisionedService", "description": "Output only. Service provisioning details for the entitlement.", @@ -3324,7 +3332,7 @@ "type": "string" }, "eventType": { - "description": "Type of event which happened on the entitlement.", + "description": "Type of event which happened for the entitlement.", "enum": [ "TYPE_UNSPECIFIED", "CREATED", @@ -4316,6 +4324,10 @@ "offer": { "$ref": "GoogleCloudChannelV1Offer", "description": "Offer." + }, + "priceReferenceId": { + "description": "Optional. Price reference ID for the offer. Optional field only for offers that require additional price information. Used to guarantee that the pricing is consistent between quoting the offer and placing the order.", + "type": "string" } }, "type": "object" @@ -4888,6 +4900,10 @@ "offer": { "$ref": "GoogleCloudChannelV1Offer", "description": "Offer with parameter constraints updated to allow the Transfer." + }, + "priceReferenceId": { + "description": "Optional. Price reference ID for the offer. Optional field only for offers that require additional price information. Used to guarantee that the pricing is consistent between quoting the offer and placing the order.", + "type": "string" } }, "type": "object" @@ -5026,7 +5042,7 @@ "type": "string" }, "eventType": { - "description": "Type of event performed on the Channel Partner.", + "description": "Type of event which happened for the channel partner.", "enum": [ "TYPE_UNSPECIFIED", "LINK_STATE_CHANGED", @@ -5112,7 +5128,7 @@ "type": "string" }, "eventType": { - "description": "Type of event which happened on the customer.", + "description": "Type of event which happened for the customer.", "enum": [ "TYPE_UNSPECIFIED", "PRIMARY_DOMAIN_CHANGED", @@ -5302,7 +5318,7 @@ "type": "string" }, "eventType": { - "description": "Type of event which happened on the entitlement.", + "description": "Type of event which happened for the entitlement.", "enum": [ "TYPE_UNSPECIFIED", "CREATED", @@ -5383,6 +5399,31 @@ }, "type": "object" }, + "GoogleCloudChannelV1alpha1OpportunityEvent": { + "description": "Represents Pub/Sub message content describing opportunity updates.", + "id": "GoogleCloudChannelV1alpha1OpportunityEvent", + "properties": { + "eventType": { + "description": "Type of event which happened for the opportunity.", + "enum": [ + "TYPE_UNSPECIFIED", + "CREATED", + "UPDATED" + ], + "enumDescriptions": [ + "Not used.", + "New opportunity created.", + "Existing opportunity updated." + ], + "type": "string" + }, + "opportunity": { + "description": "Resource name of the opportunity. Format: opportunities/{opportunity}", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudChannelV1alpha1Parameter": { "description": "Definition for extended entitlement parameters.", "id": "GoogleCloudChannelV1alpha1Parameter", @@ -5652,6 +5693,10 @@ "entitlementEvent": { "$ref": "GoogleCloudChannelV1alpha1EntitlementEvent", "description": "Entitlement event sent as part of Pub/Sub event to partners." + }, + "opportunityEvent": { + "$ref": "GoogleCloudChannelV1alpha1OpportunityEvent", + "description": "Opportunity event sent as part of Pub/Sub event to partners/integrators." } }, "type": "object" @@ -5885,7 +5930,7 @@ "type": "object" }, "GoogleTypeDecimal": { - "description": "A representation of a decimal value, such as 2.5. Clients may convert values into language-native decimal formats, such as Java's BigDecimal or Python's decimal.Decimal. [BigDecimal]: https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html [decimal.Decimal]: https://docs.python.org/3/library/decimal.html", + "description": "A representation of a decimal value, such as 2.5. Clients may convert values into language-native decimal formats, such as Java's [BigDecimal](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html) or Python's [decimal.Decimal](https://docs.python.org/3/library/decimal.html).", "id": "GoogleTypeDecimal", "properties": { "value": { diff --git a/cloudchannel/v1/cloudchannel-gen.go b/cloudchannel/v1/cloudchannel-gen.go index c3f65697780..9561c434cf1 100644 --- a/cloudchannel/v1/cloudchannel-gen.go +++ b/cloudchannel/v1/cloudchannel-gen.go @@ -560,6 +560,12 @@ type GoogleCloudChannelV1ChangeOfferRequest struct { // available Parameters refer to the Offer.parameter_definitions from the // desired offer. Parameters []*GoogleCloudChannelV1Parameter `json:"parameters,omitempty"` + // PriceReferenceId: Optional. Price reference ID for the offer. Optional field + // only for offers that require additional price information. Used to guarantee + // that the pricing is consistent between quoting the offer and placing the + // order. Yet to be implemented: this field is currently not evaluated in the + // API if populated in a request. + PriceReferenceId string `json:"priceReferenceId,omitempty"` // PurchaseOrderId: Optional. Purchase order id provided by the reseller. PurchaseOrderId string `json:"purchaseOrderId,omitempty"` // RequestId: Optional. You can specify an optional unique request ID, and if @@ -1210,7 +1216,7 @@ type GoogleCloudChannelV1CustomerEvent struct { // Customer: Resource name of the customer. Format: // accounts/{account_id}/customers/{customer_id} Customer string `json:"customer,omitempty"` - // EventType: Type of event which happened on the customer. + // EventType: Type of event which happened for the customer. // // Possible values: // "TYPE_UNSPECIFIED" - Not used. @@ -1381,6 +1387,12 @@ type GoogleCloudChannelV1Entitlement struct { // Google Cloud billing subaccounts, the following Parameter may be accepted as // input: - display_name: The display name of the billing subaccount. Parameters []*GoogleCloudChannelV1Parameter `json:"parameters,omitempty"` + // PriceReferenceId: Optional. Price reference ID for the offer. Optional field + // only for offers that require additional price information. Used to guarantee + // that the pricing is consistent between quoting the offer and placing the + // order. Yet to be implemented: this field is currently not evaluated in the + // API if populated in a request. + PriceReferenceId string `json:"priceReferenceId,omitempty"` // ProvisionedService: Output only. Service provisioning details for the // entitlement. ProvisionedService *GoogleCloudChannelV1ProvisionedService `json:"provisionedService,omitempty"` @@ -1552,7 +1564,7 @@ type GoogleCloudChannelV1EntitlementEvent struct { // Entitlement: Resource name of an entitlement of the form: // accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} Entitlement string `json:"entitlement,omitempty"` - // EventType: Type of event which happened on the entitlement. + // EventType: Type of event which happened for the entitlement. // // Possible values: // "TYPE_UNSPECIFIED" - Not used. @@ -2853,6 +2865,11 @@ func (s GoogleCloudChannelV1ProvisionedService) MarshalJSON() ([]byte, error) { type GoogleCloudChannelV1PurchasableOffer struct { // Offer: Offer. Offer *GoogleCloudChannelV1Offer `json:"offer,omitempty"` + // PriceReferenceId: Optional. Price reference ID for the offer. Optional field + // only for offers that require additional price information. Used to guarantee + // that the pricing is consistent between quoting the offer and placing the + // order. + PriceReferenceId string `json:"priceReferenceId,omitempty"` // ForceSendFields is a list of field names (e.g. "Offer") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See @@ -3733,6 +3750,11 @@ func (s GoogleCloudChannelV1TransferEntitlementsToGoogleRequest) MarshalJSON() ( type GoogleCloudChannelV1TransferableOffer struct { // Offer: Offer with parameter constraints updated to allow the Transfer. Offer *GoogleCloudChannelV1Offer `json:"offer,omitempty"` + // PriceReferenceId: Optional. Price reference ID for the offer. Optional field + // only for offers that require additional price information. Used to guarantee + // that the pricing is consistent between quoting the offer and placing the + // order. + PriceReferenceId string `json:"priceReferenceId,omitempty"` // ForceSendFields is a list of field names (e.g. "Offer") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See @@ -3968,7 +3990,7 @@ type GoogleCloudChannelV1alpha1ChannelPartnerEvent struct { // uses the format: // accounts/{account_id}/channelPartnerLinks/{channel_partner_id} ChannelPartner string `json:"channelPartner,omitempty"` - // EventType: Type of event performed on the Channel Partner. + // EventType: Type of event which happened for the channel partner. // // Possible values: // "TYPE_UNSPECIFIED" - Default value. Does not display if there are no @@ -4070,7 +4092,7 @@ type GoogleCloudChannelV1alpha1CustomerEvent struct { // Customer: Resource name of the customer. Format: // accounts/{account_id}/customers/{customer_id} Customer string `json:"customer,omitempty"` - // EventType: Type of event which happened on the customer. + // EventType: Type of event which happened for the customer. // // Possible values: // "TYPE_UNSPECIFIED" - Not used. @@ -4258,7 +4280,7 @@ type GoogleCloudChannelV1alpha1EntitlementEvent struct { // Entitlement: Resource name of an entitlement of the form: // accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} Entitlement string `json:"entitlement,omitempty"` - // EventType: Type of event which happened on the entitlement. + // EventType: Type of event which happened for the entitlement. // // Possible values: // "TYPE_UNSPECIFIED" - Not used. @@ -4349,6 +4371,37 @@ func (s GoogleCloudChannelV1alpha1OperationMetadata) MarshalJSON() ([]byte, erro return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudChannelV1alpha1OpportunityEvent: Represents Pub/Sub message +// content describing opportunity updates. +type GoogleCloudChannelV1alpha1OpportunityEvent struct { + // EventType: Type of event which happened for the opportunity. + // + // Possible values: + // "TYPE_UNSPECIFIED" - Not used. + // "CREATED" - New opportunity created. + // "UPDATED" - Existing opportunity updated. + EventType string `json:"eventType,omitempty"` + // Opportunity: Resource name of the opportunity. Format: + // opportunities/{opportunity} + Opportunity string `json:"opportunity,omitempty"` + // ForceSendFields is a list of field names (e.g. "EventType") 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. "EventType") 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 GoogleCloudChannelV1alpha1OpportunityEvent) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudChannelV1alpha1OpportunityEvent + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudChannelV1alpha1Parameter: Definition for extended entitlement // parameters. type GoogleCloudChannelV1alpha1Parameter struct { @@ -4663,6 +4716,9 @@ type GoogleCloudChannelV1alpha1SubscriberEvent struct { // EntitlementEvent: Entitlement event sent as part of Pub/Sub event to // partners. EntitlementEvent *GoogleCloudChannelV1alpha1EntitlementEvent `json:"entitlementEvent,omitempty"` + // OpportunityEvent: Opportunity event sent as part of Pub/Sub event to + // partners/integrators. + OpportunityEvent *GoogleCloudChannelV1alpha1OpportunityEvent `json:"opportunityEvent,omitempty"` // ForceSendFields is a list of field names (e.g. "ChannelPartnerEvent") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -5004,9 +5060,10 @@ func (s GoogleTypeDateTime) MarshalJSON() ([]byte, error) { // GoogleTypeDecimal: A representation of a decimal value, such as 2.5. Clients // may convert values into language-native decimal formats, such as Java's -// BigDecimal or Python's decimal.Decimal. [BigDecimal]: -// https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html -// [decimal.Decimal]: https://docs.python.org/3/library/decimal.html +// BigDecimal +// (https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html) +// or Python's decimal.Decimal +// (https://docs.python.org/3/library/decimal.html). type GoogleTypeDecimal struct { // Value: The decimal value, as a string. The string representation consists of // an optional sign, `+` (`U+002B`) or `-` (`U+002D`), followed by a sequence diff --git a/clouddeploy/v1/clouddeploy-api.json b/clouddeploy/v1/clouddeploy-api.json index 69151b94264..e9bc43e7e2e 100644 --- a/clouddeploy/v1/clouddeploy-api.json +++ b/clouddeploy/v1/clouddeploy-api.json @@ -2289,7 +2289,7 @@ } } }, - "revision": "20241010", + "revision": "20241029", "rootUrl": "https://clouddeploy.googleapis.com/", "schemas": { "AbandonReleaseRequest": { @@ -2694,6 +2694,10 @@ "repairRolloutRule": { "$ref": "RepairRolloutRule", "description": "Optional. The `RepairRolloutRule` will automatically repair a failed rollout." + }, + "timedPromoteReleaseRule": { + "$ref": "TimedPromoteReleaseRule", + "description": "Optional. The `TimedPromoteReleaseRule` will automatically promote a release from the current target(s) to the specified target(s) on a configured schedule." } }, "type": "object" @@ -2705,6 +2709,10 @@ "targetsPresentCondition": { "$ref": "TargetsPresentCondition", "description": "Optional. Details around targets enumerated in the rule." + }, + "timedPromoteReleaseCondition": { + "$ref": "TimedPromoteReleaseCondition", + "description": "Optional. TimedPromoteReleaseCondition contains rule conditions specific to a an Automation with a timed promote release rule defined." } }, "type": "object" @@ -2804,10 +2812,15 @@ "type": "string" }, "targetId": { - "description": "Output only. The ID of the target that represents the promotion stage that initiates the `AutomationRun`. The value of this field is the last segment of a target name.", + "description": "Output only. The ID of the source target that initiates the `AutomationRun`. The value of this field is the last segment of a target name.", "readOnly": true, "type": "string" }, + "timedPromoteReleaseOperation": { + "$ref": "TimedPromoteReleaseOperation", + "description": "Output only. Promotes a release to a specified 'Target' as defined in a Timed Promote Release rule.", + "readOnly": true + }, "updateTime": { "description": "Output only. Time at which the automationRun was updated.", "format": "google-datetime", @@ -6914,6 +6927,21 @@ }, "type": "object" }, + "Targets": { + "description": "The targets involved in a single timed promotion.", + "id": "Targets", + "properties": { + "destinationTargetId": { + "description": "Optional. The destination target ID.", + "type": "string" + }, + "sourceTargetId": { + "description": "Optional. The source target ID.", + "type": "string" + } + }, + "type": "object" + }, "TargetsPresentCondition": { "description": "`TargetsPresentCondition` contains information on any Targets referenced in the Delivery Pipeline that do not actually exist.", "id": "TargetsPresentCondition", @@ -7052,6 +7080,81 @@ }, "type": "object" }, + "TimedPromoteReleaseCondition": { + "description": "`TimedPromoteReleaseCondition` contains conditions specific to an Automation with a Timed Promote Release rule defined.", + "id": "TimedPromoteReleaseCondition", + "properties": { + "nextPromotionTime": { + "description": "Output only. When the next scheduled promotion(s) will occur.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "targetsList": { + "description": "Output only. A list of targets involved in the upcoming timed promotion(s).", + "items": { + "$ref": "Targets" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, + "TimedPromoteReleaseOperation": { + "description": "Contains the information of an automated timed promote-release operation.", + "id": "TimedPromoteReleaseOperation", + "properties": { + "phase": { + "description": "Output only. The starting phase of the rollout created by this operation.", + "readOnly": true, + "type": "string" + }, + "release": { + "description": "Output only. The name of the release to be promoted.", + "readOnly": true, + "type": "string" + }, + "targetId": { + "description": "Output only. The ID of the target that represents the promotion stage to which the release will be promoted. The value of this field is the last segment of a target name.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "TimedPromoteReleaseRule": { + "description": "The `TimedPromoteReleaseRule` will automatically promote a release from the current target(s) to the specified target(s) on a configured schedule.", + "id": "TimedPromoteReleaseRule", + "properties": { + "condition": { + "$ref": "AutomationRuleCondition", + "description": "Output only. Information around the state of the Automation rule.", + "readOnly": true + }, + "destinationPhase": { + "description": "Optional. The starting phase of the rollout created by this rule. Default to the first phase.", + "type": "string" + }, + "destinationTargetId": { + "description": "Optional. The ID of the stage in the pipeline to which this `Release` is deploying. If unspecified, default it to the next stage in the promotion flow. The value of this field could be one of the following: * The last segment of a target name * \"@next\", the next target in the promotion sequence", + "type": "string" + }, + "id": { + "description": "Required. ID of the rule. This ID must be unique in the `Automation` resource to which this rule belongs. The format is `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.", + "type": "string" + }, + "schedule": { + "description": "Required. Schedule in crontab format. e.g. \"0 9 * * 1\" for every Monday at 9am.", + "type": "string" + }, + "timeZone": { + "description": "Required. The time zone in IANA format [IANA Time Zone Database](https://www.iana.org/time-zones) (e.g. America/New_York).", + "type": "string" + } + }, + "type": "object" + }, "VerifyJob": { "description": "A verify Job.", "id": "VerifyJob", diff --git a/clouddeploy/v1/clouddeploy-gen.go b/clouddeploy/v1/clouddeploy-gen.go index d46d3ec43ad..f5372f4c95a 100644 --- a/clouddeploy/v1/clouddeploy-gen.go +++ b/clouddeploy/v1/clouddeploy-gen.go @@ -780,6 +780,10 @@ type AutomationRule struct { // RepairRolloutRule: Optional. The `RepairRolloutRule` will automatically // repair a failed rollout. RepairRolloutRule *RepairRolloutRule `json:"repairRolloutRule,omitempty"` + // TimedPromoteReleaseRule: Optional. The `TimedPromoteReleaseRule` will + // automatically promote a release from the current target(s) to the specified + // target(s) on a configured schedule. + TimedPromoteReleaseRule *TimedPromoteReleaseRule `json:"timedPromoteReleaseRule,omitempty"` // ForceSendFields is a list of field names (e.g. "AdvanceRolloutRule") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -804,6 +808,10 @@ type AutomationRuleCondition struct { // TargetsPresentCondition: Optional. Details around targets enumerated in the // rule. TargetsPresentCondition *TargetsPresentCondition `json:"targetsPresentCondition,omitempty"` + // TimedPromoteReleaseCondition: Optional. TimedPromoteReleaseCondition + // contains rule conditions specific to a an Automation with a timed promote + // release rule defined. + TimedPromoteReleaseCondition *TimedPromoteReleaseCondition `json:"timedPromoteReleaseCondition,omitempty"` // ForceSendFields is a list of field names (e.g. "TargetsPresentCondition") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -875,10 +883,13 @@ type AutomationRun struct { // StateDescription: Output only. Explains the current state of the // `AutomationRun`. Present only when an explanation is needed. StateDescription string `json:"stateDescription,omitempty"` - // TargetId: Output only. The ID of the target that represents the promotion - // stage that initiates the `AutomationRun`. The value of this field is the - // last segment of a target name. + // TargetId: Output only. The ID of the source target that initiates the + // `AutomationRun`. The value of this field is the last segment of a target + // name. TargetId string `json:"targetId,omitempty"` + // TimedPromoteReleaseOperation: Output only. Promotes a release to a specified + // 'Target' as defined in a Timed Promote Release rule. + TimedPromoteReleaseOperation *TimedPromoteReleaseOperation `json:"timedPromoteReleaseOperation,omitempty"` // UpdateTime: Output only. Time at which the automationRun was updated. UpdateTime string `json:"updateTime,omitempty"` // WaitUntilTime: Output only. Earliest time the `AutomationRun` will attempt @@ -5531,6 +5542,30 @@ func (s TargetRender) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// Targets: The targets involved in a single timed promotion. +type Targets struct { + // DestinationTargetId: Optional. The destination target ID. + DestinationTargetId string `json:"destinationTargetId,omitempty"` + // SourceTargetId: Optional. The source target ID. + SourceTargetId string `json:"sourceTargetId,omitempty"` + // ForceSendFields is a list of field names (e.g. "DestinationTargetId") 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. "DestinationTargetId") 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 Targets) MarshalJSON() ([]byte, error) { + type NoMethod Targets + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // TargetsPresentCondition: `TargetsPresentCondition` contains information on // any Targets referenced in the Delivery Pipeline that do not actually exist. type TargetsPresentCondition struct { @@ -5735,6 +5770,107 @@ func (s TimeWindows) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// TimedPromoteReleaseCondition: `TimedPromoteReleaseCondition` contains +// conditions specific to an Automation with a Timed Promote Release rule +// defined. +type TimedPromoteReleaseCondition struct { + // NextPromotionTime: Output only. When the next scheduled promotion(s) will + // occur. + NextPromotionTime string `json:"nextPromotionTime,omitempty"` + // TargetsList: Output only. A list of targets involved in the upcoming timed + // promotion(s). + TargetsList []*Targets `json:"targetsList,omitempty"` + // ForceSendFields is a list of field names (e.g. "NextPromotionTime") 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. "NextPromotionTime") 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 TimedPromoteReleaseCondition) MarshalJSON() ([]byte, error) { + type NoMethod TimedPromoteReleaseCondition + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// TimedPromoteReleaseOperation: Contains the information of an automated timed +// promote-release operation. +type TimedPromoteReleaseOperation struct { + // Phase: Output only. The starting phase of the rollout created by this + // operation. + Phase string `json:"phase,omitempty"` + // Release: Output only. The name of the release to be promoted. + Release string `json:"release,omitempty"` + // TargetId: Output only. The ID of the target that represents the promotion + // stage to which the release will be promoted. The value of this field is the + // last segment of a target name. + TargetId string `json:"targetId,omitempty"` + // ForceSendFields is a list of field names (e.g. "Phase") 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. "Phase") 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 TimedPromoteReleaseOperation) MarshalJSON() ([]byte, error) { + type NoMethod TimedPromoteReleaseOperation + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// TimedPromoteReleaseRule: The `TimedPromoteReleaseRule` will automatically +// promote a release from the current target(s) to the specified target(s) on a +// configured schedule. +type TimedPromoteReleaseRule struct { + // Condition: Output only. Information around the state of the Automation rule. + Condition *AutomationRuleCondition `json:"condition,omitempty"` + // DestinationPhase: Optional. The starting phase of the rollout created by + // this rule. Default to the first phase. + DestinationPhase string `json:"destinationPhase,omitempty"` + // DestinationTargetId: Optional. The ID of the stage in the pipeline to which + // this `Release` is deploying. If unspecified, default it to the next stage in + // the promotion flow. The value of this field could be one of the following: * + // The last segment of a target name * "@next", the next target in the + // promotion sequence + DestinationTargetId string `json:"destinationTargetId,omitempty"` + // Id: Required. ID of the rule. This ID must be unique in the `Automation` + // resource to which this rule belongs. The format is + // `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. + Id string `json:"id,omitempty"` + // Schedule: Required. Schedule in crontab format. e.g. "0 9 * * 1" for every + // Monday at 9am. + Schedule string `json:"schedule,omitempty"` + // TimeZone: Required. The time zone in IANA format IANA Time Zone Database + // (https://www.iana.org/time-zones) (e.g. America/New_York). + TimeZone string `json:"timeZone,omitempty"` + // ForceSendFields is a list of field names (e.g. "Condition") 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. "Condition") 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 TimedPromoteReleaseRule) MarshalJSON() ([]byte, error) { + type NoMethod TimedPromoteReleaseRule + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // VerifyJob: A verify Job. type VerifyJob struct { } diff --git a/cloudfunctions/v2/cloudfunctions-api.json b/cloudfunctions/v2/cloudfunctions-api.json index 154b292ab8c..a22cd189f4c 100644 --- a/cloudfunctions/v2/cloudfunctions-api.json +++ b/cloudfunctions/v2/cloudfunctions-api.json @@ -716,7 +716,7 @@ } } }, - "revision": "20240905", + "revision": "20241024", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AbortFunctionUpgradeRequest": { @@ -2058,7 +2058,7 @@ "type": "object" }, "UpgradeInfo": { - "description": "Information related to: * A function's eligibility for 1st Gen to 2nd Gen migration * Current state of migration for function undergoing migration.", + "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.", "id": "UpgradeInfo", "properties": { "buildConfig": { @@ -2085,7 +2085,8 @@ "REDIRECT_FUNCTION_UPGRADE_TRAFFIC_SUCCESSFUL", "REDIRECT_FUNCTION_UPGRADE_TRAFFIC_ERROR", "ROLLBACK_FUNCTION_UPGRADE_TRAFFIC_ERROR", - "COMMIT_FUNCTION_UPGRADE_ERROR" + "COMMIT_FUNCTION_UPGRADE_ERROR", + "DETACH_IN_PROGRESS" ], "enumDescriptions": [ "Unspecified state. Most functions are in this upgrade state.", @@ -2097,7 +2098,8 @@ "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." + "CommitFunctionUpgrade API was un-successful.", + "Function is requested to be detached from 2nd Gen to CRf." ], "type": "string" } diff --git a/cloudfunctions/v2/cloudfunctions-gen.go b/cloudfunctions/v2/cloudfunctions-gen.go index d0294c4470e..ee62fefa9a8 100644 --- a/cloudfunctions/v2/cloudfunctions-gen.go +++ b/cloudfunctions/v2/cloudfunctions-gen.go @@ -1916,8 +1916,8 @@ func (s TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { } // UpgradeInfo: Information related to: * A function's eligibility for 1st Gen -// to 2nd Gen migration * Current state of migration for function undergoing -// migration. +// to 2nd Gen migration and 2nd Gen to CRf detach. * Current state of migration +// for function undergoing migration/detach. type UpgradeInfo struct { // BuildConfig: Describes the Build step of the function that builds a // container to prepare for 2nd gen upgrade. @@ -1953,6 +1953,8 @@ 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 cbf7e3f2d6c..9f4763dc162 100644 --- a/cloudfunctions/v2alpha/cloudfunctions-api.json +++ b/cloudfunctions/v2alpha/cloudfunctions-api.json @@ -716,7 +716,7 @@ } } }, - "revision": "20240905", + "revision": "20241024", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AbortFunctionUpgradeRequest": { @@ -2058,7 +2058,7 @@ "type": "object" }, "UpgradeInfo": { - "description": "Information related to: * A function's eligibility for 1st Gen to 2nd Gen migration * Current state of migration for function undergoing migration.", + "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.", "id": "UpgradeInfo", "properties": { "buildConfig": { @@ -2085,7 +2085,8 @@ "REDIRECT_FUNCTION_UPGRADE_TRAFFIC_SUCCESSFUL", "REDIRECT_FUNCTION_UPGRADE_TRAFFIC_ERROR", "ROLLBACK_FUNCTION_UPGRADE_TRAFFIC_ERROR", - "COMMIT_FUNCTION_UPGRADE_ERROR" + "COMMIT_FUNCTION_UPGRADE_ERROR", + "DETACH_IN_PROGRESS" ], "enumDescriptions": [ "Unspecified state. Most functions are in this upgrade state.", @@ -2097,7 +2098,8 @@ "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." + "CommitFunctionUpgrade API was un-successful.", + "Function is requested to be detached from 2nd Gen to CRf." ], "type": "string" } diff --git a/cloudfunctions/v2alpha/cloudfunctions-gen.go b/cloudfunctions/v2alpha/cloudfunctions-gen.go index 3dfc02d8198..afe1d8ab21d 100644 --- a/cloudfunctions/v2alpha/cloudfunctions-gen.go +++ b/cloudfunctions/v2alpha/cloudfunctions-gen.go @@ -1916,8 +1916,8 @@ func (s TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { } // UpgradeInfo: Information related to: * A function's eligibility for 1st Gen -// to 2nd Gen migration * Current state of migration for function undergoing -// migration. +// to 2nd Gen migration and 2nd Gen to CRf detach. * Current state of migration +// for function undergoing migration/detach. type UpgradeInfo struct { // BuildConfig: Describes the Build step of the function that builds a // container to prepare for 2nd gen upgrade. @@ -1953,6 +1953,8 @@ 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 fe436718fa7..c9a11116cd2 100644 --- a/cloudfunctions/v2beta/cloudfunctions-api.json +++ b/cloudfunctions/v2beta/cloudfunctions-api.json @@ -716,7 +716,7 @@ } } }, - "revision": "20240905", + "revision": "20241024", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AbortFunctionUpgradeRequest": { @@ -2058,7 +2058,7 @@ "type": "object" }, "UpgradeInfo": { - "description": "Information related to: * A function's eligibility for 1st Gen to 2nd Gen migration * Current state of migration for function undergoing migration.", + "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.", "id": "UpgradeInfo", "properties": { "buildConfig": { @@ -2085,7 +2085,8 @@ "REDIRECT_FUNCTION_UPGRADE_TRAFFIC_SUCCESSFUL", "REDIRECT_FUNCTION_UPGRADE_TRAFFIC_ERROR", "ROLLBACK_FUNCTION_UPGRADE_TRAFFIC_ERROR", - "COMMIT_FUNCTION_UPGRADE_ERROR" + "COMMIT_FUNCTION_UPGRADE_ERROR", + "DETACH_IN_PROGRESS" ], "enumDescriptions": [ "Unspecified state. Most functions are in this upgrade state.", @@ -2097,7 +2098,8 @@ "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." + "CommitFunctionUpgrade API was un-successful.", + "Function is requested to be detached from 2nd Gen to CRf." ], "type": "string" } diff --git a/cloudfunctions/v2beta/cloudfunctions-gen.go b/cloudfunctions/v2beta/cloudfunctions-gen.go index 8eb549b08d0..f6adbb0c68c 100644 --- a/cloudfunctions/v2beta/cloudfunctions-gen.go +++ b/cloudfunctions/v2beta/cloudfunctions-gen.go @@ -1916,8 +1916,8 @@ func (s TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { } // UpgradeInfo: Information related to: * A function's eligibility for 1st Gen -// to 2nd Gen migration * Current state of migration for function undergoing -// migration. +// to 2nd Gen migration and 2nd Gen to CRf detach. * Current state of migration +// for function undergoing migration/detach. type UpgradeInfo struct { // BuildConfig: Describes the Build step of the function that builds a // container to prepare for 2nd gen upgrade. @@ -1953,6 +1953,8 @@ 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/composer/v1/composer-api.json b/composer/v1/composer-api.json index c626f9bddff..d28b5f7d2ba 100644 --- a/composer/v1/composer-api.json +++ b/composer/v1/composer-api.json @@ -1188,7 +1188,7 @@ } } }, - "revision": "20241013", + "revision": "20241027", "rootUrl": "https://composer.googleapis.com/", "schemas": { "AirflowMetadataRetentionPolicyConfig": { @@ -1508,7 +1508,7 @@ "properties": { "config": { "$ref": "EnvironmentConfig", - "description": "Configuration parameters for this environment." + "description": "Optional. Configuration parameters for this environment." }, "createTime": { "description": "Output only. The time at which this environment was created.", @@ -1523,7 +1523,7 @@ "type": "object" }, "name": { - "description": "The resource name of the environment, in the form: \"projects/{projectId}/locations/{locationId}/environments/{environmentId}\" EnvironmentId must start with a lowercase letter followed by up to 63 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.", + "description": "Identifier. The resource name of the environment, in the form: \"projects/{projectId}/locations/{locationId}/environments/{environmentId}\" EnvironmentId must start with a lowercase letter followed by up to 63 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.", "type": "string" }, "satisfiesPzi": { @@ -1631,7 +1631,7 @@ }, "nodeConfig": { "$ref": "NodeConfig", - "description": "The configuration used for the Kubernetes Engine cluster." + "description": "Optional. The configuration used for the Kubernetes Engine cluster." }, "nodeCount": { "description": "The number of nodes in the Kubernetes Engine cluster that will be used to run this environment. This field is supported for Cloud Composer environments in versions composer-1.*.*-airflow-*.*.*.", @@ -1640,7 +1640,7 @@ }, "privateEnvironmentConfig": { "$ref": "PrivateEnvironmentConfig", - "description": "The configuration used for the Private IP Cloud Composer environment." + "description": "Optional. The configuration used for the Private IP Cloud Composer environment." }, "recoveryConfig": { "$ref": "RecoveryConfig", @@ -1660,7 +1660,7 @@ }, "softwareConfig": { "$ref": "SoftwareConfig", - "description": "The configuration settings for software inside the environment." + "description": "Optional. The configuration settings for software inside the environment." }, "webServerConfig": { "$ref": "WebServerConfig", @@ -2426,7 +2426,7 @@ "type": "object" }, "imageVersion": { - "description": "The version of the software running in the environment. This encapsulates both the version of Cloud Composer functionality and the version of Apache Airflow. It must match the regular expression `composer-([0-9]+(\\.[0-9]+\\.[0-9]+(-preview\\.[0-9]+)?)?|latest)-airflow-([0-9]+(\\.[0-9]+(\\.[0-9]+)?)?)`. When used as input, the server also checks if the provided version is supported and denies the request for an unsupported version. The Cloud Composer portion of the image version is a full [semantic version](https://semver.org), or an alias in the form of major version number or `latest`. When an alias is provided, the server replaces it with the current Cloud Composer version that satisfies the alias. The Apache Airflow portion of the image version is a full semantic version that points to one of the supported Apache Airflow versions, or an alias in the form of only major or major.minor versions specified. When an alias is provided, the server replaces it with the latest Apache Airflow version that satisfies the alias and is supported in the given Cloud Composer version. In all cases, the resolved image version is stored in the same field. See also [version list](/composer/docs/concepts/versioning/composer-versions) and [versioning overview](/composer/docs/concepts/versioning/composer-versioning-overview).", + "description": "Optional. The version of the software running in the environment. This encapsulates both the version of Cloud Composer functionality and the version of Apache Airflow. It must match the regular expression `composer-([0-9]+(\\.[0-9]+\\.[0-9]+(-preview\\.[0-9]+)?)?|latest)-airflow-([0-9]+(\\.[0-9]+(\\.[0-9]+)?)?)`. When used as input, the server also checks if the provided version is supported and denies the request for an unsupported version. The Cloud Composer portion of the image version is a full [semantic version](https://semver.org), or an alias in the form of major version number or `latest`. When an alias is provided, the server replaces it with the current Cloud Composer version that satisfies the alias. The Apache Airflow portion of the image version is a full semantic version that points to one of the supported Apache Airflow versions, or an alias in the form of only major or major.minor versions specified. When an alias is provided, the server replaces it with the latest Apache Airflow version that satisfies the alias and is supported in the given Cloud Composer version. In all cases, the resolved image version is stored in the same field. See also [version list](/composer/docs/concepts/versioning/composer-versions) and [versioning overview](/composer/docs/concepts/versioning/composer-versioning-overview).", "type": "string" }, "pypiPackages": { @@ -2592,7 +2592,7 @@ "additionalProperties": { "type": "string" }, - "description": "Optional. The \"data\" field of Kubernetes ConfigMap, organized in key-value pairs. For details see: https://kubernetes.io/docs/concepts/configuration/configmap/", + "description": "Optional. The \"data\" field of Kubernetes ConfigMap, organized in key-value pairs. For details see: https://kubernetes.io/docs/concepts/configuration/configmap/ Example: { \"example_key\": \"example_value\", \"another_key\": \"another_value\" }", "type": "object" }, "name": { @@ -2610,7 +2610,7 @@ "additionalProperties": { "type": "string" }, - "description": "Optional. The \"data\" field of Kubernetes Secret, organized in key-value pairs, which can contain sensitive values such as a password, a token, or a key. The values for all keys have to be base64-encoded strings. For details see: https://kubernetes.io/docs/concepts/configuration/secret/", + "description": "Optional. The \"data\" field of Kubernetes Secret, organized in key-value pairs, which can contain sensitive values such as a password, a token, or a key. The values for all keys have to be base64-encoded strings. For details see: https://kubernetes.io/docs/concepts/configuration/secret/ Example: { \"example\": \"ZXhhbXBsZV92YWx1ZQ==\", \"another-example\": \"YW5vdGhlcl9leGFtcGxlX3ZhbHVl\" }", "type": "object" }, "name": { diff --git a/composer/v1/composer-gen.go b/composer/v1/composer-gen.go index 2f355b53686..8c4a354f108 100644 --- a/composer/v1/composer-gen.go +++ b/composer/v1/composer-gen.go @@ -706,7 +706,7 @@ func (s EncryptionConfig) MarshalJSON() ([]byte, error) { // Environment: An environment for running orchestration tasks. type Environment struct { - // Config: Configuration parameters for this environment. + // Config: Optional. Configuration parameters for this environment. Config *EnvironmentConfig `json:"config,omitempty"` // CreateTime: Output only. The time at which this environment was created. CreateTime string `json:"createTime,omitempty"` @@ -717,7 +717,7 @@ type Environment struct { // [\p{Ll}\p{Lo}\p{N}_-]{0,63} * Both keys and values are additionally // constrained to be <= 128 bytes in size. Labels map[string]string `json:"labels,omitempty"` - // Name: The resource name of the environment, in the form: + // Name: Identifier. The resource name of the environment, in the form: // "projects/{projectId}/locations/{locationId}/environments/{environmentId}" // EnvironmentId must start with a lowercase letter followed by up to 63 // lowercase letters, numbers, or hyphens, and cannot end with a hyphen. @@ -825,14 +825,15 @@ type EnvironmentConfig struct { // feature is: - in case of private environment: enabled with no external // networks allowlisted. - in case of public environment: disabled. MasterAuthorizedNetworksConfig *MasterAuthorizedNetworksConfig `json:"masterAuthorizedNetworksConfig,omitempty"` - // NodeConfig: The configuration used for the Kubernetes Engine cluster. + // NodeConfig: Optional. The configuration used for the Kubernetes Engine + // cluster. NodeConfig *NodeConfig `json:"nodeConfig,omitempty"` // NodeCount: The number of nodes in the Kubernetes Engine cluster that will be // used to run this environment. This field is supported for Cloud Composer // environments in versions composer-1.*.*-airflow-*.*.*. NodeCount int64 `json:"nodeCount,omitempty"` - // PrivateEnvironmentConfig: The configuration used for the Private IP Cloud - // Composer environment. + // PrivateEnvironmentConfig: Optional. The configuration used for the Private + // IP Cloud Composer environment. PrivateEnvironmentConfig *PrivateEnvironmentConfig `json:"privateEnvironmentConfig,omitempty"` // RecoveryConfig: Optional. The Recovery settings configuration of an // environment. This field is supported for Cloud Composer environments in @@ -847,7 +848,7 @@ type EnvironmentConfig struct { // parameters. // "HIGH_RESILIENCE" - Enabled High Resilience mode, including Cloud SQL HA. ResilienceMode string `json:"resilienceMode,omitempty"` - // SoftwareConfig: The configuration settings for software inside the + // SoftwareConfig: Optional. The configuration settings for software inside the // environment. SoftwareConfig *SoftwareConfig `json:"softwareConfig,omitempty"` // WebServerConfig: Optional. The configuration settings for the Airflow web @@ -1993,9 +1994,10 @@ type SoftwareConfig struct { // `GKE_CLUSTER_NAME` * `SQL_DATABASE` * `SQL_INSTANCE` * `SQL_PASSWORD` * // `SQL_PROJECT` * `SQL_REGION` * `SQL_USER` EnvVariables map[string]string `json:"envVariables,omitempty"` - // ImageVersion: The version of the software running in the environment. This - // encapsulates both the version of Cloud Composer functionality and the - // version of Apache Airflow. It must match the regular expression + // ImageVersion: Optional. The version of the software running in the + // environment. This encapsulates both the version of Cloud Composer + // functionality and the version of Apache Airflow. It must match the regular + // expression // `composer-([0-9]+(\.[0-9]+\.[0-9]+(-preview\.[0-9]+)?)?|latest)-airflow-([0-9 // ]+(\.[0-9]+(\.[0-9]+)?)?)`. When used as input, the server also checks if // the provided version is supported and denies the request for an unsupported @@ -2248,7 +2250,8 @@ func (s *TriggererResource) UnmarshalJSON(data []byte) error { type UserWorkloadsConfigMap struct { // Data: Optional. The "data" field of Kubernetes ConfigMap, organized in // key-value pairs. For details see: - // https://kubernetes.io/docs/concepts/configuration/configmap/ + // https://kubernetes.io/docs/concepts/configuration/configmap/ Example: { + // "example_key": "example_value", "another_key": "another_value" } Data map[string]string `json:"data,omitempty"` // Name: Identifier. The resource name of the ConfigMap, in the form: // "projects/{projectId}/locations/{locationId}/environments/{environmentId}/use @@ -2282,6 +2285,8 @@ type UserWorkloadsSecret struct { // key-value pairs, which can contain sensitive values such as a password, a // token, or a key. The values for all keys have to be base64-encoded strings. // For details see: https://kubernetes.io/docs/concepts/configuration/secret/ + // Example: { "example": "ZXhhbXBsZV92YWx1ZQ==", "another-example": + // "YW5vdGhlcl9leGFtcGxlX3ZhbHVl" } Data map[string]string `json:"data,omitempty"` // Name: Identifier. The resource name of the Secret, in the form: // "projects/{projectId}/locations/{locationId}/environments/{environmentId}/use diff --git a/composer/v1beta1/composer-api.json b/composer/v1beta1/composer-api.json index ca87e72e33f..594b64ae7a7 100644 --- a/composer/v1beta1/composer-api.json +++ b/composer/v1beta1/composer-api.json @@ -1216,7 +1216,7 @@ } } }, - "revision": "20241013", + "revision": "20241027", "rootUrl": "https://composer.googleapis.com/", "schemas": { "AirflowMetadataRetentionPolicyConfig": { @@ -1542,7 +1542,7 @@ "properties": { "config": { "$ref": "EnvironmentConfig", - "description": "Configuration parameters for this environment." + "description": "Optional. Configuration parameters for this environment." }, "createTime": { "description": "Output only. The time at which this environment was created.", @@ -1558,7 +1558,7 @@ "type": "object" }, "name": { - "description": "The resource name of the environment, in the form: \"projects/{projectId}/locations/{locationId}/environments/{environmentId}\" EnvironmentId must start with a lowercase letter followed by up to 63 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.", + "description": "Identifier. The resource name of the environment, in the form: \"projects/{projectId}/locations/{locationId}/environments/{environmentId}\" EnvironmentId must start with a lowercase letter followed by up to 63 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.", "type": "string" }, "satisfiesPzi": { @@ -1671,7 +1671,7 @@ }, "nodeConfig": { "$ref": "NodeConfig", - "description": "The configuration used for the Kubernetes Engine cluster." + "description": "Optional. The configuration used for the Kubernetes Engine cluster." }, "nodeCount": { "description": "The number of nodes in the Kubernetes Engine cluster that will be used to run this environment. This field is supported for Cloud Composer environments in versions composer-1.*.*-airflow-*.*.*.", @@ -1680,7 +1680,7 @@ }, "privateEnvironmentConfig": { "$ref": "PrivateEnvironmentConfig", - "description": "The configuration used for the Private IP Cloud Composer environment." + "description": "Optional. The configuration used for the Private IP Cloud Composer environment." }, "recoveryConfig": { "$ref": "RecoveryConfig", @@ -1700,7 +1700,7 @@ }, "softwareConfig": { "$ref": "SoftwareConfig", - "description": "The configuration settings for software inside the environment." + "description": "Optional. The configuration settings for software inside the environment." }, "webServerConfig": { "$ref": "WebServerConfig", @@ -2475,7 +2475,7 @@ "type": "object" }, "imageVersion": { - "description": "The version of the software running in the environment. This encapsulates both the version of Cloud Composer functionality and the version of Apache Airflow. It must match the regular expression `composer-([0-9]+(\\.[0-9]+\\.[0-9]+(-preview\\.[0-9]+)?)?|latest)-airflow-([0-9]+(\\.[0-9]+(\\.[0-9]+)?)?)`. When used as input, the server also checks if the provided version is supported and denies the request for an unsupported version. The Cloud Composer portion of the image version is a full [semantic version](https://semver.org), or an alias in the form of major version number or `latest`. When an alias is provided, the server replaces it with the current Cloud Composer version that satisfies the alias. The Apache Airflow portion of the image version is a full semantic version that points to one of the supported Apache Airflow versions, or an alias in the form of only major or major.minor versions specified. When an alias is provided, the server replaces it with the latest Apache Airflow version that satisfies the alias and is supported in the given Cloud Composer version. In all cases, the resolved image version is stored in the same field. See also [version list](/composer/docs/concepts/versioning/composer-versions) and [versioning overview](/composer/docs/concepts/versioning/composer-versioning-overview).", + "description": "Optional. The version of the software running in the environment. This encapsulates both the version of Cloud Composer functionality and the version of Apache Airflow. It must match the regular expression `composer-([0-9]+(\\.[0-9]+\\.[0-9]+(-preview\\.[0-9]+)?)?|latest)-airflow-([0-9]+(\\.[0-9]+(\\.[0-9]+)?)?)`. When used as input, the server also checks if the provided version is supported and denies the request for an unsupported version. The Cloud Composer portion of the image version is a full [semantic version](https://semver.org), or an alias in the form of major version number or `latest`. When an alias is provided, the server replaces it with the current Cloud Composer version that satisfies the alias. The Apache Airflow portion of the image version is a full semantic version that points to one of the supported Apache Airflow versions, or an alias in the form of only major or major.minor versions specified. When an alias is provided, the server replaces it with the latest Apache Airflow version that satisfies the alias and is supported in the given Cloud Composer version. In all cases, the resolved image version is stored in the same field. See also [version list](/composer/docs/concepts/versioning/composer-versions) and [versioning overview](/composer/docs/concepts/versioning/composer-versioning-overview).", "type": "string" }, "pypiPackages": { @@ -2641,7 +2641,7 @@ "additionalProperties": { "type": "string" }, - "description": "Optional. The \"data\" field of Kubernetes ConfigMap, organized in key-value pairs. For details see: https://kubernetes.io/docs/concepts/configuration/configmap/", + "description": "Optional. The \"data\" field of Kubernetes ConfigMap, organized in key-value pairs. For details see: https://kubernetes.io/docs/concepts/configuration/configmap/ Example: { \"example_key\": \"example_value\", \"another_key\": \"another_value\" }", "type": "object" }, "name": { @@ -2659,7 +2659,7 @@ "additionalProperties": { "type": "string" }, - "description": "Optional. The \"data\" field of Kubernetes Secret, organized in key-value pairs, which can contain sensitive values such as a password, a token, or a key. The values for all keys have to be base64-encoded strings. For details see: https://kubernetes.io/docs/concepts/configuration/secret/", + "description": "Optional. The \"data\" field of Kubernetes Secret, organized in key-value pairs, which can contain sensitive values such as a password, a token, or a key. The values for all keys have to be base64-encoded strings. For details see: https://kubernetes.io/docs/concepts/configuration/secret/ Example: { \"example\": \"ZXhhbXBsZV92YWx1ZQ==\", \"another-example\": \"YW5vdGhlcl9leGFtcGxlX3ZhbHVl\" }", "type": "object" }, "name": { diff --git a/composer/v1beta1/composer-gen.go b/composer/v1beta1/composer-gen.go index 957c1d1f202..4bfbcda33fc 100644 --- a/composer/v1beta1/composer-gen.go +++ b/composer/v1beta1/composer-gen.go @@ -709,7 +709,7 @@ func (s EncryptionConfig) MarshalJSON() ([]byte, error) { // Environment: An environment for running orchestration tasks. type Environment struct { - // Config: Configuration parameters for this environment. + // Config: Optional. Configuration parameters for this environment. Config *EnvironmentConfig `json:"config,omitempty"` // CreateTime: Output only. The time at which this environment was created. CreateTime string `json:"createTime,omitempty"` @@ -720,7 +720,7 @@ type Environment struct { // [\p{Ll}\p{Lo}\p{N}_-]{0,63} * Both keys and values are additionally // constrained to be <= 128 bytes in size. Labels map[string]string `json:"labels,omitempty"` - // Name: The resource name of the environment, in the form: + // Name: Identifier. The resource name of the environment, in the form: // "projects/{projectId}/locations/{locationId}/environments/{environmentId}" // EnvironmentId must start with a lowercase letter followed by up to 63 // lowercase letters, numbers, or hyphens, and cannot end with a hyphen. @@ -828,14 +828,15 @@ type EnvironmentConfig struct { // feature is: - in case of private environment: enabled with no external // networks allowlisted. - in case of public environment: disabled. MasterAuthorizedNetworksConfig *MasterAuthorizedNetworksConfig `json:"masterAuthorizedNetworksConfig,omitempty"` - // NodeConfig: The configuration used for the Kubernetes Engine cluster. + // NodeConfig: Optional. The configuration used for the Kubernetes Engine + // cluster. NodeConfig *NodeConfig `json:"nodeConfig,omitempty"` // NodeCount: The number of nodes in the Kubernetes Engine cluster that will be // used to run this environment. This field is supported for Cloud Composer // environments in versions composer-1.*.*-airflow-*.*.*. NodeCount int64 `json:"nodeCount,omitempty"` - // PrivateEnvironmentConfig: The configuration used for the Private IP Cloud - // Composer environment. + // PrivateEnvironmentConfig: Optional. The configuration used for the Private + // IP Cloud Composer environment. PrivateEnvironmentConfig *PrivateEnvironmentConfig `json:"privateEnvironmentConfig,omitempty"` // RecoveryConfig: Optional. The Recovery settings configuration of an // environment. This field is supported for Cloud Composer environments in @@ -850,7 +851,7 @@ type EnvironmentConfig struct { // parameters. // "HIGH_RESILIENCE" - Enabled High Resilience mode, including Cloud SQL HA. ResilienceMode string `json:"resilienceMode,omitempty"` - // SoftwareConfig: The configuration settings for software inside the + // SoftwareConfig: Optional. The configuration settings for software inside the // environment. SoftwareConfig *SoftwareConfig `json:"softwareConfig,omitempty"` // WebServerConfig: Optional. The configuration settings for the Airflow web @@ -2016,9 +2017,10 @@ type SoftwareConfig struct { // `GKE_CLUSTER_NAME` * `SQL_DATABASE` * `SQL_INSTANCE` * `SQL_PASSWORD` * // `SQL_PROJECT` * `SQL_REGION` * `SQL_USER` EnvVariables map[string]string `json:"envVariables,omitempty"` - // ImageVersion: The version of the software running in the environment. This - // encapsulates both the version of Cloud Composer functionality and the - // version of Apache Airflow. It must match the regular expression + // ImageVersion: Optional. The version of the software running in the + // environment. This encapsulates both the version of Cloud Composer + // functionality and the version of Apache Airflow. It must match the regular + // expression // `composer-([0-9]+(\.[0-9]+\.[0-9]+(-preview\.[0-9]+)?)?|latest)-airflow-([0-9 // ]+(\.[0-9]+(\.[0-9]+)?)?)`. When used as input, the server also checks if // the provided version is supported and denies the request for an unsupported @@ -2271,7 +2273,8 @@ func (s *TriggererResource) UnmarshalJSON(data []byte) error { type UserWorkloadsConfigMap struct { // Data: Optional. The "data" field of Kubernetes ConfigMap, organized in // key-value pairs. For details see: - // https://kubernetes.io/docs/concepts/configuration/configmap/ + // https://kubernetes.io/docs/concepts/configuration/configmap/ Example: { + // "example_key": "example_value", "another_key": "another_value" } Data map[string]string `json:"data,omitempty"` // Name: Identifier. The resource name of the ConfigMap, in the form: // "projects/{projectId}/locations/{locationId}/environments/{environmentId}/use @@ -2305,6 +2308,8 @@ type UserWorkloadsSecret struct { // key-value pairs, which can contain sensitive values such as a password, a // token, or a key. The values for all keys have to be base64-encoded strings. // For details see: https://kubernetes.io/docs/concepts/configuration/secret/ + // Example: { "example": "ZXhhbXBsZV92YWx1ZQ==", "another-example": + // "YW5vdGhlcl9leGFtcGxlX3ZhbHVl" } Data map[string]string `json:"data,omitempty"` // Name: Identifier. The resource name of the Secret, in the form: // "projects/{projectId}/locations/{locationId}/environments/{environmentId}/use diff --git a/compute/v1/compute-api.json b/compute/v1/compute-api.json index dfd842b6d9d..26136be458b 100644 --- a/compute/v1/compute-api.json +++ b/compute/v1/compute-api.json @@ -10446,7 +10446,7 @@ "type": "string" }, "start": { - "description": "Specifies the starting byte position of the output to return. To start with the first byte of output to the specified port, omit this field or set it to `0`. If the output for that byte position is available, this field matches the `start` parameter sent with the request. If the amount of serial console output exceeds the size of the buffer (1 MB), the oldest output is discarded and is no longer available. If the requested start position refers to discarded output, the start position is adjusted to the oldest output still available, and the adjusted start position is returned as the `start` property value. You can also provide a negative start position, which translates to the most recent number of bytes written to the serial port. For example, -3 is interpreted as the most recent 3 bytes written to the serial console.", + "description": "Specifies the starting byte position of the output to return. To start with the first byte of output to the specified port, omit this field or set it to `0`. If the output for that byte position is available, this field matches the `start` parameter sent with the request. If the amount of serial console output exceeds the size of the buffer (1 MB), the oldest output is discarded and is no longer available. If the requested start position refers to discarded output, the start position is adjusted to the oldest output still available, and the adjusted start position is returned as the `start` property value. You can also provide a negative start position, which translates to the most recent number of bytes written to the serial port. For example, -3 is interpreted as the most recent 3 bytes written to the serial console. Note that the negative start is bounded by the retained buffer size, and the returned serial console output will not exceed the max buffer size.", "format": "int64", "location": "query", "type": "string" @@ -37421,7 +37421,7 @@ } } }, - "revision": "20241015", + "revision": "20241021", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AWSV4Signature": { @@ -40146,7 +40146,7 @@ "description": "The CacheKeyPolicy for this CdnPolicy." }, "cacheMode": { - "description": "Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any \"private\", \"no-store\" or \"no-cache\" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached.", + "description": "Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any \"private\", \"no-store\" or \"no-cache\" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached. If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC.", "enum": [ "CACHE_ALL_STATIC", "FORCE_CACHE_ALL", @@ -40908,7 +40908,7 @@ "description": "The CacheKeyPolicy for this CdnPolicy." }, "cacheMode": { - "description": "Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any \"private\", \"no-store\" or \"no-cache\" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached.", + "description": "Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any \"private\", \"no-store\" or \"no-cache\" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached. If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC.", "enum": [ "CACHE_ALL_STATIC", "FORCE_CACHE_ALL", @@ -60238,6 +60238,34 @@ "description": "A routing configuration attached to a network resource. The message includes the list of routers associated with the network, and a flag indicating the type of routing behavior to enforce network-wide.", "id": "NetworkRoutingConfig", "properties": { + "bgpAlwaysCompareMed": { + "description": "Enable comparison of Multi-Exit Discriminators (MED) across routes with different neighbor ASNs when using the STANDARD BGP best path selection algorithm.", + "type": "boolean" + }, + "bgpBestPathSelectionMode": { + "description": "The BGP best path selection algorithm to be employed within this network for dynamic routes learned by Cloud Routers. Can be LEGACY (default) or STANDARD.", + "enum": [ + "LEGACY", + "STANDARD" + ], + "enumDescriptions": [ + "", + "" + ], + "type": "string" + }, + "bgpInterRegionCost": { + "description": "Allows to define a preferred approach for handling inter-region cost in the selection process when using the STANDARD BGP best path selection algorithm. Can be DEFAULT or ADD_COST_TO_MED.", + "enum": [ + "ADD_COST_TO_MED", + "DEFAULT" + ], + "enumDescriptions": [ + "", + "" + ], + "type": "string" + }, "routingMode": { "description": "The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, across regions.", "enum": [ @@ -69127,14 +69155,38 @@ "description": "The URL to an instance that should handle matching packets. You can specify this as a full or partial URL. For example: https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/", "type": "string" }, + "nextHopInterRegionCost": { + "description": "[Output only] Internal fixed region-to-region cost that Google Cloud calculates based on factors such as network performance, distance, and available bandwidth between regions.", + "format": "uint32", + "type": "integer" + }, "nextHopIp": { "description": "The network IP address of an instance that should handle matching packets. Both IPv6 address and IPv4 addresses are supported. Must specify an IPv4 address in dot-decimal notation (e.g. 192.0.2.99) or an IPv6 address in RFC 4291 format (e.g. 2001:db8::2d9:51:0:0 or 2001:db8:0:0:2d9:51:0:0). IPv6 addresses will be displayed using RFC 5952 compressed format (e.g. 2001:db8::2d9:51:0:0). Should never be an IPv4-mapped IPv6 address.", "type": "string" }, + "nextHopMed": { + "description": "[Output Only] Multi-Exit Discriminator, a BGP route metric that indicates the desirability of a particular route in a network.", + "format": "uint32", + "type": "integer" + }, "nextHopNetwork": { "description": "The URL of the local network if it should handle matching packets.", "type": "string" }, + "nextHopOrigin": { + "description": "[Output Only] Indicates the origin of the route. Can be IGP (Interior Gateway Protocol), EGP (Exterior Gateway Protocol), or INCOMPLETE.", + "enum": [ + "EGP", + "IGP", + "INCOMPLETE" + ], + "enumDescriptions": [ + "", + "", + "" + ], + "type": "string" + }, "nextHopPeering": { "description": "[Output Only] The network peering name that should handle matching packets, which should conform to RFC1035.", "type": "string" @@ -76920,7 +76972,7 @@ "type": "string" }, "purpose": { - "description": "The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.", + "description": "The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, or PRIVATE_SERVICE_CONNECT. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.", "enum": [ "GLOBAL_MANAGED_PROXY", "INTERNAL_HTTPS_LOAD_BALANCER", @@ -82115,7 +82167,7 @@ "type": "string" }, "purpose": { - "description": "The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.", + "description": "The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, or PRIVATE_SERVICE_CONNECT. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.", "enum": [ "GLOBAL_MANAGED_PROXY", "INTERNAL_HTTPS_LOAD_BALANCER", diff --git a/compute/v1/compute-gen.go b/compute/v1/compute-gen.go index e5dff1873e5..b7c2191860c 100644 --- a/compute/v1/compute-gen.go +++ b/compute/v1/compute-gen.go @@ -4520,7 +4520,8 @@ type BackendBucketCdnPolicy struct { // identifiable) content. CACHE_ALL_STATIC Automatically cache static content, // including common image formats, media (video and audio), and web assets // (JavaScript and CSS). Requests and responses that are marked as uncacheable, - // as well as dynamic content (including HTML), will not be cached. + // as well as dynamic content (including HTML), will not be cached. If no value + // is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC. // // Possible values: // "CACHE_ALL_STATIC" - Automatically cache static content, including common @@ -5470,7 +5471,8 @@ type BackendServiceCdnPolicy struct { // identifiable) content. CACHE_ALL_STATIC Automatically cache static content, // including common image formats, media (video and audio), and web assets // (JavaScript and CSS). Requests and responses that are marked as uncacheable, - // as well as dynamic content (including HTML), will not be cached. + // as well as dynamic content (including HTML), will not be cached. If no value + // is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC. // // Possible values: // "CACHE_ALL_STATIC" - Automatically cache static content, including common @@ -27684,6 +27686,26 @@ func (s NetworkPerformanceConfig) MarshalJSON() ([]byte, error) { // network, and a flag indicating the type of routing behavior to enforce // network-wide. type NetworkRoutingConfig struct { + // BgpAlwaysCompareMed: Enable comparison of Multi-Exit Discriminators (MED) + // across routes with different neighbor ASNs when using the STANDARD BGP best + // path selection algorithm. + BgpAlwaysCompareMed bool `json:"bgpAlwaysCompareMed,omitempty"` + // BgpBestPathSelectionMode: The BGP best path selection algorithm to be + // employed within this network for dynamic routes learned by Cloud Routers. + // Can be LEGACY (default) or STANDARD. + // + // Possible values: + // "LEGACY" + // "STANDARD" + BgpBestPathSelectionMode string `json:"bgpBestPathSelectionMode,omitempty"` + // BgpInterRegionCost: Allows to define a preferred approach for handling + // inter-region cost in the selection process when using the STANDARD BGP best + // path selection algorithm. Can be DEFAULT or ADD_COST_TO_MED. + // + // Possible values: + // "ADD_COST_TO_MED" + // "DEFAULT" + BgpInterRegionCost string `json:"bgpInterRegionCost,omitempty"` // RoutingMode: The network-wide routing mode to use. If set to REGIONAL, this // network's Cloud Routers will only advertise routes with subnets of this // network in the same region as the router. If set to GLOBAL, this network's @@ -27694,15 +27716,15 @@ type NetworkRoutingConfig struct { // "GLOBAL" // "REGIONAL" RoutingMode string `json:"routingMode,omitempty"` - // ForceSendFields is a list of field names (e.g. "RoutingMode") to + // ForceSendFields is a list of field names (e.g. "BgpAlwaysCompareMed") 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. "RoutingMode") 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. "BgpAlwaysCompareMed") 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:"-"` } @@ -37318,6 +37340,10 @@ type Route struct { // You can specify this as a full or partial URL. For example: // https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/ NextHopInstance string `json:"nextHopInstance,omitempty"` + // NextHopInterRegionCost: [Output only] Internal fixed region-to-region cost + // that Google Cloud calculates based on factors such as network performance, + // distance, and available bandwidth between regions. + NextHopInterRegionCost int64 `json:"nextHopInterRegionCost,omitempty"` // NextHopIp: The network IP address of an instance that should handle matching // packets. Both IPv6 address and IPv4 addresses are supported. Must specify an // IPv4 address in dot-decimal notation (e.g. 192.0.2.99) or an IPv6 address in @@ -37325,9 +37351,20 @@ type Route struct { // addresses will be displayed using RFC 5952 compressed format (e.g. // 2001:db8::2d9:51:0:0). Should never be an IPv4-mapped IPv6 address. NextHopIp string `json:"nextHopIp,omitempty"` + // NextHopMed: [Output Only] Multi-Exit Discriminator, a BGP route metric that + // indicates the desirability of a particular route in a network. + NextHopMed int64 `json:"nextHopMed,omitempty"` // NextHopNetwork: The URL of the local network if it should handle matching // packets. NextHopNetwork string `json:"nextHopNetwork,omitempty"` + // NextHopOrigin: [Output Only] Indicates the origin of the route. Can be IGP + // (Interior Gateway Protocol), EGP (Exterior Gateway Protocol), or INCOMPLETE. + // + // Possible values: + // "EGP" + // "IGP" + // "INCOMPLETE" + NextHopOrigin string `json:"nextHopOrigin,omitempty"` // NextHopPeering: [Output Only] The network peering name that should handle // matching packets, which should conform to RFC1035. NextHopPeering string `json:"nextHopPeering,omitempty"` @@ -45621,7 +45658,7 @@ type Subnetwork struct { // VMs in this subnet to Google services. PrivateIpv6GoogleAccess string `json:"privateIpv6GoogleAccess,omitempty"` // Purpose: The purpose of the resource. This field can be either PRIVATE, - // GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or + // GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, or PRIVATE_SERVICE_CONNECT. // PRIVATE is the default purpose for user-created subnets or subnets that are // automatically created in auto mode networks. Subnets with purpose set to // GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks @@ -51461,7 +51498,7 @@ type UsableSubnetwork struct { // Network: Network URL. Network string `json:"network,omitempty"` // Purpose: The purpose of the resource. This field can be either PRIVATE, - // GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or + // GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, or PRIVATE_SERVICE_CONNECT. // PRIVATE is the default purpose for user-created subnets or subnets that are // automatically created in auto mode networks. Subnets with purpose set to // GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks diff --git a/compute/v1/compute2-gen.go b/compute/v1/compute2-gen.go index f66a5b58a34..6eb7f3b6ffb 100644 --- a/compute/v1/compute2-gen.go +++ b/compute/v1/compute2-gen.go @@ -30951,7 +30951,9 @@ func (c *InstancesGetSerialPortOutputCall) Port(port int64) *InstancesGetSerialP // adjusted start position is returned as the `start` property value. You can // also provide a negative start position, which translates to the most recent // number of bytes written to the serial port. For example, -3 is interpreted -// as the most recent 3 bytes written to the serial console. +// as the most recent 3 bytes written to the serial console. Note that the +// negative start is bounded by the retained buffer size, and the returned +// serial console output will not exceed the max buffer size. func (c *InstancesGetSerialPortOutputCall) Start(start int64) *InstancesGetSerialPortOutputCall { c.urlParams_.Set("start", fmt.Sprint(start)) return c diff --git a/container/v1beta1/container-api.json b/container/v1beta1/container-api.json index 779272a8c3b..9471dc7a530 100644 --- a/container/v1beta1/container-api.json +++ b/container/v1beta1/container-api.json @@ -2685,7 +2685,7 @@ } } }, - "revision": "20241008", + "revision": "20241017", "rootUrl": "https://container.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -3641,6 +3641,10 @@ "$ref": "ParentProductConfig", "description": "The configuration of the parent product of the cluster. This field is used by Google internal products that are built on top of the GKE cluster and take the ownership of the cluster." }, + "podAutoscaling": { + "$ref": "PodAutoscaling", + "description": "The config for pod autoscaling." + }, "podSecurityPolicyConfig": { "$ref": "PodSecurityPolicyConfig", "description": "Configuration for the PodSecurityPolicy feature." @@ -3961,6 +3965,10 @@ "description": "Enable/Disable private endpoint for the cluster's master. Deprecated: Use desired_control_plane_endpoints_config.ip_endpoints_config.enable_public_endpoint instead. Note that the value of enable_public_endpoint is reversed: if enable_private_endpoint is false, then enable_public_endpoint will be true.", "type": "boolean" }, + "desiredEnterpriseConfig": { + "$ref": "DesiredEnterpriseConfig", + "description": "The desired enterprise configuration for the cluster." + }, "desiredFleet": { "$ref": "Fleet", "description": "The desired fleet configuration for the cluster." @@ -4095,6 +4103,10 @@ "$ref": "ParentProductConfig", "description": "The desired parent product config for the cluster." }, + "desiredPodAutoscaling": { + "$ref": "PodAutoscaling", + "description": "The desired config for pod autoscaling." + }, "desiredPodSecurityPolicyConfig": { "$ref": "PodSecurityPolicyConfig", "description": "The desired configuration options for the PodSecurityPolicy feature." @@ -4655,6 +4667,27 @@ }, "type": "object" }, + "DesiredEnterpriseConfig": { + "description": "DesiredEnterpriseConfig is a wrapper used for updating enterprise_config.", + "id": "DesiredEnterpriseConfig", + "properties": { + "desiredTier": { + "description": "desired_tier specifies the desired tier of the cluster.", + "enum": [ + "CLUSTER_TIER_UNSPECIFIED", + "STANDARD", + "ENTERPRISE" + ], + "enumDescriptions": [ + "CLUSTER_TIER_UNSPECIFIED is when cluster_tier is not set.", + "STANDARD indicates a standard GKE cluster.", + "ENTERPRISE indicates a GKE Enterprise cluster." + ], + "type": "string" + } + }, + "type": "object" + }, "DnsCacheConfig": { "description": "Configuration for NodeLocal DNSCache", "id": "DnsCacheConfig", @@ -4690,6 +4723,20 @@ ], "readOnly": true, "type": "string" + }, + "desiredTier": { + "description": "desired_tier specifies the desired tier of the cluster.", + "enum": [ + "CLUSTER_TIER_UNSPECIFIED", + "STANDARD", + "ENTERPRISE" + ], + "enumDescriptions": [ + "CLUSTER_TIER_UNSPECIFIED is when cluster_tier is not set.", + "STANDARD indicates a standard GKE cluster.", + "ENTERPRISE indicates a GKE Enterprise cluster." + ], + "type": "string" } }, "type": "object" @@ -7109,6 +7156,27 @@ }, "type": "object" }, + "PodAutoscaling": { + "description": "PodAutoscaling is used for configuration of parameters for workload autoscaling.", + "id": "PodAutoscaling", + "properties": { + "hpaProfile": { + "description": "Selected Horizontal Pod Autoscaling profile.", + "enum": [ + "HPA_PROFILE_UNSPECIFIED", + "NONE", + "PERFORMANCE" + ], + "enumDescriptions": [ + "HPA_PROFILE_UNSPECIFIED is used when no custom HPA profile is set.", + "Customers explicitly opt-out of HPA profiles.", + "PERFORMANCE is used when customers opt-in to the performance HPA profile. In this profile we support a higher number of HPAs per cluster and faster metrics collection for workload autoscaling." + ], + "type": "string" + } + }, + "type": "object" + }, "PodCIDROverprovisionConfig": { "description": "[PRIVATE FIELD] Config for pod CIDR size overprovisioning.", "id": "PodCIDROverprovisionConfig", diff --git a/container/v1beta1/container-gen.go b/container/v1beta1/container-gen.go index 08172c1611c..9c54283a1e3 100644 --- a/container/v1beta1/container-gen.go +++ b/container/v1beta1/container-gen.go @@ -1404,6 +1404,8 @@ type Cluster struct { // This field is used by Google internal products that are built on top of the // GKE cluster and take the ownership of the cluster. ParentProductConfig *ParentProductConfig `json:"parentProductConfig,omitempty"` + // PodAutoscaling: The config for pod autoscaling. + PodAutoscaling *PodAutoscaling `json:"podAutoscaling,omitempty"` // PodSecurityPolicyConfig: Configuration for the PodSecurityPolicy feature. PodSecurityPolicyConfig *PodSecurityPolicyConfig `json:"podSecurityPolicyConfig,omitempty"` // PrivateCluster: If this is a private cluster setup. Private clusters are @@ -1689,6 +1691,9 @@ type ClusterUpdate struct { // oint instead. Note that the value of enable_public_endpoint is reversed: if // enable_private_endpoint is false, then enable_public_endpoint will be true. DesiredEnablePrivateEndpoint bool `json:"desiredEnablePrivateEndpoint,omitempty"` + // DesiredEnterpriseConfig: The desired enterprise configuration for the + // cluster. + DesiredEnterpriseConfig *DesiredEnterpriseConfig `json:"desiredEnterpriseConfig,omitempty"` // DesiredFleet: The desired fleet configuration for the cluster. DesiredFleet *Fleet `json:"desiredFleet,omitempty"` // DesiredGatewayApiConfig: The desired config of Gateway API on this cluster. @@ -1811,6 +1816,8 @@ type ClusterUpdate struct { // DesiredParentProductConfig: The desired parent product config for the // cluster. DesiredParentProductConfig *ParentProductConfig `json:"desiredParentProductConfig,omitempty"` + // DesiredPodAutoscaling: The desired config for pod autoscaling. + DesiredPodAutoscaling *PodAutoscaling `json:"desiredPodAutoscaling,omitempty"` // DesiredPodSecurityPolicyConfig: The desired configuration options for the // PodSecurityPolicy feature. DesiredPodSecurityPolicyConfig *PodSecurityPolicyConfig `json:"desiredPodSecurityPolicyConfig,omitempty"` @@ -2504,6 +2511,35 @@ func (s DefaultSnatStatus) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// DesiredEnterpriseConfig: DesiredEnterpriseConfig is a wrapper used for +// updating enterprise_config. +type DesiredEnterpriseConfig struct { + // DesiredTier: desired_tier specifies the desired tier of the cluster. + // + // Possible values: + // "CLUSTER_TIER_UNSPECIFIED" - CLUSTER_TIER_UNSPECIFIED is when cluster_tier + // is not set. + // "STANDARD" - STANDARD indicates a standard GKE cluster. + // "ENTERPRISE" - ENTERPRISE indicates a GKE Enterprise cluster. + DesiredTier string `json:"desiredTier,omitempty"` + // ForceSendFields is a list of field names (e.g. "DesiredTier") 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. "DesiredTier") 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 DesiredEnterpriseConfig) MarshalJSON() ([]byte, error) { + type NoMethod DesiredEnterpriseConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // DnsCacheConfig: Configuration for NodeLocal DNSCache type DnsCacheConfig struct { // Enabled: Whether NodeLocal DNSCache is enabled for this cluster. @@ -2546,6 +2582,14 @@ type EnterpriseConfig struct { // "STANDARD" - STANDARD indicates a standard GKE cluster. // "ENTERPRISE" - ENTERPRISE indicates a GKE Enterprise cluster. ClusterTier string `json:"clusterTier,omitempty"` + // DesiredTier: desired_tier specifies the desired tier of the cluster. + // + // Possible values: + // "CLUSTER_TIER_UNSPECIFIED" - CLUSTER_TIER_UNSPECIFIED is when cluster_tier + // is not set. + // "STANDARD" - STANDARD indicates a standard GKE cluster. + // "ENTERPRISE" - ENTERPRISE indicates a GKE Enterprise cluster. + DesiredTier string `json:"desiredTier,omitempty"` // ForceSendFields is a list of field names (e.g. "ClusterTier") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -5704,6 +5748,37 @@ func (s PlacementPolicy) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// PodAutoscaling: PodAutoscaling is used for configuration of parameters for +// workload autoscaling. +type PodAutoscaling struct { + // HpaProfile: Selected Horizontal Pod Autoscaling profile. + // + // Possible values: + // "HPA_PROFILE_UNSPECIFIED" - HPA_PROFILE_UNSPECIFIED is used when no custom + // HPA profile is set. + // "NONE" - Customers explicitly opt-out of HPA profiles. + // "PERFORMANCE" - PERFORMANCE is used when customers opt-in to the + // performance HPA profile. In this profile we support a higher number of HPAs + // per cluster and faster metrics collection for workload autoscaling. + HpaProfile string `json:"hpaProfile,omitempty"` + // ForceSendFields is a list of field names (e.g. "HpaProfile") 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. "HpaProfile") 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 PodAutoscaling) MarshalJSON() ([]byte, error) { + type NoMethod PodAutoscaling + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // PodCIDROverprovisionConfig: [PRIVATE FIELD] Config for pod CIDR size // overprovisioning. type PodCIDROverprovisionConfig struct { diff --git a/containeranalysis/v1alpha1/containeranalysis-api.json b/containeranalysis/v1alpha1/containeranalysis-api.json index faec57110ff..978126e5764 100644 --- a/containeranalysis/v1alpha1/containeranalysis-api.json +++ b/containeranalysis/v1alpha1/containeranalysis-api.json @@ -1420,7 +1420,7 @@ } } }, - "revision": "20240924", + "revision": "20241025", "rootUrl": "https://containeranalysis.googleapis.com/", "schemas": { "AnalysisCompleted": { @@ -4616,11 +4616,13 @@ "description": "The type of hash that was performed.", "enum": [ "NONE", - "SHA256" + "SHA256", + "GO_MODULE_H1" ], "enumDescriptions": [ "No hash requested.", - "A sha256 hash." + "A sha256 hash.", + "Dirhash of a Go module's source code which is then hex-encoded." ], "type": "string" }, diff --git a/containeranalysis/v1alpha1/containeranalysis-gen.go b/containeranalysis/v1alpha1/containeranalysis-gen.go index 02a02cbcfa1..20a1d37a373 100644 --- a/containeranalysis/v1alpha1/containeranalysis-gen.go +++ b/containeranalysis/v1alpha1/containeranalysis-gen.go @@ -4103,6 +4103,8 @@ type Hash struct { // Possible values: // "NONE" - No hash requested. // "SHA256" - A sha256 hash. + // "GO_MODULE_H1" - Dirhash of a Go module's source code which is then + // hex-encoded. Type string `json:"type,omitempty"` // Value: The hash value. Value string `json:"value,omitempty"` diff --git a/dataflow/v1b3/dataflow-api.json b/dataflow/v1b3/dataflow-api.json index 1637de823fd..672949d52c0 100644 --- a/dataflow/v1b3/dataflow-api.json +++ b/dataflow/v1b3/dataflow-api.json @@ -2208,7 +2208,7 @@ } } }, - "revision": "20241014", + "revision": "20241028", "rootUrl": "https://dataflow.googleapis.com/", "schemas": { "ApproximateProgress": { @@ -3632,6 +3632,34 @@ }, "type": "object" }, + "GPUUsage": { + "description": "Information about the GPU usage on the worker.", + "id": "GPUUsage", + "properties": { + "timestamp": { + "description": "Required. Timestamp of the measurement.", + "format": "google-datetime", + "type": "string" + }, + "utilization": { + "$ref": "GPUUtilization", + "description": "Required. Utilization info about the GPU." + } + }, + "type": "object" + }, + "GPUUtilization": { + "description": "Utilization details about the GPU.", + "id": "GPUUtilization", + "properties": { + "rate": { + "description": "Required. GPU utilization rate of any kernel over the last sample period in the range of [0, 1].", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, "GetDebugConfigRequest": { "description": "Request to get updated debug configuration for component.", "id": "GetDebugConfigRequest", @@ -5468,6 +5496,13 @@ }, "type": "array" }, + "gpuUsage": { + "description": "Optional. GPU usage samples.", + "items": { + "$ref": "GPUUsage" + }, + "type": "array" + }, "memoryInfo": { "description": "Memory utilization samples.", "items": { diff --git a/dataflow/v1b3/dataflow-gen.go b/dataflow/v1b3/dataflow-gen.go index d993eaf81c4..06c17c08dfe 100644 --- a/dataflow/v1b3/dataflow-gen.go +++ b/dataflow/v1b3/dataflow-gen.go @@ -2139,6 +2139,67 @@ func (s *FloatingPointMean) UnmarshalJSON(data []byte) error { return nil } +// GPUUsage: Information about the GPU usage on the worker. +type GPUUsage struct { + // Timestamp: Required. Timestamp of the measurement. + Timestamp string `json:"timestamp,omitempty"` + // Utilization: Required. Utilization info about the GPU. + Utilization *GPUUtilization `json:"utilization,omitempty"` + // ForceSendFields is a list of field names (e.g. "Timestamp") 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. "Timestamp") 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 GPUUsage) MarshalJSON() ([]byte, error) { + type NoMethod GPUUsage + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GPUUtilization: Utilization details about the GPU. +type GPUUtilization struct { + // Rate: Required. GPU utilization rate of any kernel over the last sample + // period in the range of [0, 1]. + Rate float64 `json:"rate,omitempty"` + // ForceSendFields is a list of field names (e.g. "Rate") 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. "Rate") 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 GPUUtilization) MarshalJSON() ([]byte, error) { + type NoMethod GPUUtilization + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GPUUtilization) UnmarshalJSON(data []byte) error { + type NoMethod GPUUtilization + var s1 struct { + Rate gensupport.JSONFloat64 `json:"rate"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Rate = float64(s1.Rate) + return nil +} + // GetDebugConfigRequest: Request to get updated debug configuration for // component. type GetDebugConfigRequest struct { @@ -4439,6 +4500,8 @@ type ResourceUtilizationReport struct { Containers map[string]ResourceUtilizationReport `json:"containers,omitempty"` // CpuTime: CPU utilization samples. CpuTime []*CPUTime `json:"cpuTime,omitempty"` + // GpuUsage: Optional. GPU usage samples. + GpuUsage []*GPUUsage `json:"gpuUsage,omitempty"` // MemoryInfo: Memory utilization samples. MemoryInfo []*MemInfo `json:"memoryInfo,omitempty"` // ForceSendFields is a list of field names (e.g. "Containers") to diff --git a/datastream/v1/datastream-api.json b/datastream/v1/datastream-api.json index da4c8ba6259..59dc9412bc8 100644 --- a/datastream/v1/datastream-api.json +++ b/datastream/v1/datastream-api.json @@ -1250,7 +1250,7 @@ } } }, - "revision": "20240930", + "revision": "20241028", "rootUrl": "https://datastream.googleapis.com/", "schemas": { "AppendOnly": { @@ -1394,6 +1394,27 @@ "properties": {}, "type": "object" }, + "BinaryLogParser": { + "description": "Configuration to use Binary Log Parser CDC technique.", + "id": "BinaryLogParser", + "properties": { + "logFileDirectories": { + "$ref": "LogFileDirectories", + "description": "Use Oracle directories." + }, + "oracleAsmLogFileAccess": { + "$ref": "OracleAsmLogFileAccess", + "description": "Use Oracle ASM." + } + }, + "type": "object" + }, + "BinaryLogPosition": { + "description": "Use Binary log position based replication.", + "id": "BinaryLogPosition", + "properties": {}, + "type": "object" + }, "CancelOperationRequest": { "description": "The request message for Operations.CancelOperation.", "id": "CancelOperationRequest", @@ -1724,6 +1745,12 @@ }, "type": "object" }, + "Gtid": { + "description": "Use GTID based replication.", + "id": "Gtid", + "properties": {}, + "type": "object" + }, "JsonFileFormat": { "description": "JSON file format configuration.", "id": "JsonFileFormat", @@ -1947,6 +1974,27 @@ }, "type": "object" }, + "LogFileDirectories": { + "description": "Configuration to specify the Oracle directories to access the log files.", + "id": "LogFileDirectories", + "properties": { + "archivedLogDirectory": { + "description": "Required. Oracle directory for archived logs.", + "type": "string" + }, + "onlineLogDirectory": { + "description": "Required. Oracle directory for online logs.", + "type": "string" + } + }, + "type": "object" + }, + "LogMiner": { + "description": "Configuration to use LogMiner CDC method.", + "id": "LogMiner", + "properties": {}, + "type": "object" + }, "LookupStreamObjectRequest": { "description": "Request for looking up a specific stream object by its source object identifier.", "id": "LookupStreamObjectRequest", @@ -2112,10 +2160,18 @@ "description": "MySQL source configuration", "id": "MysqlSourceConfig", "properties": { + "binaryLogPosition": { + "$ref": "BinaryLogPosition", + "description": "Use Binary log position based replication." + }, "excludeObjects": { "$ref": "MysqlRdbms", "description": "MySQL objects to exclude from the stream." }, + "gtid": { + "$ref": "Gtid", + "description": "Use GTID based replication." + }, "includeObjects": { "$ref": "MysqlRdbms", "description": "MySQL objects to retrieve from the source." @@ -2275,6 +2331,51 @@ }, "type": "object" }, + "OracleAsmConfig": { + "description": "Configuration for Oracle Automatic Storage Management (ASM) connection.", + "id": "OracleAsmConfig", + "properties": { + "asmService": { + "description": "Required. ASM service name for the Oracle ASM connection.", + "type": "string" + }, + "connectionAttributes": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Connection string attributes", + "type": "object" + }, + "hostname": { + "description": "Required. Hostname for the Oracle ASM connection.", + "type": "string" + }, + "oracleSslConfig": { + "$ref": "OracleSslConfig", + "description": "Optional. SSL configuration for the Oracle connection." + }, + "password": { + "description": "Required. Password for the Oracle ASM connection.", + "type": "string" + }, + "port": { + "description": "Required. Port for the Oracle ASM connection.", + "format": "int32", + "type": "integer" + }, + "username": { + "description": "Required. Username for the Oracle ASM connection.", + "type": "string" + } + }, + "type": "object" + }, + "OracleAsmLogFileAccess": { + "description": "Configuration to use Oracle ASM to access the log files.", + "id": "OracleAsmLogFileAccess", + "properties": {}, + "type": "object" + }, "OracleColumn": { "description": "Oracle Column.", "id": "OracleColumn", @@ -2356,6 +2457,10 @@ "description": "Required. Hostname for the Oracle connection.", "type": "string" }, + "oracleAsmConfig": { + "$ref": "OracleAsmConfig", + "description": "Optional. Configuration for Oracle ASM connection." + }, "oracleSslConfig": { "$ref": "OracleSslConfig", "description": "Optional. SSL configuration for the Oracle connection." @@ -2369,6 +2474,10 @@ "format": "int32", "type": "integer" }, + "secretManagerStoredPassword": { + "description": "Optional. A reference to a Secret Manager resource name storing the Oracle connection password. Mutually exclusive with the `password` field.", + "type": "string" + }, "username": { "description": "Required. Username for the Oracle connection.", "type": "string" @@ -2424,6 +2533,10 @@ "description": "Oracle data source configuration", "id": "OracleSourceConfig", "properties": { + "binaryLogParser": { + "$ref": "BinaryLogParser", + "description": "Use Binary Log Parser." + }, "dropLargeObjects": { "$ref": "DropLargeObjects", "description": "Drop large object values." @@ -2436,6 +2549,10 @@ "$ref": "OracleRdbms", "description": "Oracle objects to include in the stream." }, + "logMiner": { + "$ref": "LogMiner", + "description": "Use LogMiner." + }, "maxConcurrentBackfillTasks": { "description": "Maximum number of concurrent backfill tasks. The number should be non-negative. If not set (or set to 0), the system's default value is used.", "format": "int32", @@ -2546,7 +2663,7 @@ "type": "object" }, "PostgresqlProfile": { - "description": "PostgreSQL database profile. Next ID: 7.", + "description": "PostgreSQL database profile.", "id": "PostgresqlProfile", "properties": { "database": { diff --git a/datastream/v1/datastream-gen.go b/datastream/v1/datastream-gen.go index 77ff9c4afb0..ba7569ffb16 100644 --- a/datastream/v1/datastream-gen.go +++ b/datastream/v1/datastream-gen.go @@ -379,6 +379,34 @@ func (s BigQueryDestinationConfig) MarshalJSON() ([]byte, error) { type BigQueryProfile struct { } +// BinaryLogParser: Configuration to use Binary Log Parser CDC technique. +type BinaryLogParser struct { + // LogFileDirectories: Use Oracle directories. + LogFileDirectories *LogFileDirectories `json:"logFileDirectories,omitempty"` + // OracleAsmLogFileAccess: Use Oracle ASM. + OracleAsmLogFileAccess *OracleAsmLogFileAccess `json:"oracleAsmLogFileAccess,omitempty"` + // ForceSendFields is a list of field names (e.g. "LogFileDirectories") 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. "LogFileDirectories") 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 BinaryLogParser) MarshalJSON() ([]byte, error) { + type NoMethod BinaryLogParser + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// BinaryLogPosition: Use Binary log position based replication. +type BinaryLogPosition struct { +} + // CancelOperationRequest: The request message for Operations.CancelOperation. type CancelOperationRequest struct { } @@ -760,6 +788,10 @@ func (s GcsProfile) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// Gtid: Use GTID based replication. +type Gtid struct { +} + // JsonFileFormat: JSON file format configuration. type JsonFileFormat struct { // Compression: Compression of the loaded JSON file. @@ -1038,6 +1070,35 @@ func (s Location) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// LogFileDirectories: Configuration to specify the Oracle directories to +// access the log files. +type LogFileDirectories struct { + // ArchivedLogDirectory: Required. Oracle directory for archived logs. + ArchivedLogDirectory string `json:"archivedLogDirectory,omitempty"` + // OnlineLogDirectory: Required. Oracle directory for online logs. + OnlineLogDirectory string `json:"onlineLogDirectory,omitempty"` + // ForceSendFields is a list of field names (e.g. "ArchivedLogDirectory") 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. "ArchivedLogDirectory") 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 LogFileDirectories) MarshalJSON() ([]byte, error) { + type NoMethod LogFileDirectories + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// LogMiner: Configuration to use LogMiner CDC method. +type LogMiner struct { +} + // LookupStreamObjectRequest: Request for looking up a specific stream object // by its source object identifier. type LookupStreamObjectRequest struct { @@ -1239,8 +1300,12 @@ func (s MysqlRdbms) MarshalJSON() ([]byte, error) { // MysqlSourceConfig: MySQL source configuration type MysqlSourceConfig struct { + // BinaryLogPosition: Use Binary log position based replication. + BinaryLogPosition *BinaryLogPosition `json:"binaryLogPosition,omitempty"` // ExcludeObjects: MySQL objects to exclude from the stream. ExcludeObjects *MysqlRdbms `json:"excludeObjects,omitempty"` + // Gtid: Use GTID based replication. + Gtid *Gtid `json:"gtid,omitempty"` // IncludeObjects: MySQL objects to retrieve from the source. IncludeObjects *MysqlRdbms `json:"includeObjects,omitempty"` // MaxConcurrentBackfillTasks: Maximum number of concurrent backfill tasks. The @@ -1251,13 +1316,13 @@ type MysqlSourceConfig struct { // should be non negative. If not set (or set to 0), the system's default value // will be used. MaxConcurrentCdcTasks int64 `json:"maxConcurrentCdcTasks,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExcludeObjects") to + // ForceSendFields is a list of field names (e.g. "BinaryLogPosition") 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. "ExcludeObjects") to include in + // NullFields is a list of field names (e.g. "BinaryLogPosition") 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. @@ -1427,6 +1492,46 @@ func (s OperationMetadata) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// OracleAsmConfig: Configuration for Oracle Automatic Storage Management (ASM) +// connection. +type OracleAsmConfig struct { + // AsmService: Required. ASM service name for the Oracle ASM connection. + AsmService string `json:"asmService,omitempty"` + // ConnectionAttributes: Optional. Connection string attributes + ConnectionAttributes map[string]string `json:"connectionAttributes,omitempty"` + // Hostname: Required. Hostname for the Oracle ASM connection. + Hostname string `json:"hostname,omitempty"` + // OracleSslConfig: Optional. SSL configuration for the Oracle connection. + OracleSslConfig *OracleSslConfig `json:"oracleSslConfig,omitempty"` + // Password: Required. Password for the Oracle ASM connection. + Password string `json:"password,omitempty"` + // Port: Required. Port for the Oracle ASM connection. + Port int64 `json:"port,omitempty"` + // Username: Required. Username for the Oracle ASM connection. + Username string `json:"username,omitempty"` + // ForceSendFields is a list of field names (e.g. "AsmService") 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. "AsmService") 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 OracleAsmConfig) MarshalJSON() ([]byte, error) { + type NoMethod OracleAsmConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// OracleAsmLogFileAccess: Configuration to use Oracle ASM to access the log +// files. +type OracleAsmLogFileAccess struct { +} + // OracleColumn: Oracle Column. type OracleColumn struct { // Column: Column name. @@ -1497,6 +1602,8 @@ type OracleProfile struct { DatabaseService string `json:"databaseService,omitempty"` // Hostname: Required. Hostname for the Oracle connection. Hostname string `json:"hostname,omitempty"` + // OracleAsmConfig: Optional. Configuration for Oracle ASM connection. + OracleAsmConfig *OracleAsmConfig `json:"oracleAsmConfig,omitempty"` // OracleSslConfig: Optional. SSL configuration for the Oracle connection. OracleSslConfig *OracleSslConfig `json:"oracleSslConfig,omitempty"` // Password: Optional. Password for the Oracle connection. Mutually exclusive @@ -1504,6 +1611,10 @@ type OracleProfile struct { Password string `json:"password,omitempty"` // Port: Port for the Oracle connection, default value is 1521. Port int64 `json:"port,omitempty"` + // SecretManagerStoredPassword: Optional. A reference to a Secret Manager + // resource name storing the Oracle connection password. Mutually exclusive + // with the `password` field. + SecretManagerStoredPassword string `json:"secretManagerStoredPassword,omitempty"` // Username: Required. Username for the Oracle connection. Username string `json:"username,omitempty"` // ForceSendFields is a list of field names (e.g. "ConnectionAttributes") to @@ -1594,12 +1705,16 @@ func (s OracleScnPosition) MarshalJSON() ([]byte, error) { // OracleSourceConfig: Oracle data source configuration type OracleSourceConfig struct { + // BinaryLogParser: Use Binary Log Parser. + BinaryLogParser *BinaryLogParser `json:"binaryLogParser,omitempty"` // DropLargeObjects: Drop large object values. DropLargeObjects *DropLargeObjects `json:"dropLargeObjects,omitempty"` // ExcludeObjects: Oracle objects to exclude from the stream. ExcludeObjects *OracleRdbms `json:"excludeObjects,omitempty"` // IncludeObjects: Oracle objects to include in the stream. IncludeObjects *OracleRdbms `json:"includeObjects,omitempty"` + // LogMiner: Use LogMiner. + LogMiner *LogMiner `json:"logMiner,omitempty"` // MaxConcurrentBackfillTasks: Maximum number of concurrent backfill tasks. The // number should be non-negative. If not set (or set to 0), the system's // default value is used. @@ -1610,13 +1725,13 @@ type OracleSourceConfig struct { MaxConcurrentCdcTasks int64 `json:"maxConcurrentCdcTasks,omitempty"` // StreamLargeObjects: Stream large object values. StreamLargeObjects *StreamLargeObjects `json:"streamLargeObjects,omitempty"` - // ForceSendFields is a list of field names (e.g. "DropLargeObjects") to + // ForceSendFields is a list of field names (e.g. "BinaryLogParser") 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. "DropLargeObjects") to include in + // NullFields is a list of field names (e.g. "BinaryLogParser") 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. @@ -1739,7 +1854,7 @@ func (s PostgresqlObjectIdentifier) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PostgresqlProfile: PostgreSQL database profile. Next ID: 7. +// PostgresqlProfile: PostgreSQL database profile. type PostgresqlProfile struct { // Database: Required. Database for the PostgreSQL connection. Database string `json:"database,omitempty"` diff --git a/developerconnect/v1/developerconnect-api.json b/developerconnect/v1/developerconnect-api.json index d3931a9330f..5968c6dedd6 100644 --- a/developerconnect/v1/developerconnect-api.json +++ b/developerconnect/v1/developerconnect-api.json @@ -808,10 +808,7 @@ }, "response": { "$ref": "Empty" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + } }, "processGitLabWebhook": { "description": "ProcessGitLabWebhook is called by the GitLab.com for notifying events.", @@ -970,7 +967,7 @@ } } }, - "revision": "20241017", + "revision": "20241023", "rootUrl": "https://developerconnect.googleapis.com/", "schemas": { "CancelOperationRequest": { diff --git a/dialogflow/v2beta1/dialogflow-api.json b/dialogflow/v2beta1/dialogflow-api.json index fdd85c0877b..0cf261328f0 100644 --- a/dialogflow/v2beta1/dialogflow-api.json +++ b/dialogflow/v2beta1/dialogflow-api.json @@ -7822,6 +7822,163 @@ } } }, + "sipTrunks": { + "methods": { + "create": { + "description": "Creates a SipTrunk for a specified location.", + "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/sipTrunks", + "httpMethod": "POST", + "id": "dialogflow.projects.locations.sipTrunks.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The location to create a SIP trunk for. Format: `projects//locations/`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2beta1/{+parent}/sipTrunks", + "request": { + "$ref": "GoogleCloudDialogflowV2beta1SipTrunk" + }, + "response": { + "$ref": "GoogleCloudDialogflowV2beta1SipTrunk" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/dialogflow" + ] + }, + "delete": { + "description": "Deletes a specified SipTrunk.", + "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/sipTrunks/{sipTrunksId}", + "httpMethod": "DELETE", + "id": "dialogflow.projects.locations.sipTrunks.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the SIP trunk to delete. Format: `projects//locations//sipTrunks/`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/sipTrunks/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2beta1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/dialogflow" + ] + }, + "get": { + "description": "Retrieves the specified SipTrunk.", + "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/sipTrunks/{sipTrunksId}", + "httpMethod": "GET", + "id": "dialogflow.projects.locations.sipTrunks.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the SIP trunk to delete. Format: `projects//locations//sipTrunks/`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/sipTrunks/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2beta1/{+name}", + "response": { + "$ref": "GoogleCloudDialogflowV2beta1SipTrunk" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/dialogflow" + ] + }, + "list": { + "description": "Returns a list of SipTrunks in the specified location.", + "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/sipTrunks", + "httpMethod": "GET", + "id": "dialogflow.projects.locations.sipTrunks.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. The next_page_token value returned from a previous list request.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The location to list SIP trunks from. Format: `projects//locations/`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2beta1/{+parent}/sipTrunks", + "response": { + "$ref": "GoogleCloudDialogflowV2beta1ListSipTrunksResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/dialogflow" + ] + }, + "patch": { + "description": "Updates the specified SipTrunk.", + "flatPath": "v2beta1/projects/{projectsId}/locations/{locationsId}/sipTrunks/{sipTrunksId}", + "httpMethod": "PATCH", + "id": "dialogflow.projects.locations.sipTrunks.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Identifier. The unique identifier of the SIP trunk. Format: `projects//locations//sipTrunks/`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/sipTrunks/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. The mask to control which fields get updated. If the mask is not present, all fields will be updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v2beta1/{+name}", + "request": { + "$ref": "GoogleCloudDialogflowV2beta1SipTrunk" + }, + "response": { + "$ref": "GoogleCloudDialogflowV2beta1SipTrunk" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/dialogflow" + ] + } + } + }, "statelessSuggestion": { "methods": { "generate": { @@ -8082,7 +8239,7 @@ } } }, - "revision": "20241019", + "revision": "20241025", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -16021,6 +16178,86 @@ "properties": {}, "type": "object" }, + "GoogleCloudDialogflowV2beta1Connection": { + "description": "Represents a connection for SIP Trunk.", + "id": "GoogleCloudDialogflowV2beta1Connection", + "properties": { + "connectionId": { + "description": "Output only. The unique identifier of the SIP Trunk connection.", + "readOnly": true, + "type": "string" + }, + "errorDetails": { + "$ref": "GoogleCloudDialogflowV2beta1ConnectionErrorDetails", + "description": "Output only. The error details for the connection. Only populated when authentication errors occur.", + "readOnly": true + }, + "state": { + "description": "Output only. State of the connection.", + "enum": [ + "STATE_UNSPECIFIED", + "CONNECTED", + "DISCONNECTED", + "AUTHENTICATION_FAILED", + "KEEPALIVE" + ], + "enumDescriptions": [ + "SIP Trunk connection state is Not specified.", + "SIP Trunk connection is connected.", + "SIP Trunk connection is disconnected.", + "SIP Trunk connection has authentication error.", + "SIP Trunk connection is keepalive." + ], + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Output only. When the connection status changed.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowV2beta1ConnectionErrorDetails": { + "description": "The error details of Sip Trunk connection authentication.", + "id": "GoogleCloudDialogflowV2beta1ConnectionErrorDetails", + "properties": { + "certificateState": { + "description": "Output only. The status of the certificate authentication.", + "enum": [ + "CERTIFICATE_STATE_UNSPECIFIED", + "CERTIFICATE_VALID", + "CERTIFICATE_INVALID", + "CERTIFICATE_EXPIRED", + "CERTIFICATE_HOSTNAME_NOT_FOUND", + "CERTIFICATE_UNAUTHENTICATED", + "CERTIFICATE_TRUST_STORE_NOT_FOUND", + "CERTIFICATE_HOSTNAME_INVALID_FORMAT", + "CERTIFICATE_QUOTA_EXCEEDED" + ], + "enumDescriptions": [ + "Certificate state is not specified.", + "Certificate is valid.", + "Catch all for any error not specified.", + "Certificate leaf node has expired.", + "There is no hostname defined to authenticate in SipTrunkingServer.", + "No path found from the leaf certificate to any root.", + "Trust store does not exist.", + "Hostname has invalid format.", + "Certificate has exhausted its quota." + ], + "readOnly": true, + "type": "string" + }, + "errorMessage": { + "description": "The error message provided from SIP trunking auth service", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDialogflowV2beta1Context": { "description": "Dialogflow contexts are similar to natural language context. If a person says to you \"they are orange\", you need context in order to understand what \"they\" is referring to. Similarly, for Dialogflow to handle an end-user expression like that, it needs to be provided with context in order to correctly match an intent. Using contexts, you can control the flow of a conversation. You can configure contexts for an intent by setting input and output contexts, which are identified by string names. When an intent is matched, any configured output contexts for that intent become active. While any contexts are active, Dialogflow is more likely to match intents that are configured with input contexts that correspond to the currently active contexts. For more information about context, see the [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).", "id": "GoogleCloudDialogflowV2beta1Context", @@ -19411,6 +19648,24 @@ }, "type": "object" }, + "GoogleCloudDialogflowV2beta1ListSipTrunksResponse": { + "description": "The response message for SipTrunks.ListSipTrunks.", + "id": "GoogleCloudDialogflowV2beta1ListSipTrunksResponse", + "properties": { + "nextPageToken": { + "description": "Token to retrieve the next page of results, or empty if there are no more results in the list.", + "type": "string" + }, + "sipTrunks": { + "description": "The list of SIP trunks.", + "items": { + "$ref": "GoogleCloudDialogflowV2beta1SipTrunk" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDialogflowV2beta1ListSuggestionsResponse": { "deprecated": true, "description": "The response message for Participants.ListSuggestions.", @@ -20530,6 +20785,36 @@ }, "type": "object" }, + "GoogleCloudDialogflowV2beta1SipTrunk": { + "description": "SipTrunk is the resource that represents a SIP trunk to connect to Google Telephony platform SIP trunking service.", + "id": "GoogleCloudDialogflowV2beta1SipTrunk", + "properties": { + "connections": { + "description": "Output only. Connections of the SIP trunk.", + "items": { + "$ref": "GoogleCloudDialogflowV2beta1Connection" + }, + "readOnly": true, + "type": "array" + }, + "displayName": { + "description": "Optional. Human readable alias for this trunk.", + "type": "string" + }, + "expectedHostname": { + "description": "Required. The expected hostnames in the peer certificate from partner that is used for TLS authentication.", + "items": { + "type": "string" + }, + "type": "array" + }, + "name": { + "description": "Identifier. The unique identifier of the SIP trunk. Format: `projects//locations//sipTrunks/`.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDialogflowV2beta1SmartReplyAnswer": { "description": "Represents a smart reply answer.", "id": "GoogleCloudDialogflowV2beta1SmartReplyAnswer", diff --git a/dialogflow/v2beta1/dialogflow-gen.go b/dialogflow/v2beta1/dialogflow-gen.go index 4b2338543c8..a104b607f8e 100644 --- a/dialogflow/v2beta1/dialogflow-gen.go +++ b/dialogflow/v2beta1/dialogflow-gen.go @@ -505,6 +505,7 @@ func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs.Generators = NewProjectsLocationsGeneratorsService(s) rs.KnowledgeBases = NewProjectsLocationsKnowledgeBasesService(s) rs.Operations = NewProjectsLocationsOperationsService(s) + rs.SipTrunks = NewProjectsLocationsSipTrunksService(s) rs.StatelessSuggestion = NewProjectsLocationsStatelessSuggestionService(s) rs.Suggestions = NewProjectsLocationsSuggestionsService(s) return rs @@ -529,6 +530,8 @@ type ProjectsLocationsService struct { Operations *ProjectsLocationsOperationsService + SipTrunks *ProjectsLocationsSipTrunksService + StatelessSuggestion *ProjectsLocationsStatelessSuggestionService Suggestions *ProjectsLocationsSuggestionsService @@ -822,6 +825,15 @@ type ProjectsLocationsOperationsService struct { s *Service } +func NewProjectsLocationsSipTrunksService(s *Service) *ProjectsLocationsSipTrunksService { + rs := &ProjectsLocationsSipTrunksService{s: s} + return rs +} + +type ProjectsLocationsSipTrunksService struct { + s *Service +} + func NewProjectsLocationsStatelessSuggestionService(s *Service) *ProjectsLocationsStatelessSuggestionService { rs := &ProjectsLocationsStatelessSuggestionService{s: s} return rs @@ -11872,6 +11884,82 @@ func (s GoogleCloudDialogflowV2beta1CompileSuggestionResponse) MarshalJSON() ([] type GoogleCloudDialogflowV2beta1CompleteConversationRequest struct { } +// GoogleCloudDialogflowV2beta1Connection: Represents a connection for SIP +// Trunk. +type GoogleCloudDialogflowV2beta1Connection struct { + // ConnectionId: Output only. The unique identifier of the SIP Trunk + // connection. + ConnectionId string `json:"connectionId,omitempty"` + // ErrorDetails: Output only. The error details for the connection. Only + // populated when authentication errors occur. + ErrorDetails *GoogleCloudDialogflowV2beta1ConnectionErrorDetails `json:"errorDetails,omitempty"` + // State: Output only. State of the connection. + // + // Possible values: + // "STATE_UNSPECIFIED" - SIP Trunk connection state is Not specified. + // "CONNECTED" - SIP Trunk connection is connected. + // "DISCONNECTED" - SIP Trunk connection is disconnected. + // "AUTHENTICATION_FAILED" - SIP Trunk connection has authentication error. + // "KEEPALIVE" - SIP Trunk connection is keepalive. + State string `json:"state,omitempty"` + // UpdateTime: Output only. When the connection status changed. + UpdateTime string `json:"updateTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "ConnectionId") 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. "ConnectionId") 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 GoogleCloudDialogflowV2beta1Connection) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowV2beta1Connection + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowV2beta1ConnectionErrorDetails: The error details of Sip +// Trunk connection authentication. +type GoogleCloudDialogflowV2beta1ConnectionErrorDetails struct { + // CertificateState: Output only. The status of the certificate authentication. + // + // Possible values: + // "CERTIFICATE_STATE_UNSPECIFIED" - Certificate state is not specified. + // "CERTIFICATE_VALID" - Certificate is valid. + // "CERTIFICATE_INVALID" - Catch all for any error not specified. + // "CERTIFICATE_EXPIRED" - Certificate leaf node has expired. + // "CERTIFICATE_HOSTNAME_NOT_FOUND" - There is no hostname defined to + // authenticate in SipTrunkingServer. + // "CERTIFICATE_UNAUTHENTICATED" - No path found from the leaf certificate to + // any root. + // "CERTIFICATE_TRUST_STORE_NOT_FOUND" - Trust store does not exist. + // "CERTIFICATE_HOSTNAME_INVALID_FORMAT" - Hostname has invalid format. + // "CERTIFICATE_QUOTA_EXCEEDED" - Certificate has exhausted its quota. + CertificateState string `json:"certificateState,omitempty"` + // ErrorMessage: The error message provided from SIP trunking auth service + ErrorMessage string `json:"errorMessage,omitempty"` + // ForceSendFields is a list of field names (e.g. "CertificateState") 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. "CertificateState") 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 GoogleCloudDialogflowV2beta1ConnectionErrorDetails) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowV2beta1ConnectionErrorDetails + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowV2beta1Context: Dialogflow contexts are similar to // natural language context. If a person says to you "they are orange", you // need context in order to understand what "they" is referring to. Similarly, @@ -16770,6 +16858,35 @@ func (s GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse) MarshalJSON( return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowV2beta1ListSipTrunksResponse: The response message for +// SipTrunks.ListSipTrunks. +type GoogleCloudDialogflowV2beta1ListSipTrunksResponse struct { + // NextPageToken: Token to retrieve the next page of results, or empty if there + // are no more results in the list. + NextPageToken string `json:"nextPageToken,omitempty"` + // SipTrunks: The list of SIP trunks. + SipTrunks []*GoogleCloudDialogflowV2beta1SipTrunk `json:"sipTrunks,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "NextPageToken") 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. "NextPageToken") 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 GoogleCloudDialogflowV2beta1ListSipTrunksResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowV2beta1ListSipTrunksResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowV2beta1ListSuggestionsResponse: The response message // for Participants.ListSuggestions. type GoogleCloudDialogflowV2beta1ListSuggestionsResponse struct { @@ -18358,6 +18475,41 @@ func (s GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigRequest) MarshalJS return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowV2beta1SipTrunk: SipTrunk is the resource that +// represents a SIP trunk to connect to Google Telephony platform SIP trunking +// service. +type GoogleCloudDialogflowV2beta1SipTrunk struct { + // Connections: Output only. Connections of the SIP trunk. + Connections []*GoogleCloudDialogflowV2beta1Connection `json:"connections,omitempty"` + // DisplayName: Optional. Human readable alias for this trunk. + DisplayName string `json:"displayName,omitempty"` + // ExpectedHostname: Required. The expected hostnames in the peer certificate + // from partner that is used for TLS authentication. + ExpectedHostname []string `json:"expectedHostname,omitempty"` + // Name: Identifier. The unique identifier of the SIP trunk. Format: + // `projects//locations//sipTrunks/`. + 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. "Connections") 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. "Connections") 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 GoogleCloudDialogflowV2beta1SipTrunk) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowV2beta1SipTrunk + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowV2beta1SmartReplyAnswer: Represents a smart reply // answer. type GoogleCloudDialogflowV2beta1SmartReplyAnswer struct { @@ -47963,6 +48115,570 @@ func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func( } } +type ProjectsLocationsSipTrunksCreateCall struct { + s *Service + parent string + googleclouddialogflowv2beta1siptrunk *GoogleCloudDialogflowV2beta1SipTrunk + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a SipTrunk for a specified location. +// +// - parent: The location to create a SIP trunk for. Format: +// `projects//locations/`. +func (r *ProjectsLocationsSipTrunksService) Create(parent string, googleclouddialogflowv2beta1siptrunk *GoogleCloudDialogflowV2beta1SipTrunk) *ProjectsLocationsSipTrunksCreateCall { + c := &ProjectsLocationsSipTrunksCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleclouddialogflowv2beta1siptrunk = googleclouddialogflowv2beta1siptrunk + 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 *ProjectsLocationsSipTrunksCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsSipTrunksCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsSipTrunksCreateCall) Context(ctx context.Context) *ProjectsLocationsSipTrunksCreateCall { + 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 *ProjectsLocationsSipTrunksCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsSipTrunksCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1siptrunk) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/sipTrunks") + 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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dialogflow.projects.locations.sipTrunks.create" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudDialogflowV2beta1SipTrunk.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 *ProjectsLocationsSipTrunksCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SipTrunk, 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 := &GoogleCloudDialogflowV2beta1SipTrunk{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsSipTrunksDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a specified SipTrunk. +// +// - name: The name of the SIP trunk to delete. Format: +// `projects//locations//sipTrunks/`. +func (r *ProjectsLocationsSipTrunksService) Delete(name string) *ProjectsLocationsSipTrunksDeleteCall { + c := &ProjectsLocationsSipTrunksDeleteCall{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 *ProjectsLocationsSipTrunksDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsSipTrunksDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsSipTrunksDeleteCall) Context(ctx context.Context) *ProjectsLocationsSipTrunksDeleteCall { + 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 *ProjectsLocationsSipTrunksDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsSipTrunksDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dialogflow.projects.locations.sipTrunks.delete" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.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 *ProjectsLocationsSipTrunksDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, 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 := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsSipTrunksGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Retrieves the specified SipTrunk. +// +// - name: The name of the SIP trunk to delete. Format: +// `projects//locations//sipTrunks/`. +func (r *ProjectsLocationsSipTrunksService) Get(name string) *ProjectsLocationsSipTrunksGetCall { + c := &ProjectsLocationsSipTrunksGetCall{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 *ProjectsLocationsSipTrunksGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsSipTrunksGetCall { + 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 *ProjectsLocationsSipTrunksGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsSipTrunksGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsSipTrunksGetCall) Context(ctx context.Context) *ProjectsLocationsSipTrunksGetCall { + 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 *ProjectsLocationsSipTrunksGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsSipTrunksGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dialogflow.projects.locations.sipTrunks.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudDialogflowV2beta1SipTrunk.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 *ProjectsLocationsSipTrunksGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SipTrunk, 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 := &GoogleCloudDialogflowV2beta1SipTrunk{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsSipTrunksListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Returns a list of SipTrunks in the specified location. +// +// - parent: The location to list SIP trunks from. Format: +// `projects//locations/`. +func (r *ProjectsLocationsSipTrunksService) List(parent string) *ProjectsLocationsSipTrunksListCall { + c := &ProjectsLocationsSipTrunksListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of items +// to return in a single page. By default 100 and at most 1000. +func (c *ProjectsLocationsSipTrunksListCall) PageSize(pageSize int64) *ProjectsLocationsSipTrunksListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The next_page_token value +// returned from a previous list request. +func (c *ProjectsLocationsSipTrunksListCall) PageToken(pageToken string) *ProjectsLocationsSipTrunksListCall { + 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 *ProjectsLocationsSipTrunksListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSipTrunksListCall { + 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 *ProjectsLocationsSipTrunksListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSipTrunksListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsSipTrunksListCall) Context(ctx context.Context) *ProjectsLocationsSipTrunksListCall { + 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 *ProjectsLocationsSipTrunksListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsSipTrunksListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/sipTrunks") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dialogflow.projects.locations.sipTrunks.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudDialogflowV2beta1ListSipTrunksResponse.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 *ProjectsLocationsSipTrunksListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListSipTrunksResponse, 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 := &GoogleCloudDialogflowV2beta1ListSipTrunksResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsSipTrunksListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListSipTrunksResponse) 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 ProjectsLocationsSipTrunksPatchCall struct { + s *Service + nameid string + googleclouddialogflowv2beta1siptrunk *GoogleCloudDialogflowV2beta1SipTrunk + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates the specified SipTrunk. +// +// - name: Identifier. The unique identifier of the SIP trunk. Format: +// `projects//locations//sipTrunks/`. +func (r *ProjectsLocationsSipTrunksService) Patch(nameid string, googleclouddialogflowv2beta1siptrunk *GoogleCloudDialogflowV2beta1SipTrunk) *ProjectsLocationsSipTrunksPatchCall { + c := &ProjectsLocationsSipTrunksPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.nameid = nameid + c.googleclouddialogflowv2beta1siptrunk = googleclouddialogflowv2beta1siptrunk + return c +} + +// UpdateMask sets the optional parameter "updateMask": The mask to control +// which fields get updated. If the mask is not present, all fields will be +// updated. +func (c *ProjectsLocationsSipTrunksPatchCall) UpdateMask(updateMask string) *ProjectsLocationsSipTrunksPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsSipTrunksPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsSipTrunksPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsSipTrunksPatchCall) Context(ctx context.Context) *ProjectsLocationsSipTrunksPatchCall { + 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 *ProjectsLocationsSipTrunksPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsSipTrunksPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1siptrunk) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.nameid, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dialogflow.projects.locations.sipTrunks.patch" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudDialogflowV2beta1SipTrunk.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 *ProjectsLocationsSipTrunksPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SipTrunk, 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 := &GoogleCloudDialogflowV2beta1SipTrunk{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + type ProjectsLocationsStatelessSuggestionGenerateCall struct { s *Service parent string diff --git a/dialogflow/v3/dialogflow-api.json b/dialogflow/v3/dialogflow-api.json index d4a38b42b2d..d03946684de 100644 --- a/dialogflow/v3/dialogflow-api.json +++ b/dialogflow/v3/dialogflow-api.json @@ -4453,7 +4453,7 @@ } } }, - "revision": "20241019", + "revision": "20241025", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -6914,6 +6914,10 @@ "description": "Required. The human-readable name of the generator, unique within the agent. The prompt contains pre-defined parameters such as $conversation, $last-user-utterance, etc. populated by Dialogflow. It can also contain custom placeholders which will be resolved during fulfillment.", "type": "string" }, + "modelParameter": { + "$ref": "GoogleCloudDialogflowCxV3GeneratorModelParameter", + "description": "Parameters passed to the LLM to configure its behavior." + }, "name": { "description": "The unique identifier of the generator. Must be set for the Generators.UpdateGenerator method. Generators.CreateGenerate populates the name automatically. Format: `projects//locations//agents//generators/`.", "type": "string" @@ -6932,6 +6936,33 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3GeneratorModelParameter": { + "description": "Parameters to be passed to the LLM. If not set, default values will be used.", + "id": "GoogleCloudDialogflowCxV3GeneratorModelParameter", + "properties": { + "maxDecodeSteps": { + "description": "The maximum number of tokens to generate.", + "format": "int32", + "type": "integer" + }, + "temperature": { + "description": "The temperature used for sampling. Temperature sampling occurs after both topP and topK have been applied. Valid range: [0.0, 1.0] Low temperature = less random. High temperature = more random.", + "format": "float", + "type": "number" + }, + "topK": { + "description": "If set, the sampling process in each step is limited to the top_k tokens with highest probabilities. Valid range: [1, 40] or 1000+. Small topK = less random. Large topK = more random.", + "format": "int32", + "type": "integer" + }, + "topP": { + "description": "If set, only the tokens comprising the top top_p probability mass are considered. If both top_p and top_k are set, top_p will be used for further refining candidates selected with top_k. Valid range: (0.0, 1.0]. Small topP = less random. Large topP = more random.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3GeneratorPlaceholder": { "description": "Represents a custom placeholder in the prompt text.", "id": "GoogleCloudDialogflowCxV3GeneratorPlaceholder", diff --git a/dialogflow/v3/dialogflow-gen.go b/dialogflow/v3/dialogflow-gen.go index ee1de38db48..8ab79876734 100644 --- a/dialogflow/v3/dialogflow-gen.go +++ b/dialogflow/v3/dialogflow-gen.go @@ -3961,6 +3961,8 @@ type GoogleCloudDialogflowCxV3Generator struct { // $conversation, $last-user-utterance, etc. populated by Dialogflow. It can // also contain custom placeholders which will be resolved during fulfillment. DisplayName string `json:"displayName,omitempty"` + // ModelParameter: Parameters passed to the LLM to configure its behavior. + ModelParameter *GoogleCloudDialogflowCxV3GeneratorModelParameter `json:"modelParameter,omitempty"` // Name: The unique identifier of the generator. Must be set for the // Generators.UpdateGenerator method. Generators.CreateGenerate populates the // name automatically. Format: `projects//locations//agents//generators/`. @@ -3990,6 +3992,58 @@ func (s GoogleCloudDialogflowCxV3Generator) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3GeneratorModelParameter: Parameters to be passed to +// the LLM. If not set, default values will be used. +type GoogleCloudDialogflowCxV3GeneratorModelParameter struct { + // MaxDecodeSteps: The maximum number of tokens to generate. + MaxDecodeSteps int64 `json:"maxDecodeSteps,omitempty"` + // Temperature: The temperature used for sampling. Temperature sampling occurs + // after both topP and topK have been applied. Valid range: [0.0, 1.0] Low + // temperature = less random. High temperature = more random. + Temperature float64 `json:"temperature,omitempty"` + // TopK: If set, the sampling process in each step is limited to the top_k + // tokens with highest probabilities. Valid range: [1, 40] or 1000+. Small topK + // = less random. Large topK = more random. + TopK int64 `json:"topK,omitempty"` + // TopP: If set, only the tokens comprising the top top_p probability mass are + // considered. If both top_p and top_k are set, top_p will be used for further + // refining candidates selected with top_k. Valid range: (0.0, 1.0]. Small topP + // = less random. Large topP = more random. + TopP float64 `json:"topP,omitempty"` + // ForceSendFields is a list of field names (e.g. "MaxDecodeSteps") 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. "MaxDecodeSteps") 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 GoogleCloudDialogflowCxV3GeneratorModelParameter) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3GeneratorModelParameter + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudDialogflowCxV3GeneratorModelParameter) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDialogflowCxV3GeneratorModelParameter + var s1 struct { + Temperature gensupport.JSONFloat64 `json:"temperature"` + TopP gensupport.JSONFloat64 `json:"topP"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Temperature = float64(s1.Temperature) + s.TopP = float64(s1.TopP) + return nil +} + // GoogleCloudDialogflowCxV3GeneratorPlaceholder: Represents a custom // placeholder in the prompt text. type GoogleCloudDialogflowCxV3GeneratorPlaceholder struct { diff --git a/dialogflow/v3beta1/dialogflow-api.json b/dialogflow/v3beta1/dialogflow-api.json index 7b24fcc7f5f..011d3c7a792 100644 --- a/dialogflow/v3beta1/dialogflow-api.json +++ b/dialogflow/v3beta1/dialogflow-api.json @@ -5185,7 +5185,7 @@ } } }, - "revision": "20241019", + "revision": "20241025", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -10465,6 +10465,10 @@ "$ref": "GoogleCloudDialogflowCxV3beta1LlmModelSettings", "description": "The LLM model settings." }, + "modelParameter": { + "$ref": "GoogleCloudDialogflowCxV3beta1GeneratorModelParameter", + "description": "Parameters passed to the LLM to configure its behavior." + }, "name": { "description": "The unique identifier of the generator. Must be set for the Generators.UpdateGenerator method. Generators.CreateGenerate populates the name automatically. Format: `projects//locations//agents//generators/`.", "type": "string" @@ -10483,6 +10487,33 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3beta1GeneratorModelParameter": { + "description": "Parameters to be passed to the LLM. If not set, default values will be used.", + "id": "GoogleCloudDialogflowCxV3beta1GeneratorModelParameter", + "properties": { + "maxDecodeSteps": { + "description": "The maximum number of tokens to generate.", + "format": "int32", + "type": "integer" + }, + "temperature": { + "description": "The temperature used for sampling. Temperature sampling occurs after both topP and topK have been applied. Valid range: [0.0, 1.0] Low temperature = less random. High temperature = more random.", + "format": "float", + "type": "number" + }, + "topK": { + "description": "If set, the sampling process in each step is limited to the top_k tokens with highest probabilities. Valid range: [1, 40] or 1000+. Small topK = less random. Large topK = more random.", + "format": "int32", + "type": "integer" + }, + "topP": { + "description": "If set, only the tokens comprising the top top_p probability mass are considered. If both top_p and top_k are set, top_p will be used for further refining candidates selected with top_k. Valid range: (0.0, 1.0]. Small topP = less random. Large topP = more random.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3beta1GeneratorPlaceholder": { "description": "Represents a custom placeholder in the prompt text.", "id": "GoogleCloudDialogflowCxV3beta1GeneratorPlaceholder", diff --git a/dialogflow/v3beta1/dialogflow-gen.go b/dialogflow/v3beta1/dialogflow-gen.go index 1fcd40b497f..8724d99c2b9 100644 --- a/dialogflow/v3beta1/dialogflow-gen.go +++ b/dialogflow/v3beta1/dialogflow-gen.go @@ -7876,6 +7876,8 @@ type GoogleCloudDialogflowCxV3beta1Generator struct { DisplayName string `json:"displayName,omitempty"` // LlmModelSettings: The LLM model settings. LlmModelSettings *GoogleCloudDialogflowCxV3beta1LlmModelSettings `json:"llmModelSettings,omitempty"` + // ModelParameter: Parameters passed to the LLM to configure its behavior. + ModelParameter *GoogleCloudDialogflowCxV3beta1GeneratorModelParameter `json:"modelParameter,omitempty"` // Name: The unique identifier of the generator. Must be set for the // Generators.UpdateGenerator method. Generators.CreateGenerate populates the // name automatically. Format: `projects//locations//agents//generators/`. @@ -7905,6 +7907,58 @@ func (s GoogleCloudDialogflowCxV3beta1Generator) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3beta1GeneratorModelParameter: Parameters to be +// passed to the LLM. If not set, default values will be used. +type GoogleCloudDialogflowCxV3beta1GeneratorModelParameter struct { + // MaxDecodeSteps: The maximum number of tokens to generate. + MaxDecodeSteps int64 `json:"maxDecodeSteps,omitempty"` + // Temperature: The temperature used for sampling. Temperature sampling occurs + // after both topP and topK have been applied. Valid range: [0.0, 1.0] Low + // temperature = less random. High temperature = more random. + Temperature float64 `json:"temperature,omitempty"` + // TopK: If set, the sampling process in each step is limited to the top_k + // tokens with highest probabilities. Valid range: [1, 40] or 1000+. Small topK + // = less random. Large topK = more random. + TopK int64 `json:"topK,omitempty"` + // TopP: If set, only the tokens comprising the top top_p probability mass are + // considered. If both top_p and top_k are set, top_p will be used for further + // refining candidates selected with top_k. Valid range: (0.0, 1.0]. Small topP + // = less random. Large topP = more random. + TopP float64 `json:"topP,omitempty"` + // ForceSendFields is a list of field names (e.g. "MaxDecodeSteps") 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. "MaxDecodeSteps") 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 GoogleCloudDialogflowCxV3beta1GeneratorModelParameter) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1GeneratorModelParameter + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudDialogflowCxV3beta1GeneratorModelParameter) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDialogflowCxV3beta1GeneratorModelParameter + var s1 struct { + Temperature gensupport.JSONFloat64 `json:"temperature"` + TopP gensupport.JSONFloat64 `json:"topP"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Temperature = float64(s1.Temperature) + s.TopP = float64(s1.TopP) + return nil +} + // GoogleCloudDialogflowCxV3beta1GeneratorPlaceholder: Represents a custom // placeholder in the prompt text. type GoogleCloudDialogflowCxV3beta1GeneratorPlaceholder struct { diff --git a/discoveryengine/v1/discoveryengine-api.json b/discoveryengine/v1/discoveryengine-api.json index 65193902d19..1533b45d8a0 100644 --- a/discoveryengine/v1/discoveryengine-api.json +++ b/discoveryengine/v1/discoveryengine-api.json @@ -6090,7 +6090,7 @@ } } }, - "revision": "20241025", + "revision": "20241031", "rootUrl": "https://discoveryengine.googleapis.com/", "schemas": { "GoogleApiDistribution": { @@ -7756,7 +7756,14 @@ "citedChunks": { "description": "List of facts cited across all claims in the answer candidate. These are derived from the facts supplied in the request.", "items": { - "$ref": "GoogleCloudDiscoveryengineV1CheckGroundingResponseFactChunk" + "$ref": "GoogleCloudDiscoveryengineV1FactChunk" + }, + "type": "array" + }, + "citedFacts": { + "description": "List of facts cited across all claims in the answer candidate. These are derived from the facts supplied in the request.", + "items": { + "$ref": "GoogleCloudDiscoveryengineV1CheckGroundingResponseCheckGroundingFactChunk" }, "type": "array" }, @@ -7775,6 +7782,17 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1CheckGroundingResponseCheckGroundingFactChunk": { + "description": "Fact chunk for grounding check.", + "id": "GoogleCloudDiscoveryengineV1CheckGroundingResponseCheckGroundingFactChunk", + "properties": { + "chunkText": { + "description": "Text content of the fact chunk. Can be at most 10K characters long.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1CheckGroundingResponseClaim": { "description": "Text and citation info for a claim in the answer candidate.", "id": "GoogleCloudDiscoveryengineV1CheckGroundingResponseClaim", @@ -7808,21 +7826,6 @@ }, "type": "object" }, - "GoogleCloudDiscoveryengineV1CheckGroundingResponseFactChunk": { - "description": "Fact chunk for grounding check.", - "id": "GoogleCloudDiscoveryengineV1CheckGroundingResponseFactChunk", - "properties": { - "chunkText": { - "description": "Text content of the fact chunk. Can be at most 10K characters long.", - "type": "string" - }, - "source": { - "description": "Source from which this fact chunk was retrieved. For a fact chunk retrieved from inline facts, this field will contain the index of the specific fact from which this chunk was retrieved.", - "type": "string" - } - }, - "type": "object" - }, "GoogleCloudDiscoveryengineV1CheckGroundingSpec": { "description": "Specification for the grounding check.", "id": "GoogleCloudDiscoveryengineV1CheckGroundingSpec", @@ -9352,6 +9355,107 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1FactChunk": { + "description": "Fact Chunk.", + "id": "GoogleCloudDiscoveryengineV1FactChunk", + "properties": { + "chunkText": { + "description": "Text content of the fact chunk. Can be at most 10K characters long.", + "type": "string" + }, + "index": { + "description": "The index of this chunk. Currently, only used for the streaming mode.", + "format": "int32", + "type": "integer" + }, + "source": { + "description": "Source from which this fact chunk was retrieved. If it was retrieved from the GroundingFacts provided in the request then this field will contain the index of the specific fact from which this chunk was retrieved.", + "type": "string" + }, + "sourceMetadata": { + "additionalProperties": { + "type": "string" + }, + "description": "More fine-grained information for the source reference.", + "type": "object" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1Feedback": { + "description": "Information about the user feedback. This information will be used for logging and metrics purpose.", + "id": "GoogleCloudDiscoveryengineV1Feedback", + "properties": { + "comment": { + "description": "Optional. The additional user comment of the feedback if user gives a thumb down.", + "type": "string" + }, + "conversationInfo": { + "$ref": "GoogleCloudDiscoveryengineV1FeedbackConversationInfo", + "description": "The related conversation information when user gives feedback." + }, + "feedbackType": { + "description": "Required. Indicate whether the user gives a positive or negative feedback. If the user gives a negative feedback, there might be more feedback details.", + "enum": [ + "FEEDBACK_TYPE_UNSPECIFIED", + "LIKE", + "DISLIKE" + ], + "enumDescriptions": [ + "Unspecified feedback type.", + "The user gives a positive feedback.", + "The user gives a negative feedback." + ], + "type": "string" + }, + "llmModelVersion": { + "description": "The version of the LLM model that was used to generate the response.", + "type": "string" + }, + "reasons": { + "description": "Optional. The reason if user gives a thumb down.", + "items": { + "enum": [ + "REASON_UNSPECIFIED", + "INACCURATE_RESPONSE", + "NOT_RELEVANT", + "INCOMPREHENSIVE", + "OFFENSIVE_OR_UNSAFE", + "BAD_CIATION", + "FORMAT_AND_STYLES" + ], + "enumDescriptions": [ + "Unspecified reason.", + "The response is inaccurate.", + "The response is not relevant.", + "The response is incomprehensive.", + "The response is offensive or unsafe.", + "The response is not well-associated with the query.", + "The response is not well-formatted." + ], + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1FeedbackConversationInfo": { + "description": "The conversation information such as the question index and session name.", + "id": "GoogleCloudDiscoveryengineV1FeedbackConversationInfo", + "properties": { + "questionIndex": { + "description": "The index of the user input within the conversation messages.", + "format": "int32", + "type": "integer" + }, + "session": { + "description": "Name of the newly generated or continued session.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1FetchDomainVerificationStatusResponse": { "description": "Response message for SiteSearchEngineService.FetchDomainVerificationStatus method.", "id": "GoogleCloudDiscoveryengineV1FetchDomainVerificationStatusResponse", @@ -10087,6 +10191,13 @@ "description": "The display name of the panel.", "type": "string" }, + "documents": { + "description": "Optional. The document IDs associated with this panel.", + "items": { + "$ref": "GoogleCloudDiscoveryengineV1DocumentInfo" + }, + "type": "array" + }, "panelId": { "description": "Required. The panel ID.", "type": "string" @@ -12057,6 +12168,10 @@ "description": "Required. User event type. Allowed values are: Generic values: * `search`: Search for Documents. * `view-item`: Detailed page view of a Document. * `view-item-list`: View of a panel or ordered list of Documents. * `view-home-page`: View of the home page. * `view-category-page`: View of a category page, e.g. Home \u003e Men \u003e Jeans * `add-feedback`: Add a user feedback. Retail-related values: * `add-to-cart`: Add an item(s) to cart, e.g. in Retail online shopping * `purchase`: Purchase an item(s) Media-related values: * `media-play`: Start/resume watching a video, playing a song, etc. * `media-complete`: Finished or stopped midway through a video, song, etc.", "type": "string" }, + "feedback": { + "$ref": "GoogleCloudDiscoveryengineV1Feedback", + "description": "Optional. This field is optional except for the `add-feedback` event types." + }, "filter": { "description": "The filter syntax consists of an expression language for constructing a predicate from one or more fields of the documents being filtered. One example is for `search` events, the associated SearchRequest may contain a filter expression in SearchRequest.filter conforming to https://google.aip.dev/160#filtering. Similarly, for `view-item-list` events that are generated from a RecommendRequest, this field may be populated directly from RecommendRequest.filter conforming to https://google.aip.dev/160#filtering. The value must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an `INVALID_ARGUMENT` error is returned.", "type": "string" @@ -12073,6 +12188,13 @@ "$ref": "GoogleCloudDiscoveryengineV1PanelInfo", "description": "Panel metadata associated with this user event." }, + "panels": { + "description": "Optional. List of panels associated with this event. Used for page-level impression data.", + "items": { + "$ref": "GoogleCloudDiscoveryengineV1PanelInfo" + }, + "type": "array" + }, "promotionIds": { "description": "The promotion IDs if this is an event associated with promotions. Currently, this field is restricted to at most one ID.", "items": { @@ -13032,6 +13154,23 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaCreateSitemapMetadata": { + "description": "Metadata related to the progress of the SiteSearchEngineService.CreateSitemap operation. This will be returned by the google.longrunning.Operation.metadata field.", + "id": "GoogleCloudDiscoveryengineV1alphaCreateSitemapMetadata", + "properties": { + "createTime": { + "description": "Operation create time.", + "format": "google-datetime", + "type": "string" + }, + "updateTime": { + "description": "Operation last update time. If the operation is done, this is also the finish time.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaCreateTargetSiteMetadata": { "description": "Metadata related to the progress of the SiteSearchEngineService.CreateTargetSite operation. This will be returned by the google.longrunning.Operation.metadata field.", "id": "GoogleCloudDiscoveryengineV1alphaCreateTargetSiteMetadata", @@ -13373,6 +13512,23 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaDeleteSitemapMetadata": { + "description": "Metadata related to the progress of the SiteSearchEngineService.DeleteSitemap operation. This will be returned by the google.longrunning.Operation.metadata field.", + "id": "GoogleCloudDiscoveryengineV1alphaDeleteSitemapMetadata", + "properties": { + "createTime": { + "description": "Operation create time.", + "format": "google-datetime", + "type": "string" + }, + "updateTime": { + "description": "Operation last update time. If the operation is done, this is also the finish time.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaDeleteTargetSiteMetadata": { "description": "Metadata related to the progress of the SiteSearchEngineService.DeleteTargetSite operation. This will be returned by the google.longrunning.Operation.metadata field.", "id": "GoogleCloudDiscoveryengineV1alphaDeleteTargetSiteMetadata", @@ -13961,6 +14117,31 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponse": { + "description": "Response message for SiteSearchEngineService.FetchSitemaps method.", + "id": "GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponse", + "properties": { + "sitemapsMetadata": { + "description": "List of Sitemaps fetched.", + "items": { + "$ref": "GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponseSitemapMetadata" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponseSitemapMetadata": { + "description": "Contains a Sitemap and its metadata.", + "id": "GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponseSitemapMetadata", + "properties": { + "sitemap": { + "$ref": "GoogleCloudDiscoveryengineV1alphaSitemap", + "description": "The Sitemap." + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaFieldConfig": { "description": "Configurations for fields of a schema. For example, configuring a field is indexable, or searchable.", "id": "GoogleCloudDiscoveryengineV1alphaFieldConfig", @@ -15842,6 +16023,28 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaSitemap": { + "description": "A sitemap for the SiteSearchEngine.", + "id": "GoogleCloudDiscoveryengineV1alphaSitemap", + "properties": { + "createTime": { + "description": "Output only. The sitemap's creation time.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Output only. The fully qualified resource name of the sitemap. `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/sitemaps/*` The `sitemap_id` suffix is system-generated.", + "readOnly": true, + "type": "string" + }, + "uri": { + "description": "Public URI for the sitemap, e.g. `www.example.com/sitemap.xml`.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaTargetSite": { "description": "A target site for the SiteSearchEngine.", "id": "GoogleCloudDiscoveryengineV1alphaTargetSite", @@ -16466,6 +16669,23 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1betaCreateSitemapMetadata": { + "description": "Metadata related to the progress of the SiteSearchEngineService.CreateSitemap operation. This will be returned by the google.longrunning.Operation.metadata field.", + "id": "GoogleCloudDiscoveryengineV1betaCreateSitemapMetadata", + "properties": { + "createTime": { + "description": "Operation create time.", + "format": "google-datetime", + "type": "string" + }, + "updateTime": { + "description": "Operation last update time. If the operation is done, this is also the finish time.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1betaCreateTargetSiteMetadata": { "description": "Metadata related to the progress of the SiteSearchEngineService.CreateTargetSite operation. This will be returned by the google.longrunning.Operation.metadata field.", "id": "GoogleCloudDiscoveryengineV1betaCreateTargetSiteMetadata", @@ -16772,6 +16992,23 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1betaDeleteSitemapMetadata": { + "description": "Metadata related to the progress of the SiteSearchEngineService.DeleteSitemap operation. This will be returned by the google.longrunning.Operation.metadata field.", + "id": "GoogleCloudDiscoveryengineV1betaDeleteSitemapMetadata", + "properties": { + "createTime": { + "description": "Operation create time.", + "format": "google-datetime", + "type": "string" + }, + "updateTime": { + "description": "Operation last update time. If the operation is done, this is also the finish time.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1betaDeleteTargetSiteMetadata": { "description": "Metadata related to the progress of the SiteSearchEngineService.DeleteTargetSite operation. This will be returned by the google.longrunning.Operation.metadata field.", "id": "GoogleCloudDiscoveryengineV1betaDeleteTargetSiteMetadata", @@ -17213,6 +17450,31 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1betaFetchSitemapsResponse": { + "description": "Response message for SiteSearchEngineService.FetchSitemaps method.", + "id": "GoogleCloudDiscoveryengineV1betaFetchSitemapsResponse", + "properties": { + "sitemapsMetadata": { + "description": "List of Sitemaps fetched.", + "items": { + "$ref": "GoogleCloudDiscoveryengineV1betaFetchSitemapsResponseSitemapMetadata" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1betaFetchSitemapsResponseSitemapMetadata": { + "description": "Contains a Sitemap and its metadata.", + "id": "GoogleCloudDiscoveryengineV1betaFetchSitemapsResponseSitemapMetadata", + "properties": { + "sitemap": { + "$ref": "GoogleCloudDiscoveryengineV1betaSitemap", + "description": "The Sitemap." + } + }, + "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", @@ -18524,6 +18786,28 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1betaSitemap": { + "description": "A sitemap for the SiteSearchEngine.", + "id": "GoogleCloudDiscoveryengineV1betaSitemap", + "properties": { + "createTime": { + "description": "Output only. The sitemap's creation time.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Output only. The fully qualified resource name of the sitemap. `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/sitemaps/*` The `sitemap_id` suffix is system-generated.", + "readOnly": true, + "type": "string" + }, + "uri": { + "description": "Public URI for the sitemap, e.g. `www.example.com/sitemap.xml`.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1betaTargetSite": { "description": "A target site for the SiteSearchEngine.", "id": "GoogleCloudDiscoveryengineV1betaTargetSite", diff --git a/discoveryengine/v1/discoveryengine-gen.go b/discoveryengine/v1/discoveryengine-gen.go index db2cff1bc4f..1fe1f51b947 100644 --- a/discoveryengine/v1/discoveryengine-gen.go +++ b/discoveryengine/v1/discoveryengine-gen.go @@ -3304,7 +3304,10 @@ func (s GoogleCloudDiscoveryengineV1CheckGroundingRequest) MarshalJSON() ([]byte type GoogleCloudDiscoveryengineV1CheckGroundingResponse struct { // CitedChunks: List of facts cited across all claims in the answer candidate. // These are derived from the facts supplied in the request. - CitedChunks []*GoogleCloudDiscoveryengineV1CheckGroundingResponseFactChunk `json:"citedChunks,omitempty"` + CitedChunks []*GoogleCloudDiscoveryengineV1FactChunk `json:"citedChunks,omitempty"` + // CitedFacts: List of facts cited across all claims in the answer candidate. + // These are derived from the facts supplied in the request. + CitedFacts []*GoogleCloudDiscoveryengineV1CheckGroundingResponseCheckGroundingFactChunk `json:"citedFacts,omitempty"` // Claims: Claim texts and citation info across all claims in the answer // candidate. Claims []*GoogleCloudDiscoveryengineV1CheckGroundingResponseClaim `json:"claims,omitempty"` @@ -3347,6 +3350,30 @@ func (s *GoogleCloudDiscoveryengineV1CheckGroundingResponse) UnmarshalJSON(data return nil } +// GoogleCloudDiscoveryengineV1CheckGroundingResponseCheckGroundingFactChunk: +// Fact chunk for grounding check. +type GoogleCloudDiscoveryengineV1CheckGroundingResponseCheckGroundingFactChunk struct { + // ChunkText: Text content of the fact chunk. Can be at most 10K characters + // long. + ChunkText string `json:"chunkText,omitempty"` + // ForceSendFields is a list of field names (e.g. "ChunkText") 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. "ChunkText") 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 GoogleCloudDiscoveryengineV1CheckGroundingResponseCheckGroundingFactChunk) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1CheckGroundingResponseCheckGroundingFactChunk + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1CheckGroundingResponseClaim: Text and citation // info for a claim in the answer candidate. type GoogleCloudDiscoveryengineV1CheckGroundingResponseClaim struct { @@ -3389,34 +3416,6 @@ func (s GoogleCloudDiscoveryengineV1CheckGroundingResponseClaim) MarshalJSON() ( return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDiscoveryengineV1CheckGroundingResponseFactChunk: Fact chunk for -// grounding check. -type GoogleCloudDiscoveryengineV1CheckGroundingResponseFactChunk struct { - // ChunkText: Text content of the fact chunk. Can be at most 10K characters - // long. - ChunkText string `json:"chunkText,omitempty"` - // Source: Source from which this fact chunk was retrieved. For a fact chunk - // retrieved from inline facts, this field will contain the index of the - // specific fact from which this chunk was retrieved. - Source string `json:"source,omitempty"` - // ForceSendFields is a list of field names (e.g. "ChunkText") 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. "ChunkText") 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 GoogleCloudDiscoveryengineV1CheckGroundingResponseFactChunk) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDiscoveryengineV1CheckGroundingResponseFactChunk - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // GoogleCloudDiscoveryengineV1CheckGroundingSpec: Specification for the // grounding check. type GoogleCloudDiscoveryengineV1CheckGroundingSpec struct { @@ -5476,6 +5475,112 @@ func (s GoogleCloudDiscoveryengineV1EngineSearchEngineConfig) MarshalJSON() ([]b return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1FactChunk: Fact Chunk. +type GoogleCloudDiscoveryengineV1FactChunk struct { + // ChunkText: Text content of the fact chunk. Can be at most 10K characters + // long. + ChunkText string `json:"chunkText,omitempty"` + // Index: The index of this chunk. Currently, only used for the streaming mode. + Index int64 `json:"index,omitempty"` + // Source: Source from which this fact chunk was retrieved. If it was retrieved + // from the GroundingFacts provided in the request then this field will contain + // the index of the specific fact from which this chunk was retrieved. + Source string `json:"source,omitempty"` + // SourceMetadata: More fine-grained information for the source reference. + SourceMetadata map[string]string `json:"sourceMetadata,omitempty"` + // ForceSendFields is a list of field names (e.g. "ChunkText") 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. "ChunkText") 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 GoogleCloudDiscoveryengineV1FactChunk) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1FactChunk + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1Feedback: Information about the user feedback. +// This information will be used for logging and metrics purpose. +type GoogleCloudDiscoveryengineV1Feedback struct { + // Comment: Optional. The additional user comment of the feedback if user gives + // a thumb down. + Comment string `json:"comment,omitempty"` + // ConversationInfo: The related conversation information when user gives + // feedback. + ConversationInfo *GoogleCloudDiscoveryengineV1FeedbackConversationInfo `json:"conversationInfo,omitempty"` + // FeedbackType: Required. Indicate whether the user gives a positive or + // negative feedback. If the user gives a negative feedback, there might be + // more feedback details. + // + // Possible values: + // "FEEDBACK_TYPE_UNSPECIFIED" - Unspecified feedback type. + // "LIKE" - The user gives a positive feedback. + // "DISLIKE" - The user gives a negative feedback. + FeedbackType string `json:"feedbackType,omitempty"` + // LlmModelVersion: The version of the LLM model that was used to generate the + // response. + LlmModelVersion string `json:"llmModelVersion,omitempty"` + // Reasons: Optional. The reason if user gives a thumb down. + // + // Possible values: + // "REASON_UNSPECIFIED" - Unspecified reason. + // "INACCURATE_RESPONSE" - The response is inaccurate. + // "NOT_RELEVANT" - The response is not relevant. + // "INCOMPREHENSIVE" - The response is incomprehensive. + // "OFFENSIVE_OR_UNSAFE" - The response is offensive or unsafe. + // "BAD_CIATION" - The response is not well-associated with the query. + // "FORMAT_AND_STYLES" - The response is not well-formatted. + Reasons []string `json:"reasons,omitempty"` + // ForceSendFields is a list of field names (e.g. "Comment") 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. "Comment") 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 GoogleCloudDiscoveryengineV1Feedback) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1Feedback + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1FeedbackConversationInfo: The conversation +// information such as the question index and session name. +type GoogleCloudDiscoveryengineV1FeedbackConversationInfo struct { + // QuestionIndex: The index of the user input within the conversation messages. + QuestionIndex int64 `json:"questionIndex,omitempty"` + // Session: Name of the newly generated or continued session. + Session string `json:"session,omitempty"` + // ForceSendFields is a list of field names (e.g. "QuestionIndex") 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. "QuestionIndex") 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 GoogleCloudDiscoveryengineV1FeedbackConversationInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1FeedbackConversationInfo + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1FetchDomainVerificationStatusResponse: Response // message for SiteSearchEngineService.FetchDomainVerificationStatus method. type GoogleCloudDiscoveryengineV1FetchDomainVerificationStatusResponse struct { @@ -6586,6 +6691,8 @@ func (s GoogleCloudDiscoveryengineV1PageInfo) MarshalJSON() ([]byte, error) { type GoogleCloudDiscoveryengineV1PanelInfo struct { // DisplayName: The display name of the panel. DisplayName string `json:"displayName,omitempty"` + // Documents: Optional. The document IDs associated with this panel. + Documents []*GoogleCloudDiscoveryengineV1DocumentInfo `json:"documents,omitempty"` // PanelId: Required. The panel ID. PanelId string `json:"panelId,omitempty"` // PanelPosition: The ordered position of the panel, if shown to the user with @@ -9607,6 +9714,9 @@ type GoogleCloudDiscoveryengineV1UserEvent struct { // a song, etc. * `media-complete`: Finished or stopped midway through a video, // song, etc. EventType string `json:"eventType,omitempty"` + // Feedback: Optional. This field is optional except for the `add-feedback` + // event types. + Feedback *GoogleCloudDiscoveryengineV1Feedback `json:"feedback,omitempty"` // Filter: The filter syntax consists of an expression language for // constructing a predicate from one or more fields of the documents being // filtered. One example is for `search` events, the associated SearchRequest @@ -9625,6 +9735,9 @@ type GoogleCloudDiscoveryengineV1UserEvent struct { PageInfo *GoogleCloudDiscoveryengineV1PageInfo `json:"pageInfo,omitempty"` // Panel: Panel metadata associated with this user event. Panel *GoogleCloudDiscoveryengineV1PanelInfo `json:"panel,omitempty"` + // Panels: Optional. List of panels associated with this event. Used for + // page-level impression data. + Panels []*GoogleCloudDiscoveryengineV1PanelInfo `json:"panels,omitempty"` // PromotionIds: The promotion IDs if this is an event associated with // promotions. Currently, this field is restricted to at most one ID. PromotionIds []string `json:"promotionIds,omitempty"` @@ -10900,6 +11013,33 @@ func (s GoogleCloudDiscoveryengineV1alphaCreateSchemaMetadata) MarshalJSON() ([] return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1alphaCreateSitemapMetadata: Metadata related to +// the progress of the SiteSearchEngineService.CreateSitemap operation. This +// will be returned by the google.longrunning.Operation.metadata field. +type GoogleCloudDiscoveryengineV1alphaCreateSitemapMetadata struct { + // CreateTime: Operation create time. + CreateTime string `json:"createTime,omitempty"` + // UpdateTime: Operation last update time. If the operation is done, this is + // also the finish time. + UpdateTime string `json:"updateTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "CreateTime") 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. "CreateTime") 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 GoogleCloudDiscoveryengineV1alphaCreateSitemapMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaCreateSitemapMetadata + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1alphaCreateTargetSiteMetadata: Metadata related // to the progress of the SiteSearchEngineService.CreateTargetSite operation. // This will be returned by the google.longrunning.Operation.metadata field. @@ -11292,6 +11432,33 @@ func (s GoogleCloudDiscoveryengineV1alphaDeleteSchemaMetadata) MarshalJSON() ([] return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1alphaDeleteSitemapMetadata: Metadata related to +// the progress of the SiteSearchEngineService.DeleteSitemap operation. This +// will be returned by the google.longrunning.Operation.metadata field. +type GoogleCloudDiscoveryengineV1alphaDeleteSitemapMetadata struct { + // CreateTime: Operation create time. + CreateTime string `json:"createTime,omitempty"` + // UpdateTime: Operation last update time. If the operation is done, this is + // also the finish time. + UpdateTime string `json:"updateTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "CreateTime") 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. "CreateTime") 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 GoogleCloudDiscoveryengineV1alphaDeleteSitemapMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaDeleteSitemapMetadata + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1alphaDeleteTargetSiteMetadata: Metadata related // to the progress of the SiteSearchEngineService.DeleteTargetSite operation. // This will be returned by the google.longrunning.Operation.metadata field. @@ -12114,6 +12281,52 @@ func (s GoogleCloudDiscoveryengineV1alphaEvaluationEvaluationSpecQuerySetSpec) M return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponse: Response message for +// SiteSearchEngineService.FetchSitemaps method. +type GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponse struct { + // SitemapsMetadata: List of Sitemaps fetched. + SitemapsMetadata []*GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponseSitemapMetadata `json:"sitemapsMetadata,omitempty"` + // ForceSendFields is a list of field names (e.g. "SitemapsMetadata") 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. "SitemapsMetadata") 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 GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponseSitemapMetadata: +// Contains a Sitemap and its metadata. +type GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponseSitemapMetadata struct { + // Sitemap: The Sitemap. + Sitemap *GoogleCloudDiscoveryengineV1alphaSitemap `json:"sitemap,omitempty"` + // ForceSendFields is a list of field names (e.g. "Sitemap") 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. "Sitemap") 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 GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponseSitemapMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponseSitemapMetadata + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1alphaFieldConfig: Configurations for fields of a // schema. For example, configuring a field is indexable, or searchable. type GoogleCloudDiscoveryengineV1alphaFieldConfig struct { @@ -14806,6 +15019,35 @@ func (s GoogleCloudDiscoveryengineV1alphaSiteVerificationInfo) MarshalJSON() ([] return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1alphaSitemap: A sitemap for the +// SiteSearchEngine. +type GoogleCloudDiscoveryengineV1alphaSitemap struct { + // CreateTime: Output only. The sitemap's creation time. + CreateTime string `json:"createTime,omitempty"` + // Name: Output only. The fully qualified resource name of the sitemap. + // `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/sitemaps/ + // *` The `sitemap_id` suffix is system-generated. + Name string `json:"name,omitempty"` + // Uri: Public URI for the sitemap, e.g. `www.example.com/sitemap.xml`. + Uri string `json:"uri,omitempty"` + // ForceSendFields is a list of field names (e.g. "CreateTime") 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. "CreateTime") 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 GoogleCloudDiscoveryengineV1alphaSitemap) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaSitemap + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1alphaTargetSite: A target site for the // SiteSearchEngine. type GoogleCloudDiscoveryengineV1alphaTargetSite struct { @@ -15653,6 +15895,33 @@ func (s GoogleCloudDiscoveryengineV1betaCreateSchemaMetadata) MarshalJSON() ([]b return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1betaCreateSitemapMetadata: Metadata related to +// the progress of the SiteSearchEngineService.CreateSitemap operation. This +// will be returned by the google.longrunning.Operation.metadata field. +type GoogleCloudDiscoveryengineV1betaCreateSitemapMetadata struct { + // CreateTime: Operation create time. + CreateTime string `json:"createTime,omitempty"` + // UpdateTime: Operation last update time. If the operation is done, this is + // also the finish time. + UpdateTime string `json:"updateTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "CreateTime") 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. "CreateTime") 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 GoogleCloudDiscoveryengineV1betaCreateSitemapMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaCreateSitemapMetadata + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1betaCreateTargetSiteMetadata: Metadata related // to the progress of the SiteSearchEngineService.CreateTargetSite operation. // This will be returned by the google.longrunning.Operation.metadata field. @@ -15978,6 +16247,33 @@ func (s GoogleCloudDiscoveryengineV1betaDeleteSchemaMetadata) MarshalJSON() ([]b return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1betaDeleteSitemapMetadata: Metadata related to +// the progress of the SiteSearchEngineService.DeleteSitemap operation. This +// will be returned by the google.longrunning.Operation.metadata field. +type GoogleCloudDiscoveryengineV1betaDeleteSitemapMetadata struct { + // CreateTime: Operation create time. + CreateTime string `json:"createTime,omitempty"` + // UpdateTime: Operation last update time. If the operation is done, this is + // also the finish time. + UpdateTime string `json:"updateTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "CreateTime") 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. "CreateTime") 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 GoogleCloudDiscoveryengineV1betaDeleteSitemapMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaDeleteSitemapMetadata + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1betaDeleteTargetSiteMetadata: Metadata related // to the progress of the SiteSearchEngineService.DeleteTargetSite operation. // This will be returned by the google.longrunning.Operation.metadata field. @@ -16584,6 +16880,52 @@ func (s GoogleCloudDiscoveryengineV1betaEvaluationEvaluationSpecQuerySetSpec) Ma return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1betaFetchSitemapsResponse: Response message for +// SiteSearchEngineService.FetchSitemaps method. +type GoogleCloudDiscoveryengineV1betaFetchSitemapsResponse struct { + // SitemapsMetadata: List of Sitemaps fetched. + SitemapsMetadata []*GoogleCloudDiscoveryengineV1betaFetchSitemapsResponseSitemapMetadata `json:"sitemapsMetadata,omitempty"` + // ForceSendFields is a list of field names (e.g. "SitemapsMetadata") 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. "SitemapsMetadata") 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 GoogleCloudDiscoveryengineV1betaFetchSitemapsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaFetchSitemapsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1betaFetchSitemapsResponseSitemapMetadata: +// Contains a Sitemap and its metadata. +type GoogleCloudDiscoveryengineV1betaFetchSitemapsResponseSitemapMetadata struct { + // Sitemap: The Sitemap. + Sitemap *GoogleCloudDiscoveryengineV1betaSitemap `json:"sitemap,omitempty"` + // ForceSendFields is a list of field names (e.g. "Sitemap") 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. "Sitemap") 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 GoogleCloudDiscoveryengineV1betaFetchSitemapsResponseSitemapMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaFetchSitemapsResponseSitemapMetadata + 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 @@ -18582,6 +18924,34 @@ func (s GoogleCloudDiscoveryengineV1betaSiteVerificationInfo) MarshalJSON() ([]b return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1betaSitemap: A sitemap for the SiteSearchEngine. +type GoogleCloudDiscoveryengineV1betaSitemap struct { + // CreateTime: Output only. The sitemap's creation time. + CreateTime string `json:"createTime,omitempty"` + // Name: Output only. The fully qualified resource name of the sitemap. + // `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/sitemaps/ + // *` The `sitemap_id` suffix is system-generated. + Name string `json:"name,omitempty"` + // Uri: Public URI for the sitemap, e.g. `www.example.com/sitemap.xml`. + Uri string `json:"uri,omitempty"` + // ForceSendFields is a list of field names (e.g. "CreateTime") 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. "CreateTime") 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 GoogleCloudDiscoveryengineV1betaSitemap) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaSitemap + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1betaTargetSite: A target site for the // SiteSearchEngine. type GoogleCloudDiscoveryengineV1betaTargetSite struct { diff --git a/discoveryengine/v1alpha/discoveryengine-api.json b/discoveryengine/v1alpha/discoveryengine-api.json index b633e0fde67..1ca38c415ef 100644 --- a/discoveryengine/v1alpha/discoveryengine-api.json +++ b/discoveryengine/v1alpha/discoveryengine-api.json @@ -2840,6 +2840,63 @@ } } }, + "sitemaps": { + "methods": { + "create": { + "description": "Creates a Sitemap.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/collections/{collectionsId}/dataStores/{dataStoresId}/siteSearchEngine/sitemaps", + "httpMethod": "POST", + "id": "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.sitemaps.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Parent resource name of the SiteSearchEngine, such as `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/siteSearchEngine$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/sitemaps", + "request": { + "$ref": "GoogleCloudDiscoveryengineV1alphaSitemap" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a Sitemap.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/collections/{collectionsId}/dataStores/{dataStoresId}/siteSearchEngine/sitemaps/{sitemapsId}", + "httpMethod": "DELETE", + "id": "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.sitemaps.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Full resource name of Sitemap, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}`. If the caller does not have permission to access the Sitemap, regardless of whether or not it exists, a PERMISSION_DENIED error is returned. If the requested Sitemap does not exist, a NOT_FOUND error is returned.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/siteSearchEngine/sitemaps/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "targetSites": { "methods": { "batchCreate": { @@ -6490,6 +6547,94 @@ } }, "resources": { + "sitemaps": { + "methods": { + "create": { + "description": "Creates a Sitemap.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/dataStores/{dataStoresId}/siteSearchEngine/sitemaps", + "httpMethod": "POST", + "id": "discoveryengine.projects.locations.dataStores.siteSearchEngine.sitemaps.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Parent resource name of the SiteSearchEngine, such as `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/siteSearchEngine$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/sitemaps", + "request": { + "$ref": "GoogleCloudDiscoveryengineV1alphaSitemap" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a Sitemap.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/dataStores/{dataStoresId}/siteSearchEngine/sitemaps/{sitemapsId}", + "httpMethod": "DELETE", + "id": "discoveryengine.projects.locations.dataStores.siteSearchEngine.sitemaps.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Full resource name of Sitemap, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}`. If the caller does not have permission to access the Sitemap, regardless of whether or not it exists, a PERMISSION_DENIED error is returned. If the requested Sitemap does not exist, a NOT_FOUND error is returned.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/siteSearchEngine/sitemaps/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "fetch": { + "description": "Fetch Sitemaps in a DataStore.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/dataStores/{dataStoresId}/siteSearchEngine/sitemaps:fetch", + "httpMethod": "GET", + "id": "discoveryengine.projects.locations.dataStores.siteSearchEngine.sitemaps.fetch", + "parameterOrder": [ + "parent" + ], + "parameters": { + "matcher.urisMatcher.uris": { + "description": "The Sitemap uris.", + "location": "query", + "repeated": true, + "type": "string" + }, + "parent": { + "description": "Required. Parent resource name of the SiteSearchEngine, such as `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/siteSearchEngine$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/sitemaps:fetch", + "response": { + "$ref": "GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "targetSites": { "methods": { "batchCreate": { @@ -7862,7 +8007,7 @@ } } }, - "revision": "20241025", + "revision": "20241031", "rootUrl": "https://discoveryengine.googleapis.com/", "schemas": { "GoogleApiDistribution": { @@ -11426,7 +11571,14 @@ "citedChunks": { "description": "List of facts cited across all claims in the answer candidate. These are derived from the facts supplied in the request.", "items": { - "$ref": "GoogleCloudDiscoveryengineV1alphaCheckGroundingResponseFactChunk" + "$ref": "GoogleCloudDiscoveryengineV1alphaFactChunk" + }, + "type": "array" + }, + "citedFacts": { + "description": "List of facts cited across all claims in the answer candidate. These are derived from the facts supplied in the request.", + "items": { + "$ref": "GoogleCloudDiscoveryengineV1alphaCheckGroundingResponseCheckGroundingFactChunk" }, "type": "array" }, @@ -11445,6 +11597,17 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaCheckGroundingResponseCheckGroundingFactChunk": { + "description": "Fact chunk for grounding check.", + "id": "GoogleCloudDiscoveryengineV1alphaCheckGroundingResponseCheckGroundingFactChunk", + "properties": { + "chunkText": { + "description": "Text content of the fact chunk. Can be at most 10K characters long.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaCheckGroundingResponseClaim": { "description": "Text and citation info for a claim in the answer candidate.", "id": "GoogleCloudDiscoveryengineV1alphaCheckGroundingResponseClaim", @@ -11478,21 +11641,6 @@ }, "type": "object" }, - "GoogleCloudDiscoveryengineV1alphaCheckGroundingResponseFactChunk": { - "description": "Fact chunk for grounding check.", - "id": "GoogleCloudDiscoveryengineV1alphaCheckGroundingResponseFactChunk", - "properties": { - "chunkText": { - "description": "Text content of the fact chunk. Can be at most 10K characters long.", - "type": "string" - }, - "source": { - "description": "Source from which this fact chunk was retrieved. For a fact chunk retrieved from inline facts, this field will contain the index of the specific fact from which this chunk was retrieved.", - "type": "string" - } - }, - "type": "object" - }, "GoogleCloudDiscoveryengineV1alphaCheckGroundingSpec": { "description": "Specification for the grounding check.", "id": "GoogleCloudDiscoveryengineV1alphaCheckGroundingSpec", @@ -12303,6 +12451,23 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaCreateSitemapMetadata": { + "description": "Metadata related to the progress of the SiteSearchEngineService.CreateSitemap operation. This will be returned by the google.longrunning.Operation.metadata field.", + "id": "GoogleCloudDiscoveryengineV1alphaCreateSitemapMetadata", + "properties": { + "createTime": { + "description": "Operation create time.", + "format": "google-datetime", + "type": "string" + }, + "updateTime": { + "description": "Operation last update time. If the operation is done, this is also the finish time.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaCreateTargetSiteMetadata": { "description": "Metadata related to the progress of the SiteSearchEngineService.CreateTargetSite operation. This will be returned by the google.longrunning.Operation.metadata field.", "id": "GoogleCloudDiscoveryengineV1alphaCreateTargetSiteMetadata", @@ -12681,6 +12846,23 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaDeleteSitemapMetadata": { + "description": "Metadata related to the progress of the SiteSearchEngineService.DeleteSitemap operation. This will be returned by the google.longrunning.Operation.metadata field.", + "id": "GoogleCloudDiscoveryengineV1alphaDeleteSitemapMetadata", + "properties": { + "createTime": { + "description": "Operation create time.", + "format": "google-datetime", + "type": "string" + }, + "updateTime": { + "description": "Operation last update time. If the operation is done, this is also the finish time.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaDeleteTargetSiteMetadata": { "description": "Metadata related to the progress of the SiteSearchEngineService.DeleteTargetSite operation. This will be returned by the google.longrunning.Operation.metadata field.", "id": "GoogleCloudDiscoveryengineV1alphaDeleteTargetSiteMetadata", @@ -13540,6 +13722,107 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaFactChunk": { + "description": "Fact Chunk.", + "id": "GoogleCloudDiscoveryengineV1alphaFactChunk", + "properties": { + "chunkText": { + "description": "Text content of the fact chunk. Can be at most 10K characters long.", + "type": "string" + }, + "index": { + "description": "The index of this chunk. Currently, only used for the streaming mode.", + "format": "int32", + "type": "integer" + }, + "source": { + "description": "Source from which this fact chunk was retrieved. If it was retrieved from the GroundingFacts provided in the request then this field will contain the index of the specific fact from which this chunk was retrieved.", + "type": "string" + }, + "sourceMetadata": { + "additionalProperties": { + "type": "string" + }, + "description": "More fine-grained information for the source reference.", + "type": "object" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1alphaFeedback": { + "description": "Information about the user feedback. This information will be used for logging and metrics purpose.", + "id": "GoogleCloudDiscoveryengineV1alphaFeedback", + "properties": { + "comment": { + "description": "Optional. The additional user comment of the feedback if user gives a thumb down.", + "type": "string" + }, + "conversationInfo": { + "$ref": "GoogleCloudDiscoveryengineV1alphaFeedbackConversationInfo", + "description": "The related conversation information when user gives feedback." + }, + "feedbackType": { + "description": "Required. Indicate whether the user gives a positive or negative feedback. If the user gives a negative feedback, there might be more feedback details.", + "enum": [ + "FEEDBACK_TYPE_UNSPECIFIED", + "LIKE", + "DISLIKE" + ], + "enumDescriptions": [ + "Unspecified feedback type.", + "The user gives a positive feedback.", + "The user gives a negative feedback." + ], + "type": "string" + }, + "llmModelVersion": { + "description": "The version of the LLM model that was used to generate the response.", + "type": "string" + }, + "reasons": { + "description": "Optional. The reason if user gives a thumb down.", + "items": { + "enum": [ + "REASON_UNSPECIFIED", + "INACCURATE_RESPONSE", + "NOT_RELEVANT", + "INCOMPREHENSIVE", + "OFFENSIVE_OR_UNSAFE", + "BAD_CIATION", + "FORMAT_AND_STYLES" + ], + "enumDescriptions": [ + "Unspecified reason.", + "The response is inaccurate.", + "The response is not relevant.", + "The response is incomprehensive.", + "The response is offensive or unsafe.", + "The response is not well-associated with the query.", + "The response is not well-formatted." + ], + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1alphaFeedbackConversationInfo": { + "description": "The conversation information such as the question index and session name.", + "id": "GoogleCloudDiscoveryengineV1alphaFeedbackConversationInfo", + "properties": { + "questionIndex": { + "description": "The index of the user input within the conversation messages.", + "format": "int32", + "type": "integer" + }, + "session": { + "description": "Name of the newly generated or continued session.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaFetchDomainVerificationStatusResponse": { "description": "Response message for SiteSearchEngineService.FetchDomainVerificationStatus method.", "id": "GoogleCloudDiscoveryengineV1alphaFetchDomainVerificationStatusResponse", @@ -13563,6 +13846,31 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponse": { + "description": "Response message for SiteSearchEngineService.FetchSitemaps method.", + "id": "GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponse", + "properties": { + "sitemapsMetadata": { + "description": "List of Sitemaps fetched.", + "items": { + "$ref": "GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponseSitemapMetadata" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponseSitemapMetadata": { + "description": "Contains a Sitemap and its metadata.", + "id": "GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponseSitemapMetadata", + "properties": { + "sitemap": { + "$ref": "GoogleCloudDiscoveryengineV1alphaSitemap", + "description": "The Sitemap." + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaFhirStoreSource": { "description": "Cloud FhirStore source import data from.", "id": "GoogleCloudDiscoveryengineV1alphaFhirStoreSource", @@ -14828,6 +15136,13 @@ "description": "The display name of the panel.", "type": "string" }, + "documents": { + "description": "Optional. The document IDs associated with this panel.", + "items": { + "$ref": "GoogleCloudDiscoveryengineV1alphaDocumentInfo" + }, + "type": "array" + }, "panelId": { "description": "Required. The panel ID.", "type": "string" @@ -17591,6 +17906,28 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaSitemap": { + "description": "A sitemap for the SiteSearchEngine.", + "id": "GoogleCloudDiscoveryengineV1alphaSitemap", + "properties": { + "createTime": { + "description": "Output only. The sitemap's creation time.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Output only. The fully qualified resource name of the sitemap. `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/sitemaps/*` The `sitemap_id` suffix is system-generated.", + "readOnly": true, + "type": "string" + }, + "uri": { + "description": "Public URI for the sitemap, e.g. `www.example.com/sitemap.xml`.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaSpannerSource": { "description": "The Spanner source for importing data", "id": "GoogleCloudDiscoveryengineV1alphaSpannerSource", @@ -18013,6 +18350,10 @@ "description": "Required. User event type. Allowed values are: Generic values: * `search`: Search for Documents. * `view-item`: Detailed page view of a Document. * `view-item-list`: View of a panel or ordered list of Documents. * `view-home-page`: View of the home page. * `view-category-page`: View of a category page, e.g. Home \u003e Men \u003e Jeans * `add-feedback`: Add a user feedback. Retail-related values: * `add-to-cart`: Add an item(s) to cart, e.g. in Retail online shopping * `purchase`: Purchase an item(s) Media-related values: * `media-play`: Start/resume watching a video, playing a song, etc. * `media-complete`: Finished or stopped midway through a video, song, etc.", "type": "string" }, + "feedback": { + "$ref": "GoogleCloudDiscoveryengineV1alphaFeedback", + "description": "Optional. This field is optional except for the `add-feedback` event types." + }, "filter": { "description": "The filter syntax consists of an expression language for constructing a predicate from one or more fields of the documents being filtered. One example is for `search` events, the associated SearchRequest may contain a filter expression in SearchRequest.filter conforming to https://google.aip.dev/160#filtering. Similarly, for `view-item-list` events that are generated from a RecommendRequest, this field may be populated directly from RecommendRequest.filter conforming to https://google.aip.dev/160#filtering. The value must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an `INVALID_ARGUMENT` error is returned.", "type": "string" @@ -18029,6 +18370,13 @@ "$ref": "GoogleCloudDiscoveryengineV1alphaPanelInfo", "description": "Panel metadata associated with this user event." }, + "panels": { + "description": "Optional. List of panels associated with this event. Used for page-level impression data.", + "items": { + "$ref": "GoogleCloudDiscoveryengineV1alphaPanelInfo" + }, + "type": "array" + }, "promotionIds": { "description": "The promotion IDs if this is an event associated with promotions. Currently, this field is restricted to at most one ID.", "items": { @@ -18469,6 +18817,23 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1betaCreateSitemapMetadata": { + "description": "Metadata related to the progress of the SiteSearchEngineService.CreateSitemap operation. This will be returned by the google.longrunning.Operation.metadata field.", + "id": "GoogleCloudDiscoveryengineV1betaCreateSitemapMetadata", + "properties": { + "createTime": { + "description": "Operation create time.", + "format": "google-datetime", + "type": "string" + }, + "updateTime": { + "description": "Operation last update time. If the operation is done, this is also the finish time.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1betaCreateTargetSiteMetadata": { "description": "Metadata related to the progress of the SiteSearchEngineService.CreateTargetSite operation. This will be returned by the google.longrunning.Operation.metadata field.", "id": "GoogleCloudDiscoveryengineV1betaCreateTargetSiteMetadata", @@ -18775,6 +19140,23 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1betaDeleteSitemapMetadata": { + "description": "Metadata related to the progress of the SiteSearchEngineService.DeleteSitemap operation. This will be returned by the google.longrunning.Operation.metadata field.", + "id": "GoogleCloudDiscoveryengineV1betaDeleteSitemapMetadata", + "properties": { + "createTime": { + "description": "Operation create time.", + "format": "google-datetime", + "type": "string" + }, + "updateTime": { + "description": "Operation last update time. If the operation is done, this is also the finish time.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1betaDeleteTargetSiteMetadata": { "description": "Metadata related to the progress of the SiteSearchEngineService.DeleteTargetSite operation. This will be returned by the google.longrunning.Operation.metadata field.", "id": "GoogleCloudDiscoveryengineV1betaDeleteTargetSiteMetadata", @@ -19216,6 +19598,31 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1betaFetchSitemapsResponse": { + "description": "Response message for SiteSearchEngineService.FetchSitemaps method.", + "id": "GoogleCloudDiscoveryengineV1betaFetchSitemapsResponse", + "properties": { + "sitemapsMetadata": { + "description": "List of Sitemaps fetched.", + "items": { + "$ref": "GoogleCloudDiscoveryengineV1betaFetchSitemapsResponseSitemapMetadata" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1betaFetchSitemapsResponseSitemapMetadata": { + "description": "Contains a Sitemap and its metadata.", + "id": "GoogleCloudDiscoveryengineV1betaFetchSitemapsResponseSitemapMetadata", + "properties": { + "sitemap": { + "$ref": "GoogleCloudDiscoveryengineV1betaSitemap", + "description": "The Sitemap." + } + }, + "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", @@ -20527,6 +20934,28 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1betaSitemap": { + "description": "A sitemap for the SiteSearchEngine.", + "id": "GoogleCloudDiscoveryengineV1betaSitemap", + "properties": { + "createTime": { + "description": "Output only. The sitemap's creation time.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Output only. The fully qualified resource name of the sitemap. `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/sitemaps/*` The `sitemap_id` suffix is system-generated.", + "readOnly": true, + "type": "string" + }, + "uri": { + "description": "Public URI for the sitemap, e.g. `www.example.com/sitemap.xml`.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1betaTargetSite": { "description": "A target site for the SiteSearchEngine.", "id": "GoogleCloudDiscoveryengineV1betaTargetSite", diff --git a/discoveryengine/v1alpha/discoveryengine-gen.go b/discoveryengine/v1alpha/discoveryengine-gen.go index a66261ad647..7db15980c23 100644 --- a/discoveryengine/v1alpha/discoveryengine-gen.go +++ b/discoveryengine/v1alpha/discoveryengine-gen.go @@ -490,6 +490,7 @@ type ProjectsLocationsCollectionsDataStoresSessionsAnswersService struct { func NewProjectsLocationsCollectionsDataStoresSiteSearchEngineService(s *Service) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineService { rs := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineService{s: s} rs.Operations = NewProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService(s) + rs.Sitemaps = NewProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsService(s) rs.TargetSites = NewProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService(s) return rs } @@ -499,6 +500,8 @@ type ProjectsLocationsCollectionsDataStoresSiteSearchEngineService struct { Operations *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService + Sitemaps *ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsService + TargetSites *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService } @@ -511,6 +514,15 @@ type ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService str s *Service } +func NewProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsService(s *Service) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsService { + rs := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsService{s: s} + return rs +} + +type ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsService struct { + s *Service +} + func NewProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService(s *Service) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService { rs := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService{s: s} rs.Operations = NewProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService(s) @@ -852,6 +864,7 @@ type ProjectsLocationsDataStoresSessionsAnswersService struct { func NewProjectsLocationsDataStoresSiteSearchEngineService(s *Service) *ProjectsLocationsDataStoresSiteSearchEngineService { rs := &ProjectsLocationsDataStoresSiteSearchEngineService{s: s} + rs.Sitemaps = NewProjectsLocationsDataStoresSiteSearchEngineSitemapsService(s) rs.TargetSites = NewProjectsLocationsDataStoresSiteSearchEngineTargetSitesService(s) return rs } @@ -859,9 +872,20 @@ func NewProjectsLocationsDataStoresSiteSearchEngineService(s *Service) *Projects type ProjectsLocationsDataStoresSiteSearchEngineService struct { s *Service + Sitemaps *ProjectsLocationsDataStoresSiteSearchEngineSitemapsService + TargetSites *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService } +func NewProjectsLocationsDataStoresSiteSearchEngineSitemapsService(s *Service) *ProjectsLocationsDataStoresSiteSearchEngineSitemapsService { + rs := &ProjectsLocationsDataStoresSiteSearchEngineSitemapsService{s: s} + return rs +} + +type ProjectsLocationsDataStoresSiteSearchEngineSitemapsService struct { + s *Service +} + func NewProjectsLocationsDataStoresSiteSearchEngineTargetSitesService(s *Service) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService { rs := &ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService{s: s} return rs @@ -5978,7 +6002,10 @@ func (s GoogleCloudDiscoveryengineV1alphaCheckGroundingRequest) MarshalJSON() ([ type GoogleCloudDiscoveryengineV1alphaCheckGroundingResponse struct { // CitedChunks: List of facts cited across all claims in the answer candidate. // These are derived from the facts supplied in the request. - CitedChunks []*GoogleCloudDiscoveryengineV1alphaCheckGroundingResponseFactChunk `json:"citedChunks,omitempty"` + CitedChunks []*GoogleCloudDiscoveryengineV1alphaFactChunk `json:"citedChunks,omitempty"` + // CitedFacts: List of facts cited across all claims in the answer candidate. + // These are derived from the facts supplied in the request. + CitedFacts []*GoogleCloudDiscoveryengineV1alphaCheckGroundingResponseCheckGroundingFactChunk `json:"citedFacts,omitempty"` // Claims: Claim texts and citation info across all claims in the answer // candidate. Claims []*GoogleCloudDiscoveryengineV1alphaCheckGroundingResponseClaim `json:"claims,omitempty"` @@ -6021,6 +6048,30 @@ func (s *GoogleCloudDiscoveryengineV1alphaCheckGroundingResponse) UnmarshalJSON( return nil } +// GoogleCloudDiscoveryengineV1alphaCheckGroundingResponseCheckGroundingFactChun +// k: Fact chunk for grounding check. +type GoogleCloudDiscoveryengineV1alphaCheckGroundingResponseCheckGroundingFactChunk struct { + // ChunkText: Text content of the fact chunk. Can be at most 10K characters + // long. + ChunkText string `json:"chunkText,omitempty"` + // ForceSendFields is a list of field names (e.g. "ChunkText") 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. "ChunkText") 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 GoogleCloudDiscoveryengineV1alphaCheckGroundingResponseCheckGroundingFactChunk) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaCheckGroundingResponseCheckGroundingFactChunk + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1alphaCheckGroundingResponseClaim: Text and // citation info for a claim in the answer candidate. type GoogleCloudDiscoveryengineV1alphaCheckGroundingResponseClaim struct { @@ -6063,34 +6114,6 @@ func (s GoogleCloudDiscoveryengineV1alphaCheckGroundingResponseClaim) MarshalJSO return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDiscoveryengineV1alphaCheckGroundingResponseFactChunk: Fact chunk -// for grounding check. -type GoogleCloudDiscoveryengineV1alphaCheckGroundingResponseFactChunk struct { - // ChunkText: Text content of the fact chunk. Can be at most 10K characters - // long. - ChunkText string `json:"chunkText,omitempty"` - // Source: Source from which this fact chunk was retrieved. For a fact chunk - // retrieved from inline facts, this field will contain the index of the - // specific fact from which this chunk was retrieved. - Source string `json:"source,omitempty"` - // ForceSendFields is a list of field names (e.g. "ChunkText") 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. "ChunkText") 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 GoogleCloudDiscoveryengineV1alphaCheckGroundingResponseFactChunk) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDiscoveryengineV1alphaCheckGroundingResponseFactChunk - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // GoogleCloudDiscoveryengineV1alphaCheckGroundingSpec: Specification for the // grounding check. type GoogleCloudDiscoveryengineV1alphaCheckGroundingSpec struct { @@ -7225,6 +7248,33 @@ func (s GoogleCloudDiscoveryengineV1alphaCreateSchemaMetadata) MarshalJSON() ([] return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1alphaCreateSitemapMetadata: Metadata related to +// the progress of the SiteSearchEngineService.CreateSitemap operation. This +// will be returned by the google.longrunning.Operation.metadata field. +type GoogleCloudDiscoveryengineV1alphaCreateSitemapMetadata struct { + // CreateTime: Operation create time. + CreateTime string `json:"createTime,omitempty"` + // UpdateTime: Operation last update time. If the operation is done, this is + // also the finish time. + UpdateTime string `json:"updateTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "CreateTime") 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. "CreateTime") 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 GoogleCloudDiscoveryengineV1alphaCreateSitemapMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaCreateSitemapMetadata + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1alphaCreateTargetSiteMetadata: Metadata related // to the progress of the SiteSearchEngineService.CreateTargetSite operation. // This will be returned by the google.longrunning.Operation.metadata field. @@ -7696,6 +7746,33 @@ func (s GoogleCloudDiscoveryengineV1alphaDeleteSchemaMetadata) MarshalJSON() ([] return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1alphaDeleteSitemapMetadata: Metadata related to +// the progress of the SiteSearchEngineService.DeleteSitemap operation. This +// will be returned by the google.longrunning.Operation.metadata field. +type GoogleCloudDiscoveryengineV1alphaDeleteSitemapMetadata struct { + // CreateTime: Operation create time. + CreateTime string `json:"createTime,omitempty"` + // UpdateTime: Operation last update time. If the operation is done, this is + // also the finish time. + UpdateTime string `json:"updateTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "CreateTime") 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. "CreateTime") 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 GoogleCloudDiscoveryengineV1alphaDeleteSitemapMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaDeleteSitemapMetadata + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1alphaDeleteTargetSiteMetadata: Metadata related // to the progress of the SiteSearchEngineService.DeleteTargetSite operation. // This will be returned by the google.longrunning.Operation.metadata field. @@ -8933,6 +9010,112 @@ func (s GoogleCloudDiscoveryengineV1alphaEvaluationEvaluationSpecQuerySetSpec) M return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1alphaFactChunk: Fact Chunk. +type GoogleCloudDiscoveryengineV1alphaFactChunk struct { + // ChunkText: Text content of the fact chunk. Can be at most 10K characters + // long. + ChunkText string `json:"chunkText,omitempty"` + // Index: The index of this chunk. Currently, only used for the streaming mode. + Index int64 `json:"index,omitempty"` + // Source: Source from which this fact chunk was retrieved. If it was retrieved + // from the GroundingFacts provided in the request then this field will contain + // the index of the specific fact from which this chunk was retrieved. + Source string `json:"source,omitempty"` + // SourceMetadata: More fine-grained information for the source reference. + SourceMetadata map[string]string `json:"sourceMetadata,omitempty"` + // ForceSendFields is a list of field names (e.g. "ChunkText") 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. "ChunkText") 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 GoogleCloudDiscoveryengineV1alphaFactChunk) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaFactChunk + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1alphaFeedback: Information about the user +// feedback. This information will be used for logging and metrics purpose. +type GoogleCloudDiscoveryengineV1alphaFeedback struct { + // Comment: Optional. The additional user comment of the feedback if user gives + // a thumb down. + Comment string `json:"comment,omitempty"` + // ConversationInfo: The related conversation information when user gives + // feedback. + ConversationInfo *GoogleCloudDiscoveryengineV1alphaFeedbackConversationInfo `json:"conversationInfo,omitempty"` + // FeedbackType: Required. Indicate whether the user gives a positive or + // negative feedback. If the user gives a negative feedback, there might be + // more feedback details. + // + // Possible values: + // "FEEDBACK_TYPE_UNSPECIFIED" - Unspecified feedback type. + // "LIKE" - The user gives a positive feedback. + // "DISLIKE" - The user gives a negative feedback. + FeedbackType string `json:"feedbackType,omitempty"` + // LlmModelVersion: The version of the LLM model that was used to generate the + // response. + LlmModelVersion string `json:"llmModelVersion,omitempty"` + // Reasons: Optional. The reason if user gives a thumb down. + // + // Possible values: + // "REASON_UNSPECIFIED" - Unspecified reason. + // "INACCURATE_RESPONSE" - The response is inaccurate. + // "NOT_RELEVANT" - The response is not relevant. + // "INCOMPREHENSIVE" - The response is incomprehensive. + // "OFFENSIVE_OR_UNSAFE" - The response is offensive or unsafe. + // "BAD_CIATION" - The response is not well-associated with the query. + // "FORMAT_AND_STYLES" - The response is not well-formatted. + Reasons []string `json:"reasons,omitempty"` + // ForceSendFields is a list of field names (e.g. "Comment") 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. "Comment") 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 GoogleCloudDiscoveryengineV1alphaFeedback) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaFeedback + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1alphaFeedbackConversationInfo: The conversation +// information such as the question index and session name. +type GoogleCloudDiscoveryengineV1alphaFeedbackConversationInfo struct { + // QuestionIndex: The index of the user input within the conversation messages. + QuestionIndex int64 `json:"questionIndex,omitempty"` + // Session: Name of the newly generated or continued session. + Session string `json:"session,omitempty"` + // ForceSendFields is a list of field names (e.g. "QuestionIndex") 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. "QuestionIndex") 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 GoogleCloudDiscoveryengineV1alphaFeedbackConversationInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaFeedbackConversationInfo + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1alphaFetchDomainVerificationStatusResponse: // Response message for SiteSearchEngineService.FetchDomainVerificationStatus // method. @@ -8966,6 +9149,55 @@ func (s GoogleCloudDiscoveryengineV1alphaFetchDomainVerificationStatusResponse) return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponse: Response message for +// SiteSearchEngineService.FetchSitemaps method. +type GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponse struct { + // SitemapsMetadata: List of Sitemaps fetched. + SitemapsMetadata []*GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponseSitemapMetadata `json:"sitemapsMetadata,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "SitemapsMetadata") 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. "SitemapsMetadata") 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 GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponseSitemapMetadata: +// Contains a Sitemap and its metadata. +type GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponseSitemapMetadata struct { + // Sitemap: The Sitemap. + Sitemap *GoogleCloudDiscoveryengineV1alphaSitemap `json:"sitemap,omitempty"` + // ForceSendFields is a list of field names (e.g. "Sitemap") 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. "Sitemap") 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 GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponseSitemapMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponseSitemapMetadata + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1alphaFhirStoreSource: Cloud FhirStore source // import data from. type GoogleCloudDiscoveryengineV1alphaFhirStoreSource struct { @@ -10809,6 +11041,8 @@ func (s GoogleCloudDiscoveryengineV1alphaPageInfo) MarshalJSON() ([]byte, error) type GoogleCloudDiscoveryengineV1alphaPanelInfo struct { // DisplayName: The display name of the panel. DisplayName string `json:"displayName,omitempty"` + // Documents: Optional. The document IDs associated with this panel. + Documents []*GoogleCloudDiscoveryengineV1alphaDocumentInfo `json:"documents,omitempty"` // PanelId: Required. The panel ID. PanelId string `json:"panelId,omitempty"` // PanelPosition: The ordered position of the panel, if shown to the user with @@ -14883,6 +15117,35 @@ func (s GoogleCloudDiscoveryengineV1alphaSiteVerificationInfo) MarshalJSON() ([] return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1alphaSitemap: A sitemap for the +// SiteSearchEngine. +type GoogleCloudDiscoveryengineV1alphaSitemap struct { + // CreateTime: Output only. The sitemap's creation time. + CreateTime string `json:"createTime,omitempty"` + // Name: Output only. The fully qualified resource name of the sitemap. + // `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/sitemaps/ + // *` The `sitemap_id` suffix is system-generated. + Name string `json:"name,omitempty"` + // Uri: Public URI for the sitemap, e.g. `www.example.com/sitemap.xml`. + Uri string `json:"uri,omitempty"` + // ForceSendFields is a list of field names (e.g. "CreateTime") 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. "CreateTime") 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 GoogleCloudDiscoveryengineV1alphaSitemap) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaSitemap + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1alphaSpannerSource: The Spanner source for // importing data type GoogleCloudDiscoveryengineV1alphaSpannerSource struct { @@ -15503,6 +15766,9 @@ type GoogleCloudDiscoveryengineV1alphaUserEvent struct { // a song, etc. * `media-complete`: Finished or stopped midway through a video, // song, etc. EventType string `json:"eventType,omitempty"` + // Feedback: Optional. This field is optional except for the `add-feedback` + // event types. + Feedback *GoogleCloudDiscoveryengineV1alphaFeedback `json:"feedback,omitempty"` // Filter: The filter syntax consists of an expression language for // constructing a predicate from one or more fields of the documents being // filtered. One example is for `search` events, the associated SearchRequest @@ -15521,6 +15787,9 @@ type GoogleCloudDiscoveryengineV1alphaUserEvent struct { PageInfo *GoogleCloudDiscoveryengineV1alphaPageInfo `json:"pageInfo,omitempty"` // Panel: Panel metadata associated with this user event. Panel *GoogleCloudDiscoveryengineV1alphaPanelInfo `json:"panel,omitempty"` + // Panels: Optional. List of panels associated with this event. Used for + // page-level impression data. + Panels []*GoogleCloudDiscoveryengineV1alphaPanelInfo `json:"panels,omitempty"` // PromotionIds: The promotion IDs if this is an event associated with // promotions. Currently, this field is restricted to at most one ID. PromotionIds []string `json:"promotionIds,omitempty"` @@ -16129,6 +16398,33 @@ func (s GoogleCloudDiscoveryengineV1betaCreateSchemaMetadata) MarshalJSON() ([]b return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1betaCreateSitemapMetadata: Metadata related to +// the progress of the SiteSearchEngineService.CreateSitemap operation. This +// will be returned by the google.longrunning.Operation.metadata field. +type GoogleCloudDiscoveryengineV1betaCreateSitemapMetadata struct { + // CreateTime: Operation create time. + CreateTime string `json:"createTime,omitempty"` + // UpdateTime: Operation last update time. If the operation is done, this is + // also the finish time. + UpdateTime string `json:"updateTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "CreateTime") 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. "CreateTime") 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 GoogleCloudDiscoveryengineV1betaCreateSitemapMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaCreateSitemapMetadata + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1betaCreateTargetSiteMetadata: Metadata related // to the progress of the SiteSearchEngineService.CreateTargetSite operation. // This will be returned by the google.longrunning.Operation.metadata field. @@ -16454,6 +16750,33 @@ func (s GoogleCloudDiscoveryengineV1betaDeleteSchemaMetadata) MarshalJSON() ([]b return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1betaDeleteSitemapMetadata: Metadata related to +// the progress of the SiteSearchEngineService.DeleteSitemap operation. This +// will be returned by the google.longrunning.Operation.metadata field. +type GoogleCloudDiscoveryengineV1betaDeleteSitemapMetadata struct { + // CreateTime: Operation create time. + CreateTime string `json:"createTime,omitempty"` + // UpdateTime: Operation last update time. If the operation is done, this is + // also the finish time. + UpdateTime string `json:"updateTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "CreateTime") 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. "CreateTime") 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 GoogleCloudDiscoveryengineV1betaDeleteSitemapMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaDeleteSitemapMetadata + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1betaDeleteTargetSiteMetadata: Metadata related // to the progress of the SiteSearchEngineService.DeleteTargetSite operation. // This will be returned by the google.longrunning.Operation.metadata field. @@ -17060,6 +17383,52 @@ func (s GoogleCloudDiscoveryengineV1betaEvaluationEvaluationSpecQuerySetSpec) Ma return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1betaFetchSitemapsResponse: Response message for +// SiteSearchEngineService.FetchSitemaps method. +type GoogleCloudDiscoveryengineV1betaFetchSitemapsResponse struct { + // SitemapsMetadata: List of Sitemaps fetched. + SitemapsMetadata []*GoogleCloudDiscoveryengineV1betaFetchSitemapsResponseSitemapMetadata `json:"sitemapsMetadata,omitempty"` + // ForceSendFields is a list of field names (e.g. "SitemapsMetadata") 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. "SitemapsMetadata") 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 GoogleCloudDiscoveryengineV1betaFetchSitemapsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaFetchSitemapsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1betaFetchSitemapsResponseSitemapMetadata: +// Contains a Sitemap and its metadata. +type GoogleCloudDiscoveryengineV1betaFetchSitemapsResponseSitemapMetadata struct { + // Sitemap: The Sitemap. + Sitemap *GoogleCloudDiscoveryengineV1betaSitemap `json:"sitemap,omitempty"` + // ForceSendFields is a list of field names (e.g. "Sitemap") 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. "Sitemap") 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 GoogleCloudDiscoveryengineV1betaFetchSitemapsResponseSitemapMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaFetchSitemapsResponseSitemapMetadata + 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 @@ -19058,6 +19427,34 @@ func (s GoogleCloudDiscoveryengineV1betaSiteVerificationInfo) MarshalJSON() ([]b return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1betaSitemap: A sitemap for the SiteSearchEngine. +type GoogleCloudDiscoveryengineV1betaSitemap struct { + // CreateTime: Output only. The sitemap's creation time. + CreateTime string `json:"createTime,omitempty"` + // Name: Output only. The fully qualified resource name of the sitemap. + // `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/sitemaps/ + // *` The `sitemap_id` suffix is system-generated. + Name string `json:"name,omitempty"` + // Uri: Public URI for the sitemap, e.g. `www.example.com/sitemap.xml`. + Uri string `json:"uri,omitempty"` + // ForceSendFields is a list of field names (e.g. "CreateTime") 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. "CreateTime") 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 GoogleCloudDiscoveryengineV1betaSitemap) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaSitemap + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1betaTargetSite: A target site for the // SiteSearchEngine. type GoogleCloudDiscoveryengineV1betaTargetSite struct { @@ -29931,6 +30328,210 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCal } } +type ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsCreateCall struct { + s *Service + parent string + googleclouddiscoveryenginev1alphasitemap *GoogleCloudDiscoveryengineV1alphaSitemap + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a Sitemap. +// +// - parent: Parent resource name of the SiteSearchEngine, such as +// `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine`. +func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsService) Create(parent string, googleclouddiscoveryenginev1alphasitemap *GoogleCloudDiscoveryengineV1alphaSitemap) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsCreateCall { + c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleclouddiscoveryenginev1alphasitemap = googleclouddiscoveryenginev1alphasitemap + 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 *ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsCreateCall { + 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 *ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphasitemap) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/sitemaps") + 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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.sitemaps.create" 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 *ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a Sitemap. +// +// - name: Full resource name of Sitemap, such as +// `projects/{project}/locations/{location}/collections/{collection}/dataStore +// s/{data_store}/siteSearchEngine/sitemaps/{sitemap}`. If the caller does +// not have permission to access the Sitemap, regardless of whether or not it +// exists, a PERMISSION_DENIED error is returned. If the requested Sitemap +// does not exist, a NOT_FOUND error is returned. +func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsService) Delete(name string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsDeleteCall { + c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsDeleteCall{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 *ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsDeleteCall { + 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 *ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + 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, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.sitemaps.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 *ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall struct { s *Service parent string @@ -43376,6 +43977,328 @@ func (c *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall) Do(opts ... return ret, nil } +type ProjectsLocationsDataStoresSiteSearchEngineSitemapsCreateCall struct { + s *Service + parent string + googleclouddiscoveryenginev1alphasitemap *GoogleCloudDiscoveryengineV1alphaSitemap + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a Sitemap. +// +// - parent: Parent resource name of the SiteSearchEngine, such as +// `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine`. +func (r *ProjectsLocationsDataStoresSiteSearchEngineSitemapsService) Create(parent string, googleclouddiscoveryenginev1alphasitemap *GoogleCloudDiscoveryengineV1alphaSitemap) *ProjectsLocationsDataStoresSiteSearchEngineSitemapsCreateCall { + c := &ProjectsLocationsDataStoresSiteSearchEngineSitemapsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleclouddiscoveryenginev1alphasitemap = googleclouddiscoveryenginev1alphasitemap + 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 *ProjectsLocationsDataStoresSiteSearchEngineSitemapsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineSitemapsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsDataStoresSiteSearchEngineSitemapsCreateCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineSitemapsCreateCall { + 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 *ProjectsLocationsDataStoresSiteSearchEngineSitemapsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDataStoresSiteSearchEngineSitemapsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphasitemap) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/sitemaps") + 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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.sitemaps.create" 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 *ProjectsLocationsDataStoresSiteSearchEngineSitemapsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsDataStoresSiteSearchEngineSitemapsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a Sitemap. +// +// - name: Full resource name of Sitemap, such as +// `projects/{project}/locations/{location}/collections/{collection}/dataStore +// s/{data_store}/siteSearchEngine/sitemaps/{sitemap}`. If the caller does +// not have permission to access the Sitemap, regardless of whether or not it +// exists, a PERMISSION_DENIED error is returned. If the requested Sitemap +// does not exist, a NOT_FOUND error is returned. +func (r *ProjectsLocationsDataStoresSiteSearchEngineSitemapsService) Delete(name string) *ProjectsLocationsDataStoresSiteSearchEngineSitemapsDeleteCall { + c := &ProjectsLocationsDataStoresSiteSearchEngineSitemapsDeleteCall{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 *ProjectsLocationsDataStoresSiteSearchEngineSitemapsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineSitemapsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsDataStoresSiteSearchEngineSitemapsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineSitemapsDeleteCall { + 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 *ProjectsLocationsDataStoresSiteSearchEngineSitemapsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDataStoresSiteSearchEngineSitemapsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + 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, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.sitemaps.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 *ProjectsLocationsDataStoresSiteSearchEngineSitemapsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsDataStoresSiteSearchEngineSitemapsFetchCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Fetch: Fetch Sitemaps in a DataStore. +// +// - parent: Parent resource name of the SiteSearchEngine, such as +// `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine`. +func (r *ProjectsLocationsDataStoresSiteSearchEngineSitemapsService) Fetch(parent string) *ProjectsLocationsDataStoresSiteSearchEngineSitemapsFetchCall { + c := &ProjectsLocationsDataStoresSiteSearchEngineSitemapsFetchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// MatcherUrisMatcherUris sets the optional parameter +// "matcher.urisMatcher.uris": The Sitemap uris. +func (c *ProjectsLocationsDataStoresSiteSearchEngineSitemapsFetchCall) MatcherUrisMatcherUris(matcherUrisMatcherUris ...string) *ProjectsLocationsDataStoresSiteSearchEngineSitemapsFetchCall { + c.urlParams_.SetMulti("matcher.urisMatcher.uris", append([]string{}, matcherUrisMatcherUris...)) + 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 *ProjectsLocationsDataStoresSiteSearchEngineSitemapsFetchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineSitemapsFetchCall { + 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 *ProjectsLocationsDataStoresSiteSearchEngineSitemapsFetchCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresSiteSearchEngineSitemapsFetchCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsDataStoresSiteSearchEngineSitemapsFetchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineSitemapsFetchCall { + 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 *ProjectsLocationsDataStoresSiteSearchEngineSitemapsFetchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDataStoresSiteSearchEngineSitemapsFetchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/sitemaps:fetch") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.sitemaps.fetch" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponse.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 *ProjectsLocationsDataStoresSiteSearchEngineSitemapsFetchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponse, 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 := &GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + type ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall struct { s *Service parent string diff --git a/discoveryengine/v1beta/discoveryengine-api.json b/discoveryengine/v1beta/discoveryengine-api.json index 41fd937730e..5010111d6d9 100644 --- a/discoveryengine/v1beta/discoveryengine-api.json +++ b/discoveryengine/v1beta/discoveryengine-api.json @@ -2325,6 +2325,63 @@ } } }, + "sitemaps": { + "methods": { + "create": { + "description": "Creates a Sitemap.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/collections/{collectionsId}/dataStores/{dataStoresId}/siteSearchEngine/sitemaps", + "httpMethod": "POST", + "id": "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.sitemaps.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Parent resource name of the SiteSearchEngine, such as `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/siteSearchEngine$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+parent}/sitemaps", + "request": { + "$ref": "GoogleCloudDiscoveryengineV1betaSitemap" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a Sitemap.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/collections/{collectionsId}/dataStores/{dataStoresId}/siteSearchEngine/sitemaps/{sitemapsId}", + "httpMethod": "DELETE", + "id": "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.sitemaps.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Full resource name of Sitemap, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}`. If the caller does not have permission to access the Sitemap, regardless of whether or not it exists, a PERMISSION_DENIED error is returned. If the requested Sitemap does not exist, a NOT_FOUND error is returned.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/siteSearchEngine/sitemaps/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "targetSites": { "methods": { "batchCreate": { @@ -5794,6 +5851,94 @@ } }, "resources": { + "sitemaps": { + "methods": { + "create": { + "description": "Creates a Sitemap.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/dataStores/{dataStoresId}/siteSearchEngine/sitemaps", + "httpMethod": "POST", + "id": "discoveryengine.projects.locations.dataStores.siteSearchEngine.sitemaps.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Parent resource name of the SiteSearchEngine, such as `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/siteSearchEngine$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+parent}/sitemaps", + "request": { + "$ref": "GoogleCloudDiscoveryengineV1betaSitemap" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a Sitemap.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/dataStores/{dataStoresId}/siteSearchEngine/sitemaps/{sitemapsId}", + "httpMethod": "DELETE", + "id": "discoveryengine.projects.locations.dataStores.siteSearchEngine.sitemaps.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Full resource name of Sitemap, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}`. If the caller does not have permission to access the Sitemap, regardless of whether or not it exists, a PERMISSION_DENIED error is returned. If the requested Sitemap does not exist, a NOT_FOUND error is returned.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/siteSearchEngine/sitemaps/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "fetch": { + "description": "Fetch Sitemaps in a DataStore.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/dataStores/{dataStoresId}/siteSearchEngine/sitemaps:fetch", + "httpMethod": "GET", + "id": "discoveryengine.projects.locations.dataStores.siteSearchEngine.sitemaps.fetch", + "parameterOrder": [ + "parent" + ], + "parameters": { + "matcher.urisMatcher.uris": { + "description": "The Sitemap uris.", + "location": "query", + "repeated": true, + "type": "string" + }, + "parent": { + "description": "Required. Parent resource name of the SiteSearchEngine, such as `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/siteSearchEngine$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+parent}/sitemaps:fetch", + "response": { + "$ref": "GoogleCloudDiscoveryengineV1betaFetchSitemapsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "targetSites": { "methods": { "batchCreate": { @@ -7060,7 +7205,7 @@ } } }, - "revision": "20241025", + "revision": "20241031", "rootUrl": "https://discoveryengine.googleapis.com/", "schemas": { "GoogleApiDistribution": { @@ -9921,6 +10066,23 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaCreateSitemapMetadata": { + "description": "Metadata related to the progress of the SiteSearchEngineService.CreateSitemap operation. This will be returned by the google.longrunning.Operation.metadata field.", + "id": "GoogleCloudDiscoveryengineV1alphaCreateSitemapMetadata", + "properties": { + "createTime": { + "description": "Operation create time.", + "format": "google-datetime", + "type": "string" + }, + "updateTime": { + "description": "Operation last update time. If the operation is done, this is also the finish time.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaCreateTargetSiteMetadata": { "description": "Metadata related to the progress of the SiteSearchEngineService.CreateTargetSite operation. This will be returned by the google.longrunning.Operation.metadata field.", "id": "GoogleCloudDiscoveryengineV1alphaCreateTargetSiteMetadata", @@ -10262,6 +10424,23 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaDeleteSitemapMetadata": { + "description": "Metadata related to the progress of the SiteSearchEngineService.DeleteSitemap operation. This will be returned by the google.longrunning.Operation.metadata field.", + "id": "GoogleCloudDiscoveryengineV1alphaDeleteSitemapMetadata", + "properties": { + "createTime": { + "description": "Operation create time.", + "format": "google-datetime", + "type": "string" + }, + "updateTime": { + "description": "Operation last update time. If the operation is done, this is also the finish time.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaDeleteTargetSiteMetadata": { "description": "Metadata related to the progress of the SiteSearchEngineService.DeleteTargetSite operation. This will be returned by the google.longrunning.Operation.metadata field.", "id": "GoogleCloudDiscoveryengineV1alphaDeleteTargetSiteMetadata", @@ -10850,6 +11029,31 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponse": { + "description": "Response message for SiteSearchEngineService.FetchSitemaps method.", + "id": "GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponse", + "properties": { + "sitemapsMetadata": { + "description": "List of Sitemaps fetched.", + "items": { + "$ref": "GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponseSitemapMetadata" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponseSitemapMetadata": { + "description": "Contains a Sitemap and its metadata.", + "id": "GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponseSitemapMetadata", + "properties": { + "sitemap": { + "$ref": "GoogleCloudDiscoveryengineV1alphaSitemap", + "description": "The Sitemap." + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaFieldConfig": { "description": "Configurations for fields of a schema. For example, configuring a field is indexable, or searchable.", "id": "GoogleCloudDiscoveryengineV1alphaFieldConfig", @@ -12731,6 +12935,28 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaSitemap": { + "description": "A sitemap for the SiteSearchEngine.", + "id": "GoogleCloudDiscoveryengineV1alphaSitemap", + "properties": { + "createTime": { + "description": "Output only. The sitemap's creation time.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Output only. The fully qualified resource name of the sitemap. `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/sitemaps/*` The `sitemap_id` suffix is system-generated.", + "readOnly": true, + "type": "string" + }, + "uri": { + "description": "Public URI for the sitemap, e.g. `www.example.com/sitemap.xml`.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaTargetSite": { "description": "A target site for the SiteSearchEngine.", "id": "GoogleCloudDiscoveryengineV1alphaTargetSite", @@ -14549,7 +14775,14 @@ "citedChunks": { "description": "List of facts cited across all claims in the answer candidate. These are derived from the facts supplied in the request.", "items": { - "$ref": "GoogleCloudDiscoveryengineV1betaCheckGroundingResponseFactChunk" + "$ref": "GoogleCloudDiscoveryengineV1betaFactChunk" + }, + "type": "array" + }, + "citedFacts": { + "description": "List of facts cited across all claims in the answer candidate. These are derived from the facts supplied in the request.", + "items": { + "$ref": "GoogleCloudDiscoveryengineV1betaCheckGroundingResponseCheckGroundingFactChunk" }, "type": "array" }, @@ -14568,6 +14801,17 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1betaCheckGroundingResponseCheckGroundingFactChunk": { + "description": "Fact chunk for grounding check.", + "id": "GoogleCloudDiscoveryengineV1betaCheckGroundingResponseCheckGroundingFactChunk", + "properties": { + "chunkText": { + "description": "Text content of the fact chunk. Can be at most 10K characters long.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1betaCheckGroundingResponseClaim": { "description": "Text and citation info for a claim in the answer candidate.", "id": "GoogleCloudDiscoveryengineV1betaCheckGroundingResponseClaim", @@ -14601,21 +14845,6 @@ }, "type": "object" }, - "GoogleCloudDiscoveryengineV1betaCheckGroundingResponseFactChunk": { - "description": "Fact chunk for grounding check.", - "id": "GoogleCloudDiscoveryengineV1betaCheckGroundingResponseFactChunk", - "properties": { - "chunkText": { - "description": "Text content of the fact chunk. Can be at most 10K characters long.", - "type": "string" - }, - "source": { - "description": "Source from which this fact chunk was retrieved. For a fact chunk retrieved from inline facts, this field will contain the index of the specific fact from which this chunk was retrieved.", - "type": "string" - } - }, - "type": "object" - }, "GoogleCloudDiscoveryengineV1betaCheckGroundingSpec": { "description": "Specification for the grounding check.", "id": "GoogleCloudDiscoveryengineV1betaCheckGroundingSpec", @@ -15326,6 +15555,23 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1betaCreateSitemapMetadata": { + "description": "Metadata related to the progress of the SiteSearchEngineService.CreateSitemap operation. This will be returned by the google.longrunning.Operation.metadata field.", + "id": "GoogleCloudDiscoveryengineV1betaCreateSitemapMetadata", + "properties": { + "createTime": { + "description": "Operation create time.", + "format": "google-datetime", + "type": "string" + }, + "updateTime": { + "description": "Operation last update time. If the operation is done, this is also the finish time.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1betaCreateTargetSiteMetadata": { "description": "Metadata related to the progress of the SiteSearchEngineService.CreateTargetSite operation. This will be returned by the google.longrunning.Operation.metadata field.", "id": "GoogleCloudDiscoveryengineV1betaCreateTargetSiteMetadata", @@ -15669,6 +15915,23 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1betaDeleteSitemapMetadata": { + "description": "Metadata related to the progress of the SiteSearchEngineService.DeleteSitemap operation. This will be returned by the google.longrunning.Operation.metadata field.", + "id": "GoogleCloudDiscoveryengineV1betaDeleteSitemapMetadata", + "properties": { + "createTime": { + "description": "Operation create time.", + "format": "google-datetime", + "type": "string" + }, + "updateTime": { + "description": "Operation last update time. If the operation is done, this is also the finish time.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1betaDeleteTargetSiteMetadata": { "description": "Metadata related to the progress of the SiteSearchEngineService.DeleteTargetSite operation. This will be returned by the google.longrunning.Operation.metadata field.", "id": "GoogleCloudDiscoveryengineV1betaDeleteTargetSiteMetadata", @@ -16282,6 +16545,107 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1betaFactChunk": { + "description": "Fact Chunk.", + "id": "GoogleCloudDiscoveryengineV1betaFactChunk", + "properties": { + "chunkText": { + "description": "Text content of the fact chunk. Can be at most 10K characters long.", + "type": "string" + }, + "index": { + "description": "The index of this chunk. Currently, only used for the streaming mode.", + "format": "int32", + "type": "integer" + }, + "source": { + "description": "Source from which this fact chunk was retrieved. If it was retrieved from the GroundingFacts provided in the request then this field will contain the index of the specific fact from which this chunk was retrieved.", + "type": "string" + }, + "sourceMetadata": { + "additionalProperties": { + "type": "string" + }, + "description": "More fine-grained information for the source reference.", + "type": "object" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1betaFeedback": { + "description": "Information about the user feedback. This information will be used for logging and metrics purpose.", + "id": "GoogleCloudDiscoveryengineV1betaFeedback", + "properties": { + "comment": { + "description": "Optional. The additional user comment of the feedback if user gives a thumb down.", + "type": "string" + }, + "conversationInfo": { + "$ref": "GoogleCloudDiscoveryengineV1betaFeedbackConversationInfo", + "description": "The related conversation information when user gives feedback." + }, + "feedbackType": { + "description": "Required. Indicate whether the user gives a positive or negative feedback. If the user gives a negative feedback, there might be more feedback details.", + "enum": [ + "FEEDBACK_TYPE_UNSPECIFIED", + "LIKE", + "DISLIKE" + ], + "enumDescriptions": [ + "Unspecified feedback type.", + "The user gives a positive feedback.", + "The user gives a negative feedback." + ], + "type": "string" + }, + "llmModelVersion": { + "description": "The version of the LLM model that was used to generate the response.", + "type": "string" + }, + "reasons": { + "description": "Optional. The reason if user gives a thumb down.", + "items": { + "enum": [ + "REASON_UNSPECIFIED", + "INACCURATE_RESPONSE", + "NOT_RELEVANT", + "INCOMPREHENSIVE", + "OFFENSIVE_OR_UNSAFE", + "BAD_CIATION", + "FORMAT_AND_STYLES" + ], + "enumDescriptions": [ + "Unspecified reason.", + "The response is inaccurate.", + "The response is not relevant.", + "The response is incomprehensive.", + "The response is offensive or unsafe.", + "The response is not well-associated with the query.", + "The response is not well-formatted." + ], + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1betaFeedbackConversationInfo": { + "description": "The conversation information such as the question index and session name.", + "id": "GoogleCloudDiscoveryengineV1betaFeedbackConversationInfo", + "properties": { + "questionIndex": { + "description": "The index of the user input within the conversation messages.", + "format": "int32", + "type": "integer" + }, + "session": { + "description": "Name of the newly generated or continued session.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1betaFetchDomainVerificationStatusResponse": { "description": "Response message for SiteSearchEngineService.FetchDomainVerificationStatus method.", "id": "GoogleCloudDiscoveryengineV1betaFetchDomainVerificationStatusResponse", @@ -16305,6 +16669,31 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1betaFetchSitemapsResponse": { + "description": "Response message for SiteSearchEngineService.FetchSitemaps method.", + "id": "GoogleCloudDiscoveryengineV1betaFetchSitemapsResponse", + "properties": { + "sitemapsMetadata": { + "description": "List of Sitemaps fetched.", + "items": { + "$ref": "GoogleCloudDiscoveryengineV1betaFetchSitemapsResponseSitemapMetadata" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1betaFetchSitemapsResponseSitemapMetadata": { + "description": "Contains a Sitemap and its metadata.", + "id": "GoogleCloudDiscoveryengineV1betaFetchSitemapsResponseSitemapMetadata", + "properties": { + "sitemap": { + "$ref": "GoogleCloudDiscoveryengineV1betaSitemap", + "description": "The Sitemap." + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1betaFhirStoreSource": { "description": "Cloud FhirStore source import data from.", "id": "GoogleCloudDiscoveryengineV1betaFhirStoreSource", @@ -17258,6 +17647,13 @@ "description": "The display name of the panel.", "type": "string" }, + "documents": { + "description": "Optional. The document IDs associated with this panel.", + "items": { + "$ref": "GoogleCloudDiscoveryengineV1betaDocumentInfo" + }, + "type": "array" + }, "panelId": { "description": "Required. The panel ID.", "type": "string" @@ -19577,6 +19973,28 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1betaSitemap": { + "description": "A sitemap for the SiteSearchEngine.", + "id": "GoogleCloudDiscoveryengineV1betaSitemap", + "properties": { + "createTime": { + "description": "Output only. The sitemap's creation time.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Output only. The fully qualified resource name of the sitemap. `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/sitemaps/*` The `sitemap_id` suffix is system-generated.", + "readOnly": true, + "type": "string" + }, + "uri": { + "description": "Public URI for the sitemap, e.g. `www.example.com/sitemap.xml`.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1betaSpannerSource": { "description": "The Spanner source for importing data", "id": "GoogleCloudDiscoveryengineV1betaSpannerSource", @@ -19982,6 +20400,10 @@ "description": "Required. User event type. Allowed values are: Generic values: * `search`: Search for Documents. * `view-item`: Detailed page view of a Document. * `view-item-list`: View of a panel or ordered list of Documents. * `view-home-page`: View of the home page. * `view-category-page`: View of a category page, e.g. Home \u003e Men \u003e Jeans * `add-feedback`: Add a user feedback. Retail-related values: * `add-to-cart`: Add an item(s) to cart, e.g. in Retail online shopping * `purchase`: Purchase an item(s) Media-related values: * `media-play`: Start/resume watching a video, playing a song, etc. * `media-complete`: Finished or stopped midway through a video, song, etc.", "type": "string" }, + "feedback": { + "$ref": "GoogleCloudDiscoveryengineV1betaFeedback", + "description": "Optional. This field is optional except for the `add-feedback` event types." + }, "filter": { "description": "The filter syntax consists of an expression language for constructing a predicate from one or more fields of the documents being filtered. One example is for `search` events, the associated SearchRequest may contain a filter expression in SearchRequest.filter conforming to https://google.aip.dev/160#filtering. Similarly, for `view-item-list` events that are generated from a RecommendRequest, this field may be populated directly from RecommendRequest.filter conforming to https://google.aip.dev/160#filtering. The value must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an `INVALID_ARGUMENT` error is returned.", "type": "string" @@ -19998,6 +20420,13 @@ "$ref": "GoogleCloudDiscoveryengineV1betaPanelInfo", "description": "Panel metadata associated with this user event." }, + "panels": { + "description": "Optional. List of panels associated with this event. Used for page-level impression data.", + "items": { + "$ref": "GoogleCloudDiscoveryengineV1betaPanelInfo" + }, + "type": "array" + }, "promotionIds": { "description": "The promotion IDs if this is an event associated with promotions. Currently, this field is restricted to at most one ID.", "items": { diff --git a/discoveryengine/v1beta/discoveryengine-gen.go b/discoveryengine/v1beta/discoveryengine-gen.go index 0e2edf55e50..a59adcb86a8 100644 --- a/discoveryengine/v1beta/discoveryengine-gen.go +++ b/discoveryengine/v1beta/discoveryengine-gen.go @@ -460,6 +460,7 @@ type ProjectsLocationsCollectionsDataStoresSessionsAnswersService struct { func NewProjectsLocationsCollectionsDataStoresSiteSearchEngineService(s *Service) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineService { rs := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineService{s: s} rs.Operations = NewProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService(s) + rs.Sitemaps = NewProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsService(s) rs.TargetSites = NewProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService(s) return rs } @@ -469,6 +470,8 @@ type ProjectsLocationsCollectionsDataStoresSiteSearchEngineService struct { Operations *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService + Sitemaps *ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsService + TargetSites *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService } @@ -481,6 +484,15 @@ type ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService str s *Service } +func NewProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsService(s *Service) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsService { + rs := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsService{s: s} + return rs +} + +type ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsService struct { + s *Service +} + func NewProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService(s *Service) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService { rs := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService{s: s} rs.Operations = NewProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService(s) @@ -810,6 +822,7 @@ type ProjectsLocationsDataStoresSessionsAnswersService struct { func NewProjectsLocationsDataStoresSiteSearchEngineService(s *Service) *ProjectsLocationsDataStoresSiteSearchEngineService { rs := &ProjectsLocationsDataStoresSiteSearchEngineService{s: s} + rs.Sitemaps = NewProjectsLocationsDataStoresSiteSearchEngineSitemapsService(s) rs.TargetSites = NewProjectsLocationsDataStoresSiteSearchEngineTargetSitesService(s) return rs } @@ -817,9 +830,20 @@ func NewProjectsLocationsDataStoresSiteSearchEngineService(s *Service) *Projects type ProjectsLocationsDataStoresSiteSearchEngineService struct { s *Service + Sitemaps *ProjectsLocationsDataStoresSiteSearchEngineSitemapsService + TargetSites *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService } +func NewProjectsLocationsDataStoresSiteSearchEngineSitemapsService(s *Service) *ProjectsLocationsDataStoresSiteSearchEngineSitemapsService { + rs := &ProjectsLocationsDataStoresSiteSearchEngineSitemapsService{s: s} + return rs +} + +type ProjectsLocationsDataStoresSiteSearchEngineSitemapsService struct { + s *Service +} + func NewProjectsLocationsDataStoresSiteSearchEngineTargetSitesService(s *Service) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService { rs := &ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService{s: s} return rs @@ -4910,6 +4934,33 @@ func (s GoogleCloudDiscoveryengineV1alphaCreateSchemaMetadata) MarshalJSON() ([] return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1alphaCreateSitemapMetadata: Metadata related to +// the progress of the SiteSearchEngineService.CreateSitemap operation. This +// will be returned by the google.longrunning.Operation.metadata field. +type GoogleCloudDiscoveryengineV1alphaCreateSitemapMetadata struct { + // CreateTime: Operation create time. + CreateTime string `json:"createTime,omitempty"` + // UpdateTime: Operation last update time. If the operation is done, this is + // also the finish time. + UpdateTime string `json:"updateTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "CreateTime") 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. "CreateTime") 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 GoogleCloudDiscoveryengineV1alphaCreateSitemapMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaCreateSitemapMetadata + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1alphaCreateTargetSiteMetadata: Metadata related // to the progress of the SiteSearchEngineService.CreateTargetSite operation. // This will be returned by the google.longrunning.Operation.metadata field. @@ -5302,6 +5353,33 @@ func (s GoogleCloudDiscoveryengineV1alphaDeleteSchemaMetadata) MarshalJSON() ([] return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1alphaDeleteSitemapMetadata: Metadata related to +// the progress of the SiteSearchEngineService.DeleteSitemap operation. This +// will be returned by the google.longrunning.Operation.metadata field. +type GoogleCloudDiscoveryengineV1alphaDeleteSitemapMetadata struct { + // CreateTime: Operation create time. + CreateTime string `json:"createTime,omitempty"` + // UpdateTime: Operation last update time. If the operation is done, this is + // also the finish time. + UpdateTime string `json:"updateTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "CreateTime") 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. "CreateTime") 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 GoogleCloudDiscoveryengineV1alphaDeleteSitemapMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaDeleteSitemapMetadata + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1alphaDeleteTargetSiteMetadata: Metadata related // to the progress of the SiteSearchEngineService.DeleteTargetSite operation. // This will be returned by the google.longrunning.Operation.metadata field. @@ -6124,6 +6202,52 @@ func (s GoogleCloudDiscoveryengineV1alphaEvaluationEvaluationSpecQuerySetSpec) M return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponse: Response message for +// SiteSearchEngineService.FetchSitemaps method. +type GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponse struct { + // SitemapsMetadata: List of Sitemaps fetched. + SitemapsMetadata []*GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponseSitemapMetadata `json:"sitemapsMetadata,omitempty"` + // ForceSendFields is a list of field names (e.g. "SitemapsMetadata") 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. "SitemapsMetadata") 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 GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponseSitemapMetadata: +// Contains a Sitemap and its metadata. +type GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponseSitemapMetadata struct { + // Sitemap: The Sitemap. + Sitemap *GoogleCloudDiscoveryengineV1alphaSitemap `json:"sitemap,omitempty"` + // ForceSendFields is a list of field names (e.g. "Sitemap") 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. "Sitemap") 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 GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponseSitemapMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponseSitemapMetadata + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1alphaFieldConfig: Configurations for fields of a // schema. For example, configuring a field is indexable, or searchable. type GoogleCloudDiscoveryengineV1alphaFieldConfig struct { @@ -8816,6 +8940,35 @@ func (s GoogleCloudDiscoveryengineV1alphaSiteVerificationInfo) MarshalJSON() ([] return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1alphaSitemap: A sitemap for the +// SiteSearchEngine. +type GoogleCloudDiscoveryengineV1alphaSitemap struct { + // CreateTime: Output only. The sitemap's creation time. + CreateTime string `json:"createTime,omitempty"` + // Name: Output only. The fully qualified resource name of the sitemap. + // `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/sitemaps/ + // *` The `sitemap_id` suffix is system-generated. + Name string `json:"name,omitempty"` + // Uri: Public URI for the sitemap, e.g. `www.example.com/sitemap.xml`. + Uri string `json:"uri,omitempty"` + // ForceSendFields is a list of field names (e.g. "CreateTime") 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. "CreateTime") 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 GoogleCloudDiscoveryengineV1alphaSitemap) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaSitemap + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1alphaTargetSite: A target site for the // SiteSearchEngine. type GoogleCloudDiscoveryengineV1alphaTargetSite struct { @@ -11272,7 +11425,10 @@ func (s GoogleCloudDiscoveryengineV1betaCheckGroundingRequest) MarshalJSON() ([] type GoogleCloudDiscoveryengineV1betaCheckGroundingResponse struct { // CitedChunks: List of facts cited across all claims in the answer candidate. // These are derived from the facts supplied in the request. - CitedChunks []*GoogleCloudDiscoveryengineV1betaCheckGroundingResponseFactChunk `json:"citedChunks,omitempty"` + CitedChunks []*GoogleCloudDiscoveryengineV1betaFactChunk `json:"citedChunks,omitempty"` + // CitedFacts: List of facts cited across all claims in the answer candidate. + // These are derived from the facts supplied in the request. + CitedFacts []*GoogleCloudDiscoveryengineV1betaCheckGroundingResponseCheckGroundingFactChunk `json:"citedFacts,omitempty"` // Claims: Claim texts and citation info across all claims in the answer // candidate. Claims []*GoogleCloudDiscoveryengineV1betaCheckGroundingResponseClaim `json:"claims,omitempty"` @@ -11315,6 +11471,30 @@ func (s *GoogleCloudDiscoveryengineV1betaCheckGroundingResponse) UnmarshalJSON(d return nil } +// GoogleCloudDiscoveryengineV1betaCheckGroundingResponseCheckGroundingFactChunk +// : Fact chunk for grounding check. +type GoogleCloudDiscoveryengineV1betaCheckGroundingResponseCheckGroundingFactChunk struct { + // ChunkText: Text content of the fact chunk. Can be at most 10K characters + // long. + ChunkText string `json:"chunkText,omitempty"` + // ForceSendFields is a list of field names (e.g. "ChunkText") 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. "ChunkText") 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 GoogleCloudDiscoveryengineV1betaCheckGroundingResponseCheckGroundingFactChunk) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaCheckGroundingResponseCheckGroundingFactChunk + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1betaCheckGroundingResponseClaim: Text and // citation info for a claim in the answer candidate. type GoogleCloudDiscoveryengineV1betaCheckGroundingResponseClaim struct { @@ -11357,34 +11537,6 @@ func (s GoogleCloudDiscoveryengineV1betaCheckGroundingResponseClaim) MarshalJSON return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDiscoveryengineV1betaCheckGroundingResponseFactChunk: Fact chunk -// for grounding check. -type GoogleCloudDiscoveryengineV1betaCheckGroundingResponseFactChunk struct { - // ChunkText: Text content of the fact chunk. Can be at most 10K characters - // long. - ChunkText string `json:"chunkText,omitempty"` - // Source: Source from which this fact chunk was retrieved. For a fact chunk - // retrieved from inline facts, this field will contain the index of the - // specific fact from which this chunk was retrieved. - Source string `json:"source,omitempty"` - // ForceSendFields is a list of field names (e.g. "ChunkText") 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. "ChunkText") 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 GoogleCloudDiscoveryengineV1betaCheckGroundingResponseFactChunk) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDiscoveryengineV1betaCheckGroundingResponseFactChunk - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // GoogleCloudDiscoveryengineV1betaCheckGroundingSpec: Specification for the // grounding check. type GoogleCloudDiscoveryengineV1betaCheckGroundingSpec struct { @@ -12372,6 +12524,33 @@ func (s GoogleCloudDiscoveryengineV1betaCreateSchemaMetadata) MarshalJSON() ([]b return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1betaCreateSitemapMetadata: Metadata related to +// the progress of the SiteSearchEngineService.CreateSitemap operation. This +// will be returned by the google.longrunning.Operation.metadata field. +type GoogleCloudDiscoveryengineV1betaCreateSitemapMetadata struct { + // CreateTime: Operation create time. + CreateTime string `json:"createTime,omitempty"` + // UpdateTime: Operation last update time. If the operation is done, this is + // also the finish time. + UpdateTime string `json:"updateTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "CreateTime") 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. "CreateTime") 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 GoogleCloudDiscoveryengineV1betaCreateSitemapMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaCreateSitemapMetadata + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1betaCreateTargetSiteMetadata: Metadata related // to the progress of the SiteSearchEngineService.CreateTargetSite operation. // This will be returned by the google.longrunning.Operation.metadata field. @@ -12776,6 +12955,33 @@ func (s GoogleCloudDiscoveryengineV1betaDeleteSchemaMetadata) MarshalJSON() ([]b return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1betaDeleteSitemapMetadata: Metadata related to +// the progress of the SiteSearchEngineService.DeleteSitemap operation. This +// will be returned by the google.longrunning.Operation.metadata field. +type GoogleCloudDiscoveryengineV1betaDeleteSitemapMetadata struct { + // CreateTime: Operation create time. + CreateTime string `json:"createTime,omitempty"` + // UpdateTime: Operation last update time. If the operation is done, this is + // also the finish time. + UpdateTime string `json:"updateTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "CreateTime") 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. "CreateTime") 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 GoogleCloudDiscoveryengineV1betaDeleteSitemapMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaDeleteSitemapMetadata + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1betaDeleteTargetSiteMetadata: Metadata related // to the progress of the SiteSearchEngineService.DeleteTargetSite operation. // This will be returned by the google.longrunning.Operation.metadata field. @@ -13629,6 +13835,112 @@ func (s GoogleCloudDiscoveryengineV1betaEvaluationEvaluationSpecQuerySetSpec) Ma return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1betaFactChunk: Fact Chunk. +type GoogleCloudDiscoveryengineV1betaFactChunk struct { + // ChunkText: Text content of the fact chunk. Can be at most 10K characters + // long. + ChunkText string `json:"chunkText,omitempty"` + // Index: The index of this chunk. Currently, only used for the streaming mode. + Index int64 `json:"index,omitempty"` + // Source: Source from which this fact chunk was retrieved. If it was retrieved + // from the GroundingFacts provided in the request then this field will contain + // the index of the specific fact from which this chunk was retrieved. + Source string `json:"source,omitempty"` + // SourceMetadata: More fine-grained information for the source reference. + SourceMetadata map[string]string `json:"sourceMetadata,omitempty"` + // ForceSendFields is a list of field names (e.g. "ChunkText") 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. "ChunkText") 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 GoogleCloudDiscoveryengineV1betaFactChunk) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaFactChunk + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1betaFeedback: Information about the user +// feedback. This information will be used for logging and metrics purpose. +type GoogleCloudDiscoveryengineV1betaFeedback struct { + // Comment: Optional. The additional user comment of the feedback if user gives + // a thumb down. + Comment string `json:"comment,omitempty"` + // ConversationInfo: The related conversation information when user gives + // feedback. + ConversationInfo *GoogleCloudDiscoveryengineV1betaFeedbackConversationInfo `json:"conversationInfo,omitempty"` + // FeedbackType: Required. Indicate whether the user gives a positive or + // negative feedback. If the user gives a negative feedback, there might be + // more feedback details. + // + // Possible values: + // "FEEDBACK_TYPE_UNSPECIFIED" - Unspecified feedback type. + // "LIKE" - The user gives a positive feedback. + // "DISLIKE" - The user gives a negative feedback. + FeedbackType string `json:"feedbackType,omitempty"` + // LlmModelVersion: The version of the LLM model that was used to generate the + // response. + LlmModelVersion string `json:"llmModelVersion,omitempty"` + // Reasons: Optional. The reason if user gives a thumb down. + // + // Possible values: + // "REASON_UNSPECIFIED" - Unspecified reason. + // "INACCURATE_RESPONSE" - The response is inaccurate. + // "NOT_RELEVANT" - The response is not relevant. + // "INCOMPREHENSIVE" - The response is incomprehensive. + // "OFFENSIVE_OR_UNSAFE" - The response is offensive or unsafe. + // "BAD_CIATION" - The response is not well-associated with the query. + // "FORMAT_AND_STYLES" - The response is not well-formatted. + Reasons []string `json:"reasons,omitempty"` + // ForceSendFields is a list of field names (e.g. "Comment") 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. "Comment") 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 GoogleCloudDiscoveryengineV1betaFeedback) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaFeedback + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1betaFeedbackConversationInfo: The conversation +// information such as the question index and session name. +type GoogleCloudDiscoveryengineV1betaFeedbackConversationInfo struct { + // QuestionIndex: The index of the user input within the conversation messages. + QuestionIndex int64 `json:"questionIndex,omitempty"` + // Session: Name of the newly generated or continued session. + Session string `json:"session,omitempty"` + // ForceSendFields is a list of field names (e.g. "QuestionIndex") 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. "QuestionIndex") 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 GoogleCloudDiscoveryengineV1betaFeedbackConversationInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaFeedbackConversationInfo + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1betaFetchDomainVerificationStatusResponse: // Response message for SiteSearchEngineService.FetchDomainVerificationStatus // method. @@ -13662,6 +13974,55 @@ func (s GoogleCloudDiscoveryengineV1betaFetchDomainVerificationStatusResponse) M return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1betaFetchSitemapsResponse: Response message for +// SiteSearchEngineService.FetchSitemaps method. +type GoogleCloudDiscoveryengineV1betaFetchSitemapsResponse struct { + // SitemapsMetadata: List of Sitemaps fetched. + SitemapsMetadata []*GoogleCloudDiscoveryengineV1betaFetchSitemapsResponseSitemapMetadata `json:"sitemapsMetadata,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "SitemapsMetadata") 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. "SitemapsMetadata") 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 GoogleCloudDiscoveryengineV1betaFetchSitemapsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaFetchSitemapsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1betaFetchSitemapsResponseSitemapMetadata: +// Contains a Sitemap and its metadata. +type GoogleCloudDiscoveryengineV1betaFetchSitemapsResponseSitemapMetadata struct { + // Sitemap: The Sitemap. + Sitemap *GoogleCloudDiscoveryengineV1betaSitemap `json:"sitemap,omitempty"` + // ForceSendFields is a list of field names (e.g. "Sitemap") 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. "Sitemap") 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 GoogleCloudDiscoveryengineV1betaFetchSitemapsResponseSitemapMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaFetchSitemapsResponseSitemapMetadata + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1betaFhirStoreSource: Cloud FhirStore source // import data from. type GoogleCloudDiscoveryengineV1betaFhirStoreSource struct { @@ -15091,6 +15452,8 @@ func (s GoogleCloudDiscoveryengineV1betaPageInfo) MarshalJSON() ([]byte, error) type GoogleCloudDiscoveryengineV1betaPanelInfo struct { // DisplayName: The display name of the panel. DisplayName string `json:"displayName,omitempty"` + // Documents: Optional. The document IDs associated with this panel. + Documents []*GoogleCloudDiscoveryengineV1betaDocumentInfo `json:"documents,omitempty"` // PanelId: Required. The panel ID. PanelId string `json:"panelId,omitempty"` // PanelPosition: The ordered position of the panel, if shown to the user with @@ -18582,6 +18945,34 @@ func (s GoogleCloudDiscoveryengineV1betaSiteVerificationInfo) MarshalJSON() ([]b return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1betaSitemap: A sitemap for the SiteSearchEngine. +type GoogleCloudDiscoveryengineV1betaSitemap struct { + // CreateTime: Output only. The sitemap's creation time. + CreateTime string `json:"createTime,omitempty"` + // Name: Output only. The fully qualified resource name of the sitemap. + // `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/sitemaps/ + // *` The `sitemap_id` suffix is system-generated. + Name string `json:"name,omitempty"` + // Uri: Public URI for the sitemap, e.g. `www.example.com/sitemap.xml`. + Uri string `json:"uri,omitempty"` + // ForceSendFields is a list of field names (e.g. "CreateTime") 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. "CreateTime") 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 GoogleCloudDiscoveryengineV1betaSitemap) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaSitemap + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1betaSpannerSource: The Spanner source for // importing data type GoogleCloudDiscoveryengineV1betaSpannerSource struct { @@ -19175,6 +19566,9 @@ type GoogleCloudDiscoveryengineV1betaUserEvent struct { // a song, etc. * `media-complete`: Finished or stopped midway through a video, // song, etc. EventType string `json:"eventType,omitempty"` + // Feedback: Optional. This field is optional except for the `add-feedback` + // event types. + Feedback *GoogleCloudDiscoveryengineV1betaFeedback `json:"feedback,omitempty"` // Filter: The filter syntax consists of an expression language for // constructing a predicate from one or more fields of the documents being // filtered. One example is for `search` events, the associated SearchRequest @@ -19193,6 +19587,9 @@ type GoogleCloudDiscoveryengineV1betaUserEvent struct { PageInfo *GoogleCloudDiscoveryengineV1betaPageInfo `json:"pageInfo,omitempty"` // Panel: Panel metadata associated with this user event. Panel *GoogleCloudDiscoveryengineV1betaPanelInfo `json:"panel,omitempty"` + // Panels: Optional. List of panels associated with this event. Used for + // page-level impression data. + Panels []*GoogleCloudDiscoveryengineV1betaPanelInfo `json:"panels,omitempty"` // PromotionIds: The promotion IDs if this is an event associated with // promotions. Currently, this field is restricted to at most one ID. PromotionIds []string `json:"promotionIds,omitempty"` @@ -27851,6 +28248,210 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCal } } +type ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsCreateCall struct { + s *Service + parent string + googleclouddiscoveryenginev1betasitemap *GoogleCloudDiscoveryengineV1betaSitemap + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a Sitemap. +// +// - parent: Parent resource name of the SiteSearchEngine, such as +// `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine`. +func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsService) Create(parent string, googleclouddiscoveryenginev1betasitemap *GoogleCloudDiscoveryengineV1betaSitemap) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsCreateCall { + c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleclouddiscoveryenginev1betasitemap = googleclouddiscoveryenginev1betasitemap + 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 *ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsCreateCall { + 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 *ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betasitemap) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/sitemaps") + 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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.sitemaps.create" 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 *ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a Sitemap. +// +// - name: Full resource name of Sitemap, such as +// `projects/{project}/locations/{location}/collections/{collection}/dataStore +// s/{data_store}/siteSearchEngine/sitemaps/{sitemap}`. If the caller does +// not have permission to access the Sitemap, regardless of whether or not it +// exists, a PERMISSION_DENIED error is returned. If the requested Sitemap +// does not exist, a NOT_FOUND error is returned. +func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsService) Delete(name string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsDeleteCall { + c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsDeleteCall{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 *ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsDeleteCall { + 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 *ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.sitemaps.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 *ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall struct { s *Service parent string @@ -40654,6 +41255,326 @@ func (c *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall) Do(opts ... return ret, nil } +type ProjectsLocationsDataStoresSiteSearchEngineSitemapsCreateCall struct { + s *Service + parent string + googleclouddiscoveryenginev1betasitemap *GoogleCloudDiscoveryengineV1betaSitemap + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a Sitemap. +// +// - parent: Parent resource name of the SiteSearchEngine, such as +// `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine`. +func (r *ProjectsLocationsDataStoresSiteSearchEngineSitemapsService) Create(parent string, googleclouddiscoveryenginev1betasitemap *GoogleCloudDiscoveryengineV1betaSitemap) *ProjectsLocationsDataStoresSiteSearchEngineSitemapsCreateCall { + c := &ProjectsLocationsDataStoresSiteSearchEngineSitemapsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleclouddiscoveryenginev1betasitemap = googleclouddiscoveryenginev1betasitemap + 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 *ProjectsLocationsDataStoresSiteSearchEngineSitemapsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineSitemapsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsDataStoresSiteSearchEngineSitemapsCreateCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineSitemapsCreateCall { + 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 *ProjectsLocationsDataStoresSiteSearchEngineSitemapsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDataStoresSiteSearchEngineSitemapsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betasitemap) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/sitemaps") + 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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.sitemaps.create" 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 *ProjectsLocationsDataStoresSiteSearchEngineSitemapsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsDataStoresSiteSearchEngineSitemapsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a Sitemap. +// +// - name: Full resource name of Sitemap, such as +// `projects/{project}/locations/{location}/collections/{collection}/dataStore +// s/{data_store}/siteSearchEngine/sitemaps/{sitemap}`. If the caller does +// not have permission to access the Sitemap, regardless of whether or not it +// exists, a PERMISSION_DENIED error is returned. If the requested Sitemap +// does not exist, a NOT_FOUND error is returned. +func (r *ProjectsLocationsDataStoresSiteSearchEngineSitemapsService) Delete(name string) *ProjectsLocationsDataStoresSiteSearchEngineSitemapsDeleteCall { + c := &ProjectsLocationsDataStoresSiteSearchEngineSitemapsDeleteCall{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 *ProjectsLocationsDataStoresSiteSearchEngineSitemapsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineSitemapsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsDataStoresSiteSearchEngineSitemapsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineSitemapsDeleteCall { + 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 *ProjectsLocationsDataStoresSiteSearchEngineSitemapsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDataStoresSiteSearchEngineSitemapsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.sitemaps.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 *ProjectsLocationsDataStoresSiteSearchEngineSitemapsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsDataStoresSiteSearchEngineSitemapsFetchCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Fetch: Fetch Sitemaps in a DataStore. +// +// - parent: Parent resource name of the SiteSearchEngine, such as +// `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine`. +func (r *ProjectsLocationsDataStoresSiteSearchEngineSitemapsService) Fetch(parent string) *ProjectsLocationsDataStoresSiteSearchEngineSitemapsFetchCall { + c := &ProjectsLocationsDataStoresSiteSearchEngineSitemapsFetchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// MatcherUrisMatcherUris sets the optional parameter +// "matcher.urisMatcher.uris": The Sitemap uris. +func (c *ProjectsLocationsDataStoresSiteSearchEngineSitemapsFetchCall) MatcherUrisMatcherUris(matcherUrisMatcherUris ...string) *ProjectsLocationsDataStoresSiteSearchEngineSitemapsFetchCall { + c.urlParams_.SetMulti("matcher.urisMatcher.uris", append([]string{}, matcherUrisMatcherUris...)) + 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 *ProjectsLocationsDataStoresSiteSearchEngineSitemapsFetchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineSitemapsFetchCall { + 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 *ProjectsLocationsDataStoresSiteSearchEngineSitemapsFetchCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresSiteSearchEngineSitemapsFetchCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsDataStoresSiteSearchEngineSitemapsFetchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineSitemapsFetchCall { + 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 *ProjectsLocationsDataStoresSiteSearchEngineSitemapsFetchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDataStoresSiteSearchEngineSitemapsFetchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/sitemaps:fetch") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.sitemaps.fetch" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudDiscoveryengineV1betaFetchSitemapsResponse.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 *ProjectsLocationsDataStoresSiteSearchEngineSitemapsFetchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaFetchSitemapsResponse, 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 := &GoogleCloudDiscoveryengineV1betaFetchSitemapsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + type ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall struct { s *Service parent string diff --git a/displayvideo/v2/displayvideo-api.json b/displayvideo/v2/displayvideo-api.json index 2d7918667fa..91a59e1610a 100644 --- a/displayvideo/v2/displayvideo-api.json +++ b/displayvideo/v2/displayvideo-api.json @@ -9267,7 +9267,7 @@ } } }, - "revision": "20241024", + "revision": "20241031", "rootUrl": "https://displayvideo.googleapis.com/", "schemas": { "ActivateManualTriggerRequest": { @@ -14113,7 +14113,8 @@ "EXCHANGE_CHARTBOOST_GBID", "EXCHANGE_ADMOST_GBID", "EXCHANGE_TOPON_GBID", - "EXCHANGE_NETFLIX" + "EXCHANGE_NETFLIX", + "EXCHANGE_TUBI" ], "enumDescriptions": [ "Exchange is not specified or is unknown in this version.", @@ -14198,7 +14199,8 @@ "Chartboost Mediation.", "AdMost.", "TopOn.", - "Netflix." + "Netflix.", + "Tubi." ], "type": "string" } @@ -14308,7 +14310,8 @@ "EXCHANGE_CHARTBOOST_GBID", "EXCHANGE_ADMOST_GBID", "EXCHANGE_TOPON_GBID", - "EXCHANGE_NETFLIX" + "EXCHANGE_NETFLIX", + "EXCHANGE_TUBI" ], "enumDescriptions": [ "Exchange is not specified or is unknown in this version.", @@ -14393,7 +14396,8 @@ "Chartboost Mediation.", "AdMost.", "TopOn.", - "Netflix." + "Netflix.", + "Tubi." ], "type": "string" }, @@ -14504,7 +14508,8 @@ "EXCHANGE_CHARTBOOST_GBID", "EXCHANGE_ADMOST_GBID", "EXCHANGE_TOPON_GBID", - "EXCHANGE_NETFLIX" + "EXCHANGE_NETFLIX", + "EXCHANGE_TUBI" ], "enumDescriptions": [ "Exchange is not specified or is unknown in this version.", @@ -14589,7 +14594,8 @@ "Chartboost Mediation.", "AdMost.", "TopOn.", - "Netflix." + "Netflix.", + "Tubi." ], "type": "string" }, @@ -14701,7 +14707,8 @@ "EXCHANGE_CHARTBOOST_GBID", "EXCHANGE_ADMOST_GBID", "EXCHANGE_TOPON_GBID", - "EXCHANGE_NETFLIX" + "EXCHANGE_NETFLIX", + "EXCHANGE_TUBI" ], "enumDescriptions": [ "Exchange is not specified or is unknown in this version.", @@ -14786,7 +14793,8 @@ "Chartboost Mediation.", "AdMost.", "TopOn.", - "Netflix." + "Netflix.", + "Tubi." ], "readOnly": true, "type": "string" @@ -15749,7 +15757,8 @@ "EXCHANGE_CHARTBOOST_GBID", "EXCHANGE_ADMOST_GBID", "EXCHANGE_TOPON_GBID", - "EXCHANGE_NETFLIX" + "EXCHANGE_NETFLIX", + "EXCHANGE_TUBI" ], "enumDescriptions": [ "Exchange is not specified or is unknown in this version.", @@ -15834,7 +15843,8 @@ "Chartboost Mediation.", "AdMost.", "TopOn.", - "Netflix." + "Netflix.", + "Tubi." ], "type": "string" }, @@ -16662,7 +16672,8 @@ "EXCHANGE_CHARTBOOST_GBID", "EXCHANGE_ADMOST_GBID", "EXCHANGE_TOPON_GBID", - "EXCHANGE_NETFLIX" + "EXCHANGE_NETFLIX", + "EXCHANGE_TUBI" ], "enumDescriptions": [ "Exchange is not specified or is unknown in this version.", @@ -16747,7 +16758,8 @@ "Chartboost Mediation.", "AdMost.", "TopOn.", - "Netflix." + "Netflix.", + "Tubi." ], "type": "string" }, diff --git a/displayvideo/v2/displayvideo-gen.go b/displayvideo/v2/displayvideo-gen.go index eee83ddabd5..efa0e5f62a5 100644 --- a/displayvideo/v2/displayvideo-gen.go +++ b/displayvideo/v2/displayvideo-gen.go @@ -6833,6 +6833,7 @@ type ExchangeAssignedTargetingOptionDetails struct { // "EXCHANGE_ADMOST_GBID" - AdMost. // "EXCHANGE_TOPON_GBID" - TopOn. // "EXCHANGE_NETFLIX" - Netflix. + // "EXCHANGE_TUBI" - Tubi. Exchange string `json:"exchange,omitempty"` // ForceSendFields is a list of field names (e.g. "Exchange") to // unconditionally include in API requests. By default, fields with empty or @@ -6966,6 +6967,7 @@ type ExchangeConfigEnabledExchange struct { // "EXCHANGE_ADMOST_GBID" - AdMost. // "EXCHANGE_TOPON_GBID" - TopOn. // "EXCHANGE_NETFLIX" - Netflix. + // "EXCHANGE_TUBI" - Tubi. Exchange string `json:"exchange,omitempty"` // GoogleAdManagerAgencyId: Output only. Agency ID of Google Ad Manager. The // field is only relevant when Google Ad Manager is the enabled exchange. @@ -7083,6 +7085,7 @@ type ExchangeReviewStatus struct { // "EXCHANGE_ADMOST_GBID" - AdMost. // "EXCHANGE_TOPON_GBID" - TopOn. // "EXCHANGE_NETFLIX" - Netflix. + // "EXCHANGE_TUBI" - Tubi. Exchange string `json:"exchange,omitempty"` // Status: Status of the exchange review. // @@ -7203,6 +7206,7 @@ type ExchangeTargetingOptionDetails struct { // "EXCHANGE_ADMOST_GBID" - AdMost. // "EXCHANGE_TOPON_GBID" - TopOn. // "EXCHANGE_NETFLIX" - Netflix. + // "EXCHANGE_TUBI" - Tubi. Exchange string `json:"exchange,omitempty"` // ForceSendFields is a list of field names (e.g. "Exchange") to // unconditionally include in API requests. By default, fields with empty or @@ -8236,6 +8240,7 @@ type GuaranteedOrder struct { // "EXCHANGE_ADMOST_GBID" - AdMost. // "EXCHANGE_TOPON_GBID" - TopOn. // "EXCHANGE_NETFLIX" - Netflix. + // "EXCHANGE_TUBI" - Tubi. Exchange string `json:"exchange,omitempty"` // GuaranteedOrderId: Output only. The unique identifier of the guaranteed // order. The guaranteed order IDs have the format @@ -9023,6 +9028,7 @@ type InventorySource struct { // "EXCHANGE_ADMOST_GBID" - AdMost. // "EXCHANGE_TOPON_GBID" - TopOn. // "EXCHANGE_NETFLIX" - Netflix. + // "EXCHANGE_TUBI" - Tubi. Exchange string `json:"exchange,omitempty"` // GuaranteedOrderId: Immutable. The ID of the guaranteed order that this // inventory source belongs to. Only applicable when commitment is diff --git a/displayvideo/v3/displayvideo-api.json b/displayvideo/v3/displayvideo-api.json index 659db9df709..63ff9d8bec2 100644 --- a/displayvideo/v3/displayvideo-api.json +++ b/displayvideo/v3/displayvideo-api.json @@ -9222,7 +9222,7 @@ } } }, - "revision": "20241024", + "revision": "20241031", "rootUrl": "https://displayvideo.googleapis.com/", "schemas": { "ActiveViewVideoViewabilityMetricConfig": { @@ -10320,7 +10320,8 @@ "EXCHANGE_CHARTBOOST_GBID", "EXCHANGE_ADMOST_GBID", "EXCHANGE_TOPON_GBID", - "EXCHANGE_NETFLIX" + "EXCHANGE_NETFLIX", + "EXCHANGE_TUBI" ], "enumDescriptions": [ "Exchange is not specified or is unknown in this version.", @@ -10405,7 +10406,8 @@ "Chartboost Mediation.", "AdMost.", "TopOn.", - "Netflix." + "Netflix.", + "Tubi." ], "type": "string" }, @@ -15100,7 +15102,8 @@ "EXCHANGE_CHARTBOOST_GBID", "EXCHANGE_ADMOST_GBID", "EXCHANGE_TOPON_GBID", - "EXCHANGE_NETFLIX" + "EXCHANGE_NETFLIX", + "EXCHANGE_TUBI" ], "enumDescriptions": [ "Exchange is not specified or is unknown in this version.", @@ -15185,7 +15188,8 @@ "Chartboost Mediation.", "AdMost.", "TopOn.", - "Netflix." + "Netflix.", + "Tubi." ], "type": "string" } @@ -15295,7 +15299,8 @@ "EXCHANGE_CHARTBOOST_GBID", "EXCHANGE_ADMOST_GBID", "EXCHANGE_TOPON_GBID", - "EXCHANGE_NETFLIX" + "EXCHANGE_NETFLIX", + "EXCHANGE_TUBI" ], "enumDescriptions": [ "Exchange is not specified or is unknown in this version.", @@ -15380,7 +15385,8 @@ "Chartboost Mediation.", "AdMost.", "TopOn.", - "Netflix." + "Netflix.", + "Tubi." ], "type": "string" }, @@ -15491,7 +15497,8 @@ "EXCHANGE_CHARTBOOST_GBID", "EXCHANGE_ADMOST_GBID", "EXCHANGE_TOPON_GBID", - "EXCHANGE_NETFLIX" + "EXCHANGE_NETFLIX", + "EXCHANGE_TUBI" ], "enumDescriptions": [ "Exchange is not specified or is unknown in this version.", @@ -15576,7 +15583,8 @@ "Chartboost Mediation.", "AdMost.", "TopOn.", - "Netflix." + "Netflix.", + "Tubi." ], "type": "string" }, @@ -15688,7 +15696,8 @@ "EXCHANGE_CHARTBOOST_GBID", "EXCHANGE_ADMOST_GBID", "EXCHANGE_TOPON_GBID", - "EXCHANGE_NETFLIX" + "EXCHANGE_NETFLIX", + "EXCHANGE_TUBI" ], "enumDescriptions": [ "Exchange is not specified or is unknown in this version.", @@ -15773,7 +15782,8 @@ "Chartboost Mediation.", "AdMost.", "TopOn.", - "Netflix." + "Netflix.", + "Tubi." ], "readOnly": true, "type": "string" @@ -16736,7 +16746,8 @@ "EXCHANGE_CHARTBOOST_GBID", "EXCHANGE_ADMOST_GBID", "EXCHANGE_TOPON_GBID", - "EXCHANGE_NETFLIX" + "EXCHANGE_NETFLIX", + "EXCHANGE_TUBI" ], "enumDescriptions": [ "Exchange is not specified or is unknown in this version.", @@ -16821,7 +16832,8 @@ "Chartboost Mediation.", "AdMost.", "TopOn.", - "Netflix." + "Netflix.", + "Tubi." ], "type": "string" }, @@ -17663,7 +17675,8 @@ "EXCHANGE_CHARTBOOST_GBID", "EXCHANGE_ADMOST_GBID", "EXCHANGE_TOPON_GBID", - "EXCHANGE_NETFLIX" + "EXCHANGE_NETFLIX", + "EXCHANGE_TUBI" ], "enumDescriptions": [ "Exchange is not specified or is unknown in this version.", @@ -17748,7 +17761,8 @@ "Chartboost Mediation.", "AdMost.", "TopOn.", - "Netflix." + "Netflix.", + "Tubi." ], "type": "string" }, diff --git a/displayvideo/v3/displayvideo-gen.go b/displayvideo/v3/displayvideo-gen.go index bcde674edd2..092ffda2213 100644 --- a/displayvideo/v3/displayvideo-gen.go +++ b/displayvideo/v3/displayvideo-gen.go @@ -1871,6 +1871,7 @@ type AlgorithmRulesComparisonValue struct { // "EXCHANGE_ADMOST_GBID" - AdMost. // "EXCHANGE_TOPON_GBID" - TopOn. // "EXCHANGE_NETFLIX" - Netflix. + // "EXCHANGE_TUBI" - Tubi. ExchangeValue string `json:"exchangeValue,omitempty"` // Int64Value: Integer value. Int64Value int64 `json:"int64Value,omitempty,string"` @@ -7798,6 +7799,7 @@ type ExchangeAssignedTargetingOptionDetails struct { // "EXCHANGE_ADMOST_GBID" - AdMost. // "EXCHANGE_TOPON_GBID" - TopOn. // "EXCHANGE_NETFLIX" - Netflix. + // "EXCHANGE_TUBI" - Tubi. Exchange string `json:"exchange,omitempty"` // ForceSendFields is a list of field names (e.g. "Exchange") to // unconditionally include in API requests. By default, fields with empty or @@ -7931,6 +7933,7 @@ type ExchangeConfigEnabledExchange struct { // "EXCHANGE_ADMOST_GBID" - AdMost. // "EXCHANGE_TOPON_GBID" - TopOn. // "EXCHANGE_NETFLIX" - Netflix. + // "EXCHANGE_TUBI" - Tubi. Exchange string `json:"exchange,omitempty"` // GoogleAdManagerAgencyId: Output only. Agency ID of Google Ad Manager. The // field is only relevant when Google Ad Manager is the enabled exchange. @@ -8048,6 +8051,7 @@ type ExchangeReviewStatus struct { // "EXCHANGE_ADMOST_GBID" - AdMost. // "EXCHANGE_TOPON_GBID" - TopOn. // "EXCHANGE_NETFLIX" - Netflix. + // "EXCHANGE_TUBI" - Tubi. Exchange string `json:"exchange,omitempty"` // Status: Status of the exchange review. // @@ -8168,6 +8172,7 @@ type ExchangeTargetingOptionDetails struct { // "EXCHANGE_ADMOST_GBID" - AdMost. // "EXCHANGE_TOPON_GBID" - TopOn. // "EXCHANGE_NETFLIX" - Netflix. + // "EXCHANGE_TUBI" - Tubi. Exchange string `json:"exchange,omitempty"` // ForceSendFields is a list of field names (e.g. "Exchange") to // unconditionally include in API requests. By default, fields with empty or @@ -9201,6 +9206,7 @@ type GuaranteedOrder struct { // "EXCHANGE_ADMOST_GBID" - AdMost. // "EXCHANGE_TOPON_GBID" - TopOn. // "EXCHANGE_NETFLIX" - Netflix. + // "EXCHANGE_TUBI" - Tubi. Exchange string `json:"exchange,omitempty"` // GuaranteedOrderId: Output only. The unique identifier of the guaranteed // order. The guaranteed order IDs have the format @@ -10004,6 +10010,7 @@ type InventorySource struct { // "EXCHANGE_ADMOST_GBID" - AdMost. // "EXCHANGE_TOPON_GBID" - TopOn. // "EXCHANGE_NETFLIX" - Netflix. + // "EXCHANGE_TUBI" - Tubi. Exchange string `json:"exchange,omitempty"` // GuaranteedOrderId: Immutable. The ID of the guaranteed order that this // inventory source belongs to. Only applicable when commitment is diff --git a/dlp/v2/dlp-api.json b/dlp/v2/dlp-api.json index 2e2f5bdeee3..fc07aeb7e31 100644 --- a/dlp/v2/dlp-api.json +++ b/dlp/v2/dlp-api.json @@ -325,7 +325,7 @@ "infoTypes": { "methods": { "list": { - "description": "Returns a list of the sensitive information types that DLP API supports. See https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference to learn more.", + "description": "Returns a list of the sensitive information types that the DLP API supports. See https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference to learn more.", "flatPath": "v2/infoTypes", "httpMethod": "GET", "id": "dlp.infoTypes.list", @@ -367,7 +367,7 @@ "infoTypes": { "methods": { "list": { - "description": "Returns a list of the sensitive information types that DLP API supports. See https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference to learn more.", + "description": "Returns a list of the sensitive information types that the DLP API supports. See https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference to learn more.", "flatPath": "v2/locations/{locationsId}/infoTypes", "httpMethod": "GET", "id": "dlp.locations.infoTypes.list", @@ -5015,7 +5015,7 @@ } } }, - "revision": "20241020", + "revision": "20241027", "rootUrl": "https://dlp.googleapis.com/", "schemas": { "GooglePrivacyDlpV2Action": { @@ -5771,7 +5771,7 @@ "type": "string" }, "maxConnections": { - "description": "Required. DLP will limit its connections to max_connections. Must be 2 or greater.", + "description": "Required. The DLP API will limit its connections to max_connections. Must be 2 or greater.", "format": "int32", "type": "integer" }, @@ -6209,7 +6209,7 @@ "type": "object" }, "GooglePrivacyDlpV2Connection": { - "description": "A data connection to allow DLP to profile data in locations that require additional configuration.", + "description": "A data connection to allow the DLP API to profile data in locations that require additional configuration.", "id": "GooglePrivacyDlpV2Connection", "properties": { "cloudSql": { @@ -6239,7 +6239,7 @@ ], "enumDescriptions": [ "Unused", - "DLP automatically created this connection during an initial scan, and it is awaiting full configuration by a user.", + "The DLP API automatically created this connection during an initial scan, and it is awaiting full configuration by a user.", "A configured connection that has not encountered any errors.", "A configured connection that encountered errors during its last use. It will not be used again until it is set to AVAILABLE. If the resolution requires external action, then the client must send a request to set the status to AVAILABLE when the connection is ready for use. If the resolution doesn't require external action, then any changes to the connection properties will automatically mark it as AVAILABLE." ], @@ -6647,7 +6647,7 @@ }, "publishToScc": { "$ref": "GooglePrivacyDlpV2PublishToSecurityCommandCenter", - "description": "Publishes findings to SCC for each data profile." + "description": "Publishes findings to Security Command Center for each data profile." }, "tagResources": { "$ref": "GooglePrivacyDlpV2TagResources", @@ -6731,7 +6731,7 @@ "description": "Must be set only when scanning other clouds." }, "projectId": { - "description": "The project that will run the scan. The DLP service account that exists within this project must have access to all resources that are profiled, and the Cloud DLP API must be enabled.", + "description": "The project that will run the scan. The DLP service account that exists within this project must have access to all resources that are profiled, and the DLP API must be enabled.", "type": "string" } }, @@ -10226,7 +10226,7 @@ "description": "The data to scan: folder, org, or project" }, "projectId": { - "description": "The project that will run the scan. The DLP service account that exists within this project must have access to all resources that are profiled, and the Cloud DLP API must be enabled.", + "description": "The project that will run the scan. The DLP service account that exists within this project must have access to all resources that are profiled, and the DLP API must be enabled.", "type": "string" } }, @@ -10706,7 +10706,7 @@ "type": "object" }, "GooglePrivacyDlpV2PublishToSecurityCommandCenter": { - "description": "If set, a summary finding will be created/updated in SCC for each profile.", + "description": "If set, a summary finding will be created or updated in Security Command Center for each profile.", "id": "GooglePrivacyDlpV2PublishToSecurityCommandCenter", "properties": {}, "type": "object" diff --git a/dlp/v2/dlp-gen.go b/dlp/v2/dlp-gen.go index da4179997e6..49359a5c900 100644 --- a/dlp/v2/dlp-gen.go +++ b/dlp/v2/dlp-gen.go @@ -1632,8 +1632,8 @@ type GooglePrivacyDlpV2CloudSqlProperties struct { // "DATABASE_ENGINE_MYSQL" - Cloud SQL for MySQL instance. // "DATABASE_ENGINE_POSTGRES" - Cloud SQL for PostgreSQL instance. DatabaseEngine string `json:"databaseEngine,omitempty"` - // MaxConnections: Required. DLP will limit its connections to max_connections. - // Must be 2 or greater. + // MaxConnections: Required. The DLP API will limit its connections to + // max_connections. Must be 2 or greater. MaxConnections int64 `json:"maxConnections,omitempty"` // UsernamePassword: A username and password stored in Secret Manager. UsernamePassword *GooglePrivacyDlpV2SecretManagerCredential `json:"usernamePassword,omitempty"` @@ -2200,8 +2200,8 @@ func (s GooglePrivacyDlpV2Conditions) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GooglePrivacyDlpV2Connection: A data connection to allow DLP to profile data -// in locations that require additional configuration. +// GooglePrivacyDlpV2Connection: A data connection to allow the DLP API to +// profile data in locations that require additional configuration. type GooglePrivacyDlpV2Connection struct { // CloudSql: Connect to a Cloud SQL instance. CloudSql *GooglePrivacyDlpV2CloudSqlProperties `json:"cloudSql,omitempty"` @@ -2215,8 +2215,8 @@ type GooglePrivacyDlpV2Connection struct { // // Possible values: // "CONNECTION_STATE_UNSPECIFIED" - Unused - // "MISSING_CREDENTIALS" - DLP automatically created this connection during - // an initial scan, and it is awaiting full configuration by a user. + // "MISSING_CREDENTIALS" - The DLP API automatically created this connection + // during an initial scan, and it is awaiting full configuration by a user. // "AVAILABLE" - A configured connection that has not encountered any errors. // "ERROR" - A configured connection that encountered errors during its last // use. It will not be used again until it is set to AVAILABLE. If the @@ -2862,7 +2862,8 @@ type GooglePrivacyDlpV2DataProfileAction struct { // context-aware analytics // (https://cloud.google.com/chronicle/docs/detection/usecase-dlp-high-risk-user-download). PublishToChronicle *GooglePrivacyDlpV2PublishToChronicle `json:"publishToChronicle,omitempty"` - // PublishToScc: Publishes findings to SCC for each data profile. + // PublishToScc: Publishes findings to Security Command Center for each data + // profile. PublishToScc *GooglePrivacyDlpV2PublishToSecurityCommandCenter `json:"publishToScc,omitempty"` // TagResources: Tags the profiled resources with the specified tag values. TagResources *GooglePrivacyDlpV2TagResources `json:"tagResources,omitempty"` @@ -2974,7 +2975,7 @@ type GooglePrivacyDlpV2DataProfileJobConfig struct { OtherCloudStartingLocation *GooglePrivacyDlpV2OtherCloudDiscoveryStartingLocation `json:"otherCloudStartingLocation,omitempty"` // ProjectId: The project that will run the scan. The DLP service account that // exists within this project must have access to all resources that are - // profiled, and the Cloud DLP API must be enabled. + // profiled, and the DLP API must be enabled. ProjectId string `json:"projectId,omitempty"` // ForceSendFields is a list of field names (e.g. "DataProfileActions") to // unconditionally include in API requests. By default, fields with empty or @@ -7734,7 +7735,7 @@ type GooglePrivacyDlpV2OrgConfig struct { Location *GooglePrivacyDlpV2DiscoveryStartingLocation `json:"location,omitempty"` // ProjectId: The project that will run the scan. The DLP service account that // exists within this project must have access to all resources that are - // profiled, and the Cloud DLP API must be enabled. + // profiled, and the DLP API must be enabled. ProjectId string `json:"projectId,omitempty"` // ForceSendFields is a list of field names (e.g. "Location") to // unconditionally include in API requests. By default, fields with empty or @@ -8410,7 +8411,7 @@ func (s GooglePrivacyDlpV2PublishToPubSub) MarshalJSON() ([]byte, error) { } // GooglePrivacyDlpV2PublishToSecurityCommandCenter: If set, a summary finding -// will be created/updated in SCC for each profile. +// will be created or updated in Security Command Center for each profile. type GooglePrivacyDlpV2PublishToSecurityCommandCenter struct { } @@ -10950,7 +10951,7 @@ type InfoTypesListCall struct { header_ http.Header } -// List: Returns a list of the sensitive information types that DLP API +// List: Returns a list of the sensitive information types that the DLP API // supports. See // https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference // to learn more. @@ -11084,7 +11085,7 @@ type LocationsInfoTypesListCall struct { header_ http.Header } -// List: Returns a list of the sensitive information types that DLP API +// List: Returns a list of the sensitive information types that the DLP API // supports. See // https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference // to learn more. diff --git a/drive/v3/drive-api.json b/drive/v3/drive-api.json index 0e1f79940b4..a6c3fc6b1d2 100644 --- a/drive/v3/drive-api.json +++ b/drive/v3/drive-api.json @@ -1764,7 +1764,7 @@ ], "enumDescriptions": [ "Unspecified action", - "The user accepts the proposal", + "The user accepts the proposal. Note: If this action is used, the `role` field must have at least one value.", "The user denies the proposal" ], "location": "query", @@ -2769,7 +2769,7 @@ } } }, - "revision": "20241014", + "revision": "20241027", "rootUrl": "https://www.googleapis.com/", "schemas": { "About": { diff --git a/drive/v3/drive-gen.go b/drive/v3/drive-gen.go index 0b4bf4cccc0..581feb66eab 100644 --- a/drive/v3/drive-gen.go +++ b/drive/v3/drive-gen.go @@ -7600,7 +7600,10 @@ func (r *FilesAccessproposalsService) Resolve(fileId string, proposalId string) // Possible values: // // "ACTION_UNSPECIFIED" - Unspecified action -// "ACCEPT" - The user accepts the proposal +// "ACCEPT" - The user accepts the proposal. Note: If this action is used, +// +// the `role` field must have at least one value. +// // "DENY" - The user denies the proposal func (c *FilesAccessproposalsResolveCall) Action(action string) *FilesAccessproposalsResolveCall { c.urlParams_.Set("action", action) diff --git a/eventarc/v1/eventarc-api.json b/eventarc/v1/eventarc-api.json index 058880c17ee..8ee8e521c1c 100644 --- a/eventarc/v1/eventarc-api.json +++ b/eventarc/v1/eventarc-api.json @@ -2369,7 +2369,7 @@ } } }, - "revision": "20241021", + "revision": "20241029", "rootUrl": "https://eventarc.googleapis.com/", "schemas": { "AuditConfig": { @@ -2934,7 +2934,7 @@ "type": "string" }, "serviceAccount": { - "description": "Required. Service account email used to generate the [OAuth token](https://developers.google.com/identity/protocols/OAuth2). The principal who calls this API must have iam.serviceAccounts.actAs permission in the service account. See https://cloud.google.com/iam/docs/understanding-service-accounts?hl=en#sa_common for more information. Eventarc service agents must have roles/roles/iam.serviceAccountTokenCreator role to allow Pipeline to create OAuth2 tokens for authenticated requests.", + "description": "Required. Service account email used to generate the [OAuth token](https://developers.google.com/identity/protocols/OAuth2). The principal who calls this API must have iam.serviceAccounts.actAs permission in the service account. See https://cloud.google.com/iam/docs/understanding-service-accounts for more information. Eventarc service agents must have roles/roles/iam.serviceAccountTokenCreator role to allow Pipeline to create OAuth2 tokens for authenticated requests.", "type": "string" } }, @@ -2949,7 +2949,7 @@ "type": "string" }, "serviceAccount": { - "description": "Required. Service account email used to generate the OIDC Token. The principal who calls this API must have iam.serviceAccounts.actAs permission in the service account. See https://cloud.google.com/iam/docs/understanding-service-accounts?hl=en#sa_common for more information. Eventarc service agents must have roles/roles/iam.serviceAccountTokenCreator role to allow the Pipeline to create OpenID tokens for authenticated requests.", + "description": "Required. Service account email used to generate the OIDC Token. The principal who calls this API must have iam.serviceAccounts.actAs permission in the service account. See https://cloud.google.com/iam/docs/understanding-service-accounts for more information. Eventarc service agents must have roles/roles/iam.serviceAccountTokenCreator role to allow the Pipeline to create OpenID tokens for authenticated requests.", "type": "string" } }, @@ -2960,11 +2960,11 @@ "id": "GoogleCloudEventarcV1PipelineDestinationHttpEndpoint", "properties": { "messageBindingTemplate": { - "description": "Optional. The CEL expression used to construct a new HTTP request to be sent to the final destination. The result of the CEL expression must be a map of key/value pairs such that: - If a map named `headers` exists on the result of the expression, then its key/value pairs are directly mapped to the HTTP request headers. The headers values are constructed from the corresponding value type’s canonical representation. If the `headers` field doesn’t exist then the resulting HTTP request will be without headers. - If a field named `body` exists on the result of the expression then its value is directly mapped to the body of the request. If the value of the `body` field is of type bytes or string then it is used for the HTTP request body as-is, with no conversion. If the body field is of any other type then it is converted to a JSON string. If the body field doesn’t exist then the resulting HTTP request will be without a body. - Any other fields in the resulting expression will be ignored. The CEL expression may access the incoming CloudEvent message in its definition, as follows: - The `data` field of the incoming CloudEvent message can be accessed using the `message.data` value. - Each attribute of the incoming CloudEvent message can be accessed using the `message.` value, where is replaced with the name of the attribute. Headers added to the request by previous filters in the chain can be accessed in the CEL expression using the `headers` variable. The `headers` variable defines a map of key/value pairs corresponding to the HTTP headers added by previous mediation steps and not the headers present on the original incoming request. For example, the following CEL expression can be used to construct a Headers-only HTTP request by adding an additional header to the headers added by previous mediations in the Pipeline: ``` {\"headers\": headers.merge({\"new-header-key\": \"new-header-value\"})} ``` Additionally, the following CEL extension functions are provided for use in this CEL expression: - toBase64Url: map.toBase64Url() -\u003e string - Converts a CelValue to a base64url encoded string - toJsonString: map.toJsonString() -\u003e string - Converts a CelValue to a JSON string - merge: map1.merge(map2) -\u003e map3 - Merges the passed CEL map with the existing CEL map the function is applied to. - If the same key exists in both maps, if the key's value is type map both maps are merged else the value from the passed map is used. - toMap: list(map).toMap() -\u003e map - Converts a CEL list of CEL maps to a single CEL map - toDestinationPayloadFormat(): message.data.toDestinationPayloadFormat() -\u003e string or bytes - Converts the message data to the destination payload format specified in Pipeline.Destination.output_payload_format - This function is meant to be applied to the message.data field. - If the destination payload format is not set, the function will return the message data unchanged. - toCloudEventJsonWithPayloadFormat: message.toCloudEventJsonWithPayloadFormat() -\u003e map - Converts a message to the corresponding structure of JSON format for CloudEvents - This function applies toDestinationPayloadFormat() to the message data. It also sets the corresponding datacontenttype of the CloudEvent, as indicated by Pipeline.Destination.output_payload_format. If no output_payload_format is set it will use the existing datacontenttype on the CloudEvent if present, else leave datacontenttype absent. - This function expects that the content of the message will adhere to the standard CloudEvent format. If it doesn’t then this function will fail. - The result is a CEL map that corresponds to the JSON representation of the CloudEvent. To convert that data to a JSON string it can be chained with the toJsonString function. If a binding is not specified here, by default the message is treated as a CloudEvent and is mapped to the HTTP request according to the CloudEvent HTTP Protocol Binding Binary Content Mode. The Pipeline converts the data field of the message to the format provided in Pipeline.Destination.output_payload_format and maps it to the body field of the result. It also sets the corresponding Content-Type header to the output_payload_format type. If the Pipeline.Destination.output_payload_format is not set, then the Pipeline will treat the data field of the message as opaque binary data and attach it to the request body as bytes. In this case the Content-type header will be set to the value of the datacontenttype attribute set on the incoming CloudEvent message if present and the `application/octet-stream` MIME type otherwise. The Pipeline expects that the content of the message will adhere to the standard CloudEvent format. If it doesn’t then the outgoing message request may fail with a persistent error.", + "description": "Optional. The CEL expression used to modify how the destination-bound HTTP request is constructed. If a binding expression is not specified here, the message is treated as a CloudEvent and is mapped to the HTTP request according to the CloudEvent HTTP Protocol Binding Binary Content Mode. In this representation, all fields except the `data` and `datacontenttype` field on the message are mapped to HTTP request headers with a prefix of `ce-`. To construct the HTTP request payload and the value of the content-type HTTP header, the payload format is defined as follows: 1) Use the output_payload_format_type on the Pipeline.Destination if it is set, else: 2) Use the input_payload_format_type on the Pipeline if it is set, else: 3) Treat the payload as opaque binary data. The `data` field of the message is converted to the payload format or left as-is for case 3) and then attached as the payload of the HTTP request. The `content-type` header on the HTTP request is set to the payload format type or left empty for case 3). However, if a mediation has updated the `datacontenttype` field on the message so that it is not the same as the payload format type but it is still a prefix of the payload format type, then the `content-type` header on the HTTP request is set to this `datacontenttype` value. For example, if the `datacontenttype` is \"application/json\" and the payload format type is \"application/json; charset=utf-8\", then the `content-type` header on the HTTP request is set to \"application/json; charset=utf-8\". If a non-empty binding expression is specified then this expression is used to modify the default CloudEvent HTTP Protocol Binding Binary Content representation. The result of the CEL expression must be a map of key/value pairs which is used as follows: - If a map named `headers` exists on the result of the expression, then its key/value pairs are directly mapped to the HTTP request headers. The headers values are constructed from the corresponding value type's canonical representation. If the `headers` field doesn't exist then the resulting HTTP request will be the headers of the CloudEvent HTTP Binding Binary Content Mode representation of the final message. Note: If the specified binding expression, has updated the `datacontenttype` field on the message so that it is not the same as the payload format type but it is still a prefix of the payload format type, then the `content-type` header in the `headers` map is set to this `datacontenttype` value. - If a field named `body` exists on the result of the expression then its value is directly mapped to the body of the request. If the value of the `body` field is of type bytes or string then it is used for the HTTP request body as-is, with no conversion. If the body field is of any other type then it is converted to a JSON string. If the body field does not exist then the resulting payload of the HTTP request will be data value of the CloudEvent HTTP Binding Binary Content Mode representation of the final message as described earlier. - Any other fields in the resulting expression will be ignored. The CEL expression may access the incoming CloudEvent message in its definition, as follows: - The `data` field of the incoming CloudEvent message can be accessed using the `message.data` value. Subfields of `message.data` may also be accessed if an input_payload_format has been specified on the Pipeline. - Each attribute of the incoming CloudEvent message can be accessed using the `message.` value, where is replaced with the name of the attribute. - Existing headers can be accessed in the CEL expression using the `headers` variable. The `headers` variable defines a map of key/value pairs corresponding to the HTTP headers of the CloudEvent HTTP Binding Binary Content Mode representation of the final message as described earlier. For example, the following CEL expression can be used to construct an HTTP request by adding an additional header to the HTTP headers of the CloudEvent HTTP Binding Binary Content Mode representation of the final message and by overwriting the body of the request: ``` { \"headers\": headers.merge({\"new-header-key\": \"new-header-value\"}), \"body\": \"new-body\" } ``` Additionally, the following CEL extension functions are provided for use in this CEL expression: - toBase64Url: map.toBase64Url() -\u003e string - Converts a CelValue to a base64url encoded string - toJsonString: map.toJsonString() -\u003e string - Converts a CelValue to a JSON string - merge: map1.merge(map2) -\u003e map3 - Merges the passed CEL map with the existing CEL map the function is applied to. - If the same key exists in both maps, if the key's value is type map both maps are merged else the value from the passed map is used. - denormalize: map.denormalize() -\u003e map - Denormalizes a CEL map such that every value of type map or key in the map is expanded to return a single level map. - The resulting keys are \".\" separated indices of the map keys. - For example: { \"a\": 1, \"b\": { \"c\": 2, \"d\": 3 } \"e\": [4, 5] } .denormalize() -\u003e { \"a\": 1, \"b.c\": 2, \"b.d\": 3, \"e.0\": 4, \"e.1\": 5 } - setField: map.setField(key, value) -\u003e message - Sets the field of the message with the given key to the given value. - If the field is not present it will be added. - If the field is present it will be overwritten. - The key can be a dot separated path to set a field in a nested message. - Key must be of type string. - Value may be any valid type. - removeFields: map.removeFields([key1, key2, ...]) -\u003e message - Removes the fields of the map with the given keys. - The keys can be a dot separated path to remove a field in a nested message. - If a key is not found it will be ignored. - Keys must be of type string. - toMap: [map1, map2, ...].toMap() -\u003e map - Converts a CEL list of CEL maps to a single CEL map - toDestinationPayloadFormat(): message.data.toDestinationPayloadFormat() -\u003e string or bytes - Converts the message data to the destination payload format specified in Pipeline.Destination.output_payload_format - This function is meant to be applied to the message.data field. - If the destination payload format is not set, the function will return the message data unchanged. - toCloudEventJsonWithPayloadFormat: message.toCloudEventJsonWithPayloadFormat() -\u003e map - Converts a message to the corresponding structure of JSON format for CloudEvents - This function applies toDestinationPayloadFormat() to the message data. It also sets the corresponding datacontenttype of the CloudEvent, as indicated by Pipeline.Destination.output_payload_format. If no output_payload_format is set it will use the existing datacontenttype on the CloudEvent if present, else leave datacontenttype absent. - This function expects that the content of the message will adhere to the standard CloudEvent format. If it doesn't then this function will fail. - The result is a CEL map that corresponds to the JSON representation of the CloudEvent. To convert that data to a JSON string it can be chained with the toJsonString function. The Pipeline expects that the message it receives adheres to the standard CloudEvent format. If it doesn't then the outgoing message request may fail with a persistent error.", "type": "string" }, "uri": { - "description": "Required. The URI of the HTTP enpdoint. The value must be a RFC2396 URI string. Examples: `http://10.10.10.8:80/route`, `http://svc.us-central1.p.local:8080/`. Only HTTP and HTTPS protocols are supported. The host can be either a static IP addressable from the VPC specified by the network config, or an internal DNS hostname of the service resolvable via Cloud DNS.", + "description": "Required. The URI of the HTTP enpdoint. The value must be a RFC2396 URI string. Examples: `https://svc.us-central1.p.local:8080/route`. Only the HTTPS protocol is supported.", "type": "string" } }, @@ -2997,7 +2997,7 @@ "id": "GoogleCloudEventarcV1PipelineMediationTransformation", "properties": { "transformationTemplate": { - "description": "Optional. The template to apply to transform messages.", + "description": "Optional. The CEL expression template to apply to transform messages. The following CEL extension functions are provided for use in this CEL expression: - merge: map1.merge(map2) -\u003e map3 - Merges the passed CEL map with the existing CEL map the function is applied to. - If the same key exists in both maps, if the key's value is type map both maps are merged else the value from the passed map is used. - denormalize: map.denormalize() -\u003e map - Denormalizes a CEL map such that every value of type map or key in the map is expanded to return a single level map. - The resulting keys are \".\" separated indices of the map keys. - For example: { \"a\": 1, \"b\": { \"c\": 2, \"d\": 3 } \"e\": [4, 5] } .denormalize() -\u003e { \"a\": 1, \"b.c\": 2, \"b.d\": 3, \"e.0\": 4, \"e.1\": 5 } - setField: map.setField(key, value) -\u003e message - Sets the field of the message with the given key to the given value. - If the field is not present it will be added. - If the field is present it will be overwritten. - The key can be a dot separated path to set a field in a nested message. - Key must be of type string. - Value may be any valid type. - removeFields: map.removeFields([key1, key2, ...]) -\u003e message - Removes the fields of the map with the given keys. - The keys can be a dot separated path to remove a field in a nested message. - If a key is not found it will be ignored. - Keys must be of type string. - toMap: [map1, map2, ...].toMap() -\u003e map - Converts a CEL list of CEL maps to a single CEL map - toDestinationPayloadFormat(): message.data.toDestinationPayloadFormat() -\u003e string or bytes - Converts the message data to the destination payload format specified in Pipeline.Destination.output_payload_format - This function is meant to be applied to the message.data field. - If the destination payload format is not set, the function will return the message data unchanged. - toCloudEventJsonWithPayloadFormat: message.toCloudEventJsonWithPayloadFormat() -\u003e map - Converts a message to the corresponding structure of JSON format for CloudEvents - This function applies toDestinationPayloadFormat() to the message data. It also sets the corresponding datacontenttype of the CloudEvent, as indicated by Pipeline.Destination.output_payload_format. If no output_payload_format is set it will use the existing datacontenttype on the CloudEvent if present, else leave datacontenttype absent. - This function expects that the content of the message will adhere to the standard CloudEvent format. If it doesn't then this function will fail. - The result is a CEL map that corresponds to the JSON representation of the CloudEvent. To convert that data to a JSON string it can be chained with the toJsonString function.", "type": "string" } }, @@ -3060,12 +3060,12 @@ "type": "integer" }, "maxRetryDelay": { - "description": "Optional. The maximum amount of seconds to wait between retry attempts. The value must be between 0 and 600. The default value for this field is 60.", + "description": "Optional. The maximum amount of seconds to wait between retry attempts. The value must be between 1 and 600. The default value for this field is 60.", "format": "google-duration", "type": "string" }, "minRetryDelay": { - "description": "Optional. The minimum amount of seconds to wait between retry attempts. The value must be between 0 and 600. The default value for this field is 5.", + "description": "Optional. The minimum amount of seconds to wait between retry attempts. The value must be between 1 and 600. The default value for this field is 5.", "format": "google-duration", "type": "string" } diff --git a/eventarc/v1/eventarc-gen.go b/eventarc/v1/eventarc-gen.go index c1e78524274..a72ce1ec20f 100644 --- a/eventarc/v1/eventarc-gen.go +++ b/eventarc/v1/eventarc-gen.go @@ -1098,8 +1098,8 @@ type GoogleCloudEventarcV1PipelineDestinationAuthenticationConfigOAuthToken stru // token (https://developers.google.com/identity/protocols/OAuth2). The // principal who calls this API must have iam.serviceAccounts.actAs permission // in the service account. See - // https://cloud.google.com/iam/docs/understanding-service-accounts?hl=en#sa_common - // for more information. Eventarc service agents must have + // https://cloud.google.com/iam/docs/understanding-service-accounts for more + // information. Eventarc service agents must have // roles/roles/iam.serviceAccountTokenCreator role to allow Pipeline to create // OAuth2 tokens for authenticated requests. ServiceAccount string `json:"serviceAccount,omitempty"` @@ -1133,8 +1133,8 @@ type GoogleCloudEventarcV1PipelineDestinationAuthenticationConfigOidcToken struc // ServiceAccount: Required. Service account email used to generate the OIDC // Token. The principal who calls this API must have iam.serviceAccounts.actAs // permission in the service account. See - // https://cloud.google.com/iam/docs/understanding-service-accounts?hl=en#sa_common - // for more information. Eventarc service agents must have + // https://cloud.google.com/iam/docs/understanding-service-accounts for more + // information. Eventarc service agents must have // roles/roles/iam.serviceAccountTokenCreator role to allow the Pipeline to // create OpenID tokens for authenticated requests. ServiceAccount string `json:"serviceAccount,omitempty"` @@ -1159,41 +1159,85 @@ func (s GoogleCloudEventarcV1PipelineDestinationAuthenticationConfigOidcToken) M // GoogleCloudEventarcV1PipelineDestinationHttpEndpoint: Represents a HTTP // endpoint destination. type GoogleCloudEventarcV1PipelineDestinationHttpEndpoint struct { - // MessageBindingTemplate: Optional. The CEL expression used to construct a new - // HTTP request to be sent to the final destination. The result of the CEL - // expression must be a map of key/value pairs such that: - If a map named - // `headers` exists on the result of the expression, then its key/value pairs - // are directly mapped to the HTTP request headers. The headers values are - // constructed from the corresponding value type’s canonical representation. - // If the `headers` field doesn’t exist then the resulting HTTP request will - // be without headers. - If a field named `body` exists on the result of the - // expression then its value is directly mapped to the body of the request. If - // the value of the `body` field is of type bytes or string then it is used for - // the HTTP request body as-is, with no conversion. If the body field is of any - // other type then it is converted to a JSON string. If the body field - // doesn’t exist then the resulting HTTP request will be without a body. - - // Any other fields in the resulting expression will be ignored. The CEL - // expression may access the incoming CloudEvent message in its definition, as - // follows: - The `data` field of the incoming CloudEvent message can be - // accessed using the `message.data` value. - Each attribute of the incoming - // CloudEvent message can be accessed using the `message.` value, where is - // replaced with the name of the attribute. Headers added to the request by - // previous filters in the chain can be accessed in the CEL expression using + // MessageBindingTemplate: Optional. The CEL expression used to modify how the + // destination-bound HTTP request is constructed. If a binding expression is + // not specified here, the message is treated as a CloudEvent and is mapped to + // the HTTP request according to the CloudEvent HTTP Protocol Binding Binary + // Content Mode. In this representation, all fields except the `data` and + // `datacontenttype` field on the message are mapped to HTTP request headers + // with a prefix of `ce-`. To construct the HTTP request payload and the value + // of the content-type HTTP header, the payload format is defined as follows: + // 1) Use the output_payload_format_type on the Pipeline.Destination if it is + // set, else: 2) Use the input_payload_format_type on the Pipeline if it is + // set, else: 3) Treat the payload as opaque binary data. The `data` field of + // the message is converted to the payload format or left as-is for case 3) and + // then attached as the payload of the HTTP request. The `content-type` header + // on the HTTP request is set to the payload format type or left empty for case + // 3). However, if a mediation has updated the `datacontenttype` field on the + // message so that it is not the same as the payload format type but it is + // still a prefix of the payload format type, then the `content-type` header on + // the HTTP request is set to this `datacontenttype` value. For example, if the + // `datacontenttype` is "application/json" and the payload format type is + // "application/json; charset=utf-8", then the `content-type` header on the + // HTTP request is set to "application/json; charset=utf-8". If a non-empty + // binding expression is specified then this expression is used to modify the + // default CloudEvent HTTP Protocol Binding Binary Content representation. The + // result of the CEL expression must be a map of key/value pairs which is used + // as follows: - If a map named `headers` exists on the result of the + // expression, then its key/value pairs are directly mapped to the HTTP request + // headers. The headers values are constructed from the corresponding value + // type's canonical representation. If the `headers` field doesn't exist then + // the resulting HTTP request will be the headers of the CloudEvent HTTP + // Binding Binary Content Mode representation of the final message. Note: If + // the specified binding expression, has updated the `datacontenttype` field on + // the message so that it is not the same as the payload format type but it is + // still a prefix of the payload format type, then the `content-type` header in + // the `headers` map is set to this `datacontenttype` value. - If a field named + // `body` exists on the result of the expression then its value is directly + // mapped to the body of the request. If the value of the `body` field is of + // type bytes or string then it is used for the HTTP request body as-is, with + // no conversion. If the body field is of any other type then it is converted + // to a JSON string. If the body field does not exist then the resulting + // payload of the HTTP request will be data value of the CloudEvent HTTP + // Binding Binary Content Mode representation of the final message as described + // earlier. - Any other fields in the resulting expression will be ignored. The + // CEL expression may access the incoming CloudEvent message in its definition, + // as follows: - The `data` field of the incoming CloudEvent message can be + // accessed using the `message.data` value. Subfields of `message.data` may + // also be accessed if an input_payload_format has been specified on the + // Pipeline. - Each attribute of the incoming CloudEvent message can be + // accessed using the `message.` value, where is replaced with the name of the + // attribute. - Existing headers can be accessed in the CEL expression using // the `headers` variable. The `headers` variable defines a map of key/value - // pairs corresponding to the HTTP headers added by previous mediation steps - // and not the headers present on the original incoming request. For example, - // the following CEL expression can be used to construct a Headers-only HTTP - // request by adding an additional header to the headers added by previous - // mediations in the Pipeline: ``` {"headers": headers.merge({"new-header-key": - // "new-header-value"})} ``` Additionally, the following CEL extension - // functions are provided for use in this CEL expression: - toBase64Url: - // map.toBase64Url() -> string - Converts a CelValue to a base64url encoded - // string - toJsonString: map.toJsonString() -> string - Converts a CelValue to - // a JSON string - merge: map1.merge(map2) -> map3 - Merges the passed CEL map - // with the existing CEL map the function is applied to. - If the same key - // exists in both maps, if the key's value is type map both maps are merged - // else the value from the passed map is used. - toMap: list(map).toMap() -> - // map - Converts a CEL list of CEL maps to a single CEL map - + // pairs corresponding to the HTTP headers of the CloudEvent HTTP Binding + // Binary Content Mode representation of the final message as described + // earlier. For example, the following CEL expression can be used to construct + // an HTTP request by adding an additional header to the HTTP headers of the + // CloudEvent HTTP Binding Binary Content Mode representation of the final + // message and by overwriting the body of the request: ``` { "headers": + // headers.merge({"new-header-key": "new-header-value"}), "body": "new-body" } + // ``` Additionally, the following CEL extension functions are provided for use + // in this CEL expression: - toBase64Url: map.toBase64Url() -> string - + // Converts a CelValue to a base64url encoded string - toJsonString: + // map.toJsonString() -> string - Converts a CelValue to a JSON string - merge: + // map1.merge(map2) -> map3 - Merges the passed CEL map with the existing CEL + // map the function is applied to. - If the same key exists in both maps, if + // the key's value is type map both maps are merged else the value from the + // passed map is used. - denormalize: map.denormalize() -> map - Denormalizes a + // CEL map such that every value of type map or key in the map is expanded to + // return a single level map. - The resulting keys are "." separated indices of + // the map keys. - For example: { "a": 1, "b": { "c": 2, "d": 3 } "e": [4, 5] } + // .denormalize() -> { "a": 1, "b.c": 2, "b.d": 3, "e.0": 4, "e.1": 5 } - + // setField: map.setField(key, value) -> message - Sets the field of the + // message with the given key to the given value. - If the field is not present + // it will be added. - If the field is present it will be overwritten. - The + // key can be a dot separated path to set a field in a nested message. - Key + // must be of type string. - Value may be any valid type. - removeFields: + // map.removeFields([key1, key2, ...]) -> message - Removes the fields of the + // map with the given keys. - The keys can be a dot separated path to remove a + // field in a nested message. - If a key is not found it will be ignored. - + // Keys must be of type string. - toMap: [map1, map2, ...].toMap() -> map - + // Converts a CEL list of CEL maps to a single CEL map - // toDestinationPayloadFormat(): message.data.toDestinationPayloadFormat() -> // string or bytes - Converts the message data to the destination payload // format specified in Pipeline.Destination.output_payload_format - This @@ -1207,32 +1251,17 @@ type GoogleCloudEventarcV1PipelineDestinationHttpEndpoint struct { // Pipeline.Destination.output_payload_format. If no output_payload_format is // set it will use the existing datacontenttype on the CloudEvent if present, // else leave datacontenttype absent. - This function expects that the content - // of the message will adhere to the standard CloudEvent format. If it - // doesn’t then this function will fail. - The result is a CEL map that - // corresponds to the JSON representation of the CloudEvent. To convert that - // data to a JSON string it can be chained with the toJsonString function. If a - // binding is not specified here, by default the message is treated as a - // CloudEvent and is mapped to the HTTP request according to the CloudEvent - // HTTP Protocol Binding Binary Content Mode. The Pipeline converts the data - // field of the message to the format provided in - // Pipeline.Destination.output_payload_format and maps it to the body field of - // the result. It also sets the corresponding Content-Type header to the - // output_payload_format type. If the - // Pipeline.Destination.output_payload_format is not set, then the Pipeline - // will treat the data field of the message as opaque binary data and attach it - // to the request body as bytes. In this case the Content-type header will be - // set to the value of the datacontenttype attribute set on the incoming - // CloudEvent message if present and the `application/octet-stream` MIME type - // otherwise. The Pipeline expects that the content of the message will adhere - // to the standard CloudEvent format. If it doesn’t then the outgoing message - // request may fail with a persistent error. + // of the message will adhere to the standard CloudEvent format. If it doesn't + // then this function will fail. - The result is a CEL map that corresponds to + // the JSON representation of the CloudEvent. To convert that data to a JSON + // string it can be chained with the toJsonString function. The Pipeline + // expects that the message it receives adheres to the standard CloudEvent + // format. If it doesn't then the outgoing message request may fail with a + // persistent error. MessageBindingTemplate string `json:"messageBindingTemplate,omitempty"` // Uri: Required. The URI of the HTTP enpdoint. The value must be a RFC2396 URI - // string. Examples: `http://10.10.10.8:80/route`, - // `http://svc.us-central1.p.local:8080/`. Only HTTP and HTTPS protocols are - // supported. The host can be either a static IP addressable from the VPC - // specified by the network config, or an internal DNS hostname of the service - // resolvable via Cloud DNS. + // string. Examples: `https://svc.us-central1.p.local:8080/route`. Only the + // HTTPS protocol is supported. Uri string `json:"uri,omitempty"` // ForceSendFields is a list of field names (e.g. "MessageBindingTemplate") to // unconditionally include in API requests. By default, fields with empty or @@ -1304,8 +1333,44 @@ func (s GoogleCloudEventarcV1PipelineMediation) MarshalJSON() ([]byte, error) { // GoogleCloudEventarcV1PipelineMediationTransformation: Transformation defines // the way to transform an incoming message. type GoogleCloudEventarcV1PipelineMediationTransformation struct { - // TransformationTemplate: Optional. The template to apply to transform - // messages. + // TransformationTemplate: Optional. The CEL expression template to apply to + // transform messages. The following CEL extension functions are provided for + // use in this CEL expression: - merge: map1.merge(map2) -> map3 - Merges the + // passed CEL map with the existing CEL map the function is applied to. - If + // the same key exists in both maps, if the key's value is type map both maps + // are merged else the value from the passed map is used. - denormalize: + // map.denormalize() -> map - Denormalizes a CEL map such that every value of + // type map or key in the map is expanded to return a single level map. - The + // resulting keys are "." separated indices of the map keys. - For example: { + // "a": 1, "b": { "c": 2, "d": 3 } "e": [4, 5] } .denormalize() -> { "a": 1, + // "b.c": 2, "b.d": 3, "e.0": 4, "e.1": 5 } - setField: map.setField(key, + // value) -> message - Sets the field of the message with the given key to the + // given value. - If the field is not present it will be added. - If the field + // is present it will be overwritten. - The key can be a dot separated path to + // set a field in a nested message. - Key must be of type string. - Value may + // be any valid type. - removeFields: map.removeFields([key1, key2, ...]) -> + // message - Removes the fields of the map with the given keys. - The keys can + // be a dot separated path to remove a field in a nested message. - If a key is + // not found it will be ignored. - Keys must be of type string. - toMap: [map1, + // map2, ...].toMap() -> map - Converts a CEL list of CEL maps to a single CEL + // map - toDestinationPayloadFormat(): + // message.data.toDestinationPayloadFormat() -> string or bytes - Converts the + // message data to the destination payload format specified in + // Pipeline.Destination.output_payload_format - This function is meant to be + // applied to the message.data field. - If the destination payload format is + // not set, the function will return the message data unchanged. - + // toCloudEventJsonWithPayloadFormat: + // message.toCloudEventJsonWithPayloadFormat() -> map - Converts a message to + // the corresponding structure of JSON format for CloudEvents - This function + // applies toDestinationPayloadFormat() to the message data. It also sets the + // corresponding datacontenttype of the CloudEvent, as indicated by + // Pipeline.Destination.output_payload_format. If no output_payload_format is + // set it will use the existing datacontenttype on the CloudEvent if present, + // else leave datacontenttype absent. - This function expects that the content + // of the message will adhere to the standard CloudEvent format. If it doesn't + // then this function will fail. - The result is a CEL map that corresponds to + // the JSON representation of the CloudEvent. To convert that data to a JSON + // string it can be chained with the toJsonString function. TransformationTemplate string `json:"transformationTemplate,omitempty"` // ForceSendFields is a list of field names (e.g. "TransformationTemplate") to // unconditionally include in API requests. By default, fields with empty or @@ -1419,11 +1484,11 @@ type GoogleCloudEventarcV1PipelineRetryPolicy struct { // field is 5. MaxAttempts int64 `json:"maxAttempts,omitempty"` // MaxRetryDelay: Optional. The maximum amount of seconds to wait between retry - // attempts. The value must be between 0 and 600. The default value for this + // attempts. The value must be between 1 and 600. The default value for this // field is 60. MaxRetryDelay string `json:"maxRetryDelay,omitempty"` // MinRetryDelay: Optional. The minimum amount of seconds to wait between retry - // attempts. The value must be between 0 and 600. The default value for this + // attempts. The value must be between 1 and 600. The default value for this // field is 5. MinRetryDelay string `json:"minRetryDelay,omitempty"` // ForceSendFields is a list of field names (e.g. "MaxAttempts") to diff --git a/fcm/v1/fcm-api.json b/fcm/v1/fcm-api.json index 2690f298943..1af2183fe18 100644 --- a/fcm/v1/fcm-api.json +++ b/fcm/v1/fcm-api.json @@ -146,7 +146,7 @@ } } }, - "revision": "20240524", + "revision": "20241101", "rootUrl": "https://fcm.googleapis.com/", "schemas": { "AndroidConfig": { @@ -394,6 +394,10 @@ "description": "HTTP request headers defined in Apple Push Notification Service. Refer to [APNs request headers](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/sending_notification_requests_to_apns) for supported headers such as `apns-expiration` and `apns-priority`. The backend sets a default value for `apns-expiration` of 30 days and a default value for `apns-priority` of 10 if not explicitly set.", "type": "object" }, + "liveActivityToken": { + "description": "Optional. [Apple Live Activity](https://developer.apple.com/design/human-interface-guidelines/live-activities) token to send updates to. This token can either be a push token or [push-to-start](https://developer.apple.com/documentation/activitykit/activity/pushtostarttoken) token from Apple.", + "type": "string" + }, "payload": { "additionalProperties": { "description": "Properties of the object.", diff --git a/fcm/v1/fcm-gen.go b/fcm/v1/fcm-gen.go index 152cb5b523f..a8a8972e965 100644 --- a/fcm/v1/fcm-gen.go +++ b/fcm/v1/fcm-gen.go @@ -482,6 +482,13 @@ type ApnsConfig struct { // backend sets a default value for `apns-expiration` of 30 days and a default // value for `apns-priority` of 10 if not explicitly set. Headers map[string]string `json:"headers,omitempty"` + // LiveActivityToken: Optional. Apple Live Activity + // (https://developer.apple.com/design/human-interface-guidelines/live-activities) + // token to send updates to. This token can either be a push token or + // push-to-start + // (https://developer.apple.com/documentation/activitykit/activity/pushtostarttoken) + // token from Apple. + LiveActivityToken string `json:"liveActivityToken,omitempty"` // Payload: APNs payload as a JSON object, including both `aps` dictionary and // custom payload. See Payload Key Reference // (https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/generating_a_remote_notification). diff --git a/firebaseappdistribution/v1alpha/firebaseappdistribution-api.json b/firebaseappdistribution/v1alpha/firebaseappdistribution-api.json index d4b361a0b48..ea0adf29e9f 100644 --- a/firebaseappdistribution/v1alpha/firebaseappdistribution-api.json +++ b/firebaseappdistribution/v1alpha/firebaseappdistribution-api.json @@ -625,7 +625,7 @@ } } }, - "revision": "20241028", + "revision": "20241101", "rootUrl": "https://firebaseappdistribution.googleapis.com/", "schemas": { "AndroidxCrawlerOutputPoint": { @@ -781,6 +781,14 @@ "goal": { "description": "A goal to be accomplished by the AI", "type": "string" + }, + "hint": { + "description": "Optional. Hint text containing suggestions to help the agent accomplish the goal", + "type": "string" + }, + "successCriteria": { + "description": "Optional. A description of criteria the agent should use to determine if the goal has been successfully completed", + "type": "string" } }, "type": "object" @@ -1489,7 +1497,7 @@ "type": "array" }, "displayName": { - "description": "Optional. Display name of the release test. Required if the release test is created with multiple goals", + "description": "Optional. Display name of the release test. Required if the release test is created with multiple goals.", "type": "string" }, "loginCredential": { @@ -1622,6 +1630,10 @@ "description": "Configuration for automated tests", "id": "GoogleFirebaseAppdistroV1alphaTestConfig", "properties": { + "displayName": { + "description": "Optional. Display name of the AI driven test. Required if the release test is created with multiple goals.", + "type": "string" + }, "name": { "description": "Identifier. The name of the test configuration resource. Format: `projects/{project_number}/apps/{app_id}/testConfig`", "type": "string" diff --git a/firebaseappdistribution/v1alpha/firebaseappdistribution-gen.go b/firebaseappdistribution/v1alpha/firebaseappdistribution-gen.go index 1ef0e7f7930..8b72d9ace44 100644 --- a/firebaseappdistribution/v1alpha/firebaseappdistribution-gen.go +++ b/firebaseappdistribution/v1alpha/firebaseappdistribution-gen.go @@ -467,6 +467,12 @@ type GoogleFirebaseAppdistroV1alphaAiStep struct { Assertion string `json:"assertion,omitempty"` // Goal: A goal to be accomplished by the AI Goal string `json:"goal,omitempty"` + // Hint: Optional. Hint text containing suggestions to help the agent + // accomplish the goal + Hint string `json:"hint,omitempty"` + // SuccessCriteria: Optional. A description of criteria the agent should use to + // determine if the goal has been successfully completed + SuccessCriteria string `json:"successCriteria,omitempty"` // ForceSendFields is a list of field names (e.g. "Assertion") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -1249,7 +1255,7 @@ type GoogleFirebaseAppdistroV1alphaReleaseTest struct { // DeviceExecutions: Required. The results of the test on each device. DeviceExecutions []*GoogleFirebaseAppdistroV1alphaDeviceExecution `json:"deviceExecutions,omitempty"` // DisplayName: Optional. Display name of the release test. Required if the - // release test is created with multiple goals + // release test is created with multiple goals. DisplayName string `json:"displayName,omitempty"` // LoginCredential: Optional. Input only. Login credentials for the test. Input // only. @@ -1402,6 +1408,9 @@ func (s GoogleFirebaseAppdistroV1alphaTerminalAction) MarshalJSON() ([]byte, err // GoogleFirebaseAppdistroV1alphaTestConfig: Configuration for automated tests type GoogleFirebaseAppdistroV1alphaTestConfig struct { + // DisplayName: Optional. Display name of the AI driven test. Required if the + // release test is created with multiple goals. + DisplayName string `json:"displayName,omitempty"` // Name: Identifier. The name of the test configuration resource. Format: // `projects/{project_number}/apps/{app_id}/testConfig` Name string `json:"name,omitempty"` @@ -1412,15 +1421,15 @@ type GoogleFirebaseAppdistroV1alphaTestConfig struct { // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Name") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See + // ForceSendFields is a list of field names (e.g. "DisplayName") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Name") to include in API requests - // 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. "DisplayName") 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:"-"` } diff --git a/firebaseml/v2beta/firebaseml-api.json b/firebaseml/v2beta/firebaseml-api.json index 8792b27dd29..53782e04b50 100644 --- a/firebaseml/v2beta/firebaseml-api.json +++ b/firebaseml/v2beta/firebaseml-api.json @@ -206,7 +206,7 @@ } } }, - "revision": "20241024", + "revision": "20241101", "rootUrl": "https://firebaseml.googleapis.com/", "schemas": { "Date": { @@ -1576,6 +1576,7 @@ "type": "integer" }, "vectorDistanceThreshold": { + "deprecated": true, "description": "Optional. Only return results with vector distance smaller than the threshold.", "format": "double", "type": "number" diff --git a/gkehub/v1/gkehub-api.json b/gkehub/v1/gkehub-api.json index 489fa5e00e5..3114b127874 100644 --- a/gkehub/v1/gkehub-api.json +++ b/gkehub/v1/gkehub-api.json @@ -2111,7 +2111,7 @@ } } }, - "revision": "20241017", + "revision": "20241025", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AppDevExperienceFeatureSpec": { @@ -2664,6 +2664,10 @@ "sourceFormat": { "description": "Specifies whether the Config Sync Repo is in \"hierarchical\" or \"unstructured\" mode.", "type": "string" + }, + "stopSyncing": { + "description": "Set to true to stop syncing configs for a single cluster. Default to false.", + "type": "boolean" } }, "type": "object" @@ -6331,6 +6335,20 @@ "description": "**Service Mesh**: Spec for a single Membership for the servicemesh feature", "id": "ServiceMeshMembershipSpec", "properties": { + "configApi": { + "description": "Optional. Specifies the API that will be used for configuring the mesh workloads.", + "enum": [ + "CONFIG_API_UNSPECIFIED", + "CONFIG_API_ISTIO", + "CONFIG_API_GATEWAY" + ], + "enumDescriptions": [ + "Unspecified", + "Use the Istio API for configuration.", + "Use the K8s Gateway API for configuration." + ], + "type": "string" + }, "controlPlane": { "deprecated": true, "description": "Deprecated: use `management` instead Enables automatic control plane management.", diff --git a/gkehub/v1/gkehub-gen.go b/gkehub/v1/gkehub-gen.go index 0b95128d19b..a5c976eabce 100644 --- a/gkehub/v1/gkehub-gen.go +++ b/gkehub/v1/gkehub-gen.go @@ -1145,6 +1145,9 @@ type ConfigManagementConfigSync struct { // SourceFormat: Specifies whether the Config Sync Repo is in "hierarchical" or // "unstructured" mode. SourceFormat string `json:"sourceFormat,omitempty"` + // StopSyncing: Set to true to stop syncing configs for a single cluster. + // Default to false. + StopSyncing bool `json:"stopSyncing,omitempty"` // ForceSendFields is a list of field names (e.g. "AllowVerticalScale") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -5546,6 +5549,14 @@ func (s ServiceMeshDataPlaneManagement) MarshalJSON() ([]byte, error) { // ServiceMeshMembershipSpec: **Service Mesh**: Spec for a single Membership // for the servicemesh feature type ServiceMeshMembershipSpec struct { + // ConfigApi: Optional. Specifies the API that will be used for configuring the + // mesh workloads. + // + // Possible values: + // "CONFIG_API_UNSPECIFIED" - Unspecified + // "CONFIG_API_ISTIO" - Use the Istio API for configuration. + // "CONFIG_API_GATEWAY" - Use the K8s Gateway API for configuration. + ConfigApi string `json:"configApi,omitempty"` // ControlPlane: Deprecated: use `management` instead Enables automatic control // plane management. // @@ -5567,13 +5578,13 @@ type ServiceMeshMembershipSpec struct { // "MANAGEMENT_MANUAL" - User will manually configure their service mesh // components. Management string `json:"management,omitempty"` - // ForceSendFields is a list of field names (e.g. "ControlPlane") to + // ForceSendFields is a list of field names (e.g. "ConfigApi") 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. "ControlPlane") to include in API + // NullFields is a list of field names (e.g. "ConfigApi") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. diff --git a/gkehub/v1alpha/gkehub-api.json b/gkehub/v1alpha/gkehub-api.json index b0977966480..39aac57ab2d 100644 --- a/gkehub/v1alpha/gkehub-api.json +++ b/gkehub/v1alpha/gkehub-api.json @@ -2255,7 +2255,7 @@ } } }, - "revision": "20241017", + "revision": "20241025", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AnthosObservabilityFeatureSpec": { @@ -3009,6 +3009,10 @@ "sourceFormat": { "description": "Specifies whether the Config Sync Repo is in \"hierarchical\" or \"unstructured\" mode.", "type": "string" + }, + "stopSyncing": { + "description": "Set to true to stop syncing configs for a single cluster. Default to false.", + "type": "boolean" } }, "type": "object" diff --git a/gkehub/v1alpha/gkehub-gen.go b/gkehub/v1alpha/gkehub-gen.go index 86dbc74fd25..1b26fb5710e 100644 --- a/gkehub/v1alpha/gkehub-gen.go +++ b/gkehub/v1alpha/gkehub-gen.go @@ -1412,6 +1412,9 @@ type ConfigManagementConfigSync struct { // SourceFormat: Specifies whether the Config Sync Repo is in "hierarchical" or // "unstructured" mode. SourceFormat string `json:"sourceFormat,omitempty"` + // StopSyncing: Set to true to stop syncing configs for a single cluster. + // Default to false. + StopSyncing bool `json:"stopSyncing,omitempty"` // ForceSendFields is a list of field names (e.g. "AllowVerticalScale") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See diff --git a/gkehub/v1beta/gkehub-api.json b/gkehub/v1beta/gkehub-api.json index e1503a88df9..54ac97bf10b 100644 --- a/gkehub/v1beta/gkehub-api.json +++ b/gkehub/v1beta/gkehub-api.json @@ -2111,7 +2111,7 @@ } } }, - "revision": "20241017", + "revision": "20241025", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AnthosObservabilityFeatureSpec": { @@ -2749,6 +2749,10 @@ "sourceFormat": { "description": "Specifies whether the Config Sync Repo is in \"hierarchical\" or \"unstructured\" mode.", "type": "string" + }, + "stopSyncing": { + "description": "Set to true to stop syncing configs for a single cluster. Default to false.", + "type": "boolean" } }, "type": "object" @@ -6494,6 +6498,20 @@ "description": "**Service Mesh**: Spec for a single Membership for the servicemesh feature", "id": "ServiceMeshMembershipSpec", "properties": { + "configApi": { + "description": "Optional. Specifies the API that will be used for configuring the mesh workloads.", + "enum": [ + "CONFIG_API_UNSPECIFIED", + "CONFIG_API_ISTIO", + "CONFIG_API_GATEWAY" + ], + "enumDescriptions": [ + "Unspecified", + "Use the Istio API for configuration.", + "Use the K8s Gateway API for configuration." + ], + "type": "string" + }, "controlPlane": { "deprecated": true, "description": "Deprecated: use `management` instead Enables automatic control plane management.", diff --git a/gkehub/v1beta/gkehub-gen.go b/gkehub/v1beta/gkehub-gen.go index 7a1a367b8ba..1d4f90d83b2 100644 --- a/gkehub/v1beta/gkehub-gen.go +++ b/gkehub/v1beta/gkehub-gen.go @@ -1273,6 +1273,9 @@ type ConfigManagementConfigSync struct { // SourceFormat: Specifies whether the Config Sync Repo is in "hierarchical" or // "unstructured" mode. SourceFormat string `json:"sourceFormat,omitempty"` + // StopSyncing: Set to true to stop syncing configs for a single cluster. + // Default to false. + StopSyncing bool `json:"stopSyncing,omitempty"` // ForceSendFields is a list of field names (e.g. "AllowVerticalScale") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -5764,6 +5767,14 @@ func (s ServiceMeshDataPlaneManagement) MarshalJSON() ([]byte, error) { // ServiceMeshMembershipSpec: **Service Mesh**: Spec for a single Membership // for the servicemesh feature type ServiceMeshMembershipSpec struct { + // ConfigApi: Optional. Specifies the API that will be used for configuring the + // mesh workloads. + // + // Possible values: + // "CONFIG_API_UNSPECIFIED" - Unspecified + // "CONFIG_API_ISTIO" - Use the Istio API for configuration. + // "CONFIG_API_GATEWAY" - Use the K8s Gateway API for configuration. + ConfigApi string `json:"configApi,omitempty"` // ControlPlane: Deprecated: use `management` instead Enables automatic control // plane management. // @@ -5785,13 +5796,13 @@ type ServiceMeshMembershipSpec struct { // "MANAGEMENT_MANUAL" - User will manually configure their service mesh // components. Management string `json:"management,omitempty"` - // ForceSendFields is a list of field names (e.g. "ControlPlane") to + // ForceSendFields is a list of field names (e.g. "ConfigApi") 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. "ControlPlane") to include in API + // NullFields is a list of field names (e.g. "ConfigApi") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. diff --git a/gkehub/v2/gkehub-api.json b/gkehub/v2/gkehub-api.json index bec4144018d..8bf03adfe12 100644 --- a/gkehub/v2/gkehub-api.json +++ b/gkehub/v2/gkehub-api.json @@ -471,7 +471,7 @@ } } }, - "revision": "20241017", + "revision": "20241025", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AppDevExperienceState": { @@ -729,6 +729,10 @@ "sourceFormat": { "description": "Specifies whether the Config Sync Repo is in \"hierarchical\" or \"unstructured\" mode.", "type": "string" + }, + "stopSyncing": { + "description": "Set to true to stop syncing configs for a single cluster. Default to false.", + "type": "boolean" } }, "type": "object" diff --git a/gkehub/v2/gkehub-gen.go b/gkehub/v2/gkehub-gen.go index d64fe3e7371..b2b8cf2a2d9 100644 --- a/gkehub/v2/gkehub-gen.go +++ b/gkehub/v2/gkehub-gen.go @@ -556,6 +556,9 @@ type ConfigManagementConfigSync struct { // SourceFormat: Specifies whether the Config Sync Repo is in "hierarchical" or // "unstructured" mode. SourceFormat string `json:"sourceFormat,omitempty"` + // StopSyncing: Set to true to stop syncing configs for a single cluster. + // Default to false. + StopSyncing bool `json:"stopSyncing,omitempty"` // ForceSendFields is a list of field names (e.g. "AllowVerticalScale") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See diff --git a/gkehub/v2alpha/gkehub-api.json b/gkehub/v2alpha/gkehub-api.json index 07ea97dae42..1d5c3b4d53e 100644 --- a/gkehub/v2alpha/gkehub-api.json +++ b/gkehub/v2alpha/gkehub-api.json @@ -471,7 +471,7 @@ } } }, - "revision": "20241017", + "revision": "20241025", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AppDevExperienceState": { @@ -729,6 +729,10 @@ "sourceFormat": { "description": "Specifies whether the Config Sync Repo is in \"hierarchical\" or \"unstructured\" mode.", "type": "string" + }, + "stopSyncing": { + "description": "Set to true to stop syncing configs for a single cluster. Default to false.", + "type": "boolean" } }, "type": "object" diff --git a/gkehub/v2alpha/gkehub-gen.go b/gkehub/v2alpha/gkehub-gen.go index 269f18b915f..a3d763ed48f 100644 --- a/gkehub/v2alpha/gkehub-gen.go +++ b/gkehub/v2alpha/gkehub-gen.go @@ -556,6 +556,9 @@ type ConfigManagementConfigSync struct { // SourceFormat: Specifies whether the Config Sync Repo is in "hierarchical" or // "unstructured" mode. SourceFormat string `json:"sourceFormat,omitempty"` + // StopSyncing: Set to true to stop syncing configs for a single cluster. + // Default to false. + StopSyncing bool `json:"stopSyncing,omitempty"` // ForceSendFields is a list of field names (e.g. "AllowVerticalScale") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See diff --git a/gkehub/v2beta/gkehub-api.json b/gkehub/v2beta/gkehub-api.json index 11e48fa4159..7a7a8c7578a 100644 --- a/gkehub/v2beta/gkehub-api.json +++ b/gkehub/v2beta/gkehub-api.json @@ -471,7 +471,7 @@ } } }, - "revision": "20241017", + "revision": "20241025", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AppDevExperienceState": { @@ -729,6 +729,10 @@ "sourceFormat": { "description": "Specifies whether the Config Sync Repo is in \"hierarchical\" or \"unstructured\" mode.", "type": "string" + }, + "stopSyncing": { + "description": "Set to true to stop syncing configs for a single cluster. Default to false.", + "type": "boolean" } }, "type": "object" diff --git a/gkehub/v2beta/gkehub-gen.go b/gkehub/v2beta/gkehub-gen.go index aceea46b66d..7cd3af97798 100644 --- a/gkehub/v2beta/gkehub-gen.go +++ b/gkehub/v2beta/gkehub-gen.go @@ -556,6 +556,9 @@ type ConfigManagementConfigSync struct { // SourceFormat: Specifies whether the Config Sync Repo is in "hierarchical" or // "unstructured" mode. SourceFormat string `json:"sourceFormat,omitempty"` + // StopSyncing: Set to true to stop syncing configs for a single cluster. + // Default to false. + StopSyncing bool `json:"stopSyncing,omitempty"` // ForceSendFields is a list of field names (e.g. "AllowVerticalScale") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See diff --git a/gkeonprem/v1/gkeonprem-api.json b/gkeonprem/v1/gkeonprem-api.json index 767d24348b7..0626a85df31 100644 --- a/gkeonprem/v1/gkeonprem-api.json +++ b/gkeonprem/v1/gkeonprem-api.json @@ -1719,6 +1719,49 @@ }, "vmwareAdminClusters": { "methods": { + "create": { + "description": "Creates a new VMware admin cluster in a given project and location. The API needs to be combined with creating a bootstrap cluster to work.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/vmwareAdminClusters", + "httpMethod": "POST", + "id": "gkeonprem.projects.locations.vmwareAdminClusters.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "allowPreflightFailure": { + "description": "Optional. If set to true, CLM will force CCFE to persist the cluster resource in RMS when the creation fails during standalone preflight checks. In that case the subsequent create call will fail with \"cluster already exists\" error and hence a update cluster is required to fix the cluster.", + "location": "query", + "type": "boolean" + }, + "parent": { + "description": "Required. The parent of the project and location where the cluster is created in. Format: \"projects/{project}/locations/{location}\"", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "validateOnly": { + "description": "Validate the request without actually doing any updates.", + "location": "query", + "type": "boolean" + }, + "vmwareAdminClusterId": { + "description": "Required. User provided identifier that is used as part of the resource name; must conform to RFC-1034 and additionally restrict to lower-cased letters. This comes out roughly to: /^a-z+[a-z0-9]$/", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/vmwareAdminClusters", + "request": { + "$ref": "VmwareAdminCluster" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "enroll": { "description": "Enrolls an existing VMware admin cluster to the Anthos On-Prem API within a given project and location. Through enrollment, an existing admin cluster will become Anthos On-Prem API managed. The corresponding GCP resources will be created and all future modifications to the cluster will be expected to be performed through the API.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/vmwareAdminClusters:enroll", @@ -3051,7 +3094,7 @@ } } }, - "revision": "20240814", + "revision": "20241023", "rootUrl": "https://gkeonprem.googleapis.com/", "schemas": { "Authorization": { diff --git a/gkeonprem/v1/gkeonprem-gen.go b/gkeonprem/v1/gkeonprem-gen.go index 677749cceb4..c0d5fb7b3d0 100644 --- a/gkeonprem/v1/gkeonprem-gen.go +++ b/gkeonprem/v1/gkeonprem-gen.go @@ -10807,6 +10807,135 @@ func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func( } } +type ProjectsLocationsVmwareAdminClustersCreateCall struct { + s *Service + parent string + vmwareadmincluster *VmwareAdminCluster + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new VMware admin cluster in a given project and location. +// The API needs to be combined with creating a bootstrap cluster to work. +// +// - parent: The parent of the project and location where the cluster is +// created in. Format: "projects/{project}/locations/{location}". +func (r *ProjectsLocationsVmwareAdminClustersService) Create(parent string, vmwareadmincluster *VmwareAdminCluster) *ProjectsLocationsVmwareAdminClustersCreateCall { + c := &ProjectsLocationsVmwareAdminClustersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.vmwareadmincluster = vmwareadmincluster + return c +} + +// AllowPreflightFailure sets the optional parameter "allowPreflightFailure": +// If set to true, CLM will force CCFE to persist the cluster resource in RMS +// when the creation fails during standalone preflight checks. In that case the +// subsequent create call will fail with "cluster already exists" error and +// hence a update cluster is required to fix the cluster. +func (c *ProjectsLocationsVmwareAdminClustersCreateCall) AllowPreflightFailure(allowPreflightFailure bool) *ProjectsLocationsVmwareAdminClustersCreateCall { + c.urlParams_.Set("allowPreflightFailure", fmt.Sprint(allowPreflightFailure)) + return c +} + +// ValidateOnly sets the optional parameter "validateOnly": Validate the +// request without actually doing any updates. +func (c *ProjectsLocationsVmwareAdminClustersCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsVmwareAdminClustersCreateCall { + c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) + return c +} + +// VmwareAdminClusterId sets the optional parameter "vmwareAdminClusterId": +// Required. User provided identifier that is used as part of the resource +// name; must conform to RFC-1034 and additionally restrict to lower-cased +// letters. This comes out roughly to: /^a-z+[a-z0-9]$/ +func (c *ProjectsLocationsVmwareAdminClustersCreateCall) VmwareAdminClusterId(vmwareAdminClusterId string) *ProjectsLocationsVmwareAdminClustersCreateCall { + c.urlParams_.Set("vmwareAdminClusterId", vmwareAdminClusterId) + 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 *ProjectsLocationsVmwareAdminClustersCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsVmwareAdminClustersCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsVmwareAdminClustersCreateCall) Context(ctx context.Context) *ProjectsLocationsVmwareAdminClustersCreateCall { + 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 *ProjectsLocationsVmwareAdminClustersCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsVmwareAdminClustersCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.vmwareadmincluster) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/vmwareAdminClusters") + 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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "gkeonprem.projects.locations.vmwareAdminClusters.create" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsVmwareAdminClustersCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, 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 := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + type ProjectsLocationsVmwareAdminClustersEnrollCall struct { s *Service parent string diff --git a/go.mod b/go.mod index dbb9d6f98b1..a80495e3503 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( cloud.google.com/go v0.116.0 - cloud.google.com/go/auth v0.10.0 + cloud.google.com/go/auth v0.10.1 cloud.google.com/go/auth/oauth2adapt v0.2.5 cloud.google.com/go/compute/metadata v0.5.2 github.com/google/go-cmp v0.6.0 diff --git a/go.sum b/go.sum index 78e15516833..9a34404c071 100644 --- a/go.sum +++ b/go.sum @@ -1,8 +1,8 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.116.0 h1:B3fRrSDkLRt5qSHWe40ERJvhvnQwdZiHu0bJOpldweE= cloud.google.com/go v0.116.0/go.mod h1:cEPSRWPzZEswwdr9BxE6ChEn01dWlTaF05LiC2Xs70U= -cloud.google.com/go/auth v0.10.0 h1:tWlkvFAh+wwTOzXIjrwM64karR1iTBZ/GRr0S/DULYo= -cloud.google.com/go/auth v0.10.0/go.mod h1:xxA5AqpDrvS+Gkmo9RqrGGRh6WSNKKOXhY3zNOr38tI= +cloud.google.com/go/auth v0.10.1 h1:TnK46qldSfHWt2a0b/hciaiVJsmDXWy9FqyUan0uYiI= +cloud.google.com/go/auth v0.10.1/go.mod h1:xxA5AqpDrvS+Gkmo9RqrGGRh6WSNKKOXhY3zNOr38tI= cloud.google.com/go/auth/oauth2adapt v0.2.5 h1:2p29+dePqsCHPP1bqDJcKj4qxRyYCcbzKpFyKGt3MTk= cloud.google.com/go/auth/oauth2adapt v0.2.5/go.mod h1:AlmsELtlEBnaNTL7jCj8VQFLy6mbZv0s4Q7NGBeQ5E8= cloud.google.com/go/compute/metadata v0.5.2 h1:UxK4uu/Tn+I3p2dYWTfiX4wva7aYlKixAHn3fyqngqo= diff --git a/internal/version.go b/internal/version.go index f8f7ff8ecd2..da895458e63 100644 --- a/internal/version.go +++ b/internal/version.go @@ -5,4 +5,4 @@ package internal // Version is the current tagged release of the library. -const Version = "0.204.0" +const Version = "0.205.0" diff --git a/language/v1/language-api.json b/language/v1/language-api.json index 24f02722d77..16b76bb26df 100644 --- a/language/v1/language-api.json +++ b/language/v1/language-api.json @@ -246,7 +246,7 @@ } } }, - "revision": "20240929", + "revision": "20241103", "rootUrl": "https://language.googleapis.com/", "schemas": { "AnalyzeEntitiesRequest": { @@ -1790,7 +1790,7 @@ "type": "object" }, "InfraUsage": { - "description": "Infra Usage of billing metrics. Next ID: 6", + "description": "Infra Usage of billing metrics.", "id": "InfraUsage", "properties": { "cpuMetrics": { @@ -2889,7 +2889,6 @@ "type": "object" }, "XPSColumnSpecForecastingMetadata": { - "description": "=========================================================================== # The fields below are used exclusively for Forecasting.", "id": "XPSColumnSpecForecastingMetadata", "properties": { "columnType": { @@ -3382,11 +3381,11 @@ "type": "boolean" }, "outputGcrUri": { - "description": "The Google Contained Registry (GCR) path the exported files to be pushed to. This location is set if the exported format is DOCKDER.", + "description": "The Google Contained Registry path the exported files to be pushed to. This location is set if the exported format is DOCKDER.", "type": "string" }, "outputGcsUri": { - "description": "The Google Cloud Storage (GCS) directory where XPS will output the exported models and related files. Format: gs://bucket/directory", + "description": "The Google Cloud Storage directory where XPS will output the exported models and related files. Format: gs://bucket/directory", "type": "string" }, "tfJsFormat": { @@ -3402,7 +3401,7 @@ "type": "object" }, "XPSFileSpec": { - "description": "Spec of input and output files, on external file systems (CNS, GCS, etc).", + "description": "Spec of input and output files, on external file systems (for example, Colossus Namespace System or Google Cloud Storage).", "id": "XPSFileSpec", "properties": { "directoryPath": { @@ -3430,7 +3429,7 @@ "enumDescriptions": [ "", "", - "Internal format for parallel text data used by Google Translate. go/rkvtools", + "Internal format for parallel text data used by Google Translate.", "", "Only the lexicographically first file described by the file_spec contains the header line.", "" @@ -3559,7 +3558,7 @@ "id": "XPSImageExportModelSpec", "properties": { "exportModelOutputConfig": { - "description": "Contains the model format and internal location of the model files to be exported/downloaded. Use the GCS bucket name which is provided via TrainRequest.gcs_bucket_name to store the model files.", + "description": "Contains the model format and internal location of the model files to be exported/downloaded. Use the Google Cloud Storage bucket name which is provided via TrainRequest.gcs_bucket_name to store the model files.", "items": { "$ref": "XPSExportModelOutputConfig" }, @@ -3584,7 +3583,7 @@ "type": "array" }, "labelGcsUri": { - "description": "GCS uri of decoded labels file for model export 'dict.txt'.", + "description": "Google Cloud Storage URI of decoded labels file for model export 'dict.txt'.", "type": "string" }, "servingArtifact": { @@ -3592,11 +3591,11 @@ "description": "The default model binary file used for serving (e.g. online predict, batch predict) via public Cloud AI Platform API." }, "tfJsBinaryGcsPrefix": { - "description": "GCS uri prefix of Tensorflow JavaScript binary files 'groupX-shardXofX.bin' Deprecated.", + "description": "Google Cloud Storage URI prefix of Tensorflow JavaScript binary files 'groupX-shardXofX.bin'. Deprecated.", "type": "string" }, "tfLiteMetadataGcsUri": { - "description": "GCS uri of Tensorflow Lite metadata 'tflite_metadata.json'.", + "description": "Google Cloud Storage URI of Tensorflow Lite metadata 'tflite_metadata.json'.", "type": "string" } }, @@ -3688,7 +3687,7 @@ "", "The default partition.", "It has significantly lower replication than partition-0 and is located in the US only. It also has a larger model size limit and higher default RAM quota than partition-0. Customers with batch traffic, US-based traffic, or very large models should use this partition. Capacity in this partition is significantly cheaper than partition-0.", - "To be used by customers with Jellyfish-accelerated ops. See go/servomatic-jellyfish for details.", + "To be used by customers with Jellyfish-accelerated ops.", "The partition used by regionalized servomatic cloud regions.", "The partition used for loading models from custom storage." ], @@ -3948,14 +3947,13 @@ "type": "string" }, "gcsUri": { - "description": "The Google Cloud Storage (GCS) uri that stores the model binary files.", + "description": "The Google Cloud Storage URI that stores the model binary files.", "type": "string" } }, "type": "object" }, "XPSPreprocessResponse": { - "description": "Next ID: 8", "id": "XPSPreprocessResponse", "properties": { "outputExampleSet": { @@ -4129,7 +4127,7 @@ }, "XPSResponseExplanationSpec": { "deprecated": true, - "description": "Specification of Model explanation. Feature-based XAI in AutoML Vision ICN is deprecated, see b/288407203 for context.", + "description": "Specification of Model explanation. Feature-based XAI in AutoML Vision ICN is deprecated.", "id": "XPSResponseExplanationSpec", "properties": { "explanationType": { @@ -4585,7 +4583,7 @@ "type": "object" }, "XPSTablesDatasetMetadata": { - "description": "Metadata for a dataset used for AutoML Tables. Next ID: 6", + "description": "Metadata for a dataset used for AutoML Tables.", "id": "XPSTablesDatasetMetadata", "properties": { "mlUseColumnId": { @@ -4829,7 +4827,7 @@ "type": "object" }, "XPSTextComponentModel": { - "description": "Component model. Next ID: 10", + "description": "Component model.", "id": "XPSTextComponentModel", "properties": { "batchPredictionModelGcsUri": { @@ -4854,7 +4852,7 @@ "", "The default partition.", "It has significantly lower replication than partition-0 and is located in the US only. It also has a larger model size limit and higher default RAM quota than partition-0. Customers with batch traffic, US-based traffic, or very large models should use this partition. Capacity in this partition is significantly cheaper than partition-0.", - "To be used by customers with Jellyfish-accelerated ops. See go/servomatic-jellyfish for details.", + "To be used by customers with Jellyfish-accelerated ops.", "The partition used by regionalized servomatic cloud regions.", "The partition used for loading models from custom storage." ], @@ -4899,7 +4897,7 @@ "", "Model type for entity extraction.", "Model type for relationship extraction.", - "A composite model represents a set of component models that have to be used together for prediction. A composite model appears to be a single model to the model user. It may contain only one component model. Please refer to go/cnl-composite-models for more information.", + "A composite model represents a set of component models that have to be used together for prediction. A composite model appears to be a single model to the model user. It may contain only one component model.", "Model type used to train default, MA, and ATC models in a single batch worker pipeline.", "BERT pipeline needs a specific model type, since it uses a different TFX configuration compared with DEFAULT (despite sharing most of the code).", "Model type for EncPaLM." @@ -5134,7 +5132,6 @@ "type": "object" }, "XPSTrainResponse": { - "description": "Next ID: 18", "id": "XPSTrainResponse", "properties": { "deployedModelSizeBytes": { @@ -5411,7 +5408,7 @@ "id": "XPSVideoExportModelSpec", "properties": { "exportModelOutputConfig": { - "description": "Contains the model format and internal location of the model files to be exported/downloaded. Use the GCS bucket name which is provided via TrainRequest.gcs_bucket_name to store the model files.", + "description": "Contains the model format and internal location of the model files to be exported/downloaded. Use the Google Cloud Storage bucket name which is provided via TrainRequest.gcs_bucket_name to store the model files.", "items": { "$ref": "XPSExportModelOutputConfig" }, diff --git a/language/v1/language-gen.go b/language/v1/language-gen.go index 8305ee64bb4..8a9a89cfe45 100644 --- a/language/v1/language-gen.go +++ b/language/v1/language-gen.go @@ -1557,7 +1557,7 @@ func (s GpuMetric) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// InfraUsage: Infra Usage of billing metrics. Next ID: 6 +// InfraUsage: Infra Usage of billing metrics. type InfraUsage struct { // CpuMetrics: Aggregated core metrics since requested start_time. CpuMetrics []*CpuMetric `json:"cpuMetrics,omitempty"` @@ -2590,9 +2590,6 @@ func (s XPSColumnSpecCorrelatedColumn) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// XPSColumnSpecForecastingMetadata: -// =========================================================================== -// # The fields below are used exclusively for Forecasting. type XPSColumnSpecForecastingMetadata struct { // ColumnType: The type of the column for FORECASTING model training purposes. // @@ -3145,11 +3142,11 @@ type XPSExportModelOutputConfig struct { // ExportFirebaseAuxiliaryInfo: For any model and format: If true, will // additionally export FirebaseExportedModelInfo in a firebase.txt file. ExportFirebaseAuxiliaryInfo bool `json:"exportFirebaseAuxiliaryInfo,omitempty"` - // OutputGcrUri: The Google Contained Registry (GCR) path the exported files to - // be pushed to. This location is set if the exported format is DOCKDER. + // OutputGcrUri: The Google Contained Registry path the exported files to be + // pushed to. This location is set if the exported format is DOCKDER. OutputGcrUri string `json:"outputGcrUri,omitempty"` - // OutputGcsUri: The Google Cloud Storage (GCS) directory where XPS will output - // the exported models and related files. Format: gs://bucket/directory + // OutputGcsUri: The Google Cloud Storage directory where XPS will output the + // exported models and related files. Format: gs://bucket/directory OutputGcsUri string `json:"outputGcsUri,omitempty"` TfJsFormat *XPSTfJsFormat `json:"tfJsFormat,omitempty"` TfLiteFormat *XPSTfLiteFormat `json:"tfLiteFormat,omitempty"` @@ -3172,8 +3169,8 @@ func (s XPSExportModelOutputConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// XPSFileSpec: Spec of input and output files, on external file systems (CNS, -// GCS, etc). +// XPSFileSpec: Spec of input and output files, on external file systems (for +// example, Colossus Namespace System or Google Cloud Storage). type XPSFileSpec struct { // DirectoryPath: Deprecated. Use file_spec. DirectoryPath string `json:"directoryPath,omitempty"` @@ -3181,7 +3178,7 @@ type XPSFileSpec struct { // "FILE_FORMAT_UNKNOWN" // "FILE_FORMAT_SSTABLE" // "FILE_FORMAT_TRANSLATION_RKV" - Internal format for parallel text data - // used by Google Translate. go/rkvtools + // used by Google Translate. // "FILE_FORMAT_RECORDIO" // "FILE_FORMAT_RAW_CSV" - Only the lexicographically first file described by // the file_spec contains the header line. @@ -3370,8 +3367,9 @@ func (s XPSImageClassificationTrainResponse) MarshalJSON() ([]byte, error) { // requesting format. type XPSImageExportModelSpec struct { // ExportModelOutputConfig: Contains the model format and internal location of - // the model files to be exported/downloaded. Use the GCS bucket name which is - // provided via TrainRequest.gcs_bucket_name to store the model files. + // the model files to be exported/downloaded. Use the Google Cloud Storage + // bucket name which is provided via TrainRequest.gcs_bucket_name to store the + // model files. ExportModelOutputConfig []*XPSExportModelOutputConfig `json:"exportModelOutputConfig,omitempty"` // ForceSendFields is a list of field names (e.g. "ExportModelOutputConfig") to // unconditionally include in API requests. By default, fields with empty or @@ -3400,15 +3398,16 @@ type XPSImageModelArtifactSpec struct { // ExportArtifact: The model binary files in different formats for model // export. ExportArtifact []*XPSModelArtifactItem `json:"exportArtifact,omitempty"` - // LabelGcsUri: GCS uri of decoded labels file for model export 'dict.txt'. + // LabelGcsUri: Google Cloud Storage URI of decoded labels file for model + // export 'dict.txt'. LabelGcsUri string `json:"labelGcsUri,omitempty"` // ServingArtifact: The default model binary file used for serving (e.g. online // predict, batch predict) via public Cloud AI Platform API. ServingArtifact *XPSModelArtifactItem `json:"servingArtifact,omitempty"` - // TfJsBinaryGcsPrefix: GCS uri prefix of Tensorflow JavaScript binary files - // 'groupX-shardXofX.bin' Deprecated. + // TfJsBinaryGcsPrefix: Google Cloud Storage URI prefix of Tensorflow + // JavaScript binary files 'groupX-shardXofX.bin'. Deprecated. TfJsBinaryGcsPrefix string `json:"tfJsBinaryGcsPrefix,omitempty"` - // TfLiteMetadataGcsUri: GCS uri of Tensorflow Lite metadata + // TfLiteMetadataGcsUri: Google Cloud Storage URI of Tensorflow Lite metadata // 'tflite_metadata.json'. TfLiteMetadataGcsUri string `json:"tfLiteMetadataGcsUri,omitempty"` // ForceSendFields is a list of field names (e.g. "CheckpointArtifact") to @@ -3502,7 +3501,7 @@ type XPSImageModelServingSpecModelThroughputEstimation struct { // traffic, US-based traffic, or very large models should use this partition. // Capacity in this partition is significantly cheaper than partition-0. // "PARTITION_JELLYFISH" - To be used by customers with Jellyfish-accelerated - // ops. See go/servomatic-jellyfish for details. + // ops. // "PARTITION_CPU" - The partition used by regionalized servomatic cloud // regions. // "PARTITION_CUSTOM_STORAGE_CPU" - The partition used for loading models @@ -3873,8 +3872,7 @@ type XPSModelArtifactItem struct { // "CORE_ML" - Used for iOS mobile devices in (.mlmodel) format. See // https://developer.apple.com/documentation/coreml ArtifactFormat string `json:"artifactFormat,omitempty"` - // GcsUri: The Google Cloud Storage (GCS) uri that stores the model binary - // files. + // GcsUri: The Google Cloud Storage URI that stores the model binary files. GcsUri string `json:"gcsUri,omitempty"` // ForceSendFields is a list of field names (e.g. "ArtifactFormat") to // unconditionally include in API requests. By default, fields with empty or @@ -3894,7 +3892,6 @@ func (s XPSModelArtifactItem) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// XPSPreprocessResponse: Next ID: 8 type XPSPreprocessResponse struct { // OutputExampleSet: Preprocessed examples, that are to be imported into AutoML // storage. This should point to RecordIO file(s) of PreprocessedExample @@ -4162,8 +4159,7 @@ func (s XPSResponseExplanationParameters) MarshalJSON() ([]byte, error) { } // XPSResponseExplanationSpec: Specification of Model explanation. -// Feature-based XAI in AutoML Vision ICN is deprecated, see b/288407203 for -// context. +// Feature-based XAI in AutoML Vision ICN is deprecated. type XPSResponseExplanationSpec struct { // ExplanationType: Explanation type. For AutoML Image Classification models, // possible values are: * `image-integrated-gradients` * `image-xrai` @@ -4702,7 +4698,6 @@ func (s *XPSTablesConfidenceMetricsEntry) UnmarshalJSON(data []byte) error { } // XPSTablesDatasetMetadata: Metadata for a dataset used for AutoML Tables. -// Next ID: 6 type XPSTablesDatasetMetadata struct { // MlUseColumnId: Id the column to split the table. MlUseColumnId int64 `json:"mlUseColumnId,omitempty"` @@ -5040,7 +5035,7 @@ func (s XPSTablesTrainingOperationMetadata) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// XPSTextComponentModel: Component model. Next ID: 10 +// XPSTextComponentModel: Component model. type XPSTextComponentModel struct { // BatchPredictionModelGcsUri: The Cloud Storage resource path to hold batch // prediction model. @@ -5060,7 +5055,7 @@ type XPSTextComponentModel struct { // traffic, US-based traffic, or very large models should use this partition. // Capacity in this partition is significantly cheaper than partition-0. // "PARTITION_JELLYFISH" - To be used by customers with Jellyfish-accelerated - // ops. See go/servomatic-jellyfish for details. + // ops. // "PARTITION_CPU" - The partition used by regionalized servomatic cloud // regions. // "PARTITION_CUSTOM_STORAGE_CPU" - The partition used for loading models @@ -5090,8 +5085,7 @@ type XPSTextComponentModel struct { // "TEXT_MODEL_TYPE_COMPOSITE" - A composite model represents a set of // component models that have to be used together for prediction. A composite // model appears to be a single model to the model user. It may contain only - // one component model. Please refer to go/cnl-composite-models for more - // information. + // one component model. // "TEXT_MODEL_TYPE_ALL_MODELS" - Model type used to train default, MA, and // ATC models in a single batch worker pipeline. // "TEXT_MODEL_TYPE_BERT" - BERT pipeline needs a specific model type, since @@ -5430,7 +5424,6 @@ func (s *XPSTrackMetricsEntryConfidenceMetricsEntry) UnmarshalJSON(data []byte) return nil } -// XPSTrainResponse: Next ID: 18 type XPSTrainResponse struct { // DeployedModelSizeBytes: Estimated model size in bytes once deployed. DeployedModelSizeBytes int64 `json:"deployedModelSizeBytes,omitempty,string"` @@ -5847,8 +5840,9 @@ func (s XPSVideoClassificationTrainResponse) MarshalJSON() ([]byte, error) { // requesting format. type XPSVideoExportModelSpec struct { // ExportModelOutputConfig: Contains the model format and internal location of - // the model files to be exported/downloaded. Use the GCS bucket name which is - // provided via TrainRequest.gcs_bucket_name to store the model files. + // the model files to be exported/downloaded. Use the Google Cloud Storage + // bucket name which is provided via TrainRequest.gcs_bucket_name to store the + // model files. ExportModelOutputConfig []*XPSExportModelOutputConfig `json:"exportModelOutputConfig,omitempty"` // ForceSendFields is a list of field names (e.g. "ExportModelOutputConfig") to // unconditionally include in API requests. By default, fields with empty or diff --git a/language/v1beta2/language-api.json b/language/v1beta2/language-api.json index a4dcc870c24..c4b6b7971e4 100644 --- a/language/v1beta2/language-api.json +++ b/language/v1beta2/language-api.json @@ -246,7 +246,7 @@ } } }, - "revision": "20240929", + "revision": "20241103", "rootUrl": "https://language.googleapis.com/", "schemas": { "AnalyzeEntitiesRequest": { @@ -472,7 +472,7 @@ "type": "object" }, "AnnotateTextRequestFeatures": { - "description": "All available features for sentiment, syntax, and semantic analysis. Setting each one to true will enable that specific analysis for the input. Next ID: 12", + "description": "All available features for sentiment, syntax, and semantic analysis. Setting each one to true will enable that specific analysis for the input.", "id": "AnnotateTextRequestFeatures", "properties": { "classificationModelOptions": { @@ -1361,7 +1361,7 @@ }, "sentiment": { "$ref": "Sentiment", - "description": "For calls to AnalyzeEntitySentiment or if AnnotateTextRequest.Features.extract_entity_sentiment is set to true, this field will contain the aggregate sentiment expressed for this entity in the provided document." + "description": "For calls to AnalyzeEntitySentimentRequest or if AnnotateTextRequest.Features.extract_entity_sentiment is set to true, this field will contain the aggregate sentiment expressed for this entity in the provided document." }, "type": { "description": "The entity type.", @@ -1406,7 +1406,7 @@ "properties": { "sentiment": { "$ref": "Sentiment", - "description": "For calls to AnalyzeEntitySentiment or if AnnotateTextRequest.Features.extract_entity_sentiment is set to true, this field will contain the sentiment expressed for this mention of the entity in the provided document." + "description": "For calls to AnalyzeEntitySentimentRequest or if AnnotateTextRequest.Features.extract_entity_sentiment is set to true, this field will contain the sentiment expressed for this mention of the entity in the provided document." }, "text": { "$ref": "TextSpan", @@ -1808,7 +1808,7 @@ "type": "object" }, "InfraUsage": { - "description": "Infra Usage of billing metrics. Next ID: 6", + "description": "Infra Usage of billing metrics.", "id": "InfraUsage", "properties": { "cpuMetrics": { @@ -2540,7 +2540,7 @@ "properties": { "sentiment": { "$ref": "Sentiment", - "description": "For calls to AnalyzeSentiment or if AnnotateTextRequest.Features.extract_document_sentiment is set to true, this field will contain the sentiment for the sentence." + "description": "For calls to AnalyzeSentimentRequest or if AnnotateTextRequest.Features.extract_document_sentiment is set to true, this field will contain the sentiment for the sentence." }, "text": { "$ref": "TextSpan", @@ -2550,11 +2550,11 @@ "type": "object" }, "Sentiment": { - "description": "Represents the feeling associated with the entire text or entities in the text. Next ID: 6", + "description": "Represents the feeling associated with the entire text or entities in the text.", "id": "Sentiment", "properties": { "magnitude": { - "description": "A non-negative number in the [0, +inf) range, which represents the absolute magnitude of sentiment regardless of score (positive or negative).", + "description": "A non-negative number in the [0, +inf] range, which represents the absolute magnitude of sentiment regardless of score (positive or negative).", "format": "float", "type": "number" }, @@ -2907,7 +2907,6 @@ "type": "object" }, "XPSColumnSpecForecastingMetadata": { - "description": "=========================================================================== # The fields below are used exclusively for Forecasting.", "id": "XPSColumnSpecForecastingMetadata", "properties": { "columnType": { @@ -3400,11 +3399,11 @@ "type": "boolean" }, "outputGcrUri": { - "description": "The Google Contained Registry (GCR) path the exported files to be pushed to. This location is set if the exported format is DOCKDER.", + "description": "The Google Contained Registry path the exported files to be pushed to. This location is set if the exported format is DOCKDER.", "type": "string" }, "outputGcsUri": { - "description": "The Google Cloud Storage (GCS) directory where XPS will output the exported models and related files. Format: gs://bucket/directory", + "description": "The Google Cloud Storage directory where XPS will output the exported models and related files. Format: gs://bucket/directory", "type": "string" }, "tfJsFormat": { @@ -3420,7 +3419,7 @@ "type": "object" }, "XPSFileSpec": { - "description": "Spec of input and output files, on external file systems (CNS, GCS, etc).", + "description": "Spec of input and output files, on external file systems (for example, Colossus Namespace System or Google Cloud Storage).", "id": "XPSFileSpec", "properties": { "directoryPath": { @@ -3448,7 +3447,7 @@ "enumDescriptions": [ "", "", - "Internal format for parallel text data used by Google Translate. go/rkvtools", + "Internal format for parallel text data used by Google Translate.", "", "Only the lexicographically first file described by the file_spec contains the header line.", "" @@ -3577,7 +3576,7 @@ "id": "XPSImageExportModelSpec", "properties": { "exportModelOutputConfig": { - "description": "Contains the model format and internal location of the model files to be exported/downloaded. Use the GCS bucket name which is provided via TrainRequest.gcs_bucket_name to store the model files.", + "description": "Contains the model format and internal location of the model files to be exported/downloaded. Use the Google Cloud Storage bucket name which is provided via TrainRequest.gcs_bucket_name to store the model files.", "items": { "$ref": "XPSExportModelOutputConfig" }, @@ -3602,7 +3601,7 @@ "type": "array" }, "labelGcsUri": { - "description": "GCS uri of decoded labels file for model export 'dict.txt'.", + "description": "Google Cloud Storage URI of decoded labels file for model export 'dict.txt'.", "type": "string" }, "servingArtifact": { @@ -3610,11 +3609,11 @@ "description": "The default model binary file used for serving (e.g. online predict, batch predict) via public Cloud AI Platform API." }, "tfJsBinaryGcsPrefix": { - "description": "GCS uri prefix of Tensorflow JavaScript binary files 'groupX-shardXofX.bin' Deprecated.", + "description": "Google Cloud Storage URI prefix of Tensorflow JavaScript binary files 'groupX-shardXofX.bin'. Deprecated.", "type": "string" }, "tfLiteMetadataGcsUri": { - "description": "GCS uri of Tensorflow Lite metadata 'tflite_metadata.json'.", + "description": "Google Cloud Storage URI of Tensorflow Lite metadata 'tflite_metadata.json'.", "type": "string" } }, @@ -3706,7 +3705,7 @@ "", "The default partition.", "It has significantly lower replication than partition-0 and is located in the US only. It also has a larger model size limit and higher default RAM quota than partition-0. Customers with batch traffic, US-based traffic, or very large models should use this partition. Capacity in this partition is significantly cheaper than partition-0.", - "To be used by customers with Jellyfish-accelerated ops. See go/servomatic-jellyfish for details.", + "To be used by customers with Jellyfish-accelerated ops.", "The partition used by regionalized servomatic cloud regions.", "The partition used for loading models from custom storage." ], @@ -3966,14 +3965,13 @@ "type": "string" }, "gcsUri": { - "description": "The Google Cloud Storage (GCS) uri that stores the model binary files.", + "description": "The Google Cloud Storage URI that stores the model binary files.", "type": "string" } }, "type": "object" }, "XPSPreprocessResponse": { - "description": "Next ID: 8", "id": "XPSPreprocessResponse", "properties": { "outputExampleSet": { @@ -4147,7 +4145,7 @@ }, "XPSResponseExplanationSpec": { "deprecated": true, - "description": "Specification of Model explanation. Feature-based XAI in AutoML Vision ICN is deprecated, see b/288407203 for context.", + "description": "Specification of Model explanation. Feature-based XAI in AutoML Vision ICN is deprecated.", "id": "XPSResponseExplanationSpec", "properties": { "explanationType": { @@ -4603,7 +4601,7 @@ "type": "object" }, "XPSTablesDatasetMetadata": { - "description": "Metadata for a dataset used for AutoML Tables. Next ID: 6", + "description": "Metadata for a dataset used for AutoML Tables.", "id": "XPSTablesDatasetMetadata", "properties": { "mlUseColumnId": { @@ -4847,7 +4845,7 @@ "type": "object" }, "XPSTextComponentModel": { - "description": "Component model. Next ID: 10", + "description": "Component model.", "id": "XPSTextComponentModel", "properties": { "batchPredictionModelGcsUri": { @@ -4872,7 +4870,7 @@ "", "The default partition.", "It has significantly lower replication than partition-0 and is located in the US only. It also has a larger model size limit and higher default RAM quota than partition-0. Customers with batch traffic, US-based traffic, or very large models should use this partition. Capacity in this partition is significantly cheaper than partition-0.", - "To be used by customers with Jellyfish-accelerated ops. See go/servomatic-jellyfish for details.", + "To be used by customers with Jellyfish-accelerated ops.", "The partition used by regionalized servomatic cloud regions.", "The partition used for loading models from custom storage." ], @@ -4917,7 +4915,7 @@ "", "Model type for entity extraction.", "Model type for relationship extraction.", - "A composite model represents a set of component models that have to be used together for prediction. A composite model appears to be a single model to the model user. It may contain only one component model. Please refer to go/cnl-composite-models for more information.", + "A composite model represents a set of component models that have to be used together for prediction. A composite model appears to be a single model to the model user. It may contain only one component model.", "Model type used to train default, MA, and ATC models in a single batch worker pipeline.", "BERT pipeline needs a specific model type, since it uses a different TFX configuration compared with DEFAULT (despite sharing most of the code).", "Model type for EncPaLM." @@ -5152,7 +5150,6 @@ "type": "object" }, "XPSTrainResponse": { - "description": "Next ID: 18", "id": "XPSTrainResponse", "properties": { "deployedModelSizeBytes": { @@ -5429,7 +5426,7 @@ "id": "XPSVideoExportModelSpec", "properties": { "exportModelOutputConfig": { - "description": "Contains the model format and internal location of the model files to be exported/downloaded. Use the GCS bucket name which is provided via TrainRequest.gcs_bucket_name to store the model files.", + "description": "Contains the model format and internal location of the model files to be exported/downloaded. Use the Google Cloud Storage bucket name which is provided via TrainRequest.gcs_bucket_name to store the model files.", "items": { "$ref": "XPSExportModelOutputConfig" }, diff --git a/language/v1beta2/language-gen.go b/language/v1beta2/language-gen.go index ea2fdecfcbc..1481f99d5bc 100644 --- a/language/v1beta2/language-gen.go +++ b/language/v1beta2/language-gen.go @@ -490,7 +490,7 @@ func (s AnnotateTextRequest) MarshalJSON() ([]byte, error) { // AnnotateTextRequestFeatures: All available features for sentiment, syntax, // and semantic analysis. Setting each one to true will enable that specific -// analysis for the input. Next ID: 12 +// analysis for the input. type AnnotateTextRequestFeatures struct { // ClassificationModelOptions: Optional. The model options to use for // classification. Defaults to v1 options if not specified. Only used if @@ -1262,7 +1262,7 @@ type Entity struct { // importance or centrality of that entity to the entire document text. Scores // closer to 0 are less salient, while scores closer to 1.0 are highly salient. Salience float64 `json:"salience,omitempty"` - // Sentiment: For calls to AnalyzeEntitySentiment or if + // Sentiment: For calls to AnalyzeEntitySentimentRequest or if // AnnotateTextRequest.Features.extract_entity_sentiment is set to true, this // field will contain the aggregate sentiment expressed for this entity in the // provided document. @@ -1333,7 +1333,7 @@ func (s *Entity) UnmarshalJSON(data []byte) error { // EntityMention: Represents a mention for an entity in the text. Currently, // proper noun mentions are supported. type EntityMention struct { - // Sentiment: For calls to AnalyzeEntitySentiment or if + // Sentiment: For calls to AnalyzeEntitySentimentRequest or if // AnnotateTextRequest.Features.extract_entity_sentiment is set to true, this // field will contain the sentiment expressed for this mention of the entity in // the provided document. @@ -1571,7 +1571,7 @@ func (s GpuMetric) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// InfraUsage: Infra Usage of billing metrics. Next ID: 6 +// InfraUsage: Infra Usage of billing metrics. type InfraUsage struct { // CpuMetrics: Aggregated core metrics since requested start_time. CpuMetrics []*CpuMetric `json:"cpuMetrics,omitempty"` @@ -2040,7 +2040,7 @@ func (s *RamMetric) UnmarshalJSON(data []byte) error { // Sentence: Represents a sentence in the input document. type Sentence struct { - // Sentiment: For calls to AnalyzeSentiment or if + // Sentiment: For calls to AnalyzeSentimentRequest or if // AnnotateTextRequest.Features.extract_document_sentiment is set to true, this // field will contain the sentiment for the sentence. Sentiment *Sentiment `json:"sentiment,omitempty"` @@ -2065,9 +2065,9 @@ func (s Sentence) MarshalJSON() ([]byte, error) { } // Sentiment: Represents the feeling associated with the entire text or -// entities in the text. Next ID: 6 +// entities in the text. type Sentiment struct { - // Magnitude: A non-negative number in the [0, +inf) range, which represents + // Magnitude: A non-negative number in the [0, +inf] range, which represents // the absolute magnitude of sentiment regardless of score (positive or // negative). Magnitude float64 `json:"magnitude,omitempty"` @@ -2602,9 +2602,6 @@ func (s XPSColumnSpecCorrelatedColumn) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// XPSColumnSpecForecastingMetadata: -// =========================================================================== -// # The fields below are used exclusively for Forecasting. type XPSColumnSpecForecastingMetadata struct { // ColumnType: The type of the column for FORECASTING model training purposes. // @@ -3157,11 +3154,11 @@ type XPSExportModelOutputConfig struct { // ExportFirebaseAuxiliaryInfo: For any model and format: If true, will // additionally export FirebaseExportedModelInfo in a firebase.txt file. ExportFirebaseAuxiliaryInfo bool `json:"exportFirebaseAuxiliaryInfo,omitempty"` - // OutputGcrUri: The Google Contained Registry (GCR) path the exported files to - // be pushed to. This location is set if the exported format is DOCKDER. + // OutputGcrUri: The Google Contained Registry path the exported files to be + // pushed to. This location is set if the exported format is DOCKDER. OutputGcrUri string `json:"outputGcrUri,omitempty"` - // OutputGcsUri: The Google Cloud Storage (GCS) directory where XPS will output - // the exported models and related files. Format: gs://bucket/directory + // OutputGcsUri: The Google Cloud Storage directory where XPS will output the + // exported models and related files. Format: gs://bucket/directory OutputGcsUri string `json:"outputGcsUri,omitempty"` TfJsFormat *XPSTfJsFormat `json:"tfJsFormat,omitempty"` TfLiteFormat *XPSTfLiteFormat `json:"tfLiteFormat,omitempty"` @@ -3184,8 +3181,8 @@ func (s XPSExportModelOutputConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// XPSFileSpec: Spec of input and output files, on external file systems (CNS, -// GCS, etc). +// XPSFileSpec: Spec of input and output files, on external file systems (for +// example, Colossus Namespace System or Google Cloud Storage). type XPSFileSpec struct { // DirectoryPath: Deprecated. Use file_spec. DirectoryPath string `json:"directoryPath,omitempty"` @@ -3193,7 +3190,7 @@ type XPSFileSpec struct { // "FILE_FORMAT_UNKNOWN" // "FILE_FORMAT_SSTABLE" // "FILE_FORMAT_TRANSLATION_RKV" - Internal format for parallel text data - // used by Google Translate. go/rkvtools + // used by Google Translate. // "FILE_FORMAT_RECORDIO" // "FILE_FORMAT_RAW_CSV" - Only the lexicographically first file described by // the file_spec contains the header line. @@ -3382,8 +3379,9 @@ func (s XPSImageClassificationTrainResponse) MarshalJSON() ([]byte, error) { // requesting format. type XPSImageExportModelSpec struct { // ExportModelOutputConfig: Contains the model format and internal location of - // the model files to be exported/downloaded. Use the GCS bucket name which is - // provided via TrainRequest.gcs_bucket_name to store the model files. + // the model files to be exported/downloaded. Use the Google Cloud Storage + // bucket name which is provided via TrainRequest.gcs_bucket_name to store the + // model files. ExportModelOutputConfig []*XPSExportModelOutputConfig `json:"exportModelOutputConfig,omitempty"` // ForceSendFields is a list of field names (e.g. "ExportModelOutputConfig") to // unconditionally include in API requests. By default, fields with empty or @@ -3412,15 +3410,16 @@ type XPSImageModelArtifactSpec struct { // ExportArtifact: The model binary files in different formats for model // export. ExportArtifact []*XPSModelArtifactItem `json:"exportArtifact,omitempty"` - // LabelGcsUri: GCS uri of decoded labels file for model export 'dict.txt'. + // LabelGcsUri: Google Cloud Storage URI of decoded labels file for model + // export 'dict.txt'. LabelGcsUri string `json:"labelGcsUri,omitempty"` // ServingArtifact: The default model binary file used for serving (e.g. online // predict, batch predict) via public Cloud AI Platform API. ServingArtifact *XPSModelArtifactItem `json:"servingArtifact,omitempty"` - // TfJsBinaryGcsPrefix: GCS uri prefix of Tensorflow JavaScript binary files - // 'groupX-shardXofX.bin' Deprecated. + // TfJsBinaryGcsPrefix: Google Cloud Storage URI prefix of Tensorflow + // JavaScript binary files 'groupX-shardXofX.bin'. Deprecated. TfJsBinaryGcsPrefix string `json:"tfJsBinaryGcsPrefix,omitempty"` - // TfLiteMetadataGcsUri: GCS uri of Tensorflow Lite metadata + // TfLiteMetadataGcsUri: Google Cloud Storage URI of Tensorflow Lite metadata // 'tflite_metadata.json'. TfLiteMetadataGcsUri string `json:"tfLiteMetadataGcsUri,omitempty"` // ForceSendFields is a list of field names (e.g. "CheckpointArtifact") to @@ -3514,7 +3513,7 @@ type XPSImageModelServingSpecModelThroughputEstimation struct { // traffic, US-based traffic, or very large models should use this partition. // Capacity in this partition is significantly cheaper than partition-0. // "PARTITION_JELLYFISH" - To be used by customers with Jellyfish-accelerated - // ops. See go/servomatic-jellyfish for details. + // ops. // "PARTITION_CPU" - The partition used by regionalized servomatic cloud // regions. // "PARTITION_CUSTOM_STORAGE_CPU" - The partition used for loading models @@ -3885,8 +3884,7 @@ type XPSModelArtifactItem struct { // "CORE_ML" - Used for iOS mobile devices in (.mlmodel) format. See // https://developer.apple.com/documentation/coreml ArtifactFormat string `json:"artifactFormat,omitempty"` - // GcsUri: The Google Cloud Storage (GCS) uri that stores the model binary - // files. + // GcsUri: The Google Cloud Storage URI that stores the model binary files. GcsUri string `json:"gcsUri,omitempty"` // ForceSendFields is a list of field names (e.g. "ArtifactFormat") to // unconditionally include in API requests. By default, fields with empty or @@ -3906,7 +3904,6 @@ func (s XPSModelArtifactItem) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// XPSPreprocessResponse: Next ID: 8 type XPSPreprocessResponse struct { // OutputExampleSet: Preprocessed examples, that are to be imported into AutoML // storage. This should point to RecordIO file(s) of PreprocessedExample @@ -4174,8 +4171,7 @@ func (s XPSResponseExplanationParameters) MarshalJSON() ([]byte, error) { } // XPSResponseExplanationSpec: Specification of Model explanation. -// Feature-based XAI in AutoML Vision ICN is deprecated, see b/288407203 for -// context. +// Feature-based XAI in AutoML Vision ICN is deprecated. type XPSResponseExplanationSpec struct { // ExplanationType: Explanation type. For AutoML Image Classification models, // possible values are: * `image-integrated-gradients` * `image-xrai` @@ -4714,7 +4710,6 @@ func (s *XPSTablesConfidenceMetricsEntry) UnmarshalJSON(data []byte) error { } // XPSTablesDatasetMetadata: Metadata for a dataset used for AutoML Tables. -// Next ID: 6 type XPSTablesDatasetMetadata struct { // MlUseColumnId: Id the column to split the table. MlUseColumnId int64 `json:"mlUseColumnId,omitempty"` @@ -5052,7 +5047,7 @@ func (s XPSTablesTrainingOperationMetadata) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// XPSTextComponentModel: Component model. Next ID: 10 +// XPSTextComponentModel: Component model. type XPSTextComponentModel struct { // BatchPredictionModelGcsUri: The Cloud Storage resource path to hold batch // prediction model. @@ -5072,7 +5067,7 @@ type XPSTextComponentModel struct { // traffic, US-based traffic, or very large models should use this partition. // Capacity in this partition is significantly cheaper than partition-0. // "PARTITION_JELLYFISH" - To be used by customers with Jellyfish-accelerated - // ops. See go/servomatic-jellyfish for details. + // ops. // "PARTITION_CPU" - The partition used by regionalized servomatic cloud // regions. // "PARTITION_CUSTOM_STORAGE_CPU" - The partition used for loading models @@ -5102,8 +5097,7 @@ type XPSTextComponentModel struct { // "TEXT_MODEL_TYPE_COMPOSITE" - A composite model represents a set of // component models that have to be used together for prediction. A composite // model appears to be a single model to the model user. It may contain only - // one component model. Please refer to go/cnl-composite-models for more - // information. + // one component model. // "TEXT_MODEL_TYPE_ALL_MODELS" - Model type used to train default, MA, and // ATC models in a single batch worker pipeline. // "TEXT_MODEL_TYPE_BERT" - BERT pipeline needs a specific model type, since @@ -5442,7 +5436,6 @@ func (s *XPSTrackMetricsEntryConfidenceMetricsEntry) UnmarshalJSON(data []byte) return nil } -// XPSTrainResponse: Next ID: 18 type XPSTrainResponse struct { // DeployedModelSizeBytes: Estimated model size in bytes once deployed. DeployedModelSizeBytes int64 `json:"deployedModelSizeBytes,omitempty,string"` @@ -5859,8 +5852,9 @@ func (s XPSVideoClassificationTrainResponse) MarshalJSON() ([]byte, error) { // requesting format. type XPSVideoExportModelSpec struct { // ExportModelOutputConfig: Contains the model format and internal location of - // the model files to be exported/downloaded. Use the GCS bucket name which is - // provided via TrainRequest.gcs_bucket_name to store the model files. + // the model files to be exported/downloaded. Use the Google Cloud Storage + // bucket name which is provided via TrainRequest.gcs_bucket_name to store the + // model files. ExportModelOutputConfig []*XPSExportModelOutputConfig `json:"exportModelOutputConfig,omitempty"` // ForceSendFields is a list of field names (e.g. "ExportModelOutputConfig") to // unconditionally include in API requests. By default, fields with empty or diff --git a/language/v2/language-api.json b/language/v2/language-api.json index a7f5f6f331a..0bd68f3039c 100644 --- a/language/v2/language-api.json +++ b/language/v2/language-api.json @@ -208,7 +208,7 @@ } } }, - "revision": "20240929", + "revision": "20241103", "rootUrl": "https://language.googleapis.com/", "schemas": { "AnalyzeEntitiesRequest": { @@ -977,7 +977,7 @@ }, "sentiment": { "$ref": "Sentiment", - "description": "For calls to AnalyzeEntitySentiment or if AnnotateTextRequest.Features.extract_entity_sentiment is set to true, this field will contain the aggregate sentiment expressed for this entity in the provided document." + "description": "For calls to AnalyzeEntitySentimentRequest or if AnnotateTextRequest.Features.extract_entity_sentiment is set to true, this field will contain the aggregate sentiment expressed for this entity in the provided document." }, "type": { "description": "The entity type.", @@ -1027,7 +1027,7 @@ }, "sentiment": { "$ref": "Sentiment", - "description": "For calls to AnalyzeEntitySentiment or if AnnotateTextRequest.Features.extract_entity_sentiment is set to true, this field will contain the sentiment expressed for this mention of the entity in the provided document." + "description": "For calls to AnalyzeEntitySentimentRequest or if AnnotateTextRequest.Features.extract_entity_sentiment is set to true, this field will contain the sentiment expressed for this mention of the entity in the provided document." }, "text": { "$ref": "TextSpan", @@ -1429,7 +1429,7 @@ "type": "object" }, "InfraUsage": { - "description": "Infra Usage of billing metrics. Next ID: 6", + "description": "Infra Usage of billing metrics.", "id": "InfraUsage", "properties": { "cpuMetrics": { @@ -1916,7 +1916,7 @@ "properties": { "sentiment": { "$ref": "Sentiment", - "description": "For calls to AnalyzeSentiment or if AnnotateTextRequest.Features.extract_document_sentiment is set to true, this field will contain the sentiment for the sentence." + "description": "For calls to AnalyzeSentimentRequest or if AnnotateTextRequest.Features.extract_document_sentiment is set to true, this field will contain the sentiment for the sentence." }, "text": { "$ref": "TextSpan", @@ -1930,7 +1930,7 @@ "id": "Sentiment", "properties": { "magnitude": { - "description": "A non-negative number in the [0, +inf) range, which represents the absolute magnitude of sentiment regardless of score (positive or negative).", + "description": "A non-negative number in the [0, +inf] range, which represents the absolute magnitude of sentiment regardless of score (positive or negative).", "format": "float", "type": "number" }, @@ -2260,7 +2260,6 @@ "type": "object" }, "XPSColumnSpecForecastingMetadata": { - "description": "=========================================================================== # The fields below are used exclusively for Forecasting.", "id": "XPSColumnSpecForecastingMetadata", "properties": { "columnType": { @@ -2753,11 +2752,11 @@ "type": "boolean" }, "outputGcrUri": { - "description": "The Google Contained Registry (GCR) path the exported files to be pushed to. This location is set if the exported format is DOCKDER.", + "description": "The Google Contained Registry path the exported files to be pushed to. This location is set if the exported format is DOCKDER.", "type": "string" }, "outputGcsUri": { - "description": "The Google Cloud Storage (GCS) directory where XPS will output the exported models and related files. Format: gs://bucket/directory", + "description": "The Google Cloud Storage directory where XPS will output the exported models and related files. Format: gs://bucket/directory", "type": "string" }, "tfJsFormat": { @@ -2773,7 +2772,7 @@ "type": "object" }, "XPSFileSpec": { - "description": "Spec of input and output files, on external file systems (CNS, GCS, etc).", + "description": "Spec of input and output files, on external file systems (for example, Colossus Namespace System or Google Cloud Storage).", "id": "XPSFileSpec", "properties": { "directoryPath": { @@ -2801,7 +2800,7 @@ "enumDescriptions": [ "", "", - "Internal format for parallel text data used by Google Translate. go/rkvtools", + "Internal format for parallel text data used by Google Translate.", "", "Only the lexicographically first file described by the file_spec contains the header line.", "" @@ -2930,7 +2929,7 @@ "id": "XPSImageExportModelSpec", "properties": { "exportModelOutputConfig": { - "description": "Contains the model format and internal location of the model files to be exported/downloaded. Use the GCS bucket name which is provided via TrainRequest.gcs_bucket_name to store the model files.", + "description": "Contains the model format and internal location of the model files to be exported/downloaded. Use the Google Cloud Storage bucket name which is provided via TrainRequest.gcs_bucket_name to store the model files.", "items": { "$ref": "XPSExportModelOutputConfig" }, @@ -2955,7 +2954,7 @@ "type": "array" }, "labelGcsUri": { - "description": "GCS uri of decoded labels file for model export 'dict.txt'.", + "description": "Google Cloud Storage URI of decoded labels file for model export 'dict.txt'.", "type": "string" }, "servingArtifact": { @@ -2963,11 +2962,11 @@ "description": "The default model binary file used for serving (e.g. online predict, batch predict) via public Cloud AI Platform API." }, "tfJsBinaryGcsPrefix": { - "description": "GCS uri prefix of Tensorflow JavaScript binary files 'groupX-shardXofX.bin' Deprecated.", + "description": "Google Cloud Storage URI prefix of Tensorflow JavaScript binary files 'groupX-shardXofX.bin'. Deprecated.", "type": "string" }, "tfLiteMetadataGcsUri": { - "description": "GCS uri of Tensorflow Lite metadata 'tflite_metadata.json'.", + "description": "Google Cloud Storage URI of Tensorflow Lite metadata 'tflite_metadata.json'.", "type": "string" } }, @@ -3059,7 +3058,7 @@ "", "The default partition.", "It has significantly lower replication than partition-0 and is located in the US only. It also has a larger model size limit and higher default RAM quota than partition-0. Customers with batch traffic, US-based traffic, or very large models should use this partition. Capacity in this partition is significantly cheaper than partition-0.", - "To be used by customers with Jellyfish-accelerated ops. See go/servomatic-jellyfish for details.", + "To be used by customers with Jellyfish-accelerated ops.", "The partition used by regionalized servomatic cloud regions.", "The partition used for loading models from custom storage." ], @@ -3319,14 +3318,13 @@ "type": "string" }, "gcsUri": { - "description": "The Google Cloud Storage (GCS) uri that stores the model binary files.", + "description": "The Google Cloud Storage URI that stores the model binary files.", "type": "string" } }, "type": "object" }, "XPSPreprocessResponse": { - "description": "Next ID: 8", "id": "XPSPreprocessResponse", "properties": { "outputExampleSet": { @@ -3500,7 +3498,7 @@ }, "XPSResponseExplanationSpec": { "deprecated": true, - "description": "Specification of Model explanation. Feature-based XAI in AutoML Vision ICN is deprecated, see b/288407203 for context.", + "description": "Specification of Model explanation. Feature-based XAI in AutoML Vision ICN is deprecated.", "id": "XPSResponseExplanationSpec", "properties": { "explanationType": { @@ -3956,7 +3954,7 @@ "type": "object" }, "XPSTablesDatasetMetadata": { - "description": "Metadata for a dataset used for AutoML Tables. Next ID: 6", + "description": "Metadata for a dataset used for AutoML Tables.", "id": "XPSTablesDatasetMetadata", "properties": { "mlUseColumnId": { @@ -4200,7 +4198,7 @@ "type": "object" }, "XPSTextComponentModel": { - "description": "Component model. Next ID: 10", + "description": "Component model.", "id": "XPSTextComponentModel", "properties": { "batchPredictionModelGcsUri": { @@ -4225,7 +4223,7 @@ "", "The default partition.", "It has significantly lower replication than partition-0 and is located in the US only. It also has a larger model size limit and higher default RAM quota than partition-0. Customers with batch traffic, US-based traffic, or very large models should use this partition. Capacity in this partition is significantly cheaper than partition-0.", - "To be used by customers with Jellyfish-accelerated ops. See go/servomatic-jellyfish for details.", + "To be used by customers with Jellyfish-accelerated ops.", "The partition used by regionalized servomatic cloud regions.", "The partition used for loading models from custom storage." ], @@ -4270,7 +4268,7 @@ "", "Model type for entity extraction.", "Model type for relationship extraction.", - "A composite model represents a set of component models that have to be used together for prediction. A composite model appears to be a single model to the model user. It may contain only one component model. Please refer to go/cnl-composite-models for more information.", + "A composite model represents a set of component models that have to be used together for prediction. A composite model appears to be a single model to the model user. It may contain only one component model.", "Model type used to train default, MA, and ATC models in a single batch worker pipeline.", "BERT pipeline needs a specific model type, since it uses a different TFX configuration compared with DEFAULT (despite sharing most of the code).", "Model type for EncPaLM." @@ -4505,7 +4503,6 @@ "type": "object" }, "XPSTrainResponse": { - "description": "Next ID: 18", "id": "XPSTrainResponse", "properties": { "deployedModelSizeBytes": { @@ -4782,7 +4779,7 @@ "id": "XPSVideoExportModelSpec", "properties": { "exportModelOutputConfig": { - "description": "Contains the model format and internal location of the model files to be exported/downloaded. Use the GCS bucket name which is provided via TrainRequest.gcs_bucket_name to store the model files.", + "description": "Contains the model format and internal location of the model files to be exported/downloaded. Use the Google Cloud Storage bucket name which is provided via TrainRequest.gcs_bucket_name to store the model files.", "items": { "$ref": "XPSExportModelOutputConfig" }, diff --git a/language/v2/language-gen.go b/language/v2/language-gen.go index 949a9f6b686..81703fc2a0a 100644 --- a/language/v2/language-gen.go +++ b/language/v2/language-gen.go @@ -943,7 +943,7 @@ type Entity struct { Metadata map[string]string `json:"metadata,omitempty"` // Name: The representative name for the entity. Name string `json:"name,omitempty"` - // Sentiment: For calls to AnalyzeEntitySentiment or if + // Sentiment: For calls to AnalyzeEntitySentimentRequest or if // AnnotateTextRequest.Features.extract_entity_sentiment is set to true, this // field will contain the aggregate sentiment expressed for this entity in the // provided document. @@ -1004,7 +1004,7 @@ type EntityMention struct { // the probability of the entity mention being the entity type. The score is in // (0, 1] range. Probability float64 `json:"probability,omitempty"` - // Sentiment: For calls to AnalyzeEntitySentiment or if + // Sentiment: For calls to AnalyzeEntitySentimentRequest or if // AnnotateTextRequest.Features.extract_entity_sentiment is set to true, this // field will contain the sentiment expressed for this mention of the entity in // the provided document. @@ -1256,7 +1256,7 @@ func (s GpuMetric) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// InfraUsage: Infra Usage of billing metrics. Next ID: 6 +// InfraUsage: Infra Usage of billing metrics. type InfraUsage struct { // CpuMetrics: Aggregated core metrics since requested start_time. CpuMetrics []*CpuMetric `json:"cpuMetrics,omitempty"` @@ -1584,7 +1584,7 @@ func (s *RamMetric) UnmarshalJSON(data []byte) error { // Sentence: Represents a sentence in the input document. type Sentence struct { - // Sentiment: For calls to AnalyzeSentiment or if + // Sentiment: For calls to AnalyzeSentimentRequest or if // AnnotateTextRequest.Features.extract_document_sentiment is set to true, this // field will contain the sentiment for the sentence. Sentiment *Sentiment `json:"sentiment,omitempty"` @@ -1611,7 +1611,7 @@ func (s Sentence) MarshalJSON() ([]byte, error) { // Sentiment: Represents the feeling associated with the entire text or // entities in the text. type Sentiment struct { - // Magnitude: A non-negative number in the [0, +inf) range, which represents + // Magnitude: A non-negative number in the [0, +inf] range, which represents // the absolute magnitude of sentiment regardless of score (positive or // negative). Magnitude float64 `json:"magnitude,omitempty"` @@ -2117,9 +2117,6 @@ func (s XPSColumnSpecCorrelatedColumn) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// XPSColumnSpecForecastingMetadata: -// =========================================================================== -// # The fields below are used exclusively for Forecasting. type XPSColumnSpecForecastingMetadata struct { // ColumnType: The type of the column for FORECASTING model training purposes. // @@ -2672,11 +2669,11 @@ type XPSExportModelOutputConfig struct { // ExportFirebaseAuxiliaryInfo: For any model and format: If true, will // additionally export FirebaseExportedModelInfo in a firebase.txt file. ExportFirebaseAuxiliaryInfo bool `json:"exportFirebaseAuxiliaryInfo,omitempty"` - // OutputGcrUri: The Google Contained Registry (GCR) path the exported files to - // be pushed to. This location is set if the exported format is DOCKDER. + // OutputGcrUri: The Google Contained Registry path the exported files to be + // pushed to. This location is set if the exported format is DOCKDER. OutputGcrUri string `json:"outputGcrUri,omitempty"` - // OutputGcsUri: The Google Cloud Storage (GCS) directory where XPS will output - // the exported models and related files. Format: gs://bucket/directory + // OutputGcsUri: The Google Cloud Storage directory where XPS will output the + // exported models and related files. Format: gs://bucket/directory OutputGcsUri string `json:"outputGcsUri,omitempty"` TfJsFormat *XPSTfJsFormat `json:"tfJsFormat,omitempty"` TfLiteFormat *XPSTfLiteFormat `json:"tfLiteFormat,omitempty"` @@ -2699,8 +2696,8 @@ func (s XPSExportModelOutputConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// XPSFileSpec: Spec of input and output files, on external file systems (CNS, -// GCS, etc). +// XPSFileSpec: Spec of input and output files, on external file systems (for +// example, Colossus Namespace System or Google Cloud Storage). type XPSFileSpec struct { // DirectoryPath: Deprecated. Use file_spec. DirectoryPath string `json:"directoryPath,omitempty"` @@ -2708,7 +2705,7 @@ type XPSFileSpec struct { // "FILE_FORMAT_UNKNOWN" // "FILE_FORMAT_SSTABLE" // "FILE_FORMAT_TRANSLATION_RKV" - Internal format for parallel text data - // used by Google Translate. go/rkvtools + // used by Google Translate. // "FILE_FORMAT_RECORDIO" // "FILE_FORMAT_RAW_CSV" - Only the lexicographically first file described by // the file_spec contains the header line. @@ -2897,8 +2894,9 @@ func (s XPSImageClassificationTrainResponse) MarshalJSON() ([]byte, error) { // requesting format. type XPSImageExportModelSpec struct { // ExportModelOutputConfig: Contains the model format and internal location of - // the model files to be exported/downloaded. Use the GCS bucket name which is - // provided via TrainRequest.gcs_bucket_name to store the model files. + // the model files to be exported/downloaded. Use the Google Cloud Storage + // bucket name which is provided via TrainRequest.gcs_bucket_name to store the + // model files. ExportModelOutputConfig []*XPSExportModelOutputConfig `json:"exportModelOutputConfig,omitempty"` // ForceSendFields is a list of field names (e.g. "ExportModelOutputConfig") to // unconditionally include in API requests. By default, fields with empty or @@ -2927,15 +2925,16 @@ type XPSImageModelArtifactSpec struct { // ExportArtifact: The model binary files in different formats for model // export. ExportArtifact []*XPSModelArtifactItem `json:"exportArtifact,omitempty"` - // LabelGcsUri: GCS uri of decoded labels file for model export 'dict.txt'. + // LabelGcsUri: Google Cloud Storage URI of decoded labels file for model + // export 'dict.txt'. LabelGcsUri string `json:"labelGcsUri,omitempty"` // ServingArtifact: The default model binary file used for serving (e.g. online // predict, batch predict) via public Cloud AI Platform API. ServingArtifact *XPSModelArtifactItem `json:"servingArtifact,omitempty"` - // TfJsBinaryGcsPrefix: GCS uri prefix of Tensorflow JavaScript binary files - // 'groupX-shardXofX.bin' Deprecated. + // TfJsBinaryGcsPrefix: Google Cloud Storage URI prefix of Tensorflow + // JavaScript binary files 'groupX-shardXofX.bin'. Deprecated. TfJsBinaryGcsPrefix string `json:"tfJsBinaryGcsPrefix,omitempty"` - // TfLiteMetadataGcsUri: GCS uri of Tensorflow Lite metadata + // TfLiteMetadataGcsUri: Google Cloud Storage URI of Tensorflow Lite metadata // 'tflite_metadata.json'. TfLiteMetadataGcsUri string `json:"tfLiteMetadataGcsUri,omitempty"` // ForceSendFields is a list of field names (e.g. "CheckpointArtifact") to @@ -3029,7 +3028,7 @@ type XPSImageModelServingSpecModelThroughputEstimation struct { // traffic, US-based traffic, or very large models should use this partition. // Capacity in this partition is significantly cheaper than partition-0. // "PARTITION_JELLYFISH" - To be used by customers with Jellyfish-accelerated - // ops. See go/servomatic-jellyfish for details. + // ops. // "PARTITION_CPU" - The partition used by regionalized servomatic cloud // regions. // "PARTITION_CUSTOM_STORAGE_CPU" - The partition used for loading models @@ -3400,8 +3399,7 @@ type XPSModelArtifactItem struct { // "CORE_ML" - Used for iOS mobile devices in (.mlmodel) format. See // https://developer.apple.com/documentation/coreml ArtifactFormat string `json:"artifactFormat,omitempty"` - // GcsUri: The Google Cloud Storage (GCS) uri that stores the model binary - // files. + // GcsUri: The Google Cloud Storage URI that stores the model binary files. GcsUri string `json:"gcsUri,omitempty"` // ForceSendFields is a list of field names (e.g. "ArtifactFormat") to // unconditionally include in API requests. By default, fields with empty or @@ -3421,7 +3419,6 @@ func (s XPSModelArtifactItem) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// XPSPreprocessResponse: Next ID: 8 type XPSPreprocessResponse struct { // OutputExampleSet: Preprocessed examples, that are to be imported into AutoML // storage. This should point to RecordIO file(s) of PreprocessedExample @@ -3689,8 +3686,7 @@ func (s XPSResponseExplanationParameters) MarshalJSON() ([]byte, error) { } // XPSResponseExplanationSpec: Specification of Model explanation. -// Feature-based XAI in AutoML Vision ICN is deprecated, see b/288407203 for -// context. +// Feature-based XAI in AutoML Vision ICN is deprecated. type XPSResponseExplanationSpec struct { // ExplanationType: Explanation type. For AutoML Image Classification models, // possible values are: * `image-integrated-gradients` * `image-xrai` @@ -4229,7 +4225,6 @@ func (s *XPSTablesConfidenceMetricsEntry) UnmarshalJSON(data []byte) error { } // XPSTablesDatasetMetadata: Metadata for a dataset used for AutoML Tables. -// Next ID: 6 type XPSTablesDatasetMetadata struct { // MlUseColumnId: Id the column to split the table. MlUseColumnId int64 `json:"mlUseColumnId,omitempty"` @@ -4567,7 +4562,7 @@ func (s XPSTablesTrainingOperationMetadata) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// XPSTextComponentModel: Component model. Next ID: 10 +// XPSTextComponentModel: Component model. type XPSTextComponentModel struct { // BatchPredictionModelGcsUri: The Cloud Storage resource path to hold batch // prediction model. @@ -4587,7 +4582,7 @@ type XPSTextComponentModel struct { // traffic, US-based traffic, or very large models should use this partition. // Capacity in this partition is significantly cheaper than partition-0. // "PARTITION_JELLYFISH" - To be used by customers with Jellyfish-accelerated - // ops. See go/servomatic-jellyfish for details. + // ops. // "PARTITION_CPU" - The partition used by regionalized servomatic cloud // regions. // "PARTITION_CUSTOM_STORAGE_CPU" - The partition used for loading models @@ -4617,8 +4612,7 @@ type XPSTextComponentModel struct { // "TEXT_MODEL_TYPE_COMPOSITE" - A composite model represents a set of // component models that have to be used together for prediction. A composite // model appears to be a single model to the model user. It may contain only - // one component model. Please refer to go/cnl-composite-models for more - // information. + // one component model. // "TEXT_MODEL_TYPE_ALL_MODELS" - Model type used to train default, MA, and // ATC models in a single batch worker pipeline. // "TEXT_MODEL_TYPE_BERT" - BERT pipeline needs a specific model type, since @@ -4957,7 +4951,6 @@ func (s *XPSTrackMetricsEntryConfidenceMetricsEntry) UnmarshalJSON(data []byte) return nil } -// XPSTrainResponse: Next ID: 18 type XPSTrainResponse struct { // DeployedModelSizeBytes: Estimated model size in bytes once deployed. DeployedModelSizeBytes int64 `json:"deployedModelSizeBytes,omitempty,string"` @@ -5374,8 +5367,9 @@ func (s XPSVideoClassificationTrainResponse) MarshalJSON() ([]byte, error) { // requesting format. type XPSVideoExportModelSpec struct { // ExportModelOutputConfig: Contains the model format and internal location of - // the model files to be exported/downloaded. Use the GCS bucket name which is - // provided via TrainRequest.gcs_bucket_name to store the model files. + // the model files to be exported/downloaded. Use the Google Cloud Storage + // bucket name which is provided via TrainRequest.gcs_bucket_name to store the + // model files. ExportModelOutputConfig []*XPSExportModelOutputConfig `json:"exportModelOutputConfig,omitempty"` // ForceSendFields is a list of field names (e.g. "ExportModelOutputConfig") to // unconditionally include in API requests. By default, fields with empty or diff --git a/merchantapi/accounts_v1beta/merchantapi-api.json b/merchantapi/accounts_v1beta/merchantapi-api.json index fa36e9e398d..a7dccff6329 100644 --- a/merchantapi/accounts_v1beta/merchantapi-api.json +++ b/merchantapi/accounts_v1beta/merchantapi-api.json @@ -705,6 +705,299 @@ } } }, + "omnichannelSettings": { + "methods": { + "create": { + "description": "Create the omnichannel settings for a given merchant.", + "flatPath": "accounts/v1beta/accounts/{accountsId}/omnichannelSettings", + "httpMethod": "POST", + "id": "merchantapi.accounts.omnichannelSettings.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent resource where this omnichannel setting will be created. Format: `accounts/{account}`", + "location": "path", + "pattern": "^accounts/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "accounts/v1beta/{+parent}/omnichannelSettings", + "request": { + "$ref": "OmnichannelSetting" + }, + "response": { + "$ref": "OmnichannelSetting" + }, + "scopes": [ + "https://www.googleapis.com/auth/content" + ] + }, + "get": { + "description": "Get the omnichannel settings for a given merchant.", + "flatPath": "accounts/v1beta/accounts/{accountsId}/omnichannelSettings/{omnichannelSettingsId}", + "httpMethod": "GET", + "id": "merchantapi.accounts.omnichannelSettings.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the omnichannel setting to retrieve. Format: `accounts/{account}/omnichannelSettings/{omnichannel_setting}`", + "location": "path", + "pattern": "^accounts/[^/]+/omnichannelSettings/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "accounts/v1beta/{+name}", + "response": { + "$ref": "OmnichannelSetting" + }, + "scopes": [ + "https://www.googleapis.com/auth/content" + ] + }, + "list": { + "description": "List all the omnichannel settings for a given merchant.", + "flatPath": "accounts/v1beta/accounts/{accountsId}/omnichannelSettings", + "httpMethod": "GET", + "id": "merchantapi.accounts.omnichannelSettings.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of omnichannel settings to return. The service may return fewer than this value. If unspecified, at most 50 omnichannel settings will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous `ListOmnichannelSettings` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListOmnichannelSettings` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent, which owns this collection of omnichannel settings. Format: `accounts/{account}`", + "location": "path", + "pattern": "^accounts/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "accounts/v1beta/{+parent}/omnichannelSettings", + "response": { + "$ref": "ListOmnichannelSettingsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/content" + ] + }, + "patch": { + "description": "Update the omnichannel setting for a given merchant in a given country.", + "flatPath": "accounts/v1beta/accounts/{accountsId}/omnichannelSettings/{omnichannelSettingsId}", + "httpMethod": "PATCH", + "id": "merchantapi.accounts.omnichannelSettings.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Identifier. The resource name of the omnichannel setting. Format: `accounts/{account}/omnichannelSettings/{omnichannel_setting}`", + "location": "path", + "pattern": "^accounts/[^/]+/omnichannelSettings/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. The list of fields to be updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "accounts/v1beta/{+name}", + "request": { + "$ref": "OmnichannelSetting" + }, + "response": { + "$ref": "OmnichannelSetting" + }, + "scopes": [ + "https://www.googleapis.com/auth/content" + ] + }, + "requestInventoryVerification": { + "description": "Requests inventory verification for a given merchant in a given country.", + "flatPath": "accounts/v1beta/accounts/{accountsId}/omnichannelSettings/{omnichannelSettingsId}:requestInventoryVerification", + "httpMethod": "POST", + "id": "merchantapi.accounts.omnichannelSettings.requestInventoryVerification", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the omnichannel setting to request inventory verification. Format: `accounts/{account}/omnichannelSettings/{omnichannel_setting}`", + "location": "path", + "pattern": "^accounts/[^/]+/omnichannelSettings/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "accounts/v1beta/{+name}:requestInventoryVerification", + "request": { + "$ref": "RequestInventoryVerificationRequest" + }, + "response": { + "$ref": "RequestInventoryVerificationResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/content" + ] + } + }, + "resources": { + "gbpAccounts": { + "methods": { + "linkGbpAccount": { + "description": "Link the specified merchant to a GBP account for all countries.", + "flatPath": "accounts/v1beta/accounts/{accountsId}/omnichannelSettings/{omnichannelSettingsId}/gbpAccounts:linkGbpAccount", + "httpMethod": "POST", + "id": "merchantapi.accounts.omnichannelSettings.gbpAccounts.linkGbpAccount", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The name of the parent resource under which the GBP accounts are listed. Format: `accounts/{account}/omnichannelSettings/{omnichannel_setting}`.", + "location": "path", + "pattern": "^accounts/[^/]+/omnichannelSettings/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "accounts/v1beta/{+parent}/gbpAccounts:linkGbpAccount", + "request": { + "$ref": "LinkGbpAccountRequest" + }, + "response": { + "$ref": "LinkGbpAccountResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/content" + ] + }, + "list": { + "description": "List the GBP accounts for a given merchant.", + "flatPath": "accounts/v1beta/accounts/{accountsId}/omnichannelSettings/{omnichannelSettingsId}/gbpAccounts", + "httpMethod": "GET", + "id": "merchantapi.accounts.omnichannelSettings.gbpAccounts.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of `GbpAccount` resources to return. The service returns fewer than this value if the number of gbp accounts is less that than the `pageSize`. The default value is 50. The maximum value is 1000; If a value higher than the maximum is specified, then the `pageSize` will default to the maximum.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous `ListGbpAccounts` call. Provide the page token to retrieve the subsequent page. When paginating, all other parameters provided to `ListGbpAccounts` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The name of the parent resource under which the GBP accounts are listed. Format: `accounts/{account}/omnichannelSettings/{omnichannel_setting}`.", + "location": "path", + "pattern": "^accounts/[^/]+/omnichannelSettings/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "accounts/v1beta/{+parent}/gbpAccounts", + "response": { + "$ref": "ListGbpAccountsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/content" + ] + } + } + }, + "lfpProviders": { + "methods": { + "linkLfpProvider": { + "description": "Link the specified merchant to a LFP provider for the specified country.", + "flatPath": "accounts/v1beta/accounts/{accountsId}/omnichannelSettings/{omnichannelSettingsId}/lfpProviders:linkLfpProvider", + "httpMethod": "POST", + "id": "merchantapi.accounts.omnichannelSettings.lfpProviders.linkLfpProvider", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The name of the parent resource under which the LFP provider is linked. Format: `accounts/{account}/omnichannelSettings/{omnichannel_setting}`.", + "location": "path", + "pattern": "^accounts/[^/]+/omnichannelSettings/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "accounts/v1beta/{+parent}/lfpProviders:linkLfpProvider", + "request": { + "$ref": "LinkLfpProviderRequest" + }, + "response": { + "$ref": "LinkLfpProviderResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/content" + ] + }, + "list": { + "description": "List the LFP provider settings for a given merchant in a given country.", + "flatPath": "accounts/v1beta/accounts/{accountsId}/omnichannelSettings/{omnichannelSettingsId}/lfpProviders", + "httpMethod": "GET", + "id": "merchantapi.accounts.omnichannelSettings.lfpProviders.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of `LfpProvider` resources to return. The service returns fewer than this value if the number of lfp providers is less that than the `pageSize`. The default value is 50. The maximum value is 1000; If a value higher than the maximum is specified, then the `pageSize` will default to the maximum.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous `ListLfpProviders` call. Provide the page token to retrieve the subsequent page. When paginating, all other parameters provided to `ListLfpProviders` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The name of the parent resource under which the LFP providers are listed. Format: `accounts/{account}/omnichannelSettings/{omnichannel_setting}`.", + "location": "path", + "pattern": "^accounts/[^/]+/omnichannelSettings/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "accounts/v1beta/{+parent}/lfpProviders", + "response": { + "$ref": "ListLfpProvidersResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/content" + ] + } + } + } + } + }, "onlineReturnPolicies": { "methods": { "get": { @@ -1417,9 +1710,37 @@ } } }, - "revision": "20241028", + "revision": "20241101", "rootUrl": "https://merchantapi.googleapis.com/", "schemas": { + "About": { + "description": "Collection of information related to the about page ([impressum](https://support.google.com/merchants/answer/14675634?hl=en\u0026ref_topic=15145634\u0026sjid=6892280366904591178-NC)).", + "id": "About", + "properties": { + "state": { + "description": "Output only. The state of the URI.", + "enum": [ + "STATE_UNSPECIFIED", + "ACTIVE", + "FAILED", + "RUNNING" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "The review process is active.", + "The review process failed.", + "The review process is running." + ], + "readOnly": true, + "type": "string" + }, + "uri": { + "description": "Required. The about page URI.", + "type": "string" + } + }, + "type": "object" + }, "Accepted": { "description": "Describes the accepted terms of service.", "id": "Accepted", @@ -1440,7 +1761,7 @@ "type": "object" }, "Account": { - "description": "An account.", + "description": "The `Account` message represents a merchant's account within Shopping Ads. It's the primary entity for managing product data, settings, and interactions with Google's services and external providers. Accounts can operate as standalone entities or be part of a multi-client account (MCA) structure. In an MCA setup the parent account manages multiple sub-accounts. Establishing an account involves configuring attributes like the account name, time zone, and language preferences. The `Account` message is the parent entity for many other resources, for example, `AccountRelationship`, `Homepage`, `BusinessInfo` and so on.", "id": "Account", "properties": { "accountId": { @@ -1676,7 +1997,7 @@ "properties": { "address": { "$ref": "PostalAddress", - "description": "Optional. The address of the business." + "description": "Optional. The address of the business. Only `region_code`, `address_lines`, `postal_code`, `administrative_area` and `locality` fields are supported. All other fields are ignored." }, "customerService": { "$ref": "CustomerService", @@ -2002,6 +2323,48 @@ "properties": {}, "type": "object" }, + "GbpAccount": { + "description": "Collection of information related to a Google Business Profile (GBP) account.", + "id": "GbpAccount", + "properties": { + "email": { + "description": "The email which identifies the Business Profile.", + "type": "string" + }, + "gbpAccountId": { + "description": "The id of the GBP account.", + "type": "string" + }, + "gbpAccountName": { + "description": "The name of the Business Profile. For personal accounts: Email id of the owner. For Business accounts: Name of the Business Account.", + "type": "string" + }, + "listingCount": { + "description": "Number of listings under this account.", + "format": "int64", + "type": "string" + }, + "name": { + "description": "Identifier. The resource name of the GBP account. Format: `accounts/{account}/omnichannelSettings/{omnichannel_setting}/gbpAccount/{gbp_account}`", + "type": "string" + }, + "type": { + "description": "The type of the Business Profile.", + "enum": [ + "TYPE_UNSPECIFIED", + "USER", + "BUSINESS_ACCOUNT" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "The GBP account is a user account.", + "The GBP account is a business account." + ], + "type": "string" + } + }, + "type": "object" + }, "GeoTargetArea": { "description": "A list of geotargets that defines the region area.", "id": "GeoTargetArea", @@ -2157,7 +2520,8 @@ "CLOUD_RETAIL", "LOCAL_CLOUD_RETAIL", "PRODUCT_REVIEWS", - "MERCHANT_REVIEWS" + "MERCHANT_REVIEWS", + "YOUTUBE_CHECKOUT" ], "enumDeprecated": [ false, @@ -2176,6 +2540,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -2195,13 +2560,152 @@ "[Cloud retail](https://cloud.google.com/solutions/retail).", "[Local cloud retail](https://cloud.google.com/solutions/retail).", "[Product Reviews](https://support.google.com/merchants/answer/14620732).", - "[Merchant Reviews](https://developers.google.com/merchant-review-feeds)." + "[Merchant Reviews](https://developers.google.com/merchant-review-feeds).", + "[YouTube Checkout](" + ], + "type": "string" + } + }, + "type": "object" + }, + "InventoryVerification": { + "description": "Collection of information related to [inventory verification](https://support.google.com/merchants/answer/14684499?hl=en\u0026ref_topic=15145634\u0026sjid=6892280366904591178-NC).", + "id": "InventoryVerification", + "properties": { + "contact": { + "description": "Required. The name of the contact for the inventory verification process.", + "type": "string" + }, + "contactEmail": { + "description": "Required. The email address of the contact for the inventory verification process.", + "type": "string" + }, + "contactState": { + "description": "Output only. The state of the contact verification.", + "enum": [ + "STATE_UNSPECIFIED", + "ACTIVE", + "FAILED", + "RUNNING" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "The review process is active.", + "The review process failed.", + "The review process is running." + ], + "readOnly": true, + "type": "string" + }, + "state": { + "description": "Output only. The state of the inventory verification process.", + "enum": [ + "STATE_UNSPECIFIED", + "ACTION_REQUIRED", + "RUNNING", + "SUCCEEDED", + "SUSPENDED" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "When merchant fails the inventory verification process, but still have remaining attempts.", + "The inventory verification process is running.", + "The inventory verification process succeeded.", + "When merchant fails the inventory verification process and all attempts are exhausted." ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "LfpLink": { + "description": "Collection of information related to the LFP link.", + "id": "LfpLink", + "properties": { + "externalAccountId": { + "description": "Required. The account ID by which this merchant is known to the LFP provider.", + "type": "string" + }, + "providerId": { + "description": "Required. The ID of the LFP provider.", + "type": "string" + } + }, + "type": "object" + }, + "LfpProvider": { + "description": "Collection of information related to a Local Feed Partnership (LFP) provider.", + "id": "LfpProvider", + "properties": { + "displayName": { + "description": "The display name of the LFP provider.", + "type": "string" + }, + "lfpProviderId": { + "description": "The ID of the LFP provider.", + "type": "string" + }, + "name": { + "description": "Identifier. The resource name of the LFP provider. Format: `accounts/{account}/omnichannelSettings/{omnichannel_setting}/lfpProviders/{lfp_provider}`", + "type": "string" + }, + "regionCode": { + "description": "Output only. Region code defined by [CLDR](https://cldr.unicode.org/).", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "LinkGbpAccountRequest": { + "description": "Request message for the LinkGbpAccount method.", + "id": "LinkGbpAccountRequest", + "properties": { + "gbpEmail": { + "description": "Required. The email address of the Business Profile account.", + "type": "string" + } + }, + "type": "object" + }, + "LinkGbpAccountResponse": { + "description": "Response message for the LinkGbpAccount method.", + "id": "LinkGbpAccountResponse", + "properties": { + "response": { + "$ref": "Empty", + "description": "Empty response." + } + }, + "type": "object" + }, + "LinkLfpProviderRequest": { + "description": "Request message for the LinkLfpProvider method.", + "id": "LinkLfpProviderRequest", + "properties": { + "externalAccountId": { + "description": "Required. The external account ID by which this merchant is known to the LFP provider.", + "type": "string" + }, + "lfpProviderId": { + "description": "Required. The id of the LFP provider to link.", "type": "string" } }, "type": "object" }, + "LinkLfpProviderResponse": { + "description": "Response message for the LinkLfpProvider method.", + "id": "LinkLfpProviderResponse", + "properties": { + "response": { + "$ref": "Empty", + "description": "Empty response." + } + }, + "type": "object" + }, "ListAccountIssuesResponse": { "description": "Response message for the `ListAccountIssues` method.", "id": "ListAccountIssuesResponse", @@ -2238,6 +2742,60 @@ }, "type": "object" }, + "ListGbpAccountsResponse": { + "description": "Response message for the ListGbpAccounts method.", + "id": "ListGbpAccountsResponse", + "properties": { + "gbpAccounts": { + "description": "The GBP accounts from the specified merchant in the specified country.", + "items": { + "$ref": "GbpAccount" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token, which 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" + }, + "ListLfpProvidersResponse": { + "description": "Response message for the ListLfpProviders method.", + "id": "ListLfpProvidersResponse", + "properties": { + "lfpProviders": { + "description": "The LFP providers from the specified merchant in the specified country.", + "items": { + "$ref": "LfpProvider" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token, which 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" + }, + "ListOmnichannelSettingsResponse": { + "description": "Response message for the ListOmnichannelSettings method.", + "id": "ListOmnichannelSettingsResponse", + "properties": { + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + }, + "omnichannelSettings": { + "description": "The omnichannel settings from the specified merchant.", + "items": { + "$ref": "OmnichannelSetting" + }, + "type": "array" + } + }, + "type": "object" + }, "ListOnlineReturnPoliciesResponse": { "description": "Response message for the `ListOnlineReturnPolicies` method.", "id": "ListOnlineReturnPoliciesResponse", @@ -2388,6 +2946,46 @@ }, "type": "object" }, + "LsfType": { + "description": "Collection of information related to the Local Store Front (LSF) type.", + "id": "LsfType", + "properties": { + "lsfType": { + "description": "Required. The Local Store Front (LSF) type.", + "enum": [ + "TYPE_UNSPECIFIED", + "GHLSF", + "MHLSF_BASIC", + "MHLSF_FULL" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "Google-Hosted Local Store Front.", + "Merchant-Hosted Local Store Front Basic.", + "Merchant-Hosted Local Store Front Full." + ], + "type": "string" + }, + "state": { + "description": "Output only. The state of the LSF.", + "enum": [ + "STATE_UNSPECIFIED", + "ACTIVE", + "FAILED", + "RUNNING" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "The review process is active.", + "The review process failed.", + "The review process is running." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "MinimumOrderValueTable": { "description": "Table of per store minimum order values for the pickup fulfillment type.", "id": "MinimumOrderValueTable", @@ -2402,6 +3000,94 @@ }, "type": "object" }, + "OmnichannelSetting": { + "description": "Collection of information related to the omnichannel settings of a merchant.", + "id": "OmnichannelSetting", + "properties": { + "about": { + "$ref": "About", + "description": "Optional. The about page URI and state for this country." + }, + "inventoryVerification": { + "$ref": "InventoryVerification", + "description": "Optional. The inventory verification process state for this country." + }, + "lfpLink": { + "$ref": "LfpLink", + "description": "Output only. The established link to a LFP provider.", + "readOnly": true + }, + "lsfType": { + "$ref": "LsfType", + "description": "Optional. The Local Store Front ([LSF](https://support.google.com/merchants/answer/7178526)) type and state for this country." + }, + "name": { + "description": "Identifier. The resource name of the omnichannel setting. Format: `accounts/{account}/omnichannelSettings/{omnichannel_setting}`", + "type": "string" + }, + "odo": { + "$ref": "OnDisplayToOrder", + "description": "Optional. The on display to order (ODO) policy URI and state for this country." + }, + "pickupTypes": { + "description": "Optional. The Pickup types asnd state for this country.", + "items": { + "$ref": "PickupType" + }, + "type": "array" + }, + "regionCode": { + "description": "Immutable. Region code defined by [CLDR](https://cldr.unicode.org/).", + "type": "string" + }, + "state": { + "description": "Output only. The state of the omnichannel setting.", + "enum": [ + "STATE_UNSPECIFIED", + "ACTIVE", + "ACTION_REQUIRED", + "RUNNING" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "The merchant's omnichannel setting is active.", + "The merchant's omnichannel setting requires action.", + "The merchant's omnichannel setting is running." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "OnDisplayToOrder": { + "description": "Collection of information related to the on display to order ([ODO](https://support.google.com/merchants/answer/14615056?hl=en\u0026ref_topic=15145747\u0026sjid=6892280366904591178-NC)).", + "id": "OnDisplayToOrder", + "properties": { + "state": { + "description": "Output only. The state of the URI.", + "enum": [ + "STATE_UNSPECIFIED", + "ACTIVE", + "FAILED", + "RUNNING" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "The review process is active.", + "The review process failed.", + "The review process is running." + ], + "readOnly": true, + "type": "string" + }, + "uri": { + "description": "Required. The on display to order (ODO) policy URI.", + "type": "string" + } + }, + "type": "object" + }, "OnlineReturnPolicy": { "description": "[Online return policy](https://support.google.com/merchants/answer/10220642) object. This is currently used to represent return policies for ads and free listings programs.", "id": "OnlineReturnPolicy", @@ -2513,6 +3199,44 @@ }, "type": "object" }, + "PickupType": { + "description": "Collection of information related to the pickup type.", + "id": "PickupType", + "properties": { + "pickupType": { + "description": "Required. The type of the pickup.", + "enum": [ + "TYPE_UNSPECIFIED", + "PICKUP_TODAY", + "PICKUP_LATER" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "[Pickup today](https://support.google.com/merchants/answer/14634281?hl=en\u0026ref_topic=15145747\u0026sjid=6892280366904591178-NC#).", + "[Pickup later](https://support.google.com/merchants/answer/14634020?hl=en\u0026ref_topic=15145747\u0026sjid=6892280366904591178-NC#)." + ], + "type": "string" + }, + "state": { + "description": "Output only. The state of the PickupType.", + "enum": [ + "STATE_UNSPECIFIED", + "ACTIVE", + "FAILED", + "RUNNING" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "The review process is active.", + "The review process failed.", + "The review process is running." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "Policy": { "description": "The available policies.", "id": "Policy", @@ -2683,7 +3407,8 @@ "CLOUD_RETAIL", "LOCAL_CLOUD_RETAIL", "PRODUCT_REVIEWS", - "MERCHANT_REVIEWS" + "MERCHANT_REVIEWS", + "YOUTUBE_CHECKOUT" ], "enumDeprecated": [ false, @@ -2702,6 +3427,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -2721,7 +3447,8 @@ "[Cloud retail](https://cloud.google.com/solutions/retail).", "[Local cloud retail](https://cloud.google.com/solutions/retail).", "[Product Reviews](https://support.google.com/merchants/answer/14620732).", - "[Merchant Reviews](https://developers.google.com/merchant-review-feeds)." + "[Merchant Reviews](https://developers.google.com/merchant-review-feeds).", + "[YouTube Checkout](" ], "type": "string" } @@ -2909,6 +3636,23 @@ }, "type": "object" }, + "RequestInventoryVerificationRequest": { + "description": "Request message for the RequestInventoryVerification method.", + "id": "RequestInventoryVerificationRequest", + "properties": {}, + "type": "object" + }, + "RequestInventoryVerificationResponse": { + "description": "Response message for the RequestInventoryVerification method.", + "id": "RequestInventoryVerificationResponse", + "properties": { + "omnichannelSetting": { + "$ref": "OmnichannelSetting", + "description": "The omnichannel setting that was updated." + } + }, + "type": "object" + }, "Required": { "description": "Describes the terms of service which are required to be accepted.", "id": "Required", @@ -3201,7 +3945,7 @@ "type": "object" }, "TermsOfService": { - "description": "A `TermsOfService`.", + "description": "The `TermsOfService` message represents a specific version of the terms of service that merchants must accept to access certain features or services (see https://support.google.com/merchants/answer/160173). This message is important for the onboarding process, ensuring that merchants agree to the necessary legal agreements for using the service. Merchants can retrieve the latest terms of service for a given `kind` and `region` through `RetrieveLatestTermsOfService`, and accept them as required through `AcceptTermsOfService`.", "id": "TermsOfService", "properties": { "external": { @@ -3351,7 +4095,7 @@ "type": "object" }, "User": { - "description": "A [user](https://support.google.com/merchants/answer/12160472).", + "description": "The `User` message represents a user associated with a Merchant Center account. It is used to manage user permissions and access rights within the account. For more information, see [Frequently asked questions about people and access levels](//support.google.com/merchants/answer/12160472).", "id": "User", "properties": { "accessRights": { diff --git a/merchantapi/accounts_v1beta/merchantapi-gen.go b/merchantapi/accounts_v1beta/merchantapi-gen.go index ec8a6ce819d..cb85ee207b2 100644 --- a/merchantapi/accounts_v1beta/merchantapi-gen.go +++ b/merchantapi/accounts_v1beta/merchantapi-gen.go @@ -164,6 +164,7 @@ func NewAccountsService(s *APIService) *AccountsService { rs.EmailPreferences = NewAccountsEmailPreferencesService(s) rs.Homepage = NewAccountsHomepageService(s) rs.Issues = NewAccountsIssuesService(s) + rs.OmnichannelSettings = NewAccountsOmnichannelSettingsService(s) rs.OnlineReturnPolicies = NewAccountsOnlineReturnPoliciesService(s) rs.Programs = NewAccountsProgramsService(s) rs.Regions = NewAccountsRegionsService(s) @@ -188,6 +189,8 @@ type AccountsService struct { Issues *AccountsIssuesService + OmnichannelSettings *AccountsOmnichannelSettingsService + OnlineReturnPolicies *AccountsOnlineReturnPoliciesService Programs *AccountsProgramsService @@ -255,6 +258,39 @@ type AccountsIssuesService struct { s *APIService } +func NewAccountsOmnichannelSettingsService(s *APIService) *AccountsOmnichannelSettingsService { + rs := &AccountsOmnichannelSettingsService{s: s} + rs.GbpAccounts = NewAccountsOmnichannelSettingsGbpAccountsService(s) + rs.LfpProviders = NewAccountsOmnichannelSettingsLfpProvidersService(s) + return rs +} + +type AccountsOmnichannelSettingsService struct { + s *APIService + + GbpAccounts *AccountsOmnichannelSettingsGbpAccountsService + + LfpProviders *AccountsOmnichannelSettingsLfpProvidersService +} + +func NewAccountsOmnichannelSettingsGbpAccountsService(s *APIService) *AccountsOmnichannelSettingsGbpAccountsService { + rs := &AccountsOmnichannelSettingsGbpAccountsService{s: s} + return rs +} + +type AccountsOmnichannelSettingsGbpAccountsService struct { + s *APIService +} + +func NewAccountsOmnichannelSettingsLfpProvidersService(s *APIService) *AccountsOmnichannelSettingsLfpProvidersService { + rs := &AccountsOmnichannelSettingsLfpProvidersService{s: s} + return rs +} + +type AccountsOmnichannelSettingsLfpProvidersService struct { + s *APIService +} + func NewAccountsOnlineReturnPoliciesService(s *APIService) *AccountsOnlineReturnPoliciesService { rs := &AccountsOnlineReturnPoliciesService{s: s} return rs @@ -318,6 +354,37 @@ type TermsOfServiceService struct { s *APIService } +// About: Collection of information related to the about page (impressum +// (https://support.google.com/merchants/answer/14675634?hl=en&ref_topic=15145634&sjid=6892280366904591178-NC)). +type About struct { + // State: Output only. The state of the URI. + // + // Possible values: + // "STATE_UNSPECIFIED" - Default value. This value is unused. + // "ACTIVE" - The review process is active. + // "FAILED" - The review process failed. + // "RUNNING" - The review process is running. + State string `json:"state,omitempty"` + // Uri: Required. The about page URI. + Uri string `json:"uri,omitempty"` + // ForceSendFields is a list of field names (e.g. "State") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. 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. "State") 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 About) MarshalJSON() ([]byte, error) { + type NoMethod About + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Accepted: Describes the accepted terms of service. type Accepted struct { // AcceptedBy: The account where the acceptance was recorded. This can be the @@ -351,7 +418,15 @@ func (s Accepted) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Account: An account. +// Account: The `Account` message represents a merchant's account within +// Shopping Ads. It's the primary entity for managing product data, settings, +// and interactions with Google's services and external providers. Accounts can +// operate as standalone entities or be part of a multi-client account (MCA) +// structure. In an MCA setup the parent account manages multiple sub-accounts. +// Establishing an account involves configuring attributes like the account +// name, time zone, and language preferences. The `Account` message is the +// parent entity for many other resources, for example, `AccountRelationship`, +// `Homepage`, `BusinessInfo` and so on. type Account struct { // AccountId: Output only. The ID of the account. AccountId int64 `json:"accountId,omitempty,string"` @@ -641,7 +716,9 @@ func (s BusinessIdentity) MarshalJSON() ([]byte, error) { // BusinessInfo: Collection of information related to a business. type BusinessInfo struct { - // Address: Optional. The address of the business. + // Address: Optional. The address of the business. Only `region_code`, + // `address_lines`, `postal_code`, `administrative_area` and `locality` fields + // are supported. All other fields are ignored. Address *PostalAddress `json:"address,omitempty"` // CustomerService: Optional. The customer service of the business. CustomerService *CustomerService `json:"customerService,omitempty"` @@ -1079,6 +1156,47 @@ type Empty struct { type EnableProgramRequest struct { } +// GbpAccount: Collection of information related to a Google Business Profile +// (GBP) account. +type GbpAccount struct { + // Email: The email which identifies the Business Profile. + Email string `json:"email,omitempty"` + // GbpAccountId: The id of the GBP account. + GbpAccountId string `json:"gbpAccountId,omitempty"` + // GbpAccountName: The name of the Business Profile. For personal accounts: + // Email id of the owner. For Business accounts: Name of the Business Account. + GbpAccountName string `json:"gbpAccountName,omitempty"` + // ListingCount: Number of listings under this account. + ListingCount int64 `json:"listingCount,omitempty,string"` + // Name: Identifier. The resource name of the GBP account. Format: + // `accounts/{account}/omnichannelSettings/{omnichannel_setting}/gbpAccount/{gbp + // _account}` + Name string `json:"name,omitempty"` + // Type: The type of the Business Profile. + // + // Possible values: + // "TYPE_UNSPECIFIED" - Default value. This value is unused. + // "USER" - The GBP account is a user account. + // "BUSINESS_ACCOUNT" - The GBP account is a business account. + Type string `json:"type,omitempty"` + // ForceSendFields is a list of field names (e.g. "Email") 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. "Email") 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 GbpAccount) MarshalJSON() ([]byte, error) { + type NoMethod GbpAccount + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GeoTargetArea: A list of geotargets that defines the region area. type GeoTargetArea struct { // GeotargetCriteriaIds: Required. A non-empty list of location IDs @@ -1290,6 +1408,7 @@ type ImpactedDestination struct { // Reviews](https://support.google.com/merchants/answer/14620732). // "MERCHANT_REVIEWS" - [Merchant // Reviews](https://developers.google.com/merchant-review-feeds). + // "YOUTUBE_CHECKOUT" - [YouTube Checkout]( ReportingContext string `json:"reportingContext,omitempty"` // ForceSendFields is a list of field names (e.g. "Impacts") to unconditionally // include in API requests. By default, fields with empty or default values are @@ -1309,6 +1428,207 @@ func (s ImpactedDestination) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// InventoryVerification: Collection of information related to inventory +// verification +// (https://support.google.com/merchants/answer/14684499?hl=en&ref_topic=15145634&sjid=6892280366904591178-NC). +type InventoryVerification struct { + // Contact: Required. The name of the contact for the inventory verification + // process. + Contact string `json:"contact,omitempty"` + // ContactEmail: Required. The email address of the contact for the inventory + // verification process. + ContactEmail string `json:"contactEmail,omitempty"` + // ContactState: Output only. The state of the contact verification. + // + // Possible values: + // "STATE_UNSPECIFIED" - Default value. This value is unused. + // "ACTIVE" - The review process is active. + // "FAILED" - The review process failed. + // "RUNNING" - The review process is running. + ContactState string `json:"contactState,omitempty"` + // State: Output only. The state of the inventory verification process. + // + // Possible values: + // "STATE_UNSPECIFIED" - Default value. This value is unused. + // "ACTION_REQUIRED" - When merchant fails the inventory verification + // process, but still have remaining attempts. + // "RUNNING" - The inventory verification process is running. + // "SUCCEEDED" - The inventory verification process succeeded. + // "SUSPENDED" - When merchant fails the inventory verification process and + // all attempts are exhausted. + State string `json:"state,omitempty"` + // ForceSendFields is a list of field names (e.g. "Contact") 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. "Contact") 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 InventoryVerification) MarshalJSON() ([]byte, error) { + type NoMethod InventoryVerification + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// LfpLink: Collection of information related to the LFP link. +type LfpLink struct { + // ExternalAccountId: Required. The account ID by which this merchant is known + // to the LFP provider. + ExternalAccountId string `json:"externalAccountId,omitempty"` + // ProviderId: Required. The ID of the LFP provider. + ProviderId string `json:"providerId,omitempty"` + // ForceSendFields is a list of field names (e.g. "ExternalAccountId") 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. "ExternalAccountId") 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 LfpLink) MarshalJSON() ([]byte, error) { + type NoMethod LfpLink + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// LfpProvider: Collection of information related to a Local Feed Partnership +// (LFP) provider. +type LfpProvider struct { + // DisplayName: The display name of the LFP provider. + DisplayName string `json:"displayName,omitempty"` + // LfpProviderId: The ID of the LFP provider. + LfpProviderId string `json:"lfpProviderId,omitempty"` + // Name: Identifier. The resource name of the LFP provider. Format: + // `accounts/{account}/omnichannelSettings/{omnichannel_setting}/lfpProviders/{l + // fp_provider}` + Name string `json:"name,omitempty"` + // RegionCode: Output only. Region code defined by CLDR + // (https://cldr.unicode.org/). + RegionCode string `json:"regionCode,omitempty"` + // ForceSendFields is a list of field names (e.g. "DisplayName") 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. "DisplayName") 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 LfpProvider) MarshalJSON() ([]byte, error) { + type NoMethod LfpProvider + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// LinkGbpAccountRequest: Request message for the LinkGbpAccount method. +type LinkGbpAccountRequest struct { + // GbpEmail: Required. The email address of the Business Profile account. + GbpEmail string `json:"gbpEmail,omitempty"` + // ForceSendFields is a list of field names (e.g. "GbpEmail") 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. "GbpEmail") 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 LinkGbpAccountRequest) MarshalJSON() ([]byte, error) { + type NoMethod LinkGbpAccountRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// LinkGbpAccountResponse: Response message for the LinkGbpAccount method. +type LinkGbpAccountResponse struct { + // Response: Empty response. + Response *Empty `json:"response,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Response") 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. "Response") 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 LinkGbpAccountResponse) MarshalJSON() ([]byte, error) { + type NoMethod LinkGbpAccountResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// LinkLfpProviderRequest: Request message for the LinkLfpProvider method. +type LinkLfpProviderRequest struct { + // ExternalAccountId: Required. The external account ID by which this merchant + // is known to the LFP provider. + ExternalAccountId string `json:"externalAccountId,omitempty"` + // LfpProviderId: Required. The id of the LFP provider to link. + LfpProviderId string `json:"lfpProviderId,omitempty"` + // ForceSendFields is a list of field names (e.g. "ExternalAccountId") 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. "ExternalAccountId") 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 LinkLfpProviderRequest) MarshalJSON() ([]byte, error) { + type NoMethod LinkLfpProviderRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// LinkLfpProviderResponse: Response message for the LinkLfpProvider method. +type LinkLfpProviderResponse struct { + // Response: Empty response. + Response *Empty `json:"response,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Response") 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. "Response") 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 LinkLfpProviderResponse) MarshalJSON() ([]byte, error) { + type NoMethod LinkLfpProviderResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // ListAccountIssuesResponse: Response message for the `ListAccountIssues` // method. type ListAccountIssuesResponse struct { @@ -1366,6 +1686,93 @@ func (s ListAccountsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// ListGbpAccountsResponse: Response message for the ListGbpAccounts method. +type ListGbpAccountsResponse struct { + // GbpAccounts: The GBP accounts from the specified merchant in the specified + // country. + GbpAccounts []*GbpAccount `json:"gbpAccounts,omitempty"` + // NextPageToken: A token, which 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. "GbpAccounts") 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. "GbpAccounts") 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 ListGbpAccountsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListGbpAccountsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ListLfpProvidersResponse: Response message for the ListLfpProviders method. +type ListLfpProvidersResponse struct { + // LfpProviders: The LFP providers from the specified merchant in the specified + // country. + LfpProviders []*LfpProvider `json:"lfpProviders,omitempty"` + // NextPageToken: A token, which 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. "LfpProviders") 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. "LfpProviders") 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 ListLfpProvidersResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListLfpProvidersResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ListOmnichannelSettingsResponse: Response message for the +// ListOmnichannelSettings method. +type ListOmnichannelSettingsResponse struct { + // NextPageToken: A token, which 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"` + // OmnichannelSettings: The omnichannel settings from the specified merchant. + OmnichannelSettings []*OmnichannelSetting `json:"omnichannelSettings,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "NextPageToken") 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. "NextPageToken") 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 ListOmnichannelSettingsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListOmnichannelSettingsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // ListOnlineReturnPoliciesResponse: Response message for the // `ListOnlineReturnPolicies` method. type ListOnlineReturnPoliciesResponse struct { @@ -1611,22 +2018,59 @@ func (s LoyaltyProgramTiers) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MinimumOrderValueTable: Table of per store minimum order values for the -// pickup fulfillment type. -type MinimumOrderValueTable struct { - // StoreCodeSetWithMovs: Required. A list of store code sets sharing the same - // minimum order value (MOV). At least two sets are required and the last one - // must be empty, which signifies 'MOV for all other stores'. Each store code - // can only appear once across all the sets. All prices within a service must - // have the same currency. - StoreCodeSetWithMovs []*StoreCodeSetWithMov `json:"storeCodeSetWithMovs,omitempty"` - // ForceSendFields is a list of field names (e.g. "StoreCodeSetWithMovs") 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. "StoreCodeSetWithMovs") to include +// LsfType: Collection of information related to the Local Store Front (LSF) +// type. +type LsfType struct { + // LsfType: Required. The Local Store Front (LSF) type. + // + // Possible values: + // "TYPE_UNSPECIFIED" - Default value. This value is unused. + // "GHLSF" - Google-Hosted Local Store Front. + // "MHLSF_BASIC" - Merchant-Hosted Local Store Front Basic. + // "MHLSF_FULL" - Merchant-Hosted Local Store Front Full. + LsfType string `json:"lsfType,omitempty"` + // State: Output only. The state of the LSF. + // + // Possible values: + // "STATE_UNSPECIFIED" - Default value. This value is unused. + // "ACTIVE" - The review process is active. + // "FAILED" - The review process failed. + // "RUNNING" - The review process is running. + State string `json:"state,omitempty"` + // ForceSendFields is a list of field names (e.g. "LsfType") 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. "LsfType") 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 LsfType) MarshalJSON() ([]byte, error) { + type NoMethod LsfType + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// MinimumOrderValueTable: Table of per store minimum order values for the +// pickup fulfillment type. +type MinimumOrderValueTable struct { + // StoreCodeSetWithMovs: Required. A list of store code sets sharing the same + // minimum order value (MOV). At least two sets are required and the last one + // must be empty, which signifies 'MOV for all other stores'. Each store code + // can only appear once across all the sets. All prices within a service must + // have the same currency. + StoreCodeSetWithMovs []*StoreCodeSetWithMov `json:"storeCodeSetWithMovs,omitempty"` + // ForceSendFields is a list of field names (e.g. "StoreCodeSetWithMovs") 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. "StoreCodeSetWithMovs") 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. @@ -1638,6 +2082,92 @@ func (s MinimumOrderValueTable) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// OmnichannelSetting: Collection of information related to the omnichannel +// settings of a merchant. +type OmnichannelSetting struct { + // About: Optional. The about page URI and state for this country. + About *About `json:"about,omitempty"` + // InventoryVerification: Optional. The inventory verification process state + // for this country. + InventoryVerification *InventoryVerification `json:"inventoryVerification,omitempty"` + // LfpLink: Output only. The established link to a LFP provider. + LfpLink *LfpLink `json:"lfpLink,omitempty"` + // LsfType: Optional. The Local Store Front (LSF + // (https://support.google.com/merchants/answer/7178526)) type and state for + // this country. + LsfType *LsfType `json:"lsfType,omitempty"` + // Name: Identifier. The resource name of the omnichannel setting. Format: + // `accounts/{account}/omnichannelSettings/{omnichannel_setting}` + Name string `json:"name,omitempty"` + // Odo: Optional. The on display to order (ODO) policy URI and state for this + // country. + Odo *OnDisplayToOrder `json:"odo,omitempty"` + // PickupTypes: Optional. The Pickup types asnd state for this country. + PickupTypes []*PickupType `json:"pickupTypes,omitempty"` + // RegionCode: Immutable. Region code defined by CLDR + // (https://cldr.unicode.org/). + RegionCode string `json:"regionCode,omitempty"` + // State: Output only. The state of the omnichannel setting. + // + // Possible values: + // "STATE_UNSPECIFIED" - Default value. This value is unused. + // "ACTIVE" - The merchant's omnichannel setting is active. + // "ACTION_REQUIRED" - The merchant's omnichannel setting requires action. + // "RUNNING" - The merchant's omnichannel setting is running. + State string `json:"state,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "About") 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. "About") 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 OmnichannelSetting) MarshalJSON() ([]byte, error) { + type NoMethod OmnichannelSetting + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// OnDisplayToOrder: Collection of information related to the on display to +// order (ODO +// (https://support.google.com/merchants/answer/14615056?hl=en&ref_topic=15145747&sjid=6892280366904591178-NC)). +type OnDisplayToOrder struct { + // State: Output only. The state of the URI. + // + // Possible values: + // "STATE_UNSPECIFIED" - Default value. This value is unused. + // "ACTIVE" - The review process is active. + // "FAILED" - The review process failed. + // "RUNNING" - The review process is running. + State string `json:"state,omitempty"` + // Uri: Required. The on display to order (ODO) policy URI. + Uri string `json:"uri,omitempty"` + // ForceSendFields is a list of field names (e.g. "State") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. 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. "State") 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 OnDisplayToOrder) MarshalJSON() ([]byte, error) { + type NoMethod OnDisplayToOrder + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // OnlineReturnPolicy: Online return policy // (https://support.google.com/merchants/answer/10220642) object. This is // currently used to represent return policies for ads and free listings @@ -1776,6 +2306,45 @@ func (s PhoneNumber) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// PickupType: Collection of information related to the pickup type. +type PickupType struct { + // PickupType: Required. The type of the pickup. + // + // Possible values: + // "TYPE_UNSPECIFIED" - Default value. This value is unused. + // "PICKUP_TODAY" - [Pickup + // today](https://support.google.com/merchants/answer/14634281?hl=en&ref_topic=1 + // 5145747&sjid=6892280366904591178-NC#). + // "PICKUP_LATER" - [Pickup + // later](https://support.google.com/merchants/answer/14634020?hl=en&ref_topic=1 + // 5145747&sjid=6892280366904591178-NC#). + PickupType string `json:"pickupType,omitempty"` + // State: Output only. The state of the PickupType. + // + // Possible values: + // "STATE_UNSPECIFIED" - Default value. This value is unused. + // "ACTIVE" - The review process is active. + // "FAILED" - The review process failed. + // "RUNNING" - The review process is running. + State string `json:"state,omitempty"` + // ForceSendFields is a list of field names (e.g. "PickupType") 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. "PickupType") 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 PickupType) MarshalJSON() ([]byte, error) { + type NoMethod PickupType + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Policy: The available policies. type Policy struct { // Days: The number of days items can be returned after delivery, where one day @@ -2040,6 +2609,7 @@ type ProductChange struct { // Reviews](https://support.google.com/merchants/answer/14620732). // "MERCHANT_REVIEWS" - [Merchant // Reviews](https://developers.google.com/merchant-review-feeds). + // "YOUTUBE_CHECKOUT" - [YouTube Checkout]( ReportingContext string `json:"reportingContext,omitempty"` // ForceSendFields is a list of field names (e.g. "NewValue") to // unconditionally include in API requests. By default, fields with empty or @@ -2250,6 +2820,37 @@ func (s Region) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// RequestInventoryVerificationRequest: Request message for the +// RequestInventoryVerification method. +type RequestInventoryVerificationRequest struct { +} + +// RequestInventoryVerificationResponse: Response message for the +// RequestInventoryVerification method. +type RequestInventoryVerificationResponse struct { + // OmnichannelSetting: The omnichannel setting that was updated. + OmnichannelSetting *OmnichannelSetting `json:"omnichannelSetting,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "OmnichannelSetting") 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. "OmnichannelSetting") 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 RequestInventoryVerificationResponse) MarshalJSON() ([]byte, error) { + type NoMethod RequestInventoryVerificationResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Required: Describes the terms of service which are required to be accepted. type Required struct { // TermsOfService: The termsOfService @@ -2633,7 +3234,15 @@ func (s Table) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TermsOfService: A `TermsOfService`. +// TermsOfService: The `TermsOfService` message represents a specific version +// of the terms of service that merchants must accept to access certain +// features or services (see +// https://support.google.com/merchants/answer/160173). This message is +// important for the onboarding process, ensuring that merchants agree to the +// necessary legal agreements for using the service. Merchants can retrieve the +// latest terms of service for a given `kind` and `region` through +// `RetrieveLatestTermsOfService`, and accept them as required through +// `AcceptTermsOfService`. type TermsOfService struct { // External: Whether this terms of service version is external. External terms // of service versions can only be agreed through external processes and not @@ -2855,7 +3464,10 @@ func (s TransitTimeValue) MarshalJSON() ([]byte, error) { type UnclaimHomepageRequest struct { } -// User: A user (https://support.google.com/merchants/answer/12160472). +// User: The `User` message represents a user associated with a Merchant Center +// account. It is used to manage user permissions and access rights within the +// account. For more information, see Frequently asked questions about people +// and access levels (//support.google.com/merchants/answer/12160472). type User struct { // AccessRights: Optional. The access rights // (https://support.google.com/merchants/answer/12160472?sjid=6789834943175119429-EU#accesstypes) @@ -5287,6 +5899,1093 @@ func (c *AccountsIssuesListCall) Pages(ctx context.Context, f func(*ListAccountI } } +type AccountsOmnichannelSettingsCreateCall struct { + s *APIService + parent string + omnichannelsetting *OmnichannelSetting + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Create the omnichannel settings for a given merchant. +// +// - parent: The parent resource where this omnichannel setting will be +// created. Format: `accounts/{account}`. +func (r *AccountsOmnichannelSettingsService) Create(parent string, omnichannelsetting *OmnichannelSetting) *AccountsOmnichannelSettingsCreateCall { + c := &AccountsOmnichannelSettingsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.omnichannelsetting = omnichannelsetting + 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 *AccountsOmnichannelSettingsCreateCall) Fields(s ...googleapi.Field) *AccountsOmnichannelSettingsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *AccountsOmnichannelSettingsCreateCall) Context(ctx context.Context) *AccountsOmnichannelSettingsCreateCall { + 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 *AccountsOmnichannelSettingsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsOmnichannelSettingsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.omnichannelsetting) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/v1beta/{+parent}/omnichannelSettings") + 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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "merchantapi.accounts.omnichannelSettings.create" call. +// Any non-2xx status code is an error. Response headers are in either +// *OmnichannelSetting.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 *AccountsOmnichannelSettingsCreateCall) Do(opts ...googleapi.CallOption) (*OmnichannelSetting, 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 := &OmnichannelSetting{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type AccountsOmnichannelSettingsGetCall struct { + s *APIService + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Get the omnichannel settings for a given merchant. +// +// - name: The name of the omnichannel setting to retrieve. Format: +// `accounts/{account}/omnichannelSettings/{omnichannel_setting}`. +func (r *AccountsOmnichannelSettingsService) Get(name string) *AccountsOmnichannelSettingsGetCall { + c := &AccountsOmnichannelSettingsGetCall{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 *AccountsOmnichannelSettingsGetCall) Fields(s ...googleapi.Field) *AccountsOmnichannelSettingsGetCall { + 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 *AccountsOmnichannelSettingsGetCall) IfNoneMatch(entityTag string) *AccountsOmnichannelSettingsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *AccountsOmnichannelSettingsGetCall) Context(ctx context.Context) *AccountsOmnichannelSettingsGetCall { + 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 *AccountsOmnichannelSettingsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsOmnichannelSettingsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/v1beta/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "merchantapi.accounts.omnichannelSettings.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *OmnichannelSetting.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 *AccountsOmnichannelSettingsGetCall) Do(opts ...googleapi.CallOption) (*OmnichannelSetting, 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 := &OmnichannelSetting{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type AccountsOmnichannelSettingsListCall struct { + s *APIService + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: List all the omnichannel settings for a given merchant. +// +// - parent: The parent, which owns this collection of omnichannel settings. +// Format: `accounts/{account}`. +func (r *AccountsOmnichannelSettingsService) List(parent string) *AccountsOmnichannelSettingsListCall { + c := &AccountsOmnichannelSettingsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of +// omnichannel settings to return. The service may return fewer than this +// value. If unspecified, at most 50 omnichannel settings will be returned. The +// maximum value is 1000; values above 1000 will be coerced to 1000. +func (c *AccountsOmnichannelSettingsListCall) PageSize(pageSize int64) *AccountsOmnichannelSettingsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, received +// from a previous `ListOmnichannelSettings` call. Provide this to retrieve the +// subsequent page. When paginating, all other parameters provided to +// `ListOmnichannelSettings` must match the call that provided the page token. +func (c *AccountsOmnichannelSettingsListCall) PageToken(pageToken string) *AccountsOmnichannelSettingsListCall { + 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 *AccountsOmnichannelSettingsListCall) Fields(s ...googleapi.Field) *AccountsOmnichannelSettingsListCall { + 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 *AccountsOmnichannelSettingsListCall) IfNoneMatch(entityTag string) *AccountsOmnichannelSettingsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *AccountsOmnichannelSettingsListCall) Context(ctx context.Context) *AccountsOmnichannelSettingsListCall { + 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 *AccountsOmnichannelSettingsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsOmnichannelSettingsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/v1beta/{+parent}/omnichannelSettings") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "merchantapi.accounts.omnichannelSettings.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListOmnichannelSettingsResponse.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 *AccountsOmnichannelSettingsListCall) Do(opts ...googleapi.CallOption) (*ListOmnichannelSettingsResponse, 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 := &ListOmnichannelSettingsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *AccountsOmnichannelSettingsListCall) Pages(ctx context.Context, f func(*ListOmnichannelSettingsResponse) 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 AccountsOmnichannelSettingsPatchCall struct { + s *APIService + name string + omnichannelsetting *OmnichannelSetting + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Update the omnichannel setting for a given merchant in a given +// country. +// +// - name: Identifier. The resource name of the omnichannel setting. Format: +// `accounts/{account}/omnichannelSettings/{omnichannel_setting}`. +func (r *AccountsOmnichannelSettingsService) Patch(name string, omnichannelsetting *OmnichannelSetting) *AccountsOmnichannelSettingsPatchCall { + c := &AccountsOmnichannelSettingsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.omnichannelsetting = omnichannelsetting + return c +} + +// UpdateMask sets the optional parameter "updateMask": The list of fields to +// be updated. +func (c *AccountsOmnichannelSettingsPatchCall) UpdateMask(updateMask string) *AccountsOmnichannelSettingsPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *AccountsOmnichannelSettingsPatchCall) Fields(s ...googleapi.Field) *AccountsOmnichannelSettingsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *AccountsOmnichannelSettingsPatchCall) Context(ctx context.Context) *AccountsOmnichannelSettingsPatchCall { + 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 *AccountsOmnichannelSettingsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsOmnichannelSettingsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.omnichannelsetting) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/v1beta/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "merchantapi.accounts.omnichannelSettings.patch" call. +// Any non-2xx status code is an error. Response headers are in either +// *OmnichannelSetting.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 *AccountsOmnichannelSettingsPatchCall) Do(opts ...googleapi.CallOption) (*OmnichannelSetting, 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 := &OmnichannelSetting{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type AccountsOmnichannelSettingsRequestInventoryVerificationCall struct { + s *APIService + name string + requestinventoryverificationrequest *RequestInventoryVerificationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// RequestInventoryVerification: Requests inventory verification for a given +// merchant in a given country. +// +// - name: The name of the omnichannel setting to request inventory +// verification. Format: +// `accounts/{account}/omnichannelSettings/{omnichannel_setting}`. +func (r *AccountsOmnichannelSettingsService) RequestInventoryVerification(name string, requestinventoryverificationrequest *RequestInventoryVerificationRequest) *AccountsOmnichannelSettingsRequestInventoryVerificationCall { + c := &AccountsOmnichannelSettingsRequestInventoryVerificationCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.requestinventoryverificationrequest = requestinventoryverificationrequest + 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 *AccountsOmnichannelSettingsRequestInventoryVerificationCall) Fields(s ...googleapi.Field) *AccountsOmnichannelSettingsRequestInventoryVerificationCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *AccountsOmnichannelSettingsRequestInventoryVerificationCall) Context(ctx context.Context) *AccountsOmnichannelSettingsRequestInventoryVerificationCall { + 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 *AccountsOmnichannelSettingsRequestInventoryVerificationCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsOmnichannelSettingsRequestInventoryVerificationCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.requestinventoryverificationrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/v1beta/{+name}:requestInventoryVerification") + 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{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "merchantapi.accounts.omnichannelSettings.requestInventoryVerification" call. +// Any non-2xx status code is an error. Response headers are in either +// *RequestInventoryVerificationResponse.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 *AccountsOmnichannelSettingsRequestInventoryVerificationCall) Do(opts ...googleapi.CallOption) (*RequestInventoryVerificationResponse, 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 := &RequestInventoryVerificationResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type AccountsOmnichannelSettingsGbpAccountsLinkGbpAccountCall struct { + s *APIService + parent string + linkgbpaccountrequest *LinkGbpAccountRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// LinkGbpAccount: Link the specified merchant to a GBP account for all +// countries. +// +// - parent: The name of the parent resource under which the GBP accounts are +// listed. Format: +// `accounts/{account}/omnichannelSettings/{omnichannel_setting}`. +func (r *AccountsOmnichannelSettingsGbpAccountsService) LinkGbpAccount(parent string, linkgbpaccountrequest *LinkGbpAccountRequest) *AccountsOmnichannelSettingsGbpAccountsLinkGbpAccountCall { + c := &AccountsOmnichannelSettingsGbpAccountsLinkGbpAccountCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.linkgbpaccountrequest = linkgbpaccountrequest + 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 *AccountsOmnichannelSettingsGbpAccountsLinkGbpAccountCall) Fields(s ...googleapi.Field) *AccountsOmnichannelSettingsGbpAccountsLinkGbpAccountCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *AccountsOmnichannelSettingsGbpAccountsLinkGbpAccountCall) Context(ctx context.Context) *AccountsOmnichannelSettingsGbpAccountsLinkGbpAccountCall { + 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 *AccountsOmnichannelSettingsGbpAccountsLinkGbpAccountCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsOmnichannelSettingsGbpAccountsLinkGbpAccountCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.linkgbpaccountrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/v1beta/{+parent}/gbpAccounts:linkGbpAccount") + 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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "merchantapi.accounts.omnichannelSettings.gbpAccounts.linkGbpAccount" call. +// Any non-2xx status code is an error. Response headers are in either +// *LinkGbpAccountResponse.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 *AccountsOmnichannelSettingsGbpAccountsLinkGbpAccountCall) Do(opts ...googleapi.CallOption) (*LinkGbpAccountResponse, 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 := &LinkGbpAccountResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type AccountsOmnichannelSettingsGbpAccountsListCall struct { + s *APIService + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: List the GBP accounts for a given merchant. +// +// - parent: The name of the parent resource under which the GBP accounts are +// listed. Format: +// `accounts/{account}/omnichannelSettings/{omnichannel_setting}`. +func (r *AccountsOmnichannelSettingsGbpAccountsService) List(parent string) *AccountsOmnichannelSettingsGbpAccountsListCall { + c := &AccountsOmnichannelSettingsGbpAccountsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of +// `GbpAccount` resources to return. The service returns fewer than this value +// if the number of gbp accounts is less that than the `pageSize`. The default +// value is 50. The maximum value is 1000; If a value higher than the maximum +// is specified, then the `pageSize` will default to the maximum. +func (c *AccountsOmnichannelSettingsGbpAccountsListCall) PageSize(pageSize int64) *AccountsOmnichannelSettingsGbpAccountsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, received +// from a previous `ListGbpAccounts` call. Provide the page token to retrieve +// the subsequent page. When paginating, all other parameters provided to +// `ListGbpAccounts` must match the call that provided the page token. +func (c *AccountsOmnichannelSettingsGbpAccountsListCall) PageToken(pageToken string) *AccountsOmnichannelSettingsGbpAccountsListCall { + 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 *AccountsOmnichannelSettingsGbpAccountsListCall) Fields(s ...googleapi.Field) *AccountsOmnichannelSettingsGbpAccountsListCall { + 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 *AccountsOmnichannelSettingsGbpAccountsListCall) IfNoneMatch(entityTag string) *AccountsOmnichannelSettingsGbpAccountsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *AccountsOmnichannelSettingsGbpAccountsListCall) Context(ctx context.Context) *AccountsOmnichannelSettingsGbpAccountsListCall { + 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 *AccountsOmnichannelSettingsGbpAccountsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsOmnichannelSettingsGbpAccountsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/v1beta/{+parent}/gbpAccounts") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "merchantapi.accounts.omnichannelSettings.gbpAccounts.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListGbpAccountsResponse.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 *AccountsOmnichannelSettingsGbpAccountsListCall) Do(opts ...googleapi.CallOption) (*ListGbpAccountsResponse, 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 := &ListGbpAccountsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *AccountsOmnichannelSettingsGbpAccountsListCall) Pages(ctx context.Context, f func(*ListGbpAccountsResponse) 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 AccountsOmnichannelSettingsLfpProvidersLinkLfpProviderCall struct { + s *APIService + parent string + linklfpproviderrequest *LinkLfpProviderRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// LinkLfpProvider: Link the specified merchant to a LFP provider for the +// specified country. +// +// - parent: The name of the parent resource under which the LFP provider is +// linked. Format: +// `accounts/{account}/omnichannelSettings/{omnichannel_setting}`. +func (r *AccountsOmnichannelSettingsLfpProvidersService) LinkLfpProvider(parent string, linklfpproviderrequest *LinkLfpProviderRequest) *AccountsOmnichannelSettingsLfpProvidersLinkLfpProviderCall { + c := &AccountsOmnichannelSettingsLfpProvidersLinkLfpProviderCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.linklfpproviderrequest = linklfpproviderrequest + 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 *AccountsOmnichannelSettingsLfpProvidersLinkLfpProviderCall) Fields(s ...googleapi.Field) *AccountsOmnichannelSettingsLfpProvidersLinkLfpProviderCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *AccountsOmnichannelSettingsLfpProvidersLinkLfpProviderCall) Context(ctx context.Context) *AccountsOmnichannelSettingsLfpProvidersLinkLfpProviderCall { + 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 *AccountsOmnichannelSettingsLfpProvidersLinkLfpProviderCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsOmnichannelSettingsLfpProvidersLinkLfpProviderCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.linklfpproviderrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/v1beta/{+parent}/lfpProviders:linkLfpProvider") + 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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "merchantapi.accounts.omnichannelSettings.lfpProviders.linkLfpProvider" call. +// Any non-2xx status code is an error. Response headers are in either +// *LinkLfpProviderResponse.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 *AccountsOmnichannelSettingsLfpProvidersLinkLfpProviderCall) Do(opts ...googleapi.CallOption) (*LinkLfpProviderResponse, 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 := &LinkLfpProviderResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type AccountsOmnichannelSettingsLfpProvidersListCall struct { + s *APIService + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: List the LFP provider settings for a given merchant in a given +// country. +// +// - parent: The name of the parent resource under which the LFP providers are +// listed. Format: +// `accounts/{account}/omnichannelSettings/{omnichannel_setting}`. +func (r *AccountsOmnichannelSettingsLfpProvidersService) List(parent string) *AccountsOmnichannelSettingsLfpProvidersListCall { + c := &AccountsOmnichannelSettingsLfpProvidersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of +// `LfpProvider` resources to return. The service returns fewer than this value +// if the number of lfp providers is less that than the `pageSize`. The default +// value is 50. The maximum value is 1000; If a value higher than the maximum +// is specified, then the `pageSize` will default to the maximum. +func (c *AccountsOmnichannelSettingsLfpProvidersListCall) PageSize(pageSize int64) *AccountsOmnichannelSettingsLfpProvidersListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, received +// from a previous `ListLfpProviders` call. Provide the page token to retrieve +// the subsequent page. When paginating, all other parameters provided to +// `ListLfpProviders` must match the call that provided the page token. +func (c *AccountsOmnichannelSettingsLfpProvidersListCall) PageToken(pageToken string) *AccountsOmnichannelSettingsLfpProvidersListCall { + 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 *AccountsOmnichannelSettingsLfpProvidersListCall) Fields(s ...googleapi.Field) *AccountsOmnichannelSettingsLfpProvidersListCall { + 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 *AccountsOmnichannelSettingsLfpProvidersListCall) IfNoneMatch(entityTag string) *AccountsOmnichannelSettingsLfpProvidersListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *AccountsOmnichannelSettingsLfpProvidersListCall) Context(ctx context.Context) *AccountsOmnichannelSettingsLfpProvidersListCall { + 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 *AccountsOmnichannelSettingsLfpProvidersListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsOmnichannelSettingsLfpProvidersListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/v1beta/{+parent}/lfpProviders") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "merchantapi.accounts.omnichannelSettings.lfpProviders.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListLfpProvidersResponse.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 *AccountsOmnichannelSettingsLfpProvidersListCall) Do(opts ...googleapi.CallOption) (*ListLfpProvidersResponse, 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 := &ListLfpProvidersResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *AccountsOmnichannelSettingsLfpProvidersListCall) Pages(ctx context.Context, f func(*ListLfpProvidersResponse) 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 AccountsOnlineReturnPoliciesGetCall struct { s *APIService name string diff --git a/merchantapi/conversions_v1beta/merchantapi-api.json b/merchantapi/conversions_v1beta/merchantapi-api.json index be0e9bd848c..ad8d7806b42 100644 --- a/merchantapi/conversions_v1beta/merchantapi-api.json +++ b/merchantapi/conversions_v1beta/merchantapi-api.json @@ -295,7 +295,7 @@ } } }, - "revision": "20241023", + "revision": "20241101", "rootUrl": "https://merchantapi.googleapis.com/", "schemas": { "AttributionSettings": { @@ -521,7 +521,8 @@ "CLOUD_RETAIL", "LOCAL_CLOUD_RETAIL", "PRODUCT_REVIEWS", - "MERCHANT_REVIEWS" + "MERCHANT_REVIEWS", + "YOUTUBE_CHECKOUT" ], "enumDeprecated": [ false, @@ -540,6 +541,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -559,7 +561,8 @@ "[Cloud retail](https://cloud.google.com/solutions/retail).", "[Local cloud retail](https://cloud.google.com/solutions/retail).", "[Product Reviews](https://support.google.com/merchants/answer/14620732).", - "[Merchant Reviews](https://developers.google.com/merchant-review-feeds)." + "[Merchant Reviews](https://developers.google.com/merchant-review-feeds).", + "[YouTube Checkout](" ], "type": "string" } diff --git a/merchantapi/conversions_v1beta/merchantapi-gen.go b/merchantapi/conversions_v1beta/merchantapi-gen.go index d06b45bd87f..70f4a7bd971 100644 --- a/merchantapi/conversions_v1beta/merchantapi-gen.go +++ b/merchantapi/conversions_v1beta/merchantapi-gen.go @@ -447,6 +447,7 @@ type ProductChange struct { // Reviews](https://support.google.com/merchants/answer/14620732). // "MERCHANT_REVIEWS" - [Merchant // Reviews](https://developers.google.com/merchant-review-feeds). + // "YOUTUBE_CHECKOUT" - [YouTube Checkout]( ReportingContext string `json:"reportingContext,omitempty"` // ForceSendFields is a list of field names (e.g. "NewValue") to // unconditionally include in API requests. By default, fields with empty or diff --git a/merchantapi/datasources_v1beta/merchantapi-api.json b/merchantapi/datasources_v1beta/merchantapi-api.json index e0f459476bd..3443536a104 100644 --- a/merchantapi/datasources_v1beta/merchantapi-api.json +++ b/merchantapi/datasources_v1beta/merchantapi-api.json @@ -321,7 +321,7 @@ } } }, - "revision": "20241022", + "revision": "20241101", "rootUrl": "https://merchantapi.googleapis.com/", "schemas": { "DataSource": { @@ -779,7 +779,8 @@ "CLOUD_RETAIL", "LOCAL_CLOUD_RETAIL", "PRODUCT_REVIEWS", - "MERCHANT_REVIEWS" + "MERCHANT_REVIEWS", + "YOUTUBE_CHECKOUT" ], "enumDeprecated": [ false, @@ -798,6 +799,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -817,7 +819,8 @@ "[Cloud retail](https://cloud.google.com/solutions/retail).", "[Local cloud retail](https://cloud.google.com/solutions/retail).", "[Product Reviews](https://support.google.com/merchants/answer/14620732).", - "[Merchant Reviews](https://developers.google.com/merchant-review-feeds)." + "[Merchant Reviews](https://developers.google.com/merchant-review-feeds).", + "[YouTube Checkout](" ], "type": "string" } diff --git a/merchantapi/datasources_v1beta/merchantapi-gen.go b/merchantapi/datasources_v1beta/merchantapi-gen.go index d6a18df0939..d46dd3621cb 100644 --- a/merchantapi/datasources_v1beta/merchantapi-gen.go +++ b/merchantapi/datasources_v1beta/merchantapi-gen.go @@ -699,6 +699,7 @@ type ProductChange struct { // Reviews](https://support.google.com/merchants/answer/14620732). // "MERCHANT_REVIEWS" - [Merchant // Reviews](https://developers.google.com/merchant-review-feeds). + // "YOUTUBE_CHECKOUT" - [YouTube Checkout]( ReportingContext string `json:"reportingContext,omitempty"` // ForceSendFields is a list of field names (e.g. "NewValue") to // unconditionally include in API requests. By default, fields with empty or diff --git a/merchantapi/inventories_v1beta/merchantapi-api.json b/merchantapi/inventories_v1beta/merchantapi-api.json index cd21b293baa..2662904176c 100644 --- a/merchantapi/inventories_v1beta/merchantapi-api.json +++ b/merchantapi/inventories_v1beta/merchantapi-api.json @@ -300,7 +300,7 @@ } } }, - "revision": "20241022", + "revision": "20241101", "rootUrl": "https://merchantapi.googleapis.com/", "schemas": { "CustomAttribute": { @@ -497,7 +497,8 @@ "CLOUD_RETAIL", "LOCAL_CLOUD_RETAIL", "PRODUCT_REVIEWS", - "MERCHANT_REVIEWS" + "MERCHANT_REVIEWS", + "YOUTUBE_CHECKOUT" ], "enumDeprecated": [ false, @@ -516,6 +517,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -535,7 +537,8 @@ "[Cloud retail](https://cloud.google.com/solutions/retail).", "[Local cloud retail](https://cloud.google.com/solutions/retail).", "[Product Reviews](https://support.google.com/merchants/answer/14620732).", - "[Merchant Reviews](https://developers.google.com/merchant-review-feeds)." + "[Merchant Reviews](https://developers.google.com/merchant-review-feeds).", + "[YouTube Checkout](" ], "type": "string" } diff --git a/merchantapi/inventories_v1beta/merchantapi-gen.go b/merchantapi/inventories_v1beta/merchantapi-gen.go index f2a6fb9a1fc..d57711065a6 100644 --- a/merchantapi/inventories_v1beta/merchantapi-gen.go +++ b/merchantapi/inventories_v1beta/merchantapi-gen.go @@ -469,6 +469,7 @@ type ProductChange struct { // Reviews](https://support.google.com/merchants/answer/14620732). // "MERCHANT_REVIEWS" - [Merchant // Reviews](https://developers.google.com/merchant-review-feeds). + // "YOUTUBE_CHECKOUT" - [YouTube Checkout]( ReportingContext string `json:"reportingContext,omitempty"` // ForceSendFields is a list of field names (e.g. "NewValue") to // unconditionally include in API requests. By default, fields with empty or diff --git a/merchantapi/lfp_v1beta/merchantapi-api.json b/merchantapi/lfp_v1beta/merchantapi-api.json index b9129810e42..2a767fc4939 100644 --- a/merchantapi/lfp_v1beta/merchantapi-api.json +++ b/merchantapi/lfp_v1beta/merchantapi-api.json @@ -298,7 +298,7 @@ } } }, - "revision": "20241023", + "revision": "20241101", "rootUrl": "https://merchantapi.googleapis.com/", "schemas": { "Empty": { @@ -571,7 +571,8 @@ "CLOUD_RETAIL", "LOCAL_CLOUD_RETAIL", "PRODUCT_REVIEWS", - "MERCHANT_REVIEWS" + "MERCHANT_REVIEWS", + "YOUTUBE_CHECKOUT" ], "enumDeprecated": [ false, @@ -590,6 +591,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -609,7 +611,8 @@ "[Cloud retail](https://cloud.google.com/solutions/retail).", "[Local cloud retail](https://cloud.google.com/solutions/retail).", "[Product Reviews](https://support.google.com/merchants/answer/14620732).", - "[Merchant Reviews](https://developers.google.com/merchant-review-feeds)." + "[Merchant Reviews](https://developers.google.com/merchant-review-feeds).", + "[YouTube Checkout](" ], "type": "string" } diff --git a/merchantapi/lfp_v1beta/merchantapi-gen.go b/merchantapi/lfp_v1beta/merchantapi-gen.go index 4ddad419c0a..f35c9f85608 100644 --- a/merchantapi/lfp_v1beta/merchantapi-gen.go +++ b/merchantapi/lfp_v1beta/merchantapi-gen.go @@ -518,6 +518,7 @@ type ProductChange struct { // Reviews](https://support.google.com/merchants/answer/14620732). // "MERCHANT_REVIEWS" - [Merchant // Reviews](https://developers.google.com/merchant-review-feeds). + // "YOUTUBE_CHECKOUT" - [YouTube Checkout]( ReportingContext string `json:"reportingContext,omitempty"` // ForceSendFields is a list of field names (e.g. "NewValue") to // unconditionally include in API requests. By default, fields with empty or diff --git a/merchantapi/notifications_v1beta/merchantapi-api.json b/merchantapi/notifications_v1beta/merchantapi-api.json index c65ba55ab82..e186c989633 100644 --- a/merchantapi/notifications_v1beta/merchantapi-api.json +++ b/merchantapi/notifications_v1beta/merchantapi-api.json @@ -262,7 +262,7 @@ } } }, - "revision": "20241022", + "revision": "20241101", "rootUrl": "https://merchantapi.googleapis.com/", "schemas": { "Empty": { @@ -360,7 +360,8 @@ "CLOUD_RETAIL", "LOCAL_CLOUD_RETAIL", "PRODUCT_REVIEWS", - "MERCHANT_REVIEWS" + "MERCHANT_REVIEWS", + "YOUTUBE_CHECKOUT" ], "enumDeprecated": [ false, @@ -379,6 +380,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -398,7 +400,8 @@ "[Cloud retail](https://cloud.google.com/solutions/retail).", "[Local cloud retail](https://cloud.google.com/solutions/retail).", "[Product Reviews](https://support.google.com/merchants/answer/14620732).", - "[Merchant Reviews](https://developers.google.com/merchant-review-feeds)." + "[Merchant Reviews](https://developers.google.com/merchant-review-feeds).", + "[YouTube Checkout](" ], "type": "string" } diff --git a/merchantapi/notifications_v1beta/merchantapi-gen.go b/merchantapi/notifications_v1beta/merchantapi-gen.go index 6db190ecb92..6695e2cba5a 100644 --- a/merchantapi/notifications_v1beta/merchantapi-gen.go +++ b/merchantapi/notifications_v1beta/merchantapi-gen.go @@ -305,6 +305,7 @@ type ProductChange struct { // Reviews](https://support.google.com/merchants/answer/14620732). // "MERCHANT_REVIEWS" - [Merchant // Reviews](https://developers.google.com/merchant-review-feeds). + // "YOUTUBE_CHECKOUT" - [YouTube Checkout]( ReportingContext string `json:"reportingContext,omitempty"` // ForceSendFields is a list of field names (e.g. "NewValue") to // unconditionally include in API requests. By default, fields with empty or diff --git a/merchantapi/products_v1beta/merchantapi-api.json b/merchantapi/products_v1beta/merchantapi-api.json index cdff7dd0ecf..68b13f874aa 100644 --- a/merchantapi/products_v1beta/merchantapi-api.json +++ b/merchantapi/products_v1beta/merchantapi-api.json @@ -242,7 +242,7 @@ } } }, - "revision": "20241022", + "revision": "20241101", "rootUrl": "https://merchantapi.googleapis.com/", "schemas": { "Attributes": { @@ -826,7 +826,8 @@ "CLOUD_RETAIL", "LOCAL_CLOUD_RETAIL", "PRODUCT_REVIEWS", - "MERCHANT_REVIEWS" + "MERCHANT_REVIEWS", + "YOUTUBE_CHECKOUT" ], "enumDeprecated": [ false, @@ -845,6 +846,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -864,7 +866,8 @@ "[Cloud retail](https://cloud.google.com/solutions/retail).", "[Local cloud retail](https://cloud.google.com/solutions/retail).", "[Product Reviews](https://support.google.com/merchants/answer/14620732).", - "[Merchant Reviews](https://developers.google.com/merchant-review-feeds)." + "[Merchant Reviews](https://developers.google.com/merchant-review-feeds).", + "[YouTube Checkout](" ], "type": "string" } @@ -983,7 +986,8 @@ "CLOUD_RETAIL", "LOCAL_CLOUD_RETAIL", "PRODUCT_REVIEWS", - "MERCHANT_REVIEWS" + "MERCHANT_REVIEWS", + "YOUTUBE_CHECKOUT" ], "enumDeprecated": [ false, @@ -1002,6 +1006,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -1021,7 +1026,8 @@ "[Cloud retail](https://cloud.google.com/solutions/retail).", "[Local cloud retail](https://cloud.google.com/solutions/retail).", "[Product Reviews](https://support.google.com/merchants/answer/14620732).", - "[Merchant Reviews](https://developers.google.com/merchant-review-feeds)." + "[Merchant Reviews](https://developers.google.com/merchant-review-feeds).", + "[YouTube Checkout](" ], "type": "string" }, @@ -1240,7 +1246,8 @@ "CLOUD_RETAIL", "LOCAL_CLOUD_RETAIL", "PRODUCT_REVIEWS", - "MERCHANT_REVIEWS" + "MERCHANT_REVIEWS", + "YOUTUBE_CHECKOUT" ], "enumDeprecated": [ false, @@ -1259,6 +1266,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -1278,7 +1286,8 @@ "[Cloud retail](https://cloud.google.com/solutions/retail).", "[Local cloud retail](https://cloud.google.com/solutions/retail).", "[Product Reviews](https://support.google.com/merchants/answer/14620732).", - "[Merchant Reviews](https://developers.google.com/merchant-review-feeds)." + "[Merchant Reviews](https://developers.google.com/merchant-review-feeds).", + "[YouTube Checkout](" ], "type": "string" } diff --git a/merchantapi/products_v1beta/merchantapi-gen.go b/merchantapi/products_v1beta/merchantapi-gen.go index c04ae149cf0..84e21434748 100644 --- a/merchantapi/products_v1beta/merchantapi-gen.go +++ b/merchantapi/products_v1beta/merchantapi-gen.go @@ -665,6 +665,7 @@ type DestinationStatus struct { // Reviews](https://support.google.com/merchants/answer/14620732). // "MERCHANT_REVIEWS" - [Merchant // Reviews](https://developers.google.com/merchant-review-feeds). + // "YOUTUBE_CHECKOUT" - [YouTube Checkout]( ReportingContext string `json:"reportingContext,omitempty"` // ForceSendFields is a list of field names (e.g. "ApprovedCountries") to // unconditionally include in API requests. By default, fields with empty or @@ -833,6 +834,7 @@ type ItemLevelIssue struct { // Reviews](https://support.google.com/merchants/answer/14620732). // "MERCHANT_REVIEWS" - [Merchant // Reviews](https://developers.google.com/merchant-review-feeds). + // "YOUTUBE_CHECKOUT" - [YouTube Checkout]( ReportingContext string `json:"reportingContext,omitempty"` // Resolution: Whether the issue can be resolved by the merchant. Resolution string `json:"resolution,omitempty"` @@ -1129,6 +1131,7 @@ type ProductChange struct { // Reviews](https://support.google.com/merchants/answer/14620732). // "MERCHANT_REVIEWS" - [Merchant // Reviews](https://developers.google.com/merchant-review-feeds). + // "YOUTUBE_CHECKOUT" - [YouTube Checkout]( ReportingContext string `json:"reportingContext,omitempty"` // ForceSendFields is a list of field names (e.g. "NewValue") to // unconditionally include in API requests. By default, fields with empty or diff --git a/merchantapi/promotions_v1beta/merchantapi-api.json b/merchantapi/promotions_v1beta/merchantapi-api.json index 487aaca2c01..fe95f6dc0ab 100644 --- a/merchantapi/promotions_v1beta/merchantapi-api.json +++ b/merchantapi/promotions_v1beta/merchantapi-api.json @@ -203,7 +203,7 @@ } } }, - "revision": "20241022", + "revision": "20241101", "rootUrl": "https://merchantapi.googleapis.com/", "schemas": { "Attributes": { @@ -505,7 +505,8 @@ "CLOUD_RETAIL", "LOCAL_CLOUD_RETAIL", "PRODUCT_REVIEWS", - "MERCHANT_REVIEWS" + "MERCHANT_REVIEWS", + "YOUTUBE_CHECKOUT" ], "enumDeprecated": [ false, @@ -524,6 +525,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -543,7 +545,8 @@ "[Cloud retail](https://cloud.google.com/solutions/retail).", "[Local cloud retail](https://cloud.google.com/solutions/retail).", "[Product Reviews](https://support.google.com/merchants/answer/14620732).", - "[Merchant Reviews](https://developers.google.com/merchant-review-feeds)." + "[Merchant Reviews](https://developers.google.com/merchant-review-feeds).", + "[YouTube Checkout](" ], "readOnly": true, "type": "string" @@ -662,7 +665,8 @@ "CLOUD_RETAIL", "LOCAL_CLOUD_RETAIL", "PRODUCT_REVIEWS", - "MERCHANT_REVIEWS" + "MERCHANT_REVIEWS", + "YOUTUBE_CHECKOUT" ], "enumDeprecated": [ false, @@ -681,6 +685,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -700,7 +705,8 @@ "[Cloud retail](https://cloud.google.com/solutions/retail).", "[Local cloud retail](https://cloud.google.com/solutions/retail).", "[Product Reviews](https://support.google.com/merchants/answer/14620732).", - "[Merchant Reviews](https://developers.google.com/merchant-review-feeds)." + "[Merchant Reviews](https://developers.google.com/merchant-review-feeds).", + "[YouTube Checkout](" ], "readOnly": true, "type": "string" @@ -799,7 +805,8 @@ "CLOUD_RETAIL", "LOCAL_CLOUD_RETAIL", "PRODUCT_REVIEWS", - "MERCHANT_REVIEWS" + "MERCHANT_REVIEWS", + "YOUTUBE_CHECKOUT" ], "enumDeprecated": [ false, @@ -818,6 +825,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -837,7 +845,8 @@ "[Cloud retail](https://cloud.google.com/solutions/retail).", "[Local cloud retail](https://cloud.google.com/solutions/retail).", "[Product Reviews](https://support.google.com/merchants/answer/14620732).", - "[Merchant Reviews](https://developers.google.com/merchant-review-feeds)." + "[Merchant Reviews](https://developers.google.com/merchant-review-feeds).", + "[YouTube Checkout](" ], "type": "string" } diff --git a/merchantapi/promotions_v1beta/merchantapi-gen.go b/merchantapi/promotions_v1beta/merchantapi-gen.go index bf1c45d7848..0c998564182 100644 --- a/merchantapi/promotions_v1beta/merchantapi-gen.go +++ b/merchantapi/promotions_v1beta/merchantapi-gen.go @@ -489,6 +489,7 @@ type DestinationStatus struct { // Reviews](https://support.google.com/merchants/answer/14620732). // "MERCHANT_REVIEWS" - [Merchant // Reviews](https://developers.google.com/merchant-review-feeds). + // "YOUTUBE_CHECKOUT" - [YouTube Checkout]( ReportingContext string `json:"reportingContext,omitempty"` // Status: Output only. The status for the specified destination. // @@ -630,6 +631,7 @@ type ItemLevelIssue struct { // Reviews](https://support.google.com/merchants/answer/14620732). // "MERCHANT_REVIEWS" - [Merchant // Reviews](https://developers.google.com/merchant-review-feeds). + // "YOUTUBE_CHECKOUT" - [YouTube Checkout]( ReportingContext string `json:"reportingContext,omitempty"` // Resolution: Output only. Whether the issue can be resolved by the merchant. Resolution string `json:"resolution,omitempty"` @@ -761,6 +763,7 @@ type ProductChange struct { // Reviews](https://support.google.com/merchants/answer/14620732). // "MERCHANT_REVIEWS" - [Merchant // Reviews](https://developers.google.com/merchant-review-feeds). + // "YOUTUBE_CHECKOUT" - [YouTube Checkout]( ReportingContext string `json:"reportingContext,omitempty"` // ForceSendFields is a list of field names (e.g. "NewValue") to // unconditionally include in API requests. By default, fields with empty or diff --git a/merchantapi/quota_v1beta/merchantapi-api.json b/merchantapi/quota_v1beta/merchantapi-api.json index f316bf3a961..6412659bc3b 100644 --- a/merchantapi/quota_v1beta/merchantapi-api.json +++ b/merchantapi/quota_v1beta/merchantapi-api.json @@ -150,7 +150,7 @@ } } }, - "revision": "20241022", + "revision": "20241101", "rootUrl": "https://merchantapi.googleapis.com/", "schemas": { "ListQuotaGroupsResponse": { @@ -233,7 +233,8 @@ "CLOUD_RETAIL", "LOCAL_CLOUD_RETAIL", "PRODUCT_REVIEWS", - "MERCHANT_REVIEWS" + "MERCHANT_REVIEWS", + "YOUTUBE_CHECKOUT" ], "enumDeprecated": [ false, @@ -252,6 +253,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -271,7 +273,8 @@ "[Cloud retail](https://cloud.google.com/solutions/retail).", "[Local cloud retail](https://cloud.google.com/solutions/retail).", "[Product Reviews](https://support.google.com/merchants/answer/14620732).", - "[Merchant Reviews](https://developers.google.com/merchant-review-feeds)." + "[Merchant Reviews](https://developers.google.com/merchant-review-feeds).", + "[YouTube Checkout](" ], "type": "string" } diff --git a/merchantapi/quota_v1beta/merchantapi-gen.go b/merchantapi/quota_v1beta/merchantapi-gen.go index 1d9650b678f..e35c2a1bd43 100644 --- a/merchantapi/quota_v1beta/merchantapi-gen.go +++ b/merchantapi/quota_v1beta/merchantapi-gen.go @@ -278,6 +278,7 @@ type ProductChange struct { // Reviews](https://support.google.com/merchants/answer/14620732). // "MERCHANT_REVIEWS" - [Merchant // Reviews](https://developers.google.com/merchant-review-feeds). + // "YOUTUBE_CHECKOUT" - [YouTube Checkout]( ReportingContext string `json:"reportingContext,omitempty"` // ForceSendFields is a list of field names (e.g. "NewValue") to // unconditionally include in API requests. By default, fields with empty or diff --git a/merchantapi/reports_v1beta/merchantapi-api.json b/merchantapi/reports_v1beta/merchantapi-api.json index 5f25a0ede2d..47bfd757a72 100644 --- a/merchantapi/reports_v1beta/merchantapi-api.json +++ b/merchantapi/reports_v1beta/merchantapi-api.json @@ -142,7 +142,7 @@ } } }, - "revision": "20241022", + "revision": "20241101", "rootUrl": "https://merchantapi.googleapis.com/", "schemas": { "BestSellersBrandView": { @@ -654,7 +654,8 @@ "CLOUD_RETAIL", "LOCAL_CLOUD_RETAIL", "PRODUCT_REVIEWS", - "MERCHANT_REVIEWS" + "MERCHANT_REVIEWS", + "YOUTUBE_CHECKOUT" ], "enumDeprecated": [ false, @@ -673,6 +674,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -692,7 +694,8 @@ "[Cloud retail](https://cloud.google.com/solutions/retail).", "[Local cloud retail](https://cloud.google.com/solutions/retail).", "[Product Reviews](https://support.google.com/merchants/answer/14620732).", - "[Merchant Reviews](https://developers.google.com/merchant-review-feeds)." + "[Merchant Reviews](https://developers.google.com/merchant-review-feeds).", + "[YouTube Checkout](" ], "type": "string" } @@ -1031,7 +1034,8 @@ "CLOUD_RETAIL", "LOCAL_CLOUD_RETAIL", "PRODUCT_REVIEWS", - "MERCHANT_REVIEWS" + "MERCHANT_REVIEWS", + "YOUTUBE_CHECKOUT" ], "enumDeprecated": [ false, @@ -1050,6 +1054,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -1069,7 +1074,8 @@ "[Cloud retail](https://cloud.google.com/solutions/retail).", "[Local cloud retail](https://cloud.google.com/solutions/retail).", "[Product Reviews](https://support.google.com/merchants/answer/14620732).", - "[Merchant Reviews](https://developers.google.com/merchant-review-feeds)." + "[Merchant Reviews](https://developers.google.com/merchant-review-feeds).", + "[YouTube Checkout](" ], "type": "string" } diff --git a/merchantapi/reports_v1beta/merchantapi-gen.go b/merchantapi/reports_v1beta/merchantapi-gen.go index b6b3eb00905..cd74c9782d6 100644 --- a/merchantapi/reports_v1beta/merchantapi-gen.go +++ b/merchantapi/reports_v1beta/merchantapi-gen.go @@ -775,6 +775,7 @@ type IssueSeverityPerReportingContext struct { // Reviews](https://support.google.com/merchants/answer/14620732). // "MERCHANT_REVIEWS" - [Merchant // Reviews](https://developers.google.com/merchant-review-feeds). + // "YOUTUBE_CHECKOUT" - [YouTube Checkout]( ReportingContext string `json:"reportingContext,omitempty"` // ForceSendFields is a list of field names (e.g. "DemotedCountries") to // unconditionally include in API requests. By default, fields with empty or @@ -1192,6 +1193,7 @@ type ProductChange struct { // Reviews](https://support.google.com/merchants/answer/14620732). // "MERCHANT_REVIEWS" - [Merchant // Reviews](https://developers.google.com/merchant-review-feeds). + // "YOUTUBE_CHECKOUT" - [YouTube Checkout]( ReportingContext string `json:"reportingContext,omitempty"` // ForceSendFields is a list of field names (e.g. "NewValue") to // unconditionally include in API requests. By default, fields with empty or diff --git a/merchantapi/reviews_v1beta/merchantapi-api.json b/merchantapi/reviews_v1beta/merchantapi-api.json index a9fe9d75e86..a753d13b2f4 100644 --- a/merchantapi/reviews_v1beta/merchantapi-api.json +++ b/merchantapi/reviews_v1beta/merchantapi-api.json @@ -356,7 +356,7 @@ } } }, - "revision": "20241022", + "revision": "20241101", "rootUrl": "https://merchantapi.googleapis.com/", "schemas": { "CustomAttribute": { @@ -569,7 +569,8 @@ "CLOUD_RETAIL", "LOCAL_CLOUD_RETAIL", "PRODUCT_REVIEWS", - "MERCHANT_REVIEWS" + "MERCHANT_REVIEWS", + "YOUTUBE_CHECKOUT" ], "enumDeprecated": [ false, @@ -588,6 +589,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -607,7 +609,8 @@ "[Cloud retail](https://cloud.google.com/solutions/retail).", "[Local cloud retail](https://cloud.google.com/solutions/retail).", "[Product Reviews](https://support.google.com/merchants/answer/14620732).", - "[Merchant Reviews](https://developers.google.com/merchant-review-feeds)." + "[Merchant Reviews](https://developers.google.com/merchant-review-feeds).", + "[YouTube Checkout](" ], "readOnly": true, "type": "string" @@ -663,7 +666,8 @@ "CLOUD_RETAIL", "LOCAL_CLOUD_RETAIL", "PRODUCT_REVIEWS", - "MERCHANT_REVIEWS" + "MERCHANT_REVIEWS", + "YOUTUBE_CHECKOUT" ], "enumDeprecated": [ false, @@ -682,6 +686,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -701,7 +706,8 @@ "[Cloud retail](https://cloud.google.com/solutions/retail).", "[Local cloud retail](https://cloud.google.com/solutions/retail).", "[Product Reviews](https://support.google.com/merchants/answer/14620732).", - "[Merchant Reviews](https://developers.google.com/merchant-review-feeds)." + "[Merchant Reviews](https://developers.google.com/merchant-review-feeds).", + "[YouTube Checkout](" ], "readOnly": true, "type": "string" @@ -799,7 +805,8 @@ "CLOUD_RETAIL", "LOCAL_CLOUD_RETAIL", "PRODUCT_REVIEWS", - "MERCHANT_REVIEWS" + "MERCHANT_REVIEWS", + "YOUTUBE_CHECKOUT" ], "enumDeprecated": [ false, @@ -818,6 +825,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -837,7 +845,8 @@ "[Cloud retail](https://cloud.google.com/solutions/retail).", "[Local cloud retail](https://cloud.google.com/solutions/retail).", "[Product Reviews](https://support.google.com/merchants/answer/14620732).", - "[Merchant Reviews](https://developers.google.com/merchant-review-feeds)." + "[Merchant Reviews](https://developers.google.com/merchant-review-feeds).", + "[YouTube Checkout](" ], "type": "string" } @@ -1070,7 +1079,8 @@ "CLOUD_RETAIL", "LOCAL_CLOUD_RETAIL", "PRODUCT_REVIEWS", - "MERCHANT_REVIEWS" + "MERCHANT_REVIEWS", + "YOUTUBE_CHECKOUT" ], "enumDeprecated": [ false, @@ -1089,6 +1099,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -1108,7 +1119,8 @@ "[Cloud retail](https://cloud.google.com/solutions/retail).", "[Local cloud retail](https://cloud.google.com/solutions/retail).", "[Product Reviews](https://support.google.com/merchants/answer/14620732).", - "[Merchant Reviews](https://developers.google.com/merchant-review-feeds)." + "[Merchant Reviews](https://developers.google.com/merchant-review-feeds).", + "[YouTube Checkout](" ], "readOnly": true, "type": "string" @@ -1164,7 +1176,8 @@ "CLOUD_RETAIL", "LOCAL_CLOUD_RETAIL", "PRODUCT_REVIEWS", - "MERCHANT_REVIEWS" + "MERCHANT_REVIEWS", + "YOUTUBE_CHECKOUT" ], "enumDeprecated": [ false, @@ -1183,6 +1196,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -1202,7 +1216,8 @@ "[Cloud retail](https://cloud.google.com/solutions/retail).", "[Local cloud retail](https://cloud.google.com/solutions/retail).", "[Product Reviews](https://support.google.com/merchants/answer/14620732).", - "[Merchant Reviews](https://developers.google.com/merchant-review-feeds)." + "[Merchant Reviews](https://developers.google.com/merchant-review-feeds).", + "[YouTube Checkout](" ], "readOnly": true, "type": "string" diff --git a/merchantapi/reviews_v1beta/merchantapi-gen.go b/merchantapi/reviews_v1beta/merchantapi-gen.go index a145a67a162..38ee57f4367 100644 --- a/merchantapi/reviews_v1beta/merchantapi-gen.go +++ b/merchantapi/reviews_v1beta/merchantapi-gen.go @@ -458,6 +458,7 @@ type MerchantReviewDestinationStatus struct { // Reviews](https://support.google.com/merchants/answer/14620732). // "MERCHANT_REVIEWS" - [Merchant // Reviews](https://developers.google.com/merchant-review-feeds). + // "YOUTUBE_CHECKOUT" - [YouTube Checkout]( ReportingContext string `json:"reportingContext,omitempty"` // ForceSendFields is a list of field names (e.g. "ReportingContext") to // unconditionally include in API requests. By default, fields with empty or @@ -528,6 +529,7 @@ type MerchantReviewItemLevelIssue struct { // Reviews](https://support.google.com/merchants/answer/14620732). // "MERCHANT_REVIEWS" - [Merchant // Reviews](https://developers.google.com/merchant-review-feeds). + // "YOUTUBE_CHECKOUT" - [YouTube Checkout]( ReportingContext string `json:"reportingContext,omitempty"` // Resolution: Output only. Whether the issue can be resolved by the merchant. Resolution string `json:"resolution,omitempty"` @@ -637,6 +639,7 @@ type ProductChange struct { // Reviews](https://support.google.com/merchants/answer/14620732). // "MERCHANT_REVIEWS" - [Merchant // Reviews](https://developers.google.com/merchant-review-feeds). + // "YOUTUBE_CHECKOUT" - [YouTube Checkout]( ReportingContext string `json:"reportingContext,omitempty"` // ForceSendFields is a list of field names (e.g. "NewValue") to // unconditionally include in API requests. By default, fields with empty or @@ -866,6 +869,7 @@ type ProductReviewDestinationStatus struct { // Reviews](https://support.google.com/merchants/answer/14620732). // "MERCHANT_REVIEWS" - [Merchant // Reviews](https://developers.google.com/merchant-review-feeds). + // "YOUTUBE_CHECKOUT" - [YouTube Checkout]( ReportingContext string `json:"reportingContext,omitempty"` // ForceSendFields is a list of field names (e.g. "ReportingContext") to // unconditionally include in API requests. By default, fields with empty or @@ -936,6 +940,7 @@ type ProductReviewItemLevelIssue struct { // Reviews](https://support.google.com/merchants/answer/14620732). // "MERCHANT_REVIEWS" - [Merchant // Reviews](https://developers.google.com/merchant-review-feeds). + // "YOUTUBE_CHECKOUT" - [YouTube Checkout]( ReportingContext string `json:"reportingContext,omitempty"` // Resolution: Output only. Whether the issue can be resolved by the merchant. Resolution string `json:"resolution,omitempty"` diff --git a/migrationcenter/v1alpha1/migrationcenter-api.json b/migrationcenter/v1alpha1/migrationcenter-api.json index 65236d324ec..51eb3aacb3b 100644 --- a/migrationcenter/v1alpha1/migrationcenter-api.json +++ b/migrationcenter/v1alpha1/migrationcenter-api.json @@ -2548,7 +2548,7 @@ } } }, - "revision": "20241014", + "revision": "20241027", "rootUrl": "https://migrationcenter.googleapis.com/", "schemas": { "AddAssetsToGroupRequest": { @@ -7818,6 +7818,10 @@ "description": "Describes the Migration Center settings related to the project.", "id": "Settings", "properties": { + "customerConsentForGoogleSalesToAccessMigrationCenter": { + "description": "Customer consent for Google sales to access their Cloud Migration Center project.", + "type": "boolean" + }, "disableCloudLogging": { "description": "Disable Cloud Logging for the Migration Center API. Users are billed for the logs.", "type": "boolean" diff --git a/migrationcenter/v1alpha1/migrationcenter-gen.go b/migrationcenter/v1alpha1/migrationcenter-gen.go index 409bc466a5b..dbc58a67893 100644 --- a/migrationcenter/v1alpha1/migrationcenter-gen.go +++ b/migrationcenter/v1alpha1/migrationcenter-gen.go @@ -6430,6 +6430,9 @@ func (s SendDiscoveryClientHeartbeatRequest) MarshalJSON() ([]byte, error) { // Settings: Describes the Migration Center settings related to the project. type Settings struct { + // CustomerConsentForGoogleSalesToAccessMigrationCenter: Customer consent for + // Google sales to access their Cloud Migration Center project. + CustomerConsentForGoogleSalesToAccessMigrationCenter bool `json:"customerConsentForGoogleSalesToAccessMigrationCenter,omitempty"` // DisableCloudLogging: Disable Cloud Logging for the Migration Center API. // Users are billed for the logs. DisableCloudLogging bool `json:"disableCloudLogging,omitempty"` @@ -6440,15 +6443,17 @@ type Settings struct { // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DisableCloudLogging") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See + // ForceSendFields is a list of field names (e.g. + // "CustomerConsentForGoogleSalesToAccessMigrationCenter") 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. "DisableCloudLogging") 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. + // "CustomerConsentForGoogleSalesToAccessMigrationCenter") 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:"-"` } diff --git a/networkmanagement/v1/networkmanagement-api.json b/networkmanagement/v1/networkmanagement-api.json index 1cf303fac25..d98915b1962 100644 --- a/networkmanagement/v1/networkmanagement-api.json +++ b/networkmanagement/v1/networkmanagement-api.json @@ -591,7 +591,7 @@ } } }, - "revision": "20241016", + "revision": "20241023", "rootUrl": "https://networkmanagement.googleapis.com/", "schemas": { "AbortInfo": { @@ -1340,8 +1340,12 @@ "readOnly": true, "type": "string" }, + "fqdn": { + "description": "DNS endpoint of [Google Kubernetes Engine cluster control plane](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). Requires gke_master_cluster to be set, can't be used simultaneoulsly with ip_address.", + "type": "string" + }, "gkeMasterCluster": { - "description": "A cluster URI for [Google Kubernetes Engine master](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture).", + "description": "A cluster URI for [Google Kubernetes Engine cluster control plane](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture).", "type": "string" }, "instance": { diff --git a/networkmanagement/v1/networkmanagement-gen.go b/networkmanagement/v1/networkmanagement-gen.go index 6af15061b3e..5fea2905804 100644 --- a/networkmanagement/v1/networkmanagement-gen.go +++ b/networkmanagement/v1/networkmanagement-gen.go @@ -1146,7 +1146,13 @@ type Endpoint struct { // "VPN_GATEWAY" - Classic Cloud VPN Gateway. // "PSC" - Forwarding Rule is a Private Service Connect endpoint. ForwardingRuleTarget string `json:"forwardingRuleTarget,omitempty"` - // GkeMasterCluster: A cluster URI for Google Kubernetes Engine master + // Fqdn: DNS endpoint of Google Kubernetes Engine cluster control plane + // (https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). + // Requires gke_master_cluster to be set, can't be used simultaneoulsly with + // ip_address. + Fqdn string `json:"fqdn,omitempty"` + // GkeMasterCluster: A cluster URI for Google Kubernetes Engine cluster control + // plane // (https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). GkeMasterCluster string `json:"gkeMasterCluster,omitempty"` // Instance: A Compute Engine instance URI. diff --git a/networkmanagement/v1beta1/networkmanagement-api.json b/networkmanagement/v1beta1/networkmanagement-api.json index dd33f9834c8..3412555070f 100644 --- a/networkmanagement/v1beta1/networkmanagement-api.json +++ b/networkmanagement/v1beta1/networkmanagement-api.json @@ -758,7 +758,7 @@ } } }, - "revision": "20241016", + "revision": "20241023", "rootUrl": "https://networkmanagement.googleapis.com/", "schemas": { "AbortInfo": { @@ -1507,8 +1507,12 @@ "readOnly": true, "type": "string" }, + "fqdn": { + "description": "DNS endpoint of [Google Kubernetes Engine cluster control plane](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). Requires gke_master_cluster to be set, can't be used simultaneoulsly with ip_address.", + "type": "string" + }, "gkeMasterCluster": { - "description": "A cluster URI for [Google Kubernetes Engine master](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture).", + "description": "A cluster URI for [Google Kubernetes Engine cluster control plane](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture).", "type": "string" }, "instance": { diff --git a/networkmanagement/v1beta1/networkmanagement-gen.go b/networkmanagement/v1beta1/networkmanagement-gen.go index 297d2988ad5..1a091bef660 100644 --- a/networkmanagement/v1beta1/networkmanagement-gen.go +++ b/networkmanagement/v1beta1/networkmanagement-gen.go @@ -1158,7 +1158,13 @@ type Endpoint struct { // "VPN_GATEWAY" - Classic Cloud VPN Gateway. // "PSC" - Forwarding Rule is a Private Service Connect endpoint. ForwardingRuleTarget string `json:"forwardingRuleTarget,omitempty"` - // GkeMasterCluster: A cluster URI for Google Kubernetes Engine master + // Fqdn: DNS endpoint of Google Kubernetes Engine cluster control plane + // (https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). + // Requires gke_master_cluster to be set, can't be used simultaneoulsly with + // ip_address. + Fqdn string `json:"fqdn,omitempty"` + // GkeMasterCluster: A cluster URI for Google Kubernetes Engine cluster control + // plane // (https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). GkeMasterCluster string `json:"gkeMasterCluster,omitempty"` // Instance: A Compute Engine instance URI. diff --git a/networkservices/v1beta1/networkservices-api.json b/networkservices/v1beta1/networkservices-api.json index 209a7904c7c..e6d34ea1d3b 100644 --- a/networkservices/v1beta1/networkservices-api.json +++ b/networkservices/v1beta1/networkservices-api.json @@ -2527,7 +2527,7 @@ } } }, - "revision": "20241010", + "revision": "20241016", "rootUrl": "https://networkservices.googleapis.com/", "schemas": { "AuthzExtension": { @@ -2615,7 +2615,7 @@ ], "enumDescriptions": [ "Not specified.", - "The extension service uses ExtProc GRPC API." + "The extension service uses ExtProc GRPC API over a gRPC stream. This is the default value if the wire format is not specified. The backend service for the extension must use HTTP2 or H2C as the protocol. All `supported_events` for a client request will be sent as part of the same gRPC stream." ], "type": "string" } diff --git a/networkservices/v1beta1/networkservices-gen.go b/networkservices/v1beta1/networkservices-gen.go index 93c0685a628..aa13c7d3f59 100644 --- a/networkservices/v1beta1/networkservices-gen.go +++ b/networkservices/v1beta1/networkservices-gen.go @@ -428,7 +428,11 @@ type AuthzExtension struct { // // Possible values: // "WIRE_FORMAT_UNSPECIFIED" - Not specified. - // "EXT_PROC_GRPC" - The extension service uses ExtProc GRPC API. + // "EXT_PROC_GRPC" - The extension service uses ExtProc GRPC API over a gRPC + // stream. This is the default value if the wire format is not specified. The + // backend service for the extension must use HTTP2 or H2C as the protocol. All + // `supported_events` for a client request will be sent as part of the same + // gRPC stream. WireFormat string `json:"wireFormat,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. diff --git a/osconfig/v2beta/osconfig-api.json b/osconfig/v2beta/osconfig-api.json index 18321a3b34e..9ce2bdf3b75 100644 --- a/osconfig/v2beta/osconfig-api.json +++ b/osconfig/v2beta/osconfig-api.json @@ -123,7 +123,7 @@ ], "parameters": { "parent": { - "description": "Required. The parent resource name in the form of: `organizations/{organization_id}/locations/global` `folders/{folder_id}/locations/global` 'projects/{project_id_or_number}/locations/global'", + "description": "Required. The parent resource name in the form of: * `organizations/{organization_id}/locations/global` * `folders/{folder_id}/locations/global` * `projects/{project_id_or_number}/locations/global`", "location": "path", "pattern": "^folders/[^/]+/locations/global$", "required": true, @@ -440,7 +440,7 @@ ], "parameters": { "parent": { - "description": "Required. The parent resource name in the form of: `organizations/{organization_id}/locations/global` `folders/{folder_id}/locations/global` 'projects/{project_id_or_number}/locations/global'", + "description": "Required. The parent resource name in the form of: * `organizations/{organization_id}/locations/global` * `folders/{folder_id}/locations/global` * `projects/{project_id_or_number}/locations/global`", "location": "path", "pattern": "^organizations/[^/]+/locations/global$", "required": true, @@ -757,7 +757,7 @@ ], "parameters": { "parent": { - "description": "Required. The parent resource name in the form of: `organizations/{organization_id}/locations/global` `folders/{folder_id}/locations/global` 'projects/{project_id_or_number}/locations/global'", + "description": "Required. The parent resource name in the form of: * `organizations/{organization_id}/locations/global` * `folders/{folder_id}/locations/global` * `projects/{project_id_or_number}/locations/global`", "location": "path", "pattern": "^projects/[^/]+/locations/global$", "required": true, @@ -1057,7 +1057,7 @@ } } }, - "revision": "20241028", + "revision": "20241104", "rootUrl": "https://osconfig.googleapis.com/", "schemas": { "CancelOperationRequest": { diff --git a/osconfig/v2beta/osconfig-gen.go b/osconfig/v2beta/osconfig-gen.go index e8e1f4af191..e64e4bd54cf 100644 --- a/osconfig/v2beta/osconfig-gen.go +++ b/osconfig/v2beta/osconfig-gen.go @@ -1924,10 +1924,10 @@ type FoldersLocationsGlobalPolicyOrchestratorsCreateCall struct { // might be only set to `ACTIVE`, `STOPPED` or omitted (in which case, the // created resource will be in `ACTIVE` state anyway). // -// - parent: The parent resource name in the form of: -// `organizations/{organization_id}/locations/global` -// `folders/{folder_id}/locations/global` -// 'projects/{project_id_or_number}/locations/global'. +// - parent: The parent resource name in the form of: * +// `organizations/{organization_id}/locations/global` * +// `folders/{folder_id}/locations/global` * +// `projects/{project_id_or_number}/locations/global`. func (r *FoldersLocationsGlobalPolicyOrchestratorsService) Create(parent string, googlecloudosconfigv2beta__policyorchestrator *GoogleCloudOsconfigV2beta__PolicyOrchestrator) *FoldersLocationsGlobalPolicyOrchestratorsCreateCall { c := &FoldersLocationsGlobalPolicyOrchestratorsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -3024,10 +3024,10 @@ type OrganizationsLocationsGlobalPolicyOrchestratorsCreateCall struct { // state field might be only set to `ACTIVE`, `STOPPED` or omitted (in which // case, the created resource will be in `ACTIVE` state anyway). // -// - parent: The parent resource name in the form of: -// `organizations/{organization_id}/locations/global` -// `folders/{folder_id}/locations/global` -// 'projects/{project_id_or_number}/locations/global'. +// - parent: The parent resource name in the form of: * +// `organizations/{organization_id}/locations/global` * +// `folders/{folder_id}/locations/global` * +// `projects/{project_id_or_number}/locations/global`. func (r *OrganizationsLocationsGlobalPolicyOrchestratorsService) Create(parent string, googlecloudosconfigv2beta__policyorchestrator *GoogleCloudOsconfigV2beta__PolicyOrchestrator) *OrganizationsLocationsGlobalPolicyOrchestratorsCreateCall { c := &OrganizationsLocationsGlobalPolicyOrchestratorsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -4125,10 +4125,10 @@ type ProjectsLocationsGlobalPolicyOrchestratorsCreateCall struct { // might be only set to `ACTIVE`, `STOPPED` or omitted (in which case, the // created resource will be in `ACTIVE` state anyway). // -// - parent: The parent resource name in the form of: -// `organizations/{organization_id}/locations/global` -// `folders/{folder_id}/locations/global` -// 'projects/{project_id_or_number}/locations/global'. +// - parent: The parent resource name in the form of: * +// `organizations/{organization_id}/locations/global` * +// `folders/{folder_id}/locations/global` * +// `projects/{project_id_or_number}/locations/global`. func (r *ProjectsLocationsGlobalPolicyOrchestratorsService) Create(parent string, googlecloudosconfigv2beta__policyorchestrator *GoogleCloudOsconfigV2beta__PolicyOrchestrator) *ProjectsLocationsGlobalPolicyOrchestratorsCreateCall { c := &ProjectsLocationsGlobalPolicyOrchestratorsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent diff --git a/places/v1/places-api.json b/places/v1/places-api.json index 0d9c10a4466..0a4477c3f41 100644 --- a/places/v1/places-api.json +++ b/places/v1/places-api.json @@ -280,7 +280,7 @@ } } }, - "revision": "20241028", + "revision": "20241029", "rootUrl": "https://places.googleapis.com/", "schemas": { "GoogleGeoTypeViewport": { @@ -1036,7 +1036,6 @@ "type": "array" }, "businessStatus": { - "description": "The business status for the place.", "enum": [ "BUSINESS_STATUS_UNSPECIFIED", "OPERATIONAL", diff --git a/places/v1/places-gen.go b/places/v1/places-gen.go index eba4d2c8d8d..b7d14392b2d 100644 --- a/places/v1/places-gen.go +++ b/places/v1/places-gen.go @@ -1309,8 +1309,6 @@ type GoogleMapsPlacesV1Place struct { AreaSummary *GoogleMapsPlacesV1PlaceAreaSummary `json:"areaSummary,omitempty"` // Attributions: A set of data provider that must be shown with this result. Attributions []*GoogleMapsPlacesV1PlaceAttribution `json:"attributions,omitempty"` - // BusinessStatus: The business status for the place. - // // Possible values: // "BUSINESS_STATUS_UNSPECIFIED" - Default value. This value is unused. // "OPERATIONAL" - The establishment is operational, not necessarily open diff --git a/playdeveloperreporting/v1alpha1/playdeveloperreporting-api.json b/playdeveloperreporting/v1alpha1/playdeveloperreporting-api.json index aaef069b42e..842012f6a61 100644 --- a/playdeveloperreporting/v1alpha1/playdeveloperreporting-api.json +++ b/playdeveloperreporting/v1alpha1/playdeveloperreporting-api.json @@ -947,7 +947,7 @@ } } }, - "revision": "20241009", + "revision": "20241102", "rootUrl": "https://playdeveloperreporting.googleapis.com/", "schemas": { "GooglePlayDeveloperReportingV1alpha1Anomaly": { @@ -2164,7 +2164,7 @@ "type": "object" }, "GoogleTypeDecimal": { - "description": "A representation of a decimal value, such as 2.5. Clients may convert values into language-native decimal formats, such as Java's BigDecimal or Python's decimal.Decimal. [BigDecimal]: https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html [decimal.Decimal]: https://docs.python.org/3/library/decimal.html", + "description": "A representation of a decimal value, such as 2.5. Clients may convert values into language-native decimal formats, such as Java's [BigDecimal](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html) or Python's [decimal.Decimal](https://docs.python.org/3/library/decimal.html).", "id": "GoogleTypeDecimal", "properties": { "value": { diff --git a/playdeveloperreporting/v1alpha1/playdeveloperreporting-gen.go b/playdeveloperreporting/v1alpha1/playdeveloperreporting-gen.go index 62b91295298..3f681d07889 100644 --- a/playdeveloperreporting/v1alpha1/playdeveloperreporting-gen.go +++ b/playdeveloperreporting/v1alpha1/playdeveloperreporting-gen.go @@ -2682,9 +2682,10 @@ func (s GoogleTypeDateTime) MarshalJSON() ([]byte, error) { // GoogleTypeDecimal: A representation of a decimal value, such as 2.5. Clients // may convert values into language-native decimal formats, such as Java's -// BigDecimal or Python's decimal.Decimal. [BigDecimal]: -// https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html -// [decimal.Decimal]: https://docs.python.org/3/library/decimal.html +// BigDecimal +// (https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html) +// or Python's decimal.Decimal +// (https://docs.python.org/3/library/decimal.html). type GoogleTypeDecimal struct { // Value: The decimal value, as a string. The string representation consists of // an optional sign, `+` (`U+002B`) or `-` (`U+002D`), followed by a sequence diff --git a/playdeveloperreporting/v1beta1/playdeveloperreporting-api.json b/playdeveloperreporting/v1beta1/playdeveloperreporting-api.json index 36b7bcc1527..da952d3cf19 100644 --- a/playdeveloperreporting/v1beta1/playdeveloperreporting-api.json +++ b/playdeveloperreporting/v1beta1/playdeveloperreporting-api.json @@ -947,7 +947,7 @@ } } }, - "revision": "20241009", + "revision": "20241102", "rootUrl": "https://playdeveloperreporting.googleapis.com/", "schemas": { "GooglePlayDeveloperReportingV1beta1Anomaly": { @@ -2164,7 +2164,7 @@ "type": "object" }, "GoogleTypeDecimal": { - "description": "A representation of a decimal value, such as 2.5. Clients may convert values into language-native decimal formats, such as Java's BigDecimal or Python's decimal.Decimal. [BigDecimal]: https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html [decimal.Decimal]: https://docs.python.org/3/library/decimal.html", + "description": "A representation of a decimal value, such as 2.5. Clients may convert values into language-native decimal formats, such as Java's [BigDecimal](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html) or Python's [decimal.Decimal](https://docs.python.org/3/library/decimal.html).", "id": "GoogleTypeDecimal", "properties": { "value": { diff --git a/playdeveloperreporting/v1beta1/playdeveloperreporting-gen.go b/playdeveloperreporting/v1beta1/playdeveloperreporting-gen.go index 1ed3c1e1357..daf3e50d659 100644 --- a/playdeveloperreporting/v1beta1/playdeveloperreporting-gen.go +++ b/playdeveloperreporting/v1beta1/playdeveloperreporting-gen.go @@ -2682,9 +2682,10 @@ func (s GoogleTypeDateTime) MarshalJSON() ([]byte, error) { // GoogleTypeDecimal: A representation of a decimal value, such as 2.5. Clients // may convert values into language-native decimal formats, such as Java's -// BigDecimal or Python's decimal.Decimal. [BigDecimal]: -// https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html -// [decimal.Decimal]: https://docs.python.org/3/library/decimal.html +// BigDecimal +// (https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html) +// or Python's decimal.Decimal +// (https://docs.python.org/3/library/decimal.html). type GoogleTypeDecimal struct { // Value: The decimal value, as a string. The string representation consists of // an optional sign, `+` (`U+002B`) or `-` (`U+002D`), followed by a sequence diff --git a/recaptchaenterprise/v1/recaptchaenterprise-api.json b/recaptchaenterprise/v1/recaptchaenterprise-api.json index 1f90f6a482c..4e2f5db32e5 100644 --- a/recaptchaenterprise/v1/recaptchaenterprise-api.json +++ b/recaptchaenterprise/v1/recaptchaenterprise-api.json @@ -786,7 +786,7 @@ } } }, - "revision": "20241013", + "revision": "20241027", "rootUrl": "https://recaptchaenterprise.googleapis.com/", "schemas": { "GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment": { @@ -1803,7 +1803,7 @@ "type": "object" }, "GoogleCloudRecaptchaenterpriseV1RemoveIpOverrideRequest": { - "description": "The removeIpOverride request message.", + "description": "The RemoveIpOverride request message.", "id": "GoogleCloudRecaptchaenterpriseV1RemoveIpOverrideRequest", "properties": { "ipOverrideData": { @@ -1855,7 +1855,7 @@ "id": "GoogleCloudRecaptchaenterpriseV1RiskAnalysis", "properties": { "challenge": { - "description": "Output only. Challenge information for SCORE_AND_CHALLENGE keys", + "description": "Output only. Challenge information for SCORE_AND_CHALLENGE and INVISIBLE keys", "enum": [ "CHALLENGE_UNSPECIFIED", "NOCAPTCHA", diff --git a/recaptchaenterprise/v1/recaptchaenterprise-gen.go b/recaptchaenterprise/v1/recaptchaenterprise-gen.go index 549e28b0dee..0c9b80e81ca 100644 --- a/recaptchaenterprise/v1/recaptchaenterprise-gen.go +++ b/recaptchaenterprise/v1/recaptchaenterprise-gen.go @@ -1672,7 +1672,7 @@ func (s GoogleCloudRecaptchaenterpriseV1RelatedAccountGroupMembership) MarshalJS } // GoogleCloudRecaptchaenterpriseV1RemoveIpOverrideRequest: The -// removeIpOverride request message. +// RemoveIpOverride request message. type GoogleCloudRecaptchaenterpriseV1RemoveIpOverrideRequest struct { // IpOverrideData: Required. IP override to be removed from the key. IpOverrideData *GoogleCloudRecaptchaenterpriseV1IpOverrideData `json:"ipOverrideData,omitempty"` @@ -1766,7 +1766,8 @@ func (s GoogleCloudRecaptchaenterpriseV1RetrieveLegacySecretKeyResponse) Marshal // GoogleCloudRecaptchaenterpriseV1RiskAnalysis: Risk analysis result for an // event. type GoogleCloudRecaptchaenterpriseV1RiskAnalysis struct { - // Challenge: Output only. Challenge information for SCORE_AND_CHALLENGE keys + // Challenge: Output only. Challenge information for SCORE_AND_CHALLENGE and + // INVISIBLE keys // // Possible values: // "CHALLENGE_UNSPECIFIED" - Default unspecified type. diff --git a/servicenetworking/v1/servicenetworking-api.json b/servicenetworking/v1/servicenetworking-api.json index 88feacde98f..35d679b8fc2 100644 --- a/servicenetworking/v1/servicenetworking-api.json +++ b/servicenetworking/v1/servicenetworking-api.json @@ -1029,7 +1029,7 @@ } } }, - "revision": "20240925", + "revision": "20241103", "rootUrl": "https://servicenetworking.googleapis.com/", "schemas": { "AddDnsRecordSetMetadata": { @@ -3419,7 +3419,7 @@ "type": "string" }, "unit": { - "description": "Specify the unit of the quota limit. It uses the same syntax as Metric.unit. The supported unit kinds are determined by the quota backend system. Here are some examples: * \"1/min/{project}\" for quota per minute per project. Note: the order of unit components is insignificant. The \"1\" at the beginning is required to follow the metric unit syntax.", + "description": "Specify the unit of the quota limit. It uses the same syntax as MetricDescriptor.unit. The supported unit kinds are determined by the quota backend system. Here are some examples: * \"1/min/{project}\" for quota per minute per project. Note: the order of unit components is insignificant. The \"1\" at the beginning is required to follow the metric unit syntax.", "type": "string" }, "values": { diff --git a/servicenetworking/v1/servicenetworking-gen.go b/servicenetworking/v1/servicenetworking-gen.go index 3a7474063a0..0af44d6b730 100644 --- a/servicenetworking/v1/servicenetworking-gen.go +++ b/servicenetworking/v1/servicenetworking-gen.go @@ -3917,10 +3917,10 @@ type QuotaLimit struct { // as well as '-'. The maximum length of the limit name is 64 characters. Name string `json:"name,omitempty"` // Unit: Specify the unit of the quota limit. It uses the same syntax as - // Metric.unit. The supported unit kinds are determined by the quota backend - // system. Here are some examples: * "1/min/{project}" for quota per minute per - // project. Note: the order of unit components is insignificant. The "1" at the - // beginning is required to follow the metric unit syntax. + // MetricDescriptor.unit. The supported unit kinds are determined by the quota + // backend system. Here are some examples: * "1/min/{project}" for quota per + // minute per project. Note: the order of unit components is insignificant. The + // "1" at the beginning is required to follow the metric unit syntax. Unit string `json:"unit,omitempty"` // Values: Tiered limit values. You must specify this as a key:value pair, with // an integer value that is the maximum number of requests allowed for the diff --git a/servicenetworking/v1beta/servicenetworking-api.json b/servicenetworking/v1beta/servicenetworking-api.json index ca7d79162da..87f1982b684 100644 --- a/servicenetworking/v1beta/servicenetworking-api.json +++ b/servicenetworking/v1beta/servicenetworking-api.json @@ -307,7 +307,7 @@ } } }, - "revision": "20240925", + "revision": "20241103", "rootUrl": "https://servicenetworking.googleapis.com/", "schemas": { "AddDnsRecordSetMetadata": { @@ -2439,7 +2439,7 @@ "type": "string" }, "unit": { - "description": "Specify the unit of the quota limit. It uses the same syntax as Metric.unit. The supported unit kinds are determined by the quota backend system. Here are some examples: * \"1/min/{project}\" for quota per minute per project. Note: the order of unit components is insignificant. The \"1\" at the beginning is required to follow the metric unit syntax.", + "description": "Specify the unit of the quota limit. It uses the same syntax as MetricDescriptor.unit. The supported unit kinds are determined by the quota backend system. Here are some examples: * \"1/min/{project}\" for quota per minute per project. Note: the order of unit components is insignificant. The \"1\" at the beginning is required to follow the metric unit syntax.", "type": "string" }, "values": { diff --git a/servicenetworking/v1beta/servicenetworking-gen.go b/servicenetworking/v1beta/servicenetworking-gen.go index 90f42c20dbd..668142d12b3 100644 --- a/servicenetworking/v1beta/servicenetworking-gen.go +++ b/servicenetworking/v1beta/servicenetworking-gen.go @@ -3369,10 +3369,10 @@ type QuotaLimit struct { // as well as '-'. The maximum length of the limit name is 64 characters. Name string `json:"name,omitempty"` // Unit: Specify the unit of the quota limit. It uses the same syntax as - // Metric.unit. The supported unit kinds are determined by the quota backend - // system. Here are some examples: * "1/min/{project}" for quota per minute per - // project. Note: the order of unit components is insignificant. The "1" at the - // beginning is required to follow the metric unit syntax. + // MetricDescriptor.unit. The supported unit kinds are determined by the quota + // backend system. Here are some examples: * "1/min/{project}" for quota per + // minute per project. Note: the order of unit components is insignificant. The + // "1" at the beginning is required to follow the metric unit syntax. Unit string `json:"unit,omitempty"` // Values: Tiered limit values. You must specify this as a key:value pair, with // an integer value that is the maximum number of requests allowed for the diff --git a/serviceusage/v1/serviceusage-api.json b/serviceusage/v1/serviceusage-api.json index a004d52f04a..7e76a43bfe5 100644 --- a/serviceusage/v1/serviceusage-api.json +++ b/serviceusage/v1/serviceusage-api.json @@ -426,7 +426,7 @@ } } }, - "revision": "20240929", + "revision": "20241025", "rootUrl": "https://serviceusage.googleapis.com/", "schemas": { "AddEnableRulesMetadata": { @@ -2044,6 +2044,171 @@ "properties": {}, "type": "object" }, + "GoogleApiServiceusageV2betaAnalysis": { + "description": "A message to group the analysis information.", + "id": "GoogleApiServiceusageV2betaAnalysis", + "properties": { + "analysis": { + "$ref": "GoogleApiServiceusageV2betaAnalysisResult", + "description": "Output only. Analysis result of updating a policy.", + "readOnly": true + }, + "analysisType": { + "description": "Output only. The type of analysis.", + "enum": [ + "ANALYSIS_TYPE_UNSPECIFIED", + "ANALYSIS_TYPE_DEPENDENCY", + "ANALYSIS_TYPE_RESOURCE_USAGE" + ], + "enumDescriptions": [ + "Unspecified analysis type. Do not use.", + "The analysis of service dependencies.", + "The analysis of service resource usage." + ], + "readOnly": true, + "type": "string" + }, + "displayName": { + "description": "Output only. The user friendly display name of the analysis type. E.g. service dependency analysis, service resource usage analysis, etc.", + "readOnly": true, + "type": "string" + }, + "service": { + "description": "The names of the service that has analysis result of warnings or blockers. Example: `services/storage.googleapis.com`.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleApiServiceusageV2betaAnalysisResult": { + "description": "An analysis result including blockers and warnings.", + "id": "GoogleApiServiceusageV2betaAnalysisResult", + "properties": { + "blockers": { + "description": "Blocking information that would prevent the policy changes at runtime.", + "items": { + "$ref": "GoogleApiServiceusageV2betaImpact" + }, + "type": "array" + }, + "warnings": { + "description": "Warning information indicating that the policy changes might be unsafe, but will not block the changes at runtime.", + "items": { + "$ref": "GoogleApiServiceusageV2betaImpact" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleApiServiceusageV2betaAnalyzeConsumerPolicyMetadata": { + "description": "Metadata for the `AnalyzeConsumerPolicy` method.", + "id": "GoogleApiServiceusageV2betaAnalyzeConsumerPolicyMetadata", + "properties": {}, + "type": "object" + }, + "GoogleApiServiceusageV2betaAnalyzeConsumerPolicyResponse": { + "description": "The response of analyzing a consumer policy update.", + "id": "GoogleApiServiceusageV2betaAnalyzeConsumerPolicyResponse", + "properties": { + "analysis": { + "description": "The list of analyses returned from performing the intended policy update analysis. The analysis is grouped by service name and different analysis types. The empty analysis list means that the consumer policy can be updated without any warnings or blockers.", + "items": { + "$ref": "GoogleApiServiceusageV2betaAnalysis" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleApiServiceusageV2betaConsumerPolicy": { + "description": "Consumer Policy is a set of rules that define what services or service groups can be used for a cloud resource hierarchy.", + "id": "GoogleApiServiceusageV2betaConsumerPolicy", + "properties": { + "annotations": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Annotations is an unstructured key-value map stored with a policy that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. [AIP-128](https://google.aip.dev/128#annotations)", + "type": "object" + }, + "createTime": { + "description": "Output only. The time the policy was created. For singleton policies, this is the first touch of the policy.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "enableRules": { + "description": "Enable rules define usable services, groups, and categories. There can currently be at most one `EnableRule`. This restriction will be lifted in later releases.", + "items": { + "$ref": "GoogleApiServiceusageV2betaEnableRule" + }, + "type": "array" + }, + "etag": { + "description": "Output only. An opaque tag indicating the current version of the policy, used for concurrency control.", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Output only. The resource name of the policy. Only the `default` policy is supported: `projects/12345/consumerPolicies/default`, `folders/12345/consumerPolicies/default`, `organizations/12345/consumerPolicies/default`.", + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Output only. The time the policy was last updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleApiServiceusageV2betaEnableRule": { + "description": "The consumer policy rule that defines enabled services, groups, and categories.", + "id": "GoogleApiServiceusageV2betaEnableRule", + "properties": { + "services": { + "description": "The names of the services that are enabled. Example: `services/storage.googleapis.com`.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleApiServiceusageV2betaImpact": { + "description": "A message to group impacts of updating a policy.", + "id": "GoogleApiServiceusageV2betaImpact", + "properties": { + "detail": { + "description": "Output only. User friendly impact detail in a free form message.", + "readOnly": true, + "type": "string" + }, + "impactType": { + "description": "Output only. The type of impact.", + "enum": [ + "IMPACT_TYPE_UNSPECIFIED", + "DEPENDENCY_MISSING_DEPENDENCIES" + ], + "enumDescriptions": [ + "Reserved Blocks (Block n contains codes from 100n to 100(n+1) -1 Block 0 - Special/Admin codes Block 1 - Impact Type of ANALYSIS_TYPE_DEPENDENCY Block 2 - Impact Type of ANALYSIS_TYPE_RESOURCE_USAGE ...", + "Block 1 - Impact Type of ANALYSIS_TYPE_DEPENDENCY" + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleApiServiceusageV2betaUpdateConsumerPolicyMetadata": { + "description": "Metadata for the `UpdateConsumerPolicy` method.", + "id": "GoogleApiServiceusageV2betaUpdateConsumerPolicyMetadata", + "properties": {}, + "type": "object" + }, "Http": { "description": "Defines the HTTP configuration for an API service. It contains a list of HttpRule, each specifying the mapping of an RPC method to one or more HTTP REST API methods.", "id": "Http", diff --git a/serviceusage/v1/serviceusage-gen.go b/serviceusage/v1/serviceusage-gen.go index 16bfdd400ea..ecef356446a 100644 --- a/serviceusage/v1/serviceusage-gen.go +++ b/serviceusage/v1/serviceusage-gen.go @@ -2296,6 +2296,207 @@ func (s GoogleApiServiceusageV2alphaEnableRule) MarshalJSON() ([]byte, error) { type GoogleApiServiceusageV2alphaUpdateConsumerPolicyMetadata struct { } +// GoogleApiServiceusageV2betaAnalysis: A message to group the analysis +// information. +type GoogleApiServiceusageV2betaAnalysis struct { + // Analysis: Output only. Analysis result of updating a policy. + Analysis *GoogleApiServiceusageV2betaAnalysisResult `json:"analysis,omitempty"` + // AnalysisType: Output only. The type of analysis. + // + // Possible values: + // "ANALYSIS_TYPE_UNSPECIFIED" - Unspecified analysis type. Do not use. + // "ANALYSIS_TYPE_DEPENDENCY" - The analysis of service dependencies. + // "ANALYSIS_TYPE_RESOURCE_USAGE" - The analysis of service resource usage. + AnalysisType string `json:"analysisType,omitempty"` + // DisplayName: Output only. The user friendly display name of the analysis + // type. E.g. service dependency analysis, service resource usage analysis, + // etc. + DisplayName string `json:"displayName,omitempty"` + // Service: The names of the service that has analysis result of warnings or + // blockers. Example: `services/storage.googleapis.com`. + Service string `json:"service,omitempty"` + // ForceSendFields is a list of field names (e.g. "Analysis") 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. "Analysis") 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 GoogleApiServiceusageV2betaAnalysis) MarshalJSON() ([]byte, error) { + type NoMethod GoogleApiServiceusageV2betaAnalysis + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleApiServiceusageV2betaAnalysisResult: An analysis result including +// blockers and warnings. +type GoogleApiServiceusageV2betaAnalysisResult struct { + // Blockers: Blocking information that would prevent the policy changes at + // runtime. + Blockers []*GoogleApiServiceusageV2betaImpact `json:"blockers,omitempty"` + // Warnings: Warning information indicating that the policy changes might be + // unsafe, but will not block the changes at runtime. + Warnings []*GoogleApiServiceusageV2betaImpact `json:"warnings,omitempty"` + // ForceSendFields is a list of field names (e.g. "Blockers") 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. "Blockers") 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 GoogleApiServiceusageV2betaAnalysisResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleApiServiceusageV2betaAnalysisResult + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleApiServiceusageV2betaAnalyzeConsumerPolicyMetadata: Metadata for the +// `AnalyzeConsumerPolicy` method. +type GoogleApiServiceusageV2betaAnalyzeConsumerPolicyMetadata struct { +} + +// GoogleApiServiceusageV2betaAnalyzeConsumerPolicyResponse: The response of +// analyzing a consumer policy update. +type GoogleApiServiceusageV2betaAnalyzeConsumerPolicyResponse struct { + // Analysis: The list of analyses returned from performing the intended policy + // update analysis. The analysis is grouped by service name and different + // analysis types. The empty analysis list means that the consumer policy can + // be updated without any warnings or blockers. + Analysis []*GoogleApiServiceusageV2betaAnalysis `json:"analysis,omitempty"` + // ForceSendFields is a list of field names (e.g. "Analysis") 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. "Analysis") 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 GoogleApiServiceusageV2betaAnalyzeConsumerPolicyResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleApiServiceusageV2betaAnalyzeConsumerPolicyResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleApiServiceusageV2betaConsumerPolicy: Consumer Policy is a set of rules +// that define what services or service groups can be used for a cloud resource +// hierarchy. +type GoogleApiServiceusageV2betaConsumerPolicy struct { + // Annotations: Optional. Annotations is an unstructured key-value map stored + // with a policy that may be set by external tools to store and retrieve + // arbitrary metadata. They are not queryable and should be preserved when + // modifying objects. AIP-128 (https://google.aip.dev/128#annotations) + Annotations map[string]string `json:"annotations,omitempty"` + // CreateTime: Output only. The time the policy was created. For singleton + // policies, this is the first touch of the policy. + CreateTime string `json:"createTime,omitempty"` + // EnableRules: Enable rules define usable services, groups, and categories. + // There can currently be at most one `EnableRule`. This restriction will be + // lifted in later releases. + EnableRules []*GoogleApiServiceusageV2betaEnableRule `json:"enableRules,omitempty"` + // Etag: Output only. An opaque tag indicating the current version of the + // policy, used for concurrency control. + Etag string `json:"etag,omitempty"` + // Name: Output only. The resource name of the policy. Only the `default` + // policy is supported: `projects/12345/consumerPolicies/default`, + // `folders/12345/consumerPolicies/default`, + // `organizations/12345/consumerPolicies/default`. + Name string `json:"name,omitempty"` + // UpdateTime: Output only. The time the policy was last updated. + UpdateTime string `json:"updateTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "Annotations") 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. "Annotations") 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 GoogleApiServiceusageV2betaConsumerPolicy) MarshalJSON() ([]byte, error) { + type NoMethod GoogleApiServiceusageV2betaConsumerPolicy + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleApiServiceusageV2betaEnableRule: The consumer policy rule that defines +// enabled services, groups, and categories. +type GoogleApiServiceusageV2betaEnableRule struct { + // Services: The names of the services that are enabled. Example: + // `services/storage.googleapis.com`. + Services []string `json:"services,omitempty"` + // ForceSendFields is a list of field names (e.g. "Services") 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. "Services") 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 GoogleApiServiceusageV2betaEnableRule) MarshalJSON() ([]byte, error) { + type NoMethod GoogleApiServiceusageV2betaEnableRule + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleApiServiceusageV2betaImpact: A message to group impacts of updating a +// policy. +type GoogleApiServiceusageV2betaImpact struct { + // Detail: Output only. User friendly impact detail in a free form message. + Detail string `json:"detail,omitempty"` + // ImpactType: Output only. The type of impact. + // + // Possible values: + // "IMPACT_TYPE_UNSPECIFIED" - Reserved Blocks (Block n contains codes from + // 100n to 100(n+1) -1 Block 0 - Special/Admin codes Block 1 - Impact Type of + // ANALYSIS_TYPE_DEPENDENCY Block 2 - Impact Type of + // ANALYSIS_TYPE_RESOURCE_USAGE ... + // "DEPENDENCY_MISSING_DEPENDENCIES" - Block 1 - Impact Type of + // ANALYSIS_TYPE_DEPENDENCY + ImpactType string `json:"impactType,omitempty"` + // ForceSendFields is a list of field names (e.g. "Detail") 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. "Detail") 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 GoogleApiServiceusageV2betaImpact) MarshalJSON() ([]byte, error) { + type NoMethod GoogleApiServiceusageV2betaImpact + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleApiServiceusageV2betaUpdateConsumerPolicyMetadata: Metadata for the +// `UpdateConsumerPolicy` method. +type GoogleApiServiceusageV2betaUpdateConsumerPolicyMetadata struct { +} + // Http: Defines the HTTP configuration for an API service. It contains a list // of HttpRule, each specifying the mapping of an RPC method to one or more // HTTP REST API methods. diff --git a/serviceusage/v1beta1/serviceusage-api.json b/serviceusage/v1beta1/serviceusage-api.json index 5cdee347420..07f2a796ff3 100644 --- a/serviceusage/v1beta1/serviceusage-api.json +++ b/serviceusage/v1beta1/serviceusage-api.json @@ -964,7 +964,7 @@ } } }, - "revision": "20240929", + "revision": "20241025", "rootUrl": "https://serviceusage.googleapis.com/", "schemas": { "AddEnableRulesMetadata": { @@ -2621,6 +2621,171 @@ "properties": {}, "type": "object" }, + "GoogleApiServiceusageV2betaAnalysis": { + "description": "A message to group the analysis information.", + "id": "GoogleApiServiceusageV2betaAnalysis", + "properties": { + "analysis": { + "$ref": "GoogleApiServiceusageV2betaAnalysisResult", + "description": "Output only. Analysis result of updating a policy.", + "readOnly": true + }, + "analysisType": { + "description": "Output only. The type of analysis.", + "enum": [ + "ANALYSIS_TYPE_UNSPECIFIED", + "ANALYSIS_TYPE_DEPENDENCY", + "ANALYSIS_TYPE_RESOURCE_USAGE" + ], + "enumDescriptions": [ + "Unspecified analysis type. Do not use.", + "The analysis of service dependencies.", + "The analysis of service resource usage." + ], + "readOnly": true, + "type": "string" + }, + "displayName": { + "description": "Output only. The user friendly display name of the analysis type. E.g. service dependency analysis, service resource usage analysis, etc.", + "readOnly": true, + "type": "string" + }, + "service": { + "description": "The names of the service that has analysis result of warnings or blockers. Example: `services/storage.googleapis.com`.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleApiServiceusageV2betaAnalysisResult": { + "description": "An analysis result including blockers and warnings.", + "id": "GoogleApiServiceusageV2betaAnalysisResult", + "properties": { + "blockers": { + "description": "Blocking information that would prevent the policy changes at runtime.", + "items": { + "$ref": "GoogleApiServiceusageV2betaImpact" + }, + "type": "array" + }, + "warnings": { + "description": "Warning information indicating that the policy changes might be unsafe, but will not block the changes at runtime.", + "items": { + "$ref": "GoogleApiServiceusageV2betaImpact" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleApiServiceusageV2betaAnalyzeConsumerPolicyMetadata": { + "description": "Metadata for the `AnalyzeConsumerPolicy` method.", + "id": "GoogleApiServiceusageV2betaAnalyzeConsumerPolicyMetadata", + "properties": {}, + "type": "object" + }, + "GoogleApiServiceusageV2betaAnalyzeConsumerPolicyResponse": { + "description": "The response of analyzing a consumer policy update.", + "id": "GoogleApiServiceusageV2betaAnalyzeConsumerPolicyResponse", + "properties": { + "analysis": { + "description": "The list of analyses returned from performing the intended policy update analysis. The analysis is grouped by service name and different analysis types. The empty analysis list means that the consumer policy can be updated without any warnings or blockers.", + "items": { + "$ref": "GoogleApiServiceusageV2betaAnalysis" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleApiServiceusageV2betaConsumerPolicy": { + "description": "Consumer Policy is a set of rules that define what services or service groups can be used for a cloud resource hierarchy.", + "id": "GoogleApiServiceusageV2betaConsumerPolicy", + "properties": { + "annotations": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Annotations is an unstructured key-value map stored with a policy that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. [AIP-128](https://google.aip.dev/128#annotations)", + "type": "object" + }, + "createTime": { + "description": "Output only. The time the policy was created. For singleton policies, this is the first touch of the policy.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "enableRules": { + "description": "Enable rules define usable services, groups, and categories. There can currently be at most one `EnableRule`. This restriction will be lifted in later releases.", + "items": { + "$ref": "GoogleApiServiceusageV2betaEnableRule" + }, + "type": "array" + }, + "etag": { + "description": "Output only. An opaque tag indicating the current version of the policy, used for concurrency control.", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Output only. The resource name of the policy. Only the `default` policy is supported: `projects/12345/consumerPolicies/default`, `folders/12345/consumerPolicies/default`, `organizations/12345/consumerPolicies/default`.", + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Output only. The time the policy was last updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleApiServiceusageV2betaEnableRule": { + "description": "The consumer policy rule that defines enabled services, groups, and categories.", + "id": "GoogleApiServiceusageV2betaEnableRule", + "properties": { + "services": { + "description": "The names of the services that are enabled. Example: `services/storage.googleapis.com`.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleApiServiceusageV2betaImpact": { + "description": "A message to group impacts of updating a policy.", + "id": "GoogleApiServiceusageV2betaImpact", + "properties": { + "detail": { + "description": "Output only. User friendly impact detail in a free form message.", + "readOnly": true, + "type": "string" + }, + "impactType": { + "description": "Output only. The type of impact.", + "enum": [ + "IMPACT_TYPE_UNSPECIFIED", + "DEPENDENCY_MISSING_DEPENDENCIES" + ], + "enumDescriptions": [ + "Reserved Blocks (Block n contains codes from 100n to 100(n+1) -1 Block 0 - Special/Admin codes Block 1 - Impact Type of ANALYSIS_TYPE_DEPENDENCY Block 2 - Impact Type of ANALYSIS_TYPE_RESOURCE_USAGE ...", + "Block 1 - Impact Type of ANALYSIS_TYPE_DEPENDENCY" + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleApiServiceusageV2betaUpdateConsumerPolicyMetadata": { + "description": "Metadata for the `UpdateConsumerPolicy` method.", + "id": "GoogleApiServiceusageV2betaUpdateConsumerPolicyMetadata", + "properties": {}, + "type": "object" + }, "Http": { "description": "Defines the HTTP configuration for an API service. It contains a list of HttpRule, each specifying the mapping of an RPC method to one or more HTTP REST API methods.", "id": "Http", diff --git a/serviceusage/v1beta1/serviceusage-gen.go b/serviceusage/v1beta1/serviceusage-gen.go index 355f05727eb..6674da8238b 100644 --- a/serviceusage/v1beta1/serviceusage-gen.go +++ b/serviceusage/v1beta1/serviceusage-gen.go @@ -2372,6 +2372,207 @@ func (s GoogleApiServiceusageV2alphaEnableRule) MarshalJSON() ([]byte, error) { type GoogleApiServiceusageV2alphaUpdateConsumerPolicyMetadata struct { } +// GoogleApiServiceusageV2betaAnalysis: A message to group the analysis +// information. +type GoogleApiServiceusageV2betaAnalysis struct { + // Analysis: Output only. Analysis result of updating a policy. + Analysis *GoogleApiServiceusageV2betaAnalysisResult `json:"analysis,omitempty"` + // AnalysisType: Output only. The type of analysis. + // + // Possible values: + // "ANALYSIS_TYPE_UNSPECIFIED" - Unspecified analysis type. Do not use. + // "ANALYSIS_TYPE_DEPENDENCY" - The analysis of service dependencies. + // "ANALYSIS_TYPE_RESOURCE_USAGE" - The analysis of service resource usage. + AnalysisType string `json:"analysisType,omitempty"` + // DisplayName: Output only. The user friendly display name of the analysis + // type. E.g. service dependency analysis, service resource usage analysis, + // etc. + DisplayName string `json:"displayName,omitempty"` + // Service: The names of the service that has analysis result of warnings or + // blockers. Example: `services/storage.googleapis.com`. + Service string `json:"service,omitempty"` + // ForceSendFields is a list of field names (e.g. "Analysis") 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. "Analysis") 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 GoogleApiServiceusageV2betaAnalysis) MarshalJSON() ([]byte, error) { + type NoMethod GoogleApiServiceusageV2betaAnalysis + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleApiServiceusageV2betaAnalysisResult: An analysis result including +// blockers and warnings. +type GoogleApiServiceusageV2betaAnalysisResult struct { + // Blockers: Blocking information that would prevent the policy changes at + // runtime. + Blockers []*GoogleApiServiceusageV2betaImpact `json:"blockers,omitempty"` + // Warnings: Warning information indicating that the policy changes might be + // unsafe, but will not block the changes at runtime. + Warnings []*GoogleApiServiceusageV2betaImpact `json:"warnings,omitempty"` + // ForceSendFields is a list of field names (e.g. "Blockers") 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. "Blockers") 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 GoogleApiServiceusageV2betaAnalysisResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleApiServiceusageV2betaAnalysisResult + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleApiServiceusageV2betaAnalyzeConsumerPolicyMetadata: Metadata for the +// `AnalyzeConsumerPolicy` method. +type GoogleApiServiceusageV2betaAnalyzeConsumerPolicyMetadata struct { +} + +// GoogleApiServiceusageV2betaAnalyzeConsumerPolicyResponse: The response of +// analyzing a consumer policy update. +type GoogleApiServiceusageV2betaAnalyzeConsumerPolicyResponse struct { + // Analysis: The list of analyses returned from performing the intended policy + // update analysis. The analysis is grouped by service name and different + // analysis types. The empty analysis list means that the consumer policy can + // be updated without any warnings or blockers. + Analysis []*GoogleApiServiceusageV2betaAnalysis `json:"analysis,omitempty"` + // ForceSendFields is a list of field names (e.g. "Analysis") 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. "Analysis") 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 GoogleApiServiceusageV2betaAnalyzeConsumerPolicyResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleApiServiceusageV2betaAnalyzeConsumerPolicyResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleApiServiceusageV2betaConsumerPolicy: Consumer Policy is a set of rules +// that define what services or service groups can be used for a cloud resource +// hierarchy. +type GoogleApiServiceusageV2betaConsumerPolicy struct { + // Annotations: Optional. Annotations is an unstructured key-value map stored + // with a policy that may be set by external tools to store and retrieve + // arbitrary metadata. They are not queryable and should be preserved when + // modifying objects. AIP-128 (https://google.aip.dev/128#annotations) + Annotations map[string]string `json:"annotations,omitempty"` + // CreateTime: Output only. The time the policy was created. For singleton + // policies, this is the first touch of the policy. + CreateTime string `json:"createTime,omitempty"` + // EnableRules: Enable rules define usable services, groups, and categories. + // There can currently be at most one `EnableRule`. This restriction will be + // lifted in later releases. + EnableRules []*GoogleApiServiceusageV2betaEnableRule `json:"enableRules,omitempty"` + // Etag: Output only. An opaque tag indicating the current version of the + // policy, used for concurrency control. + Etag string `json:"etag,omitempty"` + // Name: Output only. The resource name of the policy. Only the `default` + // policy is supported: `projects/12345/consumerPolicies/default`, + // `folders/12345/consumerPolicies/default`, + // `organizations/12345/consumerPolicies/default`. + Name string `json:"name,omitempty"` + // UpdateTime: Output only. The time the policy was last updated. + UpdateTime string `json:"updateTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "Annotations") 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. "Annotations") 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 GoogleApiServiceusageV2betaConsumerPolicy) MarshalJSON() ([]byte, error) { + type NoMethod GoogleApiServiceusageV2betaConsumerPolicy + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleApiServiceusageV2betaEnableRule: The consumer policy rule that defines +// enabled services, groups, and categories. +type GoogleApiServiceusageV2betaEnableRule struct { + // Services: The names of the services that are enabled. Example: + // `services/storage.googleapis.com`. + Services []string `json:"services,omitempty"` + // ForceSendFields is a list of field names (e.g. "Services") 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. "Services") 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 GoogleApiServiceusageV2betaEnableRule) MarshalJSON() ([]byte, error) { + type NoMethod GoogleApiServiceusageV2betaEnableRule + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleApiServiceusageV2betaImpact: A message to group impacts of updating a +// policy. +type GoogleApiServiceusageV2betaImpact struct { + // Detail: Output only. User friendly impact detail in a free form message. + Detail string `json:"detail,omitempty"` + // ImpactType: Output only. The type of impact. + // + // Possible values: + // "IMPACT_TYPE_UNSPECIFIED" - Reserved Blocks (Block n contains codes from + // 100n to 100(n+1) -1 Block 0 - Special/Admin codes Block 1 - Impact Type of + // ANALYSIS_TYPE_DEPENDENCY Block 2 - Impact Type of + // ANALYSIS_TYPE_RESOURCE_USAGE ... + // "DEPENDENCY_MISSING_DEPENDENCIES" - Block 1 - Impact Type of + // ANALYSIS_TYPE_DEPENDENCY + ImpactType string `json:"impactType,omitempty"` + // ForceSendFields is a list of field names (e.g. "Detail") 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. "Detail") 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 GoogleApiServiceusageV2betaImpact) MarshalJSON() ([]byte, error) { + type NoMethod GoogleApiServiceusageV2betaImpact + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleApiServiceusageV2betaUpdateConsumerPolicyMetadata: Metadata for the +// `UpdateConsumerPolicy` method. +type GoogleApiServiceusageV2betaUpdateConsumerPolicyMetadata struct { +} + // Http: Defines the HTTP configuration for an API service. It contains a list // of HttpRule, each specifying the mapping of an RPC method to one or more // HTTP REST API methods. diff --git a/tpu/v2alpha1/tpu-api.json b/tpu/v2alpha1/tpu-api.json index 847952bc847..e5a23560559 100644 --- a/tpu/v2alpha1/tpu-api.json +++ b/tpu/v2alpha1/tpu-api.json @@ -473,6 +473,34 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "performMaintenance": { + "description": "Perform manual maintenance on a node.", + "flatPath": "v2alpha1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}:performMaintenance", + "httpMethod": "POST", + "id": "tpu.projects.locations.nodes.performMaintenance", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/nodes/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2alpha1/{+name}:performMaintenance", + "request": { + "$ref": "PerformMaintenanceRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "simulateMaintenanceEvent": { "description": "Simulates a maintenance event.", "flatPath": "v2alpha1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}:simulateMaintenanceEvent", @@ -815,6 +843,34 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "performMaintenanceQueuedResource": { + "description": "Perform manual maintenance on specific nodes of a QueuedResource.", + "flatPath": "v2alpha1/projects/{projectsId}/locations/{locationsId}/queuedResources/{queuedResourcesId}:performMaintenanceQueuedResource", + "httpMethod": "POST", + "id": "tpu.projects.locations.queuedResources.performMaintenanceQueuedResource", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the QueuedResource which holds the nodes to perform maintenance on.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/queuedResources/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2alpha1/{+name}:performMaintenanceQueuedResource", + "request": { + "$ref": "PerformMaintenanceQueuedResourceRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "reset": { "description": "Resets a QueuedResource TPU instance", "flatPath": "v2alpha1/projects/{projectsId}/locations/{locationsId}/queuedResources/{queuedResourcesId}:reset", @@ -965,7 +1021,7 @@ } } }, - "revision": "20241017", + "revision": "20241025", "rootUrl": "https://tpu.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -984,7 +1040,8 @@ "V3", "V4", "V5LITE_POD", - "V5P" + "V5P", + "V6E" ], "enumDescriptions": [ "Unspecified version.", @@ -992,7 +1049,8 @@ "TPU v3.", "TPU v4.", "TPU v5lite pod.", - "TPU v5." + "TPU v5.", + "TPU v6e." ], "type": "string" } @@ -1733,6 +1791,11 @@ "type": "string" }, "type": "array" + }, + "upcomingMaintenance": { + "$ref": "UpcomingMaintenance", + "description": "Output only. Upcoming maintenance on this TPU node.", + "readOnly": true } }, "type": "object" @@ -1832,6 +1895,26 @@ }, "type": "object" }, + "PerformMaintenanceQueuedResourceRequest": { + "description": "Request for PerformMaintenanceQueuedResource.", + "id": "PerformMaintenanceQueuedResourceRequest", + "properties": { + "nodeNames": { + "description": "The names of the nodes to perform maintenance on.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "PerformMaintenanceRequest": { + "description": "Request for PerformMaintenance.", + "id": "PerformMaintenanceRequest", + "properties": {}, + "type": "object" + }, "ProvisioningData": { "description": "Further data for the provisioning state.", "id": "ProvisioningData", @@ -2277,6 +2360,57 @@ }, "type": "object" }, + "UpcomingMaintenance": { + "description": "Upcoming Maintenance notification information.", + "id": "UpcomingMaintenance", + "properties": { + "canReschedule": { + "description": "Indicates if the maintenance can be customer triggered.", + "type": "boolean" + }, + "latestWindowStartTime": { + "description": "The latest time for the planned maintenance window to start. This timestamp value is in RFC3339 text format.", + "type": "string" + }, + "maintenanceStatus": { + "description": "The status of the maintenance.", + "enum": [ + "UNKNOWN", + "PENDING", + "ONGOING" + ], + "enumDescriptions": [ + "Unknown maintenance status. Do not use this value.", + "There is pending maintenance.", + "There is ongoing maintenance on this VM." + ], + "type": "string" + }, + "type": { + "description": "Defines the type of maintenance.", + "enum": [ + "UNKNOWN_TYPE", + "SCHEDULED", + "UNSCHEDULED" + ], + "enumDescriptions": [ + "No type specified. Do not use this value.", + "Scheduled maintenance (e.g. maintenance after uptime guarantee is complete).", + "Unscheduled maintenance (e.g. emergency maintenance during uptime guarantee)." + ], + "type": "string" + }, + "windowEndTime": { + "description": "The time by which the maintenance disruption will be completed. This timestamp value is in RFC3339 text format.", + "type": "string" + }, + "windowStartTime": { + "description": "The current start time of the maintenance window. This timestamp value is in RFC3339 text format.", + "type": "string" + } + }, + "type": "object" + }, "Usage": { "id": "Usage", "properties": { diff --git a/tpu/v2alpha1/tpu-gen.go b/tpu/v2alpha1/tpu-gen.go index 8531f8c2eda..6b3e2964df3 100644 --- a/tpu/v2alpha1/tpu-gen.go +++ b/tpu/v2alpha1/tpu-gen.go @@ -260,6 +260,7 @@ type AcceleratorConfig struct { // "V4" - TPU v4. // "V5LITE_POD" - TPU v5lite pod. // "V5P" - TPU v5. + // "V6E" - TPU v6e. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Topology") to // unconditionally include in API requests. By default, fields with empty or @@ -1129,6 +1130,8 @@ type Node struct { // Tags: Tags to apply to the TPU Node. Tags are used to identify valid sources // or targets for network firewalls. Tags []string `json:"tags,omitempty"` + // UpcomingMaintenance: Output only. Upcoming maintenance on this TPU node. + UpcomingMaintenance *UpcomingMaintenance `json:"upcomingMaintenance,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` @@ -1266,6 +1269,33 @@ func (s OperationMetadata) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// PerformMaintenanceQueuedResourceRequest: Request for +// PerformMaintenanceQueuedResource. +type PerformMaintenanceQueuedResourceRequest struct { + // NodeNames: The names of the nodes to perform maintenance on. + NodeNames []string `json:"nodeNames,omitempty"` + // ForceSendFields is a list of field names (e.g. "NodeNames") 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. "NodeNames") 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 PerformMaintenanceQueuedResourceRequest) MarshalJSON() ([]byte, error) { + type NoMethod PerformMaintenanceQueuedResourceRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// PerformMaintenanceRequest: Request for PerformMaintenance. +type PerformMaintenanceRequest struct { +} + // ProvisioningData: Further data for the provisioning state. type ProvisioningData struct { } @@ -1766,6 +1796,53 @@ func (s Tpu) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// UpcomingMaintenance: Upcoming Maintenance notification information. +type UpcomingMaintenance struct { + // CanReschedule: Indicates if the maintenance can be customer triggered. + CanReschedule bool `json:"canReschedule,omitempty"` + // LatestWindowStartTime: The latest time for the planned maintenance window to + // start. This timestamp value is in RFC3339 text format. + LatestWindowStartTime string `json:"latestWindowStartTime,omitempty"` + // MaintenanceStatus: The status of the maintenance. + // + // Possible values: + // "UNKNOWN" - Unknown maintenance status. Do not use this value. + // "PENDING" - There is pending maintenance. + // "ONGOING" - There is ongoing maintenance on this VM. + MaintenanceStatus string `json:"maintenanceStatus,omitempty"` + // Type: Defines the type of maintenance. + // + // Possible values: + // "UNKNOWN_TYPE" - No type specified. Do not use this value. + // "SCHEDULED" - Scheduled maintenance (e.g. maintenance after uptime + // guarantee is complete). + // "UNSCHEDULED" - Unscheduled maintenance (e.g. emergency maintenance during + // uptime guarantee). + Type string `json:"type,omitempty"` + // WindowEndTime: The time by which the maintenance disruption will be + // completed. This timestamp value is in RFC3339 text format. + WindowEndTime string `json:"windowEndTime,omitempty"` + // WindowStartTime: The current start time of the maintenance window. This + // timestamp value is in RFC3339 text format. + WindowStartTime string `json:"windowStartTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "CanReschedule") 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. "CanReschedule") 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 UpcomingMaintenance) MarshalJSON() ([]byte, error) { + type NoMethod UpcomingMaintenance + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + type Usage struct { // Total: The real-time value of usage within the reservation, with the unit // specified in field capacity_units. @@ -3089,6 +3166,107 @@ func (c *ProjectsLocationsNodesPatchCall) Do(opts ...googleapi.CallOption) (*Ope return ret, nil } +type ProjectsLocationsNodesPerformMaintenanceCall struct { + s *Service + name string + performmaintenancerequest *PerformMaintenanceRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// PerformMaintenance: Perform manual maintenance on a node. +// +// - name: The resource name. +func (r *ProjectsLocationsNodesService) PerformMaintenance(name string, performmaintenancerequest *PerformMaintenanceRequest) *ProjectsLocationsNodesPerformMaintenanceCall { + c := &ProjectsLocationsNodesPerformMaintenanceCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.performmaintenancerequest = performmaintenancerequest + 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 *ProjectsLocationsNodesPerformMaintenanceCall) Fields(s ...googleapi.Field) *ProjectsLocationsNodesPerformMaintenanceCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsNodesPerformMaintenanceCall) Context(ctx context.Context) *ProjectsLocationsNodesPerformMaintenanceCall { + 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 *ProjectsLocationsNodesPerformMaintenanceCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsNodesPerformMaintenanceCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.performmaintenancerequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2alpha1/{+name}:performMaintenance") + 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{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "tpu.projects.locations.nodes.performMaintenance" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsNodesPerformMaintenanceCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, 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 := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + type ProjectsLocationsNodesSimulateMaintenanceEventCall struct { s *Service name string @@ -4328,6 +4506,109 @@ func (c *ProjectsLocationsQueuedResourcesListCall) Pages(ctx context.Context, f } } +type ProjectsLocationsQueuedResourcesPerformMaintenanceQueuedResourceCall struct { + s *Service + name string + performmaintenancequeuedresourcerequest *PerformMaintenanceQueuedResourceRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// PerformMaintenanceQueuedResource: Perform manual maintenance on specific +// nodes of a QueuedResource. +// +// - name: The name of the QueuedResource which holds the nodes to perform +// maintenance on. +func (r *ProjectsLocationsQueuedResourcesService) PerformMaintenanceQueuedResource(name string, performmaintenancequeuedresourcerequest *PerformMaintenanceQueuedResourceRequest) *ProjectsLocationsQueuedResourcesPerformMaintenanceQueuedResourceCall { + c := &ProjectsLocationsQueuedResourcesPerformMaintenanceQueuedResourceCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.performmaintenancequeuedresourcerequest = performmaintenancequeuedresourcerequest + 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 *ProjectsLocationsQueuedResourcesPerformMaintenanceQueuedResourceCall) Fields(s ...googleapi.Field) *ProjectsLocationsQueuedResourcesPerformMaintenanceQueuedResourceCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsQueuedResourcesPerformMaintenanceQueuedResourceCall) Context(ctx context.Context) *ProjectsLocationsQueuedResourcesPerformMaintenanceQueuedResourceCall { + 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 *ProjectsLocationsQueuedResourcesPerformMaintenanceQueuedResourceCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsQueuedResourcesPerformMaintenanceQueuedResourceCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.performmaintenancequeuedresourcerequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2alpha1/{+name}:performMaintenanceQueuedResource") + 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{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "tpu.projects.locations.queuedResources.performMaintenanceQueuedResource" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsQueuedResourcesPerformMaintenanceQueuedResourceCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, 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 := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + type ProjectsLocationsQueuedResourcesResetCall struct { s *Service name string diff --git a/translate/v3/translate-api.json b/translate/v3/translate-api.json index fb5f4172702..4d2f45ab53b 100644 --- a/translate/v3/translate-api.json +++ b/translate/v3/translate-api.json @@ -291,7 +291,8 @@ "$ref": "Operation" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-translation" ] }, "batchTranslateText": { @@ -319,7 +320,8 @@ "$ref": "Operation" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-translation" ] }, "detectLanguage": { @@ -1708,7 +1710,7 @@ } } }, - "revision": "20240912", + "revision": "20241029", "rootUrl": "https://translation.googleapis.com/", "schemas": { "AdaptiveMtDataset": { diff --git a/translate/v3beta1/translate-api.json b/translate/v3beta1/translate-api.json index 1cc859cc5f5..8036016d64e 100644 --- a/translate/v3beta1/translate-api.json +++ b/translate/v3beta1/translate-api.json @@ -233,7 +233,8 @@ "$ref": "Operation" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-translation" ] }, "batchTranslateText": { @@ -261,7 +262,8 @@ "$ref": "Operation" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-translation" ] }, "detectLanguage": { @@ -484,7 +486,8 @@ "$ref": "Operation" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-translation" ] }, "delete": { @@ -744,7 +747,7 @@ } } }, - "revision": "20230922", + "revision": "20241029", "rootUrl": "https://translation.googleapis.com/", "schemas": { "BatchDocumentInputConfig": { diff --git a/youtube/v3/youtube-api.json b/youtube/v3/youtube-api.json index 0d831eec0f3..bfd81ab3b38 100644 --- a/youtube/v3/youtube-api.json +++ b/youtube/v3/youtube-api.json @@ -4133,7 +4133,7 @@ } } }, - "revision": "20241022", + "revision": "20241031", "rootUrl": "https://youtube.googleapis.com/", "schemas": { "AbuseReport": { @@ -10076,7 +10076,7 @@ }, "kind": { "default": "youtube#playlistItemListResponse", - "description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#playlistItemListResponse\". Etag of this resource.", + "description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#playlistItemListResponse\".", "type": "string" }, "nextPageToken": { @@ -12018,6 +12018,10 @@ "description": "Basic details about a video category, such as its localized title. Next Id: 19", "id": "VideoStatus", "properties": { + "containsSyntheticMedia": { + "description": "Indicates if the video contains altered or synthetic media.", + "type": "boolean" + }, "embeddable": { "description": "This value indicates if the video can be embedded on another website. @mutable youtube.videos.insert youtube.videos.update", "type": "boolean" diff --git a/youtube/v3/youtube-gen.go b/youtube/v3/youtube-gen.go index 9151a955663..35581b147ab 100644 --- a/youtube/v3/youtube-gen.go +++ b/youtube/v3/youtube-gen.go @@ -6152,7 +6152,7 @@ type PlaylistItemListResponse struct { // Items: A list of playlist items that match the request criteria. Items []*PlaylistItem `json:"items,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed string - // "youtube#playlistItemListResponse". Etag of this resource. + // "youtube#playlistItemListResponse". Kind string `json:"kind,omitempty"` // NextPageToken: The token that can be used as the value of the pageToken // parameter to retrieve the next page in the result set. @@ -8340,6 +8340,9 @@ func (s VideoStatistics) MarshalJSON() ([]byte, error) { // VideoStatus: Basic details about a video category, such as its localized // title. Next Id: 19 type VideoStatus struct { + // ContainsSyntheticMedia: Indicates if the video contains altered or synthetic + // media. + ContainsSyntheticMedia bool `json:"containsSyntheticMedia,omitempty"` // Embeddable: This value indicates if the video can be embedded on another // website. @mutable youtube.videos.insert youtube.videos.update Embeddable bool `json:"embeddable,omitempty"` @@ -8404,15 +8407,15 @@ type VideoStatus struct { // "rejected" - Video has been rejected. See RejectionReason. // "deleted" - Video has been deleted. UploadStatus string `json:"uploadStatus,omitempty"` - // ForceSendFields is a list of field names (e.g. "Embeddable") to + // ForceSendFields is a list of field names (e.g. "ContainsSyntheticMedia") 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. "Embeddable") 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. "ContainsSyntheticMedia") 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:"-"` }