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/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/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..9f7e8d967a3 100644 --- a/androidmanagement/v1/androidmanagement-api.json +++ b/androidmanagement/v1/androidmanagement-api.json @@ -1168,7 +1168,7 @@ } } }, - "revision": "20241022", + "revision": "20241031", "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": { diff --git a/androidmanagement/v1/androidmanagement-gen.go b/androidmanagement/v1/androidmanagement-gen.go index cc10e44bb22..3120a1e71dd 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 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/chat/v1/chat-api.json b/chat/v1/chat-api.json index f6a3cee4867..e8449168851 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" } @@ -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": "20241029", "rootUrl": "https://chat.googleapis.com/", "schemas": { "AccessSettings": { @@ -3774,14 +3774,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": { diff --git a/chat/v1/chat-gen.go b/chat/v1/chat-gen.go index 639de7841df..9293d4fff83 100644 --- a/chat/v1/chat-gen.go +++ b/chat/v1/chat-gen.go @@ -4010,19 +4010,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 @@ -8106,8 +8107,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 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..2a8a246bd49 100644 --- a/discoveryengine/v1/discoveryengine-api.json +++ b/discoveryengine/v1/discoveryengine-api.json @@ -6090,7 +6090,7 @@ } } }, - "revision": "20241025", + "revision": "20241030", "rootUrl": "https://discoveryengine.googleapis.com/", "schemas": { "GoogleApiDistribution": { @@ -13032,6 +13032,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 +13390,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 +13995,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 +15901,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 +16547,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 +16870,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 +17328,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 +18664,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..f25672fae8f 100644 --- a/discoveryengine/v1/discoveryengine-gen.go +++ b/discoveryengine/v1/discoveryengine-gen.go @@ -10900,6 +10900,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 +11319,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 +12168,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 +14906,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 +15782,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 +16134,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 +16767,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 +18811,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..5977dba3d4b 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": "20241030", "rootUrl": "https://discoveryengine.googleapis.com/", "schemas": { "GoogleApiDistribution": { @@ -12303,6 +12448,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 +12843,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", @@ -13563,6 +13742,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", @@ -17591,6 +17795,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", @@ -18469,6 +18695,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 +19018,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 +19476,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 +20812,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..79ec624ba0d 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 @@ -7225,6 +7249,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 +7747,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. @@ -8966,6 +9044,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 { @@ -14883,6 +15010,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 { @@ -16129,6 +16285,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 +16637,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 +17270,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 +19314,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,61 +30215,59 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCal } } -type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall struct { - s *Service - parent string - googleclouddiscoveryenginev1alphabatchcreatetargetsitesrequest *GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsCreateCall struct { + s *Service + parent string + googleclouddiscoveryenginev1alphasitemap *GoogleCloudDiscoveryengineV1alphaSitemap + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// BatchCreate: Creates TargetSite in a batch. +// Create: Creates a Sitemap. // -// - parent: The parent resource shared by all TargetSites being created. -// `projects/{project}/locations/{location}/collections/{collection}/dataStore -// s/{data_store}/siteSearchEngine`. The parent field in the -// CreateBookRequest messages must either be empty or match this field. -func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService) BatchCreate(parent string, googleclouddiscoveryenginev1alphabatchcreatetargetsitesrequest *GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesRequest) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall { - c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - 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.googleclouddiscoveryenginev1alphabatchcreatetargetsitesrequest = googleclouddiscoveryenginev1alphabatchcreatetargetsitesrequest + 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 *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall { +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 *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall { +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 *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Header() http.Header { +func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) doRequest(alt string) (*http.Response, error) { +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.googleclouddiscoveryenginev1alphabatchcreatetargetsitesrequest) + 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}/targetSites:batchCreate") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/sitemaps") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -29998,13 +30280,13 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchC return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.batchCreate" call. +// 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 *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +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 { @@ -30036,79 +30318,285 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchC return ret, nil } -type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall struct { - s *Service - parent string - googleclouddiscoveryenginev1alphatargetsite *GoogleCloudDiscoveryengineV1alphaTargetSite - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a TargetSite. +// Delete: Deletes a Sitemap. // -// - parent: Parent resource name of TargetSite, such as +// - name: Full resource name of Sitemap, such as // `projects/{project}/locations/{location}/collections/{collection}/dataStore -// s/{data_store}/siteSearchEngine`. -func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService) Create(parent string, googleclouddiscoveryenginev1alphatargetsite *GoogleCloudDiscoveryengineV1alphaTargetSite) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall { - c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googleclouddiscoveryenginev1alphatargetsite = googleclouddiscoveryenginev1alphatargetsite +// 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 *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall { +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 *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall { +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 *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) Header() http.Header { +func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) +func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphatargetsite) - if err != nil { - return nil, err - } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/targetSites") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.create" call. +// 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 *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +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 + googleclouddiscoveryenginev1alphabatchcreatetargetsitesrequest *GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// BatchCreate: Creates TargetSite in a batch. +// +// - parent: The parent resource shared by all TargetSites being created. +// `projects/{project}/locations/{location}/collections/{collection}/dataStore +// s/{data_store}/siteSearchEngine`. The parent field in the +// CreateBookRequest messages must either be empty or match this field. +func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService) BatchCreate(parent string, googleclouddiscoveryenginev1alphabatchcreatetargetsitesrequest *GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesRequest) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall { + c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleclouddiscoveryenginev1alphabatchcreatetargetsitesrequest = googleclouddiscoveryenginev1alphabatchcreatetargetsitesrequest + 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 *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall { + 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 *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) 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.googleclouddiscoveryenginev1alphabatchcreatetargetsitesrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/targetSites:batchCreate") + 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.targetSites.batchCreate" 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 *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) 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 ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall struct { + s *Service + parent string + googleclouddiscoveryenginev1alphatargetsite *GoogleCloudDiscoveryengineV1alphaTargetSite + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a TargetSite. +// +// - parent: Parent resource name of TargetSite, such as +// `projects/{project}/locations/{location}/collections/{collection}/dataStore +// s/{data_store}/siteSearchEngine`. +func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService) Create(parent string, googleclouddiscoveryenginev1alphatargetsite *GoogleCloudDiscoveryengineV1alphaTargetSite) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall { + c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleclouddiscoveryenginev1alphatargetsite = googleclouddiscoveryenginev1alphatargetsite + 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 *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall { + 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 *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) 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.googleclouddiscoveryenginev1alphatargetsite) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/targetSites") + 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.targetSites.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 *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -43376,6 +43864,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..b4fc215ea07 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": "20241030", "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", @@ -15326,6 +15552,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 +15912,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", @@ -16305,6 +16565,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", @@ -19577,6 +19862,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", diff --git a/discoveryengine/v1beta/discoveryengine-gen.go b/discoveryengine/v1beta/discoveryengine-gen.go index 0e2edf55e50..52d8c35b164 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 { @@ -12372,6 +12525,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 +12956,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. @@ -13662,6 +13869,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 { @@ -18582,6 +18838,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 { @@ -27851,61 +28135,59 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCal } } -type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall struct { - s *Service - parent string - googleclouddiscoveryenginev1betabatchcreatetargetsitesrequest *GoogleCloudDiscoveryengineV1betaBatchCreateTargetSitesRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsCreateCall struct { + s *Service + parent string + googleclouddiscoveryenginev1betasitemap *GoogleCloudDiscoveryengineV1betaSitemap + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// BatchCreate: Creates TargetSite in a batch. +// Create: Creates a Sitemap. // -// - parent: The parent resource shared by all TargetSites being created. -// `projects/{project}/locations/{location}/collections/{collection}/dataStore -// s/{data_store}/siteSearchEngine`. The parent field in the -// CreateBookRequest messages must either be empty or match this field. -func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService) BatchCreate(parent string, googleclouddiscoveryenginev1betabatchcreatetargetsitesrequest *GoogleCloudDiscoveryengineV1betaBatchCreateTargetSitesRequest) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall { - c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - 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.googleclouddiscoveryenginev1betabatchcreatetargetsitesrequest = googleclouddiscoveryenginev1betabatchcreatetargetsitesrequest + 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 *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall { +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 *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall { +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 *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Header() http.Header { +func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) doRequest(alt string) (*http.Response, error) { +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.googleclouddiscoveryenginev1betabatchcreatetargetsitesrequest) + 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}/targetSites:batchCreate") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/sitemaps") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -27918,13 +28200,13 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchC return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.batchCreate" call. +// 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 *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +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 { @@ -27956,79 +28238,285 @@ func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchC return ret, nil } -type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall struct { - s *Service - parent string - googleclouddiscoveryenginev1betatargetsite *GoogleCloudDiscoveryengineV1betaTargetSite - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a TargetSite. +// Delete: Deletes a Sitemap. // -// - parent: Parent resource name of TargetSite, such as +// - name: Full resource name of Sitemap, such as // `projects/{project}/locations/{location}/collections/{collection}/dataStore -// s/{data_store}/siteSearchEngine`. -func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService) Create(parent string, googleclouddiscoveryenginev1betatargetsite *GoogleCloudDiscoveryengineV1betaTargetSite) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall { - c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googleclouddiscoveryenginev1betatargetsite = googleclouddiscoveryenginev1betatargetsite +// 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 *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall { +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 *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall { +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 *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) Header() http.Header { +func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) +func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineSitemapsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betatargetsite) - if err != nil { - return nil, err - } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/targetSites") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.create" call. +// 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 *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +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 + googleclouddiscoveryenginev1betabatchcreatetargetsitesrequest *GoogleCloudDiscoveryengineV1betaBatchCreateTargetSitesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// BatchCreate: Creates TargetSite in a batch. +// +// - parent: The parent resource shared by all TargetSites being created. +// `projects/{project}/locations/{location}/collections/{collection}/dataStore +// s/{data_store}/siteSearchEngine`. The parent field in the +// CreateBookRequest messages must either be empty or match this field. +func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService) BatchCreate(parent string, googleclouddiscoveryenginev1betabatchcreatetargetsitesrequest *GoogleCloudDiscoveryengineV1betaBatchCreateTargetSitesRequest) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall { + c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleclouddiscoveryenginev1betabatchcreatetargetsitesrequest = googleclouddiscoveryenginev1betabatchcreatetargetsitesrequest + 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 *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall { + 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 *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) 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.googleclouddiscoveryenginev1betabatchcreatetargetsitesrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/targetSites:batchCreate") + 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.targetSites.batchCreate" 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 *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) 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 ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall struct { + s *Service + parent string + googleclouddiscoveryenginev1betatargetsite *GoogleCloudDiscoveryengineV1betaTargetSite + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a TargetSite. +// +// - parent: Parent resource name of TargetSite, such as +// `projects/{project}/locations/{location}/collections/{collection}/dataStore +// s/{data_store}/siteSearchEngine`. +func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService) Create(parent string, googleclouddiscoveryenginev1betatargetsite *GoogleCloudDiscoveryengineV1betaTargetSite) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall { + c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleclouddiscoveryenginev1betatargetsite = googleclouddiscoveryenginev1betatargetsite + 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 *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall { + 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 *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) 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.googleclouddiscoveryenginev1betatargetsite) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/targetSites") + 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.targetSites.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 *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -40654,6 +41142,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/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/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/youtube/v3/youtube-api.json b/youtube/v3/youtube-api.json index bc1a3677175..bfd81ab3b38 100644 --- a/youtube/v3/youtube-api.json +++ b/youtube/v3/youtube-api.json @@ -4133,7 +4133,7 @@ } } }, - "revision": "20241030", + "revision": "20241031", "rootUrl": "https://youtube.googleapis.com/", "schemas": { "AbuseReport": { @@ -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 1485c8e9fc9..35581b147ab 100644 --- a/youtube/v3/youtube-gen.go +++ b/youtube/v3/youtube-gen.go @@ -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:"-"` }