From 80e119c4d66035eed1abd2637065f5e89482adce Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 5 Mar 2025 08:12:11 +0000 Subject: [PATCH] feat(all): auto-regenerate discovery clients --- aiplatform/v1/aiplatform-api.json | 180 +++++++++- aiplatform/v1/aiplatform-gen.go | 203 +++++++++++- aiplatform/v1beta1/aiplatform-api.json | 240 +++++++++++++- aiplatform/v1beta1/aiplatform-gen.go | 311 +++++++++++++++++- .../v1/androidenterprise-api.json | 77 ++++- androidenterprise/v1/androidenterprise-gen.go | 182 ++++++++++ .../v1/androidmanagement-api.json | 66 +++- androidmanagement/v1/androidmanagement-gen.go | 173 ++++++++++ .../v1/authorizedbuyersmarketplace-api.json | 17 +- .../v1/authorizedbuyersmarketplace-gen.go | 10 + .../authorizedbuyersmarketplace-api.json | 17 +- .../authorizedbuyersmarketplace-gen.go | 10 + chat/v1/chat-api.json | 111 ++++++- chat/v1/chat-gen.go | 296 ++++++++++++++++- content/v2.1/content-api.json | 4 +- content/v2.1/content-gen.go | 5 +- discoveryengine/v1/discoveryengine-api.json | 60 +++- discoveryengine/v1/discoveryengine-gen.go | 87 ++++- .../v1alpha/discoveryengine-api.json | 83 ++++- .../v1alpha/discoveryengine-gen.go | 103 ++++-- .../v1beta/discoveryengine-api.json | 67 +++- discoveryengine/v1beta/discoveryengine-gen.go | 93 ++++-- .../v1alpha/firebaseappdistribution-api.json | 44 ++- .../v1alpha/firebaseappdistribution-gen.go | 130 ++++++++ kmsinventory/v1/kmsinventory-api.json | 4 +- kmsinventory/v1/kmsinventory-gen.go | 2 +- .../accounts_v1beta/merchantapi-api.json | 18 +- .../accounts_v1beta/merchantapi-gen.go | 28 +- .../conversions_v1beta/merchantapi-api.json | 16 +- .../conversions_v1beta/merchantapi-gen.go | 26 +- .../datasources_v1beta/merchantapi-api.json | 18 +- .../datasources_v1beta/merchantapi-gen.go | 28 +- .../inventories_v1beta/merchantapi-api.json | 16 +- .../inventories_v1beta/merchantapi-gen.go | 26 +- merchantapi/lfp_v1beta/merchantapi-api.json | 16 +- merchantapi/lfp_v1beta/merchantapi-gen.go | 26 +- .../notifications_v1beta/merchantapi-api.json | 16 +- .../notifications_v1beta/merchantapi-gen.go | 26 +- .../products_v1beta/merchantapi-api.json | 20 +- .../products_v1beta/merchantapi-gen.go | 30 +- .../promotions_v1beta/merchantapi-api.json | 20 +- .../promotions_v1beta/merchantapi-gen.go | 30 +- merchantapi/quota_v1beta/merchantapi-api.json | 16 +- merchantapi/quota_v1beta/merchantapi-gen.go | 26 +- .../reports_v1beta/merchantapi-api.json | 18 +- merchantapi/reports_v1beta/merchantapi-gen.go | 28 +- .../reviews_v1beta/merchantapi-api.json | 24 +- merchantapi/reviews_v1beta/merchantapi-gen.go | 34 +- migrationcenter/v1/migrationcenter-api.json | 22 +- migrationcenter/v1/migrationcenter-gen.go | 14 + .../v1/paymentsresellersubscription-api.json | 7 +- .../v1/paymentsresellersubscription-gen.go | 13 +- places/v1/places-api.json | 21 +- places/v1/places-gen.go | 28 ++ retail/v2/retail-api.json | 4 +- retail/v2/retail-gen.go | 5 +- retail/v2alpha/retail-api.json | 4 +- retail/v2alpha/retail-gen.go | 5 +- retail/v2beta/retail-api.json | 4 +- retail/v2beta/retail-gen.go | 5 +- .../v1/serviceconsumermanagement-api.json | 6 +- .../v1/serviceconsumermanagement-gen.go | 19 +- .../serviceconsumermanagement-api.json | 6 +- .../v1beta1/serviceconsumermanagement-gen.go | 19 +- .../v1/servicenetworking-api.json | 12 +- servicenetworking/v1/servicenetworking-gen.go | 22 +- .../v1beta/servicenetworking-api.json | 6 +- .../v1beta/servicenetworking-gen.go | 19 +- solar/v1/solar-api.json | 4 +- solar/v1/solar-gen.go | 6 +- tasks/v1/tasks-api.json | 10 +- tasks/v1/tasks-gen.go | 14 +- verifiedaccess/v2/verifiedaccess-api.json | 168 +++++++--- verifiedaccess/v2/verifiedaccess-gen.go | 219 +++++++----- walletobjects/v1/walletobjects-api.json | 4 +- walletobjects/v1/walletobjects-gen.go | 2 +- 76 files changed, 3184 insertions(+), 565 deletions(-) diff --git a/aiplatform/v1/aiplatform-api.json b/aiplatform/v1/aiplatform-api.json index 24b20c8c2c2..924ff0285e2 100644 --- a/aiplatform/v1/aiplatform-api.json +++ b/aiplatform/v1/aiplatform-api.json @@ -19449,7 +19449,7 @@ } } }, - "revision": "20250212", + "revision": "20250226", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "CloudAiLargeModelsVisionGenerateVideoResponse": { @@ -19474,6 +19474,31 @@ "type": "string" }, "type": "array" + }, + "videos": { + "description": "List of videos, used to align naming with the external response.", + "items": { + "$ref": "CloudAiLargeModelsVisionGenerateVideoResponseVideo" + }, + "type": "array" + } + }, + "type": "object" + }, + "CloudAiLargeModelsVisionGenerateVideoResponseVideo": { + "id": "CloudAiLargeModelsVisionGenerateVideoResponseVideo", + "properties": { + "bytesBase64Encoded": { + "description": "Base64 encoded bytes string representing the video.", + "type": "string" + }, + "gcsUri": { + "description": "Cloud Storage URI where the generated video is written.", + "type": "string" + }, + "mimeType": { + "description": "The MIME type of the content of the video. - video/mp4", + "type": "string" } }, "type": "object" @@ -19753,6 +19778,10 @@ "description": "Video encoding, for example \"video/mp4\".", "type": "string" }, + "text": { + "description": "Text/Expanded text input for Help Me Write.", + "type": "string" + }, "uri": { "description": "Path to another storage (typically Google Cloud Storage).", "type": "string" @@ -23756,6 +23785,12 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1EnterpriseWebSearch": { + "description": "Tool to search public web data, powered by Vertex AI Search and Sec4 compliance.", + "id": "GoogleCloudAiplatformV1EnterpriseWebSearch", + "properties": {}, + "type": "object" + }, "GoogleCloudAiplatformV1EntityIdSelector": { "description": "Selector for entityId. Getting ids from the given source.", "id": "GoogleCloudAiplatformV1EntityIdSelector", @@ -27193,14 +27228,81 @@ "readOnly": true, "type": "array" }, + "toolUsePromptTokenCount": { + "description": "Output only. Number of tokens present in tool-use prompt(s).", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "toolUsePromptTokensDetails": { + "description": "Output only. List of modalities that were processed for tool-use request inputs.", + "items": { + "$ref": "GoogleCloudAiplatformV1ModalityTokenCount" + }, + "readOnly": true, + "type": "array" + }, "totalTokenCount": { - "description": "Total token count for prompt and response candidates.", + "description": "Total token count for prompt, response candidates, and tool-use prompts (if present).", "format": "int32", "type": "integer" } }, "type": "object" }, + "GoogleCloudAiplatformV1GenerateVideoResponse": { + "description": "Generate video response.", + "id": "GoogleCloudAiplatformV1GenerateVideoResponse", + "properties": { + "generatedSamples": { + "deprecated": true, + "description": "The cloud storage uris of the generated videos.", + "items": { + "type": "string" + }, + "type": "array" + }, + "raiMediaFilteredCount": { + "description": "Returns if any videos were filtered due to RAI policies.", + "format": "int32", + "type": "integer" + }, + "raiMediaFilteredReasons": { + "description": "Returns rai failure reasons if any.", + "items": { + "type": "string" + }, + "type": "array" + }, + "videos": { + "description": "List of video bytes or Cloud Storage URIs of the generated videos.", + "items": { + "$ref": "GoogleCloudAiplatformV1GenerateVideoResponseVideo" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1GenerateVideoResponseVideo": { + "description": "A generated video.", + "id": "GoogleCloudAiplatformV1GenerateVideoResponseVideo", + "properties": { + "bytesBase64Encoded": { + "description": "Base64 encoded bytes string representing the video.", + "type": "string" + }, + "gcsUri": { + "description": "Cloud Storage URI where the generated video is written.", + "type": "string" + }, + "mimeType": { + "description": "The MIME type of the content of the video. - video/mp4", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1GenerationConfig": { "description": "Generation config.", "id": "GoogleCloudAiplatformV1GenerationConfig", @@ -29687,11 +29789,6 @@ "description": "Immutable. The type of the machine. See the [list of machine types supported for prediction](https://cloud.google.com/vertex-ai/docs/predictions/configure-compute#machine-types) See the [list of machine types supported for custom training](https://cloud.google.com/vertex-ai/docs/training/configure-compute#machine-types). For DeployedModel this field is optional, and the default value is `n1-standard-2`. For BatchPredictionJob or as part of WorkerPoolSpec this field is required.", "type": "string" }, - "multihostGpuNodeCount": { - "description": "Optional. Immutable. The number of nodes per replica for multihost GPU deployments.", - "format": "int32", - "type": "integer" - }, "reservationAffinity": { "$ref": "GoogleCloudAiplatformV1ReservationAffinity", "description": "Optional. Immutable. Configuration controlling how this resource pool consumes reservation." @@ -35766,6 +35863,10 @@ }, "type": "array" }, + "deploymentSpec": { + "$ref": "GoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec", + "description": "Optional. The specification of a Reasoning Engine deployment." + }, "packageSpec": { "$ref": "GoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec", "description": "Required. User provided package spec of the ReasoningEngine." @@ -35773,6 +35874,27 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec": { + "description": "The specification of a Reasoning Engine deployment.", + "id": "GoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec", + "properties": { + "env": { + "description": "Optional. Environment variables to be set with the Reasoning Engine deployment. The environment variables can be updated through the UpdateReasoningEngine API.", + "items": { + "$ref": "GoogleCloudAiplatformV1EnvVar" + }, + "type": "array" + }, + "secretEnv": { + "description": "Optional. Environment variables where the value is a secret in Cloud Secret Manager. To use this feature, add 'Secret Manager Secret Accessor' role (roles/secretmanager.secretAccessor) to AI Platform Reasoning Engine Service Agent.", + "items": { + "$ref": "GoogleCloudAiplatformV1SecretEnvVar" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec": { "description": "User provided package spec like pickled object and package requirements.", "id": "GoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec", @@ -35905,7 +36027,7 @@ "type": "string" }, "values": { - "description": "Optional. Corresponds to the label values of a reservation resource. This must be the full resource name of the reservation.", + "description": "Optional. Corresponds to the label values of a reservation resource. This must be the full resource name of the reservation or reservation block.", "items": { "type": "string" }, @@ -41187,6 +41309,36 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1SecretEnvVar": { + "description": "Represents an environment variable where the value is a secret in Cloud Secret Manager.", + "id": "GoogleCloudAiplatformV1SecretEnvVar", + "properties": { + "name": { + "description": "Required. Name of the secret environment variable.", + "type": "string" + }, + "secretRef": { + "$ref": "GoogleCloudAiplatformV1SecretRef", + "description": "Required. Reference to a secret stored in the Cloud Secret Manager that will provide the value for this environment variable." + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1SecretRef": { + "description": "Reference to a secret stored in the Cloud Secret Manager that will provide the value for this environment variable.", + "id": "GoogleCloudAiplatformV1SecretRef", + "properties": { + "secret": { + "description": "Required. The name of the secret in Cloud Secret Manager. Format: {secret_name} if the secret is in the same project. projects/{project}/secrets/{secret_name} if the secret is in a different project.", + "type": "string" + }, + "version": { + "description": "The Cloud Secret Manager secret version. Can be 'latest' for the latest version, an integer for a specific version, or a version alias.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1Segment": { "description": "Segment of the content.", "id": "GoogleCloudAiplatformV1Segment", @@ -42463,6 +42615,7 @@ "enum": [ "ADAPTER_SIZE_UNSPECIFIED", "ADAPTER_SIZE_ONE", + "ADAPTER_SIZE_TWO", "ADAPTER_SIZE_FOUR", "ADAPTER_SIZE_EIGHT", "ADAPTER_SIZE_SIXTEEN", @@ -42471,6 +42624,7 @@ "enumDescriptions": [ "Adapter size is unspecified.", "Adapter size 1.", + "Adapter size 2.", "Adapter size 4.", "Adapter size 8.", "Adapter size 16.", @@ -43283,7 +43437,11 @@ "properties": { "codeExecution": { "$ref": "GoogleCloudAiplatformV1ToolCodeExecution", - "description": "Optional. CodeExecution tool type. Enables the model to execute code as part of generation. This field is only used by the Gemini Developer API services." + "description": "Optional. CodeExecution tool type. Enables the model to execute code as part of generation." + }, + "enterpriseWebSearch": { + "$ref": "GoogleCloudAiplatformV1EnterpriseWebSearch", + "description": "Optional. Tool to support searching public web data, powered by Vertex AI Search and Sec4 compliance." }, "functionDeclarations": { "description": "Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 128 function declarations can be provided.", @@ -44892,11 +45050,11 @@ "type": "object" }, "GoogleCloudAiplatformV1VertexAISearch": { - "description": "Retrieve from Vertex AI Search datastore for grounding. See https://cloud.google.com/products/agent-builder", + "description": "Retrieve from Vertex AI Search datastore or engine for grounding. datastore and engine are mutually exclusive. See https://cloud.google.com/products/agent-builder", "id": "GoogleCloudAiplatformV1VertexAISearch", "properties": { "datastore": { - "description": "Required. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`", + "description": "Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`", "type": "string" } }, diff --git a/aiplatform/v1/aiplatform-gen.go b/aiplatform/v1/aiplatform-gen.go index 9d2970212c1..ac87ab63ad8 100644 --- a/aiplatform/v1/aiplatform-gen.go +++ b/aiplatform/v1/aiplatform-gen.go @@ -1493,6 +1493,8 @@ type CloudAiLargeModelsVisionGenerateVideoResponse struct { RaiMediaFilteredCount int64 `json:"raiMediaFilteredCount,omitempty"` // RaiMediaFilteredReasons: Returns rai failure reasons if any. RaiMediaFilteredReasons []string `json:"raiMediaFilteredReasons,omitempty"` + // Videos: List of videos, used to align naming with the external response. + Videos []*CloudAiLargeModelsVisionGenerateVideoResponseVideo `json:"videos,omitempty"` // ForceSendFields is a list of field names (e.g. "GeneratedSamples") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -1511,6 +1513,31 @@ func (s CloudAiLargeModelsVisionGenerateVideoResponse) MarshalJSON() ([]byte, er return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +type CloudAiLargeModelsVisionGenerateVideoResponseVideo struct { + // BytesBase64Encoded: Base64 encoded bytes string representing the video. + BytesBase64Encoded string `json:"bytesBase64Encoded,omitempty"` + // GcsUri: Cloud Storage URI where the generated video is written. + GcsUri string `json:"gcsUri,omitempty"` + // MimeType: The MIME type of the content of the video. - video/mp4 + MimeType string `json:"mimeType,omitempty"` + // ForceSendFields is a list of field names (e.g. "BytesBase64Encoded") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "BytesBase64Encoded") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s CloudAiLargeModelsVisionGenerateVideoResponseVideo) MarshalJSON() ([]byte, error) { + type NoMethod CloudAiLargeModelsVisionGenerateVideoResponseVideo + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // CloudAiLargeModelsVisionImage: Image. type CloudAiLargeModelsVisionImage struct { // Encoding: Image encoding, encoded as "image/png" or "image/jpg". @@ -1875,6 +1902,8 @@ type CloudAiLargeModelsVisionVideo struct { EncodedVideo string `json:"encodedVideo,omitempty"` // Encoding: Video encoding, for example "video/mp4". Encoding string `json:"encoding,omitempty"` + // Text: Text/Expanded text input for Help Me Write. + Text string `json:"text,omitempty"` // Uri: Path to another storage (typically Google Cloud Storage). Uri string `json:"uri,omitempty"` // Video: Raw bytes. @@ -7707,6 +7736,11 @@ func (s GoogleCloudAiplatformV1Endpoint) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1EnterpriseWebSearch: Tool to search public web data, +// powered by Vertex AI Search and Sec4 compliance. +type GoogleCloudAiplatformV1EnterpriseWebSearch struct { +} + // GoogleCloudAiplatformV1EntityIdSelector: Selector for entityId. Getting ids // from the given source. type GoogleCloudAiplatformV1EntityIdSelector struct { @@ -12588,7 +12622,14 @@ type GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata struct { // PromptTokensDetails: Output only. List of modalities that were processed in // the request input. PromptTokensDetails []*GoogleCloudAiplatformV1ModalityTokenCount `json:"promptTokensDetails,omitempty"` - // TotalTokenCount: Total token count for prompt and response candidates. + // ToolUsePromptTokenCount: Output only. Number of tokens present in tool-use + // prompt(s). + ToolUsePromptTokenCount int64 `json:"toolUsePromptTokenCount,omitempty"` + // ToolUsePromptTokensDetails: Output only. List of modalities that were + // processed for tool-use request inputs. + ToolUsePromptTokensDetails []*GoogleCloudAiplatformV1ModalityTokenCount `json:"toolUsePromptTokensDetails,omitempty"` + // TotalTokenCount: Total token count for prompt, response candidates, and + // tool-use prompts (if present). TotalTokenCount int64 `json:"totalTokenCount,omitempty"` // ForceSendFields is a list of field names (e.g. "CacheTokensDetails") to // unconditionally include in API requests. By default, fields with empty or @@ -12608,6 +12649,61 @@ func (s GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata) MarshalJSON return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1GenerateVideoResponse: Generate video response. +type GoogleCloudAiplatformV1GenerateVideoResponse struct { + // GeneratedSamples: The cloud storage uris of the generated videos. + GeneratedSamples []string `json:"generatedSamples,omitempty"` + // RaiMediaFilteredCount: Returns if any videos were filtered due to RAI + // policies. + RaiMediaFilteredCount int64 `json:"raiMediaFilteredCount,omitempty"` + // RaiMediaFilteredReasons: Returns rai failure reasons if any. + RaiMediaFilteredReasons []string `json:"raiMediaFilteredReasons,omitempty"` + // Videos: List of video bytes or Cloud Storage URIs of the generated videos. + Videos []*GoogleCloudAiplatformV1GenerateVideoResponseVideo `json:"videos,omitempty"` + // ForceSendFields is a list of field names (e.g. "GeneratedSamples") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "GeneratedSamples") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1GenerateVideoResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1GenerateVideoResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1GenerateVideoResponseVideo: A generated video. +type GoogleCloudAiplatformV1GenerateVideoResponseVideo struct { + // BytesBase64Encoded: Base64 encoded bytes string representing the video. + BytesBase64Encoded string `json:"bytesBase64Encoded,omitempty"` + // GcsUri: Cloud Storage URI where the generated video is written. + GcsUri string `json:"gcsUri,omitempty"` + // MimeType: The MIME type of the content of the video. - video/mp4 + MimeType string `json:"mimeType,omitempty"` + // ForceSendFields is a list of field names (e.g. "BytesBase64Encoded") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "BytesBase64Encoded") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1GenerateVideoResponseVideo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1GenerateVideoResponseVideo + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1GenerationConfig: Generation config. type GoogleCloudAiplatformV1GenerationConfig struct { // AudioTimestamp: Optional. If enabled, audio timestamp will be included in @@ -16098,9 +16194,6 @@ type GoogleCloudAiplatformV1MachineSpec struct { // `n1-standard-2`. For BatchPredictionJob or as part of WorkerPoolSpec this // field is required. MachineType string `json:"machineType,omitempty"` - // MultihostGpuNodeCount: Optional. Immutable. The number of nodes per replica - // for multihost GPU deployments. - MultihostGpuNodeCount int64 `json:"multihostGpuNodeCount,omitempty"` // ReservationAffinity: Optional. Immutable. Configuration controlling how this // resource pool consumes reservation. ReservationAffinity *GoogleCloudAiplatformV1ReservationAffinity `json:"reservationAffinity,omitempty"` @@ -24298,6 +24391,9 @@ type GoogleCloudAiplatformV1ReasoningEngineSpec struct { // ClassMethods: Optional. Declarations for object class methods in OpenAPI // specification format. ClassMethods []googleapi.RawMessage `json:"classMethods,omitempty"` + // DeploymentSpec: Optional. The specification of a Reasoning Engine + // deployment. + DeploymentSpec *GoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec `json:"deploymentSpec,omitempty"` // PackageSpec: Required. User provided package spec of the ReasoningEngine. PackageSpec *GoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec `json:"packageSpec,omitempty"` // ForceSendFields is a list of field names (e.g. "ClassMethods") to @@ -24318,6 +24414,36 @@ func (s GoogleCloudAiplatformV1ReasoningEngineSpec) MarshalJSON() ([]byte, error return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec: The specification +// of a Reasoning Engine deployment. +type GoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec struct { + // Env: Optional. Environment variables to be set with the Reasoning Engine + // deployment. The environment variables can be updated through the + // UpdateReasoningEngine API. + Env []*GoogleCloudAiplatformV1EnvVar `json:"env,omitempty"` + // SecretEnv: Optional. Environment variables where the value is a secret in + // Cloud Secret Manager. To use this feature, add 'Secret Manager Secret + // Accessor' role (roles/secretmanager.secretAccessor) to AI Platform Reasoning + // Engine Service Agent. + SecretEnv []*GoogleCloudAiplatformV1SecretEnvVar `json:"secretEnv,omitempty"` + // ForceSendFields is a list of field names (e.g. "Env") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Env") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec: User provided package // spec like pickled object and package requirements. type GoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec struct { @@ -24498,7 +24624,7 @@ type GoogleCloudAiplatformV1ReservationAffinity struct { // the reservation must be identified via the `key` and `values` fields. ReservationAffinityType string `json:"reservationAffinityType,omitempty"` // Values: Optional. Corresponds to the label values of a reservation resource. - // This must be the full resource name of the reservation. + // This must be the full resource name of the reservation or reservation block. Values []string `json:"values,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") to unconditionally // include in API requests. By default, fields with empty or default values are @@ -32811,6 +32937,61 @@ func (s GoogleCloudAiplatformV1SearchNearestEntitiesResponse) MarshalJSON() ([]b return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1SecretEnvVar: Represents an environment variable +// where the value is a secret in Cloud Secret Manager. +type GoogleCloudAiplatformV1SecretEnvVar struct { + // Name: Required. Name of the secret environment variable. + Name string `json:"name,omitempty"` + // SecretRef: Required. Reference to a secret stored in the Cloud Secret + // Manager that will provide the value for this environment variable. + SecretRef *GoogleCloudAiplatformV1SecretRef `json:"secretRef,omitempty"` + // 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 + // https://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 + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1SecretEnvVar) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1SecretEnvVar + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1SecretRef: Reference to a secret stored in the Cloud +// Secret Manager that will provide the value for this environment variable. +type GoogleCloudAiplatformV1SecretRef struct { + // Secret: Required. The name of the secret in Cloud Secret Manager. Format: + // {secret_name} if the secret is in the same project. + // projects/{project}/secrets/{secret_name} if the secret is in a different + // project. + Secret string `json:"secret,omitempty"` + // Version: The Cloud Secret Manager secret version. Can be 'latest' for the + // latest version, an integer for a specific version, or a version alias. + Version string `json:"version,omitempty"` + // ForceSendFields is a list of field names (e.g. "Secret") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Secret") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1SecretRef) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1SecretRef + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1Segment: Segment of the content. type GoogleCloudAiplatformV1Segment struct { // EndIndex: Output only. End index in the given Part, measured in bytes. @@ -34797,6 +34978,7 @@ type GoogleCloudAiplatformV1SupervisedHyperParameters struct { // Possible values: // "ADAPTER_SIZE_UNSPECIFIED" - Adapter size is unspecified. // "ADAPTER_SIZE_ONE" - Adapter size 1. + // "ADAPTER_SIZE_TWO" - Adapter size 2. // "ADAPTER_SIZE_FOUR" - Adapter size 4. // "ADAPTER_SIZE_EIGHT" - Adapter size 8. // "ADAPTER_SIZE_SIXTEEN" - Adapter size 16. @@ -35741,9 +35923,11 @@ func (s GoogleCloudAiplatformV1TokensInfo) MarshalJSON() ([]byte, error) { // type of Tool (e.g FunctionDeclaration, Retrieval or GoogleSearchRetrieval). type GoogleCloudAiplatformV1Tool struct { // CodeExecution: Optional. CodeExecution tool type. Enables the model to - // execute code as part of generation. This field is only used by the Gemini - // Developer API services. + // execute code as part of generation. CodeExecution *GoogleCloudAiplatformV1ToolCodeExecution `json:"codeExecution,omitempty"` + // EnterpriseWebSearch: Optional. Tool to support searching public web data, + // powered by Vertex AI Search and Sec4 compliance. + EnterpriseWebSearch *GoogleCloudAiplatformV1EnterpriseWebSearch `json:"enterpriseWebSearch,omitempty"` // FunctionDeclarations: Optional. Function tool type. One or more function // declarations to be passed to the model along with the current user query. // Model may decide to call a subset of these functions by populating @@ -38328,9 +38512,10 @@ func (s *GoogleCloudAiplatformV1Value) UnmarshalJSON(data []byte) error { } // GoogleCloudAiplatformV1VertexAISearch: Retrieve from Vertex AI Search -// datastore for grounding. See https://cloud.google.com/products/agent-builder +// datastore or engine for grounding. datastore and engine are mutually +// exclusive. See https://cloud.google.com/products/agent-builder type GoogleCloudAiplatformV1VertexAISearch struct { - // Datastore: Required. Fully-qualified Vertex AI Search data store resource + // Datastore: Optional. Fully-qualified Vertex AI Search data store resource // ID. Format: // `projects/{project}/locations/{location}/collections/{collection}/dataStores/ // {dataStore}` diff --git a/aiplatform/v1beta1/aiplatform-api.json b/aiplatform/v1beta1/aiplatform-api.json index a9dfa3a131f..27682bf0286 100644 --- a/aiplatform/v1beta1/aiplatform-api.json +++ b/aiplatform/v1beta1/aiplatform-api.json @@ -22120,7 +22120,7 @@ } } }, - "revision": "20250212", + "revision": "20250226", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "CloudAiLargeModelsVisionGenerateVideoResponse": { @@ -22145,6 +22145,31 @@ "type": "string" }, "type": "array" + }, + "videos": { + "description": "List of videos, used to align naming with the external response.", + "items": { + "$ref": "CloudAiLargeModelsVisionGenerateVideoResponseVideo" + }, + "type": "array" + } + }, + "type": "object" + }, + "CloudAiLargeModelsVisionGenerateVideoResponseVideo": { + "id": "CloudAiLargeModelsVisionGenerateVideoResponseVideo", + "properties": { + "bytesBase64Encoded": { + "description": "Base64 encoded bytes string representing the video.", + "type": "string" + }, + "gcsUri": { + "description": "Cloud Storage URI where the generated video is written.", + "type": "string" + }, + "mimeType": { + "description": "The MIME type of the content of the video. - video/mp4", + "type": "string" } }, "type": "object" @@ -22424,6 +22449,10 @@ "description": "Video encoding, for example \"video/mp4\".", "type": "string" }, + "text": { + "description": "Text/Expanded text input for Help Me Write.", + "type": "string" + }, "uri": { "description": "Path to another storage (typically Google Cloud Storage).", "type": "string" @@ -26305,6 +26334,90 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1DeployRequest": { + "description": "Request message for ModelGardenService.Deploy.", + "id": "GoogleCloudAiplatformV1beta1DeployRequest", + "properties": { + "deployConfig": { + "$ref": "GoogleCloudAiplatformV1beta1DeployRequestDeployConfig", + "description": "Optional. The deploy config to use for the deployment. If not specified, the default deploy config will be used." + }, + "endpointConfig": { + "$ref": "GoogleCloudAiplatformV1beta1DeployRequestEndpointConfig", + "description": "Optional. The endpoint config to use for the deployment. If not specified, the default endpoint config will be used." + }, + "huggingFaceModelId": { + "description": "The Hugging Face model to deploy. Format: Hugging Face model ID like `google/gemma-2-2b-it`.", + "type": "string" + }, + "modelConfig": { + "$ref": "GoogleCloudAiplatformV1beta1DeployRequestModelConfig", + "description": "Optional. The model config to use for the deployment. If not specified, the default model config will be used." + }, + "publisherModelName": { + "description": "The Model Garden model to deploy. Format: `publishers/{publisher}/models/{publisher_model}@{version_id}`, or `publishers/hf-{hugging-face-author}/models/{hugging-face-model-name}@001`.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1DeployRequestDeployConfig": { + "description": "The deploy config to use for the deployment.", + "id": "GoogleCloudAiplatformV1beta1DeployRequestDeployConfig", + "properties": { + "dedicatedResources": { + "$ref": "GoogleCloudAiplatformV1beta1DedicatedResources", + "description": "Optional. The dedicated resources to use for the endpoint. If not set, the default resources will be used." + }, + "fastTryoutEnabled": { + "description": "Optional. If true, enable the QMT fast tryout feature for this model if possible.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1DeployRequestEndpointConfig": { + "description": "The endpoint config to use for the deployment.", + "id": "GoogleCloudAiplatformV1beta1DeployRequestEndpointConfig", + "properties": { + "dedicatedEndpointEnabled": { + "description": "Optional. If true, the endpoint will be exposed through a dedicated DNS [Endpoint.dedicated_endpoint_dns]. Your request to the dedicated DNS will be isolated from other users' traffic and will have better performance and reliability. Note: Once you enabled dedicated endpoint, you won't be able to send request to the shared DNS {region}-aiplatform.googleapis.com. The limitations will be removed soon.", + "type": "boolean" + }, + "endpointDisplayName": { + "description": "Optional. The user-specified display name of the endpoint. If not set, a default name will be used.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1DeployRequestModelConfig": { + "description": "The model config to use for the deployment.", + "id": "GoogleCloudAiplatformV1beta1DeployRequestModelConfig", + "properties": { + "acceptEula": { + "description": "Optional. Whether the user accepts the End User License Agreement (EULA) for the model.", + "type": "boolean" + }, + "containerSpec": { + "$ref": "GoogleCloudAiplatformV1beta1ModelContainerSpec", + "description": "Optional. The specification of the container that is to be used when deploying. If not set, the default container spec will be used." + }, + "huggingFaceAccessToken": { + "description": "Optional. The Hugging Face read access token used to access the model artifacts of gated models.", + "type": "string" + }, + "huggingFaceCacheEnabled": { + "description": "Optional. If true, the model will deploy with a cached version instead of directly downloading the model artifacts from Hugging Face. This is suitable for VPC-SC users with limited internet access.", + "type": "boolean" + }, + "modelDisplayName": { + "description": "Optional. The user-specified display name of the uploaded model. If not set, a default name will be used.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1DeploySolverOperationMetadata": { "description": "Runtime operation information for SolverService.DeploySolver.", "id": "GoogleCloudAiplatformV1beta1DeploySolverOperationMetadata", @@ -26732,6 +26845,7 @@ "enum": [ "ADAPTER_SIZE_UNSPECIFIED", "ADAPTER_SIZE_ONE", + "ADAPTER_SIZE_TWO", "ADAPTER_SIZE_FOUR", "ADAPTER_SIZE_EIGHT", "ADAPTER_SIZE_SIXTEEN", @@ -26740,6 +26854,7 @@ "enumDescriptions": [ "Adapter size is unspecified.", "Adapter size 1.", + "Adapter size 2.", "Adapter size 4.", "Adapter size 8.", "Adapter size 16.", @@ -26960,6 +27075,12 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1EnterpriseWebSearch": { + "description": "Tool to search public web data, powered by Vertex AI Search and Sec4 compliance.", + "id": "GoogleCloudAiplatformV1beta1EnterpriseWebSearch", + "properties": {}, + "type": "object" + }, "GoogleCloudAiplatformV1beta1EntityIdSelector": { "description": "Selector for entityId. Getting ids from the given source.", "id": "GoogleCloudAiplatformV1beta1EntityIdSelector", @@ -30980,8 +31101,22 @@ "readOnly": true, "type": "array" }, + "toolUsePromptTokenCount": { + "description": "Output only. Number of tokens present in tool-use prompt(s).", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "toolUsePromptTokensDetails": { + "description": "Output only. List of modalities that were processed for tool-use request inputs.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1ModalityTokenCount" + }, + "readOnly": true, + "type": "array" + }, "totalTokenCount": { - "description": "Total token count for prompt and response candidates.", + "description": "Total token count for prompt, response candidates, and tool-use prompts (if present).", "format": "int32", "type": "integer" } @@ -30993,6 +31128,7 @@ "id": "GoogleCloudAiplatformV1beta1GenerateVideoResponse", "properties": { "generatedSamples": { + "deprecated": true, "description": "The cloud storage uris of the generated videos.", "items": { "type": "string" @@ -31010,6 +31146,32 @@ "type": "string" }, "type": "array" + }, + "videos": { + "description": "List of video bytes or Cloud Storage URIs of the generated videos.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1GenerateVideoResponseVideo" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1GenerateVideoResponseVideo": { + "description": "A generated video.", + "id": "GoogleCloudAiplatformV1beta1GenerateVideoResponseVideo", + "properties": { + "bytesBase64Encoded": { + "description": "Base64 encoded bytes string representing the video.", + "type": "string" + }, + "gcsUri": { + "description": "Cloud Storage URI where the generated video is written.", + "type": "string" + }, + "mimeType": { + "description": "The MIME type of the content of the video. - video/mp4", + "type": "string" } }, "type": "object" @@ -33688,6 +33850,11 @@ "description": "Immutable. The type of the machine. See the [list of machine types supported for prediction](https://cloud.google.com/vertex-ai/docs/predictions/configure-compute#machine-types) See the [list of machine types supported for custom training](https://cloud.google.com/vertex-ai/docs/training/configure-compute#machine-types). For DeployedModel this field is optional, and the default value is `n1-standard-2`. For BatchPredictionJob or as part of WorkerPoolSpec this field is required.", "type": "string" }, + "multihostGpuNodeCount": { + "description": "Optional. Immutable. The number of nodes per replica for multihost GPU deployments.", + "format": "int32", + "type": "integer" + }, "reservationAffinity": { "$ref": "GoogleCloudAiplatformV1beta1ReservationAffinity", "description": "Optional. Immutable. Configuration controlling how this resource pool consumes reservation." @@ -41085,6 +41252,10 @@ }, "type": "array" }, + "deploymentSpec": { + "$ref": "GoogleCloudAiplatformV1beta1ReasoningEngineSpecDeploymentSpec", + "description": "Optional. The specification of a Reasoning Engine deployment." + }, "packageSpec": { "$ref": "GoogleCloudAiplatformV1beta1ReasoningEngineSpecPackageSpec", "description": "Required. User provided package spec of the ReasoningEngine." @@ -41092,6 +41263,27 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1ReasoningEngineSpecDeploymentSpec": { + "description": "The specification of a Reasoning Engine deployment.", + "id": "GoogleCloudAiplatformV1beta1ReasoningEngineSpecDeploymentSpec", + "properties": { + "env": { + "description": "Optional. Environment variables to be set with the Reasoning Engine deployment. The environment variables can be updated through the UpdateReasoningEngine API.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1EnvVar" + }, + "type": "array" + }, + "secretEnv": { + "description": "Optional. Environment variables where the value is a secret in Cloud Secret Manager. To use this feature, add 'Secret Manager Secret Accessor' role (roles/secretmanager.secretAccessor) to AI Platform Reasoning Engine Service Agent.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1SecretEnvVar" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1ReasoningEngineSpecPackageSpec": { "description": "User provided package spec like pickled object and package requirements.", "id": "GoogleCloudAiplatformV1beta1ReasoningEngineSpecPackageSpec", @@ -41319,7 +41511,7 @@ "type": "string" }, "values": { - "description": "Optional. Corresponds to the label values of a reservation resource. This must be the full resource name of the reservation.", + "description": "Optional. Corresponds to the label values of a reservation resource. This must be the full resource name of the reservation or reservation block.", "items": { "type": "string" }, @@ -46896,6 +47088,36 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1SecretEnvVar": { + "description": "Represents an environment variable where the value is a secret in Cloud Secret Manager.", + "id": "GoogleCloudAiplatformV1beta1SecretEnvVar", + "properties": { + "name": { + "description": "Required. Name of the secret environment variable.", + "type": "string" + }, + "secretRef": { + "$ref": "GoogleCloudAiplatformV1beta1SecretRef", + "description": "Required. Reference to a secret stored in the Cloud Secret Manager that will provide the value for this environment variable." + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1SecretRef": { + "description": "Reference to a secret stored in the Cloud Secret Manager that will provide the value for this environment variable.", + "id": "GoogleCloudAiplatformV1beta1SecretRef", + "properties": { + "secret": { + "description": "Required. The name of the secret in Cloud Secret Manager. Format: {secret_name} if the secret is in the same project. projects/{project}/secrets/{secret_name} if the secret is in a different project.", + "type": "string" + }, + "version": { + "description": "The Cloud Secret Manager secret version. Can be 'latest' for the latest version, an integer for a specific version, or a version alias.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1Segment": { "description": "Segment of the content.", "id": "GoogleCloudAiplatformV1beta1Segment", @@ -48281,6 +48503,7 @@ "enum": [ "ADAPTER_SIZE_UNSPECIFIED", "ADAPTER_SIZE_ONE", + "ADAPTER_SIZE_TWO", "ADAPTER_SIZE_FOUR", "ADAPTER_SIZE_EIGHT", "ADAPTER_SIZE_SIXTEEN", @@ -48289,6 +48512,7 @@ "enumDescriptions": [ "Adapter size is unspecified.", "Adapter size 1.", + "Adapter size 2.", "Adapter size 4.", "Adapter size 8.", "Adapter size 16.", @@ -49101,7 +49325,11 @@ "properties": { "codeExecution": { "$ref": "GoogleCloudAiplatformV1beta1ToolCodeExecution", - "description": "Optional. CodeExecution tool type. Enables the model to execute code as part of generation. This field is only used by the Gemini Developer API services." + "description": "Optional. CodeExecution tool type. Enables the model to execute code as part of generation." + }, + "enterpriseWebSearch": { + "$ref": "GoogleCloudAiplatformV1beta1EnterpriseWebSearch", + "description": "Optional. Tool to support searching public web data, powered by Vertex AI Search and Sec4 compliance." }, "functionDeclarations": { "description": "Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 128 function declarations can be provided.", @@ -50814,11 +51042,11 @@ "type": "object" }, "GoogleCloudAiplatformV1beta1VertexAISearch": { - "description": "Retrieve from Vertex AI Search datastore for grounding. See https://cloud.google.com/products/agent-builder", + "description": "Retrieve from Vertex AI Search datastore or engine for grounding. datastore and engine are mutually exclusive. See https://cloud.google.com/products/agent-builder", "id": "GoogleCloudAiplatformV1beta1VertexAISearch", "properties": { "datastore": { - "description": "Required. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`", + "description": "Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`", "type": "string" } }, diff --git a/aiplatform/v1beta1/aiplatform-gen.go b/aiplatform/v1beta1/aiplatform-gen.go index fa09cb3741e..f043c20c121 100644 --- a/aiplatform/v1beta1/aiplatform-gen.go +++ b/aiplatform/v1beta1/aiplatform-gen.go @@ -1757,6 +1757,8 @@ type CloudAiLargeModelsVisionGenerateVideoResponse struct { RaiMediaFilteredCount int64 `json:"raiMediaFilteredCount,omitempty"` // RaiMediaFilteredReasons: Returns rai failure reasons if any. RaiMediaFilteredReasons []string `json:"raiMediaFilteredReasons,omitempty"` + // Videos: List of videos, used to align naming with the external response. + Videos []*CloudAiLargeModelsVisionGenerateVideoResponseVideo `json:"videos,omitempty"` // ForceSendFields is a list of field names (e.g. "GeneratedSamples") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -1775,6 +1777,31 @@ func (s CloudAiLargeModelsVisionGenerateVideoResponse) MarshalJSON() ([]byte, er return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +type CloudAiLargeModelsVisionGenerateVideoResponseVideo struct { + // BytesBase64Encoded: Base64 encoded bytes string representing the video. + BytesBase64Encoded string `json:"bytesBase64Encoded,omitempty"` + // GcsUri: Cloud Storage URI where the generated video is written. + GcsUri string `json:"gcsUri,omitempty"` + // MimeType: The MIME type of the content of the video. - video/mp4 + MimeType string `json:"mimeType,omitempty"` + // ForceSendFields is a list of field names (e.g. "BytesBase64Encoded") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "BytesBase64Encoded") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s CloudAiLargeModelsVisionGenerateVideoResponseVideo) MarshalJSON() ([]byte, error) { + type NoMethod CloudAiLargeModelsVisionGenerateVideoResponseVideo + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // CloudAiLargeModelsVisionImage: Image. type CloudAiLargeModelsVisionImage struct { // Encoding: Image encoding, encoded as "image/png" or "image/jpg". @@ -2139,6 +2166,8 @@ type CloudAiLargeModelsVisionVideo struct { EncodedVideo string `json:"encodedVideo,omitempty"` // Encoding: Video encoding, for example "video/mp4". Encoding string `json:"encoding,omitempty"` + // Text: Text/Expanded text input for Help Me Write. + Text string `json:"text,omitempty"` // Uri: Path to another storage (typically Google Cloud Storage). Uri string `json:"uri,omitempty"` // Video: Raw bytes. @@ -7804,6 +7833,139 @@ func (s GoogleCloudAiplatformV1beta1DeployPublisherModelRequest) MarshalJSON() ( return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1DeployRequest: Request message for +// ModelGardenService.Deploy. +type GoogleCloudAiplatformV1beta1DeployRequest struct { + // DeployConfig: Optional. The deploy config to use for the deployment. If not + // specified, the default deploy config will be used. + DeployConfig *GoogleCloudAiplatformV1beta1DeployRequestDeployConfig `json:"deployConfig,omitempty"` + // EndpointConfig: Optional. The endpoint config to use for the deployment. If + // not specified, the default endpoint config will be used. + EndpointConfig *GoogleCloudAiplatformV1beta1DeployRequestEndpointConfig `json:"endpointConfig,omitempty"` + // HuggingFaceModelId: The Hugging Face model to deploy. Format: Hugging Face + // model ID like `google/gemma-2-2b-it`. + HuggingFaceModelId string `json:"huggingFaceModelId,omitempty"` + // ModelConfig: Optional. The model config to use for the deployment. If not + // specified, the default model config will be used. + ModelConfig *GoogleCloudAiplatformV1beta1DeployRequestModelConfig `json:"modelConfig,omitempty"` + // PublisherModelName: The Model Garden model to deploy. Format: + // `publishers/{publisher}/models/{publisher_model}@{version_id}`, or + // `publishers/hf-{hugging-face-author}/models/{hugging-face-model-name}@001`. + PublisherModelName string `json:"publisherModelName,omitempty"` + // ForceSendFields is a list of field names (e.g. "DeployConfig") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DeployConfig") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1DeployRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1DeployRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1DeployRequestDeployConfig: The deploy config to +// use for the deployment. +type GoogleCloudAiplatformV1beta1DeployRequestDeployConfig struct { + // DedicatedResources: Optional. The dedicated resources to use for the + // endpoint. If not set, the default resources will be used. + DedicatedResources *GoogleCloudAiplatformV1beta1DedicatedResources `json:"dedicatedResources,omitempty"` + // FastTryoutEnabled: Optional. If true, enable the QMT fast tryout feature for + // this model if possible. + FastTryoutEnabled bool `json:"fastTryoutEnabled,omitempty"` + // ForceSendFields is a list of field names (e.g. "DedicatedResources") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DedicatedResources") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1DeployRequestDeployConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1DeployRequestDeployConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1DeployRequestEndpointConfig: The endpoint config +// to use for the deployment. +type GoogleCloudAiplatformV1beta1DeployRequestEndpointConfig struct { + // DedicatedEndpointEnabled: Optional. If true, the endpoint will be exposed + // through a dedicated DNS [Endpoint.dedicated_endpoint_dns]. Your request to + // the dedicated DNS will be isolated from other users' traffic and will have + // better performance and reliability. Note: Once you enabled dedicated + // endpoint, you won't be able to send request to the shared DNS + // {region}-aiplatform.googleapis.com. The limitations will be removed soon. + DedicatedEndpointEnabled bool `json:"dedicatedEndpointEnabled,omitempty"` + // EndpointDisplayName: Optional. The user-specified display name of the + // endpoint. If not set, a default name will be used. + EndpointDisplayName string `json:"endpointDisplayName,omitempty"` + // ForceSendFields is a list of field names (e.g. "DedicatedEndpointEnabled") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DedicatedEndpointEnabled") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1DeployRequestEndpointConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1DeployRequestEndpointConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1DeployRequestModelConfig: The model config to +// use for the deployment. +type GoogleCloudAiplatformV1beta1DeployRequestModelConfig struct { + // AcceptEula: Optional. Whether the user accepts the End User License + // Agreement (EULA) for the model. + AcceptEula bool `json:"acceptEula,omitempty"` + // ContainerSpec: Optional. The specification of the container that is to be + // used when deploying. If not set, the default container spec will be used. + ContainerSpec *GoogleCloudAiplatformV1beta1ModelContainerSpec `json:"containerSpec,omitempty"` + // HuggingFaceAccessToken: Optional. The Hugging Face read access token used to + // access the model artifacts of gated models. + HuggingFaceAccessToken string `json:"huggingFaceAccessToken,omitempty"` + // HuggingFaceCacheEnabled: Optional. If true, the model will deploy with a + // cached version instead of directly downloading the model artifacts from + // Hugging Face. This is suitable for VPC-SC users with limited internet + // access. + HuggingFaceCacheEnabled bool `json:"huggingFaceCacheEnabled,omitempty"` + // ModelDisplayName: Optional. The user-specified display name of the uploaded + // model. If not set, a default name will be used. + ModelDisplayName string `json:"modelDisplayName,omitempty"` + // ForceSendFields is a list of field names (e.g. "AcceptEula") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AcceptEula") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1DeployRequestModelConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1DeployRequestModelConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1DeploySolverOperationMetadata: Runtime operation // information for SolverService.DeploySolver. type GoogleCloudAiplatformV1beta1DeploySolverOperationMetadata struct { @@ -8415,6 +8577,7 @@ type GoogleCloudAiplatformV1beta1DistillationHyperParameters struct { // Possible values: // "ADAPTER_SIZE_UNSPECIFIED" - Adapter size is unspecified. // "ADAPTER_SIZE_ONE" - Adapter size 1. + // "ADAPTER_SIZE_TWO" - Adapter size 2. // "ADAPTER_SIZE_FOUR" - Adapter size 4. // "ADAPTER_SIZE_EIGHT" - Adapter size 8. // "ADAPTER_SIZE_SIXTEEN" - Adapter size 16. @@ -8717,6 +8880,11 @@ func (s GoogleCloudAiplatformV1beta1Endpoint) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1EnterpriseWebSearch: Tool to search public web +// data, powered by Vertex AI Search and Sec4 compliance. +type GoogleCloudAiplatformV1beta1EnterpriseWebSearch struct { +} + // GoogleCloudAiplatformV1beta1EntityIdSelector: Selector for entityId. Getting // ids from the given source. type GoogleCloudAiplatformV1beta1EntityIdSelector struct { @@ -14362,7 +14530,14 @@ type GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata struct { // PromptTokensDetails: Output only. List of modalities that were processed in // the request input. PromptTokensDetails []*GoogleCloudAiplatformV1beta1ModalityTokenCount `json:"promptTokensDetails,omitempty"` - // TotalTokenCount: Total token count for prompt and response candidates. + // ToolUsePromptTokenCount: Output only. Number of tokens present in tool-use + // prompt(s). + ToolUsePromptTokenCount int64 `json:"toolUsePromptTokenCount,omitempty"` + // ToolUsePromptTokensDetails: Output only. List of modalities that were + // processed for tool-use request inputs. + ToolUsePromptTokensDetails []*GoogleCloudAiplatformV1beta1ModalityTokenCount `json:"toolUsePromptTokensDetails,omitempty"` + // TotalTokenCount: Total token count for prompt, response candidates, and + // tool-use prompts (if present). TotalTokenCount int64 `json:"totalTokenCount,omitempty"` // ForceSendFields is a list of field names (e.g. "CacheTokensDetails") to // unconditionally include in API requests. By default, fields with empty or @@ -14391,6 +14566,8 @@ type GoogleCloudAiplatformV1beta1GenerateVideoResponse struct { RaiMediaFilteredCount int64 `json:"raiMediaFilteredCount,omitempty"` // RaiMediaFilteredReasons: Returns rai failure reasons if any. RaiMediaFilteredReasons []string `json:"raiMediaFilteredReasons,omitempty"` + // Videos: List of video bytes or Cloud Storage URIs of the generated videos. + Videos []*GoogleCloudAiplatformV1beta1GenerateVideoResponseVideo `json:"videos,omitempty"` // ForceSendFields is a list of field names (e.g. "GeneratedSamples") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -14409,6 +14586,32 @@ func (s GoogleCloudAiplatformV1beta1GenerateVideoResponse) MarshalJSON() ([]byte return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1GenerateVideoResponseVideo: A generated video. +type GoogleCloudAiplatformV1beta1GenerateVideoResponseVideo struct { + // BytesBase64Encoded: Base64 encoded bytes string representing the video. + BytesBase64Encoded string `json:"bytesBase64Encoded,omitempty"` + // GcsUri: Cloud Storage URI where the generated video is written. + GcsUri string `json:"gcsUri,omitempty"` + // MimeType: The MIME type of the content of the video. - video/mp4 + MimeType string `json:"mimeType,omitempty"` + // ForceSendFields is a list of field names (e.g. "BytesBase64Encoded") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "BytesBase64Encoded") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1GenerateVideoResponseVideo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1GenerateVideoResponseVideo + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1GenerationConfig: Generation config. type GoogleCloudAiplatformV1beta1GenerationConfig struct { // AudioTimestamp: Optional. If enabled, audio timestamp will be included in @@ -18161,6 +18364,9 @@ type GoogleCloudAiplatformV1beta1MachineSpec struct { // `n1-standard-2`. For BatchPredictionJob or as part of WorkerPoolSpec this // field is required. MachineType string `json:"machineType,omitempty"` + // MultihostGpuNodeCount: Optional. Immutable. The number of nodes per replica + // for multihost GPU deployments. + MultihostGpuNodeCount int64 `json:"multihostGpuNodeCount,omitempty"` // ReservationAffinity: Optional. Immutable. Configuration controlling how this // resource pool consumes reservation. ReservationAffinity *GoogleCloudAiplatformV1beta1ReservationAffinity `json:"reservationAffinity,omitempty"` @@ -28341,6 +28547,9 @@ type GoogleCloudAiplatformV1beta1ReasoningEngineSpec struct { // ClassMethods: Optional. Declarations for object class methods in OpenAPI // specification format. ClassMethods []googleapi.RawMessage `json:"classMethods,omitempty"` + // DeploymentSpec: Optional. The specification of a Reasoning Engine + // deployment. + DeploymentSpec *GoogleCloudAiplatformV1beta1ReasoningEngineSpecDeploymentSpec `json:"deploymentSpec,omitempty"` // PackageSpec: Required. User provided package spec of the ReasoningEngine. PackageSpec *GoogleCloudAiplatformV1beta1ReasoningEngineSpecPackageSpec `json:"packageSpec,omitempty"` // ForceSendFields is a list of field names (e.g. "ClassMethods") to @@ -28361,6 +28570,36 @@ func (s GoogleCloudAiplatformV1beta1ReasoningEngineSpec) MarshalJSON() ([]byte, return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1ReasoningEngineSpecDeploymentSpec: The +// specification of a Reasoning Engine deployment. +type GoogleCloudAiplatformV1beta1ReasoningEngineSpecDeploymentSpec struct { + // Env: Optional. Environment variables to be set with the Reasoning Engine + // deployment. The environment variables can be updated through the + // UpdateReasoningEngine API. + Env []*GoogleCloudAiplatformV1beta1EnvVar `json:"env,omitempty"` + // SecretEnv: Optional. Environment variables where the value is a secret in + // Cloud Secret Manager. To use this feature, add 'Secret Manager Secret + // Accessor' role (roles/secretmanager.secretAccessor) to AI Platform Reasoning + // Engine Service Agent. + SecretEnv []*GoogleCloudAiplatformV1beta1SecretEnvVar `json:"secretEnv,omitempty"` + // ForceSendFields is a list of field names (e.g. "Env") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Env") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1ReasoningEngineSpecDeploymentSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1ReasoningEngineSpecDeploymentSpec + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1ReasoningEngineSpecPackageSpec: User provided // package spec like pickled object and package requirements. type GoogleCloudAiplatformV1beta1ReasoningEngineSpecPackageSpec struct { @@ -28651,7 +28890,7 @@ type GoogleCloudAiplatformV1beta1ReservationAffinity struct { // the reservation must be identified via the `key` and `values` fields. ReservationAffinityType string `json:"reservationAffinityType,omitempty"` // Values: Optional. Corresponds to the label values of a reservation resource. - // This must be the full resource name of the reservation. + // This must be the full resource name of the reservation or reservation block. Values []string `json:"values,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") to unconditionally // include in API requests. By default, fields with empty or default values are @@ -37360,6 +37599,62 @@ func (s GoogleCloudAiplatformV1beta1SearchNearestEntitiesResponse) MarshalJSON() return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1SecretEnvVar: Represents an environment variable +// where the value is a secret in Cloud Secret Manager. +type GoogleCloudAiplatformV1beta1SecretEnvVar struct { + // Name: Required. Name of the secret environment variable. + Name string `json:"name,omitempty"` + // SecretRef: Required. Reference to a secret stored in the Cloud Secret + // Manager that will provide the value for this environment variable. + SecretRef *GoogleCloudAiplatformV1beta1SecretRef `json:"secretRef,omitempty"` + // 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 + // https://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 + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1SecretEnvVar) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1SecretEnvVar + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1SecretRef: Reference to a secret stored in the +// Cloud Secret Manager that will provide the value for this environment +// variable. +type GoogleCloudAiplatformV1beta1SecretRef struct { + // Secret: Required. The name of the secret in Cloud Secret Manager. Format: + // {secret_name} if the secret is in the same project. + // projects/{project}/secrets/{secret_name} if the secret is in a different + // project. + Secret string `json:"secret,omitempty"` + // Version: The Cloud Secret Manager secret version. Can be 'latest' for the + // latest version, an integer for a specific version, or a version alias. + Version string `json:"version,omitempty"` + // ForceSendFields is a list of field names (e.g. "Secret") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Secret") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1SecretRef) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1SecretRef + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1Segment: Segment of the content. type GoogleCloudAiplatformV1beta1Segment struct { // EndIndex: Output only. End index in the given Part, measured in bytes. @@ -39502,6 +39797,7 @@ type GoogleCloudAiplatformV1beta1SupervisedHyperParameters struct { // Possible values: // "ADAPTER_SIZE_UNSPECIFIED" - Adapter size is unspecified. // "ADAPTER_SIZE_ONE" - Adapter size 1. + // "ADAPTER_SIZE_TWO" - Adapter size 2. // "ADAPTER_SIZE_FOUR" - Adapter size 4. // "ADAPTER_SIZE_EIGHT" - Adapter size 8. // "ADAPTER_SIZE_SIXTEEN" - Adapter size 16. @@ -40449,9 +40745,11 @@ func (s GoogleCloudAiplatformV1beta1TokensInfo) MarshalJSON() ([]byte, error) { // GoogleSearchRetrieval). type GoogleCloudAiplatformV1beta1Tool struct { // CodeExecution: Optional. CodeExecution tool type. Enables the model to - // execute code as part of generation. This field is only used by the Gemini - // Developer API services. + // execute code as part of generation. CodeExecution *GoogleCloudAiplatformV1beta1ToolCodeExecution `json:"codeExecution,omitempty"` + // EnterpriseWebSearch: Optional. Tool to support searching public web data, + // powered by Vertex AI Search and Sec4 compliance. + EnterpriseWebSearch *GoogleCloudAiplatformV1beta1EnterpriseWebSearch `json:"enterpriseWebSearch,omitempty"` // FunctionDeclarations: Optional. Function tool type. One or more function // declarations to be passed to the model along with the current user query. // Model may decide to call a subset of these functions by populating @@ -43162,9 +43460,10 @@ func (s *GoogleCloudAiplatformV1beta1Value) UnmarshalJSON(data []byte) error { } // GoogleCloudAiplatformV1beta1VertexAISearch: Retrieve from Vertex AI Search -// datastore for grounding. See https://cloud.google.com/products/agent-builder +// datastore or engine for grounding. datastore and engine are mutually +// exclusive. See https://cloud.google.com/products/agent-builder type GoogleCloudAiplatformV1beta1VertexAISearch struct { - // Datastore: Required. Fully-qualified Vertex AI Search data store resource + // Datastore: Optional. Fully-qualified Vertex AI Search data store resource // ID. Format: // `projects/{project}/locations/{location}/collections/{collection}/dataStores/ // {dataStore}` diff --git a/androidenterprise/v1/androidenterprise-api.json b/androidenterprise/v1/androidenterprise-api.json index 2c05e079fd3..bb6058b4c58 100644 --- a/androidenterprise/v1/androidenterprise-api.json +++ b/androidenterprise/v1/androidenterprise-api.json @@ -468,6 +468,41 @@ "https://www.googleapis.com/auth/androidenterprise" ] }, + "generateEnterpriseUpgradeUrl": { + "description": "Generates an enterprise upgrade URL to upgrade an existing managed Google Play Accounts enterprise to a managed Google domain. **Note:** This feature is not generally available.", + "flatPath": "androidenterprise/v1/enterprises/{enterpriseId}/generateEnterpriseUpgradeUrl", + "httpMethod": "POST", + "id": "androidenterprise.enterprises.generateEnterpriseUpgradeUrl", + "parameterOrder": [ + "enterpriseId" + ], + "parameters": { + "adminEmail": { + "description": "Optional. Email address used to prefill the admin field of the enterprise signup form as part of the upgrade process. This value is a hint only and can be altered by the user. Personal email addresses are not allowed. If `allowedDomains` is non-empty then this must belong to one of the `allowedDomains`.", + "location": "query", + "type": "string" + }, + "allowedDomains": { + "description": "Optional. A list of domains that are permitted for the admin email. The IT admin cannot enter an email address with a domain name that is not in this list. Subdomains of domains in this list are not allowed but can be allowed by adding a second entry which has `*.` prefixed to the domain name (e.g. *.example.com). If the field is not present or is an empty list then the IT admin is free to use any valid domain name. Personal email domains are not allowed.", + "location": "query", + "repeated": true, + "type": "string" + }, + "enterpriseId": { + "description": "Required. The ID of the enterprise.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "androidenterprise/v1/enterprises/{enterpriseId}/generateEnterpriseUpgradeUrl", + "response": { + "$ref": "GenerateEnterpriseUpgradeUrlResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/androidenterprise" + ] + }, "generateSignupUrl": { "description": "Generates a sign-up URL.", "flatPath": "androidenterprise/v1/enterprises/signupUrl", @@ -2656,7 +2691,7 @@ } } }, - "revision": "20250213", + "revision": "20250302", "rootUrl": "https://androidenterprise.googleapis.com/", "schemas": { "Administrator": { @@ -3395,6 +3430,25 @@ }, "type": "object" }, + "EnterpriseUpgradeEvent": { + "description": "An event generated when an enterprise is upgraded. **Note:** This feature is not generally available.", + "id": "EnterpriseUpgradeEvent", + "properties": { + "upgradeState": { + "description": "The upgrade state.", + "enum": [ + "upgradeStateUnspecified", + "upgradeStateSucceeded" + ], + "enumDescriptions": [ + "Unspecified. This value is not used.", + "The upgrade has succeeded." + ], + "type": "string" + } + }, + "type": "object" + }, "EnterprisesListResponse": { "id": "EnterprisesListResponse", "properties": { @@ -3460,6 +3514,17 @@ }, "type": "object" }, + "GenerateEnterpriseUpgradeUrlResponse": { + "description": "Response message for generating a URL to upgrade an existing managed Google Play Accounts enterprise to a managed Google domain. **Note:** This feature is not generally available.", + "id": "GenerateEnterpriseUpgradeUrlResponse", + "properties": { + "url": { + "description": "A URL for an enterprise admin to upgrade their enterprise. The page can't be rendered in an iframe.", + "type": "string" + } + }, + "type": "object" + }, "GoogleAuthenticationSettings": { "description": "Contains settings for Google-provided user authentication.", "id": "GoogleAuthenticationSettings", @@ -3943,6 +4008,10 @@ "description": "The ID of the enterprise for which the notification is sent. This will always be present.", "type": "string" }, + "enterpriseUpgradeEvent": { + "$ref": "EnterpriseUpgradeEvent", + "description": "Notifications about enterprise upgrade. **Note:** This feature is not generally available." + }, "installFailureEvent": { "$ref": "InstallFailureEvent", "description": "Notifications about an app installation failure." @@ -3967,7 +4036,8 @@ "appRestricionsSchemaChange", "productAvailabilityChange", "newDevice", - "deviceReportUpdate" + "deviceReportUpdate", + "enterpriseUpgrade" ], "enumDescriptions": [ "", @@ -3979,7 +4049,8 @@ "Notification about new app restrictions schema change.", "Notification about product availability change.", "Notification about a new device.", - "Notification about an updated device report." + "Notification about an updated device report.", + "Notification about an enterprise upgrade. **Note:** This feature is not generally available." ], "type": "string" }, diff --git a/androidenterprise/v1/androidenterprise-gen.go b/androidenterprise/v1/androidenterprise-gen.go index 12f441cae84..6245925afc1 100644 --- a/androidenterprise/v1/androidenterprise-gen.go +++ b/androidenterprise/v1/androidenterprise-gen.go @@ -1330,6 +1330,33 @@ func (s EnterpriseAuthenticationAppLinkConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// EnterpriseUpgradeEvent: An event generated when an enterprise is upgraded. +// **Note:** This feature is not generally available. +type EnterpriseUpgradeEvent struct { + // UpgradeState: The upgrade state. + // + // Possible values: + // "upgradeStateUnspecified" - Unspecified. This value is not used. + // "upgradeStateSucceeded" - The upgrade has succeeded. + UpgradeState string `json:"upgradeState,omitempty"` + // ForceSendFields is a list of field names (e.g. "UpgradeState") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "UpgradeState") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s EnterpriseUpgradeEvent) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseUpgradeEvent + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + type EnterprisesListResponse struct { // Enterprise: An enterprise. Enterprise []*Enterprise `json:"enterprise,omitempty"` @@ -1443,6 +1470,34 @@ func (s EntitlementsListResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GenerateEnterpriseUpgradeUrlResponse: Response message for generating a URL +// to upgrade an existing managed Google Play Accounts enterprise to a managed +// Google domain. **Note:** This feature is not generally available. +type GenerateEnterpriseUpgradeUrlResponse struct { + // Url: A URL for an enterprise admin to upgrade their enterprise. The page + // can't be rendered in an iframe. + Url string `json:"url,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Url") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Url") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GenerateEnterpriseUpgradeUrlResponse) MarshalJSON() ([]byte, error) { + type NoMethod GenerateEnterpriseUpgradeUrlResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleAuthenticationSettings: Contains settings for Google-provided user // authentication. type GoogleAuthenticationSettings struct { @@ -2097,6 +2152,9 @@ type Notification struct { // EnterpriseId: The ID of the enterprise for which the notification is sent. // This will always be present. EnterpriseId string `json:"enterpriseId,omitempty"` + // EnterpriseUpgradeEvent: Notifications about enterprise upgrade. **Note:** + // This feature is not generally available. + EnterpriseUpgradeEvent *EnterpriseUpgradeEvent `json:"enterpriseUpgradeEvent,omitempty"` // InstallFailureEvent: Notifications about an app installation failure. InstallFailureEvent *InstallFailureEvent `json:"installFailureEvent,omitempty"` // NewDeviceEvent: Notifications about new devices. @@ -2119,6 +2177,8 @@ type Notification struct { // change. // "newDevice" - Notification about a new device. // "deviceReportUpdate" - Notification about an updated device report. + // "enterpriseUpgrade" - Notification about an enterprise upgrade. **Note:** + // This feature is not generally available. NotificationType string `json:"notificationType,omitempty"` // ProductApprovalEvent: Notifications about changes to a product's approval // status. @@ -4616,6 +4676,128 @@ func (c *EnterprisesEnrollCall) Do(opts ...googleapi.CallOption) (*Enterprise, e return ret, nil } +type EnterprisesGenerateEnterpriseUpgradeUrlCall struct { + s *Service + enterpriseId string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// GenerateEnterpriseUpgradeUrl: Generates an enterprise upgrade URL to upgrade +// an existing managed Google Play Accounts enterprise to a managed Google +// domain. **Note:** This feature is not generally available. +// +// - enterpriseId: The ID of the enterprise. +func (r *EnterprisesService) GenerateEnterpriseUpgradeUrl(enterpriseId string) *EnterprisesGenerateEnterpriseUpgradeUrlCall { + c := &EnterprisesGenerateEnterpriseUpgradeUrlCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.enterpriseId = enterpriseId + return c +} + +// AdminEmail sets the optional parameter "adminEmail": Email address used to +// prefill the admin field of the enterprise signup form as part of the upgrade +// process. This value is a hint only and can be altered by the user. Personal +// email addresses are not allowed. If `allowedDomains` is non-empty then this +// must belong to one of the `allowedDomains`. +func (c *EnterprisesGenerateEnterpriseUpgradeUrlCall) AdminEmail(adminEmail string) *EnterprisesGenerateEnterpriseUpgradeUrlCall { + c.urlParams_.Set("adminEmail", adminEmail) + return c +} + +// AllowedDomains sets the optional parameter "allowedDomains": A list of +// domains that are permitted for the admin email. The IT admin cannot enter an +// email address with a domain name that is not in this list. Subdomains of +// domains in this list are not allowed but can be allowed by adding a second +// entry which has `*.` prefixed to the domain name (e.g. *.example.com). If +// the field is not present or is an empty list then the IT admin is free to +// use any valid domain name. Personal email domains are not allowed. +func (c *EnterprisesGenerateEnterpriseUpgradeUrlCall) AllowedDomains(allowedDomains ...string) *EnterprisesGenerateEnterpriseUpgradeUrlCall { + c.urlParams_.SetMulti("allowedDomains", append([]string{}, allowedDomains...)) + 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 *EnterprisesGenerateEnterpriseUpgradeUrlCall) Fields(s ...googleapi.Field) *EnterprisesGenerateEnterpriseUpgradeUrlCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *EnterprisesGenerateEnterpriseUpgradeUrlCall) Context(ctx context.Context) *EnterprisesGenerateEnterpriseUpgradeUrlCall { + 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 *EnterprisesGenerateEnterpriseUpgradeUrlCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *EnterprisesGenerateEnterpriseUpgradeUrlCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "androidenterprise/v1/enterprises/{enterpriseId}/generateEnterpriseUpgradeUrl") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "enterpriseId": c.enterpriseId, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "androidenterprise.enterprises.generateEnterpriseUpgradeUrl", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "androidenterprise.enterprises.generateEnterpriseUpgradeUrl" call. +// Any non-2xx status code is an error. Response headers are in either +// *GenerateEnterpriseUpgradeUrlResponse.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 *EnterprisesGenerateEnterpriseUpgradeUrlCall) Do(opts ...googleapi.CallOption) (*GenerateEnterpriseUpgradeUrlResponse, 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 := &GenerateEnterpriseUpgradeUrlResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "androidenterprise.enterprises.generateEnterpriseUpgradeUrl", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type EnterprisesGenerateSignupUrlCall struct { s *Service urlParams_ gensupport.URLParams diff --git a/androidmanagement/v1/androidmanagement-api.json b/androidmanagement/v1/androidmanagement-api.json index 5fa9437ed2d..3bbf1f8e8d5 100644 --- a/androidmanagement/v1/androidmanagement-api.json +++ b/androidmanagement/v1/androidmanagement-api.json @@ -172,6 +172,34 @@ "https://www.googleapis.com/auth/androidmanagement" ] }, + "generateEnterpriseUpgradeUrl": { + "description": "Generates an enterprise upgrade URL to upgrade an existing managed Google Play Accounts enterprise to a managed Google domain.Note: This feature is not generally available.", + "flatPath": "v1/enterprises/{enterprisesId}:generateEnterpriseUpgradeUrl", + "httpMethod": "POST", + "id": "androidmanagement.enterprises.generateEnterpriseUpgradeUrl", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the enterprise to be upgraded in the form enterprises/{enterpriseId}.", + "location": "path", + "pattern": "^enterprises/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:generateEnterpriseUpgradeUrl", + "request": { + "$ref": "GenerateEnterpriseUpgradeUrlRequest" + }, + "response": { + "$ref": "GenerateEnterpriseUpgradeUrlResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/androidmanagement" + ] + }, "get": { "description": "Gets an enterprise.", "flatPath": "v1/enterprises/{enterprisesId}", @@ -1174,7 +1202,7 @@ } } }, - "revision": "20250213", + "revision": "20250303", "rootUrl": "https://androidmanagement.googleapis.com/", "schemas": { "AdbShellCommandEvent": { @@ -3157,7 +3185,8 @@ "COMPLIANCE_REPORT", "STATUS_REPORT", "COMMAND", - "USAGE_LOGS" + "USAGE_LOGS", + "ENTERPRISE_UPGRADE" ], "enumDeprecated": [ false, @@ -3165,6 +3194,7 @@ true, false, false, + false, false ], "enumDescriptions": [ @@ -3173,7 +3203,8 @@ "Deprecated.", "A notification sent when a device issues a status report.", "A notification sent when a device command has completed.", - "A notification sent when device sends BatchUsageLogEvents." + "A notification sent when device sends BatchUsageLogEvents.", + "A notification sent when an enterprise is upgraded.Note: This feature is not generally available." ], "type": "string" }, @@ -3336,6 +3367,35 @@ }, "type": "object" }, + "GenerateEnterpriseUpgradeUrlRequest": { + "description": "Request message for generating a URL to upgrade an existing managed Google Play Accounts enterprise to a managed Google domain.Note: This feature is not generally available.", + "id": "GenerateEnterpriseUpgradeUrlRequest", + "properties": { + "adminEmail": { + "description": "Optional. Email address used to prefill the admin field of the enterprise signup form as part of the upgrade process. This value is a hint only and can be altered by the user. Personal email addresses are not allowed. If allowedDomains is non-empty then this must belong to one of the allowedDomains.", + "type": "string" + }, + "allowedDomains": { + "description": "Optional. A list of domains that are permitted for the admin email. The IT admin cannot enter an email address with a domain name that is not in this list. Subdomains of domains in this list are not allowed but can be allowed by adding a second entry which has *. prefixed to the domain name (e.g. *.example.com). If the field is not present or is an empty list then the IT admin is free to use any valid domain name. Personal email domains are not allowed.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GenerateEnterpriseUpgradeUrlResponse": { + "description": "Response message for generating a URL to upgrade an existing managed Google Play Accounts enterprise to a managed Google domain.Note: This feature is not generally available.", + "id": "GenerateEnterpriseUpgradeUrlResponse", + "properties": { + "url": { + "description": "A URL for an enterprise admin to upgrade their enterprise. The page can't be rendered in an iframe.", + "type": "string" + } + }, + "type": "object" + }, "GoogleAuthenticationSettings": { "description": "Contains settings for Google-provided user authentication.", "id": "GoogleAuthenticationSettings", diff --git a/androidmanagement/v1/androidmanagement-gen.go b/androidmanagement/v1/androidmanagement-gen.go index b41d20592c2..4b110f4731a 100644 --- a/androidmanagement/v1/androidmanagement-gen.go +++ b/androidmanagement/v1/androidmanagement-gen.go @@ -2573,6 +2573,8 @@ type Enterprise struct { // report. // "COMMAND" - A notification sent when a device command has completed. // "USAGE_LOGS" - A notification sent when device sends BatchUsageLogEvents. + // "ENTERPRISE_UPGRADE" - A notification sent when an enterprise is + // upgraded.Note: This feature is not generally available. EnabledNotificationTypes []string `json:"enabledNotificationTypes,omitempty"` // EnterpriseDisplayName: The name of the enterprise displayed to users. This // field has a maximum length of 100 characters. @@ -2808,6 +2810,70 @@ func (s FreezePeriod) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GenerateEnterpriseUpgradeUrlRequest: Request message for generating a URL to +// upgrade an existing managed Google Play Accounts enterprise to a managed +// Google domain.Note: This feature is not generally available. +type GenerateEnterpriseUpgradeUrlRequest struct { + // AdminEmail: Optional. Email address used to prefill the admin field of the + // enterprise signup form as part of the upgrade process. This value is a hint + // only and can be altered by the user. Personal email addresses are not + // allowed. If allowedDomains is non-empty then this must belong to one of the + // allowedDomains. + AdminEmail string `json:"adminEmail,omitempty"` + // AllowedDomains: Optional. A list of domains that are permitted for the admin + // email. The IT admin cannot enter an email address with a domain name that is + // not in this list. Subdomains of domains in this list are not allowed but can + // be allowed by adding a second entry which has *. prefixed to the domain name + // (e.g. *.example.com). If the field is not present or is an empty list then + // the IT admin is free to use any valid domain name. Personal email domains + // are not allowed. + AllowedDomains []string `json:"allowedDomains,omitempty"` + // ForceSendFields is a list of field names (e.g. "AdminEmail") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AdminEmail") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GenerateEnterpriseUpgradeUrlRequest) MarshalJSON() ([]byte, error) { + type NoMethod GenerateEnterpriseUpgradeUrlRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GenerateEnterpriseUpgradeUrlResponse: Response message for generating a URL +// to upgrade an existing managed Google Play Accounts enterprise to a managed +// Google domain.Note: This feature is not generally available. +type GenerateEnterpriseUpgradeUrlResponse struct { + // Url: A URL for an enterprise admin to upgrade their enterprise. The page + // can't be rendered in an iframe. + Url string `json:"url,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Url") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Url") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GenerateEnterpriseUpgradeUrlResponse) MarshalJSON() ([]byte, error) { + type NoMethod GenerateEnterpriseUpgradeUrlResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleAuthenticationSettings: Contains settings for Google-provided user // authentication. type GoogleAuthenticationSettings struct { @@ -7123,6 +7189,113 @@ func (c *EnterprisesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) return ret, nil } +type EnterprisesGenerateEnterpriseUpgradeUrlCall struct { + s *Service + name string + generateenterpriseupgradeurlrequest *GenerateEnterpriseUpgradeUrlRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// GenerateEnterpriseUpgradeUrl: Generates an enterprise upgrade URL to upgrade +// an existing managed Google Play Accounts enterprise to a managed Google +// domain.Note: This feature is not generally available. +// +// - name: The name of the enterprise to be upgraded in the form +// enterprises/{enterpriseId}. +func (r *EnterprisesService) GenerateEnterpriseUpgradeUrl(name string, generateenterpriseupgradeurlrequest *GenerateEnterpriseUpgradeUrlRequest) *EnterprisesGenerateEnterpriseUpgradeUrlCall { + c := &EnterprisesGenerateEnterpriseUpgradeUrlCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.generateenterpriseupgradeurlrequest = generateenterpriseupgradeurlrequest + 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 *EnterprisesGenerateEnterpriseUpgradeUrlCall) Fields(s ...googleapi.Field) *EnterprisesGenerateEnterpriseUpgradeUrlCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *EnterprisesGenerateEnterpriseUpgradeUrlCall) Context(ctx context.Context) *EnterprisesGenerateEnterpriseUpgradeUrlCall { + 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 *EnterprisesGenerateEnterpriseUpgradeUrlCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *EnterprisesGenerateEnterpriseUpgradeUrlCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.generateenterpriseupgradeurlrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:generateEnterpriseUpgradeUrl") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "androidmanagement.enterprises.generateEnterpriseUpgradeUrl", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "androidmanagement.enterprises.generateEnterpriseUpgradeUrl" call. +// Any non-2xx status code is an error. Response headers are in either +// *GenerateEnterpriseUpgradeUrlResponse.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 *EnterprisesGenerateEnterpriseUpgradeUrlCall) Do(opts ...googleapi.CallOption) (*GenerateEnterpriseUpgradeUrlResponse, 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 := &GenerateEnterpriseUpgradeUrlResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "androidmanagement.enterprises.generateEnterpriseUpgradeUrl", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type EnterprisesGetCall struct { s *Service name string diff --git a/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-api.json b/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-api.json index bc8afbcf3ab..47c417c9355 100644 --- a/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-api.json +++ b/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-api.json @@ -1367,7 +1367,7 @@ } } }, - "revision": "20250113", + "revision": "20250303", "rootUrl": "https://authorizedbuyersmarketplace.googleapis.com/", "schemas": { "AcceptProposalRequest": { @@ -1872,6 +1872,21 @@ "readOnly": true, "type": "string" }, + "buyerPermissionType": { + "description": "Output only. The buyer permission type of the deal.", + "enum": [ + "BUYER_PERMISSION_TYPE_UNSPECIFIED", + "NEGOTIATOR_ONLY", + "BIDDER" + ], + "enumDescriptions": [ + "A placeholder for an undefined buyer permission type.", + "Only the [Deal.negotiating_buyer] can transact on the deal.", + "All buyers under the [Deal.negotiating_buyer]'s bidder can transact on the deal." + ], + "readOnly": true, + "type": "string" + }, "client": { "description": "Output only. Refers to a Client. Format: `buyers/{buyerAccountId}/clients/{clientAccountid}`", "readOnly": true, diff --git a/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-gen.go b/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-gen.go index 3d9f91cd263..b5799642803 100644 --- a/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-gen.go +++ b/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-gen.go @@ -856,6 +856,16 @@ type Deal struct { // Buyer: Output only. Refers to a buyer in Real-time Bidding API's Buyer // resource. Format: `buyers/{buyerAccountId}` Buyer string `json:"buyer,omitempty"` + // BuyerPermissionType: Output only. The buyer permission type of the deal. + // + // Possible values: + // "BUYER_PERMISSION_TYPE_UNSPECIFIED" - A placeholder for an undefined buyer + // permission type. + // "NEGOTIATOR_ONLY" - Only the [Deal.negotiating_buyer] can transact on the + // deal. + // "BIDDER" - All buyers under the [Deal.negotiating_buyer]'s bidder can + // transact on the deal. + BuyerPermissionType string `json:"buyerPermissionType,omitempty"` // Client: Output only. Refers to a Client. Format: // `buyers/{buyerAccountId}/clients/{clientAccountid}` Client string `json:"client,omitempty"` diff --git a/authorizedbuyersmarketplace/v1alpha/authorizedbuyersmarketplace-api.json b/authorizedbuyersmarketplace/v1alpha/authorizedbuyersmarketplace-api.json index 5317e4f5e43..48d473b800b 100644 --- a/authorizedbuyersmarketplace/v1alpha/authorizedbuyersmarketplace-api.json +++ b/authorizedbuyersmarketplace/v1alpha/authorizedbuyersmarketplace-api.json @@ -1550,7 +1550,7 @@ } } }, - "revision": "20250205", + "revision": "20250303", "rootUrl": "https://authorizedbuyersmarketplace.googleapis.com/", "schemas": { "AcceptProposalRequest": { @@ -2109,6 +2109,21 @@ "readOnly": true, "type": "string" }, + "buyerPermissionType": { + "description": "Output only. The buyer permission type of the deal.", + "enum": [ + "BUYER_PERMISSION_TYPE_UNSPECIFIED", + "NEGOTIATOR_ONLY", + "BIDDER" + ], + "enumDescriptions": [ + "A placeholder for an undefined buyer permission type.", + "Only the [Deal.negotiating_buyer] can transact on the deal.", + "All buyers under the [Deal.negotiating_buyer]'s bidder can transact on the deal." + ], + "readOnly": true, + "type": "string" + }, "client": { "description": "Output only. Refers to a Client. Format: `buyers/{buyerAccountId}/clients/{clientAccountid}`", "readOnly": true, diff --git a/authorizedbuyersmarketplace/v1alpha/authorizedbuyersmarketplace-gen.go b/authorizedbuyersmarketplace/v1alpha/authorizedbuyersmarketplace-gen.go index 11e9a0d54c5..f57f1f9e096 100644 --- a/authorizedbuyersmarketplace/v1alpha/authorizedbuyersmarketplace-gen.go +++ b/authorizedbuyersmarketplace/v1alpha/authorizedbuyersmarketplace-gen.go @@ -921,6 +921,16 @@ type Deal struct { // Buyer: Output only. Refers to a buyer in Real-time Bidding API's Buyer // resource. Format: `buyers/{buyerAccountId}` Buyer string `json:"buyer,omitempty"` + // BuyerPermissionType: Output only. The buyer permission type of the deal. + // + // Possible values: + // "BUYER_PERMISSION_TYPE_UNSPECIFIED" - A placeholder for an undefined buyer + // permission type. + // "NEGOTIATOR_ONLY" - Only the [Deal.negotiating_buyer] can transact on the + // deal. + // "BIDDER" - All buyers under the [Deal.negotiating_buyer]'s bidder can + // transact on the deal. + BuyerPermissionType string `json:"buyerPermissionType,omitempty"` // Client: Output only. Refers to a Client. Format: // `buyers/{buyerAccountId}/clients/{clientAccountid}` Client string `json:"client,omitempty"` diff --git a/chat/v1/chat-api.json b/chat/v1/chat-api.json index a59897a0a0f..0dbf295f389 100644 --- a/chat/v1/chat-api.json +++ b/chat/v1/chat-api.json @@ -79,6 +79,9 @@ }, "https://www.googleapis.com/auth/chat.users.readstate.readonly": { "description": "View last read time for Google Chat conversations" + }, + "https://www.googleapis.com/auth/chat.users.spacesettings": { + "description": "Read and update your space settings" } } } @@ -1309,6 +1312,69 @@ } }, "resources": { + "spaceNotificationSetting": { + "methods": { + "get": { + "description": "Gets the space notification state setting. Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).", + "flatPath": "v1/users/{usersId}/spaces/{spacesId}/spaceNotificationSetting", + "httpMethod": "GET", + "id": "chat.users.spaces.spaceNotificationSetting.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Format: users/{user}/spaces/{space}/spaceNotificationSetting - `users/me/spaces/{space}/spaceNotificationSetting`, OR - `users/user@example.com/spaces/{space}/spaceNotificationSetting`, OR - `users/123456789/spaces/{space}/spaceNotificationSetting`. Note: Only the caller's user id or email is allowed in the path.", + "location": "path", + "pattern": "^users/[^/]+/spaces/[^/]+/spaceNotificationSetting$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "SpaceNotificationSetting" + }, + "scopes": [ + "https://www.googleapis.com/auth/chat.users.spacesettings" + ] + }, + "patch": { + "description": "Updates the space notification state setting. Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).", + "flatPath": "v1/users/{usersId}/spaces/{spacesId}/spaceNotificationSetting", + "httpMethod": "PATCH", + "id": "chat.users.spaces.spaceNotificationSetting.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Identifier. The resource name of the space notification setting. Format: `users/{user}/spaces/{space}/spaceNotificationSetting`.", + "location": "path", + "pattern": "^users/[^/]+/spaces/[^/]+/spaceNotificationSetting$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. Supported field paths: - `notification_setting` - `mute_setting`", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "SpaceNotificationSetting" + }, + "response": { + "$ref": "SpaceNotificationSetting" + }, + "scopes": [ + "https://www.googleapis.com/auth/chat.users.spacesettings" + ] + } + } + }, "threads": { "methods": { "getThreadReadState": { @@ -1344,7 +1410,7 @@ } } }, - "revision": "20250213", + "revision": "20250227", "rootUrl": "https://chat.googleapis.com/", "schemas": { "AccessSettings": { @@ -4913,6 +4979,49 @@ }, "type": "object" }, + "SpaceNotificationSetting": { + "description": "The notification setting of a user in a space.", + "id": "SpaceNotificationSetting", + "properties": { + "muteSetting": { + "description": "The space notification mute setting.", + "enum": [ + "MUTE_SETTING_UNSPECIFIED", + "UNMUTED", + "MUTED" + ], + "enumDescriptions": [ + "Reserved.", + "The user will receive notifications for the space based on the notification setting.", + "The user will not receive any notifications for the space, regardless of the notification setting." + ], + "type": "string" + }, + "name": { + "description": "Identifier. The resource name of the space notification setting. Format: `users/{user}/spaces/{space}/spaceNotificationSetting`.", + "type": "string" + }, + "notificationSetting": { + "description": "The notification setting.", + "enum": [ + "NOTIFICATION_SETTING_UNSPECIFIED", + "ALL", + "MAIN_CONVERSATIONS", + "FOR_YOU", + "OFF" + ], + "enumDescriptions": [ + "Reserved.", + "Notifications are triggered by @mentions, followed threads, first message of new threads. All new threads are automatically followed, unless manually unfollowed by the user.", + "The notification is triggered by @mentions, followed threads, first message of new threads. Not available for 1:1 direct messages.", + "The notification is triggered by @mentions, followed threads. Not available for 1:1 direct messages.", + "Notification is off." + ], + "type": "string" + } + }, + "type": "object" + }, "SpaceReadState": { "description": "A user's read state within a space, used to identify read and unread messages.", "id": "SpaceReadState", diff --git a/chat/v1/chat-gen.go b/chat/v1/chat-gen.go index 786a3f0c62a..b2f5e9d3cea 100644 --- a/chat/v1/chat-gen.go +++ b/chat/v1/chat-gen.go @@ -37,7 +37,7 @@ // By default, all available scopes (see "Constants") are used to authenticate. // To restrict scopes, use [google.golang.org/api/option.WithScopes]: // -// chatService, err := chat.NewService(ctx, option.WithScopes(chat.ChatUsersReadstateReadonlyScope)) +// chatService, err := chat.NewService(ctx, option.WithScopes(chat.ChatUsersSpacesettingsScope)) // // To use an API key for authentication (note: some APIs do not support API // keys), use [google.golang.org/api/option.WithAPIKey]: @@ -193,6 +193,9 @@ const ( // View last read time for Google Chat conversations ChatUsersReadstateReadonlyScope = "https://www.googleapis.com/auth/chat.users.readstate.readonly" + + // Read and update your space settings + ChatUsersSpacesettingsScope = "https://www.googleapis.com/auth/chat.users.spacesettings" ) // NewService creates a new Service. @@ -224,6 +227,7 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err "https://www.googleapis.com/auth/chat.spaces.readonly", "https://www.googleapis.com/auth/chat.users.readstate", "https://www.googleapis.com/auth/chat.users.readstate.readonly", + "https://www.googleapis.com/auth/chat.users.spacesettings", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) @@ -372,6 +376,7 @@ type UsersService struct { func NewUsersSpacesService(s *Service) *UsersSpacesService { rs := &UsersSpacesService{s: s} + rs.SpaceNotificationSetting = NewUsersSpacesSpaceNotificationSettingService(s) rs.Threads = NewUsersSpacesThreadsService(s) return rs } @@ -379,9 +384,20 @@ func NewUsersSpacesService(s *Service) *UsersSpacesService { type UsersSpacesService struct { s *Service + SpaceNotificationSetting *UsersSpacesSpaceNotificationSettingService + Threads *UsersSpacesThreadsService } +func NewUsersSpacesSpaceNotificationSettingService(s *Service) *UsersSpacesSpaceNotificationSettingService { + rs := &UsersSpacesSpaceNotificationSettingService{s: s} + return rs +} + +type UsersSpacesSpaceNotificationSettingService struct { + s *Service +} + func NewUsersSpacesThreadsService(s *Service) *UsersSpacesThreadsService { rs := &UsersSpacesThreadsService{s: s} return rs @@ -5647,6 +5663,55 @@ func (s SpaceEvent) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// SpaceNotificationSetting: The notification setting of a user in a space. +type SpaceNotificationSetting struct { + // MuteSetting: The space notification mute setting. + // + // Possible values: + // "MUTE_SETTING_UNSPECIFIED" - Reserved. + // "UNMUTED" - The user will receive notifications for the space based on the + // notification setting. + // "MUTED" - The user will not receive any notifications for the space, + // regardless of the notification setting. + MuteSetting string `json:"muteSetting,omitempty"` + // Name: Identifier. The resource name of the space notification setting. + // Format: `users/{user}/spaces/{space}/spaceNotificationSetting`. + Name string `json:"name,omitempty"` + // NotificationSetting: The notification setting. + // + // Possible values: + // "NOTIFICATION_SETTING_UNSPECIFIED" - Reserved. + // "ALL" - Notifications are triggered by @mentions, followed threads, first + // message of new threads. All new threads are automatically followed, unless + // manually unfollowed by the user. + // "MAIN_CONVERSATIONS" - The notification is triggered by @mentions, + // followed threads, first message of new threads. Not available for 1:1 direct + // messages. + // "FOR_YOU" - The notification is triggered by @mentions, followed threads. + // Not available for 1:1 direct messages. + // "OFF" - Notification is off. + NotificationSetting string `json:"notificationSetting,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "MuteSetting") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "MuteSetting") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SpaceNotificationSetting) MarshalJSON() ([]byte, error) { + type NoMethod SpaceNotificationSetting + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // SpaceReadState: A user's read state within a space, used to identify read // and unread messages. type SpaceReadState struct { @@ -10509,6 +10574,235 @@ func (c *UsersSpacesUpdateSpaceReadStateCall) Do(opts ...googleapi.CallOption) ( return ret, nil } +type UsersSpacesSpaceNotificationSettingGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the space notification state setting. Requires user authentication +// (https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). +// +// - name: Format: users/{user}/spaces/{space}/spaceNotificationSetting - +// `users/me/spaces/{space}/spaceNotificationSetting`, OR - +// `users/user@example.com/spaces/{space}/spaceNotificationSetting`, OR - +// `users/123456789/spaces/{space}/spaceNotificationSetting`. Note: Only the +// caller's user id or email is allowed in the path. +func (r *UsersSpacesSpaceNotificationSettingService) Get(name string) *UsersSpacesSpaceNotificationSettingGetCall { + c := &UsersSpacesSpaceNotificationSettingGetCall{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 *UsersSpacesSpaceNotificationSettingGetCall) Fields(s ...googleapi.Field) *UsersSpacesSpaceNotificationSettingGetCall { + 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 *UsersSpacesSpaceNotificationSettingGetCall) IfNoneMatch(entityTag string) *UsersSpacesSpaceNotificationSettingGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *UsersSpacesSpaceNotificationSettingGetCall) Context(ctx context.Context) *UsersSpacesSpaceNotificationSettingGetCall { + 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 *UsersSpacesSpaceNotificationSettingGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *UsersSpacesSpaceNotificationSettingGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chat.users.spaces.spaceNotificationSetting.get", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "chat.users.spaces.spaceNotificationSetting.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *SpaceNotificationSetting.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 *UsersSpacesSpaceNotificationSettingGetCall) Do(opts ...googleapi.CallOption) (*SpaceNotificationSetting, 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 := &SpaceNotificationSetting{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chat.users.spaces.spaceNotificationSetting.get", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type UsersSpacesSpaceNotificationSettingPatchCall struct { + s *Service + name string + spacenotificationsetting *SpaceNotificationSetting + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates the space notification state setting. Requires user +// authentication +// (https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). +// +// - name: Identifier. The resource name of the space notification setting. +// Format: `users/{user}/spaces/{space}/spaceNotificationSetting`. +func (r *UsersSpacesSpaceNotificationSettingService) Patch(name string, spacenotificationsetting *SpaceNotificationSetting) *UsersSpacesSpaceNotificationSettingPatchCall { + c := &UsersSpacesSpaceNotificationSettingPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.spacenotificationsetting = spacenotificationsetting + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. Supported +// field paths: - `notification_setting` - `mute_setting` +func (c *UsersSpacesSpaceNotificationSettingPatchCall) UpdateMask(updateMask string) *UsersSpacesSpaceNotificationSettingPatchCall { + 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 *UsersSpacesSpaceNotificationSettingPatchCall) Fields(s ...googleapi.Field) *UsersSpacesSpaceNotificationSettingPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *UsersSpacesSpaceNotificationSettingPatchCall) Context(ctx context.Context) *UsersSpacesSpaceNotificationSettingPatchCall { + 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 *UsersSpacesSpaceNotificationSettingPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *UsersSpacesSpaceNotificationSettingPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.spacenotificationsetting) + 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, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chat.users.spaces.spaceNotificationSetting.patch", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "chat.users.spaces.spaceNotificationSetting.patch" call. +// Any non-2xx status code is an error. Response headers are in either +// *SpaceNotificationSetting.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 *UsersSpacesSpaceNotificationSettingPatchCall) Do(opts ...googleapi.CallOption) (*SpaceNotificationSetting, 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 := &SpaceNotificationSetting{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chat.users.spaces.spaceNotificationSetting.patch", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type UsersSpacesThreadsGetThreadReadStateCall struct { s *Service name string diff --git a/content/v2.1/content-api.json b/content/v2.1/content-api.json index 554286c2cc5..100ccf61eee 100644 --- a/content/v2.1/content-api.json +++ b/content/v2.1/content-api.json @@ -4570,7 +4570,7 @@ } } }, - "revision": "20250208", + "revision": "20250301", "rootUrl": "https://shoppingcontent.googleapis.com/", "schemas": { "Account": { @@ -12955,7 +12955,7 @@ "id": "ReturnPolicyOnlineReturnReasonCategoryInfo", "properties": { "returnLabelSource": { - "description": "The corresponding return label source.", + "description": "The corresponding return label source. If the `ReturnMethod` field includes `BY_MAIL`, it is required to specify `ReturnLabelSource` for both `BUYER_REMORSE` and `ITEM_DEFECT` return reason categories.", "enum": [ "RETURN_LABEL_SOURCE_UNSPECIFIED", "DOWNLOAD_AND_PRINT", diff --git a/content/v2.1/content-gen.go b/content/v2.1/content-gen.go index 07b61fdf0f0..33bb72bbebc 100644 --- a/content/v2.1/content-gen.go +++ b/content/v2.1/content-gen.go @@ -11208,7 +11208,10 @@ func (s ReturnPolicyOnlineRestockingFee) MarshalJSON() ([]byte, error) { // ReturnPolicyOnlineReturnReasonCategoryInfo: The return reason category info // wrapper. type ReturnPolicyOnlineReturnReasonCategoryInfo struct { - // ReturnLabelSource: The corresponding return label source. + // ReturnLabelSource: The corresponding return label source. If the + // `ReturnMethod` field includes `BY_MAIL`, it is required to specify + // `ReturnLabelSource` for both `BUYER_REMORSE` and `ITEM_DEFECT` return reason + // categories. // // Possible values: // "RETURN_LABEL_SOURCE_UNSPECIFIED" - Default value. This value is unused. diff --git a/discoveryengine/v1/discoveryengine-api.json b/discoveryengine/v1/discoveryengine-api.json index b7c32a41d3f..fdb3a6dfbd9 100644 --- a/discoveryengine/v1/discoveryengine-api.json +++ b/discoveryengine/v1/discoveryengine-api.json @@ -6770,7 +6770,7 @@ } } }, - "revision": "20250226", + "revision": "20250228", "rootUrl": "https://discoveryengine.googleapis.com/", "schemas": { "GoogleApiDistribution": { @@ -10767,6 +10767,10 @@ "description": "Grounding source.", "id": "GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGroundingSource", "properties": { + "enterpriseWebRetrievalSource": { + "$ref": "GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGroundingSourceEnterpriseWebRetrievalSource", + "description": "If set, grounding is performed with enterprise web retrieval." + }, "googleSearchSource": { "$ref": "GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGroundingSourceGoogleSearchSource", "description": "If set, grounding is performed with Google Search." @@ -10782,6 +10786,12 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGroundingSourceEnterpriseWebRetrievalSource": { + "description": "Params for using enterprise web retrieval as grounding source.", + "id": "GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGroundingSourceEnterpriseWebRetrievalSource", + "properties": {}, + "type": "object" + }, "GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGroundingSourceGoogleSearchSource": { "description": "Google Search config parameters.", "id": "GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGroundingSourceGoogleSearchSource", @@ -15308,6 +15318,10 @@ "format": "int64", "type": "string" }, + "progress": { + "$ref": "GoogleCloudDiscoveryengineV1alphaConnectorRunEntityRunProgress", + "description": "Metadata to generate the progress bar." + }, "sourceApiRequestCount": { "description": "The number of requests sent to 3p API.", "format": "int64", @@ -15364,6 +15378,28 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaConnectorRunEntityRunProgress": { + "description": "Represents the progress of a sync run.", + "id": "GoogleCloudDiscoveryengineV1alphaConnectorRunEntityRunProgress", + "properties": { + "currentCount": { + "description": "The current progress.", + "format": "int64", + "type": "string" + }, + "percentile": { + "description": "Derived. The percentile of the progress.", + "format": "int32", + "type": "integer" + }, + "totalCount": { + "description": "The total.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaControl": { "description": "Defines a conditioned behavior to employ during serving. Must be attached to a ServingConfig to be considered at serving time. Permitted actions dependent on `SolutionType`.", "id": "GoogleCloudDiscoveryengineV1alphaControl", @@ -15865,11 +15901,13 @@ "description": "The data synchronization mode supported by the data connector.", "enum": [ "PERIODIC", - "STREAMING" + "STREAMING", + "UNSPECIFIED" ], "enumDescriptions": [ "The connector will sync data periodically based on the refresh_interval. Use it with auto_run_disabled to pause the periodic sync, or indicate a one-time sync.", - "The data will be synced in real time." + "The data will be synced in real time.", + "Connector that doesn't ingest data will have this value" ], "type": "string" }, @@ -16117,10 +16155,18 @@ "description": "The historical dedicated crawl rate timeseries data, used for monitoring. Dedicated crawl is used by Vertex AI to crawl the user's website when dedicate crawl is set.", "id": "GoogleCloudDiscoveryengineV1alphaDedicatedCrawlRateTimeSeries", "properties": { + "autoRefreshCrawlErrorRate": { + "$ref": "GoogleCloudDiscoveryengineV1alphaCrawlRateTimeSeries", + "description": "Vertex AI's error rate time series of auto-refresh dedicated crawl." + }, "autoRefreshCrawlRate": { "$ref": "GoogleCloudDiscoveryengineV1alphaCrawlRateTimeSeries", "description": "Vertex AI's dedicated crawl rate time series of auto-refresh, which is the crawl rate of Google-CloudVertexBot when dedicate crawl is set, and the crawl rate is for best effort use cases like refreshing urls periodically." }, + "userTriggeredCrawlErrorRate": { + "$ref": "GoogleCloudDiscoveryengineV1alphaCrawlRateTimeSeries", + "description": "Vertex AI's error rate time series of user triggered dedicated crawl." + }, "userTriggeredCrawlRate": { "$ref": "GoogleCloudDiscoveryengineV1alphaCrawlRateTimeSeries", "description": "Vertex AI's dedicated crawl rate time series of user triggered crawl, which is the crawl rate of Google-CloudVertexBot when dedicate crawl is set, and user triggered crawl rate is for deterministic use cases like crawling urls or sitemaps specified by users." @@ -20205,10 +20251,18 @@ "description": "The historical dedicated crawl rate timeseries data, used for monitoring. Dedicated crawl is used by Vertex AI to crawl the user's website when dedicate crawl is set.", "id": "GoogleCloudDiscoveryengineV1betaDedicatedCrawlRateTimeSeries", "properties": { + "autoRefreshCrawlErrorRate": { + "$ref": "GoogleCloudDiscoveryengineV1betaCrawlRateTimeSeries", + "description": "Vertex AI's error rate time series of auto-refresh dedicated crawl." + }, "autoRefreshCrawlRate": { "$ref": "GoogleCloudDiscoveryengineV1betaCrawlRateTimeSeries", "description": "Vertex AI's dedicated crawl rate time series of auto-refresh, which is the crawl rate of Google-CloudVertexBot when dedicate crawl is set, and the crawl rate is for best effort use cases like refreshing urls periodically." }, + "userTriggeredCrawlErrorRate": { + "$ref": "GoogleCloudDiscoveryengineV1betaCrawlRateTimeSeries", + "description": "Vertex AI's error rate time series of user triggered dedicated crawl." + }, "userTriggeredCrawlRate": { "$ref": "GoogleCloudDiscoveryengineV1betaCrawlRateTimeSeries", "description": "Vertex AI's dedicated crawl rate time series of user triggered crawl, which is the crawl rate of Google-CloudVertexBot when dedicate crawl is set, and user triggered crawl rate is for deterministic use cases like crawling urls or sitemaps specified by users." diff --git a/discoveryengine/v1/discoveryengine-gen.go b/discoveryengine/v1/discoveryengine-gen.go index 3978bdf3339..2c954916133 100644 --- a/discoveryengine/v1/discoveryengine-gen.go +++ b/discoveryengine/v1/discoveryengine-gen.go @@ -6591,21 +6591,24 @@ func (s *GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGenerationSpe // GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGroundingSource: // Grounding source. type GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGroundingSource struct { + // EnterpriseWebRetrievalSource: If set, grounding is performed with enterprise + // web retrieval. + EnterpriseWebRetrievalSource *GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGroundingSourceEnterpriseWebRetrievalSource `json:"enterpriseWebRetrievalSource,omitempty"` // GoogleSearchSource: If set, grounding is performed with Google Search. GoogleSearchSource *GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGroundingSourceGoogleSearchSource `json:"googleSearchSource,omitempty"` // InlineSource: If set, grounding is performed with inline content. InlineSource *GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGroundingSourceInlineSource `json:"inlineSource,omitempty"` // SearchSource: If set, grounding is performed with Vertex AI Search. SearchSource *GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGroundingSourceSearchSource `json:"searchSource,omitempty"` - // ForceSendFields is a list of field names (e.g. "GoogleSearchSource") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. + // ForceSendFields is a list of field names (e.g. + // "EnterpriseWebRetrievalSource") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "GoogleSearchSource") 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. "EnterpriseWebRetrievalSource") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -6615,6 +6618,12 @@ func (s GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGroundingSourc return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGroundingSourceEnte +// rpriseWebRetrievalSource: Params for using enterprise web retrieval as +// grounding source. +type GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGroundingSourceEnterpriseWebRetrievalSource struct { +} + // GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGroundingSourceGoog // leSearchSource: Google Search config parameters. type GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGroundingSourceGoogleSearchSource struct { @@ -13087,6 +13096,8 @@ type GoogleCloudDiscoveryengineV1alphaConnectorRunEntityRun struct { ExtractedRecordCount int64 `json:"extractedRecordCount,omitempty,string"` // IndexedRecordCount: The number of documents indexed. IndexedRecordCount int64 `json:"indexedRecordCount,omitempty,string"` + // Progress: Metadata to generate the progress bar. + Progress *GoogleCloudDiscoveryengineV1alphaConnectorRunEntityRunProgress `json:"progress,omitempty"` // SourceApiRequestCount: The number of requests sent to 3p API. SourceApiRequestCount int64 `json:"sourceApiRequestCount,omitempty,string"` // State: The state of the entity's sync run. @@ -13132,6 +13143,33 @@ func (s GoogleCloudDiscoveryengineV1alphaConnectorRunEntityRun) MarshalJSON() ([ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1alphaConnectorRunEntityRunProgress: Represents +// the progress of a sync run. +type GoogleCloudDiscoveryengineV1alphaConnectorRunEntityRunProgress struct { + // CurrentCount: The current progress. + CurrentCount int64 `json:"currentCount,omitempty,string"` + // Percentile: Derived. The percentile of the progress. + Percentile int64 `json:"percentile,omitempty"` + // TotalCount: The total. + TotalCount int64 `json:"totalCount,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "CurrentCount") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CurrentCount") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1alphaConnectorRunEntityRunProgress) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaConnectorRunEntityRunProgress + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1alphaControl: Defines a conditioned behavior to // employ during serving. Must be attached to a ServingConfig to be considered // at serving time. Permitted actions dependent on `SolutionType`. @@ -13794,6 +13832,7 @@ type GoogleCloudDiscoveryengineV1alphaDataConnector struct { // refresh_interval. Use it with auto_run_disabled to pause the periodic sync, // or indicate a one-time sync. // "STREAMING" - The data will be synced in real time. + // "UNSPECIFIED" - Connector that doesn't ingest data will have this value SyncMode string `json:"syncMode,omitempty"` // UpdateTime: Output only. Timestamp the DataConnector was last updated. UpdateTime string `json:"updateTime,omitempty"` @@ -14059,25 +14098,31 @@ func (s GoogleCloudDiscoveryengineV1alphaDataStoreServingConfigDataStore) Marsha // Dedicated crawl is used by Vertex AI to crawl the user's website when // dedicate crawl is set. type GoogleCloudDiscoveryengineV1alphaDedicatedCrawlRateTimeSeries struct { + // AutoRefreshCrawlErrorRate: Vertex AI's error rate time series of + // auto-refresh dedicated crawl. + AutoRefreshCrawlErrorRate *GoogleCloudDiscoveryengineV1alphaCrawlRateTimeSeries `json:"autoRefreshCrawlErrorRate,omitempty"` // AutoRefreshCrawlRate: Vertex AI's dedicated crawl rate time series of // auto-refresh, which is the crawl rate of Google-CloudVertexBot when dedicate // crawl is set, and the crawl rate is for best effort use cases like // refreshing urls periodically. AutoRefreshCrawlRate *GoogleCloudDiscoveryengineV1alphaCrawlRateTimeSeries `json:"autoRefreshCrawlRate,omitempty"` + // UserTriggeredCrawlErrorRate: Vertex AI's error rate time series of user + // triggered dedicated crawl. + UserTriggeredCrawlErrorRate *GoogleCloudDiscoveryengineV1alphaCrawlRateTimeSeries `json:"userTriggeredCrawlErrorRate,omitempty"` // UserTriggeredCrawlRate: Vertex AI's dedicated crawl rate time series of user // triggered crawl, which is the crawl rate of Google-CloudVertexBot when // dedicate crawl is set, and user triggered crawl rate is for deterministic // use cases like crawling urls or sitemaps specified by users. UserTriggeredCrawlRate *GoogleCloudDiscoveryengineV1alphaCrawlRateTimeSeries `json:"userTriggeredCrawlRate,omitempty"` - // ForceSendFields is a list of field names (e.g. "AutoRefreshCrawlRate") to - // unconditionally include in API requests. By default, fields with empty or + // ForceSendFields is a list of field names (e.g. "AutoRefreshCrawlErrorRate") + // to unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AutoRefreshCrawlRate") 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. "AutoRefreshCrawlErrorRate") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -19784,25 +19829,31 @@ func (s GoogleCloudDiscoveryengineV1betaDataStoreServingConfigDataStore) Marshal // dedicated crawl rate timeseries data, used for monitoring. Dedicated crawl // is used by Vertex AI to crawl the user's website when dedicate crawl is set. type GoogleCloudDiscoveryengineV1betaDedicatedCrawlRateTimeSeries struct { + // AutoRefreshCrawlErrorRate: Vertex AI's error rate time series of + // auto-refresh dedicated crawl. + AutoRefreshCrawlErrorRate *GoogleCloudDiscoveryengineV1betaCrawlRateTimeSeries `json:"autoRefreshCrawlErrorRate,omitempty"` // AutoRefreshCrawlRate: Vertex AI's dedicated crawl rate time series of // auto-refresh, which is the crawl rate of Google-CloudVertexBot when dedicate // crawl is set, and the crawl rate is for best effort use cases like // refreshing urls periodically. AutoRefreshCrawlRate *GoogleCloudDiscoveryengineV1betaCrawlRateTimeSeries `json:"autoRefreshCrawlRate,omitempty"` + // UserTriggeredCrawlErrorRate: Vertex AI's error rate time series of user + // triggered dedicated crawl. + UserTriggeredCrawlErrorRate *GoogleCloudDiscoveryengineV1betaCrawlRateTimeSeries `json:"userTriggeredCrawlErrorRate,omitempty"` // UserTriggeredCrawlRate: Vertex AI's dedicated crawl rate time series of user // triggered crawl, which is the crawl rate of Google-CloudVertexBot when // dedicate crawl is set, and user triggered crawl rate is for deterministic // use cases like crawling urls or sitemaps specified by users. UserTriggeredCrawlRate *GoogleCloudDiscoveryengineV1betaCrawlRateTimeSeries `json:"userTriggeredCrawlRate,omitempty"` - // ForceSendFields is a list of field names (e.g. "AutoRefreshCrawlRate") to - // unconditionally include in API requests. By default, fields with empty or + // ForceSendFields is a list of field names (e.g. "AutoRefreshCrawlErrorRate") + // to unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AutoRefreshCrawlRate") 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. "AutoRefreshCrawlErrorRate") to + // include in API requests with the JSON null value. By default, fields with + // 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/discoveryengine/v1alpha/discoveryengine-api.json b/discoveryengine/v1alpha/discoveryengine-api.json index d51da4ad0c3..e91ffa1bdc5 100644 --- a/discoveryengine/v1alpha/discoveryengine-api.json +++ b/discoveryengine/v1alpha/discoveryengine-api.json @@ -9011,7 +9011,7 @@ } } }, - "revision": "20250226", + "revision": "20250228", "rootUrl": "https://discoveryengine.googleapis.com/", "schemas": { "ApiservingMediaRequestInfo": { @@ -14831,6 +14831,10 @@ "format": "int64", "type": "string" }, + "progress": { + "$ref": "GoogleCloudDiscoveryengineV1alphaConnectorRunEntityRunProgress", + "description": "Metadata to generate the progress bar." + }, "sourceApiRequestCount": { "description": "The number of requests sent to 3p API.", "format": "int64", @@ -14887,6 +14891,28 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaConnectorRunEntityRunProgress": { + "description": "Represents the progress of a sync run.", + "id": "GoogleCloudDiscoveryengineV1alphaConnectorRunEntityRunProgress", + "properties": { + "currentCount": { + "description": "The current progress.", + "format": "int64", + "type": "string" + }, + "percentile": { + "description": "Derived. The percentile of the progress.", + "format": "int32", + "type": "integer" + }, + "totalCount": { + "description": "The total.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaControl": { "description": "Defines a conditioned behavior to employ during serving. Must be attached to a ServingConfig to be considered at serving time. Permitted actions dependent on `SolutionType`.", "id": "GoogleCloudDiscoveryengineV1alphaControl", @@ -15650,11 +15676,13 @@ "description": "The data synchronization mode supported by the data connector.", "enum": [ "PERIODIC", - "STREAMING" + "STREAMING", + "UNSPECIFIED" ], "enumDescriptions": [ "The connector will sync data periodically based on the refresh_interval. Use it with auto_run_disabled to pause the periodic sync, or indicate a one-time sync.", - "The data will be synced in real time." + "The data will be synced in real time.", + "Connector that doesn't ingest data will have this value" ], "type": "string" }, @@ -15902,10 +15930,18 @@ "description": "The historical dedicated crawl rate timeseries data, used for monitoring. Dedicated crawl is used by Vertex AI to crawl the user's website when dedicate crawl is set.", "id": "GoogleCloudDiscoveryengineV1alphaDedicatedCrawlRateTimeSeries", "properties": { + "autoRefreshCrawlErrorRate": { + "$ref": "GoogleCloudDiscoveryengineV1alphaCrawlRateTimeSeries", + "description": "Vertex AI's error rate time series of auto-refresh dedicated crawl." + }, "autoRefreshCrawlRate": { "$ref": "GoogleCloudDiscoveryengineV1alphaCrawlRateTimeSeries", "description": "Vertex AI's dedicated crawl rate time series of auto-refresh, which is the crawl rate of Google-CloudVertexBot when dedicate crawl is set, and the crawl rate is for best effort use cases like refreshing urls periodically." }, + "userTriggeredCrawlErrorRate": { + "$ref": "GoogleCloudDiscoveryengineV1alphaCrawlRateTimeSeries", + "description": "Vertex AI's error rate time series of user triggered dedicated crawl." + }, "userTriggeredCrawlRate": { "$ref": "GoogleCloudDiscoveryengineV1alphaCrawlRateTimeSeries", "description": "Vertex AI's dedicated crawl rate time series of user triggered crawl, which is the crawl rate of Google-CloudVertexBot when dedicate crawl is set, and user triggered crawl rate is for deterministic use cases like crawling urls or sitemaps specified by users." @@ -17378,6 +17414,10 @@ "description": "Grounding source.", "id": "GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSource", "properties": { + "enterpriseWebRetrievalSource": { + "$ref": "GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSourceEnterpriseWebRetrievalSource", + "description": "If set, grounding is performed with enterprise web retrieval." + }, "googleSearchSource": { "$ref": "GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSourceGoogleSearchSource", "description": "If set, grounding is performed with Google Search." @@ -17393,6 +17433,12 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSourceEnterpriseWebRetrievalSource": { + "description": "Params for using enterprise web retrieval as grounding source.", + "id": "GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSourceEnterpriseWebRetrievalSource", + "properties": {}, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSourceGoogleSearchSource": { "description": "Google Search config parameters.", "id": "GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSourceGoogleSearchSource", @@ -21310,6 +21356,13 @@ "description": "Information describing what natural language understanding was done on the input query.", "id": "GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfo", "properties": { + "classifiedIntents": { + "description": "The classified intents from the input query.", + "items": { + "type": "string" + }, + "type": "array" + }, "extractedFilters": { "description": "The filters that were extracted from the input query.", "type": "string" @@ -23467,6 +23520,22 @@ "description": "Optional. Specifies whether to filter out queries that are not answer-seeking. The default value is `false`. No answer is returned if the search query is classified as a non-answer seeking query. If this field is set to `true`, we skip generating answers for non-answer seeking queries and return fallback messages instead.", "type": "boolean" }, + "imageSource": { + "description": "Optional. Source of image returned in the answer.", + "enum": [ + "IMAGE_SOURCE_UNSPECIFIED", + "ALL_AVAILABLE_SOURCES", + "CORPUS_IMAGE_ONLY", + "FIGURE_GENERATION_ONLY" + ], + "enumDescriptions": [ + "Unspecified image source (multimodal feature is disabled by default)", + "Behavior when service determines the pick from all available sources.", + "Include image from corpus in the answer.", + "Triggers figure generation in the answer." + ], + "type": "string" + }, "languageCode": { "description": "Language code for Summary. Use language tags defined by [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). Note: This is an experimental feature.", "type": "string" @@ -24221,10 +24290,18 @@ "description": "The historical dedicated crawl rate timeseries data, used for monitoring. Dedicated crawl is used by Vertex AI to crawl the user's website when dedicate crawl is set.", "id": "GoogleCloudDiscoveryengineV1betaDedicatedCrawlRateTimeSeries", "properties": { + "autoRefreshCrawlErrorRate": { + "$ref": "GoogleCloudDiscoveryengineV1betaCrawlRateTimeSeries", + "description": "Vertex AI's error rate time series of auto-refresh dedicated crawl." + }, "autoRefreshCrawlRate": { "$ref": "GoogleCloudDiscoveryengineV1betaCrawlRateTimeSeries", "description": "Vertex AI's dedicated crawl rate time series of auto-refresh, which is the crawl rate of Google-CloudVertexBot when dedicate crawl is set, and the crawl rate is for best effort use cases like refreshing urls periodically." }, + "userTriggeredCrawlErrorRate": { + "$ref": "GoogleCloudDiscoveryengineV1betaCrawlRateTimeSeries", + "description": "Vertex AI's error rate time series of user triggered dedicated crawl." + }, "userTriggeredCrawlRate": { "$ref": "GoogleCloudDiscoveryengineV1betaCrawlRateTimeSeries", "description": "Vertex AI's dedicated crawl rate time series of user triggered crawl, which is the crawl rate of Google-CloudVertexBot when dedicate crawl is set, and user triggered crawl rate is for deterministic use cases like crawling urls or sitemaps specified by users." diff --git a/discoveryengine/v1alpha/discoveryengine-gen.go b/discoveryengine/v1alpha/discoveryengine-gen.go index ce67b8b5c51..5fea8f69f44 100644 --- a/discoveryengine/v1alpha/discoveryengine-gen.go +++ b/discoveryengine/v1alpha/discoveryengine-gen.go @@ -9074,6 +9074,8 @@ type GoogleCloudDiscoveryengineV1alphaConnectorRunEntityRun struct { ExtractedRecordCount int64 `json:"extractedRecordCount,omitempty,string"` // IndexedRecordCount: The number of documents indexed. IndexedRecordCount int64 `json:"indexedRecordCount,omitempty,string"` + // Progress: Metadata to generate the progress bar. + Progress *GoogleCloudDiscoveryengineV1alphaConnectorRunEntityRunProgress `json:"progress,omitempty"` // SourceApiRequestCount: The number of requests sent to 3p API. SourceApiRequestCount int64 `json:"sourceApiRequestCount,omitempty,string"` // State: The state of the entity's sync run. @@ -9119,6 +9121,33 @@ func (s GoogleCloudDiscoveryengineV1alphaConnectorRunEntityRun) MarshalJSON() ([ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1alphaConnectorRunEntityRunProgress: Represents +// the progress of a sync run. +type GoogleCloudDiscoveryengineV1alphaConnectorRunEntityRunProgress struct { + // CurrentCount: The current progress. + CurrentCount int64 `json:"currentCount,omitempty,string"` + // Percentile: Derived. The percentile of the progress. + Percentile int64 `json:"percentile,omitempty"` + // TotalCount: The total. + TotalCount int64 `json:"totalCount,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "CurrentCount") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CurrentCount") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1alphaConnectorRunEntityRunProgress) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaConnectorRunEntityRunProgress + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1alphaControl: Defines a conditioned behavior to // employ during serving. Must be attached to a ServingConfig to be considered // at serving time. Permitted actions dependent on `SolutionType`. @@ -10112,6 +10141,7 @@ type GoogleCloudDiscoveryengineV1alphaDataConnector struct { // refresh_interval. Use it with auto_run_disabled to pause the periodic sync, // or indicate a one-time sync. // "STREAMING" - The data will be synced in real time. + // "UNSPECIFIED" - Connector that doesn't ingest data will have this value SyncMode string `json:"syncMode,omitempty"` // UpdateTime: Output only. Timestamp the DataConnector was last updated. UpdateTime string `json:"updateTime,omitempty"` @@ -10383,25 +10413,31 @@ func (s GoogleCloudDiscoveryengineV1alphaDataStoreServingConfigDataStore) Marsha // Dedicated crawl is used by Vertex AI to crawl the user's website when // dedicate crawl is set. type GoogleCloudDiscoveryengineV1alphaDedicatedCrawlRateTimeSeries struct { + // AutoRefreshCrawlErrorRate: Vertex AI's error rate time series of + // auto-refresh dedicated crawl. + AutoRefreshCrawlErrorRate *GoogleCloudDiscoveryengineV1alphaCrawlRateTimeSeries `json:"autoRefreshCrawlErrorRate,omitempty"` // AutoRefreshCrawlRate: Vertex AI's dedicated crawl rate time series of // auto-refresh, which is the crawl rate of Google-CloudVertexBot when dedicate // crawl is set, and the crawl rate is for best effort use cases like // refreshing urls periodically. AutoRefreshCrawlRate *GoogleCloudDiscoveryengineV1alphaCrawlRateTimeSeries `json:"autoRefreshCrawlRate,omitempty"` + // UserTriggeredCrawlErrorRate: Vertex AI's error rate time series of user + // triggered dedicated crawl. + UserTriggeredCrawlErrorRate *GoogleCloudDiscoveryengineV1alphaCrawlRateTimeSeries `json:"userTriggeredCrawlErrorRate,omitempty"` // UserTriggeredCrawlRate: Vertex AI's dedicated crawl rate time series of user // triggered crawl, which is the crawl rate of Google-CloudVertexBot when // dedicate crawl is set, and user triggered crawl rate is for deterministic // use cases like crawling urls or sitemaps specified by users. UserTriggeredCrawlRate *GoogleCloudDiscoveryengineV1alphaCrawlRateTimeSeries `json:"userTriggeredCrawlRate,omitempty"` - // ForceSendFields is a list of field names (e.g. "AutoRefreshCrawlRate") to - // unconditionally include in API requests. By default, fields with empty or + // ForceSendFields is a list of field names (e.g. "AutoRefreshCrawlErrorRate") + // to unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AutoRefreshCrawlRate") 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. "AutoRefreshCrawlErrorRate") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -12533,21 +12569,24 @@ func (s *GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGenerati // GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSourc // e: Grounding source. type GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSource struct { + // EnterpriseWebRetrievalSource: If set, grounding is performed with enterprise + // web retrieval. + EnterpriseWebRetrievalSource *GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSourceEnterpriseWebRetrievalSource `json:"enterpriseWebRetrievalSource,omitempty"` // GoogleSearchSource: If set, grounding is performed with Google Search. GoogleSearchSource *GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSourceGoogleSearchSource `json:"googleSearchSource,omitempty"` // InlineSource: If set, grounding is performed with inline content. InlineSource *GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSourceInlineSource `json:"inlineSource,omitempty"` // SearchSource: If set, grounding is performed with Vertex AI Search. SearchSource *GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSourceSearchSource `json:"searchSource,omitempty"` - // ForceSendFields is a list of field names (e.g. "GoogleSearchSource") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. + // ForceSendFields is a list of field names (e.g. + // "EnterpriseWebRetrievalSource") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "GoogleSearchSource") 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. "EnterpriseWebRetrievalSource") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -12557,6 +12596,12 @@ func (s GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGrounding return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSourc +// eEnterpriseWebRetrievalSource: Params for using enterprise web retrieval as +// grounding source. +type GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSourceEnterpriseWebRetrievalSource struct { +} + // GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSourc // eGoogleSearchSource: Google Search config parameters. type GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSourceGoogleSearchSource struct { @@ -18454,6 +18499,8 @@ func (s GoogleCloudDiscoveryengineV1alphaSearchResponseGuidedSearchResultRefinem // ingInfo: Information describing what natural language understanding was done // on the input query. type GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfo struct { + // ClassifiedIntents: The classified intents from the input query. + ClassifiedIntents []string `json:"classifiedIntents,omitempty"` // ExtractedFilters: The filters that were extracted from the input query. ExtractedFilters string `json:"extractedFilters,omitempty"` // RewrittenQuery: Rewritten input query minus the extracted filters. @@ -18464,13 +18511,13 @@ type GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUndersta // StructuredExtractedFilter: The filters that were extracted from the input // query represented in a structured form. StructuredExtractedFilter *GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilter `json:"structuredExtractedFilter,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExtractedFilters") to + // ForceSendFields is a list of field names (e.g. "ClassifiedIntents") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ExtractedFilters") to include in + // NullFields is a list of field names (e.g. "ClassifiedIntents") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -21258,6 +21305,16 @@ type GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettingsGenerativeAnswerConf // If this field is set to `true`, we skip generating answers for non-answer // seeking queries and return fallback messages instead. IgnoreNonAnswerSeekingQuery bool `json:"ignoreNonAnswerSeekingQuery,omitempty"` + // ImageSource: Optional. Source of image returned in the answer. + // + // Possible values: + // "IMAGE_SOURCE_UNSPECIFIED" - Unspecified image source (multimodal feature + // is disabled by default) + // "ALL_AVAILABLE_SOURCES" - Behavior when service determines the pick from + // all available sources. + // "CORPUS_IMAGE_ONLY" - Include image from corpus in the answer. + // "FIGURE_GENERATION_ONLY" - Triggers figure generation in the answer. + ImageSource string `json:"imageSource,omitempty"` // LanguageCode: Language code for Summary. Use language tags defined by BCP47 // (https://www.rfc-editor.org/rfc/bcp/bcp47.txt). Note: This is an // experimental feature. @@ -22232,25 +22289,31 @@ func (s GoogleCloudDiscoveryengineV1betaDataStoreServingConfigDataStore) Marshal // dedicated crawl rate timeseries data, used for monitoring. Dedicated crawl // is used by Vertex AI to crawl the user's website when dedicate crawl is set. type GoogleCloudDiscoveryengineV1betaDedicatedCrawlRateTimeSeries struct { + // AutoRefreshCrawlErrorRate: Vertex AI's error rate time series of + // auto-refresh dedicated crawl. + AutoRefreshCrawlErrorRate *GoogleCloudDiscoveryengineV1betaCrawlRateTimeSeries `json:"autoRefreshCrawlErrorRate,omitempty"` // AutoRefreshCrawlRate: Vertex AI's dedicated crawl rate time series of // auto-refresh, which is the crawl rate of Google-CloudVertexBot when dedicate // crawl is set, and the crawl rate is for best effort use cases like // refreshing urls periodically. AutoRefreshCrawlRate *GoogleCloudDiscoveryengineV1betaCrawlRateTimeSeries `json:"autoRefreshCrawlRate,omitempty"` + // UserTriggeredCrawlErrorRate: Vertex AI's error rate time series of user + // triggered dedicated crawl. + UserTriggeredCrawlErrorRate *GoogleCloudDiscoveryengineV1betaCrawlRateTimeSeries `json:"userTriggeredCrawlErrorRate,omitempty"` // UserTriggeredCrawlRate: Vertex AI's dedicated crawl rate time series of user // triggered crawl, which is the crawl rate of Google-CloudVertexBot when // dedicate crawl is set, and user triggered crawl rate is for deterministic // use cases like crawling urls or sitemaps specified by users. UserTriggeredCrawlRate *GoogleCloudDiscoveryengineV1betaCrawlRateTimeSeries `json:"userTriggeredCrawlRate,omitempty"` - // ForceSendFields is a list of field names (e.g. "AutoRefreshCrawlRate") to - // unconditionally include in API requests. By default, fields with empty or + // ForceSendFields is a list of field names (e.g. "AutoRefreshCrawlErrorRate") + // to unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AutoRefreshCrawlRate") 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. "AutoRefreshCrawlErrorRate") to + // include in API requests with the JSON null value. By default, fields with + // 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/discoveryengine/v1beta/discoveryengine-api.json b/discoveryengine/v1beta/discoveryengine-api.json index 726bb1675a9..ce352ab93d3 100644 --- a/discoveryengine/v1beta/discoveryengine-api.json +++ b/discoveryengine/v1beta/discoveryengine-api.json @@ -7750,7 +7750,7 @@ } } }, - "revision": "20250226", + "revision": "20250228", "rootUrl": "https://discoveryengine.googleapis.com/", "schemas": { "GoogleApiDistribution": { @@ -11366,6 +11366,10 @@ "format": "int64", "type": "string" }, + "progress": { + "$ref": "GoogleCloudDiscoveryengineV1alphaConnectorRunEntityRunProgress", + "description": "Metadata to generate the progress bar." + }, "sourceApiRequestCount": { "description": "The number of requests sent to 3p API.", "format": "int64", @@ -11422,6 +11426,28 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaConnectorRunEntityRunProgress": { + "description": "Represents the progress of a sync run.", + "id": "GoogleCloudDiscoveryengineV1alphaConnectorRunEntityRunProgress", + "properties": { + "currentCount": { + "description": "The current progress.", + "format": "int64", + "type": "string" + }, + "percentile": { + "description": "Derived. The percentile of the progress.", + "format": "int32", + "type": "integer" + }, + "totalCount": { + "description": "The total.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaControl": { "description": "Defines a conditioned behavior to employ during serving. Must be attached to a ServingConfig to be considered at serving time. Permitted actions dependent on `SolutionType`.", "id": "GoogleCloudDiscoveryengineV1alphaControl", @@ -11923,11 +11949,13 @@ "description": "The data synchronization mode supported by the data connector.", "enum": [ "PERIODIC", - "STREAMING" + "STREAMING", + "UNSPECIFIED" ], "enumDescriptions": [ "The connector will sync data periodically based on the refresh_interval. Use it with auto_run_disabled to pause the periodic sync, or indicate a one-time sync.", - "The data will be synced in real time." + "The data will be synced in real time.", + "Connector that doesn't ingest data will have this value" ], "type": "string" }, @@ -12175,10 +12203,18 @@ "description": "The historical dedicated crawl rate timeseries data, used for monitoring. Dedicated crawl is used by Vertex AI to crawl the user's website when dedicate crawl is set.", "id": "GoogleCloudDiscoveryengineV1alphaDedicatedCrawlRateTimeSeries", "properties": { + "autoRefreshCrawlErrorRate": { + "$ref": "GoogleCloudDiscoveryengineV1alphaCrawlRateTimeSeries", + "description": "Vertex AI's error rate time series of auto-refresh dedicated crawl." + }, "autoRefreshCrawlRate": { "$ref": "GoogleCloudDiscoveryengineV1alphaCrawlRateTimeSeries", "description": "Vertex AI's dedicated crawl rate time series of auto-refresh, which is the crawl rate of Google-CloudVertexBot when dedicate crawl is set, and the crawl rate is for best effort use cases like refreshing urls periodically." }, + "userTriggeredCrawlErrorRate": { + "$ref": "GoogleCloudDiscoveryengineV1alphaCrawlRateTimeSeries", + "description": "Vertex AI's error rate time series of user triggered dedicated crawl." + }, "userTriggeredCrawlRate": { "$ref": "GoogleCloudDiscoveryengineV1alphaCrawlRateTimeSeries", "description": "Vertex AI's dedicated crawl rate time series of user triggered crawl, which is the crawl rate of Google-CloudVertexBot when dedicate crawl is set, and user triggered crawl rate is for deterministic use cases like crawling urls or sitemaps specified by users." @@ -18614,10 +18650,18 @@ "description": "The historical dedicated crawl rate timeseries data, used for monitoring. Dedicated crawl is used by Vertex AI to crawl the user's website when dedicate crawl is set.", "id": "GoogleCloudDiscoveryengineV1betaDedicatedCrawlRateTimeSeries", "properties": { + "autoRefreshCrawlErrorRate": { + "$ref": "GoogleCloudDiscoveryengineV1betaCrawlRateTimeSeries", + "description": "Vertex AI's error rate time series of auto-refresh dedicated crawl." + }, "autoRefreshCrawlRate": { "$ref": "GoogleCloudDiscoveryengineV1betaCrawlRateTimeSeries", "description": "Vertex AI's dedicated crawl rate time series of auto-refresh, which is the crawl rate of Google-CloudVertexBot when dedicate crawl is set, and the crawl rate is for best effort use cases like refreshing urls periodically." }, + "userTriggeredCrawlErrorRate": { + "$ref": "GoogleCloudDiscoveryengineV1betaCrawlRateTimeSeries", + "description": "Vertex AI's error rate time series of user triggered dedicated crawl." + }, "userTriggeredCrawlRate": { "$ref": "GoogleCloudDiscoveryengineV1betaCrawlRateTimeSeries", "description": "Vertex AI's dedicated crawl rate time series of user triggered crawl, which is the crawl rate of Google-CloudVertexBot when dedicate crawl is set, and user triggered crawl rate is for deterministic use cases like crawling urls or sitemaps specified by users." @@ -19600,6 +19644,10 @@ "description": "Grounding source.", "id": "GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGroundingSource", "properties": { + "enterpriseWebRetrievalSource": { + "$ref": "GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGroundingSourceEnterpriseWebRetrievalSource", + "description": "If set, grounding is performed with enterprise web retrieval." + }, "googleSearchSource": { "$ref": "GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGroundingSourceGoogleSearchSource", "description": "If set, grounding is performed with Google Search." @@ -19615,6 +19663,12 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGroundingSourceEnterpriseWebRetrievalSource": { + "description": "Params for using enterprise web retrieval as grounding source.", + "id": "GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGroundingSourceEnterpriseWebRetrievalSource", + "properties": {}, + "type": "object" + }, "GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGroundingSourceGoogleSearchSource": { "description": "Google Search config parameters.", "id": "GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGroundingSourceGoogleSearchSource", @@ -22886,6 +22940,13 @@ "description": "Information describing what natural language understanding was done on the input query.", "id": "GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfo", "properties": { + "classifiedIntents": { + "description": "The classified intents from the input query.", + "items": { + "type": "string" + }, + "type": "array" + }, "extractedFilters": { "description": "The filters that were extracted from the input query.", "type": "string" diff --git a/discoveryengine/v1beta/discoveryengine-gen.go b/discoveryengine/v1beta/discoveryengine-gen.go index d20d5cff41c..c43441ae8a1 100644 --- a/discoveryengine/v1beta/discoveryengine-gen.go +++ b/discoveryengine/v1beta/discoveryengine-gen.go @@ -5929,6 +5929,8 @@ type GoogleCloudDiscoveryengineV1alphaConnectorRunEntityRun struct { ExtractedRecordCount int64 `json:"extractedRecordCount,omitempty,string"` // IndexedRecordCount: The number of documents indexed. IndexedRecordCount int64 `json:"indexedRecordCount,omitempty,string"` + // Progress: Metadata to generate the progress bar. + Progress *GoogleCloudDiscoveryengineV1alphaConnectorRunEntityRunProgress `json:"progress,omitempty"` // SourceApiRequestCount: The number of requests sent to 3p API. SourceApiRequestCount int64 `json:"sourceApiRequestCount,omitempty,string"` // State: The state of the entity's sync run. @@ -5974,6 +5976,33 @@ func (s GoogleCloudDiscoveryengineV1alphaConnectorRunEntityRun) MarshalJSON() ([ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1alphaConnectorRunEntityRunProgress: Represents +// the progress of a sync run. +type GoogleCloudDiscoveryengineV1alphaConnectorRunEntityRunProgress struct { + // CurrentCount: The current progress. + CurrentCount int64 `json:"currentCount,omitempty,string"` + // Percentile: Derived. The percentile of the progress. + Percentile int64 `json:"percentile,omitempty"` + // TotalCount: The total. + TotalCount int64 `json:"totalCount,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "CurrentCount") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CurrentCount") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1alphaConnectorRunEntityRunProgress) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaConnectorRunEntityRunProgress + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1alphaControl: Defines a conditioned behavior to // employ during serving. Must be attached to a ServingConfig to be considered // at serving time. Permitted actions dependent on `SolutionType`. @@ -6636,6 +6665,7 @@ type GoogleCloudDiscoveryengineV1alphaDataConnector struct { // refresh_interval. Use it with auto_run_disabled to pause the periodic sync, // or indicate a one-time sync. // "STREAMING" - The data will be synced in real time. + // "UNSPECIFIED" - Connector that doesn't ingest data will have this value SyncMode string `json:"syncMode,omitempty"` // UpdateTime: Output only. Timestamp the DataConnector was last updated. UpdateTime string `json:"updateTime,omitempty"` @@ -6901,25 +6931,31 @@ func (s GoogleCloudDiscoveryengineV1alphaDataStoreServingConfigDataStore) Marsha // Dedicated crawl is used by Vertex AI to crawl the user's website when // dedicate crawl is set. type GoogleCloudDiscoveryengineV1alphaDedicatedCrawlRateTimeSeries struct { + // AutoRefreshCrawlErrorRate: Vertex AI's error rate time series of + // auto-refresh dedicated crawl. + AutoRefreshCrawlErrorRate *GoogleCloudDiscoveryengineV1alphaCrawlRateTimeSeries `json:"autoRefreshCrawlErrorRate,omitempty"` // AutoRefreshCrawlRate: Vertex AI's dedicated crawl rate time series of // auto-refresh, which is the crawl rate of Google-CloudVertexBot when dedicate // crawl is set, and the crawl rate is for best effort use cases like // refreshing urls periodically. AutoRefreshCrawlRate *GoogleCloudDiscoveryengineV1alphaCrawlRateTimeSeries `json:"autoRefreshCrawlRate,omitempty"` + // UserTriggeredCrawlErrorRate: Vertex AI's error rate time series of user + // triggered dedicated crawl. + UserTriggeredCrawlErrorRate *GoogleCloudDiscoveryengineV1alphaCrawlRateTimeSeries `json:"userTriggeredCrawlErrorRate,omitempty"` // UserTriggeredCrawlRate: Vertex AI's dedicated crawl rate time series of user // triggered crawl, which is the crawl rate of Google-CloudVertexBot when // dedicate crawl is set, and user triggered crawl rate is for deterministic // use cases like crawling urls or sitemaps specified by users. UserTriggeredCrawlRate *GoogleCloudDiscoveryengineV1alphaCrawlRateTimeSeries `json:"userTriggeredCrawlRate,omitempty"` - // ForceSendFields is a list of field names (e.g. "AutoRefreshCrawlRate") to - // unconditionally include in API requests. By default, fields with empty or + // ForceSendFields is a list of field names (e.g. "AutoRefreshCrawlErrorRate") + // to unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AutoRefreshCrawlRate") 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. "AutoRefreshCrawlErrorRate") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -15842,25 +15878,31 @@ func (s GoogleCloudDiscoveryengineV1betaDataStoreServingConfigDataStore) Marshal // dedicated crawl rate timeseries data, used for monitoring. Dedicated crawl // is used by Vertex AI to crawl the user's website when dedicate crawl is set. type GoogleCloudDiscoveryengineV1betaDedicatedCrawlRateTimeSeries struct { + // AutoRefreshCrawlErrorRate: Vertex AI's error rate time series of + // auto-refresh dedicated crawl. + AutoRefreshCrawlErrorRate *GoogleCloudDiscoveryengineV1betaCrawlRateTimeSeries `json:"autoRefreshCrawlErrorRate,omitempty"` // AutoRefreshCrawlRate: Vertex AI's dedicated crawl rate time series of // auto-refresh, which is the crawl rate of Google-CloudVertexBot when dedicate // crawl is set, and the crawl rate is for best effort use cases like // refreshing urls periodically. AutoRefreshCrawlRate *GoogleCloudDiscoveryengineV1betaCrawlRateTimeSeries `json:"autoRefreshCrawlRate,omitempty"` + // UserTriggeredCrawlErrorRate: Vertex AI's error rate time series of user + // triggered dedicated crawl. + UserTriggeredCrawlErrorRate *GoogleCloudDiscoveryengineV1betaCrawlRateTimeSeries `json:"userTriggeredCrawlErrorRate,omitempty"` // UserTriggeredCrawlRate: Vertex AI's dedicated crawl rate time series of user // triggered crawl, which is the crawl rate of Google-CloudVertexBot when // dedicate crawl is set, and user triggered crawl rate is for deterministic // use cases like crawling urls or sitemaps specified by users. UserTriggeredCrawlRate *GoogleCloudDiscoveryengineV1betaCrawlRateTimeSeries `json:"userTriggeredCrawlRate,omitempty"` - // ForceSendFields is a list of field names (e.g. "AutoRefreshCrawlRate") to - // unconditionally include in API requests. By default, fields with empty or + // ForceSendFields is a list of field names (e.g. "AutoRefreshCrawlErrorRate") + // to unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AutoRefreshCrawlRate") 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. "AutoRefreshCrawlErrorRate") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -17304,21 +17346,24 @@ func (s *GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGeneratio // GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGroundingSource // : Grounding source. type GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGroundingSource struct { + // EnterpriseWebRetrievalSource: If set, grounding is performed with enterprise + // web retrieval. + EnterpriseWebRetrievalSource *GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGroundingSourceEnterpriseWebRetrievalSource `json:"enterpriseWebRetrievalSource,omitempty"` // GoogleSearchSource: If set, grounding is performed with Google Search. GoogleSearchSource *GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGroundingSourceGoogleSearchSource `json:"googleSearchSource,omitempty"` // InlineSource: If set, grounding is performed with inline content. InlineSource *GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGroundingSourceInlineSource `json:"inlineSource,omitempty"` // SearchSource: If set, grounding is performed with Vertex AI Search. SearchSource *GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGroundingSourceSearchSource `json:"searchSource,omitempty"` - // ForceSendFields is a list of field names (e.g. "GoogleSearchSource") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. + // ForceSendFields is a list of field names (e.g. + // "EnterpriseWebRetrievalSource") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "GoogleSearchSource") 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. "EnterpriseWebRetrievalSource") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -17328,6 +17373,12 @@ func (s GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGroundingS return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGroundingSource +// EnterpriseWebRetrievalSource: Params for using enterprise web retrieval as +// grounding source. +type GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGroundingSourceEnterpriseWebRetrievalSource struct { +} + // GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGroundingSource // GoogleSearchSource: Google Search config parameters. type GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGroundingSourceGoogleSearchSource struct { @@ -22319,6 +22370,8 @@ func (s GoogleCloudDiscoveryengineV1betaSearchResponseGuidedSearchResultRefineme // ngInfo: Information describing what natural language understanding was done // on the input query. type GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfo struct { + // ClassifiedIntents: The classified intents from the input query. + ClassifiedIntents []string `json:"classifiedIntents,omitempty"` // ExtractedFilters: The filters that were extracted from the input query. ExtractedFilters string `json:"extractedFilters,omitempty"` // RewrittenQuery: Rewritten input query minus the extracted filters. @@ -22329,13 +22382,13 @@ type GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstan // StructuredExtractedFilter: The filters that were extracted from the input // query represented in a structured form. StructuredExtractedFilter *GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilter `json:"structuredExtractedFilter,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExtractedFilters") to + // ForceSendFields is a list of field names (e.g. "ClassifiedIntents") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ExtractedFilters") to include in + // NullFields is a list of field names (e.g. "ClassifiedIntents") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. diff --git a/firebaseappdistribution/v1alpha/firebaseappdistribution-api.json b/firebaseappdistribution/v1alpha/firebaseappdistribution-api.json index d49dd6ac6c8..3e728210974 100644 --- a/firebaseappdistribution/v1alpha/firebaseappdistribution-api.json +++ b/firebaseappdistribution/v1alpha/firebaseappdistribution-api.json @@ -615,6 +615,34 @@ }, "testCases": { "methods": { + "batchDelete": { + "description": "Delete test cases.", + "flatPath": "v1alpha/projects/{projectsId}/apps/{appsId}/testCases:batchDelete", + "httpMethod": "POST", + "id": "firebaseappdistribution.projects.apps.testCases.batchDelete", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent resource where these test cases will be deleted. Format: `projects/{project_number}/apps/{app_id}`", + "location": "path", + "pattern": "^projects/[^/]+/apps/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/testCases:batchDelete", + "request": { + "$ref": "GoogleFirebaseAppdistroV1alphaBatchDeleteTestCasesRequest" + }, + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "create": { "description": "Create a new test case.", "flatPath": "v1alpha/projects/{projectsId}/apps/{appsId}/testCases", @@ -803,7 +831,7 @@ } } }, - "revision": "20250219", + "revision": "20250303", "rootUrl": "https://firebaseappdistribution.googleapis.com/", "schemas": { "AndroidxCrawlerOutputPoint": { @@ -1101,6 +1129,20 @@ }, "type": "object" }, + "GoogleFirebaseAppdistroV1alphaBatchDeleteTestCasesRequest": { + "description": "The request message for `DeleteTestCase`.", + "id": "GoogleFirebaseAppdistroV1alphaBatchDeleteTestCasesRequest", + "properties": { + "names": { + "description": "Required. The name of the test cases to delete. A maximum number of 1000 test cases can be deleted in one batch Format: `projects/{project_number}/apps/{app_id}/testCases/{test_case_id}`", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleFirebaseAppdistroV1alphaCancelReleaseTestResponse": { "description": "The (empty) response message for `CancelReleaseTest`.", "id": "GoogleFirebaseAppdistroV1alphaCancelReleaseTestResponse", diff --git a/firebaseappdistribution/v1alpha/firebaseappdistribution-gen.go b/firebaseappdistribution/v1alpha/firebaseappdistribution-gen.go index cfb6d17fe50..03c26c658f6 100644 --- a/firebaseappdistribution/v1alpha/firebaseappdistribution-gen.go +++ b/firebaseappdistribution/v1alpha/firebaseappdistribution-gen.go @@ -647,6 +647,31 @@ func (s GoogleFirebaseAppdistroV1alphaAssertionDetails) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleFirebaseAppdistroV1alphaBatchDeleteTestCasesRequest: The request +// message for `DeleteTestCase`. +type GoogleFirebaseAppdistroV1alphaBatchDeleteTestCasesRequest struct { + // Names: Required. The name of the test cases to delete. A maximum number of + // 1000 test cases can be deleted in one batch Format: + // `projects/{project_number}/apps/{app_id}/testCases/{test_case_id}` + Names []string `json:"names,omitempty"` + // ForceSendFields is a list of field names (e.g. "Names") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Names") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleFirebaseAppdistroV1alphaBatchDeleteTestCasesRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleFirebaseAppdistroV1alphaBatchDeleteTestCasesRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleFirebaseAppdistroV1alphaCancelReleaseTestResponse: The (empty) // response message for `CancelReleaseTest`. type GoogleFirebaseAppdistroV1alphaCancelReleaseTestResponse struct { @@ -3420,6 +3445,111 @@ func (c *ProjectsAppsReleasesTestsListCall) Pages(ctx context.Context, f func(*G } } +type ProjectsAppsTestCasesBatchDeleteCall struct { + s *Service + parent string + googlefirebaseappdistrov1alphabatchdeletetestcasesrequest *GoogleFirebaseAppdistroV1alphaBatchDeleteTestCasesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// BatchDelete: Delete test cases. +// +// - parent: The parent resource where these test cases will be deleted. +// Format: `projects/{project_number}/apps/{app_id}`. +func (r *ProjectsAppsTestCasesService) BatchDelete(parent string, googlefirebaseappdistrov1alphabatchdeletetestcasesrequest *GoogleFirebaseAppdistroV1alphaBatchDeleteTestCasesRequest) *ProjectsAppsTestCasesBatchDeleteCall { + c := &ProjectsAppsTestCasesBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlefirebaseappdistrov1alphabatchdeletetestcasesrequest = googlefirebaseappdistrov1alphabatchdeletetestcasesrequest + 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 *ProjectsAppsTestCasesBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsAppsTestCasesBatchDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsAppsTestCasesBatchDeleteCall) Context(ctx context.Context) *ProjectsAppsTestCasesBatchDeleteCall { + 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 *ProjectsAppsTestCasesBatchDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsAppsTestCasesBatchDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlefirebaseappdistrov1alphabatchdeletetestcasesrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/testCases:batchDelete") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "firebaseappdistribution.projects.apps.testCases.batchDelete", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebaseappdistribution.projects.apps.testCases.batchDelete" 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 *ProjectsAppsTestCasesBatchDeleteCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "firebaseappdistribution.projects.apps.testCases.batchDelete", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type ProjectsAppsTestCasesCreateCall struct { s *Service parent string diff --git a/kmsinventory/v1/kmsinventory-api.json b/kmsinventory/v1/kmsinventory-api.json index 3baad54b208..cdc9f718342 100644 --- a/kmsinventory/v1/kmsinventory-api.json +++ b/kmsinventory/v1/kmsinventory-api.json @@ -242,7 +242,7 @@ } } }, - "revision": "20250209", + "revision": "20250302", "rootUrl": "https://kmsinventory.googleapis.com/", "schemas": { "GoogleCloudKmsInventoryV1ListCryptoKeysResponse": { @@ -659,7 +659,7 @@ "This version is still being generated. It may not be used, enabled, disabled, or destroyed yet. Cloud KMS will automatically mark this version ENABLED as soon as the version is ready.", "This version may be used for cryptographic operations.", "This version may not be used, but the key material is still available, and the version can be placed back into the ENABLED state.", - "This version is destroyed, and the key material is no longer stored. This version may only become ENABLED again if this version is reimport_eligible and the original key material is reimported with a call to KeyManagementService.ImportCryptoKeyVersion.", + "This key material of this version is destroyed and no longer stored. This version may only become ENABLED again if this version is reimport_eligible and the original key material is reimported with a call to KeyManagementService.ImportCryptoKeyVersion.", "This version is scheduled for destruction, and will be destroyed soon. Call RestoreCryptoKeyVersion to put it back into the DISABLED state.", "This version is still being imported. It may not be used, enabled, disabled, or destroyed yet. Cloud KMS will automatically mark this version ENABLED as soon as the version is ready.", "This version was not imported successfully. It may not be used, enabled, disabled, or destroyed. The submitted key material has been discarded. Additional details can be found in CryptoKeyVersion.import_failure_reason.", diff --git a/kmsinventory/v1/kmsinventory-gen.go b/kmsinventory/v1/kmsinventory-gen.go index 075787c2f61..67c0c1ad7b1 100644 --- a/kmsinventory/v1/kmsinventory-gen.go +++ b/kmsinventory/v1/kmsinventory-gen.go @@ -628,7 +628,7 @@ type GoogleCloudKmsV1CryptoKeyVersion struct { // "ENABLED" - This version may be used for cryptographic operations. // "DISABLED" - This version may not be used, but the key material is still // available, and the version can be placed back into the ENABLED state. - // "DESTROYED" - This version is destroyed, and the key material is no longer + // "DESTROYED" - This key material of this version is destroyed and no longer // stored. This version may only become ENABLED again if this version is // reimport_eligible and the original key material is reimported with a call to // KeyManagementService.ImportCryptoKeyVersion. diff --git a/merchantapi/accounts_v1beta/merchantapi-api.json b/merchantapi/accounts_v1beta/merchantapi-api.json index f4905504ef3..14b556b798f 100644 --- a/merchantapi/accounts_v1beta/merchantapi-api.json +++ b/merchantapi/accounts_v1beta/merchantapi-api.json @@ -1417,7 +1417,7 @@ } } }, - "revision": "20250220", + "revision": "20250301", "rootUrl": "https://merchantapi.googleapis.com/", "schemas": { "Accepted": { @@ -2224,7 +2224,7 @@ "[Local cloud retail](https://cloud.google.com/solutions/retail).", "[Product Reviews](https://support.google.com/merchants/answer/14620732).", "[Merchant Reviews](https://developers.google.com/merchant-review-feeds).", - "[YouTube Checkout](" + "YouTube Checkout ." ], "type": "string" } @@ -2689,19 +2689,19 @@ "id": "ProductChange", "properties": { "newValue": { - "description": "The new value of the changed resource or attribute.", + "description": "The new value of the changed resource or attribute. If empty, it means that the product was deleted. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)", "type": "string" }, "oldValue": { - "description": "The old value of the changed resource or attribute.", + "description": "The old value of the changed resource or attribute. If empty, it means that the product was created. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)", "type": "string" }, "regionCode": { - "description": "Countries that have the change (if applicable)", + "description": "Countries that have the change (if applicable). Represented in the ISO 3166 format.", "type": "string" }, "reportingContext": { - "description": "Reporting contexts that have the change (if applicable)", + "description": "Reporting contexts that have the change (if applicable). Currently this field supports only (`SHOPPING_ADS`, `LOCAL_INVENTORY_ADS`, `YOUTUBE_SHOPPING`, `YOUTUBE_CHECKOUT`, `YOUTUBE_AFFILIATE`) from the enum value [ReportingContextEnum](/merchant/api/reference/rest/Shared.Types/ReportingContextEnum)", "enum": [ "REPORTING_CONTEXT_ENUM_UNSPECIFIED", "SHOPPING_ADS", @@ -2763,7 +2763,7 @@ "[Local cloud retail](https://cloud.google.com/solutions/retail).", "[Product Reviews](https://support.google.com/merchants/answer/14620732).", "[Merchant Reviews](https://developers.google.com/merchant-review-feeds).", - "[YouTube Checkout](" + "YouTube Checkout ." ], "type": "string" } @@ -2803,7 +2803,7 @@ "type": "string" }, "expirationTime": { - "description": "The product expiration time. This field will not bet set if the notification is sent for a product deletion event.", + "description": "Optional. The product expiration time. This field will not bet set if the notification is sent for a product deletion event.", "format": "google-datetime", "type": "string" }, @@ -2812,7 +2812,7 @@ "type": "string" }, "resource": { - "description": "The product name. Format: `{product.name=accounts/{account}/products/{product}}`", + "description": "The product name. Format: `accounts/{account}/products/{product}`", "type": "string" }, "resourceId": { diff --git a/merchantapi/accounts_v1beta/merchantapi-gen.go b/merchantapi/accounts_v1beta/merchantapi-gen.go index 56d913d5c63..cbc6bc3c2fa 100644 --- a/merchantapi/accounts_v1beta/merchantapi-gen.go +++ b/merchantapi/accounts_v1beta/merchantapi-gen.go @@ -1345,7 +1345,7 @@ type ImpactedDestination struct { // Reviews](https://support.google.com/merchants/answer/14620732). // "MERCHANT_REVIEWS" - [Merchant // Reviews](https://developers.google.com/merchant-review-feeds). - // "YOUTUBE_CHECKOUT" - [YouTube Checkout]( + // "YOUTUBE_CHECKOUT" - YouTube Checkout . ReportingContext string `json:"reportingContext,omitempty"` // ForceSendFields is a list of field names (e.g. "Impacts") to unconditionally // include in API requests. By default, fields with empty or default values are @@ -2059,13 +2059,22 @@ func (s Price) MarshalJSON() ([]byte, error) { // ProductChange: The change that happened to the product including old value, // new value, country code as the region code and reporting context. type ProductChange struct { - // NewValue: The new value of the changed resource or attribute. + // NewValue: The new value of the changed resource or attribute. If empty, it + // means that the product was deleted. Will have one of these values : + // (`approved`, `pending`, `disapproved`, ``) NewValue string `json:"newValue,omitempty"` - // OldValue: The old value of the changed resource or attribute. + // OldValue: The old value of the changed resource or attribute. If empty, it + // means that the product was created. Will have one of these values : + // (`approved`, `pending`, `disapproved`, ``) OldValue string `json:"oldValue,omitempty"` - // RegionCode: Countries that have the change (if applicable) + // RegionCode: Countries that have the change (if applicable). Represented in + // the ISO 3166 format. RegionCode string `json:"regionCode,omitempty"` - // ReportingContext: Reporting contexts that have the change (if applicable) + // ReportingContext: Reporting contexts that have the change (if applicable). + // Currently this field supports only (`SHOPPING_ADS`, `LOCAL_INVENTORY_ADS`, + // `YOUTUBE_SHOPPING`, `YOUTUBE_CHECKOUT`, `YOUTUBE_AFFILIATE`) from the enum + // value ReportingContextEnum + // (/merchant/api/reference/rest/Shared.Types/ReportingContextEnum) // // Possible values: // "REPORTING_CONTEXT_ENUM_UNSPECIFIED" - Not specified. @@ -2103,7 +2112,7 @@ type ProductChange struct { // Reviews](https://support.google.com/merchants/answer/14620732). // "MERCHANT_REVIEWS" - [Merchant // Reviews](https://developers.google.com/merchant-review-feeds). - // "YOUTUBE_CHECKOUT" - [YouTube Checkout]( + // "YOUTUBE_CHECKOUT" - YouTube Checkout . ReportingContext string `json:"reportingContext,omitempty"` // ForceSendFields is a list of field names (e.g. "NewValue") to // unconditionally include in API requests. By default, fields with empty or @@ -2140,15 +2149,14 @@ type ProductStatusChangeMessage struct { Changes []*ProductChange `json:"changes,omitempty"` // EventTime: The time at which the event was generated. EventTime string `json:"eventTime,omitempty"` - // ExpirationTime: The product expiration time. This field will not bet set if - // the notification is sent for a product deletion event. + // ExpirationTime: Optional. The product expiration time. This field will not + // bet set if the notification is sent for a product deletion event. ExpirationTime string `json:"expirationTime,omitempty"` // ManagingAccount: The account that manages the merchant's account. can be the // same as merchant id if it is standalone account. Format : // `accounts/{service_provider_id}` ManagingAccount string `json:"managingAccount,omitempty"` - // Resource: The product name. Format: - // `{product.name=accounts/{account}/products/{product}}` + // Resource: The product name. Format: `accounts/{account}/products/{product}` Resource string `json:"resource,omitempty"` // ResourceId: The product id. ResourceId string `json:"resourceId,omitempty"` diff --git a/merchantapi/conversions_v1beta/merchantapi-api.json b/merchantapi/conversions_v1beta/merchantapi-api.json index e7bbd9cdfaa..052fa8b013a 100644 --- a/merchantapi/conversions_v1beta/merchantapi-api.json +++ b/merchantapi/conversions_v1beta/merchantapi-api.json @@ -295,7 +295,7 @@ } } }, - "revision": "20250219", + "revision": "20250301", "rootUrl": "https://merchantapi.googleapis.com/", "schemas": { "AttributionSettings": { @@ -490,19 +490,19 @@ "id": "ProductChange", "properties": { "newValue": { - "description": "The new value of the changed resource or attribute.", + "description": "The new value of the changed resource or attribute. If empty, it means that the product was deleted. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)", "type": "string" }, "oldValue": { - "description": "The old value of the changed resource or attribute.", + "description": "The old value of the changed resource or attribute. If empty, it means that the product was created. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)", "type": "string" }, "regionCode": { - "description": "Countries that have the change (if applicable)", + "description": "Countries that have the change (if applicable). Represented in the ISO 3166 format.", "type": "string" }, "reportingContext": { - "description": "Reporting contexts that have the change (if applicable)", + "description": "Reporting contexts that have the change (if applicable). Currently this field supports only (`SHOPPING_ADS`, `LOCAL_INVENTORY_ADS`, `YOUTUBE_SHOPPING`, `YOUTUBE_CHECKOUT`, `YOUTUBE_AFFILIATE`) from the enum value [ReportingContextEnum](/merchant/api/reference/rest/Shared.Types/ReportingContextEnum)", "enum": [ "REPORTING_CONTEXT_ENUM_UNSPECIFIED", "SHOPPING_ADS", @@ -564,7 +564,7 @@ "[Local cloud retail](https://cloud.google.com/solutions/retail).", "[Product Reviews](https://support.google.com/merchants/answer/14620732).", "[Merchant Reviews](https://developers.google.com/merchant-review-feeds).", - "[YouTube Checkout](" + "YouTube Checkout ." ], "type": "string" } @@ -604,7 +604,7 @@ "type": "string" }, "expirationTime": { - "description": "The product expiration time. This field will not bet set if the notification is sent for a product deletion event.", + "description": "Optional. The product expiration time. This field will not bet set if the notification is sent for a product deletion event.", "format": "google-datetime", "type": "string" }, @@ -613,7 +613,7 @@ "type": "string" }, "resource": { - "description": "The product name. Format: `{product.name=accounts/{account}/products/{product}}`", + "description": "The product name. Format: `accounts/{account}/products/{product}`", "type": "string" }, "resourceId": { diff --git a/merchantapi/conversions_v1beta/merchantapi-gen.go b/merchantapi/conversions_v1beta/merchantapi-gen.go index 2b18b5733cf..ac4b5ed2f55 100644 --- a/merchantapi/conversions_v1beta/merchantapi-gen.go +++ b/merchantapi/conversions_v1beta/merchantapi-gen.go @@ -406,13 +406,22 @@ func (s MerchantCenterDestination) MarshalJSON() ([]byte, error) { // ProductChange: The change that happened to the product including old value, // new value, country code as the region code and reporting context. type ProductChange struct { - // NewValue: The new value of the changed resource or attribute. + // NewValue: The new value of the changed resource or attribute. If empty, it + // means that the product was deleted. Will have one of these values : + // (`approved`, `pending`, `disapproved`, ``) NewValue string `json:"newValue,omitempty"` - // OldValue: The old value of the changed resource or attribute. + // OldValue: The old value of the changed resource or attribute. If empty, it + // means that the product was created. Will have one of these values : + // (`approved`, `pending`, `disapproved`, ``) OldValue string `json:"oldValue,omitempty"` - // RegionCode: Countries that have the change (if applicable) + // RegionCode: Countries that have the change (if applicable). Represented in + // the ISO 3166 format. RegionCode string `json:"regionCode,omitempty"` - // ReportingContext: Reporting contexts that have the change (if applicable) + // ReportingContext: Reporting contexts that have the change (if applicable). + // Currently this field supports only (`SHOPPING_ADS`, `LOCAL_INVENTORY_ADS`, + // `YOUTUBE_SHOPPING`, `YOUTUBE_CHECKOUT`, `YOUTUBE_AFFILIATE`) from the enum + // value ReportingContextEnum + // (/merchant/api/reference/rest/Shared.Types/ReportingContextEnum) // // Possible values: // "REPORTING_CONTEXT_ENUM_UNSPECIFIED" - Not specified. @@ -450,7 +459,7 @@ type ProductChange struct { // Reviews](https://support.google.com/merchants/answer/14620732). // "MERCHANT_REVIEWS" - [Merchant // Reviews](https://developers.google.com/merchant-review-feeds). - // "YOUTUBE_CHECKOUT" - [YouTube Checkout]( + // "YOUTUBE_CHECKOUT" - YouTube Checkout . ReportingContext string `json:"reportingContext,omitempty"` // ForceSendFields is a list of field names (e.g. "NewValue") to // unconditionally include in API requests. By default, fields with empty or @@ -487,15 +496,14 @@ type ProductStatusChangeMessage struct { Changes []*ProductChange `json:"changes,omitempty"` // EventTime: The time at which the event was generated. EventTime string `json:"eventTime,omitempty"` - // ExpirationTime: The product expiration time. This field will not bet set if - // the notification is sent for a product deletion event. + // ExpirationTime: Optional. The product expiration time. This field will not + // bet set if the notification is sent for a product deletion event. ExpirationTime string `json:"expirationTime,omitempty"` // ManagingAccount: The account that manages the merchant's account. can be the // same as merchant id if it is standalone account. Format : // `accounts/{service_provider_id}` ManagingAccount string `json:"managingAccount,omitempty"` - // Resource: The product name. Format: - // `{product.name=accounts/{account}/products/{product}}` + // Resource: The product name. Format: `accounts/{account}/products/{product}` Resource string `json:"resource,omitempty"` // ResourceId: The product id. ResourceId string `json:"resourceId,omitempty"` diff --git a/merchantapi/datasources_v1beta/merchantapi-api.json b/merchantapi/datasources_v1beta/merchantapi-api.json index 5ee4756301c..4ca0de9f9de 100644 --- a/merchantapi/datasources_v1beta/merchantapi-api.json +++ b/merchantapi/datasources_v1beta/merchantapi-api.json @@ -321,7 +321,7 @@ } } }, - "revision": "20250219", + "revision": "20250301", "rootUrl": "https://merchantapi.googleapis.com/", "schemas": { "DataSource": { @@ -707,7 +707,7 @@ "id": "PrimaryProductDataSource", "properties": { "channel": { - "description": "Required. Immutable. Specifies the type of data source channel.", + "description": "Optional. Immutable. Specifies the type of data source channel.", "enum": [ "CHANNEL_UNSPECIFIED", "ONLINE_PRODUCTS", @@ -749,19 +749,19 @@ "id": "ProductChange", "properties": { "newValue": { - "description": "The new value of the changed resource or attribute.", + "description": "The new value of the changed resource or attribute. If empty, it means that the product was deleted. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)", "type": "string" }, "oldValue": { - "description": "The old value of the changed resource or attribute.", + "description": "The old value of the changed resource or attribute. If empty, it means that the product was created. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)", "type": "string" }, "regionCode": { - "description": "Countries that have the change (if applicable)", + "description": "Countries that have the change (if applicable). Represented in the ISO 3166 format.", "type": "string" }, "reportingContext": { - "description": "Reporting contexts that have the change (if applicable)", + "description": "Reporting contexts that have the change (if applicable). Currently this field supports only (`SHOPPING_ADS`, `LOCAL_INVENTORY_ADS`, `YOUTUBE_SHOPPING`, `YOUTUBE_CHECKOUT`, `YOUTUBE_AFFILIATE`) from the enum value [ReportingContextEnum](/merchant/api/reference/rest/Shared.Types/ReportingContextEnum)", "enum": [ "REPORTING_CONTEXT_ENUM_UNSPECIFIED", "SHOPPING_ADS", @@ -823,7 +823,7 @@ "[Local cloud retail](https://cloud.google.com/solutions/retail).", "[Product Reviews](https://support.google.com/merchants/answer/14620732).", "[Merchant Reviews](https://developers.google.com/merchant-review-feeds).", - "[YouTube Checkout](" + "YouTube Checkout ." ], "type": "string" } @@ -869,7 +869,7 @@ "type": "string" }, "expirationTime": { - "description": "The product expiration time. This field will not bet set if the notification is sent for a product deletion event.", + "description": "Optional. The product expiration time. This field will not bet set if the notification is sent for a product deletion event.", "format": "google-datetime", "type": "string" }, @@ -878,7 +878,7 @@ "type": "string" }, "resource": { - "description": "The product name. Format: `{product.name=accounts/{account}/products/{product}}`", + "description": "The product name. Format: `accounts/{account}/products/{product}`", "type": "string" }, "resourceId": { diff --git a/merchantapi/datasources_v1beta/merchantapi-gen.go b/merchantapi/datasources_v1beta/merchantapi-gen.go index 3ddd13934e5..679f3bf631a 100644 --- a/merchantapi/datasources_v1beta/merchantapi-gen.go +++ b/merchantapi/datasources_v1beta/merchantapi-gen.go @@ -606,7 +606,7 @@ type MerchantReviewDataSource struct { // PrimaryProductDataSource: The primary data source for local and online // products. type PrimaryProductDataSource struct { - // Channel: Required. Immutable. Specifies the type of data source channel. + // Channel: Optional. Immutable. Specifies the type of data source channel. // // Possible values: // "CHANNEL_UNSPECIFIED" - Not specified. @@ -660,13 +660,22 @@ func (s PrimaryProductDataSource) MarshalJSON() ([]byte, error) { // ProductChange: The change that happened to the product including old value, // new value, country code as the region code and reporting context. type ProductChange struct { - // NewValue: The new value of the changed resource or attribute. + // NewValue: The new value of the changed resource or attribute. If empty, it + // means that the product was deleted. Will have one of these values : + // (`approved`, `pending`, `disapproved`, ``) NewValue string `json:"newValue,omitempty"` - // OldValue: The old value of the changed resource or attribute. + // OldValue: The old value of the changed resource or attribute. If empty, it + // means that the product was created. Will have one of these values : + // (`approved`, `pending`, `disapproved`, ``) OldValue string `json:"oldValue,omitempty"` - // RegionCode: Countries that have the change (if applicable) + // RegionCode: Countries that have the change (if applicable). Represented in + // the ISO 3166 format. RegionCode string `json:"regionCode,omitempty"` - // ReportingContext: Reporting contexts that have the change (if applicable) + // ReportingContext: Reporting contexts that have the change (if applicable). + // Currently this field supports only (`SHOPPING_ADS`, `LOCAL_INVENTORY_ADS`, + // `YOUTUBE_SHOPPING`, `YOUTUBE_CHECKOUT`, `YOUTUBE_AFFILIATE`) from the enum + // value ReportingContextEnum + // (/merchant/api/reference/rest/Shared.Types/ReportingContextEnum) // // Possible values: // "REPORTING_CONTEXT_ENUM_UNSPECIFIED" - Not specified. @@ -704,7 +713,7 @@ type ProductChange struct { // Reviews](https://support.google.com/merchants/answer/14620732). // "MERCHANT_REVIEWS" - [Merchant // Reviews](https://developers.google.com/merchant-review-feeds). - // "YOUTUBE_CHECKOUT" - [YouTube Checkout]( + // "YOUTUBE_CHECKOUT" - YouTube Checkout . ReportingContext string `json:"reportingContext,omitempty"` // ForceSendFields is a list of field names (e.g. "NewValue") to // unconditionally include in API requests. By default, fields with empty or @@ -745,15 +754,14 @@ type ProductStatusChangeMessage struct { Changes []*ProductChange `json:"changes,omitempty"` // EventTime: The time at which the event was generated. EventTime string `json:"eventTime,omitempty"` - // ExpirationTime: The product expiration time. This field will not bet set if - // the notification is sent for a product deletion event. + // ExpirationTime: Optional. The product expiration time. This field will not + // bet set if the notification is sent for a product deletion event. ExpirationTime string `json:"expirationTime,omitempty"` // ManagingAccount: The account that manages the merchant's account. can be the // same as merchant id if it is standalone account. Format : // `accounts/{service_provider_id}` ManagingAccount string `json:"managingAccount,omitempty"` - // Resource: The product name. Format: - // `{product.name=accounts/{account}/products/{product}}` + // Resource: The product name. Format: `accounts/{account}/products/{product}` Resource string `json:"resource,omitempty"` // ResourceId: The product id. ResourceId string `json:"resourceId,omitempty"` diff --git a/merchantapi/inventories_v1beta/merchantapi-api.json b/merchantapi/inventories_v1beta/merchantapi-api.json index b5c68f68da2..b258adee9ac 100644 --- a/merchantapi/inventories_v1beta/merchantapi-api.json +++ b/merchantapi/inventories_v1beta/merchantapi-api.json @@ -300,7 +300,7 @@ } } }, - "revision": "20250219", + "revision": "20250301", "rootUrl": "https://merchantapi.googleapis.com/", "schemas": { "CustomAttribute": { @@ -467,19 +467,19 @@ "id": "ProductChange", "properties": { "newValue": { - "description": "The new value of the changed resource or attribute.", + "description": "The new value of the changed resource or attribute. If empty, it means that the product was deleted. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)", "type": "string" }, "oldValue": { - "description": "The old value of the changed resource or attribute.", + "description": "The old value of the changed resource or attribute. If empty, it means that the product was created. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)", "type": "string" }, "regionCode": { - "description": "Countries that have the change (if applicable)", + "description": "Countries that have the change (if applicable). Represented in the ISO 3166 format.", "type": "string" }, "reportingContext": { - "description": "Reporting contexts that have the change (if applicable)", + "description": "Reporting contexts that have the change (if applicable). Currently this field supports only (`SHOPPING_ADS`, `LOCAL_INVENTORY_ADS`, `YOUTUBE_SHOPPING`, `YOUTUBE_CHECKOUT`, `YOUTUBE_AFFILIATE`) from the enum value [ReportingContextEnum](/merchant/api/reference/rest/Shared.Types/ReportingContextEnum)", "enum": [ "REPORTING_CONTEXT_ENUM_UNSPECIFIED", "SHOPPING_ADS", @@ -541,7 +541,7 @@ "[Local cloud retail](https://cloud.google.com/solutions/retail).", "[Product Reviews](https://support.google.com/merchants/answer/14620732).", "[Merchant Reviews](https://developers.google.com/merchant-review-feeds).", - "[YouTube Checkout](" + "YouTube Checkout ." ], "type": "string" } @@ -581,7 +581,7 @@ "type": "string" }, "expirationTime": { - "description": "The product expiration time. This field will not bet set if the notification is sent for a product deletion event.", + "description": "Optional. The product expiration time. This field will not bet set if the notification is sent for a product deletion event.", "format": "google-datetime", "type": "string" }, @@ -590,7 +590,7 @@ "type": "string" }, "resource": { - "description": "The product name. Format: `{product.name=accounts/{account}/products/{product}}`", + "description": "The product name. Format: `accounts/{account}/products/{product}`", "type": "string" }, "resourceId": { diff --git a/merchantapi/inventories_v1beta/merchantapi-gen.go b/merchantapi/inventories_v1beta/merchantapi-gen.go index 95db5fc8351..05da51d72ea 100644 --- a/merchantapi/inventories_v1beta/merchantapi-gen.go +++ b/merchantapi/inventories_v1beta/merchantapi-gen.go @@ -430,13 +430,22 @@ func (s Price) MarshalJSON() ([]byte, error) { // ProductChange: The change that happened to the product including old value, // new value, country code as the region code and reporting context. type ProductChange struct { - // NewValue: The new value of the changed resource or attribute. + // NewValue: The new value of the changed resource or attribute. If empty, it + // means that the product was deleted. Will have one of these values : + // (`approved`, `pending`, `disapproved`, ``) NewValue string `json:"newValue,omitempty"` - // OldValue: The old value of the changed resource or attribute. + // OldValue: The old value of the changed resource or attribute. If empty, it + // means that the product was created. Will have one of these values : + // (`approved`, `pending`, `disapproved`, ``) OldValue string `json:"oldValue,omitempty"` - // RegionCode: Countries that have the change (if applicable) + // RegionCode: Countries that have the change (if applicable). Represented in + // the ISO 3166 format. RegionCode string `json:"regionCode,omitempty"` - // ReportingContext: Reporting contexts that have the change (if applicable) + // ReportingContext: Reporting contexts that have the change (if applicable). + // Currently this field supports only (`SHOPPING_ADS`, `LOCAL_INVENTORY_ADS`, + // `YOUTUBE_SHOPPING`, `YOUTUBE_CHECKOUT`, `YOUTUBE_AFFILIATE`) from the enum + // value ReportingContextEnum + // (/merchant/api/reference/rest/Shared.Types/ReportingContextEnum) // // Possible values: // "REPORTING_CONTEXT_ENUM_UNSPECIFIED" - Not specified. @@ -474,7 +483,7 @@ type ProductChange struct { // Reviews](https://support.google.com/merchants/answer/14620732). // "MERCHANT_REVIEWS" - [Merchant // Reviews](https://developers.google.com/merchant-review-feeds). - // "YOUTUBE_CHECKOUT" - [YouTube Checkout]( + // "YOUTUBE_CHECKOUT" - YouTube Checkout . ReportingContext string `json:"reportingContext,omitempty"` // ForceSendFields is a list of field names (e.g. "NewValue") to // unconditionally include in API requests. By default, fields with empty or @@ -511,15 +520,14 @@ type ProductStatusChangeMessage struct { Changes []*ProductChange `json:"changes,omitempty"` // EventTime: The time at which the event was generated. EventTime string `json:"eventTime,omitempty"` - // ExpirationTime: The product expiration time. This field will not bet set if - // the notification is sent for a product deletion event. + // ExpirationTime: Optional. The product expiration time. This field will not + // bet set if the notification is sent for a product deletion event. ExpirationTime string `json:"expirationTime,omitempty"` // ManagingAccount: The account that manages the merchant's account. can be the // same as merchant id if it is standalone account. Format : // `accounts/{service_provider_id}` ManagingAccount string `json:"managingAccount,omitempty"` - // Resource: The product name. Format: - // `{product.name=accounts/{account}/products/{product}}` + // Resource: The product name. Format: `accounts/{account}/products/{product}` Resource string `json:"resource,omitempty"` // ResourceId: The product id. ResourceId string `json:"resourceId,omitempty"` diff --git a/merchantapi/lfp_v1beta/merchantapi-api.json b/merchantapi/lfp_v1beta/merchantapi-api.json index ef0db3b84cb..0c14558254e 100644 --- a/merchantapi/lfp_v1beta/merchantapi-api.json +++ b/merchantapi/lfp_v1beta/merchantapi-api.json @@ -298,7 +298,7 @@ } } }, - "revision": "20250219", + "revision": "20250301", "rootUrl": "https://merchantapi.googleapis.com/", "schemas": { "Empty": { @@ -541,19 +541,19 @@ "id": "ProductChange", "properties": { "newValue": { - "description": "The new value of the changed resource or attribute.", + "description": "The new value of the changed resource or attribute. If empty, it means that the product was deleted. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)", "type": "string" }, "oldValue": { - "description": "The old value of the changed resource or attribute.", + "description": "The old value of the changed resource or attribute. If empty, it means that the product was created. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)", "type": "string" }, "regionCode": { - "description": "Countries that have the change (if applicable)", + "description": "Countries that have the change (if applicable). Represented in the ISO 3166 format.", "type": "string" }, "reportingContext": { - "description": "Reporting contexts that have the change (if applicable)", + "description": "Reporting contexts that have the change (if applicable). Currently this field supports only (`SHOPPING_ADS`, `LOCAL_INVENTORY_ADS`, `YOUTUBE_SHOPPING`, `YOUTUBE_CHECKOUT`, `YOUTUBE_AFFILIATE`) from the enum value [ReportingContextEnum](/merchant/api/reference/rest/Shared.Types/ReportingContextEnum)", "enum": [ "REPORTING_CONTEXT_ENUM_UNSPECIFIED", "SHOPPING_ADS", @@ -615,7 +615,7 @@ "[Local cloud retail](https://cloud.google.com/solutions/retail).", "[Product Reviews](https://support.google.com/merchants/answer/14620732).", "[Merchant Reviews](https://developers.google.com/merchant-review-feeds).", - "[YouTube Checkout](" + "YouTube Checkout ." ], "type": "string" } @@ -655,7 +655,7 @@ "type": "string" }, "expirationTime": { - "description": "The product expiration time. This field will not bet set if the notification is sent for a product deletion event.", + "description": "Optional. The product expiration time. This field will not bet set if the notification is sent for a product deletion event.", "format": "google-datetime", "type": "string" }, @@ -664,7 +664,7 @@ "type": "string" }, "resource": { - "description": "The product name. Format: `{product.name=accounts/{account}/products/{product}}`", + "description": "The product name. Format: `accounts/{account}/products/{product}`", "type": "string" }, "resourceId": { diff --git a/merchantapi/lfp_v1beta/merchantapi-gen.go b/merchantapi/lfp_v1beta/merchantapi-gen.go index 97ce57d41cb..151edafdb63 100644 --- a/merchantapi/lfp_v1beta/merchantapi-gen.go +++ b/merchantapi/lfp_v1beta/merchantapi-gen.go @@ -479,13 +479,22 @@ func (s Price) MarshalJSON() ([]byte, error) { // ProductChange: The change that happened to the product including old value, // new value, country code as the region code and reporting context. type ProductChange struct { - // NewValue: The new value of the changed resource or attribute. + // NewValue: The new value of the changed resource or attribute. If empty, it + // means that the product was deleted. Will have one of these values : + // (`approved`, `pending`, `disapproved`, ``) NewValue string `json:"newValue,omitempty"` - // OldValue: The old value of the changed resource or attribute. + // OldValue: The old value of the changed resource or attribute. If empty, it + // means that the product was created. Will have one of these values : + // (`approved`, `pending`, `disapproved`, ``) OldValue string `json:"oldValue,omitempty"` - // RegionCode: Countries that have the change (if applicable) + // RegionCode: Countries that have the change (if applicable). Represented in + // the ISO 3166 format. RegionCode string `json:"regionCode,omitempty"` - // ReportingContext: Reporting contexts that have the change (if applicable) + // ReportingContext: Reporting contexts that have the change (if applicable). + // Currently this field supports only (`SHOPPING_ADS`, `LOCAL_INVENTORY_ADS`, + // `YOUTUBE_SHOPPING`, `YOUTUBE_CHECKOUT`, `YOUTUBE_AFFILIATE`) from the enum + // value ReportingContextEnum + // (/merchant/api/reference/rest/Shared.Types/ReportingContextEnum) // // Possible values: // "REPORTING_CONTEXT_ENUM_UNSPECIFIED" - Not specified. @@ -523,7 +532,7 @@ type ProductChange struct { // Reviews](https://support.google.com/merchants/answer/14620732). // "MERCHANT_REVIEWS" - [Merchant // Reviews](https://developers.google.com/merchant-review-feeds). - // "YOUTUBE_CHECKOUT" - [YouTube Checkout]( + // "YOUTUBE_CHECKOUT" - YouTube Checkout . ReportingContext string `json:"reportingContext,omitempty"` // ForceSendFields is a list of field names (e.g. "NewValue") to // unconditionally include in API requests. By default, fields with empty or @@ -560,15 +569,14 @@ type ProductStatusChangeMessage struct { Changes []*ProductChange `json:"changes,omitempty"` // EventTime: The time at which the event was generated. EventTime string `json:"eventTime,omitempty"` - // ExpirationTime: The product expiration time. This field will not bet set if - // the notification is sent for a product deletion event. + // ExpirationTime: Optional. The product expiration time. This field will not + // bet set if the notification is sent for a product deletion event. ExpirationTime string `json:"expirationTime,omitempty"` // ManagingAccount: The account that manages the merchant's account. can be the // same as merchant id if it is standalone account. Format : // `accounts/{service_provider_id}` ManagingAccount string `json:"managingAccount,omitempty"` - // Resource: The product name. Format: - // `{product.name=accounts/{account}/products/{product}}` + // Resource: The product name. Format: `accounts/{account}/products/{product}` Resource string `json:"resource,omitempty"` // ResourceId: The product id. ResourceId string `json:"resourceId,omitempty"` diff --git a/merchantapi/notifications_v1beta/merchantapi-api.json b/merchantapi/notifications_v1beta/merchantapi-api.json index 3140360b7a2..17b0acc40d5 100644 --- a/merchantapi/notifications_v1beta/merchantapi-api.json +++ b/merchantapi/notifications_v1beta/merchantapi-api.json @@ -262,7 +262,7 @@ } } }, - "revision": "20250219", + "revision": "20250301", "rootUrl": "https://merchantapi.googleapis.com/", "schemas": { "Empty": { @@ -330,19 +330,19 @@ "id": "ProductChange", "properties": { "newValue": { - "description": "The new value of the changed resource or attribute.", + "description": "The new value of the changed resource or attribute. If empty, it means that the product was deleted. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)", "type": "string" }, "oldValue": { - "description": "The old value of the changed resource or attribute.", + "description": "The old value of the changed resource or attribute. If empty, it means that the product was created. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)", "type": "string" }, "regionCode": { - "description": "Countries that have the change (if applicable)", + "description": "Countries that have the change (if applicable). Represented in the ISO 3166 format.", "type": "string" }, "reportingContext": { - "description": "Reporting contexts that have the change (if applicable)", + "description": "Reporting contexts that have the change (if applicable). Currently this field supports only (`SHOPPING_ADS`, `LOCAL_INVENTORY_ADS`, `YOUTUBE_SHOPPING`, `YOUTUBE_CHECKOUT`, `YOUTUBE_AFFILIATE`) from the enum value [ReportingContextEnum](/merchant/api/reference/rest/Shared.Types/ReportingContextEnum)", "enum": [ "REPORTING_CONTEXT_ENUM_UNSPECIFIED", "SHOPPING_ADS", @@ -404,7 +404,7 @@ "[Local cloud retail](https://cloud.google.com/solutions/retail).", "[Product Reviews](https://support.google.com/merchants/answer/14620732).", "[Merchant Reviews](https://developers.google.com/merchant-review-feeds).", - "[YouTube Checkout](" + "YouTube Checkout ." ], "type": "string" } @@ -444,7 +444,7 @@ "type": "string" }, "expirationTime": { - "description": "The product expiration time. This field will not bet set if the notification is sent for a product deletion event.", + "description": "Optional. The product expiration time. This field will not bet set if the notification is sent for a product deletion event.", "format": "google-datetime", "type": "string" }, @@ -453,7 +453,7 @@ "type": "string" }, "resource": { - "description": "The product name. Format: `{product.name=accounts/{account}/products/{product}}`", + "description": "The product name. Format: `accounts/{account}/products/{product}`", "type": "string" }, "resourceId": { diff --git a/merchantapi/notifications_v1beta/merchantapi-gen.go b/merchantapi/notifications_v1beta/merchantapi-gen.go index 8efa4c3f347..3c90152f2a5 100644 --- a/merchantapi/notifications_v1beta/merchantapi-gen.go +++ b/merchantapi/notifications_v1beta/merchantapi-gen.go @@ -266,13 +266,22 @@ func (s NotificationSubscription) MarshalJSON() ([]byte, error) { // ProductChange: The change that happened to the product including old value, // new value, country code as the region code and reporting context. type ProductChange struct { - // NewValue: The new value of the changed resource or attribute. + // NewValue: The new value of the changed resource or attribute. If empty, it + // means that the product was deleted. Will have one of these values : + // (`approved`, `pending`, `disapproved`, ``) NewValue string `json:"newValue,omitempty"` - // OldValue: The old value of the changed resource or attribute. + // OldValue: The old value of the changed resource or attribute. If empty, it + // means that the product was created. Will have one of these values : + // (`approved`, `pending`, `disapproved`, ``) OldValue string `json:"oldValue,omitempty"` - // RegionCode: Countries that have the change (if applicable) + // RegionCode: Countries that have the change (if applicable). Represented in + // the ISO 3166 format. RegionCode string `json:"regionCode,omitempty"` - // ReportingContext: Reporting contexts that have the change (if applicable) + // ReportingContext: Reporting contexts that have the change (if applicable). + // Currently this field supports only (`SHOPPING_ADS`, `LOCAL_INVENTORY_ADS`, + // `YOUTUBE_SHOPPING`, `YOUTUBE_CHECKOUT`, `YOUTUBE_AFFILIATE`) from the enum + // value ReportingContextEnum + // (/merchant/api/reference/rest/Shared.Types/ReportingContextEnum) // // Possible values: // "REPORTING_CONTEXT_ENUM_UNSPECIFIED" - Not specified. @@ -310,7 +319,7 @@ type ProductChange struct { // Reviews](https://support.google.com/merchants/answer/14620732). // "MERCHANT_REVIEWS" - [Merchant // Reviews](https://developers.google.com/merchant-review-feeds). - // "YOUTUBE_CHECKOUT" - [YouTube Checkout]( + // "YOUTUBE_CHECKOUT" - YouTube Checkout . ReportingContext string `json:"reportingContext,omitempty"` // ForceSendFields is a list of field names (e.g. "NewValue") to // unconditionally include in API requests. By default, fields with empty or @@ -347,15 +356,14 @@ type ProductStatusChangeMessage struct { Changes []*ProductChange `json:"changes,omitempty"` // EventTime: The time at which the event was generated. EventTime string `json:"eventTime,omitempty"` - // ExpirationTime: The product expiration time. This field will not bet set if - // the notification is sent for a product deletion event. + // ExpirationTime: Optional. The product expiration time. This field will not + // bet set if the notification is sent for a product deletion event. ExpirationTime string `json:"expirationTime,omitempty"` // ManagingAccount: The account that manages the merchant's account. can be the // same as merchant id if it is standalone account. Format : // `accounts/{service_provider_id}` ManagingAccount string `json:"managingAccount,omitempty"` - // Resource: The product name. Format: - // `{product.name=accounts/{account}/products/{product}}` + // Resource: The product name. Format: `accounts/{account}/products/{product}` Resource string `json:"resource,omitempty"` // ResourceId: The product id. ResourceId string `json:"resourceId,omitempty"` diff --git a/merchantapi/products_v1beta/merchantapi-api.json b/merchantapi/products_v1beta/merchantapi-api.json index c9adfabba86..5c8e69d48fb 100644 --- a/merchantapi/products_v1beta/merchantapi-api.json +++ b/merchantapi/products_v1beta/merchantapi-api.json @@ -242,7 +242,7 @@ } } }, - "revision": "20250219", + "revision": "20250301", "rootUrl": "https://merchantapi.googleapis.com/", "schemas": { "Attributes": { @@ -877,7 +877,7 @@ "[Local cloud retail](https://cloud.google.com/solutions/retail).", "[Product Reviews](https://support.google.com/merchants/answer/14620732).", "[Merchant Reviews](https://developers.google.com/merchant-review-feeds).", - "[YouTube Checkout](" + "YouTube Checkout ." ], "type": "string" } @@ -1040,7 +1040,7 @@ "[Local cloud retail](https://cloud.google.com/solutions/retail).", "[Product Reviews](https://support.google.com/merchants/answer/14620732).", "[Merchant Reviews](https://developers.google.com/merchant-review-feeds).", - "[YouTube Checkout](" + "YouTube Checkout ." ], "type": "string" }, @@ -1233,19 +1233,19 @@ "id": "ProductChange", "properties": { "newValue": { - "description": "The new value of the changed resource or attribute.", + "description": "The new value of the changed resource or attribute. If empty, it means that the product was deleted. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)", "type": "string" }, "oldValue": { - "description": "The old value of the changed resource or attribute.", + "description": "The old value of the changed resource or attribute. If empty, it means that the product was created. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)", "type": "string" }, "regionCode": { - "description": "Countries that have the change (if applicable)", + "description": "Countries that have the change (if applicable). Represented in the ISO 3166 format.", "type": "string" }, "reportingContext": { - "description": "Reporting contexts that have the change (if applicable)", + "description": "Reporting contexts that have the change (if applicable). Currently this field supports only (`SHOPPING_ADS`, `LOCAL_INVENTORY_ADS`, `YOUTUBE_SHOPPING`, `YOUTUBE_CHECKOUT`, `YOUTUBE_AFFILIATE`) from the enum value [ReportingContextEnum](/merchant/api/reference/rest/Shared.Types/ReportingContextEnum)", "enum": [ "REPORTING_CONTEXT_ENUM_UNSPECIFIED", "SHOPPING_ADS", @@ -1307,7 +1307,7 @@ "[Local cloud retail](https://cloud.google.com/solutions/retail).", "[Product Reviews](https://support.google.com/merchants/answer/14620732).", "[Merchant Reviews](https://developers.google.com/merchant-review-feeds).", - "[YouTube Checkout](" + "YouTube Checkout ." ], "type": "string" } @@ -1476,7 +1476,7 @@ "type": "string" }, "expirationTime": { - "description": "The product expiration time. This field will not bet set if the notification is sent for a product deletion event.", + "description": "Optional. The product expiration time. This field will not bet set if the notification is sent for a product deletion event.", "format": "google-datetime", "type": "string" }, @@ -1485,7 +1485,7 @@ "type": "string" }, "resource": { - "description": "The product name. Format: `{product.name=accounts/{account}/products/{product}}`", + "description": "The product name. Format: `accounts/{account}/products/{product}`", "type": "string" }, "resourceId": { diff --git a/merchantapi/products_v1beta/merchantapi-gen.go b/merchantapi/products_v1beta/merchantapi-gen.go index 6daaacc7760..edb2a290d46 100644 --- a/merchantapi/products_v1beta/merchantapi-gen.go +++ b/merchantapi/products_v1beta/merchantapi-gen.go @@ -671,7 +671,7 @@ type DestinationStatus struct { // Reviews](https://support.google.com/merchants/answer/14620732). // "MERCHANT_REVIEWS" - [Merchant // Reviews](https://developers.google.com/merchant-review-feeds). - // "YOUTUBE_CHECKOUT" - [YouTube Checkout]( + // "YOUTUBE_CHECKOUT" - YouTube Checkout . ReportingContext string `json:"reportingContext,omitempty"` // ForceSendFields is a list of field names (e.g. "ApprovedCountries") to // unconditionally include in API requests. By default, fields with empty or @@ -842,7 +842,7 @@ type ItemLevelIssue struct { // Reviews](https://support.google.com/merchants/answer/14620732). // "MERCHANT_REVIEWS" - [Merchant // Reviews](https://developers.google.com/merchant-review-feeds). - // "YOUTUBE_CHECKOUT" - [YouTube Checkout]( + // "YOUTUBE_CHECKOUT" - YouTube Checkout . ReportingContext string `json:"reportingContext,omitempty"` // Resolution: Whether the issue can be resolved by the merchant. Resolution string `json:"resolution,omitempty"` @@ -1101,13 +1101,22 @@ func (s Product) MarshalJSON() ([]byte, error) { // ProductChange: The change that happened to the product including old value, // new value, country code as the region code and reporting context. type ProductChange struct { - // NewValue: The new value of the changed resource or attribute. + // NewValue: The new value of the changed resource or attribute. If empty, it + // means that the product was deleted. Will have one of these values : + // (`approved`, `pending`, `disapproved`, ``) NewValue string `json:"newValue,omitempty"` - // OldValue: The old value of the changed resource or attribute. + // OldValue: The old value of the changed resource or attribute. If empty, it + // means that the product was created. Will have one of these values : + // (`approved`, `pending`, `disapproved`, ``) OldValue string `json:"oldValue,omitempty"` - // RegionCode: Countries that have the change (if applicable) + // RegionCode: Countries that have the change (if applicable). Represented in + // the ISO 3166 format. RegionCode string `json:"regionCode,omitempty"` - // ReportingContext: Reporting contexts that have the change (if applicable) + // ReportingContext: Reporting contexts that have the change (if applicable). + // Currently this field supports only (`SHOPPING_ADS`, `LOCAL_INVENTORY_ADS`, + // `YOUTUBE_SHOPPING`, `YOUTUBE_CHECKOUT`, `YOUTUBE_AFFILIATE`) from the enum + // value ReportingContextEnum + // (/merchant/api/reference/rest/Shared.Types/ReportingContextEnum) // // Possible values: // "REPORTING_CONTEXT_ENUM_UNSPECIFIED" - Not specified. @@ -1145,7 +1154,7 @@ type ProductChange struct { // Reviews](https://support.google.com/merchants/answer/14620732). // "MERCHANT_REVIEWS" - [Merchant // Reviews](https://developers.google.com/merchant-review-feeds). - // "YOUTUBE_CHECKOUT" - [YouTube Checkout]( + // "YOUTUBE_CHECKOUT" - YouTube Checkout . ReportingContext string `json:"reportingContext,omitempty"` // ForceSendFields is a list of field names (e.g. "NewValue") to // unconditionally include in API requests. By default, fields with empty or @@ -1368,15 +1377,14 @@ type ProductStatusChangeMessage struct { Changes []*ProductChange `json:"changes,omitempty"` // EventTime: The time at which the event was generated. EventTime string `json:"eventTime,omitempty"` - // ExpirationTime: The product expiration time. This field will not bet set if - // the notification is sent for a product deletion event. + // ExpirationTime: Optional. The product expiration time. This field will not + // bet set if the notification is sent for a product deletion event. ExpirationTime string `json:"expirationTime,omitempty"` // ManagingAccount: The account that manages the merchant's account. can be the // same as merchant id if it is standalone account. Format : // `accounts/{service_provider_id}` ManagingAccount string `json:"managingAccount,omitempty"` - // Resource: The product name. Format: - // `{product.name=accounts/{account}/products/{product}}` + // Resource: The product name. Format: `accounts/{account}/products/{product}` Resource string `json:"resource,omitempty"` // ResourceId: The product id. ResourceId string `json:"resourceId,omitempty"` diff --git a/merchantapi/promotions_v1beta/merchantapi-api.json b/merchantapi/promotions_v1beta/merchantapi-api.json index 18eb67da37d..fd15729e705 100644 --- a/merchantapi/promotions_v1beta/merchantapi-api.json +++ b/merchantapi/promotions_v1beta/merchantapi-api.json @@ -203,7 +203,7 @@ } } }, - "revision": "20250219", + "revision": "20250301", "rootUrl": "https://merchantapi.googleapis.com/", "schemas": { "Attributes": { @@ -549,7 +549,7 @@ "[Local cloud retail](https://cloud.google.com/solutions/retail).", "[Product Reviews](https://support.google.com/merchants/answer/14620732).", "[Merchant Reviews](https://developers.google.com/merchant-review-feeds).", - "[YouTube Checkout](" + "YouTube Checkout ." ], "readOnly": true, "type": "string" @@ -712,7 +712,7 @@ "[Local cloud retail](https://cloud.google.com/solutions/retail).", "[Product Reviews](https://support.google.com/merchants/answer/14620732).", "[Merchant Reviews](https://developers.google.com/merchant-review-feeds).", - "[YouTube Checkout](" + "YouTube Checkout ." ], "readOnly": true, "type": "string" @@ -781,19 +781,19 @@ "id": "ProductChange", "properties": { "newValue": { - "description": "The new value of the changed resource or attribute.", + "description": "The new value of the changed resource or attribute. If empty, it means that the product was deleted. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)", "type": "string" }, "oldValue": { - "description": "The old value of the changed resource or attribute.", + "description": "The old value of the changed resource or attribute. If empty, it means that the product was created. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)", "type": "string" }, "regionCode": { - "description": "Countries that have the change (if applicable)", + "description": "Countries that have the change (if applicable). Represented in the ISO 3166 format.", "type": "string" }, "reportingContext": { - "description": "Reporting contexts that have the change (if applicable)", + "description": "Reporting contexts that have the change (if applicable). Currently this field supports only (`SHOPPING_ADS`, `LOCAL_INVENTORY_ADS`, `YOUTUBE_SHOPPING`, `YOUTUBE_CHECKOUT`, `YOUTUBE_AFFILIATE`) from the enum value [ReportingContextEnum](/merchant/api/reference/rest/Shared.Types/ReportingContextEnum)", "enum": [ "REPORTING_CONTEXT_ENUM_UNSPECIFIED", "SHOPPING_ADS", @@ -855,7 +855,7 @@ "[Local cloud retail](https://cloud.google.com/solutions/retail).", "[Product Reviews](https://support.google.com/merchants/answer/14620732).", "[Merchant Reviews](https://developers.google.com/merchant-review-feeds).", - "[YouTube Checkout](" + "YouTube Checkout ." ], "type": "string" } @@ -895,7 +895,7 @@ "type": "string" }, "expirationTime": { - "description": "The product expiration time. This field will not bet set if the notification is sent for a product deletion event.", + "description": "Optional. The product expiration time. This field will not bet set if the notification is sent for a product deletion event.", "format": "google-datetime", "type": "string" }, @@ -904,7 +904,7 @@ "type": "string" }, "resource": { - "description": "The product name. Format: `{product.name=accounts/{account}/products/{product}}`", + "description": "The product name. Format: `accounts/{account}/products/{product}`", "type": "string" }, "resourceId": { diff --git a/merchantapi/promotions_v1beta/merchantapi-gen.go b/merchantapi/promotions_v1beta/merchantapi-gen.go index ce5e717b66b..e8d2068767e 100644 --- a/merchantapi/promotions_v1beta/merchantapi-gen.go +++ b/merchantapi/promotions_v1beta/merchantapi-gen.go @@ -502,7 +502,7 @@ type DestinationStatus struct { // Reviews](https://support.google.com/merchants/answer/14620732). // "MERCHANT_REVIEWS" - [Merchant // Reviews](https://developers.google.com/merchant-review-feeds). - // "YOUTUBE_CHECKOUT" - [YouTube Checkout]( + // "YOUTUBE_CHECKOUT" - YouTube Checkout . ReportingContext string `json:"reportingContext,omitempty"` // Status: Output only. The status for the specified destination. // @@ -646,7 +646,7 @@ type ItemLevelIssue struct { // Reviews](https://support.google.com/merchants/answer/14620732). // "MERCHANT_REVIEWS" - [Merchant // Reviews](https://developers.google.com/merchant-review-feeds). - // "YOUTUBE_CHECKOUT" - [YouTube Checkout]( + // "YOUTUBE_CHECKOUT" - YouTube Checkout . ReportingContext string `json:"reportingContext,omitempty"` // Resolution: Output only. Whether the issue can be resolved by the merchant. Resolution string `json:"resolution,omitempty"` @@ -736,13 +736,22 @@ func (s Price) MarshalJSON() ([]byte, error) { // ProductChange: The change that happened to the product including old value, // new value, country code as the region code and reporting context. type ProductChange struct { - // NewValue: The new value of the changed resource or attribute. + // NewValue: The new value of the changed resource or attribute. If empty, it + // means that the product was deleted. Will have one of these values : + // (`approved`, `pending`, `disapproved`, ``) NewValue string `json:"newValue,omitempty"` - // OldValue: The old value of the changed resource or attribute. + // OldValue: The old value of the changed resource or attribute. If empty, it + // means that the product was created. Will have one of these values : + // (`approved`, `pending`, `disapproved`, ``) OldValue string `json:"oldValue,omitempty"` - // RegionCode: Countries that have the change (if applicable) + // RegionCode: Countries that have the change (if applicable). Represented in + // the ISO 3166 format. RegionCode string `json:"regionCode,omitempty"` - // ReportingContext: Reporting contexts that have the change (if applicable) + // ReportingContext: Reporting contexts that have the change (if applicable). + // Currently this field supports only (`SHOPPING_ADS`, `LOCAL_INVENTORY_ADS`, + // `YOUTUBE_SHOPPING`, `YOUTUBE_CHECKOUT`, `YOUTUBE_AFFILIATE`) from the enum + // value ReportingContextEnum + // (/merchant/api/reference/rest/Shared.Types/ReportingContextEnum) // // Possible values: // "REPORTING_CONTEXT_ENUM_UNSPECIFIED" - Not specified. @@ -780,7 +789,7 @@ type ProductChange struct { // Reviews](https://support.google.com/merchants/answer/14620732). // "MERCHANT_REVIEWS" - [Merchant // Reviews](https://developers.google.com/merchant-review-feeds). - // "YOUTUBE_CHECKOUT" - [YouTube Checkout]( + // "YOUTUBE_CHECKOUT" - YouTube Checkout . ReportingContext string `json:"reportingContext,omitempty"` // ForceSendFields is a list of field names (e.g. "NewValue") to // unconditionally include in API requests. By default, fields with empty or @@ -817,15 +826,14 @@ type ProductStatusChangeMessage struct { Changes []*ProductChange `json:"changes,omitempty"` // EventTime: The time at which the event was generated. EventTime string `json:"eventTime,omitempty"` - // ExpirationTime: The product expiration time. This field will not bet set if - // the notification is sent for a product deletion event. + // ExpirationTime: Optional. The product expiration time. This field will not + // bet set if the notification is sent for a product deletion event. ExpirationTime string `json:"expirationTime,omitempty"` // ManagingAccount: The account that manages the merchant's account. can be the // same as merchant id if it is standalone account. Format : // `accounts/{service_provider_id}` ManagingAccount string `json:"managingAccount,omitempty"` - // Resource: The product name. Format: - // `{product.name=accounts/{account}/products/{product}}` + // Resource: The product name. Format: `accounts/{account}/products/{product}` Resource string `json:"resource,omitempty"` // ResourceId: The product id. ResourceId string `json:"resourceId,omitempty"` diff --git a/merchantapi/quota_v1beta/merchantapi-api.json b/merchantapi/quota_v1beta/merchantapi-api.json index 93800b364b7..548a222544b 100644 --- a/merchantapi/quota_v1beta/merchantapi-api.json +++ b/merchantapi/quota_v1beta/merchantapi-api.json @@ -150,7 +150,7 @@ } } }, - "revision": "20250219", + "revision": "20250301", "rootUrl": "https://merchantapi.googleapis.com/", "schemas": { "ListQuotaGroupsResponse": { @@ -203,19 +203,19 @@ "id": "ProductChange", "properties": { "newValue": { - "description": "The new value of the changed resource or attribute.", + "description": "The new value of the changed resource or attribute. If empty, it means that the product was deleted. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)", "type": "string" }, "oldValue": { - "description": "The old value of the changed resource or attribute.", + "description": "The old value of the changed resource or attribute. If empty, it means that the product was created. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)", "type": "string" }, "regionCode": { - "description": "Countries that have the change (if applicable)", + "description": "Countries that have the change (if applicable). Represented in the ISO 3166 format.", "type": "string" }, "reportingContext": { - "description": "Reporting contexts that have the change (if applicable)", + "description": "Reporting contexts that have the change (if applicable). Currently this field supports only (`SHOPPING_ADS`, `LOCAL_INVENTORY_ADS`, `YOUTUBE_SHOPPING`, `YOUTUBE_CHECKOUT`, `YOUTUBE_AFFILIATE`) from the enum value [ReportingContextEnum](/merchant/api/reference/rest/Shared.Types/ReportingContextEnum)", "enum": [ "REPORTING_CONTEXT_ENUM_UNSPECIFIED", "SHOPPING_ADS", @@ -277,7 +277,7 @@ "[Local cloud retail](https://cloud.google.com/solutions/retail).", "[Product Reviews](https://support.google.com/merchants/answer/14620732).", "[Merchant Reviews](https://developers.google.com/merchant-review-feeds).", - "[YouTube Checkout](" + "YouTube Checkout ." ], "type": "string" } @@ -317,7 +317,7 @@ "type": "string" }, "expirationTime": { - "description": "The product expiration time. This field will not bet set if the notification is sent for a product deletion event.", + "description": "Optional. The product expiration time. This field will not bet set if the notification is sent for a product deletion event.", "format": "google-datetime", "type": "string" }, @@ -326,7 +326,7 @@ "type": "string" }, "resource": { - "description": "The product name. Format: `{product.name=accounts/{account}/products/{product}}`", + "description": "The product name. Format: `accounts/{account}/products/{product}`", "type": "string" }, "resourceId": { diff --git a/merchantapi/quota_v1beta/merchantapi-gen.go b/merchantapi/quota_v1beta/merchantapi-gen.go index 2e3a2b729ab..54129110714 100644 --- a/merchantapi/quota_v1beta/merchantapi-gen.go +++ b/merchantapi/quota_v1beta/merchantapi-gen.go @@ -239,13 +239,22 @@ func (s MethodDetails) MarshalJSON() ([]byte, error) { // ProductChange: The change that happened to the product including old value, // new value, country code as the region code and reporting context. type ProductChange struct { - // NewValue: The new value of the changed resource or attribute. + // NewValue: The new value of the changed resource or attribute. If empty, it + // means that the product was deleted. Will have one of these values : + // (`approved`, `pending`, `disapproved`, ``) NewValue string `json:"newValue,omitempty"` - // OldValue: The old value of the changed resource or attribute. + // OldValue: The old value of the changed resource or attribute. If empty, it + // means that the product was created. Will have one of these values : + // (`approved`, `pending`, `disapproved`, ``) OldValue string `json:"oldValue,omitempty"` - // RegionCode: Countries that have the change (if applicable) + // RegionCode: Countries that have the change (if applicable). Represented in + // the ISO 3166 format. RegionCode string `json:"regionCode,omitempty"` - // ReportingContext: Reporting contexts that have the change (if applicable) + // ReportingContext: Reporting contexts that have the change (if applicable). + // Currently this field supports only (`SHOPPING_ADS`, `LOCAL_INVENTORY_ADS`, + // `YOUTUBE_SHOPPING`, `YOUTUBE_CHECKOUT`, `YOUTUBE_AFFILIATE`) from the enum + // value ReportingContextEnum + // (/merchant/api/reference/rest/Shared.Types/ReportingContextEnum) // // Possible values: // "REPORTING_CONTEXT_ENUM_UNSPECIFIED" - Not specified. @@ -283,7 +292,7 @@ type ProductChange struct { // Reviews](https://support.google.com/merchants/answer/14620732). // "MERCHANT_REVIEWS" - [Merchant // Reviews](https://developers.google.com/merchant-review-feeds). - // "YOUTUBE_CHECKOUT" - [YouTube Checkout]( + // "YOUTUBE_CHECKOUT" - YouTube Checkout . ReportingContext string `json:"reportingContext,omitempty"` // ForceSendFields is a list of field names (e.g. "NewValue") to // unconditionally include in API requests. By default, fields with empty or @@ -320,15 +329,14 @@ type ProductStatusChangeMessage struct { Changes []*ProductChange `json:"changes,omitempty"` // EventTime: The time at which the event was generated. EventTime string `json:"eventTime,omitempty"` - // ExpirationTime: The product expiration time. This field will not bet set if - // the notification is sent for a product deletion event. + // ExpirationTime: Optional. The product expiration time. This field will not + // bet set if the notification is sent for a product deletion event. ExpirationTime string `json:"expirationTime,omitempty"` // ManagingAccount: The account that manages the merchant's account. can be the // same as merchant id if it is standalone account. Format : // `accounts/{service_provider_id}` ManagingAccount string `json:"managingAccount,omitempty"` - // Resource: The product name. Format: - // `{product.name=accounts/{account}/products/{product}}` + // Resource: The product name. Format: `accounts/{account}/products/{product}` Resource string `json:"resource,omitempty"` // ResourceId: The product id. ResourceId string `json:"resourceId,omitempty"` diff --git a/merchantapi/reports_v1beta/merchantapi-api.json b/merchantapi/reports_v1beta/merchantapi-api.json index 84edaca97a2..999eeda69f1 100644 --- a/merchantapi/reports_v1beta/merchantapi-api.json +++ b/merchantapi/reports_v1beta/merchantapi-api.json @@ -142,7 +142,7 @@ } } }, - "revision": "20250219", + "revision": "20250301", "rootUrl": "https://merchantapi.googleapis.com/", "schemas": { "BestSellersBrandView": { @@ -698,7 +698,7 @@ "[Local cloud retail](https://cloud.google.com/solutions/retail).", "[Product Reviews](https://support.google.com/merchants/answer/14620732).", "[Merchant Reviews](https://developers.google.com/merchant-review-feeds).", - "[YouTube Checkout](" + "YouTube Checkout ." ], "type": "string" } @@ -1007,19 +1007,19 @@ "id": "ProductChange", "properties": { "newValue": { - "description": "The new value of the changed resource or attribute.", + "description": "The new value of the changed resource or attribute. If empty, it means that the product was deleted. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)", "type": "string" }, "oldValue": { - "description": "The old value of the changed resource or attribute.", + "description": "The old value of the changed resource or attribute. If empty, it means that the product was created. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)", "type": "string" }, "regionCode": { - "description": "Countries that have the change (if applicable)", + "description": "Countries that have the change (if applicable). Represented in the ISO 3166 format.", "type": "string" }, "reportingContext": { - "description": "Reporting contexts that have the change (if applicable)", + "description": "Reporting contexts that have the change (if applicable). Currently this field supports only (`SHOPPING_ADS`, `LOCAL_INVENTORY_ADS`, `YOUTUBE_SHOPPING`, `YOUTUBE_CHECKOUT`, `YOUTUBE_AFFILIATE`) from the enum value [ReportingContextEnum](/merchant/api/reference/rest/Shared.Types/ReportingContextEnum)", "enum": [ "REPORTING_CONTEXT_ENUM_UNSPECIFIED", "SHOPPING_ADS", @@ -1081,7 +1081,7 @@ "[Local cloud retail](https://cloud.google.com/solutions/retail).", "[Product Reviews](https://support.google.com/merchants/answer/14620732).", "[Merchant Reviews](https://developers.google.com/merchant-review-feeds).", - "[YouTube Checkout](" + "YouTube Checkout ." ], "type": "string" } @@ -1255,7 +1255,7 @@ "type": "string" }, "expirationTime": { - "description": "The product expiration time. This field will not bet set if the notification is sent for a product deletion event.", + "description": "Optional. The product expiration time. This field will not bet set if the notification is sent for a product deletion event.", "format": "google-datetime", "type": "string" }, @@ -1264,7 +1264,7 @@ "type": "string" }, "resource": { - "description": "The product name. Format: `{product.name=accounts/{account}/products/{product}}`", + "description": "The product name. Format: `accounts/{account}/products/{product}`", "type": "string" }, "resourceId": { diff --git a/merchantapi/reports_v1beta/merchantapi-gen.go b/merchantapi/reports_v1beta/merchantapi-gen.go index bb550212886..3cc09e0a451 100644 --- a/merchantapi/reports_v1beta/merchantapi-gen.go +++ b/merchantapi/reports_v1beta/merchantapi-gen.go @@ -780,7 +780,7 @@ type IssueSeverityPerReportingContext struct { // Reviews](https://support.google.com/merchants/answer/14620732). // "MERCHANT_REVIEWS" - [Merchant // Reviews](https://developers.google.com/merchant-review-feeds). - // "YOUTUBE_CHECKOUT" - [YouTube Checkout]( + // "YOUTUBE_CHECKOUT" - YouTube Checkout . ReportingContext string `json:"reportingContext,omitempty"` // ForceSendFields is a list of field names (e.g. "DemotedCountries") to // unconditionally include in API requests. By default, fields with empty or @@ -1156,13 +1156,22 @@ func (s *PriceInsightsProductView) UnmarshalJSON(data []byte) error { // ProductChange: The change that happened to the product including old value, // new value, country code as the region code and reporting context. type ProductChange struct { - // NewValue: The new value of the changed resource or attribute. + // NewValue: The new value of the changed resource or attribute. If empty, it + // means that the product was deleted. Will have one of these values : + // (`approved`, `pending`, `disapproved`, ``) NewValue string `json:"newValue,omitempty"` - // OldValue: The old value of the changed resource or attribute. + // OldValue: The old value of the changed resource or attribute. If empty, it + // means that the product was created. Will have one of these values : + // (`approved`, `pending`, `disapproved`, ``) OldValue string `json:"oldValue,omitempty"` - // RegionCode: Countries that have the change (if applicable) + // RegionCode: Countries that have the change (if applicable). Represented in + // the ISO 3166 format. RegionCode string `json:"regionCode,omitempty"` - // ReportingContext: Reporting contexts that have the change (if applicable) + // ReportingContext: Reporting contexts that have the change (if applicable). + // Currently this field supports only (`SHOPPING_ADS`, `LOCAL_INVENTORY_ADS`, + // `YOUTUBE_SHOPPING`, `YOUTUBE_CHECKOUT`, `YOUTUBE_AFFILIATE`) from the enum + // value ReportingContextEnum + // (/merchant/api/reference/rest/Shared.Types/ReportingContextEnum) // // Possible values: // "REPORTING_CONTEXT_ENUM_UNSPECIFIED" - Not specified. @@ -1200,7 +1209,7 @@ type ProductChange struct { // Reviews](https://support.google.com/merchants/answer/14620732). // "MERCHANT_REVIEWS" - [Merchant // Reviews](https://developers.google.com/merchant-review-feeds). - // "YOUTUBE_CHECKOUT" - [YouTube Checkout]( + // "YOUTUBE_CHECKOUT" - YouTube Checkout . ReportingContext string `json:"reportingContext,omitempty"` // ForceSendFields is a list of field names (e.g. "NewValue") to // unconditionally include in API requests. By default, fields with empty or @@ -1376,15 +1385,14 @@ type ProductStatusChangeMessage struct { Changes []*ProductChange `json:"changes,omitempty"` // EventTime: The time at which the event was generated. EventTime string `json:"eventTime,omitempty"` - // ExpirationTime: The product expiration time. This field will not bet set if - // the notification is sent for a product deletion event. + // ExpirationTime: Optional. The product expiration time. This field will not + // bet set if the notification is sent for a product deletion event. ExpirationTime string `json:"expirationTime,omitempty"` // ManagingAccount: The account that manages the merchant's account. can be the // same as merchant id if it is standalone account. Format : // `accounts/{service_provider_id}` ManagingAccount string `json:"managingAccount,omitempty"` - // Resource: The product name. Format: - // `{product.name=accounts/{account}/products/{product}}` + // Resource: The product name. Format: `accounts/{account}/products/{product}` Resource string `json:"resource,omitempty"` // ResourceId: The product id. ResourceId string `json:"resourceId,omitempty"` diff --git a/merchantapi/reviews_v1beta/merchantapi-api.json b/merchantapi/reviews_v1beta/merchantapi-api.json index 7cef8f8ffcb..17b44b91c1b 100644 --- a/merchantapi/reviews_v1beta/merchantapi-api.json +++ b/merchantapi/reviews_v1beta/merchantapi-api.json @@ -356,7 +356,7 @@ } } }, - "revision": "20250219", + "revision": "20250301", "rootUrl": "https://merchantapi.googleapis.com/", "schemas": { "CustomAttribute": { @@ -613,7 +613,7 @@ "[Local cloud retail](https://cloud.google.com/solutions/retail).", "[Product Reviews](https://support.google.com/merchants/answer/14620732).", "[Merchant Reviews](https://developers.google.com/merchant-review-feeds).", - "[YouTube Checkout](" + "YouTube Checkout ." ], "readOnly": true, "type": "string" @@ -713,7 +713,7 @@ "[Local cloud retail](https://cloud.google.com/solutions/retail).", "[Product Reviews](https://support.google.com/merchants/answer/14620732).", "[Merchant Reviews](https://developers.google.com/merchant-review-feeds).", - "[YouTube Checkout](" + "YouTube Checkout ." ], "readOnly": true, "type": "string" @@ -781,19 +781,19 @@ "id": "ProductChange", "properties": { "newValue": { - "description": "The new value of the changed resource or attribute.", + "description": "The new value of the changed resource or attribute. If empty, it means that the product was deleted. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)", "type": "string" }, "oldValue": { - "description": "The old value of the changed resource or attribute.", + "description": "The old value of the changed resource or attribute. If empty, it means that the product was created. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)", "type": "string" }, "regionCode": { - "description": "Countries that have the change (if applicable)", + "description": "Countries that have the change (if applicable). Represented in the ISO 3166 format.", "type": "string" }, "reportingContext": { - "description": "Reporting contexts that have the change (if applicable)", + "description": "Reporting contexts that have the change (if applicable). Currently this field supports only (`SHOPPING_ADS`, `LOCAL_INVENTORY_ADS`, `YOUTUBE_SHOPPING`, `YOUTUBE_CHECKOUT`, `YOUTUBE_AFFILIATE`) from the enum value [ReportingContextEnum](/merchant/api/reference/rest/Shared.Types/ReportingContextEnum)", "enum": [ "REPORTING_CONTEXT_ENUM_UNSPECIFIED", "SHOPPING_ADS", @@ -855,7 +855,7 @@ "[Local cloud retail](https://cloud.google.com/solutions/retail).", "[Product Reviews](https://support.google.com/merchants/answer/14620732).", "[Merchant Reviews](https://developers.google.com/merchant-review-feeds).", - "[YouTube Checkout](" + "YouTube Checkout ." ], "type": "string" } @@ -1132,7 +1132,7 @@ "[Local cloud retail](https://cloud.google.com/solutions/retail).", "[Product Reviews](https://support.google.com/merchants/answer/14620732).", "[Merchant Reviews](https://developers.google.com/merchant-review-feeds).", - "[YouTube Checkout](" + "YouTube Checkout ." ], "readOnly": true, "type": "string" @@ -1232,7 +1232,7 @@ "[Local cloud retail](https://cloud.google.com/solutions/retail).", "[Product Reviews](https://support.google.com/merchants/answer/14620732).", "[Merchant Reviews](https://developers.google.com/merchant-review-feeds).", - "[YouTube Checkout](" + "YouTube Checkout ." ], "readOnly": true, "type": "string" @@ -1328,7 +1328,7 @@ "type": "string" }, "expirationTime": { - "description": "The product expiration time. This field will not bet set if the notification is sent for a product deletion event.", + "description": "Optional. The product expiration time. This field will not bet set if the notification is sent for a product deletion event.", "format": "google-datetime", "type": "string" }, @@ -1337,7 +1337,7 @@ "type": "string" }, "resource": { - "description": "The product name. Format: `{product.name=accounts/{account}/products/{product}}`", + "description": "The product name. Format: `accounts/{account}/products/{product}`", "type": "string" }, "resourceId": { diff --git a/merchantapi/reviews_v1beta/merchantapi-gen.go b/merchantapi/reviews_v1beta/merchantapi-gen.go index b5ec85a9490..5f779fba1ab 100644 --- a/merchantapi/reviews_v1beta/merchantapi-gen.go +++ b/merchantapi/reviews_v1beta/merchantapi-gen.go @@ -463,7 +463,7 @@ type MerchantReviewDestinationStatus struct { // Reviews](https://support.google.com/merchants/answer/14620732). // "MERCHANT_REVIEWS" - [Merchant // Reviews](https://developers.google.com/merchant-review-feeds). - // "YOUTUBE_CHECKOUT" - [YouTube Checkout]( + // "YOUTUBE_CHECKOUT" - YouTube Checkout . ReportingContext string `json:"reportingContext,omitempty"` // ForceSendFields is a list of field names (e.g. "ReportingContext") to // unconditionally include in API requests. By default, fields with empty or @@ -536,7 +536,7 @@ type MerchantReviewItemLevelIssue struct { // Reviews](https://support.google.com/merchants/answer/14620732). // "MERCHANT_REVIEWS" - [Merchant // Reviews](https://developers.google.com/merchant-review-feeds). - // "YOUTUBE_CHECKOUT" - [YouTube Checkout]( + // "YOUTUBE_CHECKOUT" - YouTube Checkout . ReportingContext string `json:"reportingContext,omitempty"` // Resolution: Output only. Whether the issue can be resolved by the merchant. Resolution string `json:"resolution,omitempty"` @@ -604,13 +604,22 @@ func (s MerchantReviewStatus) MarshalJSON() ([]byte, error) { // ProductChange: The change that happened to the product including old value, // new value, country code as the region code and reporting context. type ProductChange struct { - // NewValue: The new value of the changed resource or attribute. + // NewValue: The new value of the changed resource or attribute. If empty, it + // means that the product was deleted. Will have one of these values : + // (`approved`, `pending`, `disapproved`, ``) NewValue string `json:"newValue,omitempty"` - // OldValue: The old value of the changed resource or attribute. + // OldValue: The old value of the changed resource or attribute. If empty, it + // means that the product was created. Will have one of these values : + // (`approved`, `pending`, `disapproved`, ``) OldValue string `json:"oldValue,omitempty"` - // RegionCode: Countries that have the change (if applicable) + // RegionCode: Countries that have the change (if applicable). Represented in + // the ISO 3166 format. RegionCode string `json:"regionCode,omitempty"` - // ReportingContext: Reporting contexts that have the change (if applicable) + // ReportingContext: Reporting contexts that have the change (if applicable). + // Currently this field supports only (`SHOPPING_ADS`, `LOCAL_INVENTORY_ADS`, + // `YOUTUBE_SHOPPING`, `YOUTUBE_CHECKOUT`, `YOUTUBE_AFFILIATE`) from the enum + // value ReportingContextEnum + // (/merchant/api/reference/rest/Shared.Types/ReportingContextEnum) // // Possible values: // "REPORTING_CONTEXT_ENUM_UNSPECIFIED" - Not specified. @@ -648,7 +657,7 @@ type ProductChange struct { // Reviews](https://support.google.com/merchants/answer/14620732). // "MERCHANT_REVIEWS" - [Merchant // Reviews](https://developers.google.com/merchant-review-feeds). - // "YOUTUBE_CHECKOUT" - [YouTube Checkout]( + // "YOUTUBE_CHECKOUT" - YouTube Checkout . ReportingContext string `json:"reportingContext,omitempty"` // ForceSendFields is a list of field names (e.g. "NewValue") to // unconditionally include in API requests. By default, fields with empty or @@ -880,7 +889,7 @@ type ProductReviewDestinationStatus struct { // Reviews](https://support.google.com/merchants/answer/14620732). // "MERCHANT_REVIEWS" - [Merchant // Reviews](https://developers.google.com/merchant-review-feeds). - // "YOUTUBE_CHECKOUT" - [YouTube Checkout]( + // "YOUTUBE_CHECKOUT" - YouTube Checkout . ReportingContext string `json:"reportingContext,omitempty"` // ForceSendFields is a list of field names (e.g. "ReportingContext") to // unconditionally include in API requests. By default, fields with empty or @@ -953,7 +962,7 @@ type ProductReviewItemLevelIssue struct { // Reviews](https://support.google.com/merchants/answer/14620732). // "MERCHANT_REVIEWS" - [Merchant // Reviews](https://developers.google.com/merchant-review-feeds). - // "YOUTUBE_CHECKOUT" - [YouTube Checkout]( + // "YOUTUBE_CHECKOUT" - YouTube Checkout . ReportingContext string `json:"reportingContext,omitempty"` // Resolution: Output only. Whether the issue can be resolved by the merchant. Resolution string `json:"resolution,omitempty"` @@ -1032,15 +1041,14 @@ type ProductStatusChangeMessage struct { Changes []*ProductChange `json:"changes,omitempty"` // EventTime: The time at which the event was generated. EventTime string `json:"eventTime,omitempty"` - // ExpirationTime: The product expiration time. This field will not bet set if - // the notification is sent for a product deletion event. + // ExpirationTime: Optional. The product expiration time. This field will not + // bet set if the notification is sent for a product deletion event. ExpirationTime string `json:"expirationTime,omitempty"` // ManagingAccount: The account that manages the merchant's account. can be the // same as merchant id if it is standalone account. Format : // `accounts/{service_provider_id}` ManagingAccount string `json:"managingAccount,omitempty"` - // Resource: The product name. Format: - // `{product.name=accounts/{account}/products/{product}}` + // Resource: The product name. Format: `accounts/{account}/products/{product}` Resource string `json:"resource,omitempty"` // ResourceId: The product id. ResourceId string `json:"resourceId,omitempty"` diff --git a/migrationcenter/v1/migrationcenter-api.json b/migrationcenter/v1/migrationcenter-api.json index ead1a68f9d9..c35c3c537fa 100644 --- a/migrationcenter/v1/migrationcenter-api.json +++ b/migrationcenter/v1/migrationcenter-api.json @@ -378,12 +378,18 @@ "enum": [ "ASSET_VIEW_UNSPECIFIED", "ASSET_VIEW_BASIC", - "ASSET_VIEW_FULL" + "ASSET_VIEW_FULL", + "ASSET_VIEW_STANDARD", + "ASSET_VIEW_UI", + "ASSET_VIEW_LABELS" ], "enumDescriptions": [ "The asset view is not specified. The API displays the basic view by default.", "The asset view includes only basic metadata of the asset.", - "The asset view includes all the metadata of an asset and performance data." + "The asset view includes all the metadata of an asset and performance data.", + "The asset view includes the standard metadata of an asset.", + "The asset view includes fields needed by UI.", + "The asset view includes asset name and labels." ], "location": "query", "type": "string" @@ -439,12 +445,18 @@ "enum": [ "ASSET_VIEW_UNSPECIFIED", "ASSET_VIEW_BASIC", - "ASSET_VIEW_FULL" + "ASSET_VIEW_FULL", + "ASSET_VIEW_STANDARD", + "ASSET_VIEW_UI", + "ASSET_VIEW_LABELS" ], "enumDescriptions": [ "The asset view is not specified. The API displays the basic view by default.", "The asset view includes only basic metadata of the asset.", - "The asset view includes all the metadata of an asset and performance data." + "The asset view includes all the metadata of an asset and performance data.", + "The asset view includes the standard metadata of an asset.", + "The asset view includes fields needed by UI.", + "The asset view includes asset name and labels." ], "location": "query", "type": "string" @@ -2384,7 +2396,7 @@ } } }, - "revision": "20250220", + "revision": "20250227", "rootUrl": "https://migrationcenter.googleapis.com/", "schemas": { "AddAssetsToGroupRequest": { diff --git a/migrationcenter/v1/migrationcenter-gen.go b/migrationcenter/v1/migrationcenter-gen.go index cd1152e7574..a7cc1c0e45f 100644 --- a/migrationcenter/v1/migrationcenter-gen.go +++ b/migrationcenter/v1/migrationcenter-gen.go @@ -6948,6 +6948,13 @@ func (r *ProjectsLocationsAssetsService) Get(name string) *ProjectsLocationsAsse // "ASSET_VIEW_FULL" - The asset view includes all the metadata of an asset // // and performance data. +// +// "ASSET_VIEW_STANDARD" - The asset view includes the standard metadata of +// +// an asset. +// +// "ASSET_VIEW_UI" - The asset view includes fields needed by UI. +// "ASSET_VIEW_LABELS" - The asset view includes asset name and labels. func (c *ProjectsLocationsAssetsGetCall) View(view string) *ProjectsLocationsAssetsGetCall { c.urlParams_.Set("view", view) return c @@ -7106,6 +7113,13 @@ func (c *ProjectsLocationsAssetsListCall) PageToken(pageToken string) *ProjectsL // "ASSET_VIEW_FULL" - The asset view includes all the metadata of an asset // // and performance data. +// +// "ASSET_VIEW_STANDARD" - The asset view includes the standard metadata of +// +// an asset. +// +// "ASSET_VIEW_UI" - The asset view includes fields needed by UI. +// "ASSET_VIEW_LABELS" - The asset view includes asset name and labels. func (c *ProjectsLocationsAssetsListCall) View(view string) *ProjectsLocationsAssetsListCall { c.urlParams_.Set("view", view) return c diff --git a/paymentsresellersubscription/v1/paymentsresellersubscription-api.json b/paymentsresellersubscription/v1/paymentsresellersubscription-api.json index 29637f8aaf3..5d81dbb4308 100644 --- a/paymentsresellersubscription/v1/paymentsresellersubscription-api.json +++ b/paymentsresellersubscription/v1/paymentsresellersubscription-api.json @@ -467,7 +467,7 @@ } } }, - "revision": "20250212", + "revision": "20250302", "rootUrl": "https://paymentsresellersubscription.googleapis.com/", "schemas": { "GoogleCloudPaymentsResellerSubscriptionV1Amount": { @@ -769,6 +769,11 @@ "description": "Payload specific for Google Home products.", "id": "GoogleCloudPaymentsResellerSubscriptionV1GoogleHomePayload", "properties": { + "attachedToGoogleStructure": { + "description": "Output only. Output only. This identifies whether the subscription is attached to a Google Home structure.", + "readOnly": true, + "type": "boolean" + }, "partnerStructureId": { "description": "Optional. This identifies the structure ID on partner side that the subscription should be applied to. Only required when the partner requires structure mapping.", "type": "string" diff --git a/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go b/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go index be4ffda06b4..af07cf7ec06 100644 --- a/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go +++ b/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go @@ -731,19 +731,22 @@ func (s GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse) Ma // GoogleCloudPaymentsResellerSubscriptionV1GoogleHomePayload: Payload specific // for Google Home products. type GoogleCloudPaymentsResellerSubscriptionV1GoogleHomePayload struct { + // AttachedToGoogleStructure: Output only. Output only. This identifies whether + // the subscription is attached to a Google Home structure. + AttachedToGoogleStructure bool `json:"attachedToGoogleStructure,omitempty"` // PartnerStructureId: Optional. This identifies the structure ID on partner // side that the subscription should be applied to. Only required when the // partner requires structure mapping. PartnerStructureId string `json:"partnerStructureId,omitempty"` - // ForceSendFields is a list of field names (e.g. "PartnerStructureId") to - // unconditionally include in API requests. By default, fields with empty or + // ForceSendFields is a list of field names (e.g. "AttachedToGoogleStructure") + // to unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "PartnerStructureId") 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. "AttachedToGoogleStructure") to + // include in API requests with the JSON null value. By default, fields with + // 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/places/v1/places-api.json b/places/v1/places-api.json index 448a83a0185..88e3337fa99 100644 --- a/places/v1/places-api.json +++ b/places/v1/places-api.json @@ -280,7 +280,7 @@ } } }, - "revision": "20250223", + "revision": "20250302", "rootUrl": "https://places.googleapis.com/", "schemas": { "GoogleGeoTypeViewport": { @@ -1316,6 +1316,10 @@ "description": "Specifies if the business supports takeout.", "type": "boolean" }, + "timeZone": { + "$ref": "GoogleTypeTimeZone", + "description": "IANA Time Zone Database time zone. For example \"America/New_York\"." + }, "types": { "description": "A set of type tags for this result. For example, \"political\" and \"locality\". For the complete list of possible values, see Table A and Table B at https://developers.google.com/maps/documentation/places/web-service/place-types", "items": { @@ -2322,6 +2326,21 @@ } }, "type": "object" + }, + "GoogleTypeTimeZone": { + "description": "Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/time-zones).", + "id": "GoogleTypeTimeZone", + "properties": { + "id": { + "description": "IANA Time Zone Database time zone. For example \"America/New_York\".", + "type": "string" + }, + "version": { + "description": "Optional. IANA Time Zone Database version number. For example \"2019a\".", + "type": "string" + } + }, + "type": "object" } }, "servicePath": "", diff --git a/places/v1/places-gen.go b/places/v1/places-gen.go index 057d490e4ab..ddfeb706931 100644 --- a/places/v1/places-gen.go +++ b/places/v1/places-gen.go @@ -1501,6 +1501,8 @@ type GoogleMapsPlacesV1Place struct { SubDestinations []*GoogleMapsPlacesV1PlaceSubDestination `json:"subDestinations,omitempty"` // Takeout: Specifies if the business supports takeout. Takeout bool `json:"takeout,omitempty"` + // TimeZone: IANA Time Zone Database time zone. For example "America/New_York". + TimeZone *GoogleTypeTimeZone `json:"timeZone,omitempty"` // Types: A set of type tags for this result. For example, "political" and // "locality". For the complete list of possible values, see Table A and Table // B at @@ -3002,6 +3004,32 @@ func (s GoogleTypeMoney) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleTypeTimeZone: Represents a time zone from the IANA Time Zone Database +// (https://www.iana.org/time-zones). +type GoogleTypeTimeZone struct { + // Id: IANA Time Zone Database time zone. For example "America/New_York". + Id string `json:"id,omitempty"` + // Version: Optional. IANA Time Zone Database version number. For example + // "2019a". + Version string `json:"version,omitempty"` + // ForceSendFields is a list of field names (e.g. "Id") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Id") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleTypeTimeZone) MarshalJSON() ([]byte, error) { + type NoMethod GoogleTypeTimeZone + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + type PlacesAutocompleteCall struct { s *Service googlemapsplacesv1autocompleteplacesrequest *GoogleMapsPlacesV1AutocompletePlacesRequest diff --git a/retail/v2/retail-api.json b/retail/v2/retail-api.json index de8859c566b..2f4c3ef1dbc 100644 --- a/retail/v2/retail-api.json +++ b/retail/v2/retail-api.json @@ -143,7 +143,7 @@ "type": "boolean" }, "entity": { - "description": "The entity for customers who run multiple entities, domains, sites, or regions, for example, `Google US`, `Google Ads`, `Waymo`, `google.com`, `youtube.com`, etc. If this is set, it must be an exact match with UserEvent.entity to get per-entity autocomplete results.", + "description": "The entity for customers who run multiple entities, domains, sites, or regions, for example, `Google US`, `Google Ads`, `Waymo`, `google.com`, `youtube.com`, etc. If this is set, it must be an exact match with UserEvent.entity to get per-entity autocomplete results. Also, this entity should be limited to 256 characters, if too long, it will be truncated to 256 characters in both generation and serving time, and may lead to mis-match. To ensure it works, please set the entity with string within 256 characters.", "location": "query", "type": "string" }, @@ -2223,7 +2223,7 @@ } } }, - "revision": "20250221", + "revision": "20250227", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { diff --git a/retail/v2/retail-gen.go b/retail/v2/retail-gen.go index a8c6cad32ea..a4bee47a231 100644 --- a/retail/v2/retail-gen.go +++ b/retail/v2/retail-gen.go @@ -8941,7 +8941,10 @@ func (c *ProjectsLocationsCatalogsCompleteQueryCall) EnableAttributeSuggestions( // run multiple entities, domains, sites, or regions, for example, `Google US`, // `Google Ads`, `Waymo`, `google.com`, `youtube.com`, etc. If this is set, it // must be an exact match with UserEvent.entity to get per-entity autocomplete -// results. +// results. Also, this entity should be limited to 256 characters, if too long, +// it will be truncated to 256 characters in both generation and serving time, +// and may lead to mis-match. To ensure it works, please set the entity with +// string within 256 characters. func (c *ProjectsLocationsCatalogsCompleteQueryCall) Entity(entity string) *ProjectsLocationsCatalogsCompleteQueryCall { c.urlParams_.Set("entity", entity) return c diff --git a/retail/v2alpha/retail-api.json b/retail/v2alpha/retail-api.json index d4e3d5bdc7e..53f80f708ce 100644 --- a/retail/v2alpha/retail-api.json +++ b/retail/v2alpha/retail-api.json @@ -341,7 +341,7 @@ "type": "boolean" }, "entity": { - "description": "The entity for customers who run multiple entities, domains, sites, or regions, for example, `Google US`, `Google Ads`, `Waymo`, `google.com`, `youtube.com`, etc. If this is set, it must be an exact match with UserEvent.entity to get per-entity autocomplete results.", + "description": "The entity for customers who run multiple entities, domains, sites, or regions, for example, `Google US`, `Google Ads`, `Waymo`, `google.com`, `youtube.com`, etc. If this is set, it must be an exact match with UserEvent.entity to get per-entity autocomplete results. Also, this entity should be limited to 256 characters, if too long, it will be truncated to 256 characters in both generation and serving time, and may lead to mis-match. To ensure it works, please set the entity with string within 256 characters.", "location": "query", "type": "string" }, @@ -2744,7 +2744,7 @@ } } }, - "revision": "20250221", + "revision": "20250227", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { diff --git a/retail/v2alpha/retail-gen.go b/retail/v2alpha/retail-gen.go index 821ca62b1f5..42684eef6c9 100644 --- a/retail/v2alpha/retail-gen.go +++ b/retail/v2alpha/retail-gen.go @@ -10615,7 +10615,10 @@ func (c *ProjectsLocationsCatalogsCompleteQueryCall) EnableAttributeSuggestions( // run multiple entities, domains, sites, or regions, for example, `Google US`, // `Google Ads`, `Waymo`, `google.com`, `youtube.com`, etc. If this is set, it // must be an exact match with UserEvent.entity to get per-entity autocomplete -// results. +// results. Also, this entity should be limited to 256 characters, if too long, +// it will be truncated to 256 characters in both generation and serving time, +// and may lead to mis-match. To ensure it works, please set the entity with +// string within 256 characters. func (c *ProjectsLocationsCatalogsCompleteQueryCall) Entity(entity string) *ProjectsLocationsCatalogsCompleteQueryCall { c.urlParams_.Set("entity", entity) return c diff --git a/retail/v2beta/retail-api.json b/retail/v2beta/retail-api.json index 1f16acfd94a..3db6b8f877a 100644 --- a/retail/v2beta/retail-api.json +++ b/retail/v2beta/retail-api.json @@ -204,7 +204,7 @@ "type": "boolean" }, "entity": { - "description": "The entity for customers who run multiple entities, domains, sites, or regions, for example, `Google US`, `Google Ads`, `Waymo`, `google.com`, `youtube.com`, etc. If this is set, it must be an exact match with UserEvent.entity to get per-entity autocomplete results.", + "description": "The entity for customers who run multiple entities, domains, sites, or regions, for example, `Google US`, `Google Ads`, `Waymo`, `google.com`, `youtube.com`, etc. If this is set, it must be an exact match with UserEvent.entity to get per-entity autocomplete results. Also, this entity should be limited to 256 characters, if too long, it will be truncated to 256 characters in both generation and serving time, and may lead to mis-match. To ensure it works, please set the entity with string within 256 characters.", "location": "query", "type": "string" }, @@ -2368,7 +2368,7 @@ } } }, - "revision": "20250221", + "revision": "20250227", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { diff --git a/retail/v2beta/retail-gen.go b/retail/v2beta/retail-gen.go index 4ea02bf04c5..1826ce94ffe 100644 --- a/retail/v2beta/retail-gen.go +++ b/retail/v2beta/retail-gen.go @@ -9538,7 +9538,10 @@ func (c *ProjectsLocationsCatalogsCompleteQueryCall) EnableAttributeSuggestions( // run multiple entities, domains, sites, or regions, for example, `Google US`, // `Google Ads`, `Waymo`, `google.com`, `youtube.com`, etc. If this is set, it // must be an exact match with UserEvent.entity to get per-entity autocomplete -// results. +// results. Also, this entity should be limited to 256 characters, if too long, +// it will be truncated to 256 characters in both generation and serving time, +// and may lead to mis-match. To ensure it works, please set the entity with +// string within 256 characters. func (c *ProjectsLocationsCatalogsCompleteQueryCall) Entity(entity string) *ProjectsLocationsCatalogsCompleteQueryCall { c.urlParams_.Set("entity", entity) return c diff --git a/serviceconsumermanagement/v1/serviceconsumermanagement-api.json b/serviceconsumermanagement/v1/serviceconsumermanagement-api.json index 917dd649931..0d0e5b121b4 100644 --- a/serviceconsumermanagement/v1/serviceconsumermanagement-api.json +++ b/serviceconsumermanagement/v1/serviceconsumermanagement-api.json @@ -542,7 +542,7 @@ } } }, - "revision": "20250218", + "revision": "20250227", "rootUrl": "https://serviceconsumermanagement.googleapis.com/", "schemas": { "AddTenantProjectRequest": { @@ -3029,11 +3029,11 @@ "type": "object" }, "UsageRule": { - "description": "Usage configuration rules for the service. NOTE: Under development. Use this rule to configure unregistered calls for the service. Unregistered calls are calls that do not contain consumer project identity. (Example: calls that do not contain an API key). By default, API methods do not allow unregistered calls, and each method call must be identified by a consumer project identity. Use this rule to allow/disallow unregistered calls. Example of an API that wants to allow unregistered calls for entire service. usage: rules: - selector: \"*\" allow_unregistered_calls: true Example of a method that wants to allow unregistered calls. usage: rules: - selector: \"google.example.library.v1.LibraryService.CreateBook\" allow_unregistered_calls: true", + "description": "Usage configuration rules for the service.", "id": "UsageRule", "properties": { "allowUnregisteredCalls": { - "description": "If true, the selected method allows unregistered calls, e.g. calls that don't identify any user or application.", + "description": " Use this rule to configure unregistered calls for the service. Unregistered calls are calls that do not contain consumer project identity. (Example: calls that do not contain an API key). WARNING: By default, API methods do not allow unregistered calls, and each method call must be identified by a consumer project identity.", "type": "boolean" }, "selector": { diff --git a/serviceconsumermanagement/v1/serviceconsumermanagement-gen.go b/serviceconsumermanagement/v1/serviceconsumermanagement-gen.go index 80b1e7338dc..3f3bca3b987 100644 --- a/serviceconsumermanagement/v1/serviceconsumermanagement-gen.go +++ b/serviceconsumermanagement/v1/serviceconsumermanagement-gen.go @@ -3847,20 +3847,13 @@ func (s Usage) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UsageRule: Usage configuration rules for the service. NOTE: Under -// development. Use this rule to configure unregistered calls for the service. -// Unregistered calls are calls that do not contain consumer project identity. -// (Example: calls that do not contain an API key). By default, API methods do -// not allow unregistered calls, and each method call must be identified by a -// consumer project identity. Use this rule to allow/disallow unregistered -// calls. Example of an API that wants to allow unregistered calls for entire -// service. usage: rules: - selector: "*" allow_unregistered_calls: true -// Example of a method that wants to allow unregistered calls. usage: rules: - -// selector: "google.example.library.v1.LibraryService.CreateBook" -// allow_unregistered_calls: true +// UsageRule: Usage configuration rules for the service. type UsageRule struct { - // AllowUnregisteredCalls: If true, the selected method allows unregistered - // calls, e.g. calls that don't identify any user or application. + // AllowUnregisteredCalls: Use this rule to configure unregistered calls for + // the service. Unregistered calls are calls that do not contain consumer + // project identity. (Example: calls that do not contain an API key). WARNING: + // By default, API methods do not allow unregistered calls, and each method + // call must be identified by a consumer project identity. AllowUnregisteredCalls bool `json:"allowUnregisteredCalls,omitempty"` // Selector: Selects the methods to which this rule applies. Use '*' to // indicate all methods in all APIs. Refer to selector for syntax details. diff --git a/serviceconsumermanagement/v1beta1/serviceconsumermanagement-api.json b/serviceconsumermanagement/v1beta1/serviceconsumermanagement-api.json index 81631032ad4..91797254d28 100644 --- a/serviceconsumermanagement/v1beta1/serviceconsumermanagement-api.json +++ b/serviceconsumermanagement/v1beta1/serviceconsumermanagement-api.json @@ -715,7 +715,7 @@ } } }, - "revision": "20250218", + "revision": "20250227", "rootUrl": "https://serviceconsumermanagement.googleapis.com/", "schemas": { "Api": { @@ -2881,11 +2881,11 @@ "type": "object" }, "UsageRule": { - "description": "Usage configuration rules for the service. NOTE: Under development. Use this rule to configure unregistered calls for the service. Unregistered calls are calls that do not contain consumer project identity. (Example: calls that do not contain an API key). By default, API methods do not allow unregistered calls, and each method call must be identified by a consumer project identity. Use this rule to allow/disallow unregistered calls. Example of an API that wants to allow unregistered calls for entire service. usage: rules: - selector: \"*\" allow_unregistered_calls: true Example of a method that wants to allow unregistered calls. usage: rules: - selector: \"google.example.library.v1.LibraryService.CreateBook\" allow_unregistered_calls: true", + "description": "Usage configuration rules for the service.", "id": "UsageRule", "properties": { "allowUnregisteredCalls": { - "description": "If true, the selected method allows unregistered calls, e.g. calls that don't identify any user or application.", + "description": " Use this rule to configure unregistered calls for the service. Unregistered calls are calls that do not contain consumer project identity. (Example: calls that do not contain an API key). WARNING: By default, API methods do not allow unregistered calls, and each method call must be identified by a consumer project identity.", "type": "boolean" }, "selector": { diff --git a/serviceconsumermanagement/v1beta1/serviceconsumermanagement-gen.go b/serviceconsumermanagement/v1beta1/serviceconsumermanagement-gen.go index fb0494f88c6..a62f7ffd726 100644 --- a/serviceconsumermanagement/v1beta1/serviceconsumermanagement-gen.go +++ b/serviceconsumermanagement/v1beta1/serviceconsumermanagement-gen.go @@ -3386,20 +3386,13 @@ func (s Usage) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UsageRule: Usage configuration rules for the service. NOTE: Under -// development. Use this rule to configure unregistered calls for the service. -// Unregistered calls are calls that do not contain consumer project identity. -// (Example: calls that do not contain an API key). By default, API methods do -// not allow unregistered calls, and each method call must be identified by a -// consumer project identity. Use this rule to allow/disallow unregistered -// calls. Example of an API that wants to allow unregistered calls for entire -// service. usage: rules: - selector: "*" allow_unregistered_calls: true -// Example of a method that wants to allow unregistered calls. usage: rules: - -// selector: "google.example.library.v1.LibraryService.CreateBook" -// allow_unregistered_calls: true +// UsageRule: Usage configuration rules for the service. type UsageRule struct { - // AllowUnregisteredCalls: If true, the selected method allows unregistered - // calls, e.g. calls that don't identify any user or application. + // AllowUnregisteredCalls: Use this rule to configure unregistered calls for + // the service. Unregistered calls are calls that do not contain consumer + // project identity. (Example: calls that do not contain an API key). WARNING: + // By default, API methods do not allow unregistered calls, and each method + // call must be identified by a consumer project identity. AllowUnregisteredCalls bool `json:"allowUnregisteredCalls,omitempty"` // Selector: Selects the methods to which this rule applies. Use '*' to // indicate all methods in all APIs. Refer to selector for syntax details. diff --git a/servicenetworking/v1/servicenetworking-api.json b/servicenetworking/v1/servicenetworking-api.json index 8c5f912f071..647304d93cf 100644 --- a/servicenetworking/v1/servicenetworking-api.json +++ b/servicenetworking/v1/servicenetworking-api.json @@ -1029,7 +1029,7 @@ } } }, - "revision": "20250218", + "revision": "20250302", "rootUrl": "https://servicenetworking.googleapis.com/", "schemas": { "AddDnsRecordSetMetadata": { @@ -4099,11 +4099,11 @@ "type": "object" }, "UsageRule": { - "description": "Usage configuration rules for the service. NOTE: Under development. Use this rule to configure unregistered calls for the service. Unregistered calls are calls that do not contain consumer project identity. (Example: calls that do not contain an API key). By default, API methods do not allow unregistered calls, and each method call must be identified by a consumer project identity. Use this rule to allow/disallow unregistered calls. Example of an API that wants to allow unregistered calls for entire service. usage: rules: - selector: \"*\" allow_unregistered_calls: true Example of a method that wants to allow unregistered calls. usage: rules: - selector: \"google.example.library.v1.LibraryService.CreateBook\" allow_unregistered_calls: true", + "description": "Usage configuration rules for the service.", "id": "UsageRule", "properties": { "allowUnregisteredCalls": { - "description": "If true, the selected method allows unregistered calls, e.g. calls that don't identify any user or application.", + "description": " Use this rule to configure unregistered calls for the service. Unregistered calls are calls that do not contain consumer project identity. (Example: calls that do not contain an API key). WARNING: By default, API methods do not allow unregistered calls, and each method call must be identified by a consumer project identity.", "type": "boolean" }, "selector": { @@ -4174,7 +4174,8 @@ "RANGES_NOT_RESERVED", "RANGES_DELETED_LATER", "COMPUTE_API_NOT_ENABLED", - "USE_PERMISSION_NOT_FOUND" + "USE_PERMISSION_NOT_FOUND", + "SN_SERVICE_AGENT_PERMISSION_DENIED_ON_CONSUMER_PROJECT" ], "enumDescriptions": [ "", @@ -4191,7 +4192,8 @@ "The IP ranges were not reserved.", "The IP ranges were reserved but deleted later.", "The consumer project does not have the compute api enabled.", - "The consumer project does not have the permission from the host project." + "The consumer project does not have the permission from the host project.", + "The SN service agent {service-@service-networking.iam.gserviceaccount.com} does not have the SN service agent role on the consumer project." ], "type": "string" } diff --git a/servicenetworking/v1/servicenetworking-gen.go b/servicenetworking/v1/servicenetworking-gen.go index 106b0db7621..6e6ed304061 100644 --- a/servicenetworking/v1/servicenetworking-gen.go +++ b/servicenetworking/v1/servicenetworking-gen.go @@ -4810,20 +4810,13 @@ func (s Usage) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UsageRule: Usage configuration rules for the service. NOTE: Under -// development. Use this rule to configure unregistered calls for the service. -// Unregistered calls are calls that do not contain consumer project identity. -// (Example: calls that do not contain an API key). By default, API methods do -// not allow unregistered calls, and each method call must be identified by a -// consumer project identity. Use this rule to allow/disallow unregistered -// calls. Example of an API that wants to allow unregistered calls for entire -// service. usage: rules: - selector: "*" allow_unregistered_calls: true -// Example of a method that wants to allow unregistered calls. usage: rules: - -// selector: "google.example.library.v1.LibraryService.CreateBook" -// allow_unregistered_calls: true +// UsageRule: Usage configuration rules for the service. type UsageRule struct { - // AllowUnregisteredCalls: If true, the selected method allows unregistered - // calls, e.g. calls that don't identify any user or application. + // AllowUnregisteredCalls: Use this rule to configure unregistered calls for + // the service. Unregistered calls are calls that do not contain consumer + // project identity. (Example: calls that do not contain an API key). WARNING: + // By default, API methods do not allow unregistered calls, and each method + // call must be identified by a consumer project identity. AllowUnregisteredCalls bool `json:"allowUnregisteredCalls,omitempty"` // Selector: Selects the methods to which this rule applies. Use '*' to // indicate all methods in all APIs. Refer to selector for syntax details. @@ -4931,6 +4924,9 @@ type ValidateConsumerConfigResponse struct { // api enabled. // "USE_PERMISSION_NOT_FOUND" - The consumer project does not have the // permission from the host project. + // "SN_SERVICE_AGENT_PERMISSION_DENIED_ON_CONSUMER_PROJECT" - The SN service + // agent {service-@service-networking.iam.gserviceaccount.com} does not have + // the SN service agent role on the consumer project. ValidationError string `json:"validationError,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. diff --git a/servicenetworking/v1beta/servicenetworking-api.json b/servicenetworking/v1beta/servicenetworking-api.json index 26da9ae8f34..096d4304c1d 100644 --- a/servicenetworking/v1beta/servicenetworking-api.json +++ b/servicenetworking/v1beta/servicenetworking-api.json @@ -307,7 +307,7 @@ } } }, - "revision": "20250218", + "revision": "20250302", "rootUrl": "https://servicenetworking.googleapis.com/", "schemas": { "AddDnsRecordSetMetadata": { @@ -2994,11 +2994,11 @@ "type": "object" }, "UsageRule": { - "description": "Usage configuration rules for the service. NOTE: Under development. Use this rule to configure unregistered calls for the service. Unregistered calls are calls that do not contain consumer project identity. (Example: calls that do not contain an API key). By default, API methods do not allow unregistered calls, and each method call must be identified by a consumer project identity. Use this rule to allow/disallow unregistered calls. Example of an API that wants to allow unregistered calls for entire service. usage: rules: - selector: \"*\" allow_unregistered_calls: true Example of a method that wants to allow unregistered calls. usage: rules: - selector: \"google.example.library.v1.LibraryService.CreateBook\" allow_unregistered_calls: true", + "description": "Usage configuration rules for the service.", "id": "UsageRule", "properties": { "allowUnregisteredCalls": { - "description": "If true, the selected method allows unregistered calls, e.g. calls that don't identify any user or application.", + "description": " Use this rule to configure unregistered calls for the service. Unregistered calls are calls that do not contain consumer project identity. (Example: calls that do not contain an API key). WARNING: By default, API methods do not allow unregistered calls, and each method call must be identified by a consumer project identity.", "type": "boolean" }, "selector": { diff --git a/servicenetworking/v1beta/servicenetworking-gen.go b/servicenetworking/v1beta/servicenetworking-gen.go index 54947f03c66..ad77b519fa5 100644 --- a/servicenetworking/v1beta/servicenetworking-gen.go +++ b/servicenetworking/v1beta/servicenetworking-gen.go @@ -4056,20 +4056,13 @@ func (s Usage) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UsageRule: Usage configuration rules for the service. NOTE: Under -// development. Use this rule to configure unregistered calls for the service. -// Unregistered calls are calls that do not contain consumer project identity. -// (Example: calls that do not contain an API key). By default, API methods do -// not allow unregistered calls, and each method call must be identified by a -// consumer project identity. Use this rule to allow/disallow unregistered -// calls. Example of an API that wants to allow unregistered calls for entire -// service. usage: rules: - selector: "*" allow_unregistered_calls: true -// Example of a method that wants to allow unregistered calls. usage: rules: - -// selector: "google.example.library.v1.LibraryService.CreateBook" -// allow_unregistered_calls: true +// UsageRule: Usage configuration rules for the service. type UsageRule struct { - // AllowUnregisteredCalls: If true, the selected method allows unregistered - // calls, e.g. calls that don't identify any user or application. + // AllowUnregisteredCalls: Use this rule to configure unregistered calls for + // the service. Unregistered calls are calls that do not contain consumer + // project identity. (Example: calls that do not contain an API key). WARNING: + // By default, API methods do not allow unregistered calls, and each method + // call must be identified by a consumer project identity. AllowUnregisteredCalls bool `json:"allowUnregisteredCalls,omitempty"` // Selector: Selects the methods to which this rule applies. Use '*' to // indicate all methods in all APIs. Refer to selector for syntax details. diff --git a/solar/v1/solar-api.json b/solar/v1/solar-api.json index bfd24e5b41c..a6f7ae31dc1 100644 --- a/solar/v1/solar-api.json +++ b/solar/v1/solar-api.json @@ -108,7 +108,7 @@ "buildingInsights": { "methods": { "findClosest": { - "description": "Locates the closest building to a query point. Returns an error with code `NOT_FOUND` if there are no buildings within approximately 50m of the query point.", + "description": "Locates the building whose centroid is closest to a query point. Returns an error with code `NOT_FOUND` if there are no buildings within approximately 50m of the query point.", "flatPath": "v1/buildingInsights:findClosest", "httpMethod": "GET", "id": "solar.buildingInsights.findClosest", @@ -299,7 +299,7 @@ } } }, - "revision": "20241211", + "revision": "20250302", "rootUrl": "https://solar.googleapis.com/", "schemas": { "BuildingInsights": { diff --git a/solar/v1/solar-gen.go b/solar/v1/solar-gen.go index b81873eeeeb..bcff4be31ac 100644 --- a/solar/v1/solar-gen.go +++ b/solar/v1/solar-gen.go @@ -1210,9 +1210,9 @@ type BuildingInsightsFindClosestCall struct { header_ http.Header } -// FindClosest: Locates the closest building to a query point. Returns an error -// with code `NOT_FOUND` if there are no buildings within approximately 50m of -// the query point. +// FindClosest: Locates the building whose centroid is closest to a query +// point. Returns an error with code `NOT_FOUND` if there are no buildings +// within approximately 50m of the query point. func (r *BuildingInsightsService) FindClosest() *BuildingInsightsFindClosestCall { c := &BuildingInsightsFindClosestCall{s: r.s, urlParams_: make(gensupport.URLParams)} return c diff --git a/tasks/v1/tasks-api.json b/tasks/v1/tasks-api.json index 08812a2772b..01d2b390b9c 100644 --- a/tasks/v1/tasks-api.json +++ b/tasks/v1/tasks-api.json @@ -182,7 +182,7 @@ "parameterOrder": [], "parameters": { "maxResults": { - "description": "Maximum number of task lists returned on one page. Optional. The default is 20 (max allowed: 100).", + "description": "Maximum number of task lists returned on one page. Optional. The default is 1000 (max allowed: 1000).", "format": "int32", "location": "query", "type": "integer" @@ -470,17 +470,17 @@ ], "parameters": { "destinationTasklist": { - "description": "Optional. Destination task list identifier. If set, the task is moved from tasklist to the destinationTasklist list. Otherwise the task is moved within its current list. Recurrent tasks cannot currently be moved between lists. Optional.", + "description": "Optional. Destination task list identifier. If set, the task is moved from tasklist to the destinationTasklist list. Otherwise the task is moved within its current list. Recurrent tasks cannot currently be moved between lists.", "location": "query", "type": "string" }, "parent": { - "description": "New parent task identifier. If the task is moved to the top level, this parameter is omitted. The task set as parent must exist in the task list and can not be hidden. Assigned tasks can not be set as parent task (have subtasks) or be moved under a parent task (become subtasks). Optional.", + "description": "Optional. New parent task identifier. If the task is moved to the top level, this parameter is omitted. The task set as parent must exist in the task list and can not be hidden. Exceptions: 1. Assigned tasks can not be set as parent task (have subtasks) or be moved under a parent task (become subtasks). 2. Tasks that are both completed and hidden cannot be nested, so the parent field must be empty.", "location": "query", "type": "string" }, "previous": { - "description": "New previous sibling task identifier. If the task is moved to the first position among its siblings, this parameter is omitted. The task set as previous must exist in the task list and can not be hidden. Optional.", + "description": "Optional. New previous sibling task identifier. If the task is moved to the first position among its siblings, this parameter is omitted. The task set as previous must exist in the task list and can not be hidden. Exceptions: 1. Tasks that are both completed and hidden can only be moved to position 0, so the previous field must be empty.", "location": "query", "type": "string" }, @@ -576,7 +576,7 @@ } } }, - "revision": "20250105", + "revision": "20250302", "rootUrl": "https://tasks.googleapis.com/", "schemas": { "AssignmentInfo": { diff --git a/tasks/v1/tasks-gen.go b/tasks/v1/tasks-gen.go index c78f1b8c658..a78e55e1e8a 100644 --- a/tasks/v1/tasks-gen.go +++ b/tasks/v1/tasks-gen.go @@ -778,7 +778,7 @@ func (r *TasklistsService) List() *TasklistsListCall { } // MaxResults sets the optional parameter "maxResults": Maximum number of task -// lists returned on one page. The default is 20 (max allowed: 100). +// lists returned on one page. The default is 1000 (max allowed: 1000). func (c *TasklistsListCall) MaxResults(maxResults int64) *TasklistsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -1742,7 +1742,7 @@ func (r *TasksService) Move(tasklistid string, taskid string) *TasksMoveCall { // DestinationTasklist sets the optional parameter "destinationTasklist": // Destination task list identifier. If set, the task is moved from tasklist to // the destinationTasklist list. Otherwise the task is moved within its current -// list. Recurrent tasks cannot currently be moved between lists. Optional. +// list. Recurrent tasks cannot currently be moved between lists. func (c *TasksMoveCall) DestinationTasklist(destinationTasklist string) *TasksMoveCall { c.urlParams_.Set("destinationTasklist", destinationTasklist) return c @@ -1750,9 +1750,10 @@ func (c *TasksMoveCall) DestinationTasklist(destinationTasklist string) *TasksMo // Parent sets the optional parameter "parent": New parent task identifier. If // the task is moved to the top level, this parameter is omitted. The task set -// as parent must exist in the task list and can not be hidden. Assigned tasks -// can not be set as parent task (have subtasks) or be moved under a parent -// task (become subtasks). +// as parent must exist in the task list and can not be hidden. Exceptions: 1. +// Assigned tasks can not be set as parent task (have subtasks) or be moved +// under a parent task (become subtasks). 2. Tasks that are both completed and +// hidden cannot be nested, so the parent field must be empty. func (c *TasksMoveCall) Parent(parent string) *TasksMoveCall { c.urlParams_.Set("parent", parent) return c @@ -1761,7 +1762,8 @@ func (c *TasksMoveCall) Parent(parent string) *TasksMoveCall { // Previous sets the optional parameter "previous": New previous sibling task // identifier. If the task is moved to the first position among its siblings, // this parameter is omitted. The task set as previous must exist in the task -// list and can not be hidden. +// list and can not be hidden. Exceptions: 1. Tasks that are both completed and +// hidden can only be moved to position 0, so the previous field must be empty. func (c *TasksMoveCall) Previous(previous string) *TasksMoveCall { c.urlParams_.Set("previous", previous) return c diff --git a/verifiedaccess/v2/verifiedaccess-api.json b/verifiedaccess/v2/verifiedaccess-api.json index 5637a6fa092..b708dc950be 100644 --- a/verifiedaccess/v2/verifiedaccess-api.json +++ b/verifiedaccess/v2/verifiedaccess-api.json @@ -146,9 +146,33 @@ } } }, - "revision": "20241112", + "revision": "20250225", "rootUrl": "https://verifiedaccess.googleapis.com/", "schemas": { + "Antivirus": { + "description": "Antivirus information on a device.", + "id": "Antivirus", + "properties": { + "state": { + "description": "Output only. The state of the antivirus on the device. Introduced in Chrome M136.", + "enum": [ + "STATE_UNSPECIFIED", + "MISSING", + "DISABLED", + "ENABLED" + ], + "enumDescriptions": [ + "Unspecified.", + "No antivirus was detected on the device.", + "At least one antivirus was installed on the device but none was enabled.", + "At least one antivirus was enabled on the device." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "Challenge": { "description": "Result message for VerifiedAccess.GenerateChallenge.", "id": "Challenge", @@ -166,11 +190,13 @@ "id": "CrowdStrikeAgent", "properties": { "agentId": { - "description": "The Agent ID of the Crowdstrike agent.", + "description": "Output only. The Agent ID of the Crowdstrike agent.", + "readOnly": true, "type": "string" }, "customerId": { - "description": "The Customer ID to which the agent belongs to.", + "description": "Output only. The Customer ID to which the agent belongs to.", + "readOnly": true, "type": "string" } }, @@ -181,46 +207,60 @@ "id": "DeviceSignals", "properties": { "allowScreenLock": { - "description": "Value of the AllowScreenLock policy on the device. See https://chromeenterprise.google/policies/?policy=AllowScreenLock for more details. Available on ChromeOS only.", + "description": "Output only. Value of the AllowScreenLock policy on the device. See https://chromeenterprise.google/policies/?policy=AllowScreenLock for more details. Available on ChromeOS only.", + "readOnly": true, "type": "boolean" }, + "antivirus": { + "$ref": "Antivirus", + "description": "Output only. Information about Antivirus software on the device. Available on Windows only.", + "readOnly": true + }, "browserVersion": { - "description": "Current version of the Chrome browser which generated this set of signals. Example value: \"107.0.5286.0\".", + "description": "Output only. Current version of the Chrome browser which generated this set of signals. Example value: \"107.0.5286.0\".", + "readOnly": true, "type": "string" }, "builtInDnsClientEnabled": { - "description": "Whether Chrome's built-in DNS client is used. The OS DNS client is otherwise used. This value may be controlled by an enterprise policy: https://chromeenterprise.google/policies/#BuiltInDnsClientEnabled.", + "description": "Output only. Whether Chrome's built-in DNS client is used. The OS DNS client is otherwise used. This value may be controlled by an enterprise policy: https://chromeenterprise.google/policies/#BuiltInDnsClientEnabled.", + "readOnly": true, "type": "boolean" }, "chromeRemoteDesktopAppBlocked": { - "description": "Whether access to the Chrome Remote Desktop application is blocked via a policy.", + "description": "Output only. Whether access to the Chrome Remote Desktop application is blocked via a policy.", + "readOnly": true, "type": "boolean" }, "crowdStrikeAgent": { "$ref": "CrowdStrikeAgent", - "description": "Crowdstrike agent properties installed on the device, if any. Available on Windows and MacOS only." + "description": "Output only. Crowdstrike agent properties installed on the device, if any. Available on Windows and MacOS only.", + "readOnly": true }, "deviceAffiliationIds": { - "description": "Affiliation IDs of the organizations that are affiliated with the organization that is currently managing the device. When the sets of device and profile affiliation IDs overlap, it means that the organizations managing the device and user are affiliated. To learn more about user affiliation, visit https://support.google.com/chrome/a/answer/12801245?ref_topic=9027936.", + "description": "Output only. Affiliation IDs of the organizations that are affiliated with the organization that is currently managing the device. When the sets of device and profile affiliation IDs overlap, it means that the organizations managing the device and user are affiliated. To learn more about user affiliation, visit https://support.google.com/chrome/a/answer/12801245?ref_topic=9027936.", "items": { "type": "string" }, + "readOnly": true, "type": "array" }, "deviceEnrollmentDomain": { - "description": "Enrollment domain of the customer which is currently managing the device.", + "description": "Output only. Enrollment domain of the customer which is currently managing the device.", + "readOnly": true, "type": "string" }, "deviceManufacturer": { - "description": "The name of the device's manufacturer.", + "description": "Output only. The name of the device's manufacturer.", + "readOnly": true, "type": "string" }, "deviceModel": { - "description": "The name of the device's model.", + "description": "Output only. The name of the device's model.", + "readOnly": true, "type": "string" }, "diskEncryption": { - "description": "The encryption state of the disk. On ChromeOS, the main disk is always ENCRYPTED.", + "description": "Output only. The encryption state of the disk. On ChromeOS, the main disk is always ENCRYPTED.", "enum": [ "DISK_ENCRYPTION_UNSPECIFIED", "DISK_ENCRYPTION_UNKNOWN", @@ -233,10 +273,12 @@ "The main disk is not encrypted.", "The main disk is encrypted." ], + "readOnly": true, "type": "string" }, "displayName": { - "description": "The display name of the device, as defined by the user.", + "description": "Output only. The display name of the device, as defined by the user.", + "readOnly": true, "type": "string" }, "hostname": { @@ -244,28 +286,31 @@ "type": "string" }, "imei": { - "description": "International Mobile Equipment Identity (IMEI) of the device. Available on ChromeOS only.", + "description": "Output only. International Mobile Equipment Identity (IMEI) of the device. Available on ChromeOS only.", "items": { "type": "string" }, + "readOnly": true, "type": "array" }, "macAddresses": { - "description": "MAC addresses of the device.", + "description": "Output only. MAC addresses of the device.", "items": { "type": "string" }, + "readOnly": true, "type": "array" }, "meid": { - "description": "Mobile Equipment Identifier (MEID) of the device. Available on ChromeOS only.", + "description": "Output only. Mobile Equipment Identifier (MEID) of the device. Available on ChromeOS only.", "items": { "type": "string" }, + "readOnly": true, "type": "array" }, "operatingSystem": { - "description": "The type of the Operating System currently running on the device.", + "description": "Output only. The type of the Operating System currently running on the device.", "enum": [ "OPERATING_SYSTEM_UNSPECIFIED", "CHROME_OS", @@ -282,10 +327,11 @@ "Mac Os X.", "Linux" ], + "readOnly": true, "type": "string" }, "osFirewall": { - "description": "The state of the OS level firewall. On ChromeOS, the value will always be ENABLED on regular devices and UNKNOWN on devices in developer mode. Support for MacOS 15 (Sequoia) and later has been introduced in Chrome M131.", + "description": "Output only. The state of the OS level firewall. On ChromeOS, the value will always be ENABLED on regular devices and UNKNOWN on devices in developer mode. Support for MacOS 15 (Sequoia) and later has been introduced in Chrome M131.", "enum": [ "OS_FIREWALL_UNSPECIFIED", "OS_FIREWALL_UNKNOWN", @@ -298,14 +344,16 @@ "The OS firewall is disabled.", "The OS firewall is enabled." ], + "readOnly": true, "type": "string" }, "osVersion": { - "description": "The current version of the Operating System. On Windows and linux, the value will also include the security patch information.", + "description": "Output only. The current version of the Operating System. On Windows and linux, the value will also include the security patch information.", + "readOnly": true, "type": "string" }, "passwordProtectionWarningTrigger": { - "description": "Whether the Password Protection Warning feature is enabled or not. Password protection alerts users when they reuse their protected password on potentially suspicious sites. This setting is controlled by an enterprise policy: https://chromeenterprise.google/policies/#PasswordProtectionWarningTrigger. Note that the policy unset does not have the same effects as having the policy explicitly set to `PASSWORD_PROTECTION_OFF`.", + "description": "Output only. Whether the Password Protection Warning feature is enabled or not. Password protection alerts users when they reuse their protected password on potentially suspicious sites. This setting is controlled by an enterprise policy: https://chromeenterprise.google/policies/#PasswordProtectionWarningTrigger. Note that the policy unset does not have the same effects as having the policy explicitly set to `PASSWORD_PROTECTION_OFF`.", "enum": [ "PASSWORD_PROTECTION_WARNING_TRIGGER_UNSPECIFIED", "POLICY_UNSET", @@ -320,21 +368,24 @@ "Password protection warning is shown if a protected password is re-used.", "Password protection warning is shown if a protected password is re-used on a known phishing website." ], + "readOnly": true, "type": "string" }, "profileAffiliationIds": { - "description": "Affiliation IDs of the organizations that are affiliated with the organization that is currently managing the Chrome Profile’s user or ChromeOS user.", + "description": "Output only. Affiliation IDs of the organizations that are affiliated with the organization that is currently managing the Chrome Profile’s user or ChromeOS user.", "items": { "type": "string" }, + "readOnly": true, "type": "array" }, "profileEnrollmentDomain": { - "description": "Enrollment domain of the customer which is currently managing the profile.", + "description": "Output only. Enrollment domain of the customer which is currently managing the profile.", + "readOnly": true, "type": "string" }, "realtimeUrlCheckMode": { - "description": "Whether Enterprise-grade (i.e. custom) unsafe URL scanning is enabled or not. This setting may be controlled by an enterprise policy: https://chromeenterprise.google/policies/#EnterpriseRealTimeUrlCheckMode", + "description": "Output only. Whether Enterprise-grade (i.e. custom) unsafe URL scanning is enabled or not. This setting may be controlled by an enterprise policy: https://chromeenterprise.google/policies/#EnterpriseRealTimeUrlCheckMode", "enum": [ "REALTIME_URL_CHECK_MODE_UNSPECIFIED", "REALTIME_URL_CHECK_MODE_DISABLED", @@ -345,10 +396,11 @@ "Disabled. Consumer Safe Browsing checks are applied.", "Realtime check for main frame URLs is enabled." ], + "readOnly": true, "type": "string" }, "safeBrowsingProtectionLevel": { - "description": "Safe Browsing Protection Level. That setting may be controlled by an enterprise policy: https://chromeenterprise.google/policies/#SafeBrowsingProtectionLevel.", + "description": "Output only. Safe Browsing Protection Level. That setting may be controlled by an enterprise policy: https://chromeenterprise.google/policies/#SafeBrowsingProtectionLevel.", "enum": [ "SAFE_BROWSING_PROTECTION_LEVEL_UNSPECIFIED", "INACTIVE", @@ -361,10 +413,11 @@ "Safe Browsing is active in the standard mode.", "Safe Browsing is active in the enhanced mode." ], + "readOnly": true, "type": "string" }, "screenLockSecured": { - "description": "The state of the Screen Lock password protection. On ChromeOS, this value will always be ENABLED as there is not way to disable requiring a password or pin when unlocking the device.", + "description": "Output only. The state of the Screen Lock password protection. On ChromeOS, this value will always be ENABLED as there is not way to disable requiring a password or pin when unlocking the device.", "enum": [ "SCREEN_LOCK_SECURED_UNSPECIFIED", "SCREEN_LOCK_SECURED_UNKNOWN", @@ -377,10 +430,11 @@ "The Screen Lock is not password-protected.", "The Screen Lock is password-protected." ], + "readOnly": true, "type": "string" }, "secureBootMode": { - "description": "Whether the device's startup software has its Secure Boot feature enabled. Available on Windows only.", + "description": "Output only. Whether the device's startup software has its Secure Boot feature enabled. Available on Windows only.", "enum": [ "SECURE_BOOT_MODE_UNSPECIFIED", "SECURE_BOOT_MODE_UNKNOWN", @@ -393,14 +447,17 @@ "Secure Boot was disabled on the startup software.", "Secure Boot was enabled on the startup software." ], + "readOnly": true, "type": "string" }, "serialNumber": { - "description": "The serial number of the device. On Windows, this represents the BIOS's serial number. Not available on most Linux distributions.", + "description": "Output only. The serial number of the device. On Windows, this represents the BIOS's serial number. Not available on most Linux distributions.", + "readOnly": true, "type": "string" }, "siteIsolationEnabled": { - "description": "Whether the Site Isolation (a.k.a Site Per Process) setting is enabled. That setting may be controlled by an enterprise policy: https://chromeenterprise.google/policies/#SitePerProcess", + "description": "Output only. Whether the Site Isolation (a.k.a Site Per Process) setting is enabled. That setting may be controlled by an enterprise policy: https://chromeenterprise.google/policies/#SitePerProcess", + "readOnly": true, "type": "boolean" }, "systemDnsServers": { @@ -411,11 +468,12 @@ "type": "array" }, "thirdPartyBlockingEnabled": { - "description": "Whether Chrome is blocking third-party software injection or not. This setting may be controlled by an enterprise policy: https://chromeenterprise.google/policies/?policy=ThirdPartyBlockingEnabled. Available on Windows only.", + "description": "Output only. Whether Chrome is blocking third-party software injection or not. This setting may be controlled by an enterprise policy: https://chromeenterprise.google/policies/?policy=ThirdPartyBlockingEnabled. Available on Windows only.", + "readOnly": true, "type": "boolean" }, "trigger": { - "description": "The trigger which generated this set of signals.", + "description": "Output only. The trigger which generated this set of signals.", "enum": [ "TRIGGER_UNSPECIFIED", "TRIGGER_BROWSER_NAVIGATION", @@ -426,14 +484,17 @@ "When navigating to an URL inside a browser.", "When signing into an account on the ChromeOS login screen." ], + "readOnly": true, "type": "string" }, "windowsMachineDomain": { - "description": "Windows domain that the current machine has joined. Available on Windows only.", + "description": "Output only. Windows domain that the current machine has joined. Available on Windows only.", + "readOnly": true, "type": "string" }, "windowsUserDomain": { - "description": "Windows domain for the current OS user. Available on Windows only.", + "description": "Output only. Windows domain for the current OS user. Available on Windows only.", + "readOnly": true, "type": "string" } }, @@ -466,31 +527,37 @@ "id": "VerifyChallengeResponseResult", "properties": { "attestedDeviceId": { - "description": "Attested device ID (ADID).", + "description": "Output only. Attested device ID (ADID).", + "readOnly": true, "type": "string" }, "customerId": { - "description": "Unique customer id that this device belongs to, as defined by the Google Admin SDK at https://developers.google.com/admin-sdk/directory/v1/guides/manage-customers", + "description": "Output only. Unique customer id that this device belongs to, as defined by the Google Admin SDK at https://developers.google.com/admin-sdk/directory/v1/guides/manage-customers", + "readOnly": true, "type": "string" }, "deviceEnrollmentId": { - "description": "Device enrollment id for ChromeOS devices.", + "description": "Output only. Device enrollment id for ChromeOS devices.", + "readOnly": true, "type": "string" }, "devicePermanentId": { - "description": "Device permanent id is returned in this field (for the machine response only).", + "description": "Output only. Device permanent id is returned in this field (for the machine response only).", + "readOnly": true, "type": "string" }, "deviceSignal": { - "description": "Deprecated. Device signal in json string representation. Prefer using `device_signals` instead.", + "description": "Output only. Deprecated. Device signal in json string representation. Prefer using `device_signals` instead.", + "readOnly": true, "type": "string" }, "deviceSignals": { "$ref": "DeviceSignals", - "description": "Device signals." + "description": "Output only. Device signals.", + "readOnly": true }, "keyTrustLevel": { - "description": "Device attested key trust level.", + "description": "Output only. Device attested key trust level.", "enum": [ "KEY_TRUST_LEVEL_UNSPECIFIED", "CHROME_OS_VERIFIED_MODE", @@ -507,14 +574,16 @@ "Chrome Browser with the key stored at OS level.", "Chrome Browser without an attestation key." ], + "readOnly": true, "type": "string" }, "profileCustomerId": { - "description": "Unique customer id that this profile belongs to, as defined by the Google Admin SDK at https://developers.google.com/admin-sdk/directory/v1/guides/manage-customers", + "description": "Output only. Unique customer id that this profile belongs to, as defined by the Google Admin SDK at https://developers.google.com/admin-sdk/directory/v1/guides/manage-customers", + "readOnly": true, "type": "string" }, "profileKeyTrustLevel": { - "description": "Profile attested key trust level.", + "description": "Output only. Profile attested key trust level.", "enum": [ "KEY_TRUST_LEVEL_UNSPECIFIED", "CHROME_OS_VERIFIED_MODE", @@ -531,18 +600,27 @@ "Chrome Browser with the key stored at OS level.", "Chrome Browser without an attestation key." ], + "readOnly": true, + "type": "string" + }, + "profilePermanentId": { + "description": "Output only. The unique server-side ID of a profile on the device.", + "readOnly": true, "type": "string" }, "signedPublicKeyAndChallenge": { - "description": "Certificate Signing Request (in the SPKAC format, base64 encoded) is returned in this field. This field will be set only if device has included CSR in its challenge response. (the option to include CSR is now available for both user and machine responses)", + "description": "Output only. Certificate Signing Request (in the SPKAC format, base64 encoded) is returned in this field. This field will be set only if device has included CSR in its challenge response. (the option to include CSR is now available for both user and machine responses)", + "readOnly": true, "type": "string" }, "virtualDeviceId": { - "description": "Virtual device id of the device. The definition of virtual device id is platform-specific.", + "description": "Output only. Virtual device id of the device. The definition of virtual device id is platform-specific.", + "readOnly": true, "type": "string" }, "virtualProfileId": { - "description": "The ID of a profile on the device.", + "description": "Output only. The client-provided ID of a profile on the device.", + "readOnly": true, "type": "string" } }, diff --git a/verifiedaccess/v2/verifiedaccess-gen.go b/verifiedaccess/v2/verifiedaccess-gen.go index 892d5dbb315..0735c5aa4bf 100644 --- a/verifiedaccess/v2/verifiedaccess-gen.go +++ b/verifiedaccess/v2/verifiedaccess-gen.go @@ -165,6 +165,36 @@ type ChallengeService struct { s *Service } +// Antivirus: Antivirus information on a device. +type Antivirus struct { + // State: Output only. The state of the antivirus on the device. Introduced in + // Chrome M136. + // + // Possible values: + // "STATE_UNSPECIFIED" - Unspecified. + // "MISSING" - No antivirus was detected on the device. + // "DISABLED" - At least one antivirus was installed on the device but none + // was enabled. + // "ENABLED" - At least one antivirus was enabled on the device. + State string `json:"state,omitempty"` + // ForceSendFields is a list of field names (e.g. "State") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "State") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s Antivirus) MarshalJSON() ([]byte, error) { + type NoMethod Antivirus + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Challenge: Result message for VerifiedAccess.GenerateChallenge. type Challenge struct { // Challenge: Generated challenge, the bytes representation of SignedData. @@ -192,9 +222,9 @@ func (s Challenge) MarshalJSON() ([]byte, error) { // CrowdStrikeAgent: Properties of the CrowdStrike agent installed on a device. type CrowdStrikeAgent struct { - // AgentId: The Agent ID of the Crowdstrike agent. + // AgentId: Output only. The Agent ID of the Crowdstrike agent. AgentId string `json:"agentId,omitempty"` - // CustomerId: The Customer ID to which the agent belongs to. + // CustomerId: Output only. The Customer ID to which the agent belongs to. CustomerId string `json:"customerId,omitempty"` // ForceSendFields is a list of field names (e.g. "AgentId") to unconditionally // include in API requests. By default, fields with empty or default values are @@ -217,40 +247,43 @@ func (s CrowdStrikeAgent) MarshalJSON() ([]byte, error) { // DeviceSignals: The device signals as reported by Chrome. Unless otherwise // specified, signals are available on all platforms. type DeviceSignals struct { - // AllowScreenLock: Value of the AllowScreenLock policy on the device. See - // https://chromeenterprise.google/policies/?policy=AllowScreenLock for more - // details. Available on ChromeOS only. + // AllowScreenLock: Output only. Value of the AllowScreenLock policy on the + // device. See https://chromeenterprise.google/policies/?policy=AllowScreenLock + // for more details. Available on ChromeOS only. AllowScreenLock bool `json:"allowScreenLock,omitempty"` - // BrowserVersion: Current version of the Chrome browser which generated this - // set of signals. Example value: "107.0.5286.0". + // Antivirus: Output only. Information about Antivirus software on the device. + // Available on Windows only. + Antivirus *Antivirus `json:"antivirus,omitempty"` + // BrowserVersion: Output only. Current version of the Chrome browser which + // generated this set of signals. Example value: "107.0.5286.0". BrowserVersion string `json:"browserVersion,omitempty"` - // BuiltInDnsClientEnabled: Whether Chrome's built-in DNS client is used. The - // OS DNS client is otherwise used. This value may be controlled by an - // enterprise policy: + // BuiltInDnsClientEnabled: Output only. Whether Chrome's built-in DNS client + // is used. The OS DNS client is otherwise used. This value may be controlled + // by an enterprise policy: // https://chromeenterprise.google/policies/#BuiltInDnsClientEnabled. BuiltInDnsClientEnabled bool `json:"builtInDnsClientEnabled,omitempty"` - // ChromeRemoteDesktopAppBlocked: Whether access to the Chrome Remote Desktop - // application is blocked via a policy. + // ChromeRemoteDesktopAppBlocked: Output only. Whether access to the Chrome + // Remote Desktop application is blocked via a policy. ChromeRemoteDesktopAppBlocked bool `json:"chromeRemoteDesktopAppBlocked,omitempty"` - // CrowdStrikeAgent: Crowdstrike agent properties installed on the device, if - // any. Available on Windows and MacOS only. + // CrowdStrikeAgent: Output only. Crowdstrike agent properties installed on the + // device, if any. Available on Windows and MacOS only. CrowdStrikeAgent *CrowdStrikeAgent `json:"crowdStrikeAgent,omitempty"` - // DeviceAffiliationIds: Affiliation IDs of the organizations that are - // affiliated with the organization that is currently managing the device. When - // the sets of device and profile affiliation IDs overlap, it means that the - // organizations managing the device and user are affiliated. To learn more + // DeviceAffiliationIds: Output only. Affiliation IDs of the organizations that + // are affiliated with the organization that is currently managing the device. + // When the sets of device and profile affiliation IDs overlap, it means that + // the organizations managing the device and user are affiliated. To learn more // about user affiliation, visit // https://support.google.com/chrome/a/answer/12801245?ref_topic=9027936. DeviceAffiliationIds []string `json:"deviceAffiliationIds,omitempty"` - // DeviceEnrollmentDomain: Enrollment domain of the customer which is currently - // managing the device. + // DeviceEnrollmentDomain: Output only. Enrollment domain of the customer which + // is currently managing the device. DeviceEnrollmentDomain string `json:"deviceEnrollmentDomain,omitempty"` - // DeviceManufacturer: The name of the device's manufacturer. + // DeviceManufacturer: Output only. The name of the device's manufacturer. DeviceManufacturer string `json:"deviceManufacturer,omitempty"` - // DeviceModel: The name of the device's model. + // DeviceModel: Output only. The name of the device's model. DeviceModel string `json:"deviceModel,omitempty"` - // DiskEncryption: The encryption state of the disk. On ChromeOS, the main disk - // is always ENCRYPTED. + // DiskEncryption: Output only. The encryption state of the disk. On ChromeOS, + // the main disk is always ENCRYPTED. // // Possible values: // "DISK_ENCRYPTION_UNSPECIFIED" - Unspecified. @@ -259,20 +292,21 @@ type DeviceSignals struct { // "DISK_ENCRYPTION_DISABLED" - The main disk is not encrypted. // "DISK_ENCRYPTION_ENCRYPTED" - The main disk is encrypted. DiskEncryption string `json:"diskEncryption,omitempty"` - // DisplayName: The display name of the device, as defined by the user. + // DisplayName: Output only. The display name of the device, as defined by the + // user. DisplayName string `json:"displayName,omitempty"` // Hostname: Hostname of the device. Hostname string `json:"hostname,omitempty"` - // Imei: International Mobile Equipment Identity (IMEI) of the device. - // Available on ChromeOS only. + // Imei: Output only. International Mobile Equipment Identity (IMEI) of the + // device. Available on ChromeOS only. Imei []string `json:"imei,omitempty"` - // MacAddresses: MAC addresses of the device. + // MacAddresses: Output only. MAC addresses of the device. MacAddresses []string `json:"macAddresses,omitempty"` - // Meid: Mobile Equipment Identifier (MEID) of the device. Available on - // ChromeOS only. + // Meid: Output only. Mobile Equipment Identifier (MEID) of the device. + // Available on ChromeOS only. Meid []string `json:"meid,omitempty"` - // OperatingSystem: The type of the Operating System currently running on the - // device. + // OperatingSystem: Output only. The type of the Operating System currently + // running on the device. // // Possible values: // "OPERATING_SYSTEM_UNSPECIFIED" - UNSPECIFIED. @@ -282,10 +316,10 @@ type DeviceSignals struct { // "MAC_OS_X" - Mac Os X. // "LINUX" - Linux OperatingSystem string `json:"operatingSystem,omitempty"` - // OsFirewall: The state of the OS level firewall. On ChromeOS, the value will - // always be ENABLED on regular devices and UNKNOWN on devices in developer - // mode. Support for MacOS 15 (Sequoia) and later has been introduced in Chrome - // M131. + // OsFirewall: Output only. The state of the OS level firewall. On ChromeOS, + // the value will always be ENABLED on regular devices and UNKNOWN on devices + // in developer mode. Support for MacOS 15 (Sequoia) and later has been + // introduced in Chrome M131. // // Possible values: // "OS_FIREWALL_UNSPECIFIED" - Unspecified. @@ -293,13 +327,14 @@ type DeviceSignals struct { // "OS_FIREWALL_DISABLED" - The OS firewall is disabled. // "OS_FIREWALL_ENABLED" - The OS firewall is enabled. OsFirewall string `json:"osFirewall,omitempty"` - // OsVersion: The current version of the Operating System. On Windows and - // linux, the value will also include the security patch information. + // OsVersion: Output only. The current version of the Operating System. On + // Windows and linux, the value will also include the security patch + // information. OsVersion string `json:"osVersion,omitempty"` - // PasswordProtectionWarningTrigger: Whether the Password Protection Warning - // feature is enabled or not. Password protection alerts users when they reuse - // their protected password on potentially suspicious sites. This setting is - // controlled by an enterprise policy: + // PasswordProtectionWarningTrigger: Output only. Whether the Password + // Protection Warning feature is enabled or not. Password protection alerts + // users when they reuse their protected password on potentially suspicious + // sites. This setting is controlled by an enterprise policy: // https://chromeenterprise.google/policies/#PasswordProtectionWarningTrigger. // Note that the policy unset does not have the same effects as having the // policy explicitly set to `PASSWORD_PROTECTION_OFF`. @@ -313,16 +348,16 @@ type DeviceSignals struct { // "PHISHING_REUSE" - Password protection warning is shown if a protected // password is re-used on a known phishing website. PasswordProtectionWarningTrigger string `json:"passwordProtectionWarningTrigger,omitempty"` - // ProfileAffiliationIds: Affiliation IDs of the organizations that are - // affiliated with the organization that is currently managing the Chrome - // Profile’s user or ChromeOS user. + // ProfileAffiliationIds: Output only. Affiliation IDs of the organizations + // that are affiliated with the organization that is currently managing the + // Chrome Profile’s user or ChromeOS user. ProfileAffiliationIds []string `json:"profileAffiliationIds,omitempty"` - // ProfileEnrollmentDomain: Enrollment domain of the customer which is - // currently managing the profile. + // ProfileEnrollmentDomain: Output only. Enrollment domain of the customer + // which is currently managing the profile. ProfileEnrollmentDomain string `json:"profileEnrollmentDomain,omitempty"` - // RealtimeUrlCheckMode: Whether Enterprise-grade (i.e. custom) unsafe URL - // scanning is enabled or not. This setting may be controlled by an enterprise - // policy: + // RealtimeUrlCheckMode: Output only. Whether Enterprise-grade (i.e. custom) + // unsafe URL scanning is enabled or not. This setting may be controlled by an + // enterprise policy: // https://chromeenterprise.google/policies/#EnterpriseRealTimeUrlCheckMode // // Possible values: @@ -332,8 +367,8 @@ type DeviceSignals struct { // "REALTIME_URL_CHECK_MODE_ENABLED_MAIN_FRAME" - Realtime check for main // frame URLs is enabled. RealtimeUrlCheckMode string `json:"realtimeUrlCheckMode,omitempty"` - // SafeBrowsingProtectionLevel: Safe Browsing Protection Level. That setting - // may be controlled by an enterprise policy: + // SafeBrowsingProtectionLevel: Output only. Safe Browsing Protection Level. + // That setting may be controlled by an enterprise policy: // https://chromeenterprise.google/policies/#SafeBrowsingProtectionLevel. // // Possible values: @@ -342,9 +377,9 @@ type DeviceSignals struct { // "STANDARD" - Safe Browsing is active in the standard mode. // "ENHANCED" - Safe Browsing is active in the enhanced mode. SafeBrowsingProtectionLevel string `json:"safeBrowsingProtectionLevel,omitempty"` - // ScreenLockSecured: The state of the Screen Lock password protection. On - // ChromeOS, this value will always be ENABLED as there is not way to disable - // requiring a password or pin when unlocking the device. + // ScreenLockSecured: Output only. The state of the Screen Lock password + // protection. On ChromeOS, this value will always be ENABLED as there is not + // way to disable requiring a password or pin when unlocking the device. // // Possible values: // "SCREEN_LOCK_SECURED_UNSPECIFIED" - Unspecified. @@ -354,8 +389,8 @@ type DeviceSignals struct { // password-protected. // "SCREEN_LOCK_SECURED_ENABLED" - The Screen Lock is password-protected. ScreenLockSecured string `json:"screenLockSecured,omitempty"` - // SecureBootMode: Whether the device's startup software has its Secure Boot - // feature enabled. Available on Windows only. + // SecureBootMode: Output only. Whether the device's startup software has its + // Secure Boot feature enabled. Available on Windows only. // // Possible values: // "SECURE_BOOT_MODE_UNSPECIFIED" - Unspecified. @@ -366,22 +401,24 @@ type DeviceSignals struct { // "SECURE_BOOT_MODE_ENABLED" - Secure Boot was enabled on the startup // software. SecureBootMode string `json:"secureBootMode,omitempty"` - // SerialNumber: The serial number of the device. On Windows, this represents - // the BIOS's serial number. Not available on most Linux distributions. + // SerialNumber: Output only. The serial number of the device. On Windows, this + // represents the BIOS's serial number. Not available on most Linux + // distributions. SerialNumber string `json:"serialNumber,omitempty"` - // SiteIsolationEnabled: Whether the Site Isolation (a.k.a Site Per Process) - // setting is enabled. That setting may be controlled by an enterprise policy: - // https://chromeenterprise.google/policies/#SitePerProcess + // SiteIsolationEnabled: Output only. Whether the Site Isolation (a.k.a Site + // Per Process) setting is enabled. That setting may be controlled by an + // enterprise policy: https://chromeenterprise.google/policies/#SitePerProcess SiteIsolationEnabled bool `json:"siteIsolationEnabled,omitempty"` // SystemDnsServers: List of the addesses of all OS level DNS servers // configured in the device's network settings. SystemDnsServers []string `json:"systemDnsServers,omitempty"` - // ThirdPartyBlockingEnabled: Whether Chrome is blocking third-party software - // injection or not. This setting may be controlled by an enterprise policy: + // ThirdPartyBlockingEnabled: Output only. Whether Chrome is blocking + // third-party software injection or not. This setting may be controlled by an + // enterprise policy: // https://chromeenterprise.google/policies/?policy=ThirdPartyBlockingEnabled. // Available on Windows only. ThirdPartyBlockingEnabled bool `json:"thirdPartyBlockingEnabled,omitempty"` - // Trigger: The trigger which generated this set of signals. + // Trigger: Output only. The trigger which generated this set of signals. // // Possible values: // "TRIGGER_UNSPECIFIED" - Unspecified. @@ -389,11 +426,11 @@ type DeviceSignals struct { // "TRIGGER_LOGIN_SCREEN" - When signing into an account on the ChromeOS // login screen. Trigger string `json:"trigger,omitempty"` - // WindowsMachineDomain: Windows domain that the current machine has joined. - // Available on Windows only. + // WindowsMachineDomain: Output only. Windows domain that the current machine + // has joined. Available on Windows only. WindowsMachineDomain string `json:"windowsMachineDomain,omitempty"` - // WindowsUserDomain: Windows domain for the current OS user. Available on - // Windows only. + // WindowsUserDomain: Output only. Windows domain for the current OS user. + // Available on Windows only. WindowsUserDomain string `json:"windowsUserDomain,omitempty"` // ForceSendFields is a list of field names (e.g. "AllowScreenLock") to // unconditionally include in API requests. By default, fields with empty or @@ -452,23 +489,23 @@ func (s VerifyChallengeResponseRequest) MarshalJSON() ([]byte, error) { // VerifyChallengeResponseResult: Result message for // VerifiedAccess.VerifyChallengeResponse. type VerifyChallengeResponseResult struct { - // AttestedDeviceId: Attested device ID (ADID). + // AttestedDeviceId: Output only. Attested device ID (ADID). AttestedDeviceId string `json:"attestedDeviceId,omitempty"` - // CustomerId: Unique customer id that this device belongs to, as defined by - // the Google Admin SDK at + // CustomerId: Output only. Unique customer id that this device belongs to, as + // defined by the Google Admin SDK at // https://developers.google.com/admin-sdk/directory/v1/guides/manage-customers CustomerId string `json:"customerId,omitempty"` - // DeviceEnrollmentId: Device enrollment id for ChromeOS devices. + // DeviceEnrollmentId: Output only. Device enrollment id for ChromeOS devices. DeviceEnrollmentId string `json:"deviceEnrollmentId,omitempty"` - // DevicePermanentId: Device permanent id is returned in this field (for the - // machine response only). + // DevicePermanentId: Output only. Device permanent id is returned in this + // field (for the machine response only). DevicePermanentId string `json:"devicePermanentId,omitempty"` - // DeviceSignal: Deprecated. Device signal in json string representation. - // Prefer using `device_signals` instead. + // DeviceSignal: Output only. Deprecated. Device signal in json string + // representation. Prefer using `device_signals` instead. DeviceSignal string `json:"deviceSignal,omitempty"` - // DeviceSignals: Device signals. + // DeviceSignals: Output only. Device signals. DeviceSignals *DeviceSignals `json:"deviceSignals,omitempty"` - // KeyTrustLevel: Device attested key trust level. + // KeyTrustLevel: Output only. Device attested key trust level. // // Possible values: // "KEY_TRUST_LEVEL_UNSPECIFIED" - UNSPECIFIED. @@ -479,11 +516,11 @@ type VerifyChallengeResponseResult struct { // "CHROME_BROWSER_OS_KEY" - Chrome Browser with the key stored at OS level. // "CHROME_BROWSER_NO_KEY" - Chrome Browser without an attestation key. KeyTrustLevel string `json:"keyTrustLevel,omitempty"` - // ProfileCustomerId: Unique customer id that this profile belongs to, as - // defined by the Google Admin SDK at + // ProfileCustomerId: Output only. Unique customer id that this profile belongs + // to, as defined by the Google Admin SDK at // https://developers.google.com/admin-sdk/directory/v1/guides/manage-customers ProfileCustomerId string `json:"profileCustomerId,omitempty"` - // ProfileKeyTrustLevel: Profile attested key trust level. + // ProfileKeyTrustLevel: Output only. Profile attested key trust level. // // Possible values: // "KEY_TRUST_LEVEL_UNSPECIFIED" - UNSPECIFIED. @@ -494,15 +531,19 @@ type VerifyChallengeResponseResult struct { // "CHROME_BROWSER_OS_KEY" - Chrome Browser with the key stored at OS level. // "CHROME_BROWSER_NO_KEY" - Chrome Browser without an attestation key. ProfileKeyTrustLevel string `json:"profileKeyTrustLevel,omitempty"` - // SignedPublicKeyAndChallenge: Certificate Signing Request (in the SPKAC - // format, base64 encoded) is returned in this field. This field will be set - // only if device has included CSR in its challenge response. (the option to - // include CSR is now available for both user and machine responses) + // ProfilePermanentId: Output only. The unique server-side ID of a profile on + // the device. + ProfilePermanentId string `json:"profilePermanentId,omitempty"` + // SignedPublicKeyAndChallenge: Output only. Certificate Signing Request (in + // the SPKAC format, base64 encoded) is returned in this field. This field will + // be set only if device has included CSR in its challenge response. (the + // option to include CSR is now available for both user and machine responses) SignedPublicKeyAndChallenge string `json:"signedPublicKeyAndChallenge,omitempty"` - // VirtualDeviceId: Virtual device id of the device. The definition of virtual - // device id is platform-specific. + // VirtualDeviceId: Output only. Virtual device id of the device. The + // definition of virtual device id is platform-specific. VirtualDeviceId string `json:"virtualDeviceId,omitempty"` - // VirtualProfileId: The ID of a profile on the device. + // VirtualProfileId: Output only. The client-provided ID of a profile on the + // device. VirtualProfileId string `json:"virtualProfileId,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. diff --git a/walletobjects/v1/walletobjects-api.json b/walletobjects/v1/walletobjects-api.json index 02e8393e45d..a6869381108 100644 --- a/walletobjects/v1/walletobjects-api.json +++ b/walletobjects/v1/walletobjects-api.json @@ -2711,7 +2711,7 @@ } } }, - "revision": "20250204", + "revision": "20250303", "rootUrl": "https://walletobjects.googleapis.com/", "schemas": { "ActivationOptions": { @@ -6194,7 +6194,7 @@ "type": "object" }, "Image": { - "description": "Wrapping type for Google hosted images. Next ID: 7", + "description": "Wrapping type for Google hosted images. Next ID: 8", "id": "Image", "properties": { "contentDescription": { diff --git a/walletobjects/v1/walletobjects-gen.go b/walletobjects/v1/walletobjects-gen.go index 774a1460a69..99bb89b9a83 100644 --- a/walletobjects/v1/walletobjects-gen.go +++ b/walletobjects/v1/walletobjects-gen.go @@ -4111,7 +4111,7 @@ func (s GroupingInfo) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Image: Wrapping type for Google hosted images. Next ID: 7 +// Image: Wrapping type for Google hosted images. Next ID: 8 type Image struct { // ContentDescription: Description of the image used for accessibility. ContentDescription *LocalizedString `json:"contentDescription,omitempty"`