From de61eb772c1f4b91bf46934101331953c82f3d96 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 12 Mar 2024 00:24:18 -0700 Subject: [PATCH] feat(all): auto-regenerate discovery clients (#2466) --- aiplatform/v1beta1/aiplatform-api.json | 280 ++++- aiplatform/v1beta1/aiplatform-gen.go | 1096 ++++++++++++++++- .../v1/cloudresourcemanager-api.json | 4 +- .../v1/cloudresourcemanager-gen.go | 2 +- .../v2/cloudresourcemanager-api.json | 4 +- .../v2/cloudresourcemanager-gen.go | 2 +- .../v2beta1/cloudresourcemanager-api.json | 4 +- .../v2beta1/cloudresourcemanager-gen.go | 2 +- .../v3/cloudresourcemanager-api.json | 6 +- .../v3/cloudresourcemanager-gen.go | 4 +- connectors/v1/connectors-api.json | 196 ++- connectors/v1/connectors-gen.go | 613 +++++---- .../v1/contactcenterinsights-api.json | 14 +- .../v1/contactcenterinsights-gen.go | 2 + content/v2.1/content-api.json | 84 +- content/v2.1/content-gen.go | 153 ++- .../v2/doubleclickbidmanager-api.json | 8 +- .../v2/doubleclickbidmanager-gen.go | 13 +- .../v1alpha/marketingplatformadmin-api.json | 4 +- people/v1/people-api.json | 50 +- people/v1/people-gen.go | 72 +- places/v1/places-api.json | 49 +- places/v1/places-gen.go | 87 +- slides/v1/slides-api.json | 32 +- slides/v1/slides-gen.go | 67 + storage/v1/storage-api.json | 7 +- storage/v1/storage-gen.go | 12 +- youtube/v3/youtube-api.json | 7 +- youtube/v3/youtube-gen.go | 18 +- 29 files changed, 2388 insertions(+), 504 deletions(-) diff --git a/aiplatform/v1beta1/aiplatform-api.json b/aiplatform/v1beta1/aiplatform-api.json index c29fcd44845..902577da525 100644 --- a/aiplatform/v1beta1/aiplatform-api.json +++ b/aiplatform/v1beta1/aiplatform-api.json @@ -3403,7 +3403,7 @@ ], "parameters": { "filter": { - "description": "Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `endpoint` supports = and !=. `endpoint` represents the Endpoint ID, i.e. the last segment of the Endpoint's resource name. * `display_name` supports = and, != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels.\"a key\"`. Some examples: * `endpoint=1` * `displayName=\"myDisplayName\"` * `labels.myKey=\"myValue\"`", + "description": "Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `endpoint` supports = and !=. `endpoint` represents the Endpoint ID, i.e. the last segment of the Endpoint's resource name. * `display_name` supports = and, != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels.\"a key\"`. * `base_model_name` only supports = Some examples: * `endpoint=1` * `displayName=\"myDisplayName\"` * `labels.myKey=\"myValue\"` * `baseModelName=\"text-bison\"`", "location": "query", "type": "string" }, @@ -5303,6 +5303,37 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "getIamPolicy": { + "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}:getIamPolicy", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.featureOnlineStores.getIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "options.requestedPolicyVersion": { + "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + "format": "int32", + "location": "query", + "type": "integer" + }, + "resource": { + "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+resource}:getIamPolicy", + "response": { + "$ref": "GoogleIamV1Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "list": { "description": "Lists FeatureOnlineStores in a given project and location.", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores", @@ -5382,6 +5413,65 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "setIamPolicy": { + "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}:setIamPolicy", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.featureOnlineStores.setIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+resource}:setIamPolicy", + "request": { + "$ref": "GoogleIamV1SetIamPolicyRequest" + }, + "response": { + "$ref": "GoogleIamV1Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}:testIamPermissions", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.featureOnlineStores.testIamPermissions", + "parameterOrder": [ + "resource" + ], + "parameters": { + "permissions": { + "description": "The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).", + "location": "query", + "repeated": true, + "type": "string" + }, + "resource": { + "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+resource}:testIamPermissions", + "response": { + "$ref": "GoogleIamV1TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } }, "resources": { @@ -5503,6 +5593,37 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "getIamPolicy": { + "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}:getIamPolicy", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.getIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "options.requestedPolicyVersion": { + "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + "format": "int32", + "location": "query", + "type": "integer" + }, + "resource": { + "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+resource}:getIamPolicy", + "response": { + "$ref": "GoogleIamV1Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "list": { "description": "Lists FeatureViews in a given FeatureOnlineStore.", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews", @@ -5611,6 +5732,34 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "setIamPolicy": { + "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}:setIamPolicy", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.setIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+resource}:setIamPolicy", + "request": { + "$ref": "GoogleIamV1SetIamPolicyRequest" + }, + "response": { + "$ref": "GoogleIamV1Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "sync": { "description": "Triggers on-demand sync for the FeatureView.", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}:sync", @@ -5638,6 +5787,37 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}:testIamPermissions", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.testIamPermissions", + "parameterOrder": [ + "resource" + ], + "parameters": { + "permissions": { + "description": "The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).", + "location": "query", + "repeated": true, + "type": "string" + }, + "resource": { + "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+resource}:testIamPermissions", + "response": { + "$ref": "GoogleIamV1TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } }, "resources": { @@ -11147,7 +11327,7 @@ ], "parameters": { "filter": { - "description": "An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `model` supports = and !=. `model` represents the Model ID, i.e. the last segment of the Model's resource name. * `display_name` supports = and != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels.\"a key\"`. Some examples: * `model=1234` * `displayName=\"myDisplayName\"` * `labels.myKey=\"myValue\"`", + "description": "An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `model` supports = and !=. `model` represents the Model ID, i.e. the last segment of the Model's resource name. * `display_name` supports = and != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels.\"a key\"`. * `base_model_name` only supports = Some examples: * `model=1234` * `displayName=\"myDisplayName\"` * `labels.myKey=\"myValue\"` * `baseModelName=\"text-bison\"`", "location": "query", "type": "string" }, @@ -17775,7 +17955,7 @@ } } }, - "revision": "20240229", + "revision": "20240301", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "CloudAiLargeModelsVisionEmbedVideoResponse": { @@ -18394,6 +18574,10 @@ "description": "A single part of a message.", "id": "CloudAiNlLlmProtoServicePart", "properties": { + "documentMetadata": { + "$ref": "CloudAiNlLlmProtoServicePartDocumentMetadata", + "description": "Document metadata. The metadata should only be used by the Cloud LLM when supporting document mime types. It will only be populated when this image input part is converted from a document input part." + }, "fileData": { "$ref": "CloudAiNlLlmProtoServicePartFileData", "description": "URI-based data." @@ -18441,6 +18625,22 @@ }, "type": "object" }, + "CloudAiNlLlmProtoServicePartDocumentMetadata": { + "description": "Metadata describes the original input document content.", + "id": "CloudAiNlLlmProtoServicePartDocumentMetadata", + "properties": { + "originalDocumentBlob": { + "$ref": "CloudAiNlLlmProtoServicePartBlob", + "description": "The original document blob." + }, + "pageNumber": { + "description": "The (1-indexed) page number of the image in the original document. The first page carries the original document content and mime type.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "CloudAiNlLlmProtoServicePartFileData": { "description": "Represents file data.", "id": "CloudAiNlLlmProtoServicePartFileData", @@ -18586,6 +18786,13 @@ "description": "Whether the category is flagged as being present. Currently, this is set to true if score \u003e= 0.5.", "type": "boolean" }, + "influentialTerms": { + "description": "The influential terms that could potentially block the response.", + "items": { + "$ref": "CloudAiNlLlmProtoServiceRaiSignalInfluentialTerm" + }, + "type": "array" + }, "raiCategory": { "description": "The RAI category.", "enum": [ @@ -18674,6 +18881,41 @@ }, "type": "object" }, + "CloudAiNlLlmProtoServiceRaiSignalInfluentialTerm": { + "description": "The influential term that could potentially block the response.", + "id": "CloudAiNlLlmProtoServiceRaiSignalInfluentialTerm", + "properties": { + "beginOffset": { + "description": "The beginning offset of the influential term.", + "format": "int32", + "type": "integer" + }, + "confidence": { + "description": "The confidence score of the influential term.", + "format": "float", + "type": "number" + }, + "source": { + "description": "The source of the influential term, prompt or response.", + "enum": [ + "SOURCE_UNSPECIFIED", + "PROMPT", + "RESPONSE" + ], + "enumDescriptions": [ + "Unspecified source.", + "The influential term comes from the prompt.", + "The influential term comes from the response." + ], + "type": "string" + }, + "term": { + "description": "The influential term.", + "type": "string" + } + }, + "type": "object" + }, "CloudAiNlLlmProtoServiceSafetyRating": { "description": "Safety rating corresponding to the generated content.", "id": "CloudAiNlLlmProtoServiceSafetyRating", @@ -20028,7 +20270,10 @@ "MAX_TOKENS", "SAFETY", "RECITATION", - "OTHER" + "OTHER", + "BLOCKLIST", + "PROHIBITED_CONTENT", + "SPII" ], "enumDescriptions": [ "The finish reason is unspecified.", @@ -20036,7 +20281,10 @@ "The maximum number of tokens as specified in the request was reached.", "The token generation was stopped as the response was flagged for safety reasons. NOTE: When streaming the Candidate.content will be empty if content filters blocked the output.", "The token generation was stopped as the response was flagged for unauthorized citations.", - "All other reasons that stopped the token generation" + "All other reasons that stopped the token generation", + "The token generation was stopped as the response was flagged for the terms which are included from the terminology blocklist.", + "The token generation was stopped as the response was flagged for the prohibited contents.", + "The token generation was stopped as the response was flagged for Sensitive Personally Identifiable Information (SPII) contents." ], "readOnly": true, "type": "string" @@ -23647,7 +23895,7 @@ "type": "string" }, "serviceAgentType": { - "description": "Optional. Service agent type used during data sync. By default, the Vertex AI Service Agent is used. When using an IAM Policy to isolate this FeatureView within a project (https://cloud.google.com/vertex-ai/docs/featurestore/latest/resource-policy) a separate service account should be provisioned by setting this field to `SERVICE_AGENT_TYPE_FEATURE_VIEW`. This will generate a separate service account to access the BigQuery source table.", + "description": "Optional. Service agent type used during data sync. By default, the Vertex AI Service Agent is used. When using an IAM Policy to isolate this FeatureView within a project, a separate service account should be provisioned by setting this field to `SERVICE_AGENT_TYPE_FEATURE_VIEW`. This will generate a separate service account to access the BigQuery source table.", "enum": [ "SERVICE_AGENT_TYPE_UNSPECIFIED", "SERVICE_AGENT_TYPE_PROJECT", @@ -24221,7 +24469,7 @@ "type": "object" }, "GoogleCloudAiplatformV1beta1FindNeighborsRequest": { - "description": "The request message for MatchService.FindNeighbors.", + "description": "LINT.IfChange The request message for MatchService.FindNeighbors.", "id": "GoogleCloudAiplatformV1beta1FindNeighborsRequest", "properties": { "deployedIndexId": { @@ -24525,12 +24773,16 @@ "enum": [ "BLOCKED_REASON_UNSPECIFIED", "SAFETY", - "OTHER" + "OTHER", + "BLOCKLIST", + "PROHIBITED_CONTENT" ], "enumDescriptions": [ "Unspecified blocked reason.", "Candidates blocked due to safety.", - "Candidates blocked due to other reason." + "Candidates blocked due to other reason.", + "Candidates blocked due to the terms which are included from the terminology blocklist.", + "Candidates blocked due to prohibited content." ], "readOnly": true, "type": "string" @@ -29143,14 +29395,16 @@ "PROVISIONING", "RUNNING", "STOPPING", - "ERROR" + "ERROR", + "UPDATING" ], "enumDescriptions": [ "Not set.", "The PROVISIONING state indicates the persistent resources is being created.", "The RUNNING state indicates the persistent resource is healthy and fully usable.", "The STOPPING state indicates the persistent resource is being deleted.", - "The ERROR state indicates the persistent resource may be unusable. Details can be found in the `error` field." + "The ERROR state indicates the persistent resource may be unusable. Details can be found in the `error` field.", + "The UPDATING state indicates the persistent resource is being updated." ], "readOnly": true, "type": "string" @@ -29900,7 +30154,6 @@ "description": "Optional. Indicates the launch stage of the model.", "enum": [ "LAUNCH_STAGE_UNSPECIFIED", - "DOGFOOD", "EXPERIMENTAL", "PRIVATE_PREVIEW", "PUBLIC_PREVIEW", @@ -29908,7 +30161,6 @@ ], "enumDescriptions": [ "The model launch stage is unspecified.", - "Used to indicate the PublisherModel is at Google internal testing launch stage.", "Used to indicate the PublisherModel is at Experimental launch stage, available to a small set of customers.", "Used to indicate the PublisherModel is at Private Preview launch stage, only available to a small set of customers, although a larger set of customers than an Experimental launch. Previews are the first launch stage used to get feedback from customers.", "Used to indicate the PublisherModel is at Public Preview launch stage, available to all customers, although not supported for production workloads.", @@ -41048,6 +41300,7 @@ "C", "DART", "GRADLE", + "GROOVY", "JAVADOC", "JSON", "MAKEFILE", @@ -41075,6 +41328,7 @@ "C code.", "Dart code.", "Gradle code.", + "Groovy code.", "API documentation.", "JSON code.", "Makefile code.", diff --git a/aiplatform/v1beta1/aiplatform-gen.go b/aiplatform/v1beta1/aiplatform-gen.go index 17a85d67d44..1abc8a4bb5a 100644 --- a/aiplatform/v1beta1/aiplatform-gen.go +++ b/aiplatform/v1beta1/aiplatform-gen.go @@ -2497,6 +2497,12 @@ func (s *CloudAiNlLlmProtoServiceMessageMetadata) MarshalJSON() ([]byte, error) // CloudAiNlLlmProtoServicePart: A single part of a message. type CloudAiNlLlmProtoServicePart struct { + // DocumentMetadata: Document metadata. The metadata should only be used + // by the Cloud LLM when supporting document mime types. It will only be + // populated when this image input part is converted from a document + // input part. + DocumentMetadata *CloudAiNlLlmProtoServicePartDocumentMetadata `json:"documentMetadata,omitempty"` + // FileData: URI-based data. FileData *CloudAiNlLlmProtoServicePartFileData `json:"fileData,omitempty"` @@ -2516,7 +2522,7 @@ type CloudAiNlLlmProtoServicePart struct { // while the video data is presented in inline_data or file_data. VideoMetadata *CloudAiNlLlmProtoServicePartVideoMetadata `json:"videoMetadata,omitempty"` - // ForceSendFields is a list of field names (e.g. "FileData") to + // ForceSendFields is a list of field names (e.g. "DocumentMetadata") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2524,12 +2530,13 @@ type CloudAiNlLlmProtoServicePart struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "FileData") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DocumentMetadata") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } @@ -2574,6 +2581,42 @@ func (s *CloudAiNlLlmProtoServicePartBlob) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// CloudAiNlLlmProtoServicePartDocumentMetadata: Metadata describes the +// original input document content. +type CloudAiNlLlmProtoServicePartDocumentMetadata struct { + // OriginalDocumentBlob: The original document blob. + OriginalDocumentBlob *CloudAiNlLlmProtoServicePartBlob `json:"originalDocumentBlob,omitempty"` + + // PageNumber: The (1-indexed) page number of the image in the original + // document. The first page carries the original document content and + // mime type. + PageNumber int64 `json:"pageNumber,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "OriginalDocumentBlob") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "OriginalDocumentBlob") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *CloudAiNlLlmProtoServicePartDocumentMetadata) MarshalJSON() ([]byte, error) { + type NoMethod CloudAiNlLlmProtoServicePartDocumentMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // CloudAiNlLlmProtoServicePartFileData: Represents file data. type CloudAiNlLlmProtoServicePartFileData struct { // FileUri: Inline data. @@ -2761,6 +2804,10 @@ type CloudAiNlLlmProtoServiceRaiSignal struct { // this is set to true if score >= 0.5. Flagged bool `json:"flagged,omitempty"` + // InfluentialTerms: The influential terms that could potentially block + // the response. + InfluentialTerms []*CloudAiNlLlmProtoServiceRaiSignalInfluentialTerm `json:"influentialTerms,omitempty"` + // RaiCategory: The RAI category. // // Possible values: @@ -2842,6 +2889,63 @@ func (s *CloudAiNlLlmProtoServiceRaiSignal) UnmarshalJSON(data []byte) error { return nil } +// CloudAiNlLlmProtoServiceRaiSignalInfluentialTerm: The influential +// term that could potentially block the response. +type CloudAiNlLlmProtoServiceRaiSignalInfluentialTerm struct { + // BeginOffset: The beginning offset of the influential term. + BeginOffset int64 `json:"beginOffset,omitempty"` + + // Confidence: The confidence score of the influential term. + Confidence float64 `json:"confidence,omitempty"` + + // Source: The source of the influential term, prompt or response. + // + // Possible values: + // "SOURCE_UNSPECIFIED" - Unspecified source. + // "PROMPT" - The influential term comes from the prompt. + // "RESPONSE" - The influential term comes from the response. + Source string `json:"source,omitempty"` + + // Term: The influential term. + Term string `json:"term,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BeginOffset") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BeginOffset") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CloudAiNlLlmProtoServiceRaiSignalInfluentialTerm) MarshalJSON() ([]byte, error) { + type NoMethod CloudAiNlLlmProtoServiceRaiSignalInfluentialTerm + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *CloudAiNlLlmProtoServiceRaiSignalInfluentialTerm) UnmarshalJSON(data []byte) error { + type NoMethod CloudAiNlLlmProtoServiceRaiSignalInfluentialTerm + var s1 struct { + Confidence gensupport.JSONFloat64 `json:"confidence"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Confidence = float64(s1.Confidence) + return nil +} + // CloudAiNlLlmProtoServiceSafetyRating: Safety rating corresponding to // the generated content. type CloudAiNlLlmProtoServiceSafetyRating struct { @@ -5371,6 +5475,14 @@ type GoogleCloudAiplatformV1beta1Candidate struct { // "RECITATION" - The token generation was stopped as the response was // flagged for unauthorized citations. // "OTHER" - All other reasons that stopped the token generation + // "BLOCKLIST" - The token generation was stopped as the response was + // flagged for the terms which are included from the terminology + // blocklist. + // "PROHIBITED_CONTENT" - The token generation was stopped as the + // response was flagged for the prohibited contents. + // "SPII" - The token generation was stopped as the response was + // flagged for Sensitive Personally Identifiable Information (SPII) + // contents. FinishReason string `json:"finishReason,omitempty"` // GroundingMetadata: Output only. Metadata specifies sources used to @@ -12162,11 +12274,10 @@ type GoogleCloudAiplatformV1beta1FeatureView struct { // ServiceAgentType: Optional. Service agent type used during data sync. // By default, the Vertex AI Service Agent is used. When using an IAM - // Policy to isolate this FeatureView within a project - // (https://cloud.google.com/vertex-ai/docs/featurestore/latest/resource-policy) - // a separate service account should be provisioned by setting this - // field to `SERVICE_AGENT_TYPE_FEATURE_VIEW`. This will generate a - // separate service account to access the BigQuery source table. + // Policy to isolate this FeatureView within a project, a separate + // service account should be provisioned by setting this field to + // `SERVICE_AGENT_TYPE_FEATURE_VIEW`. This will generate a separate + // service account to access the BigQuery source table. // // Possible values: // "SERVICE_AGENT_TYPE_UNSPECIFIED" - By default, the project-level @@ -13261,8 +13372,8 @@ func (s *GoogleCloudAiplatformV1beta1FilterSplit) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudAiplatformV1beta1FindNeighborsRequest: The request message -// for MatchService.FindNeighbors. +// GoogleCloudAiplatformV1beta1FindNeighborsRequest: LINT.IfChange The +// request message for MatchService.FindNeighbors. type GoogleCloudAiplatformV1beta1FindNeighborsRequest struct { // DeployedIndexId: The ID of the DeployedIndex that will serve the // request. This request is sent to a specific IndexEndpoint, as per the @@ -13919,6 +14030,10 @@ type GoogleCloudAiplatformV1beta1GenerateContentResponsePromptFeedback struct { // "BLOCKED_REASON_UNSPECIFIED" - Unspecified blocked reason. // "SAFETY" - Candidates blocked due to safety. // "OTHER" - Candidates blocked due to other reason. + // "BLOCKLIST" - Candidates blocked due to the terms which are + // included from the terminology blocklist. + // "PROHIBITED_CONTENT" - Candidates blocked due to prohibited + // content. BlockReason string `json:"blockReason,omitempty"` // BlockReasonMessage: Output only. A readable block reason message. @@ -22079,6 +22194,8 @@ type GoogleCloudAiplatformV1beta1PersistentResource struct { // is being deleted. // "ERROR" - The ERROR state indicates the persistent resource may be // unusable. Details can be found in the `error` field. + // "UPDATING" - The UPDATING state indicates the persistent resource + // is being updated. State string `json:"state,omitempty"` // UpdateTime: Output only. Time when the PersistentResource was most @@ -23264,8 +23381,6 @@ type GoogleCloudAiplatformV1beta1PublisherModel struct { // // Possible values: // "LAUNCH_STAGE_UNSPECIFIED" - The model launch stage is unspecified. - // "DOGFOOD" - Used to indicate the PublisherModel is at Google - // internal testing launch stage. // "EXPERIMENTAL" - Used to indicate the PublisherModel is at // Experimental launch stage, available to a small set of customers. // "PRIVATE_PREVIEW" - Used to indicate the PublisherModel is at @@ -41635,6 +41750,7 @@ type LearningGenaiRootCodeyChatMetadata struct { // "C" - C code. // "DART" - Dart code. // "GRADLE" - Gradle code. + // "GROOVY" - Groovy code. // "JAVADOC" - API documentation. // "JSON" - JSON code. // "MAKEFILE" - Makefile code. @@ -59411,9 +59527,10 @@ func (r *ProjectsLocationsEndpointsService) List(parent string) *ProjectsLocatio // Endpoint's resource name. * `display_name` supports = and, != * // `labels` supports general map functions that is: * `labels.key=value` // - key:value equality * `labels.key:* or labels:key - key existence * -// A key including a space must be quoted. `labels."a key". Some -// examples: * `endpoint=1` * `displayName="myDisplayName" * -// `labels.myKey="myValue" +// A key including a space must be quoted. `labels."a key". * +// `base_model_name` only supports = Some examples: * `endpoint=1` * +// `displayName="myDisplayName" * `labels.myKey="myValue" * +// `baseModelName="text-bison" func (c *ProjectsLocationsEndpointsListCall) Filter(filter string) *ProjectsLocationsEndpointsListCall { c.urlParams_.Set("filter", filter) return c @@ -59552,7 +59669,7 @@ func (c *ProjectsLocationsEndpointsListCall) Do(opts ...googleapi.CallOption) (* // ], // "parameters": { // "filter": { - // "description": "Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `endpoint` supports = and !=. `endpoint` represents the Endpoint ID, i.e. the last segment of the Endpoint's resource name. * `display_name` supports = and, != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels.\"a key\"`. Some examples: * `endpoint=1` * `displayName=\"myDisplayName\"` * `labels.myKey=\"myValue\"`", + // "description": "Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `endpoint` supports = and !=. `endpoint` represents the Endpoint ID, i.e. the last segment of the Endpoint's resource name. * `display_name` supports = and, != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels.\"a key\"`. * `base_model_name` only supports = Some examples: * `endpoint=1` * `displayName=\"myDisplayName\"` * `labels.myKey=\"myValue\"` * `baseModelName=\"text-bison\"`", // "location": "query", // "type": "string" // }, @@ -69032,6 +69149,167 @@ func (c *ProjectsLocationsFeatureOnlineStoresGetCall) Do(opts ...googleapi.CallO } +// method id "aiplatform.projects.locations.featureOnlineStores.getIamPolicy": + +type ProjectsLocationsFeatureOnlineStoresGetIamPolicyCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// GetIamPolicy: Gets the access control policy for a resource. Returns +// an empty policy if the resource exists and does not have a policy +// set. +// +// - resource: REQUIRED: The resource for which the policy is being +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsFeatureOnlineStoresService) GetIamPolicy(resource string) *ProjectsLocationsFeatureOnlineStoresGetIamPolicyCall { + c := &ProjectsLocationsFeatureOnlineStoresGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + return c +} + +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": The maximum policy version that +// will be used to format the policy. Valid values are 0, 1, and 3. +// Requests specifying an invalid value will be rejected. Requests for +// policies with any conditional role bindings must specify version 3. +// Policies with no conditional role bindings may specify any valid +// value or leave the field unset. The policy in the response might use +// the policy version that you specified, or it might use a lower policy +// version. For example, if you specify version 3, but the policy has no +// conditional role bindings, the response uses version 1. To learn +// which resources support conditions in their IAM policies, see the IAM +// documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). +func (c *ProjectsLocationsFeatureOnlineStoresGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsFeatureOnlineStoresGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsFeatureOnlineStoresGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresGetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsFeatureOnlineStoresGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresGetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsFeatureOnlineStoresGetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeatureOnlineStoresGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:getIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featureOnlineStores.getIamPolicy" call. +// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsFeatureOnlineStoresGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleIamV1Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}:getIamPolicy", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.featureOnlineStores.getIamPolicy", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "options.requestedPolicyVersion": { + // "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+resource}:getIamPolicy", + // "response": { + // "$ref": "GoogleIamV1Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "aiplatform.projects.locations.featureOnlineStores.list": type ProjectsLocationsFeatureOnlineStoresListCall struct { @@ -69435,6 +69713,310 @@ func (c *ProjectsLocationsFeatureOnlineStoresPatchCall) Do(opts ...googleapi.Cal } +// method id "aiplatform.projects.locations.featureOnlineStores.setIamPolicy": + +type ProjectsLocationsFeatureOnlineStoresSetIamPolicyCall struct { + s *Service + resource string + googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetIamPolicy: Sets the access control policy on the specified +// resource. Replaces any existing policy. Can return `NOT_FOUND`, +// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. +// +// - resource: REQUIRED: The resource for which the policy is being +// specified. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsFeatureOnlineStoresService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsFeatureOnlineStoresSetIamPolicyCall { + c := &ProjectsLocationsFeatureOnlineStoresSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsFeatureOnlineStoresSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresSetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsFeatureOnlineStoresSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresSetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsFeatureOnlineStoresSetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeatureOnlineStoresSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:setIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featureOnlineStores.setIamPolicy" call. +// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsFeatureOnlineStoresSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleIamV1Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}:setIamPolicy", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.featureOnlineStores.setIamPolicy", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+resource}:setIamPolicy", + // "request": { + // "$ref": "GoogleIamV1SetIamPolicyRequest" + // }, + // "response": { + // "$ref": "GoogleIamV1Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.featureOnlineStores.testIamPermissions": + +type ProjectsLocationsFeatureOnlineStoresTestIamPermissionsCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns permissions that a caller has on the +// specified resource. If the resource does not exist, this will return +// an empty set of permissions, not a `NOT_FOUND` error. Note: This +// operation is designed to be used for building permission-aware UIs +// and command-line tools, not for authorization checking. This +// operation may "fail open" without warning. +// +// - resource: REQUIRED: The resource for which the policy detail is +// being requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsFeatureOnlineStoresService) TestIamPermissions(resource string) *ProjectsLocationsFeatureOnlineStoresTestIamPermissionsCall { + c := &ProjectsLocationsFeatureOnlineStoresTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + return c +} + +// Permissions sets the optional parameter "permissions": The set of +// permissions to check for the `resource`. Permissions with wildcards +// (such as `*` or `storage.*`) are not allowed. For more information +// see IAM Overview +// (https://cloud.google.com/iam/docs/overview#permissions). +func (c *ProjectsLocationsFeatureOnlineStoresTestIamPermissionsCall) Permissions(permissions ...string) *ProjectsLocationsFeatureOnlineStoresTestIamPermissionsCall { + c.urlParams_.SetMulti("permissions", append([]string{}, permissions...)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsFeatureOnlineStoresTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresTestIamPermissionsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsFeatureOnlineStoresTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresTestIamPermissionsCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsFeatureOnlineStoresTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeatureOnlineStoresTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:testIamPermissions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featureOnlineStores.testIamPermissions" call. +// Exactly one of *GoogleIamV1TestIamPermissionsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleIamV1TestIamPermissionsResponse.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 *ProjectsLocationsFeatureOnlineStoresTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, 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 := &GoogleIamV1TestIamPermissionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}:testIamPermissions", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.featureOnlineStores.testIamPermissions", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "permissions": { + // "description": "The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).", + // "location": "query", + // "repeated": true, + // "type": "string" + // }, + // "resource": { + // "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+resource}:testIamPermissions", + // "response": { + // "$ref": "GoogleIamV1TestIamPermissionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "aiplatform.projects.locations.featureOnlineStores.featureViews.create": type ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall struct { @@ -70040,6 +70622,167 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall) Do(opts ...goo } +// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.getIamPolicy": + +type ProjectsLocationsFeatureOnlineStoresFeatureViewsGetIamPolicyCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// GetIamPolicy: Gets the access control policy for a resource. Returns +// an empty policy if the resource exists and does not have a policy +// set. +// +// - resource: REQUIRED: The resource for which the policy is being +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsService) GetIamPolicy(resource string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetIamPolicyCall { + c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + return c +} + +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": The maximum policy version that +// will be used to format the policy. Valid values are 0, 1, and 3. +// Requests specifying an invalid value will be rejected. Requests for +// policies with any conditional role bindings must specify version 3. +// Policies with no conditional role bindings may specify any valid +// value or leave the field unset. The policy in the response might use +// the policy version that you specified, or it might use a lower policy +// version. For example, if you specify version 3, but the policy has no +// conditional role bindings, the response uses version 1. To learn +// which resources support conditions in their IAM policies, see the IAM +// documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:getIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.getIamPolicy" call. +// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleIamV1Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}:getIamPolicy", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.getIamPolicy", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "options.requestedPolicyVersion": { + // "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+resource}:getIamPolicy", + // "response": { + // "$ref": "GoogleIamV1Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "aiplatform.projects.locations.featureOnlineStores.featureViews.list": type ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall struct { @@ -70593,6 +71336,153 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSearchNearestEntitiesCa } +// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.setIamPolicy": + +type ProjectsLocationsFeatureOnlineStoresFeatureViewsSetIamPolicyCall struct { + s *Service + resource string + googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetIamPolicy: Sets the access control policy on the specified +// resource. Replaces any existing policy. Can return `NOT_FOUND`, +// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. +// +// - resource: REQUIRED: The resource for which the policy is being +// specified. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsFeatureOnlineStoresFeatureViewsSetIamPolicyCall { + c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsSetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsSetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:setIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.setIamPolicy" call. +// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleIamV1Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}:setIamPolicy", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.setIamPolicy", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+resource}:setIamPolicy", + // "request": { + // "$ref": "GoogleIamV1SetIamPolicyRequest" + // }, + // "response": { + // "$ref": "GoogleIamV1Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "aiplatform.projects.locations.featureOnlineStores.featureViews.sync": type ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall struct { @@ -70739,6 +71629,163 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall) Do(opts ...go } +// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.testIamPermissions": + +type ProjectsLocationsFeatureOnlineStoresFeatureViewsTestIamPermissionsCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns permissions that a caller has on the +// specified resource. If the resource does not exist, this will return +// an empty set of permissions, not a `NOT_FOUND` error. Note: This +// operation is designed to be used for building permission-aware UIs +// and command-line tools, not for authorization checking. This +// operation may "fail open" without warning. +// +// - resource: REQUIRED: The resource for which the policy detail is +// being requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsService) TestIamPermissions(resource string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsTestIamPermissionsCall { + c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + return c +} + +// Permissions sets the optional parameter "permissions": The set of +// permissions to check for the `resource`. Permissions with wildcards +// (such as `*` or `storage.*`) are not allowed. For more information +// see IAM Overview +// (https://cloud.google.com/iam/docs/overview#permissions). +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsTestIamPermissionsCall) Permissions(permissions ...string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsTestIamPermissionsCall { + c.urlParams_.SetMulti("permissions", append([]string{}, permissions...)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsTestIamPermissionsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsTestIamPermissionsCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:testIamPermissions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.testIamPermissions" call. +// Exactly one of *GoogleIamV1TestIamPermissionsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleIamV1TestIamPermissionsResponse.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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, 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 := &GoogleIamV1TestIamPermissionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}:testIamPermissions", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.testIamPermissions", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "permissions": { + // "description": "The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).", + // "location": "query", + // "repeated": true, + // "type": "string" + // }, + // "resource": { + // "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+resource}:testIamPermissions", + // "response": { + // "$ref": "GoogleIamV1TestIamPermissionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "aiplatform.projects.locations.featureOnlineStores.featureViews.featureViewSyncs.get": type ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall struct { @@ -99047,9 +100094,10 @@ func (r *ProjectsLocationsModelsService) List(parent string) *ProjectsLocationsM // resource name. * `display_name` supports = and != * `labels` supports // general map functions that is: * `labels.key=value` - key:value // equality * `labels.key:* or labels:key - key existence * A key -// including a space must be quoted. `labels."a key". Some examples: * -// `model=1234` * `displayName="myDisplayName" * -// `labels.myKey="myValue" +// including a space must be quoted. `labels."a key". * +// `base_model_name` only supports = Some examples: * `model=1234` * +// `displayName="myDisplayName" * `labels.myKey="myValue" * +// `baseModelName="text-bison" func (c *ProjectsLocationsModelsListCall) Filter(filter string) *ProjectsLocationsModelsListCall { c.urlParams_.Set("filter", filter) return c @@ -99187,7 +100235,7 @@ func (c *ProjectsLocationsModelsListCall) Do(opts ...googleapi.CallOption) (*Goo // ], // "parameters": { // "filter": { - // "description": "An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `model` supports = and !=. `model` represents the Model ID, i.e. the last segment of the Model's resource name. * `display_name` supports = and != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels.\"a key\"`. Some examples: * `model=1234` * `displayName=\"myDisplayName\"` * `labels.myKey=\"myValue\"`", + // "description": "An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `model` supports = and !=. `model` represents the Model ID, i.e. the last segment of the Model's resource name. * `display_name` supports = and != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels.\"a key\"`. * `base_model_name` only supports = Some examples: * `model=1234` * `displayName=\"myDisplayName\"` * `labels.myKey=\"myValue\"` * `baseModelName=\"text-bison\"`", // "location": "query", // "type": "string" // }, diff --git a/cloudresourcemanager/v1/cloudresourcemanager-api.json b/cloudresourcemanager/v1/cloudresourcemanager-api.json index 6804c2b6bef..55e35e69c45 100644 --- a/cloudresourcemanager/v1/cloudresourcemanager-api.json +++ b/cloudresourcemanager/v1/cloudresourcemanager-api.json @@ -1171,7 +1171,7 @@ } } }, - "revision": "20240303", + "revision": "20240310", "rootUrl": "https://cloudresourcemanager.googleapis.com/", "schemas": { "Ancestor": { @@ -2079,7 +2079,7 @@ "additionalProperties": { "type": "string" }, - "description": "Optional. Input only. Immutable. Tag keys/values directly bound to this project. Each item in the map must be expressed as \" : \". For example: \"123/environment\" : \"production\", \"123/costCenter\" : \"marketing\"", + "description": "Optional. Input only. Immutable. Tag keys/values directly bound to this project. Each item in the map must be expressed as \" : \". For example: \"123/environment\" : \"production\", \"123/costCenter\" : \"marketing\" Note: Currently this field is in Preview.", "type": "object" } }, diff --git a/cloudresourcemanager/v1/cloudresourcemanager-gen.go b/cloudresourcemanager/v1/cloudresourcemanager-gen.go index 52fbfbf9159..12ad2500357 100644 --- a/cloudresourcemanager/v1/cloudresourcemanager-gen.go +++ b/cloudresourcemanager/v1/cloudresourcemanager-gen.go @@ -2069,7 +2069,7 @@ type Project struct { // Tags: Optional. Input only. Immutable. Tag keys/values directly bound // to this project. Each item in the map must be expressed as " : ". For // example: "123/environment" : "production", "123/costCenter" : - // "marketing" + // "marketing" Note: Currently this field is in Preview. Tags map[string]string `json:"tags,omitempty"` // ServerResponse contains the HTTP response code and headers from the diff --git a/cloudresourcemanager/v2/cloudresourcemanager-api.json b/cloudresourcemanager/v2/cloudresourcemanager-api.json index c387c37e12c..5196c266d3c 100644 --- a/cloudresourcemanager/v2/cloudresourcemanager-api.json +++ b/cloudresourcemanager/v2/cloudresourcemanager-api.json @@ -450,7 +450,7 @@ } } }, - "revision": "20240303", + "revision": "20240310", "rootUrl": "https://cloudresourcemanager.googleapis.com/", "schemas": { "AuditConfig": { @@ -743,7 +743,7 @@ "additionalProperties": { "type": "string" }, - "description": "Optional. Input only. Immutable. Tag keys/values directly bound to this folder. Each item in the map must be expressed as \" : \". For example: \"123/environment\" : \"production\", \"123/costCenter\" : \"marketing\"", + "description": "Optional. Input only. Immutable. Tag keys/values directly bound to this folder. Each item in the map must be expressed as \" : \". For example: \"123/environment\" : \"production\", \"123/costCenter\" : \"marketing\" Note: Currently this field is in Preview.", "type": "object" } }, diff --git a/cloudresourcemanager/v2/cloudresourcemanager-gen.go b/cloudresourcemanager/v2/cloudresourcemanager-gen.go index ceaf83932c8..5456d0b47c5 100644 --- a/cloudresourcemanager/v2/cloudresourcemanager-gen.go +++ b/cloudresourcemanager/v2/cloudresourcemanager-gen.go @@ -701,7 +701,7 @@ type Folder struct { // Tags: Optional. Input only. Immutable. Tag keys/values directly bound // to this folder. Each item in the map must be expressed as " : ". For // example: "123/environment" : "production", "123/costCenter" : - // "marketing" + // "marketing" Note: Currently this field is in Preview. Tags map[string]string `json:"tags,omitempty"` // ServerResponse contains the HTTP response code and headers from the diff --git a/cloudresourcemanager/v2beta1/cloudresourcemanager-api.json b/cloudresourcemanager/v2beta1/cloudresourcemanager-api.json index 28310d88728..9759efd0f4d 100644 --- a/cloudresourcemanager/v2beta1/cloudresourcemanager-api.json +++ b/cloudresourcemanager/v2beta1/cloudresourcemanager-api.json @@ -450,7 +450,7 @@ } } }, - "revision": "20240303", + "revision": "20240310", "rootUrl": "https://cloudresourcemanager.googleapis.com/", "schemas": { "AuditConfig": { @@ -743,7 +743,7 @@ "additionalProperties": { "type": "string" }, - "description": "Optional. Input only. Immutable. Tag keys/values directly bound to this folder. Each item in the map must be expressed as \" : \". For example: \"123/environment\" : \"production\", \"123/costCenter\" : \"marketing\"", + "description": "Optional. Input only. Immutable. Tag keys/values directly bound to this folder. Each item in the map must be expressed as \" : \". For example: \"123/environment\" : \"production\", \"123/costCenter\" : \"marketing\" Note: Currently this field is in Preview.", "type": "object" } }, diff --git a/cloudresourcemanager/v2beta1/cloudresourcemanager-gen.go b/cloudresourcemanager/v2beta1/cloudresourcemanager-gen.go index 12b78ee3115..6f4bb688308 100644 --- a/cloudresourcemanager/v2beta1/cloudresourcemanager-gen.go +++ b/cloudresourcemanager/v2beta1/cloudresourcemanager-gen.go @@ -701,7 +701,7 @@ type Folder struct { // Tags: Optional. Input only. Immutable. Tag keys/values directly bound // to this folder. Each item in the map must be expressed as " : ". For // example: "123/environment" : "production", "123/costCenter" : - // "marketing" + // "marketing" Note: Currently this field is in Preview. Tags map[string]string `json:"tags,omitempty"` // ServerResponse contains the HTTP response code and headers from the diff --git a/cloudresourcemanager/v3/cloudresourcemanager-api.json b/cloudresourcemanager/v3/cloudresourcemanager-api.json index 19c501fdf75..c8a23d62e1a 100644 --- a/cloudresourcemanager/v3/cloudresourcemanager-api.json +++ b/cloudresourcemanager/v3/cloudresourcemanager-api.json @@ -1805,7 +1805,7 @@ } } }, - "revision": "20240303", + "revision": "20240310", "rootUrl": "https://cloudresourcemanager.googleapis.com/", "schemas": { "AuditConfig": { @@ -2146,7 +2146,7 @@ "additionalProperties": { "type": "string" }, - "description": "Optional. Input only. Immutable. Tag keys/values directly bound to this folder. Each item in the map must be expressed as \" : \". For example: \"123/environment\" : \"production\", \"123/costCenter\" : \"marketing\"", + "description": "Optional. Input only. Immutable. Tag keys/values directly bound to this folder. Each item in the map must be expressed as \" : \". For example: \"123/environment\" : \"production\", \"123/costCenter\" : \"marketing\" Note: Currently this field is in Preview.", "type": "object" }, "updateTime": { @@ -2664,7 +2664,7 @@ "additionalProperties": { "type": "string" }, - "description": "Optional. Input only. Immutable. Tag keys/values directly bound to this project. Each item in the map must be expressed as \" : \". For example: \"123/environment\" : \"production\", \"123/costCenter\" : \"marketing\"", + "description": "Optional. Input only. Immutable. Tag keys/values directly bound to this project. Each item in the map must be expressed as \" : \". For example: \"123/environment\" : \"production\", \"123/costCenter\" : \"marketing\" Note: Currently this field is in Preview.", "type": "object" }, "updateTime": { diff --git a/cloudresourcemanager/v3/cloudresourcemanager-gen.go b/cloudresourcemanager/v3/cloudresourcemanager-gen.go index fa53073fabd..c107c6c4fb7 100644 --- a/cloudresourcemanager/v3/cloudresourcemanager-gen.go +++ b/cloudresourcemanager/v3/cloudresourcemanager-gen.go @@ -877,7 +877,7 @@ type Folder struct { // Tags: Optional. Input only. Immutable. Tag keys/values directly bound // to this folder. Each item in the map must be expressed as " : ". For // example: "123/environment" : "production", "123/costCenter" : - // "marketing" + // "marketing" Note: Currently this field is in Preview. Tags map[string]string `json:"tags,omitempty"` // UpdateTime: Output only. Timestamp when the folder was last modified. @@ -1868,7 +1868,7 @@ type Project struct { // Tags: Optional. Input only. Immutable. Tag keys/values directly bound // to this project. Each item in the map must be expressed as " : ". For // example: "123/environment" : "production", "123/costCenter" : - // "marketing" + // "marketing" Note: Currently this field is in Preview. Tags map[string]string `json:"tags,omitempty"` // UpdateTime: Output only. The most recent time this resource was diff --git a/connectors/v1/connectors-api.json b/connectors/v1/connectors-api.json index cdfed9c637c..a442a0d70a4 100644 --- a/connectors/v1/connectors-api.json +++ b/connectors/v1/connectors-api.json @@ -1113,6 +1113,38 @@ } } }, + "customConnectors": { + "methods": { + "validateCustomConnectorSpec": { + "description": "Validates a Custom Connector Spec.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/customConnectors:validateCustomConnectorSpec", + "httpMethod": "POST", + "id": "connectors.projects.locations.customConnectors.validateCustomConnectorSpec", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Location at which the custom connector is being created.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/customConnectors:validateCustomConnectorSpec", + "request": { + "$ref": "ValidateCustomConnectorSpecRequest" + }, + "response": { + "$ref": "ValidateCustomConnectorSpecResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "endpointAttachments": { "methods": { "create": { @@ -1545,31 +1577,6 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, - "delete": { - "description": "Deletes a single CustomConnectorVersion.", - "flatPath": "v1/projects/{projectsId}/locations/global/customConnectors/{customConnectorsId}/customConnectorVersions/{customConnectorVersionsId}", - "httpMethod": "DELETE", - "id": "connectors.projects.locations.global.customConnectors.customConnectorVersions.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. Resource name of the form: `projects/{project}/locations/{location}/customConnectors/{custom_connector}/customConnectorVersions/{custom_connector_version}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/global/customConnectors/[^/]+/customConnectorVersions/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, "get": { "description": "Gets details of a single CustomConnectorVersion.", "flatPath": "v1/projects/{projectsId}/locations/global/customConnectors/{customConnectorsId}/customConnectorVersions/{customConnectorVersionsId}", @@ -1630,40 +1637,6 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] - }, - "patch": { - "description": "Updates the parameters of a CustomConnectorVersion.", - "flatPath": "v1/projects/{projectsId}/locations/global/customConnectors/{customConnectorsId}/customConnectorVersions/{customConnectorVersionsId}", - "httpMethod": "PATCH", - "id": "connectors.projects.locations.global.customConnectors.customConnectorVersions.patch", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Output only. Identifier. Resource name of the Version. Format: projects/{project}/locations/{location}/customConnectors/{custom_connector}/customConnectorVersions/{custom_connector_version}", - "location": "path", - "pattern": "^projects/[^/]+/locations/global/customConnectors/[^/]+/customConnectorVersions/[^/]+$", - "required": true, - "type": "string" - }, - "updateMask": { - "description": "Required. Field mask is used to specify the fields to be overwritten in the Connector resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. Set the mask as \"*\" for full replacement, which means all fields will be overwritten.", - "format": "google-fieldmask", - "location": "query", - "type": "string" - } - }, - "path": "v1/{+name}", - "request": { - "$ref": "CustomConnectorVersion" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] } } } @@ -2354,7 +2327,7 @@ } } }, - "revision": "20240226", + "revision": "20240305", "rootUrl": "https://connectors.googleapis.com/", "schemas": { "AuditConfig": { @@ -3460,6 +3433,14 @@ "description": "Optional. Location of the custom connector spec. The location can be either a public url like `https://public-url.com/spec` Or a Google Cloud Storage location like `gs:///`", "type": "string" }, + "specServerUrls": { + "description": "Output only. Server URLs parsed from the spec.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, "state": { "description": "Output only. State of the custom connector version.", "enum": [ @@ -3598,6 +3579,13 @@ "description": "DestinationConfigTemplate defines required destinations supported by the Connector.", "id": "DestinationConfigTemplate", "properties": { + "autocompleteSuggestions": { + "description": "Autocomplete suggestions for destination URL field.", + "items": { + "type": "string" + }, + "type": "array" + }, "defaultPort": { "description": "The default port.", "format": "int32", @@ -4178,6 +4166,11 @@ "$ref": "EventingStatus", "description": "Output only. Current status of eventing.", "readOnly": true + }, + "webhookData": { + "$ref": "WebhookData", + "description": "Output only. Webhook data.", + "readOnly": true } }, "type": "object" @@ -6977,6 +6970,89 @@ }, "type": "object" }, + "ValidateCustomConnectorSpecRequest": { + "description": "Request message for ConnectorsService.ValidateCustomConnectorSpec", + "id": "ValidateCustomConnectorSpecRequest", + "properties": { + "serviceAccount": { + "description": "Required. Service account to access the spec from Google Cloud Storage.", + "type": "string" + }, + "specLocation": { + "description": "Required. Location of the custom connector spec. The location can be either a public url like `https://public-url.com/spec` Or a Google Cloud Storage location like `gs:///`", + "type": "string" + }, + "specType": { + "description": "Required. Spec type of the custom connector spec.", + "enum": [ + "CUSTOM_CONNECTOR_TYPE_UNSPECIFIED", + "OPEN_API", + "PROTO" + ], + "enumDescriptions": [ + "Connector type is not specified.", + "OpenAPI connector.", + "Proto connector." + ], + "type": "string" + } + }, + "type": "object" + }, + "ValidateCustomConnectorSpecResponse": { + "description": "Response message for ConnectorsService.ValidateCustomConnectorSpec", + "id": "ValidateCustomConnectorSpecResponse", + "properties": { + "errorMessage": { + "description": "Error message. The spec is valid if the error message is empty.", + "type": "string" + } + }, + "type": "object" + }, + "WebhookData": { + "description": "WebhookData has details of webhook configuration.", + "id": "WebhookData", + "properties": { + "additionalVariables": { + "description": "Output only. Additional webhook related field values.", + "items": { + "$ref": "ConfigVariable" + }, + "readOnly": true, + "type": "array" + }, + "createTime": { + "description": "Output only. Timestamp when the webhook was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "id": { + "description": "Output only. ID to uniquely identify webhook.", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Output only. Name of the Webhook", + "readOnly": true, + "type": "string" + }, + "nextRefreshTime": { + "description": "Output only. Next webhook refresh time. Will be null if refresh is not supported.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Output only. Timestamp when the webhook was last updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "WeeklyCycle": { "description": "Time window specified for weekly operations.", "id": "WeeklyCycle", diff --git a/connectors/v1/connectors-gen.go b/connectors/v1/connectors-gen.go index 56becd90cc8..324efba7f73 100644 --- a/connectors/v1/connectors-gen.go +++ b/connectors/v1/connectors-gen.go @@ -170,6 +170,7 @@ type ProjectsService struct { func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs := &ProjectsLocationsService{s: s} rs.Connections = NewProjectsLocationsConnectionsService(s) + rs.CustomConnectors = NewProjectsLocationsCustomConnectorsService(s) rs.EndpointAttachments = NewProjectsLocationsEndpointAttachmentsService(s) rs.Global = NewProjectsLocationsGlobalService(s) rs.Operations = NewProjectsLocationsOperationsService(s) @@ -182,6 +183,8 @@ type ProjectsLocationsService struct { Connections *ProjectsLocationsConnectionsService + CustomConnectors *ProjectsLocationsCustomConnectorsService + EndpointAttachments *ProjectsLocationsEndpointAttachmentsService Global *ProjectsLocationsGlobalService @@ -248,6 +251,15 @@ type ProjectsLocationsConnectionsRuntimeEntitySchemasService struct { s *Service } +func NewProjectsLocationsCustomConnectorsService(s *Service) *ProjectsLocationsCustomConnectorsService { + rs := &ProjectsLocationsCustomConnectorsService{s: s} + return rs +} + +type ProjectsLocationsCustomConnectorsService struct { + s *Service +} + func NewProjectsLocationsEndpointAttachmentsService(s *Service) *ProjectsLocationsEndpointAttachmentsService { rs := &ProjectsLocationsEndpointAttachmentsService{s: s} return rs @@ -1601,6 +1613,9 @@ type CustomConnectorVersion struct { // `gs:///` SpecLocation string `json:"specLocation,omitempty"` + // SpecServerUrls: Output only. Server URLs parsed from the spec. + SpecServerUrls []string `json:"specServerUrls,omitempty"` + // State: Output only. State of the custom connector version. // // Possible values: @@ -1864,6 +1879,10 @@ func (s *DestinationConfig) MarshalJSON() ([]byte, error) { // DestinationConfigTemplate: DestinationConfigTemplate defines required // destinations supported by the Connector. type DestinationConfigTemplate struct { + // AutocompleteSuggestions: Autocomplete suggestions for destination URL + // field. + AutocompleteSuggestions []string `json:"autocompleteSuggestions,omitempty"` + // DefaultPort: The default port. DefaultPort int64 `json:"defaultPort,omitempty"` @@ -1898,20 +1917,22 @@ type DestinationConfigTemplate struct { // RegexPattern: Regex pattern for host. RegexPattern string `json:"regexPattern,omitempty"` - // ForceSendFields is a list of field names (e.g. "DefaultPort") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. + // "AutocompleteSuggestions") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DefaultPort") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AutocompleteSuggestions") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } @@ -2588,6 +2609,9 @@ type EventingRuntimeData struct { // Status: Output only. Current status of eventing. Status *EventingStatus `json:"status,omitempty"` + // WebhookData: Output only. Webhook data. + WebhookData *WebhookData `json:"webhookData,omitempty"` + // ForceSendFields is a list of field names (e.g. // "EventsListenerEndpoint") to unconditionally include in API requests. // By default, fields with empty or default values are omitted from API @@ -6260,6 +6284,132 @@ func (s *UserPassword) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ValidateCustomConnectorSpecRequest: Request message for +// ConnectorsService.ValidateCustomConnectorSpec +type ValidateCustomConnectorSpecRequest struct { + // ServiceAccount: Required. Service account to access the spec from + // Google Cloud Storage. + ServiceAccount string `json:"serviceAccount,omitempty"` + + // SpecLocation: Required. Location of the custom connector spec. The + // location can be either a public url like + // `https://public-url.com/spec` Or a Google Cloud Storage location like + // `gs:///` + SpecLocation string `json:"specLocation,omitempty"` + + // SpecType: Required. Spec type of the custom connector spec. + // + // Possible values: + // "CUSTOM_CONNECTOR_TYPE_UNSPECIFIED" - Connector type is not + // specified. + // "OPEN_API" - OpenAPI connector. + // "PROTO" - Proto connector. + SpecType string `json:"specType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ServiceAccount") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ServiceAccount") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *ValidateCustomConnectorSpecRequest) MarshalJSON() ([]byte, error) { + type NoMethod ValidateCustomConnectorSpecRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ValidateCustomConnectorSpecResponse: Response message for +// ConnectorsService.ValidateCustomConnectorSpec +type ValidateCustomConnectorSpecResponse struct { + // ErrorMessage: Error message. The spec is valid if the error message + // is empty. + ErrorMessage string `json:"errorMessage,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "ErrorMessage") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ErrorMessage") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ValidateCustomConnectorSpecResponse) MarshalJSON() ([]byte, error) { + type NoMethod ValidateCustomConnectorSpecResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// WebhookData: WebhookData has details of webhook configuration. +type WebhookData struct { + // AdditionalVariables: Output only. Additional webhook related field + // values. + AdditionalVariables []*ConfigVariable `json:"additionalVariables,omitempty"` + + // CreateTime: Output only. Timestamp when the webhook was created. + CreateTime string `json:"createTime,omitempty"` + + // Id: Output only. ID to uniquely identify webhook. + Id string `json:"id,omitempty"` + + // Name: Output only. Name of the Webhook + Name string `json:"name,omitempty"` + + // NextRefreshTime: Output only. Next webhook refresh time. Will be null + // if refresh is not supported. + NextRefreshTime string `json:"nextRefreshTime,omitempty"` + + // UpdateTime: Output only. Timestamp when the webhook was last updated. + UpdateTime string `json:"updateTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AdditionalVariables") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AdditionalVariables") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *WebhookData) MarshalJSON() ([]byte, error) { + type NoMethod WebhookData + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // WeeklyCycle: Time window specified for weekly operations. type WeeklyCycle struct { // Schedule: User can specify multiple windows in a week. Minimum of 1 @@ -11159,6 +11309,149 @@ func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) Pages(ctx con } } +// method id "connectors.projects.locations.customConnectors.validateCustomConnectorSpec": + +type ProjectsLocationsCustomConnectorsValidateCustomConnectorSpecCall struct { + s *Service + parent string + validatecustomconnectorspecrequest *ValidateCustomConnectorSpecRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// ValidateCustomConnectorSpec: Validates a Custom Connector Spec. +// +// - parent: Location at which the custom connector is being created. +func (r *ProjectsLocationsCustomConnectorsService) ValidateCustomConnectorSpec(parent string, validatecustomconnectorspecrequest *ValidateCustomConnectorSpecRequest) *ProjectsLocationsCustomConnectorsValidateCustomConnectorSpecCall { + c := &ProjectsLocationsCustomConnectorsValidateCustomConnectorSpecCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.validatecustomconnectorspecrequest = validatecustomconnectorspecrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsCustomConnectorsValidateCustomConnectorSpecCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomConnectorsValidateCustomConnectorSpecCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsCustomConnectorsValidateCustomConnectorSpecCall) Context(ctx context.Context) *ProjectsLocationsCustomConnectorsValidateCustomConnectorSpecCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsCustomConnectorsValidateCustomConnectorSpecCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCustomConnectorsValidateCustomConnectorSpecCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.validatecustomconnectorspecrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/customConnectors:validateCustomConnectorSpec") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "connectors.projects.locations.customConnectors.validateCustomConnectorSpec" call. +// Exactly one of *ValidateCustomConnectorSpecResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *ValidateCustomConnectorSpecResponse.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 *ProjectsLocationsCustomConnectorsValidateCustomConnectorSpecCall) Do(opts ...googleapi.CallOption) (*ValidateCustomConnectorSpecResponse, 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 := &ValidateCustomConnectorSpecResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Validates a Custom Connector Spec.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/customConnectors:validateCustomConnectorSpec", + // "httpMethod": "POST", + // "id": "connectors.projects.locations.customConnectors.validateCustomConnectorSpec", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. Location at which the custom connector is being created.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/customConnectors:validateCustomConnectorSpec", + // "request": { + // "$ref": "ValidateCustomConnectorSpecRequest" + // }, + // "response": { + // "$ref": "ValidateCustomConnectorSpecResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "connectors.projects.locations.endpointAttachments.create": type ProjectsLocationsEndpointAttachmentsCreateCall struct { @@ -13247,140 +13540,6 @@ func (c *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsCreateCal } -// method id "connectors.projects.locations.global.customConnectors.customConnectorVersions.delete": - -type ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Delete: Deletes a single CustomConnectorVersion. -// -// - name: Resource name of the form: -// `projects/{project}/locations/{location}/customConnectors/{custom_co -// nnector}/customConnectorVersions/{custom_connector_version}`. -func (r *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsService) Delete(name string) *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsDeleteCall { - c := &ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsDeleteCall{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 information. -func (c *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsDeleteCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsDeleteCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsDeleteCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "connectors.projects.locations.global.customConnectors.customConnectorVersions.delete" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Operation{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Deletes a single CustomConnectorVersion.", - // "flatPath": "v1/projects/{projectsId}/locations/global/customConnectors/{customConnectorsId}/customConnectorVersions/{customConnectorVersionsId}", - // "httpMethod": "DELETE", - // "id": "connectors.projects.locations.global.customConnectors.customConnectorVersions.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. Resource name of the form: `projects/{project}/locations/{location}/customConnectors/{custom_connector}/customConnectorVersions/{custom_connector_version}`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/global/customConnectors/[^/]+/customConnectorVersions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - // method id "connectors.projects.locations.global.customConnectors.customConnectorVersions.get": type ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsGetCall struct { @@ -13722,168 +13881,6 @@ func (c *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsListCall) } } -// method id "connectors.projects.locations.global.customConnectors.customConnectorVersions.patch": - -type ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsPatchCall struct { - s *Service - name string - customconnectorversion *CustomConnectorVersion - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Patch: Updates the parameters of a CustomConnectorVersion. -// -// - name: Output only. Identifier. Resource name of the Version. -// Format: -// projects/{project}/locations/{location}/customConnectors/{custom_con -// nector}/customConnectorVersions/{custom_connector_version}. -func (r *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsService) Patch(name string, customconnectorversion *CustomConnectorVersion) *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsPatchCall { - c := &ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.customconnectorversion = customconnectorversion - return c -} - -// UpdateMask sets the optional parameter "updateMask": Required. Field -// mask is used to specify the fields to be overwritten in the Connector -// resource by the update. The fields specified in the update_mask are -// relative to the resource, not the full request. A field will be -// overwritten if it is in the mask. Set the mask as "*" for full -// replacement, which means all fields will be overwritten. -func (c *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsPatchCall { - 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 information. -func (c *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsPatchCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsPatchCall) Context(ctx context.Context) *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsPatchCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsPatchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.customconnectorversion) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "connectors.projects.locations.global.customConnectors.customConnectorVersions.patch" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsGlobalCustomConnectorsCustomConnectorVersionsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Operation{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Updates the parameters of a CustomConnectorVersion.", - // "flatPath": "v1/projects/{projectsId}/locations/global/customConnectors/{customConnectorsId}/customConnectorVersions/{customConnectorVersionsId}", - // "httpMethod": "PATCH", - // "id": "connectors.projects.locations.global.customConnectors.customConnectorVersions.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Output only. Identifier. Resource name of the Version. Format: projects/{project}/locations/{location}/customConnectors/{custom_connector}/customConnectorVersions/{custom_connector_version}", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/global/customConnectors/[^/]+/customConnectorVersions/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Required. Field mask is used to specify the fields to be overwritten in the Connector resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. Set the mask as \"*\" for full replacement, which means all fields will be overwritten.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "request": { - // "$ref": "CustomConnectorVersion" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - // method id "connectors.projects.locations.global.managedZones.create": type ProjectsLocationsGlobalManagedZonesCreateCall struct { diff --git a/contactcenterinsights/v1/contactcenterinsights-api.json b/contactcenterinsights/v1/contactcenterinsights-api.json index 52e3a307d48..ff1ee42ea3c 100644 --- a/contactcenterinsights/v1/contactcenterinsights-api.json +++ b/contactcenterinsights/v1/contactcenterinsights-api.json @@ -1473,7 +1473,7 @@ } } }, - "revision": "20240304", + "revision": "20240311", "rootUrl": "https://contactcenterinsights.googleapis.com/", "schemas": { "GoogleCloudContactcenterinsightsV1Analysis": { @@ -1656,11 +1656,13 @@ "description": "Default summarization model to be used.", "enum": [ "SUMMARIZATION_MODEL_UNSPECIFIED", - "BASELINE_MODEL" + "BASELINE_MODEL", + "BASELINE_MODEL_V2_0" ], "enumDescriptions": [ "Unspecified summarization model.", - "The CCAI baseline model." + "The CCAI baseline model.", + "The CCAI baseline model, V2.0." ], "type": "string" } @@ -4234,11 +4236,13 @@ "description": "Default summarization model to be used.", "enum": [ "SUMMARIZATION_MODEL_UNSPECIFIED", - "BASELINE_MODEL" + "BASELINE_MODEL", + "BASELINE_MODEL_V2_0" ], "enumDescriptions": [ "Unspecified summarization model.", - "The CCAI baseline model." + "The CCAI baseline model.", + "The CCAI baseline model, V2.0." ], "type": "string" } diff --git a/contactcenterinsights/v1/contactcenterinsights-gen.go b/contactcenterinsights/v1/contactcenterinsights-gen.go index 9b163b3e77e..b7ec4d2c054 100644 --- a/contactcenterinsights/v1/contactcenterinsights-gen.go +++ b/contactcenterinsights/v1/contactcenterinsights-gen.go @@ -526,6 +526,7 @@ type GoogleCloudContactcenterinsightsV1AnnotatorSelectorSummarizationConfig stru // "SUMMARIZATION_MODEL_UNSPECIFIED" - Unspecified summarization // model. // "BASELINE_MODEL" - The CCAI baseline model. + // "BASELINE_MODEL_V2_0" - The CCAI baseline model, V2.0. SummarizationModel string `json:"summarizationModel,omitempty"` // ForceSendFields is a list of field names (e.g. "ConversationProfile") @@ -4780,6 +4781,7 @@ type GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorSummarizationConfi // "SUMMARIZATION_MODEL_UNSPECIFIED" - Unspecified summarization // model. // "BASELINE_MODEL" - The CCAI baseline model. + // "BASELINE_MODEL_V2_0" - The CCAI baseline model, V2.0. SummarizationModel string `json:"summarizationModel,omitempty"` // ForceSendFields is a list of field names (e.g. "ConversationProfile") diff --git a/content/v2.1/content-api.json b/content/v2.1/content-api.json index 3cb11943ad6..61df382e6f5 100644 --- a/content/v2.1/content-api.json +++ b/content/v2.1/content-api.json @@ -6186,7 +6186,7 @@ } } }, - "revision": "20240225", + "revision": "20240310", "rootUrl": "https://shoppingcontent.googleapis.com/", "schemas": { "Account": { @@ -8841,7 +8841,7 @@ "type": "string" }, "excludedDestinations": { - "description": "The list of destinations to exclude for this target (corresponds to cleared check boxes in Merchant Center). Products that are excluded from all destinations for more than 7 days are automatically deleted.", + "description": "The list of [destinations to exclude](//support.google.com/merchants/answer/6324486) for this target (corresponds to cleared check boxes in Merchant Center). Products that are excluded from all destinations for more than 7 days are automatically deleted.", "items": { "type": "string" }, @@ -8852,7 +8852,7 @@ "type": "string" }, "includedDestinations": { - "description": "The list of destinations to include for this target (corresponds to checked check boxes in Merchant Center). Default destinations are always included unless provided in `excludedDestinations`.", + "description": "The list of [destinations to include](//support.google.com/merchants/answer/7501026) for this target (corresponds to checked check boxes in Merchant Center). Default destinations are always included unless provided in `excludedDestinations`.", "items": { "type": "string" }, @@ -13870,7 +13870,7 @@ "type": "string" }, "excludedDestinations": { - "description": "The list of destinations to exclude for this target (corresponds to cleared check boxes in Merchant Center). Products that are excluded from all destinations for more than 7 days are automatically deleted.", + "description": "The list of [destinations to exclude](//support.google.com/merchants/answer/6324486) for this target (corresponds to cleared check boxes in Merchant Center). Products that are excluded from all destinations for more than 7 days are automatically deleted.", "items": { "type": "string" }, @@ -13913,7 +13913,7 @@ "type": "string" }, "includedDestinations": { - "description": "The list of destinations to include for this target (corresponds to checked check boxes in Merchant Center). Default destinations are always included unless provided in `excludedDestinations`.", + "description": "The list of [destinations to include](//support.google.com/merchants/answer/7501026) for this target (corresponds to checked check boxes in Merchant Center). Default destinations are always included unless provided in `excludedDestinations`.", "items": { "type": "string" }, @@ -14804,6 +14804,27 @@ ], "type": "string" }, + "clickPotential": { + "description": "Estimated performance potential compared to highest performing products of the merchant.", + "enum": [ + "CLICK_POTENTIAL_UNSPECIFIED", + "LOW", + "MEDIUM", + "HIGH" + ], + "enumDescriptions": [ + "Unknown predicted clicks impact.", + "Potential to receive a low number of clicks compared to the highest performing products of the merchant.", + "Potential to receive a moderate number of clicks compared to the highest performing products of the merchant.", + "Potential to receive a similar number of clicks as the highest performing products of the merchant." + ], + "type": "string" + }, + "clickPotentialRank": { + "description": "Rank of the product based on its click potential. A product with `click_potential_rank` 1 has the highest click potential among the merchant's products that fulfill the search query conditions.", + "format": "int64", + "type": "string" + }, "condition": { "description": "Condition of the product.", "type": "string" @@ -16159,6 +16180,10 @@ "segments": { "$ref": "Segments", "description": "Segmentation dimensions requested by the merchant in the query. Dimension values are only set for dimensions requested explicitly in the query." + }, + "topicTrends": { + "$ref": "TopicTrends", + "description": "Topic trends fields requested by the merchant in the query. Field values are only set if the merchant queries `TopicTrendsView`. https://support.google.com/merchants/answer/13542370." } }, "type": "object" @@ -18033,6 +18058,55 @@ }, "type": "object" }, + "TopicTrends": { + "description": "Topic trends fields requested by the merchant in the query. Field values are only set if the merchant queries `TopicTrendsView`.", + "id": "TopicTrends", + "properties": { + "customerCountryCode": { + "description": "Country trends are calculated for. Must be a two-letter country code (ISO 3166-1-alpha-2 code), for example, `“US”`.", + "type": "string" + }, + "date": { + "$ref": "Date", + "description": "Date the trend score was retrieved." + }, + "last120DaysSearchInterest": { + "description": "Search interest in the last 120 days, with the same normalization as search_interest. This field is only present for a past date.", + "format": "double", + "type": "number" + }, + "last30DaysSearchInterest": { + "description": "Search interest in the last 30 days, with the same normalization as search_interest. This field is only present for a past date.", + "format": "double", + "type": "number" + }, + "last7DaysSearchInterest": { + "description": "Search interest in the last 7 days, with the same normalization as search_interest. This field is only present for a past date.", + "format": "double", + "type": "number" + }, + "last90DaysSearchInterest": { + "description": "Search interest in the last 90 days, with the same normalization as search_interest. This field is only present for a past date.", + "format": "double", + "type": "number" + }, + "next7DaysSearchInterest": { + "description": "Estimated search interest in the next 7 days, with the same normalization as search_interest. This field is only present for a future date.", + "format": "double", + "type": "number" + }, + "searchInterest": { + "description": "Daily search interest, normalized to the time and country to make comparisons easier, with 100 representing peak popularity (from 0 to 100) for the requested time period and location.", + "format": "double", + "type": "number" + }, + "topic": { + "description": "Google-provided topic trends are calculated for. Only top eight topics are returned. Topic is what shoppers are searching for on Google, grouped by the same concept.", + "type": "string" + } + }, + "type": "object" + }, "TransitTable": { "id": "TransitTable", "properties": { diff --git a/content/v2.1/content-gen.go b/content/v2.1/content-gen.go index ac1b89e8cb7..23fd2141311 100644 --- a/content/v2.1/content-gen.go +++ b/content/v2.1/content-gen.go @@ -5060,10 +5060,11 @@ type DatafeedTarget struct { // as a CLDR territory code. Country string `json:"country,omitempty"` - // ExcludedDestinations: The list of destinations to exclude for this - // target (corresponds to cleared check boxes in Merchant Center). - // Products that are excluded from all destinations for more than 7 days - // are automatically deleted. + // ExcludedDestinations: The list of destinations to exclude + // (//support.google.com/merchants/answer/6324486) for this target + // (corresponds to cleared check boxes in Merchant Center). Products + // that are excluded from all destinations for more than 7 days are + // automatically deleted. ExcludedDestinations []string `json:"excludedDestinations,omitempty"` // FeedLabel: Feed label for the DatafeedTarget. Either `country` or @@ -5072,9 +5073,10 @@ type DatafeedTarget struct { // uppercase letters (A-Z), numbers (0-9), and dashes (-). FeedLabel string `json:"feedLabel,omitempty"` - // IncludedDestinations: The list of destinations to include for this - // target (corresponds to checked check boxes in Merchant Center). - // Default destinations are always included unless provided in + // IncludedDestinations: The list of destinations to include + // (//support.google.com/merchants/answer/7501026) for this target + // (corresponds to checked check boxes in Merchant Center). Default + // destinations are always included unless provided in // `excludedDestinations`. IncludedDestinations []string `json:"includedDestinations,omitempty"` @@ -13884,10 +13886,11 @@ type Product struct { // directive 2010/30/EU. EnergyEfficiencyClass string `json:"energyEfficiencyClass,omitempty"` - // ExcludedDestinations: The list of destinations to exclude for this - // target (corresponds to cleared check boxes in Merchant Center). - // Products that are excluded from all destinations for more than 7 days - // are automatically deleted. + // ExcludedDestinations: The list of destinations to exclude + // (//support.google.com/merchants/answer/6324486) for this target + // (corresponds to cleared check boxes in Merchant Center). Products + // that are excluded from all destinations for more than 7 days are + // automatically deleted. ExcludedDestinations []string `json:"excludedDestinations,omitempty"` // ExpirationDate: Date on which the item should expire, as specified @@ -13936,9 +13939,10 @@ type Product struct { // ImageLink: URL of an image of the item. ImageLink string `json:"imageLink,omitempty"` - // IncludedDestinations: The list of destinations to include for this - // target (corresponds to checked check boxes in Merchant Center). - // Default destinations are always included unless provided in + // IncludedDestinations: The list of destinations to include + // (//support.google.com/merchants/answer/7501026) for this target + // (corresponds to checked check boxes in Merchant Center). Default + // destinations are always included unless provided in // `excludedDestinations`. IncludedDestinations []string `json:"includedDestinations,omitempty"` @@ -15280,6 +15284,25 @@ type ProductView struct { // "ONLINE" - Indicates that the channel is online. Channel string `json:"channel,omitempty"` + // ClickPotential: Estimated performance potential compared to highest + // performing products of the merchant. + // + // Possible values: + // "CLICK_POTENTIAL_UNSPECIFIED" - Unknown predicted clicks impact. + // "LOW" - Potential to receive a low number of clicks compared to the + // highest performing products of the merchant. + // "MEDIUM" - Potential to receive a moderate number of clicks + // compared to the highest performing products of the merchant. + // "HIGH" - Potential to receive a similar number of clicks as the + // highest performing products of the merchant. + ClickPotential string `json:"clickPotential,omitempty"` + + // ClickPotentialRank: Rank of the product based on its click potential. + // A product with `click_potential_rank` 1 has the highest click + // potential among the merchant's products that fulfill the search query + // conditions. + ClickPotentialRank int64 `json:"clickPotentialRank,omitempty,string"` + // Condition: Condition of the product. Condition string `json:"condition,omitempty"` @@ -17318,6 +17341,12 @@ type ReportRow struct { // explicitly in the query. Segments *Segments `json:"segments,omitempty"` + // TopicTrends: Topic trends fields requested by the merchant in the + // query. Field values are only set if the merchant queries + // `TopicTrendsView`. + // https://support.google.com/merchants/answer/13542370. + TopicTrends *TopicTrends `json:"topicTrends,omitempty"` + // ForceSendFields is a list of field names (e.g. "BestSellers") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -20391,6 +20420,102 @@ func (s *TimeZone) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// TopicTrends: Topic trends fields requested by the merchant in the +// query. Field values are only set if the merchant queries +// `TopicTrendsView`. +type TopicTrends struct { + // CustomerCountryCode: Country trends are calculated for. Must be a + // two-letter country code (ISO 3166-1-alpha-2 code), for example, + // `“US”`. + CustomerCountryCode string `json:"customerCountryCode,omitempty"` + + // Date: Date the trend score was retrieved. + Date *Date `json:"date,omitempty"` + + // Last120DaysSearchInterest: Search interest in the last 120 days, with + // the same normalization as search_interest. This field is only present + // for a past date. + Last120DaysSearchInterest float64 `json:"last120DaysSearchInterest,omitempty"` + + // Last30DaysSearchInterest: Search interest in the last 30 days, with + // the same normalization as search_interest. This field is only present + // for a past date. + Last30DaysSearchInterest float64 `json:"last30DaysSearchInterest,omitempty"` + + // Last7DaysSearchInterest: Search interest in the last 7 days, with the + // same normalization as search_interest. This field is only present for + // a past date. + Last7DaysSearchInterest float64 `json:"last7DaysSearchInterest,omitempty"` + + // Last90DaysSearchInterest: Search interest in the last 90 days, with + // the same normalization as search_interest. This field is only present + // for a past date. + Last90DaysSearchInterest float64 `json:"last90DaysSearchInterest,omitempty"` + + // Next7DaysSearchInterest: Estimated search interest in the next 7 + // days, with the same normalization as search_interest. This field is + // only present for a future date. + Next7DaysSearchInterest float64 `json:"next7DaysSearchInterest,omitempty"` + + // SearchInterest: Daily search interest, normalized to the time and + // country to make comparisons easier, with 100 representing peak + // popularity (from 0 to 100) for the requested time period and + // location. + SearchInterest float64 `json:"searchInterest,omitempty"` + + // Topic: Google-provided topic trends are calculated for. Only top + // eight topics are returned. Topic is what shoppers are searching for + // on Google, grouped by the same concept. + Topic string `json:"topic,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CustomerCountryCode") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CustomerCountryCode") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *TopicTrends) MarshalJSON() ([]byte, error) { + type NoMethod TopicTrends + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *TopicTrends) UnmarshalJSON(data []byte) error { + type NoMethod TopicTrends + var s1 struct { + Last120DaysSearchInterest gensupport.JSONFloat64 `json:"last120DaysSearchInterest"` + Last30DaysSearchInterest gensupport.JSONFloat64 `json:"last30DaysSearchInterest"` + Last7DaysSearchInterest gensupport.JSONFloat64 `json:"last7DaysSearchInterest"` + Last90DaysSearchInterest gensupport.JSONFloat64 `json:"last90DaysSearchInterest"` + Next7DaysSearchInterest gensupport.JSONFloat64 `json:"next7DaysSearchInterest"` + SearchInterest gensupport.JSONFloat64 `json:"searchInterest"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Last120DaysSearchInterest = float64(s1.Last120DaysSearchInterest) + s.Last30DaysSearchInterest = float64(s1.Last30DaysSearchInterest) + s.Last7DaysSearchInterest = float64(s1.Last7DaysSearchInterest) + s.Last90DaysSearchInterest = float64(s1.Last90DaysSearchInterest) + s.Next7DaysSearchInterest = float64(s1.Next7DaysSearchInterest) + s.SearchInterest = float64(s1.SearchInterest) + return nil +} + type TransitTable struct { // PostalCodeGroupNames: A list of postal group names. The last value // can be "all other locations". Example: `["zone 1", "zone 2", "all diff --git a/doubleclickbidmanager/v2/doubleclickbidmanager-api.json b/doubleclickbidmanager/v2/doubleclickbidmanager-api.json index 41de15cd911..e5781dbc80e 100644 --- a/doubleclickbidmanager/v2/doubleclickbidmanager-api.json +++ b/doubleclickbidmanager/v2/doubleclickbidmanager-api.json @@ -319,7 +319,7 @@ } } }, - "revision": "20230703", + "revision": "20240305", "rootUrl": "https://doubleclickbidmanager.googleapis.com/", "schemas": { "ChannelGrouping": { @@ -511,7 +511,7 @@ }, "pathQueryOptions": { "$ref": "PathQueryOptions", - "description": "Options that contain Path Filters and Custom Channel Groupings." + "description": "Options that contain Path Filters and Custom Channel Groupings. This field is deprecated and will sunset on **May 1, 2024**. After sunset, requests using this field will return an error." } }, "type": "object" @@ -586,8 +586,8 @@ "YouTube Programmatic Guaranteed report.", "Reach report.", "Unique Reach Audience report.", - "Full Path report.", - "Path Attribution report." + "Full Path report. This report type is deprecated and will sunset on **May 1, 2024**. After sunset, requests retrieving, creating, or running reports of this type will return an error.", + "Path Attribution report. This report type is deprecated and will sunset on **May 1, 2024**. After sunset, requests retrieving, creating, or running reports of this type will return an error." ], "type": "string" } diff --git a/doubleclickbidmanager/v2/doubleclickbidmanager-gen.go b/doubleclickbidmanager/v2/doubleclickbidmanager-gen.go index fa8cbb9ff28..9a75d0a16cd 100644 --- a/doubleclickbidmanager/v2/doubleclickbidmanager-gen.go +++ b/doubleclickbidmanager/v2/doubleclickbidmanager-gen.go @@ -497,7 +497,9 @@ type Options struct { IncludeOnlyTargetedUserLists bool `json:"includeOnlyTargetedUserLists,omitempty"` // PathQueryOptions: Options that contain Path Filters and Custom - // Channel Groupings. + // Channel Groupings. This field is deprecated and will sunset on **May + // 1, 2024**. After sunset, requests using this field will return an + // error. PathQueryOptions *PathQueryOptions `json:"pathQueryOptions,omitempty"` // ForceSendFields is a list of field names (e.g. @@ -555,8 +557,13 @@ type Parameters struct { // report. // "REACH" - Reach report. // "UNIQUE_REACH_AUDIENCE" - Unique Reach Audience report. - // "FULL_PATH" - Full Path report. - // "PATH_ATTRIBUTION" - Path Attribution report. + // "FULL_PATH" - Full Path report. This report type is deprecated and + // will sunset on **May 1, 2024**. After sunset, requests retrieving, + // creating, or running reports of this type will return an error. + // "PATH_ATTRIBUTION" - Path Attribution report. This report type is + // deprecated and will sunset on **May 1, 2024**. After sunset, requests + // retrieving, creating, or running reports of this type will return an + // error. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Filters") to diff --git a/marketingplatformadmin/v1alpha/marketingplatformadmin-api.json b/marketingplatformadmin/v1alpha/marketingplatformadmin-api.json index f1087c45c5e..247579a11a1 100644 --- a/marketingplatformadmin/v1alpha/marketingplatformadmin-api.json +++ b/marketingplatformadmin/v1alpha/marketingplatformadmin-api.json @@ -15,7 +15,7 @@ "baseUrl": "https://marketingplatformadmin.googleapis.com/", "batchPath": "batch", "canonicalName": "Google Marketing Platform Admin API", - "description": "marketingplatformadmin.googleapis.com API.", + "description": "The Google Marketing Platform Admin API allows for programmatic access to the Google Marketing Platform configuration data. You can use the Google Marketing Platform Admin API to manage links between your Google Marketing Platform organization and Google Analytics accounts, set the service level of your GA4 properties.", "discoveryVersion": "v1", "documentationLink": "https://developers.google.com/analytics/devguides/config/gmp/v1", "fullyEncodeReservedExpansion": true, @@ -235,7 +235,7 @@ } } }, - "revision": "20240229", + "revision": "20240311", "rootUrl": "https://marketingplatformadmin.googleapis.com/", "schemas": { "AnalyticsAccountLink": { diff --git a/people/v1/people-api.json b/people/v1/people-api.json index be182a4d5d9..0d1604055bd 100644 --- a/people/v1/people-api.json +++ b/people/v1/people-api.json @@ -429,12 +429,14 @@ "READ_SOURCE_TYPE_UNSPECIFIED", "READ_SOURCE_TYPE_PROFILE", "READ_SOURCE_TYPE_CONTACT", - "READ_SOURCE_TYPE_DOMAIN_CONTACT" + "READ_SOURCE_TYPE_DOMAIN_CONTACT", + "READ_SOURCE_TYPE_OTHER_CONTACT" ], "enumDescriptions": [ "Unspecified.", "Returns SourceType.ACCOUNT, SourceType.DOMAIN_PROFILE, and SourceType.PROFILE.", "Returns SourceType.CONTACT.", + "Returns SourceType.DOMAIN_CONTACT.", "Returns SourceType.DOMAIN_CONTACT." ], "location": "query", @@ -565,12 +567,14 @@ "READ_SOURCE_TYPE_UNSPECIFIED", "READ_SOURCE_TYPE_PROFILE", "READ_SOURCE_TYPE_CONTACT", - "READ_SOURCE_TYPE_DOMAIN_CONTACT" + "READ_SOURCE_TYPE_DOMAIN_CONTACT", + "READ_SOURCE_TYPE_OTHER_CONTACT" ], "enumDescriptions": [ "Unspecified.", "Returns SourceType.ACCOUNT, SourceType.DOMAIN_PROFILE, and SourceType.PROFILE.", "Returns SourceType.CONTACT.", + "Returns SourceType.DOMAIN_CONTACT.", "Returns SourceType.DOMAIN_CONTACT." ], "location": "query", @@ -642,12 +646,14 @@ "READ_SOURCE_TYPE_UNSPECIFIED", "READ_SOURCE_TYPE_PROFILE", "READ_SOURCE_TYPE_CONTACT", - "READ_SOURCE_TYPE_DOMAIN_CONTACT" + "READ_SOURCE_TYPE_DOMAIN_CONTACT", + "READ_SOURCE_TYPE_OTHER_CONTACT" ], "enumDescriptions": [ "Unspecified.", "Returns SourceType.ACCOUNT, SourceType.DOMAIN_PROFILE, and SourceType.PROFILE.", "Returns SourceType.CONTACT.", + "Returns SourceType.DOMAIN_CONTACT.", "Returns SourceType.DOMAIN_CONTACT." ], "location": "query", @@ -697,12 +703,14 @@ "READ_SOURCE_TYPE_UNSPECIFIED", "READ_SOURCE_TYPE_PROFILE", "READ_SOURCE_TYPE_CONTACT", - "READ_SOURCE_TYPE_DOMAIN_CONTACT" + "READ_SOURCE_TYPE_DOMAIN_CONTACT", + "READ_SOURCE_TYPE_OTHER_CONTACT" ], "enumDescriptions": [ "Unspecified.", "Returns SourceType.ACCOUNT, SourceType.DOMAIN_PROFILE, and SourceType.PROFILE.", "Returns SourceType.CONTACT.", + "Returns SourceType.DOMAIN_CONTACT.", "Returns SourceType.DOMAIN_CONTACT." ], "location": "query", @@ -759,12 +767,14 @@ "READ_SOURCE_TYPE_UNSPECIFIED", "READ_SOURCE_TYPE_PROFILE", "READ_SOURCE_TYPE_CONTACT", - "READ_SOURCE_TYPE_DOMAIN_CONTACT" + "READ_SOURCE_TYPE_DOMAIN_CONTACT", + "READ_SOURCE_TYPE_OTHER_CONTACT" ], "enumDescriptions": [ "Unspecified.", "Returns SourceType.ACCOUNT, SourceType.DOMAIN_PROFILE, and SourceType.PROFILE.", "Returns SourceType.CONTACT.", + "Returns SourceType.DOMAIN_CONTACT.", "Returns SourceType.DOMAIN_CONTACT." ], "location": "query", @@ -893,12 +903,14 @@ "READ_SOURCE_TYPE_UNSPECIFIED", "READ_SOURCE_TYPE_PROFILE", "READ_SOURCE_TYPE_CONTACT", - "READ_SOURCE_TYPE_DOMAIN_CONTACT" + "READ_SOURCE_TYPE_DOMAIN_CONTACT", + "READ_SOURCE_TYPE_OTHER_CONTACT" ], "enumDescriptions": [ "Unspecified.", "Returns SourceType.ACCOUNT, SourceType.DOMAIN_PROFILE, and SourceType.PROFILE.", "Returns SourceType.CONTACT.", + "Returns SourceType.DOMAIN_CONTACT.", "Returns SourceType.DOMAIN_CONTACT." ], "location": "query", @@ -1011,12 +1023,14 @@ "READ_SOURCE_TYPE_UNSPECIFIED", "READ_SOURCE_TYPE_PROFILE", "READ_SOURCE_TYPE_CONTACT", - "READ_SOURCE_TYPE_DOMAIN_CONTACT" + "READ_SOURCE_TYPE_DOMAIN_CONTACT", + "READ_SOURCE_TYPE_OTHER_CONTACT" ], "enumDescriptions": [ "Unspecified.", "Returns SourceType.ACCOUNT, SourceType.DOMAIN_PROFILE, and SourceType.PROFILE.", "Returns SourceType.CONTACT.", + "Returns SourceType.DOMAIN_CONTACT.", "Returns SourceType.DOMAIN_CONTACT." ], "location": "query", @@ -1140,12 +1154,14 @@ "READ_SOURCE_TYPE_UNSPECIFIED", "READ_SOURCE_TYPE_PROFILE", "READ_SOURCE_TYPE_CONTACT", - "READ_SOURCE_TYPE_DOMAIN_CONTACT" + "READ_SOURCE_TYPE_DOMAIN_CONTACT", + "READ_SOURCE_TYPE_OTHER_CONTACT" ], "enumDescriptions": [ "Unspecified.", "Returns SourceType.ACCOUNT, SourceType.DOMAIN_PROFILE, and SourceType.PROFILE.", "Returns SourceType.CONTACT.", + "Returns SourceType.DOMAIN_CONTACT.", "Returns SourceType.DOMAIN_CONTACT." ], "location": "query", @@ -1172,7 +1188,7 @@ } } }, - "revision": "20230621", + "revision": "20240310", "rootUrl": "https://people.googleapis.com/", "schemas": { "Address": { @@ -1281,12 +1297,14 @@ "READ_SOURCE_TYPE_UNSPECIFIED", "READ_SOURCE_TYPE_PROFILE", "READ_SOURCE_TYPE_CONTACT", - "READ_SOURCE_TYPE_DOMAIN_CONTACT" + "READ_SOURCE_TYPE_DOMAIN_CONTACT", + "READ_SOURCE_TYPE_OTHER_CONTACT" ], "enumDescriptions": [ "Unspecified.", "Returns SourceType.ACCOUNT, SourceType.DOMAIN_PROFILE, and SourceType.PROFILE.", "Returns SourceType.CONTACT.", + "Returns SourceType.DOMAIN_CONTACT.", "Returns SourceType.DOMAIN_CONTACT." ], "type": "string" @@ -1361,12 +1379,14 @@ "READ_SOURCE_TYPE_UNSPECIFIED", "READ_SOURCE_TYPE_PROFILE", "READ_SOURCE_TYPE_CONTACT", - "READ_SOURCE_TYPE_DOMAIN_CONTACT" + "READ_SOURCE_TYPE_DOMAIN_CONTACT", + "READ_SOURCE_TYPE_OTHER_CONTACT" ], "enumDescriptions": [ "Unspecified.", "Returns SourceType.ACCOUNT, SourceType.DOMAIN_PROFILE, and SourceType.PROFILE.", "Returns SourceType.CONTACT.", + "Returns SourceType.DOMAIN_CONTACT.", "Returns SourceType.DOMAIN_CONTACT." ], "type": "string" @@ -1654,12 +1674,14 @@ "READ_SOURCE_TYPE_UNSPECIFIED", "READ_SOURCE_TYPE_PROFILE", "READ_SOURCE_TYPE_CONTACT", - "READ_SOURCE_TYPE_DOMAIN_CONTACT" + "READ_SOURCE_TYPE_DOMAIN_CONTACT", + "READ_SOURCE_TYPE_OTHER_CONTACT" ], "enumDescriptions": [ "Unspecified.", "Returns SourceType.ACCOUNT, SourceType.DOMAIN_PROFILE, and SourceType.PROFILE.", "Returns SourceType.CONTACT.", + "Returns SourceType.DOMAIN_CONTACT.", "Returns SourceType.DOMAIN_CONTACT." ], "type": "string" @@ -3210,12 +3232,14 @@ "READ_SOURCE_TYPE_UNSPECIFIED", "READ_SOURCE_TYPE_PROFILE", "READ_SOURCE_TYPE_CONTACT", - "READ_SOURCE_TYPE_DOMAIN_CONTACT" + "READ_SOURCE_TYPE_DOMAIN_CONTACT", + "READ_SOURCE_TYPE_OTHER_CONTACT" ], "enumDescriptions": [ "Unspecified.", "Returns SourceType.ACCOUNT, SourceType.DOMAIN_PROFILE, and SourceType.PROFILE.", "Returns SourceType.CONTACT.", + "Returns SourceType.DOMAIN_CONTACT.", "Returns SourceType.DOMAIN_CONTACT." ], "type": "string" diff --git a/people/v1/people-gen.go b/people/v1/people-gen.go index d568bfb7255..4fa472153df 100644 --- a/people/v1/people-gen.go +++ b/people/v1/people-gen.go @@ -399,6 +399,8 @@ type BatchCreateContactsRequest struct { // "READ_SOURCE_TYPE_CONTACT" - Returns SourceType.CONTACT. // "READ_SOURCE_TYPE_DOMAIN_CONTACT" - Returns // SourceType.DOMAIN_CONTACT. + // "READ_SOURCE_TYPE_OTHER_CONTACT" - Returns + // SourceType.DOMAIN_CONTACT. Sources []string `json:"sources,omitempty"` // ForceSendFields is a list of field names (e.g. "Contacts") to @@ -552,6 +554,8 @@ type BatchUpdateContactsRequest struct { // "READ_SOURCE_TYPE_CONTACT" - Returns SourceType.CONTACT. // "READ_SOURCE_TYPE_DOMAIN_CONTACT" - Returns // SourceType.DOMAIN_CONTACT. + // "READ_SOURCE_TYPE_OTHER_CONTACT" - Returns + // SourceType.DOMAIN_CONTACT. Sources []string `json:"sources,omitempty"` // UpdateMask: Required. A field mask to restrict which fields on the @@ -1051,6 +1055,8 @@ type CopyOtherContactToMyContactsGroupRequest struct { // "READ_SOURCE_TYPE_CONTACT" - Returns SourceType.CONTACT. // "READ_SOURCE_TYPE_DOMAIN_CONTACT" - Returns // SourceType.DOMAIN_CONTACT. + // "READ_SOURCE_TYPE_OTHER_CONTACT" - Returns + // SourceType.DOMAIN_CONTACT. Sources []string `json:"sources,omitempty"` // ForceSendFields is a list of field names (e.g. "CopyMask") to @@ -3281,6 +3287,8 @@ type UpdateContactPhotoRequest struct { // "READ_SOURCE_TYPE_CONTACT" - Returns SourceType.CONTACT. // "READ_SOURCE_TYPE_DOMAIN_CONTACT" - Returns // SourceType.DOMAIN_CONTACT. + // "READ_SOURCE_TYPE_OTHER_CONTACT" - Returns + // SourceType.DOMAIN_CONTACT. Sources []string `json:"sources,omitempty"` // ForceSendFields is a list of field names (e.g. "PersonFields") to @@ -4796,6 +4804,10 @@ func (c *OtherContactsListCall) RequestSyncToken(requestSyncToken bool) *OtherCo // "READ_SOURCE_TYPE_DOMAIN_CONTACT" - Returns // // SourceType.DOMAIN_CONTACT. +// +// "READ_SOURCE_TYPE_OTHER_CONTACT" - Returns +// +// SourceType.DOMAIN_CONTACT. func (c *OtherContactsListCall) Sources(sources ...string) *OtherContactsListCall { c.urlParams_.SetMulti("sources", append([]string{}, sources...)) return c @@ -4942,12 +4954,14 @@ func (c *OtherContactsListCall) Do(opts ...googleapi.CallOption) (*ListOtherCont // "READ_SOURCE_TYPE_UNSPECIFIED", // "READ_SOURCE_TYPE_PROFILE", // "READ_SOURCE_TYPE_CONTACT", - // "READ_SOURCE_TYPE_DOMAIN_CONTACT" + // "READ_SOURCE_TYPE_DOMAIN_CONTACT", + // "READ_SOURCE_TYPE_OTHER_CONTACT" // ], // "enumDescriptions": [ // "Unspecified.", // "Returns SourceType.ACCOUNT, SourceType.DOMAIN_PROFILE, and SourceType.PROFILE.", // "Returns SourceType.CONTACT.", + // "Returns SourceType.DOMAIN_CONTACT.", // "Returns SourceType.DOMAIN_CONTACT." // ], // "location": "query", @@ -5606,6 +5620,10 @@ func (c *PeopleCreateContactCall) PersonFields(personFields string) *PeopleCreat // "READ_SOURCE_TYPE_DOMAIN_CONTACT" - Returns // // SourceType.DOMAIN_CONTACT. +// +// "READ_SOURCE_TYPE_OTHER_CONTACT" - Returns +// +// SourceType.DOMAIN_CONTACT. func (c *PeopleCreateContactCall) Sources(sources ...string) *PeopleCreateContactCall { c.urlParams_.SetMulti("sources", append([]string{}, sources...)) return c @@ -5717,12 +5735,14 @@ func (c *PeopleCreateContactCall) Do(opts ...googleapi.CallOption) (*Person, err // "READ_SOURCE_TYPE_UNSPECIFIED", // "READ_SOURCE_TYPE_PROFILE", // "READ_SOURCE_TYPE_CONTACT", - // "READ_SOURCE_TYPE_DOMAIN_CONTACT" + // "READ_SOURCE_TYPE_DOMAIN_CONTACT", + // "READ_SOURCE_TYPE_OTHER_CONTACT" // ], // "enumDescriptions": [ // "Unspecified.", // "Returns SourceType.ACCOUNT, SourceType.DOMAIN_PROFILE, and SourceType.PROFILE.", // "Returns SourceType.CONTACT.", + // "Returns SourceType.DOMAIN_CONTACT.", // "Returns SourceType.DOMAIN_CONTACT." // ], // "location": "query", @@ -5929,6 +5949,10 @@ func (c *PeopleDeleteContactPhotoCall) PersonFields(personFields string) *People // "READ_SOURCE_TYPE_DOMAIN_CONTACT" - Returns // // SourceType.DOMAIN_CONTACT. +// +// "READ_SOURCE_TYPE_OTHER_CONTACT" - Returns +// +// SourceType.DOMAIN_CONTACT. func (c *PeopleDeleteContactPhotoCall) Sources(sources ...string) *PeopleDeleteContactPhotoCall { c.urlParams_.SetMulti("sources", append([]string{}, sources...)) return c @@ -6047,12 +6071,14 @@ func (c *PeopleDeleteContactPhotoCall) Do(opts ...googleapi.CallOption) (*Delete // "READ_SOURCE_TYPE_UNSPECIFIED", // "READ_SOURCE_TYPE_PROFILE", // "READ_SOURCE_TYPE_CONTACT", - // "READ_SOURCE_TYPE_DOMAIN_CONTACT" + // "READ_SOURCE_TYPE_DOMAIN_CONTACT", + // "READ_SOURCE_TYPE_OTHER_CONTACT" // ], // "enumDescriptions": [ // "Unspecified.", // "Returns SourceType.ACCOUNT, SourceType.DOMAIN_PROFILE, and SourceType.PROFILE.", // "Returns SourceType.CONTACT.", + // "Returns SourceType.DOMAIN_CONTACT.", // "Returns SourceType.DOMAIN_CONTACT." // ], // "location": "query", @@ -6136,6 +6162,10 @@ func (c *PeopleGetCall) RequestMaskIncludeField(requestMaskIncludeField string) // "READ_SOURCE_TYPE_DOMAIN_CONTACT" - Returns // // SourceType.DOMAIN_CONTACT. +// +// "READ_SOURCE_TYPE_OTHER_CONTACT" - Returns +// +// SourceType.DOMAIN_CONTACT. func (c *PeopleGetCall) Sources(sources ...string) *PeopleGetCall { c.urlParams_.SetMulti("sources", append([]string{}, sources...)) return c @@ -6273,12 +6303,14 @@ func (c *PeopleGetCall) Do(opts ...googleapi.CallOption) (*Person, error) { // "READ_SOURCE_TYPE_UNSPECIFIED", // "READ_SOURCE_TYPE_PROFILE", // "READ_SOURCE_TYPE_CONTACT", - // "READ_SOURCE_TYPE_DOMAIN_CONTACT" + // "READ_SOURCE_TYPE_DOMAIN_CONTACT", + // "READ_SOURCE_TYPE_OTHER_CONTACT" // ], // "enumDescriptions": [ // "Unspecified.", // "Returns SourceType.ACCOUNT, SourceType.DOMAIN_PROFILE, and SourceType.PROFILE.", // "Returns SourceType.CONTACT.", + // "Returns SourceType.DOMAIN_CONTACT.", // "Returns SourceType.DOMAIN_CONTACT." // ], // "location": "query", @@ -6378,6 +6410,10 @@ func (c *PeopleGetBatchGetCall) ResourceNames(resourceNames ...string) *PeopleGe // "READ_SOURCE_TYPE_DOMAIN_CONTACT" - Returns // // SourceType.DOMAIN_CONTACT. +// +// "READ_SOURCE_TYPE_OTHER_CONTACT" - Returns +// +// SourceType.DOMAIN_CONTACT. func (c *PeopleGetBatchGetCall) Sources(sources ...string) *PeopleGetBatchGetCall { c.urlParams_.SetMulti("sources", append([]string{}, sources...)) return c @@ -6509,12 +6545,14 @@ func (c *PeopleGetBatchGetCall) Do(opts ...googleapi.CallOption) (*GetPeopleResp // "READ_SOURCE_TYPE_UNSPECIFIED", // "READ_SOURCE_TYPE_PROFILE", // "READ_SOURCE_TYPE_CONTACT", - // "READ_SOURCE_TYPE_DOMAIN_CONTACT" + // "READ_SOURCE_TYPE_DOMAIN_CONTACT", + // "READ_SOURCE_TYPE_OTHER_CONTACT" // ], // "enumDescriptions": [ // "Unspecified.", // "Returns SourceType.ACCOUNT, SourceType.DOMAIN_PROFILE, and SourceType.PROFILE.", // "Returns SourceType.CONTACT.", + // "Returns SourceType.DOMAIN_CONTACT.", // "Returns SourceType.DOMAIN_CONTACT." // ], // "location": "query", @@ -6913,6 +6951,10 @@ func (c *PeopleSearchContactsCall) ReadMask(readMask string) *PeopleSearchContac // "READ_SOURCE_TYPE_DOMAIN_CONTACT" - Returns // // SourceType.DOMAIN_CONTACT. +// +// "READ_SOURCE_TYPE_OTHER_CONTACT" - Returns +// +// SourceType.DOMAIN_CONTACT. func (c *PeopleSearchContactsCall) Sources(sources ...string) *PeopleSearchContactsCall { c.urlParams_.SetMulti("sources", append([]string{}, sources...)) return c @@ -7043,12 +7085,14 @@ func (c *PeopleSearchContactsCall) Do(opts ...googleapi.CallOption) (*SearchResp // "READ_SOURCE_TYPE_UNSPECIFIED", // "READ_SOURCE_TYPE_PROFILE", // "READ_SOURCE_TYPE_CONTACT", - // "READ_SOURCE_TYPE_DOMAIN_CONTACT" + // "READ_SOURCE_TYPE_DOMAIN_CONTACT", + // "READ_SOURCE_TYPE_OTHER_CONTACT" // ], // "enumDescriptions": [ // "Unspecified.", // "Returns SourceType.ACCOUNT, SourceType.DOMAIN_PROFILE, and SourceType.PROFILE.", // "Returns SourceType.CONTACT.", + // "Returns SourceType.DOMAIN_CONTACT.", // "Returns SourceType.DOMAIN_CONTACT." // ], // "location": "query", @@ -7412,6 +7456,10 @@ func (c *PeopleUpdateContactCall) PersonFields(personFields string) *PeopleUpdat // "READ_SOURCE_TYPE_DOMAIN_CONTACT" - Returns // // SourceType.DOMAIN_CONTACT. +// +// "READ_SOURCE_TYPE_OTHER_CONTACT" - Returns +// +// SourceType.DOMAIN_CONTACT. func (c *PeopleUpdateContactCall) Sources(sources ...string) *PeopleUpdateContactCall { c.urlParams_.SetMulti("sources", append([]string{}, sources...)) return c @@ -7549,12 +7597,14 @@ func (c *PeopleUpdateContactCall) Do(opts ...googleapi.CallOption) (*Person, err // "READ_SOURCE_TYPE_UNSPECIFIED", // "READ_SOURCE_TYPE_PROFILE", // "READ_SOURCE_TYPE_CONTACT", - // "READ_SOURCE_TYPE_DOMAIN_CONTACT" + // "READ_SOURCE_TYPE_DOMAIN_CONTACT", + // "READ_SOURCE_TYPE_OTHER_CONTACT" // ], // "enumDescriptions": [ // "Unspecified.", // "Returns SourceType.ACCOUNT, SourceType.DOMAIN_PROFILE, and SourceType.PROFILE.", // "Returns SourceType.CONTACT.", + // "Returns SourceType.DOMAIN_CONTACT.", // "Returns SourceType.DOMAIN_CONTACT." // ], // "location": "query", @@ -7850,6 +7900,10 @@ func (c *PeopleConnectionsListCall) SortOrder(sortOrder string) *PeopleConnectio // "READ_SOURCE_TYPE_DOMAIN_CONTACT" - Returns // // SourceType.DOMAIN_CONTACT. +// +// "READ_SOURCE_TYPE_OTHER_CONTACT" - Returns +// +// SourceType.DOMAIN_CONTACT. func (c *PeopleConnectionsListCall) Sources(sources ...string) *PeopleConnectionsListCall { c.urlParams_.SetMulti("sources", append([]string{}, sources...)) return c @@ -8031,12 +8085,14 @@ func (c *PeopleConnectionsListCall) Do(opts ...googleapi.CallOption) (*ListConne // "READ_SOURCE_TYPE_UNSPECIFIED", // "READ_SOURCE_TYPE_PROFILE", // "READ_SOURCE_TYPE_CONTACT", - // "READ_SOURCE_TYPE_DOMAIN_CONTACT" + // "READ_SOURCE_TYPE_DOMAIN_CONTACT", + // "READ_SOURCE_TYPE_OTHER_CONTACT" // ], // "enumDescriptions": [ // "Unspecified.", // "Returns SourceType.ACCOUNT, SourceType.DOMAIN_PROFILE, and SourceType.PROFILE.", // "Returns SourceType.CONTACT.", + // "Returns SourceType.DOMAIN_CONTACT.", // "Returns SourceType.DOMAIN_CONTACT." // ], // "location": "query", diff --git a/places/v1/places-api.json b/places/v1/places-api.json index c1a7f1e490d..d0df9c1bd7e 100644 --- a/places/v1/places-api.json +++ b/places/v1/places-api.json @@ -276,7 +276,7 @@ } } }, - "revision": "20240219", + "revision": "20240310", "rootUrl": "https://places.googleapis.com/", "schemas": { "GoogleGeoTypeViewport": { @@ -1458,6 +1458,10 @@ "description": "Request proto for SearchText. ", "id": "GoogleMapsPlacesV1SearchTextRequest", "properties": { + "evOptions": { + "$ref": "GoogleMapsPlacesV1SearchTextRequestEVOptions", + "description": "Optional. Set the searchable EV options of a place search request." + }, "includedType": { "description": "The requested place type. Full list of types supported: https://developers.google.com/maps/documentation/places/web-service/place-types. Only support one included type.", "type": "string" @@ -1540,6 +1544,49 @@ }, "type": "object" }, + "GoogleMapsPlacesV1SearchTextRequestEVOptions": { + "description": "Searchable EV options of a place search request.", + "id": "GoogleMapsPlacesV1SearchTextRequestEVOptions", + "properties": { + "connectorTypes": { + "description": "Optional. The list of preferred EV connector types. A place that does not support any of the listed connector types are filter out.", + "items": { + "enum": [ + "EV_CONNECTOR_TYPE_UNSPECIFIED", + "EV_CONNECTOR_TYPE_OTHER", + "EV_CONNECTOR_TYPE_J1772", + "EV_CONNECTOR_TYPE_TYPE_2", + "EV_CONNECTOR_TYPE_CHADEMO", + "EV_CONNECTOR_TYPE_CCS_COMBO_1", + "EV_CONNECTOR_TYPE_CCS_COMBO_2", + "EV_CONNECTOR_TYPE_TESLA", + "EV_CONNECTOR_TYPE_UNSPECIFIED_GB_T", + "EV_CONNECTOR_TYPE_UNSPECIFIED_WALL_OUTLET" + ], + "enumDescriptions": [ + "Unspecified connector.", + "Other connector types.", + "J1772 type 1 connector.", + "IEC 62196 type 2 connector. Often referred to as MENNEKES.", + "CHAdeMO type connector.", + "Combined Charging System (AC and DC). Based on SAE. Type-1 J-1772 connector", + "Combined Charging System (AC and DC). Based on Type-2 Mennekes connector", + "The generic TESLA connector. This is NACS in the North America but can be non-NACS in other parts of the world (e.g. CCS Combo 2 (CCS2) or GB/T). This value is less representative of an actual connector type, and more represents the ability to charge a Tesla brand vehicle at a Tesla owned charging station.", + "GB/T type corresponds to the GB/T standard in China. This type covers all GB_T types.", + "Unspecified wall outlet." + ], + "type": "string" + }, + "type": "array" + }, + "minimumChargingRateKw": { + "description": "Optional. Filtering places by minimum charging rate. Any places with charging a rate less than the minimum charging rate are filtered out.", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, "GoogleMapsPlacesV1SearchTextRequestLocationBias": { "description": "The region to search. This location serves as a bias which means results around given location might be returned.", "id": "GoogleMapsPlacesV1SearchTextRequestLocationBias", diff --git a/places/v1/places-gen.go b/places/v1/places-gen.go index 2b0f224a554..db9ef227e96 100644 --- a/places/v1/places-gen.go +++ b/places/v1/places-gen.go @@ -2142,6 +2142,10 @@ func (s *GoogleMapsPlacesV1SearchNearbyResponse) MarshalJSON() ([]byte, error) { // GoogleMapsPlacesV1SearchTextRequest: Request proto for SearchText. type GoogleMapsPlacesV1SearchTextRequest struct { + // EvOptions: Optional. Set the searchable EV options of a place search + // request. + EvOptions *GoogleMapsPlacesV1SearchTextRequestEVOptions `json:"evOptions,omitempty"` + // IncludedType: The requested place type. Full list of types supported: // https://developers.google.com/maps/documentation/places/web-service/place-types. // Only support one included type. @@ -2226,7 +2230,7 @@ type GoogleMapsPlacesV1SearchTextRequest struct { // TextQuery: Required. The text query for textual search. TextQuery string `json:"textQuery,omitempty"` - // ForceSendFields is a list of field names (e.g. "IncludedType") to + // ForceSendFields is a list of field names (e.g. "EvOptions") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2234,10 +2238,10 @@ type GoogleMapsPlacesV1SearchTextRequest struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "IncludedType") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "EvOptions") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` @@ -2263,6 +2267,79 @@ func (s *GoogleMapsPlacesV1SearchTextRequest) UnmarshalJSON(data []byte) error { return nil } +// GoogleMapsPlacesV1SearchTextRequestEVOptions: Searchable EV options +// of a place search request. +type GoogleMapsPlacesV1SearchTextRequestEVOptions struct { + // ConnectorTypes: Optional. The list of preferred EV connector types. A + // place that does not support any of the listed connector types are + // filter out. + // + // Possible values: + // "EV_CONNECTOR_TYPE_UNSPECIFIED" - Unspecified connector. + // "EV_CONNECTOR_TYPE_OTHER" - Other connector types. + // "EV_CONNECTOR_TYPE_J1772" - J1772 type 1 connector. + // "EV_CONNECTOR_TYPE_TYPE_2" - IEC 62196 type 2 connector. Often + // referred to as MENNEKES. + // "EV_CONNECTOR_TYPE_CHADEMO" - CHAdeMO type connector. + // "EV_CONNECTOR_TYPE_CCS_COMBO_1" - Combined Charging System (AC and + // DC). Based on SAE. Type-1 J-1772 connector + // "EV_CONNECTOR_TYPE_CCS_COMBO_2" - Combined Charging System (AC and + // DC). Based on Type-2 Mennekes connector + // "EV_CONNECTOR_TYPE_TESLA" - The generic TESLA connector. This is + // NACS in the North America but can be non-NACS in other parts of the + // world (e.g. CCS Combo 2 (CCS2) or GB/T). This value is less + // representative of an actual connector type, and more represents the + // ability to charge a Tesla brand vehicle at a Tesla owned charging + // station. + // "EV_CONNECTOR_TYPE_UNSPECIFIED_GB_T" - GB/T type corresponds to the + // GB/T standard in China. This type covers all GB_T types. + // "EV_CONNECTOR_TYPE_UNSPECIFIED_WALL_OUTLET" - Unspecified wall + // outlet. + ConnectorTypes []string `json:"connectorTypes,omitempty"` + + // MinimumChargingRateKw: Optional. Filtering places by minimum charging + // rate. Any places with charging a rate less than the minimum charging + // rate are filtered out. + MinimumChargingRateKw float64 `json:"minimumChargingRateKw,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ConnectorTypes") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ConnectorTypes") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleMapsPlacesV1SearchTextRequestEVOptions) MarshalJSON() ([]byte, error) { + type NoMethod GoogleMapsPlacesV1SearchTextRequestEVOptions + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *GoogleMapsPlacesV1SearchTextRequestEVOptions) UnmarshalJSON(data []byte) error { + type NoMethod GoogleMapsPlacesV1SearchTextRequestEVOptions + var s1 struct { + MinimumChargingRateKw gensupport.JSONFloat64 `json:"minimumChargingRateKw"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.MinimumChargingRateKw = float64(s1.MinimumChargingRateKw) + return nil +} + // GoogleMapsPlacesV1SearchTextRequestLocationBias: The region to // search. This location serves as a bias which means results around // given location might be returned. diff --git a/slides/v1/slides-api.json b/slides/v1/slides-api.json index 0a2a06f9c64..ced20e9f96a 100644 --- a/slides/v1/slides-api.json +++ b/slides/v1/slides-api.json @@ -313,7 +313,7 @@ } } }, - "revision": "20230705", + "revision": "20240305", "rootUrl": "https://slides.googleapis.com/", "schemas": { "AffineTransform": { @@ -2130,6 +2130,10 @@ "$ref": "Size", "description": "The size of the page element." }, + "speakerSpotlight": { + "$ref": "SpeakerSpotlight", + "description": "A Speaker Spotlight." + }, "table": { "$ref": "Table", "description": "A table page element." @@ -3506,6 +3510,32 @@ }, "type": "object" }, + "SpeakerSpotlight": { + "description": "A PageElement kind representing a Speaker Spotlight.", + "id": "SpeakerSpotlight", + "properties": { + "speakerSpotlightProperties": { + "$ref": "SpeakerSpotlightProperties", + "description": "The properties of the Speaker Spotlight." + } + }, + "type": "object" + }, + "SpeakerSpotlightProperties": { + "description": "The properties of the SpeakerSpotlight.", + "id": "SpeakerSpotlightProperties", + "properties": { + "outline": { + "$ref": "Outline", + "description": "The outline of the Speaker Spotlight. If not set, it has no outline." + }, + "shadow": { + "$ref": "Shadow", + "description": "The shadow of the Speaker Spotlight. If not set, it has no shadow." + } + }, + "type": "object" + }, "StretchedPictureFill": { "description": "The stretched picture fill. The page or page element is filled entirely with the specified picture. The picture is stretched to fit its container.", "id": "StretchedPictureFill", diff --git a/slides/v1/slides-gen.go b/slides/v1/slides-gen.go index 08f9b252ae6..12085182514 100644 --- a/slides/v1/slides-gen.go +++ b/slides/v1/slides-gen.go @@ -3259,6 +3259,9 @@ type PageElement struct { // Size: The size of the page element. Size *Size `json:"size,omitempty"` + // SpeakerSpotlight: A Speaker Spotlight. + SpeakerSpotlight *SpeakerSpotlight `json:"speakerSpotlight,omitempty"` + // Table: A table page element. Table *Table `json:"table,omitempty"` @@ -5225,6 +5228,70 @@ func (s *SolidFill) UnmarshalJSON(data []byte) error { return nil } +// SpeakerSpotlight: A PageElement kind representing a Speaker +// Spotlight. +type SpeakerSpotlight struct { + // SpeakerSpotlightProperties: The properties of the Speaker Spotlight. + SpeakerSpotlightProperties *SpeakerSpotlightProperties `json:"speakerSpotlightProperties,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "SpeakerSpotlightProperties") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "SpeakerSpotlightProperties") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted + // from API requests. However, any field with an empty value appearing + // in NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SpeakerSpotlight) MarshalJSON() ([]byte, error) { + type NoMethod SpeakerSpotlight + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SpeakerSpotlightProperties: The properties of the SpeakerSpotlight. +type SpeakerSpotlightProperties struct { + // Outline: The outline of the Speaker Spotlight. If not set, it has no + // outline. + Outline *Outline `json:"outline,omitempty"` + + // Shadow: The shadow of the Speaker Spotlight. If not set, it has no + // shadow. + Shadow *Shadow `json:"shadow,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Outline") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Outline") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SpeakerSpotlightProperties) MarshalJSON() ([]byte, error) { + type NoMethod SpeakerSpotlightProperties + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // StretchedPictureFill: The stretched picture fill. The page or page // element is filled entirely with the specified picture. The picture is // stretched to fit its container. diff --git a/storage/v1/storage-api.json b/storage/v1/storage-api.json index cb34638d2be..0924de91ea2 100644 --- a/storage/v1/storage-api.json +++ b/storage/v1/storage-api.json @@ -33,7 +33,7 @@ "location": "me-central2" } ], - "etag": "\"3135323132313733303039343736303631393739\"", + "etag": "\"37303437343235343136323638383931333233\"", "icons": { "x16": "https://www.google.com/images/icons/product/cloud_storage-16.png", "x32": "https://www.google.com/images/icons/product/cloud_storage-32.png" @@ -3212,9 +3212,6 @@ } }, "path": "b/{bucket}/o/{object}/restore", - "request": { - "$ref": "Object" - }, "response": { "$ref": "Object" }, @@ -4040,7 +4037,7 @@ } } }, - "revision": "20240209", + "revision": "20240307", "rootUrl": "https://storage.googleapis.com/", "schemas": { "AnywhereCache": { diff --git a/storage/v1/storage-gen.go b/storage/v1/storage-gen.go index 6f01795faa9..6b74b813dde 100644 --- a/storage/v1/storage-gen.go +++ b/storage/v1/storage-gen.go @@ -15052,7 +15052,6 @@ type ObjectsRestoreCall struct { s *Service bucket string object string - object2 *Object urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header @@ -15064,11 +15063,10 @@ type ObjectsRestoreCall struct { // - generation: Selects a specific revision of this object. // - object: Name of the object. For information about how to URL encode // object names to be path safe, see Encoding URI Path Parts. -func (r *ObjectsService) Restore(bucket string, object string, object2 *Object) *ObjectsRestoreCall { +func (r *ObjectsService) Restore(bucket string, object string) *ObjectsRestoreCall { c := &ObjectsRestoreCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.bucket = bucket c.object = object - c.object2 = object2 return c } @@ -15168,11 +15166,6 @@ func (c *ObjectsRestoreCall) doRequest(alt string) (*http.Response, error) { } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.object2) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "b/{bucket}/o/{object}/restore") @@ -15303,9 +15296,6 @@ func (c *ObjectsRestoreCall) Do(opts ...googleapi.CallOption) (*Object, error) { // } // }, // "path": "b/{bucket}/o/{object}/restore", - // "request": { - // "$ref": "Object" - // }, // "response": { // "$ref": "Object" // }, diff --git a/youtube/v3/youtube-api.json b/youtube/v3/youtube-api.json index db996fcf121..18ad1a8737d 100644 --- a/youtube/v3/youtube-api.json +++ b/youtube/v3/youtube-api.json @@ -4037,7 +4037,7 @@ } } }, - "revision": "20240303", + "revision": "20240310", "rootUrl": "https://youtube.googleapis.com/", "schemas": { "AbuseReport": { @@ -5356,6 +5356,7 @@ "type": "string" }, "moderateComments": { + "deprecated": true, "description": "Whether user-submitted comments left on the channel page need to be approved by the channel owner to be publicly visible.", "type": "boolean" }, @@ -8744,6 +8745,10 @@ "LiveChatMessageListResponse": { "id": "LiveChatMessageListResponse", "properties": { + "activePollItem": { + "$ref": "LiveChatMessage", + "description": "Set when there is an active poll." + }, "etag": { "description": "Etag of this resource.", "type": "string" diff --git a/youtube/v3/youtube-gen.go b/youtube/v3/youtube-gen.go index 413649a0172..d040d95ae4d 100644 --- a/youtube/v3/youtube-gen.go +++ b/youtube/v3/youtube-gen.go @@ -5801,6 +5801,9 @@ func (s *LiveChatMessageDeletedDetails) MarshalJSON() ([]byte, error) { } type LiveChatMessageListResponse struct { + // ActivePollItem: Set when there is an active poll. + ActivePollItem *LiveChatMessage `json:"activePollItem,omitempty"` + // Etag: Etag of this resource. Etag string `json:"etag,omitempty"` @@ -5835,7 +5838,7 @@ type LiveChatMessageListResponse struct { // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Etag") to + // ForceSendFields is a list of field names (e.g. "ActivePollItem") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -5843,12 +5846,13 @@ type LiveChatMessageListResponse struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Etag") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ActivePollItem") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` }