diff --git a/aiplatform/v1/aiplatform-api.json b/aiplatform/v1/aiplatform-api.json index 9242da59585..bceaddad83e 100644 --- a/aiplatform/v1/aiplatform-api.json +++ b/aiplatform/v1/aiplatform-api.json @@ -4216,6 +4216,34 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "update": { + "description": "Updates an Endpoint with a long running operation.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:update", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.endpoints.update", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. The resource name of the Endpoint.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:update", + "request": { + "$ref": "GoogleCloudAiplatformV1UpdateEndpointLongRunningRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } }, "resources": { @@ -4521,7 +4549,7 @@ "type": "integer" }, "pageToken": { - "description": "A page token, received from a previous FeatureGroupAdminService.ListFeatureGroups call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeatureGroupAdminService.ListFeatureGroups must match the call that provided the page token.", + "description": "A page token, received from a previous FeatureRegistryService.ListFeatureGroups call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeatureRegistryService.ListFeatureGroups must match the call that provided the page token.", "location": "query", "type": "string" }, @@ -12143,7 +12171,7 @@ "type": "integer" }, "pageToken": { - "description": "Optional. The standard list page token. Typically obtained via ListNotebookExecutionJobs.next_page_token of the previous NotebookService.ListNotebookExecutionJobs call.", + "description": "Optional. The standard list page token. Typically obtained via ListNotebookExecutionJobsResponse.next_page_token of the previous NotebookService.ListNotebookExecutionJobs call.", "location": "query", "type": "string" }, @@ -13372,7 +13400,7 @@ "type": "integer" }, "pageToken": { - "description": "Optional. The standard list page token. Typically obtained via ListPersistentResourceResponse.next_page_token of the previous PersistentResourceService.ListPersistentResource call.", + "description": "Optional. The standard list page token. Typically obtained via ListPersistentResourcesResponse.next_page_token of the previous PersistentResourceService.ListPersistentResource call.", "location": "query", "type": "string" }, @@ -14281,6 +14309,316 @@ } } }, + "reasoningEngines": { + "methods": { + "create": { + "description": "Creates a reasoning engine.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/reasoningEngines", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.reasoningEngines.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The resource name of the Location to create the ReasoningEngine in. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/reasoningEngines", + "request": { + "$ref": "GoogleCloudAiplatformV1ReasoningEngine" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a reasoning engine.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/reasoningEngines/{reasoningEnginesId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.reasoningEngines.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the ReasoningEngine resource to be deleted. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets a reasoning engine.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/reasoningEngines/{reasoningEnginesId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.reasoningEngines.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the ReasoningEngine resource. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudAiplatformV1ReasoningEngine" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists reasoning engines in a location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/reasoningEngines", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.reasoningEngines.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. The standard list filter. More detail in [AIP-160](https://google.aip.dev/160).", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. The standard list page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the Location to list the ReasoningEngines from. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/reasoningEngines", + "response": { + "$ref": "GoogleCloudAiplatformV1ListReasoningEnginesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates a reasoning engine.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/reasoningEngines/{reasoningEnginesId}", + "httpMethod": "PATCH", + "id": "aiplatform.projects.locations.reasoningEngines.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Identifier. The resource name of the ReasoningEngine.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. Mask specifying which fields to update.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudAiplatformV1ReasoningEngine" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "operations": { + "methods": { + "cancel": { + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/reasoningEngines/{reasoningEnginesId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.reasoningEngines.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:cancel", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/reasoningEngines/{reasoningEnginesId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.reasoningEngines.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/reasoningEngines/{reasoningEnginesId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.reasoningEngines.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/reasoningEngines/{reasoningEnginesId}/operations", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.reasoningEngines.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/reasoningEngines/{reasoningEnginesId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.reasoningEngines.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + }, + "timeout": { + "description": "The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.", + "format": "google-duration", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}:wait", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, "schedules": { "methods": { "create": { @@ -14470,7 +14808,7 @@ ] }, "resume": { - "description": "Resumes a paused Schedule to start scheduling new runs. Will mark Schedule.state to 'ACTIVE'. Only paused Schedule can be resumed. When the Schedule is resumed, new runs will be scheduled starting from the next execution time after the current time based on the time_specification in the Schedule. If Schedule.catchUp is set up true, all missed runs will be scheduled for backfill first.", + "description": "Resumes a paused Schedule to start scheduling new runs. Will mark Schedule.state to 'ACTIVE'. Only paused Schedule can be resumed. When the Schedule is resumed, new runs will be scheduled starting from the next execution time after the current time based on the time_specification in the Schedule. If Schedule.catch_up is set up true, all missed runs will be scheduled for backfill first.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schedules/{schedulesId}:resume", "httpMethod": "POST", "id": "aiplatform.projects.locations.schedules.resume", @@ -17717,7 +18055,7 @@ "type": "integer" }, "pageToken": { - "description": "Optional. The standard list page token. Typically obtained via ListTuningJob.next_page_token of the previous GenAiTuningService.ListTuningJob][] call.", + "description": "Optional. The standard list page token. Typically obtained via ListTuningJobsResponse.next_page_token of the previous GenAiTuningService.ListTuningJob][] call.", "location": "query", "type": "string" }, @@ -18073,7 +18411,7 @@ } } }, - "revision": "20241026", + "revision": "20241112", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "CloudAiLargeModelsVisionGenerateVideoResponse": { @@ -19109,7 +19447,7 @@ }, "request": { "$ref": "GoogleCloudAiplatformV1MigrateResourceRequest", - "description": "It's the same as the value in MigrateResourceRequest.migrate_resource_requests." + "description": "It's the same as the value in BatchMigrateResourcesRequest.migrate_resource_requests." } }, "type": "object" @@ -19952,6 +20290,80 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1CometInput": { + "description": "Input for Comet metric.", + "id": "GoogleCloudAiplatformV1CometInput", + "properties": { + "instance": { + "$ref": "GoogleCloudAiplatformV1CometInstance", + "description": "Required. Comet instance." + }, + "metricSpec": { + "$ref": "GoogleCloudAiplatformV1CometSpec", + "description": "Required. Spec for comet metric." + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1CometInstance": { + "description": "Spec for Comet instance - The fields used for evaluation are dependent on the comet version.", + "id": "GoogleCloudAiplatformV1CometInstance", + "properties": { + "prediction": { + "description": "Required. Output of the evaluated model.", + "type": "string" + }, + "reference": { + "description": "Optional. Ground truth used to compare against the prediction.", + "type": "string" + }, + "source": { + "description": "Optional. Source text in original language.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1CometResult": { + "description": "Spec for Comet result - calculates the comet score for the given instance using the version specified in the spec.", + "id": "GoogleCloudAiplatformV1CometResult", + "properties": { + "score": { + "description": "Output only. Comet score. Range depends on version.", + "format": "float", + "readOnly": true, + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1CometSpec": { + "description": "Spec for Comet metric.", + "id": "GoogleCloudAiplatformV1CometSpec", + "properties": { + "sourceLanguage": { + "description": "Optional. Source language in BCP-47 format.", + "type": "string" + }, + "targetLanguage": { + "description": "Optional. Target language in BCP-47 format. Covers both prediction and reference.", + "type": "string" + }, + "version": { + "description": "Required. Which version to use for evaluation.", + "enum": [ + "COMET_VERSION_UNSPECIFIED", + "COMET_22_SRC_REF" + ], + "enumDescriptions": [ + "Comet version unspecified.", + "Comet 22 for translation + source + reference (source-reference-combined)." + ], + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1CompleteTrialRequest": { "description": "Request message for VizierService.CompleteTrial.", "id": "GoogleCloudAiplatformV1CompleteTrialRequest", @@ -21558,6 +21970,10 @@ "$ref": "GoogleCloudAiplatformV1ExplanationSpec", "description": "Explanation configuration for this DeployedModel. When deploying a Model using EndpointService.DeployModel, this value overrides the value of Model.explanation_spec. All fields of explanation_spec are optional in the request. If a field of explanation_spec is not populated, the value of the same field of Model.explanation_spec is inherited. If the corresponding Model.explanation_spec is not populated, all fields of the explanation_spec will be used for the explanation configuration." }, + "fasterDeploymentConfig": { + "$ref": "GoogleCloudAiplatformV1FasterDeploymentConfig", + "description": "Configuration for faster model deployment." + }, "id": { "description": "Immutable. The ID of the DeployedModel. If not provided upon deployment, Vertex AI will generate a value for this ID. This value should be 1-10 characters, and valid characters are `/[0-9]/`.", "type": "string" @@ -22059,6 +22475,10 @@ "$ref": "GoogleCloudAiplatformV1CoherenceInput", "description": "Input for coherence metric." }, + "cometInput": { + "$ref": "GoogleCloudAiplatformV1CometInput", + "description": "Translation metrics. Input for Comet metric." + }, "exactMatchInput": { "$ref": "GoogleCloudAiplatformV1ExactMatchInput", "description": "Auto metric instances. Instances and metric spec for exact match metric." @@ -22075,6 +22495,10 @@ "$ref": "GoogleCloudAiplatformV1GroundednessInput", "description": "Input for groundedness metric." }, + "metricxInput": { + "$ref": "GoogleCloudAiplatformV1MetricxInput", + "description": "Input for Metricx metric." + }, "pairwiseMetricInput": { "$ref": "GoogleCloudAiplatformV1PairwiseMetricInput", "description": "Input for pairwise metric." @@ -22158,6 +22582,10 @@ "$ref": "GoogleCloudAiplatformV1CoherenceResult", "description": "Result for coherence metric." }, + "cometResult": { + "$ref": "GoogleCloudAiplatformV1CometResult", + "description": "Translation metrics. Result for Comet metric." + }, "exactMatchResults": { "$ref": "GoogleCloudAiplatformV1ExactMatchResults", "description": "Auto metric evaluation results. Results for exact match metric." @@ -22174,6 +22602,10 @@ "$ref": "GoogleCloudAiplatformV1GroundednessResult", "description": "Result for groundedness metric." }, + "metricxResult": { + "$ref": "GoogleCloudAiplatformV1MetricxResult", + "description": "Result for Metricx metric." + }, "pairwiseMetricResult": { "$ref": "GoogleCloudAiplatformV1PairwiseMetricResult", "description": "Result for pairwise metric." @@ -23049,7 +23481,7 @@ "id": "GoogleCloudAiplatformV1ExportDataConfig", "properties": { "annotationSchemaUri": { - "description": "The Cloud Storage URI that points to a YAML file describing the annotation schema. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). The schema files that can be used here are found in gs://google-cloud-aiplatform/schema/dataset/annotation/, note that the chosen schema must be consistent with metadata of the Dataset specified by dataset_id. Only used for custom training data export use cases. Only applicable to Datasets that have DataItems and Annotations. Only Annotations that both match this schema and belong to DataItems not ignored by the split method are used in respectively training, validation or test role, depending on the role of the DataItem they are on. When used in conjunction with annotations_filter, the Annotations used for training are filtered by both annotations_filter and annotation_schema_uri.", + "description": "The Cloud Storage URI that points to a YAML file describing the annotation schema. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). The schema files that can be used here are found in gs://google-cloud-aiplatform/schema/dataset/annotation/, note that the chosen schema must be consistent with metadata of the Dataset specified by ExportDataRequest.name. Only used for custom training data export use cases. Only applicable to Datasets that have DataItems and Annotations. Only Annotations that both match this schema and belong to DataItems not ignored by the split method are used in respectively training, validation or test role, depending on the role of the DataItem they are on. When used in conjunction with annotations_filter, the Annotations used for training are filtered by both annotations_filter and annotation_schema_uri.", "type": "string" }, "annotationsFilter": { @@ -23081,7 +23513,7 @@ "description": "The Google Cloud Storage location where the output is to be written to. In the given directory a new directory will be created with name: `export-data--` where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All export output will be written into that directory. Inside that directory, annotations with the same schema will be grouped into sub directories which are named with the corresponding annotations' schema title. Inside these sub directories, a schema.yaml will be created to describe the output format." }, "savedQueryId": { - "description": "The ID of a SavedQuery (annotation set) under the Dataset specified by dataset_id used for filtering Annotations for training. Only used for custom training data export use cases. Only applicable to Datasets that have SavedQueries. Only Annotations that are associated with this SavedQuery are used in respectively training. When used in conjunction with annotations_filter, the Annotations used for training are filtered by both saved_query_id and annotations_filter. Only one of saved_query_id and annotation_schema_uri should be specified as both of them represent the same thing: problem type.", + "description": "The ID of a SavedQuery (annotation set) under the Dataset specified by ExportDataRequest.name used for filtering Annotations for training. Only used for custom training data export use cases. Only applicable to Datasets that have SavedQueries. Only Annotations that are associated with this SavedQuery are used in respectively training. When used in conjunction with annotations_filter, the Annotations used for training are filtered by both saved_query_id and annotations_filter. Only one of saved_query_id and annotation_schema_uri should be specified as both of them represent the same thing: problem type.", "type": "string" } }, @@ -23364,6 +23796,17 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1FasterDeploymentConfig": { + "description": "Configuration for faster model deployment.", + "id": "GoogleCloudAiplatformV1FasterDeploymentConfig", + "properties": { + "fastTryoutEnabled": { + "description": "If true, enable fast tryout feature for this deployed model.", + "type": "boolean" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1Feature": { "description": "Feature Metadata information. For example, color is a feature that describes an apple.", "id": "GoogleCloudAiplatformV1Feature", @@ -26832,7 +27275,7 @@ "id": "GoogleCloudAiplatformV1ListNotebookExecutionJobsResponse", "properties": { "nextPageToken": { - "description": "A token to retrieve next page of results. Pass to ListNotebookExecutionJobs.page_token to obtain that page.", + "description": "A token to retrieve next page of results. Pass to ListNotebookExecutionJobsRequest.page_token to obtain that page.", "type": "string" }, "notebookExecutionJobs": { @@ -26936,6 +27379,24 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1ListReasoningEnginesResponse": { + "description": "Response message for ReasoningEngineService.ListReasoningEngines", + "id": "GoogleCloudAiplatformV1ListReasoningEnginesResponse", + "properties": { + "nextPageToken": { + "description": "A token to retrieve the next page of results. Pass to ListReasoningEnginesRequest.page_token to obtain that page.", + "type": "string" + }, + "reasoningEngines": { + "description": "List of ReasoningEngines in the requested page.", + "items": { + "$ref": "GoogleCloudAiplatformV1ReasoningEngine" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1ListSavedQueriesResponse": { "description": "Response message for DatasetService.ListSavedQueries.", "id": "GoogleCloudAiplatformV1ListSavedQueriesResponse", @@ -27458,6 +27919,84 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1MetricxInput": { + "description": "Input for MetricX metric.", + "id": "GoogleCloudAiplatformV1MetricxInput", + "properties": { + "instance": { + "$ref": "GoogleCloudAiplatformV1MetricxInstance", + "description": "Required. Metricx instance." + }, + "metricSpec": { + "$ref": "GoogleCloudAiplatformV1MetricxSpec", + "description": "Required. Spec for Metricx metric." + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1MetricxInstance": { + "description": "Spec for MetricX instance - The fields used for evaluation are dependent on the MetricX version.", + "id": "GoogleCloudAiplatformV1MetricxInstance", + "properties": { + "prediction": { + "description": "Required. Output of the evaluated model.", + "type": "string" + }, + "reference": { + "description": "Optional. Ground truth used to compare against the prediction.", + "type": "string" + }, + "source": { + "description": "Optional. Source text in original language.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1MetricxResult": { + "description": "Spec for MetricX result - calculates the MetricX score for the given instance using the version specified in the spec.", + "id": "GoogleCloudAiplatformV1MetricxResult", + "properties": { + "score": { + "description": "Output only. MetricX score. Range depends on version.", + "format": "float", + "readOnly": true, + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1MetricxSpec": { + "description": "Spec for MetricX metric.", + "id": "GoogleCloudAiplatformV1MetricxSpec", + "properties": { + "sourceLanguage": { + "description": "Optional. Source language in BCP-47 format.", + "type": "string" + }, + "targetLanguage": { + "description": "Optional. Target language in BCP-47 format. Covers both prediction and reference.", + "type": "string" + }, + "version": { + "description": "Required. Which version to use for evaluation.", + "enum": [ + "METRICX_VERSION_UNSPECIFIED", + "METRICX_24_REF", + "METRICX_24_SRC", + "METRICX_24_SRC_REF" + ], + "enumDescriptions": [ + "MetricX version unspecified.", + "MetricX 2024 (2.6) for translation + reference (reference-based).", + "MetricX 2024 (2.6) for translation + source (QE).", + "MetricX 2024 (2.6) for translation + source + reference (source-reference-combined)." + ], + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1MigratableResource": { "description": "Represents one resource that exists in automl.googleapis.com, datalabeling.googleapis.com or ml.googleapis.com.", "id": "GoogleCloudAiplatformV1MigratableResource", @@ -28547,7 +29086,7 @@ "description": "Email alert config." }, "enableLogging": { - "description": "Dump the anomalies to Cloud Logging. The anomalies will be put to json payload encoded from proto google.cloud.aiplatform.logging.ModelMonitoringAnomaliesLogEntry. This can be further sinked to Pub/Sub or any other services supported by Cloud Logging.", + "description": "Dump the anomalies to Cloud Logging. The anomalies will be put to json payload encoded from proto ModelMonitoringStatsAnomalies. This can be further synced to Pub/Sub or any other services supported by Cloud Logging.", "type": "boolean" }, "notificationChannels": { @@ -29650,7 +30189,7 @@ }, "encryptionSpec": { "$ref": "GoogleCloudAiplatformV1EncryptionSpec", - "description": "Customer-managed encryption key spec for the notebook execution job. This field is auto-populated if the NotebookService.NotebookRuntimeTemplate has an encryption spec." + "description": "Customer-managed encryption key spec for the notebook execution job. This field is auto-populated if the NotebookRuntimeTemplate has an encryption spec." }, "executionTimeout": { "description": "Max running time of the execution job in seconds (default 86400s / 24 hrs).", @@ -29702,6 +30241,10 @@ "readOnly": true, "type": "string" }, + "kernelName": { + "description": "The name of the kernel to use during notebook execution. If unset, the default kernel is used.", + "type": "string" + }, "labels": { "additionalProperties": { "type": "string" @@ -29737,6 +30280,10 @@ "format": "google-datetime", "readOnly": true, "type": "string" + }, + "workbenchRuntime": { + "$ref": "GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime", + "description": "The Workbench runtime configuration to use for the notebook execution." } }, "type": "object" @@ -29802,6 +30349,12 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime": { + "description": "Configuration for a Workbench Instances-based environment.", + "id": "GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime", + "properties": {}, + "type": "object" + }, "GoogleCloudAiplatformV1NotebookIdleShutdownConfig": { "description": "The idle shutdown configuration of NotebookRuntimeTemplate, which contains the idle_timeout as required field.", "id": "GoogleCloudAiplatformV1NotebookIdleShutdownConfig", @@ -32471,6 +33024,90 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1ReasoningEngine": { + "description": "ReasoningEngine provides a customizable runtime for models to determine which actions to take and in which order.", + "id": "GoogleCloudAiplatformV1ReasoningEngine", + "properties": { + "createTime": { + "description": "Output only. Timestamp when this ReasoningEngine was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "Optional. The description of the ReasoningEngine.", + "type": "string" + }, + "displayName": { + "description": "Required. The display name of the ReasoningEngine.", + "type": "string" + }, + "etag": { + "description": "Optional. Used to perform consistent read-modify-write updates. If not set, a blind \"overwrite\" update happens.", + "type": "string" + }, + "name": { + "description": "Identifier. The resource name of the ReasoningEngine.", + "type": "string" + }, + "spec": { + "$ref": "GoogleCloudAiplatformV1ReasoningEngineSpec", + "description": "Required. Configurations of the ReasoningEngine" + }, + "updateTime": { + "description": "Output only. Timestamp when this ReasoningEngine was most recently updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1ReasoningEngineSpec": { + "description": "ReasoningEngine configurations", + "id": "GoogleCloudAiplatformV1ReasoningEngineSpec", + "properties": { + "classMethods": { + "description": "Optional. Declarations for object class methods in OpenAPI specification format.", + "items": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "type": "object" + }, + "type": "array" + }, + "packageSpec": { + "$ref": "GoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec", + "description": "Required. User provided package spec of the ReasoningEngine." + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec": { + "description": "User provided package spec like pickled object and package requirements.", + "id": "GoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec", + "properties": { + "dependencyFilesGcsUri": { + "description": "Optional. The Cloud Storage URI of the dependency files in tar.gz format.", + "type": "string" + }, + "pickleObjectGcsUri": { + "description": "Optional. The Cloud Storage URI of the pickled python object.", + "type": "string" + }, + "pythonVersion": { + "description": "Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11. If not specified, default value is 3.10.", + "type": "string" + }, + "requirementsGcsUri": { + "description": "Optional. The Cloud Storage URI of the `requirements.txt` file", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1RebaseTunedModelRequest": { "description": "Request message for GenAiTuningService.RebaseTunedModel.", "id": "GoogleCloudAiplatformV1RebaseTunedModelRequest", @@ -33305,7 +33942,7 @@ "type": "string" }, "restartJobOnWorkerRestart": { - "description": "Restarts the entire CustomJob if a worker gets restarted. This feature can be used by distributed training jobs that are not resilient to workers leaving and joining a job.", + "description": "Optional. Restarts the entire CustomJob if a worker gets restarted. This feature can be used by distributed training jobs that are not resilient to workers leaving and joining a job.", "type": "boolean" }, "strategy": { @@ -33337,7 +33974,7 @@ "type": "string" }, "timeout": { - "description": "The maximum job running time. The default is 7 days.", + "description": "Optional. The maximum job running time. The default is 7 days.", "format": "google-duration", "type": "string" } @@ -38010,7 +38647,7 @@ "type": "object" }, "GoogleCloudAiplatformV1StreamingReadFeatureValuesRequest": { - "description": "Request message for FeaturestoreOnlineServingService.StreamingFeatureValuesRead.", + "description": "Request message for FeaturestoreOnlineServingService.StreamingReadFeatureValues.", "id": "GoogleCloudAiplatformV1StreamingReadFeatureValuesRequest", "properties": { "entityIds": { @@ -40494,6 +41131,17 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1UpdateEndpointLongRunningRequest": { + "description": "Request message for EndpointService.UpdateEndpointLongRunning.", + "id": "GoogleCloudAiplatformV1UpdateEndpointLongRunningRequest", + "properties": { + "endpoint": { + "$ref": "GoogleCloudAiplatformV1Endpoint", + "description": "Required. The Endpoint which replaces the resource on the server. Currently we only support updating the `client_connection_config` field, all the other fields' update will be blocked." + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1UpdateExplanationDatasetOperationMetadata": { "description": "Runtime operation information for ModelService.UpdateExplanationDataset.", "id": "GoogleCloudAiplatformV1UpdateExplanationDatasetOperationMetadata", @@ -40818,6 +41466,7 @@ "type": "integer" }, "vectorDistanceThreshold": { + "deprecated": true, "description": "Optional. Only return results with vector distance smaller than the threshold.", "format": "double", "type": "number" diff --git a/aiplatform/v1/aiplatform-gen.go b/aiplatform/v1/aiplatform-gen.go index 55580a9433a..3f4e02ea90a 100644 --- a/aiplatform/v1/aiplatform-gen.go +++ b/aiplatform/v1/aiplatform-gen.go @@ -241,6 +241,7 @@ func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs.PersistentResources = NewProjectsLocationsPersistentResourcesService(s) rs.PipelineJobs = NewProjectsLocationsPipelineJobsService(s) rs.Publishers = NewProjectsLocationsPublishersService(s) + rs.ReasoningEngines = NewProjectsLocationsReasoningEnginesService(s) rs.Schedules = NewProjectsLocationsSchedulesService(s) rs.SpecialistPools = NewProjectsLocationsSpecialistPoolsService(s) rs.Studies = NewProjectsLocationsStudiesService(s) @@ -301,6 +302,8 @@ type ProjectsLocationsService struct { Publishers *ProjectsLocationsPublishersService + ReasoningEngines *ProjectsLocationsReasoningEnginesService + Schedules *ProjectsLocationsSchedulesService SpecialistPools *ProjectsLocationsSpecialistPoolsService @@ -1142,6 +1145,27 @@ type ProjectsLocationsPublishersModelsService struct { s *Service } +func NewProjectsLocationsReasoningEnginesService(s *Service) *ProjectsLocationsReasoningEnginesService { + rs := &ProjectsLocationsReasoningEnginesService{s: s} + rs.Operations = NewProjectsLocationsReasoningEnginesOperationsService(s) + return rs +} + +type ProjectsLocationsReasoningEnginesService struct { + s *Service + + Operations *ProjectsLocationsReasoningEnginesOperationsService +} + +func NewProjectsLocationsReasoningEnginesOperationsService(s *Service) *ProjectsLocationsReasoningEnginesOperationsService { + rs := &ProjectsLocationsReasoningEnginesOperationsService{s: s} + return rs +} + +type ProjectsLocationsReasoningEnginesOperationsService struct { + s *Service +} + func NewProjectsLocationsSchedulesService(s *Service) *ProjectsLocationsSchedulesService { rs := &ProjectsLocationsSchedulesService{s: s} rs.Operations = NewProjectsLocationsSchedulesOperationsService(s) @@ -2858,7 +2882,7 @@ type GoogleCloudAiplatformV1BatchMigrateResourcesOperationMetadataPartialResult // Model: Migrated model resource name. Model string `json:"model,omitempty"` // Request: It's the same as the value in - // MigrateResourceRequest.migrate_resource_requests. + // BatchMigrateResourcesRequest.migrate_resource_requests. Request *GoogleCloudAiplatformV1MigrateResourceRequest `json:"request,omitempty"` // ForceSendFields is a list of field names (e.g. "Dataset") to unconditionally // include in API requests. By default, fields with empty or default values are @@ -4116,6 +4140,126 @@ func (s GoogleCloudAiplatformV1CoherenceSpec) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1CometInput: Input for Comet metric. +type GoogleCloudAiplatformV1CometInput struct { + // Instance: Required. Comet instance. + Instance *GoogleCloudAiplatformV1CometInstance `json:"instance,omitempty"` + // MetricSpec: Required. Spec for comet metric. + MetricSpec *GoogleCloudAiplatformV1CometSpec `json:"metricSpec,omitempty"` + // ForceSendFields is a list of field names (e.g. "Instance") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Instance") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1CometInput) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1CometInput + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1CometInstance: Spec for Comet instance - The fields +// used for evaluation are dependent on the comet version. +type GoogleCloudAiplatformV1CometInstance struct { + // Prediction: Required. Output of the evaluated model. + Prediction string `json:"prediction,omitempty"` + // Reference: Optional. Ground truth used to compare against the prediction. + Reference string `json:"reference,omitempty"` + // Source: Optional. Source text in original language. + Source string `json:"source,omitempty"` + // ForceSendFields is a list of field names (e.g. "Prediction") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Prediction") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1CometInstance) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1CometInstance + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1CometResult: Spec for Comet result - calculates the +// comet score for the given instance using the version specified in the spec. +type GoogleCloudAiplatformV1CometResult struct { + // Score: Output only. Comet score. Range depends on version. + Score float64 `json:"score,omitempty"` + // ForceSendFields is a list of field names (e.g. "Score") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Score") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1CometResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1CometResult + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudAiplatformV1CometResult) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudAiplatformV1CometResult + var s1 struct { + Score gensupport.JSONFloat64 `json:"score"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Score = float64(s1.Score) + return nil +} + +// GoogleCloudAiplatformV1CometSpec: Spec for Comet metric. +type GoogleCloudAiplatformV1CometSpec struct { + // SourceLanguage: Optional. Source language in BCP-47 format. + SourceLanguage string `json:"sourceLanguage,omitempty"` + // TargetLanguage: Optional. Target language in BCP-47 format. Covers both + // prediction and reference. + TargetLanguage string `json:"targetLanguage,omitempty"` + // Version: Required. Which version to use for evaluation. + // + // Possible values: + // "COMET_VERSION_UNSPECIFIED" - Comet version unspecified. + // "COMET_22_SRC_REF" - Comet 22 for translation + source + reference + // (source-reference-combined). + Version string `json:"version,omitempty"` + // ForceSendFields is a list of field names (e.g. "SourceLanguage") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "SourceLanguage") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1CometSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1CometSpec + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1CompleteTrialRequest: Request message for // VizierService.CompleteTrial. type GoogleCloudAiplatformV1CompleteTrialRequest struct { @@ -6450,6 +6594,8 @@ type GoogleCloudAiplatformV1DeployedModel struct { // corresponding Model.explanation_spec is not populated, all fields of the // explanation_spec will be used for the explanation configuration. ExplanationSpec *GoogleCloudAiplatformV1ExplanationSpec `json:"explanationSpec,omitempty"` + // FasterDeploymentConfig: Configuration for faster model deployment. + FasterDeploymentConfig *GoogleCloudAiplatformV1FasterDeploymentConfig `json:"fasterDeploymentConfig,omitempty"` // Id: Immutable. The ID of the DeployedModel. If not provided upon deployment, // Vertex AI will generate a value for this ID. This value should be 1-10 // characters, and valid characters are `/[0-9]/`. @@ -7183,6 +7329,8 @@ type GoogleCloudAiplatformV1EvaluateInstancesRequest struct { BleuInput *GoogleCloudAiplatformV1BleuInput `json:"bleuInput,omitempty"` // CoherenceInput: Input for coherence metric. CoherenceInput *GoogleCloudAiplatformV1CoherenceInput `json:"coherenceInput,omitempty"` + // CometInput: Translation metrics. Input for Comet metric. + CometInput *GoogleCloudAiplatformV1CometInput `json:"cometInput,omitempty"` // ExactMatchInput: Auto metric instances. Instances and metric spec for exact // match metric. ExactMatchInput *GoogleCloudAiplatformV1ExactMatchInput `json:"exactMatchInput,omitempty"` @@ -7193,6 +7341,8 @@ type GoogleCloudAiplatformV1EvaluateInstancesRequest struct { FulfillmentInput *GoogleCloudAiplatformV1FulfillmentInput `json:"fulfillmentInput,omitempty"` // GroundednessInput: Input for groundedness metric. GroundednessInput *GoogleCloudAiplatformV1GroundednessInput `json:"groundednessInput,omitempty"` + // MetricxInput: Input for Metricx metric. + MetricxInput *GoogleCloudAiplatformV1MetricxInput `json:"metricxInput,omitempty"` // PairwiseMetricInput: Input for pairwise metric. PairwiseMetricInput *GoogleCloudAiplatformV1PairwiseMetricInput `json:"pairwiseMetricInput,omitempty"` // PairwiseQuestionAnsweringQualityInput: Input for pairwise question answering @@ -7258,6 +7408,8 @@ type GoogleCloudAiplatformV1EvaluateInstancesResponse struct { BleuResults *GoogleCloudAiplatformV1BleuResults `json:"bleuResults,omitempty"` // CoherenceResult: Result for coherence metric. CoherenceResult *GoogleCloudAiplatformV1CoherenceResult `json:"coherenceResult,omitempty"` + // CometResult: Translation metrics. Result for Comet metric. + CometResult *GoogleCloudAiplatformV1CometResult `json:"cometResult,omitempty"` // ExactMatchResults: Auto metric evaluation results. Results for exact match // metric. ExactMatchResults *GoogleCloudAiplatformV1ExactMatchResults `json:"exactMatchResults,omitempty"` @@ -7268,6 +7420,8 @@ type GoogleCloudAiplatformV1EvaluateInstancesResponse struct { FulfillmentResult *GoogleCloudAiplatformV1FulfillmentResult `json:"fulfillmentResult,omitempty"` // GroundednessResult: Result for groundedness metric. GroundednessResult *GoogleCloudAiplatformV1GroundednessResult `json:"groundednessResult,omitempty"` + // MetricxResult: Result for Metricx metric. + MetricxResult *GoogleCloudAiplatformV1MetricxResult `json:"metricxResult,omitempty"` // PairwiseMetricResult: Result for pairwise metric. PairwiseMetricResult *GoogleCloudAiplatformV1PairwiseMetricResult `json:"pairwiseMetricResult,omitempty"` // PairwiseQuestionAnsweringQualityResult: Result for pairwise question @@ -8428,13 +8582,13 @@ type GoogleCloudAiplatformV1ExportDataConfig struct { // The schema files that can be used here are found in // gs://google-cloud-aiplatform/schema/dataset/annotation/, note that the // chosen schema must be consistent with metadata of the Dataset specified by - // dataset_id. Only used for custom training data export use cases. Only - // applicable to Datasets that have DataItems and Annotations. Only Annotations - // that both match this schema and belong to DataItems not ignored by the split - // method are used in respectively training, validation or test role, depending - // on the role of the DataItem they are on. When used in conjunction with - // annotations_filter, the Annotations used for training are filtered by both - // annotations_filter and annotation_schema_uri. + // ExportDataRequest.name. Only used for custom training data export use cases. + // Only applicable to Datasets that have DataItems and Annotations. Only + // Annotations that both match this schema and belong to DataItems not ignored + // by the split method are used in respectively training, validation or test + // role, depending on the role of the DataItem they are on. When used in + // conjunction with annotations_filter, the Annotations used for training are + // filtered by both annotations_filter and annotation_schema_uri. AnnotationSchemaUri string `json:"annotationSchemaUri,omitempty"` // AnnotationsFilter: An expression for filtering what part of the Dataset is // to be exported. Only Annotations that match this filter will be exported. @@ -8460,14 +8614,14 @@ type GoogleCloudAiplatformV1ExportDataConfig struct { // describe the output format. GcsDestination *GoogleCloudAiplatformV1GcsDestination `json:"gcsDestination,omitempty"` // SavedQueryId: The ID of a SavedQuery (annotation set) under the Dataset - // specified by dataset_id used for filtering Annotations for training. Only - // used for custom training data export use cases. Only applicable to Datasets - // that have SavedQueries. Only Annotations that are associated with this - // SavedQuery are used in respectively training. When used in conjunction with - // annotations_filter, the Annotations used for training are filtered by both - // saved_query_id and annotations_filter. Only one of saved_query_id and - // annotation_schema_uri should be specified as both of them represent the same - // thing: problem type. + // specified by ExportDataRequest.name used for filtering Annotations for + // training. Only used for custom training data export use cases. Only + // applicable to Datasets that have SavedQueries. Only Annotations that are + // associated with this SavedQuery are used in respectively training. When used + // in conjunction with annotations_filter, the Annotations used for training + // are filtered by both saved_query_id and annotations_filter. Only one of + // saved_query_id and annotation_schema_uri should be specified as both of them + // represent the same thing: problem type. SavedQueryId string `json:"savedQueryId,omitempty"` // ForceSendFields is a list of field names (e.g. "AnnotationSchemaUri") to // unconditionally include in API requests. By default, fields with empty or @@ -8975,6 +9129,30 @@ func (s GoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataResponse) MarshalJ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1FasterDeploymentConfig: Configuration for faster +// model deployment. +type GoogleCloudAiplatformV1FasterDeploymentConfig struct { + // FastTryoutEnabled: If true, enable fast tryout feature for this deployed + // model. + FastTryoutEnabled bool `json:"fastTryoutEnabled,omitempty"` + // ForceSendFields is a list of field names (e.g. "FastTryoutEnabled") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "FastTryoutEnabled") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1FasterDeploymentConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1FasterDeploymentConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1Feature: Feature Metadata information. For example, // color is a feature that describes an apple. type GoogleCloudAiplatformV1Feature struct { @@ -14014,7 +14192,7 @@ func (s GoogleCloudAiplatformV1ListNasTrialDetailsResponse) MarshalJSON() ([]byt // for [NotebookService.CreateNotebookExecutionJob] type GoogleCloudAiplatformV1ListNotebookExecutionJobsResponse struct { // NextPageToken: A token to retrieve next page of results. Pass to - // ListNotebookExecutionJobs.page_token to obtain that page. + // ListNotebookExecutionJobsRequest.page_token to obtain that page. NextPageToken string `json:"nextPageToken,omitempty"` // NotebookExecutionJobs: List of NotebookExecutionJobs in the requested page. NotebookExecutionJobs []*GoogleCloudAiplatformV1NotebookExecutionJob `json:"notebookExecutionJobs,omitempty"` @@ -14188,6 +14366,35 @@ func (s GoogleCloudAiplatformV1ListPipelineJobsResponse) MarshalJSON() ([]byte, return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1ListReasoningEnginesResponse: Response message for +// ReasoningEngineService.ListReasoningEngines +type GoogleCloudAiplatformV1ListReasoningEnginesResponse struct { + // NextPageToken: A token to retrieve the next page of results. Pass to + // ListReasoningEnginesRequest.page_token to obtain that page. + NextPageToken string `json:"nextPageToken,omitempty"` + // ReasoningEngines: List of ReasoningEngines in the requested page. + ReasoningEngines []*GoogleCloudAiplatformV1ReasoningEngine `json:"reasoningEngines,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1ListReasoningEnginesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1ListReasoningEnginesResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1ListSavedQueriesResponse: Response message for // DatasetService.ListSavedQueries. type GoogleCloudAiplatformV1ListSavedQueriesResponse struct { @@ -14951,6 +15158,130 @@ func (s GoogleCloudAiplatformV1MetadataStoreMetadataStoreState) MarshalJSON() ([ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1MetricxInput: Input for MetricX metric. +type GoogleCloudAiplatformV1MetricxInput struct { + // Instance: Required. Metricx instance. + Instance *GoogleCloudAiplatformV1MetricxInstance `json:"instance,omitempty"` + // MetricSpec: Required. Spec for Metricx metric. + MetricSpec *GoogleCloudAiplatformV1MetricxSpec `json:"metricSpec,omitempty"` + // ForceSendFields is a list of field names (e.g. "Instance") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Instance") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1MetricxInput) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1MetricxInput + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1MetricxInstance: Spec for MetricX instance - The +// fields used for evaluation are dependent on the MetricX version. +type GoogleCloudAiplatformV1MetricxInstance struct { + // Prediction: Required. Output of the evaluated model. + Prediction string `json:"prediction,omitempty"` + // Reference: Optional. Ground truth used to compare against the prediction. + Reference string `json:"reference,omitempty"` + // Source: Optional. Source text in original language. + Source string `json:"source,omitempty"` + // ForceSendFields is a list of field names (e.g. "Prediction") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Prediction") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1MetricxInstance) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1MetricxInstance + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1MetricxResult: Spec for MetricX result - calculates +// the MetricX score for the given instance using the version specified in the +// spec. +type GoogleCloudAiplatformV1MetricxResult struct { + // Score: Output only. MetricX score. Range depends on version. + Score float64 `json:"score,omitempty"` + // ForceSendFields is a list of field names (e.g. "Score") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Score") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1MetricxResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1MetricxResult + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudAiplatformV1MetricxResult) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudAiplatformV1MetricxResult + var s1 struct { + Score gensupport.JSONFloat64 `json:"score"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Score = float64(s1.Score) + return nil +} + +// GoogleCloudAiplatformV1MetricxSpec: Spec for MetricX metric. +type GoogleCloudAiplatformV1MetricxSpec struct { + // SourceLanguage: Optional. Source language in BCP-47 format. + SourceLanguage string `json:"sourceLanguage,omitempty"` + // TargetLanguage: Optional. Target language in BCP-47 format. Covers both + // prediction and reference. + TargetLanguage string `json:"targetLanguage,omitempty"` + // Version: Required. Which version to use for evaluation. + // + // Possible values: + // "METRICX_VERSION_UNSPECIFIED" - MetricX version unspecified. + // "METRICX_24_REF" - MetricX 2024 (2.6) for translation + reference + // (reference-based). + // "METRICX_24_SRC" - MetricX 2024 (2.6) for translation + source (QE). + // "METRICX_24_SRC_REF" - MetricX 2024 (2.6) for translation + source + + // reference (source-reference-combined). + Version string `json:"version,omitempty"` + // ForceSendFields is a list of field names (e.g. "SourceLanguage") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "SourceLanguage") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1MetricxSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1MetricxSpec + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1MigratableResource: Represents one resource that // exists in automl.googleapis.com, datalabeling.googleapis.com or // ml.googleapis.com. @@ -16492,9 +16823,8 @@ type GoogleCloudAiplatformV1ModelMonitoringAlertConfig struct { // EmailAlertConfig: Email alert config. EmailAlertConfig *GoogleCloudAiplatformV1ModelMonitoringAlertConfigEmailAlertConfig `json:"emailAlertConfig,omitempty"` // EnableLogging: Dump the anomalies to Cloud Logging. The anomalies will be - // put to json payload encoded from proto - // google.cloud.aiplatform.logging.ModelMonitoringAnomaliesLogEntry. This can - // be further sinked to Pub/Sub or any other services supported by Cloud + // put to json payload encoded from proto ModelMonitoringStatsAnomalies. This + // can be further synced to Pub/Sub or any other services supported by Cloud // Logging. EnableLogging bool `json:"enableLogging,omitempty"` // NotificationChannels: Resource names of the NotificationChannels to send @@ -17943,8 +18273,8 @@ type GoogleCloudAiplatformV1NotebookExecutionJob struct { // up to 128 characters long and can consist of any UTF-8 characters. DisplayName string `json:"displayName,omitempty"` // EncryptionSpec: Customer-managed encryption key spec for the notebook - // execution job. This field is auto-populated if the - // NotebookService.NotebookRuntimeTemplate has an encryption spec. + // execution job. This field is auto-populated if the NotebookRuntimeTemplate + // has an encryption spec. EncryptionSpec *GoogleCloudAiplatformV1EncryptionSpec `json:"encryptionSpec,omitempty"` // ExecutionTimeout: Max running time of the execution job in seconds (default // 86400s / 24 hrs). @@ -17980,6 +18310,9 @@ type GoogleCloudAiplatformV1NotebookExecutionJob struct { // "JOB_STATE_PARTIALLY_SUCCEEDED" - The job is partially succeeded, some // results may be missing due to errors. JobState string `json:"jobState,omitempty"` + // KernelName: The name of the kernel to use during notebook execution. If + // unset, the default kernel is used. + KernelName string `json:"kernelName,omitempty"` // Labels: The labels with user-defined metadata to organize // NotebookExecutionJobs. Label keys and values can be no longer than 64 // characters (Unicode codepoints), can only contain lowercase letters, numeric @@ -18007,6 +18340,9 @@ type GoogleCloudAiplatformV1NotebookExecutionJob struct { // UpdateTime: Output only. Timestamp when this NotebookExecutionJob was most // recently updated. UpdateTime string `json:"updateTime,omitempty"` + // WorkbenchRuntime: The Workbench runtime configuration to use for the + // notebook execution. + WorkbenchRuntime *GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime `json:"workbenchRuntime,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` @@ -18135,6 +18471,11 @@ func (s GoogleCloudAiplatformV1NotebookExecutionJobGcsNotebookSource) MarshalJSO return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime: Configuration +// for a Workbench Instances-based environment. +type GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime struct { +} + // GoogleCloudAiplatformV1NotebookIdleShutdownConfig: The idle shutdown // configuration of NotebookRuntimeTemplate, which contains the idle_timeout as // required field. @@ -21742,6 +22083,105 @@ func (s GoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData) Mar return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1ReasoningEngine: ReasoningEngine provides a +// customizable runtime for models to determine which actions to take and in +// which order. +type GoogleCloudAiplatformV1ReasoningEngine struct { + // CreateTime: Output only. Timestamp when this ReasoningEngine was created. + CreateTime string `json:"createTime,omitempty"` + // Description: Optional. The description of the ReasoningEngine. + Description string `json:"description,omitempty"` + // DisplayName: Required. The display name of the ReasoningEngine. + DisplayName string `json:"displayName,omitempty"` + // Etag: Optional. Used to perform consistent read-modify-write updates. If not + // set, a blind "overwrite" update happens. + Etag string `json:"etag,omitempty"` + // Name: Identifier. The resource name of the ReasoningEngine. + Name string `json:"name,omitempty"` + // Spec: Required. Configurations of the ReasoningEngine + Spec *GoogleCloudAiplatformV1ReasoningEngineSpec `json:"spec,omitempty"` + // UpdateTime: Output only. Timestamp when this ReasoningEngine was most + // recently updated. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CreateTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1ReasoningEngine) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1ReasoningEngine + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1ReasoningEngineSpec: ReasoningEngine configurations +type GoogleCloudAiplatformV1ReasoningEngineSpec struct { + // ClassMethods: Optional. Declarations for object class methods in OpenAPI + // specification format. + ClassMethods []googleapi.RawMessage `json:"classMethods,omitempty"` + // PackageSpec: Required. User provided package spec of the ReasoningEngine. + PackageSpec *GoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec `json:"packageSpec,omitempty"` + // ForceSendFields is a list of field names (e.g. "ClassMethods") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ClassMethods") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1ReasoningEngineSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1ReasoningEngineSpec + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec: User provided package +// spec like pickled object and package requirements. +type GoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec struct { + // DependencyFilesGcsUri: Optional. The Cloud Storage URI of the dependency + // files in tar.gz format. + DependencyFilesGcsUri string `json:"dependencyFilesGcsUri,omitempty"` + // PickleObjectGcsUri: Optional. The Cloud Storage URI of the pickled python + // object. + PickleObjectGcsUri string `json:"pickleObjectGcsUri,omitempty"` + // PythonVersion: Optional. The Python version. Currently support 3.8, 3.9, + // 3.10, 3.11. If not specified, default value is 3.10. + PythonVersion string `json:"pythonVersion,omitempty"` + // RequirementsGcsUri: Optional. The Cloud Storage URI of the + // `requirements.txt` file + RequirementsGcsUri string `json:"requirementsGcsUri,omitempty"` + // ForceSendFields is a list of field names (e.g. "DependencyFilesGcsUri") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DependencyFilesGcsUri") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1RebaseTunedModelRequest: Request message for // GenAiTuningService.RebaseTunedModel. type GoogleCloudAiplatformV1RebaseTunedModelRequest struct { @@ -22924,9 +23364,9 @@ type GoogleCloudAiplatformV1Scheduling struct { // set to [Strategy.DWS_FLEX_START]. If set to 0, the job will wait // indefinitely. The default is 24 hours. MaxWaitDuration string `json:"maxWaitDuration,omitempty"` - // RestartJobOnWorkerRestart: Restarts the entire CustomJob if a worker gets - // restarted. This feature can be used by distributed training jobs that are - // not resilient to workers leaving and joining a job. + // RestartJobOnWorkerRestart: Optional. Restarts the entire CustomJob if a + // worker gets restarted. This feature can be used by distributed training jobs + // that are not resilient to workers leaving and joining a job. RestartJobOnWorkerRestart bool `json:"restartJobOnWorkerRestart,omitempty"` // Strategy: Optional. This determines which type of scheduling strategy to // use. @@ -22941,7 +23381,7 @@ type GoogleCloudAiplatformV1Scheduling struct { // "SPOT" - Spot provisioning strategy uses spot resources. // "FLEX_START" - Flex Start strategy uses DWS to queue for resources. Strategy string `json:"strategy,omitempty"` - // Timeout: The maximum job running time. The default is 7 days. + // Timeout: Optional. The maximum job running time. The default is 7 days. Timeout string `json:"timeout,omitempty"` // ForceSendFields is a list of field names (e.g. "DisableRetries") to // unconditionally include in API requests. By default, fields with empty or @@ -30439,7 +30879,7 @@ func (s GoogleCloudAiplatformV1StreamingPredictResponse) MarshalJSON() ([]byte, } // GoogleCloudAiplatformV1StreamingReadFeatureValuesRequest: Request message -// for FeaturestoreOnlineServingService.StreamingFeatureValuesRead. +// for FeaturestoreOnlineServingService.StreamingReadFeatureValues. type GoogleCloudAiplatformV1StreamingReadFeatureValuesRequest struct { // EntityIds: Required. IDs of entities to read Feature values of. The maximum // number of IDs is 100. For example, for a machine learning model predicting @@ -33871,6 +34311,31 @@ func (s GoogleCloudAiplatformV1UpdateDeploymentResourcePoolOperationMetadata) Ma return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1UpdateEndpointLongRunningRequest: Request message for +// EndpointService.UpdateEndpointLongRunning. +type GoogleCloudAiplatformV1UpdateEndpointLongRunningRequest struct { + // Endpoint: Required. The Endpoint which replaces the resource on the server. + // Currently we only support updating the `client_connection_config` field, all + // the other fields' update will be blocked. + Endpoint *GoogleCloudAiplatformV1Endpoint `json:"endpoint,omitempty"` + // ForceSendFields is a list of field names (e.g. "Endpoint") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Endpoint") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1UpdateEndpointLongRunningRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1UpdateEndpointLongRunningRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1UpdateExplanationDatasetOperationMetadata: Runtime // operation information for ModelService.UpdateExplanationDataset. type GoogleCloudAiplatformV1UpdateExplanationDatasetOperationMetadata struct { @@ -49550,163 +50015,58 @@ func (c *ProjectsLocationsEndpointsUndeployModelCall) Do(opts ...googleapi.CallO return ret, nil } -type ProjectsLocationsEndpointsChatCompletionsCall struct { - s *Service - endpoint string - googleapihttpbody *GoogleApiHttpBody - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsEndpointsUpdateCall struct { + s *Service + name string + googlecloudaiplatformv1updateendpointlongrunningrequest *GoogleCloudAiplatformV1UpdateEndpointLongRunningRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Completions: Exposes an OpenAI-compatible endpoint for chat completions. +// Update: Updates an Endpoint with a long running operation. // -// - endpoint: The name of the endpoint requested to serve the prediction. -// Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`. -func (r *ProjectsLocationsEndpointsChatService) Completions(endpoint string, googleapihttpbody *GoogleApiHttpBody) *ProjectsLocationsEndpointsChatCompletionsCall { - c := &ProjectsLocationsEndpointsChatCompletionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.endpoint = endpoint - c.googleapihttpbody = googleapihttpbody +// - name: Output only. The resource name of the Endpoint. +func (r *ProjectsLocationsEndpointsService) Update(name string, googlecloudaiplatformv1updateendpointlongrunningrequest *GoogleCloudAiplatformV1UpdateEndpointLongRunningRequest) *ProjectsLocationsEndpointsUpdateCall { + c := &ProjectsLocationsEndpointsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudaiplatformv1updateendpointlongrunningrequest = googlecloudaiplatformv1updateendpointlongrunningrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsEndpointsChatCompletionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsChatCompletionsCall { +func (c *ProjectsLocationsEndpointsUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsEndpointsChatCompletionsCall) Context(ctx context.Context) *ProjectsLocationsEndpointsChatCompletionsCall { +func (c *ProjectsLocationsEndpointsUpdateCall) Context(ctx context.Context) *ProjectsLocationsEndpointsUpdateCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsEndpointsChatCompletionsCall) Header() http.Header { +func (c *ProjectsLocationsEndpointsUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsChatCompletionsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEndpointsUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1updateendpointlongrunningrequest) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+endpoint}/chat/completions") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "endpoint": c.endpoint, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "aiplatform.projects.locations.endpoints.chat.completions" call. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleApiHttpBody.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 *ProjectsLocationsEndpointsChatCompletionsCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, 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 := &GoogleApiHttpBody{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - -type ProjectsLocationsEndpointsOperationsCancelCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Cancel: Starts asynchronous cancellation on a long-running operation. The -// server makes a best effort to cancel the operation, but success is not -// guaranteed. If the server doesn't support this method, it returns -// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or -// other methods to check whether the cancellation succeeded or whether the -// operation completed despite cancellation. On successful cancellation, the -// operation is not deleted; instead, it becomes an operation with an -// Operation.error value with a google.rpc.Status.code of 1, corresponding to -// `Code.CANCELLED`. -// -// - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsEndpointsOperationsService) Cancel(name string) *ProjectsLocationsEndpointsOperationsCancelCall { - c := &ProjectsLocationsEndpointsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsEndpointsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsOperationsCancelCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsEndpointsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsEndpointsOperationsCancelCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsEndpointsOperationsCancelCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsEndpointsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:update") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -49719,222 +50079,429 @@ func (c *ProjectsLocationsEndpointsOperationsCancelCall) doRequest(alt string) ( return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.endpoints.operations.cancel" call. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsEndpointsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleProtobufEmpty{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - -type ProjectsLocationsEndpointsOperationsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Delete: Deletes a long-running operation. This method indicates that the -// client is no longer interested in the operation result. It does not cancel -// the operation. If the server doesn't support this method, it returns -// `google.rpc.Code.UNIMPLEMENTED`. -// -// - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsEndpointsOperationsService) Delete(name string) *ProjectsLocationsEndpointsOperationsDeleteCall { - c := &ProjectsLocationsEndpointsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsEndpointsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsOperationsDeleteCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsEndpointsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsEndpointsOperationsDeleteCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsEndpointsOperationsDeleteCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsEndpointsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "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 "aiplatform.projects.locations.endpoints.operations.delete" call. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsEndpointsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleProtobufEmpty{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - -type ProjectsLocationsEndpointsOperationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets the latest state of a long-running operation. Clients can use this -// method to poll the operation result at intervals as recommended by the API -// service. -// -// - name: The name of the operation resource. -func (r *ProjectsLocationsEndpointsOperationsService) Get(name string) *ProjectsLocationsEndpointsOperationsGetCall { - c := &ProjectsLocationsEndpointsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsEndpointsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsOperationsGetCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *ProjectsLocationsEndpointsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEndpointsOperationsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsEndpointsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsEndpointsOperationsGetCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsEndpointsOperationsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsEndpointsOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "aiplatform.projects.locations.endpoints.operations.get" call. +// Do executes the "aiplatform.projects.locations.endpoints.update" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was because // http.StatusNotModified was returned. -func (c *ProjectsLocationsEndpointsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsEndpointsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsEndpointsChatCompletionsCall struct { + s *Service + endpoint string + googleapihttpbody *GoogleApiHttpBody + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Completions: Exposes an OpenAI-compatible endpoint for chat completions. +// +// - endpoint: The name of the endpoint requested to serve the prediction. +// Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`. +func (r *ProjectsLocationsEndpointsChatService) Completions(endpoint string, googleapihttpbody *GoogleApiHttpBody) *ProjectsLocationsEndpointsChatCompletionsCall { + c := &ProjectsLocationsEndpointsChatCompletionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.endpoint = endpoint + c.googleapihttpbody = googleapihttpbody + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsEndpointsChatCompletionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsChatCompletionsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsEndpointsChatCompletionsCall) Context(ctx context.Context) *ProjectsLocationsEndpointsChatCompletionsCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsEndpointsChatCompletionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsEndpointsChatCompletionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+endpoint}/chat/completions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "endpoint": c.endpoint, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.endpoints.chat.completions" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleApiHttpBody.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 *ProjectsLocationsEndpointsChatCompletionsCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, 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 := &GoogleApiHttpBody{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsEndpointsOperationsCancelCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Cancel: Starts asynchronous cancellation on a long-running operation. The +// server makes a best effort to cancel the operation, but success is not +// guaranteed. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or +// other methods to check whether the cancellation succeeded or whether the +// operation completed despite cancellation. On successful cancellation, the +// operation is not deleted; instead, it becomes an operation with an +// Operation.error value with a google.rpc.Status.code of 1, corresponding to +// `Code.CANCELLED`. +// +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsEndpointsOperationsService) Cancel(name string) *ProjectsLocationsEndpointsOperationsCancelCall { + c := &ProjectsLocationsEndpointsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsEndpointsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsOperationsCancelCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsEndpointsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsEndpointsOperationsCancelCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsEndpointsOperationsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsEndpointsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.endpoints.operations.cancel" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsEndpointsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsEndpointsOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a long-running operation. This method indicates that the +// client is no longer interested in the operation result. It does not cancel +// the operation. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. +// +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsEndpointsOperationsService) Delete(name string) *ProjectsLocationsEndpointsOperationsDeleteCall { + c := &ProjectsLocationsEndpointsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsEndpointsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsOperationsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsEndpointsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsEndpointsOperationsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsEndpointsOperationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsEndpointsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "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 "aiplatform.projects.locations.endpoints.operations.delete" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsEndpointsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsEndpointsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the latest state of a long-running operation. Clients can use this +// method to poll the operation result at intervals as recommended by the API +// service. +// +// - name: The name of the operation resource. +func (r *ProjectsLocationsEndpointsOperationsService) Get(name string) *ProjectsLocationsEndpointsOperationsGetCall { + c := &ProjectsLocationsEndpointsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsEndpointsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsOperationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsEndpointsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEndpointsOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsEndpointsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsEndpointsOperationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsEndpointsOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsEndpointsOperationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.endpoints.operations.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsEndpointsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -50606,9 +51173,9 @@ func (c *ProjectsLocationsFeatureGroupsListCall) PageSize(pageSize int64) *Proje } // PageToken sets the optional parameter "pageToken": A page token, received -// from a previous FeatureGroupAdminService.ListFeatureGroups call. Provide -// this to retrieve the subsequent page. When paginating, all other parameters -// provided to FeatureGroupAdminService.ListFeatureGroups must match the call +// from a previous FeatureRegistryService.ListFeatureGroups call. Provide this +// to retrieve the subsequent page. When paginating, all other parameters +// provided to FeatureRegistryService.ListFeatureGroups must match the call // that provided the page token. func (c *ProjectsLocationsFeatureGroupsListCall) PageToken(pageToken string) *ProjectsLocationsFeatureGroupsListCall { c.urlParams_.Set("pageToken", pageToken) @@ -78846,8 +79413,9 @@ func (c *ProjectsLocationsNotebookExecutionJobsListCall) PageSize(pageSize int64 } // PageToken sets the optional parameter "pageToken": The standard list page -// token. Typically obtained via ListNotebookExecutionJobs.next_page_token of -// the previous NotebookService.ListNotebookExecutionJobs call. +// token. Typically obtained via +// ListNotebookExecutionJobsResponse.next_page_token of the previous +// NotebookService.ListNotebookExecutionJobs call. func (c *ProjectsLocationsNotebookExecutionJobsListCall) PageToken(pageToken string) *ProjectsLocationsNotebookExecutionJobsListCall { c.urlParams_.Set("pageToken", pageToken) return c @@ -83400,8 +83968,9 @@ func (c *ProjectsLocationsPersistentResourcesListCall) PageSize(pageSize int64) } // PageToken sets the optional parameter "pageToken": The standard list page -// token. Typically obtained via ListPersistentResourceResponse.next_page_token -// of the previous PersistentResourceService.ListPersistentResource call. +// token. Typically obtained via +// ListPersistentResourcesResponse.next_page_token of the previous +// PersistentResourceService.ListPersistentResource call. func (c *ProjectsLocationsPersistentResourcesListCall) PageToken(pageToken string) *ProjectsLocationsPersistentResourcesListCall { c.urlParams_.Set("pageToken", pageToken) return c @@ -86767,6 +87336,1153 @@ func (c *ProjectsLocationsPublishersModelsStreamRawPredictCall) Do(opts ...googl return ret, nil } +type ProjectsLocationsReasoningEnginesCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1reasoningengine *GoogleCloudAiplatformV1ReasoningEngine + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a reasoning engine. +// +// - parent: The resource name of the Location to create the ReasoningEngine +// in. Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsReasoningEnginesService) Create(parent string, googlecloudaiplatformv1reasoningengine *GoogleCloudAiplatformV1ReasoningEngine) *ProjectsLocationsReasoningEnginesCreateCall { + c := &ProjectsLocationsReasoningEnginesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1reasoningengine = googlecloudaiplatformv1reasoningengine + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsReasoningEnginesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsReasoningEnginesCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsReasoningEnginesCreateCall) Context(ctx context.Context) *ProjectsLocationsReasoningEnginesCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsReasoningEnginesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsReasoningEnginesCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1reasoningengine) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/reasoningEngines") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.reasoningEngines.create" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsReasoningEnginesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsReasoningEnginesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a reasoning engine. +// +// - name: The name of the ReasoningEngine resource to be deleted. Format: +// `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine +// }`. +func (r *ProjectsLocationsReasoningEnginesService) Delete(name string) *ProjectsLocationsReasoningEnginesDeleteCall { + c := &ProjectsLocationsReasoningEnginesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsReasoningEnginesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsReasoningEnginesDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsReasoningEnginesDeleteCall) Context(ctx context.Context) *ProjectsLocationsReasoningEnginesDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsReasoningEnginesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsReasoningEnginesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "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 "aiplatform.projects.locations.reasoningEngines.delete" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsReasoningEnginesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsReasoningEnginesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a reasoning engine. +// +// - name: The name of the ReasoningEngine resource. Format: +// `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine +// }`. +func (r *ProjectsLocationsReasoningEnginesService) Get(name string) *ProjectsLocationsReasoningEnginesGetCall { + c := &ProjectsLocationsReasoningEnginesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsReasoningEnginesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsReasoningEnginesGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsReasoningEnginesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsReasoningEnginesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsReasoningEnginesGetCall) Context(ctx context.Context) *ProjectsLocationsReasoningEnginesGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsReasoningEnginesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsReasoningEnginesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.reasoningEngines.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudAiplatformV1ReasoningEngine.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 *ProjectsLocationsReasoningEnginesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ReasoningEngine, 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 := &GoogleCloudAiplatformV1ReasoningEngine{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsReasoningEnginesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists reasoning engines in a location. +// +// - parent: The resource name of the Location to list the ReasoningEngines +// from. Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsReasoningEnginesService) List(parent string) *ProjectsLocationsReasoningEnginesListCall { + c := &ProjectsLocationsReasoningEnginesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": The standard list filter. More +// detail in AIP-160 (https://google.aip.dev/160). +func (c *ProjectsLocationsReasoningEnginesListCall) Filter(filter string) *ProjectsLocationsReasoningEnginesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list page +// size. +func (c *ProjectsLocationsReasoningEnginesListCall) PageSize(pageSize int64) *ProjectsLocationsReasoningEnginesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list page +// token. +func (c *ProjectsLocationsReasoningEnginesListCall) PageToken(pageToken string) *ProjectsLocationsReasoningEnginesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsReasoningEnginesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsReasoningEnginesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsReasoningEnginesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsReasoningEnginesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsReasoningEnginesListCall) Context(ctx context.Context) *ProjectsLocationsReasoningEnginesListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsReasoningEnginesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsReasoningEnginesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/reasoningEngines") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.reasoningEngines.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudAiplatformV1ListReasoningEnginesResponse.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 *ProjectsLocationsReasoningEnginesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListReasoningEnginesResponse, 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 := &GoogleCloudAiplatformV1ListReasoningEnginesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsReasoningEnginesListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListReasoningEnginesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type ProjectsLocationsReasoningEnginesPatchCall struct { + s *Service + name string + googlecloudaiplatformv1reasoningengine *GoogleCloudAiplatformV1ReasoningEngine + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates a reasoning engine. +// +// - name: Identifier. The resource name of the ReasoningEngine. +func (r *ProjectsLocationsReasoningEnginesService) Patch(name string, googlecloudaiplatformv1reasoningengine *GoogleCloudAiplatformV1ReasoningEngine) *ProjectsLocationsReasoningEnginesPatchCall { + c := &ProjectsLocationsReasoningEnginesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudaiplatformv1reasoningengine = googlecloudaiplatformv1reasoningengine + return c +} + +// UpdateMask sets the optional parameter "updateMask": Mask specifying which +// fields to update. +func (c *ProjectsLocationsReasoningEnginesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsReasoningEnginesPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsReasoningEnginesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsReasoningEnginesPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsReasoningEnginesPatchCall) Context(ctx context.Context) *ProjectsLocationsReasoningEnginesPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsReasoningEnginesPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsReasoningEnginesPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1reasoningengine) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.reasoningEngines.patch" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsReasoningEnginesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsReasoningEnginesOperationsCancelCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Cancel: Starts asynchronous cancellation on a long-running operation. The +// server makes a best effort to cancel the operation, but success is not +// guaranteed. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or +// other methods to check whether the cancellation succeeded or whether the +// operation completed despite cancellation. On successful cancellation, the +// operation is not deleted; instead, it becomes an operation with an +// Operation.error value with a google.rpc.Status.code of 1, corresponding to +// `Code.CANCELLED`. +// +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsReasoningEnginesOperationsService) Cancel(name string) *ProjectsLocationsReasoningEnginesOperationsCancelCall { + c := &ProjectsLocationsReasoningEnginesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsReasoningEnginesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsReasoningEnginesOperationsCancelCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsReasoningEnginesOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsReasoningEnginesOperationsCancelCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsReasoningEnginesOperationsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsReasoningEnginesOperationsCancelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.reasoningEngines.operations.cancel" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsReasoningEnginesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsReasoningEnginesOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a long-running operation. This method indicates that the +// client is no longer interested in the operation result. It does not cancel +// the operation. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. +// +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsReasoningEnginesOperationsService) Delete(name string) *ProjectsLocationsReasoningEnginesOperationsDeleteCall { + c := &ProjectsLocationsReasoningEnginesOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsReasoningEnginesOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsReasoningEnginesOperationsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsReasoningEnginesOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsReasoningEnginesOperationsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsReasoningEnginesOperationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsReasoningEnginesOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "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 "aiplatform.projects.locations.reasoningEngines.operations.delete" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsReasoningEnginesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsReasoningEnginesOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the latest state of a long-running operation. Clients can use this +// method to poll the operation result at intervals as recommended by the API +// service. +// +// - name: The name of the operation resource. +func (r *ProjectsLocationsReasoningEnginesOperationsService) Get(name string) *ProjectsLocationsReasoningEnginesOperationsGetCall { + c := &ProjectsLocationsReasoningEnginesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsReasoningEnginesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsReasoningEnginesOperationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsReasoningEnginesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsReasoningEnginesOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsReasoningEnginesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsReasoningEnginesOperationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsReasoningEnginesOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsReasoningEnginesOperationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.reasoningEngines.operations.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsReasoningEnginesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsReasoningEnginesOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists operations that match the specified filter in the request. If +// the server doesn't support this method, it returns `UNIMPLEMENTED`. +// +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsReasoningEnginesOperationsService) List(name string) *ProjectsLocationsReasoningEnginesOperationsListCall { + c := &ProjectsLocationsReasoningEnginesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list filter. +func (c *ProjectsLocationsReasoningEnginesOperationsListCall) Filter(filter string) *ProjectsLocationsReasoningEnginesOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list page +// size. +func (c *ProjectsLocationsReasoningEnginesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsReasoningEnginesOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list page +// token. +func (c *ProjectsLocationsReasoningEnginesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsReasoningEnginesOperationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsReasoningEnginesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsReasoningEnginesOperationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsReasoningEnginesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsReasoningEnginesOperationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsReasoningEnginesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsReasoningEnginesOperationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsReasoningEnginesOperationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsReasoningEnginesOperationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.reasoningEngines.operations.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningListOperationsResponse.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 *ProjectsLocationsReasoningEnginesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, 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 := &GoogleLongrunningListOperationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsReasoningEnginesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type ProjectsLocationsReasoningEnginesOperationsWaitCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Wait: Waits until the specified long-running operation is done or reaches at +// most a specified timeout, returning the latest state. If the operation is +// already done, the latest state is immediately returned. If the timeout +// specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout +// is used. If the server does not support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort +// basis. It may return the latest state before the specified timeout +// (including immediately), meaning even an immediate response is no guarantee +// that the operation is done. +// +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsReasoningEnginesOperationsService) Wait(name string) *ProjectsLocationsReasoningEnginesOperationsWaitCall { + c := &ProjectsLocationsReasoningEnginesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Timeout sets the optional parameter "timeout": The maximum duration to wait +// before timing out. If left blank, the wait will be at most the time +// permitted by the underlying HTTP/RPC protocol. If RPC context deadline is +// also specified, the shorter one will be used. +func (c *ProjectsLocationsReasoningEnginesOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsReasoningEnginesOperationsWaitCall { + c.urlParams_.Set("timeout", timeout) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsReasoningEnginesOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsReasoningEnginesOperationsWaitCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsReasoningEnginesOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsReasoningEnginesOperationsWaitCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsReasoningEnginesOperationsWaitCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsReasoningEnginesOperationsWaitCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:wait") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.reasoningEngines.operations.wait" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsReasoningEnginesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + type ProjectsLocationsSchedulesCreateCall struct { s *Service parent string @@ -87489,7 +89205,7 @@ type ProjectsLocationsSchedulesResumeCall struct { // Schedule.state to 'ACTIVE'. Only paused Schedule can be resumed. When the // Schedule is resumed, new runs will be scheduled starting from the next // execution time after the current time based on the time_specification in the -// Schedule. If Schedule.catchUp is set up true, all missed runs will be +// Schedule. If Schedule.catch_up is set up true, all missed runs will be // scheduled for backfill first. // // - name: The name of the Schedule resource to be resumed. Format: @@ -99505,8 +101221,8 @@ func (c *ProjectsLocationsTuningJobsListCall) PageSize(pageSize int64) *Projects } // PageToken sets the optional parameter "pageToken": The standard list page -// token. Typically obtained via ListTuningJob.next_page_token of the previous -// GenAiTuningService.ListTuningJob][] call. +// token. Typically obtained via ListTuningJobsResponse.next_page_token of the +// previous GenAiTuningService.ListTuningJob][] call. func (c *ProjectsLocationsTuningJobsListCall) PageToken(pageToken string) *ProjectsLocationsTuningJobsListCall { c.urlParams_.Set("pageToken", pageToken) return c diff --git a/aiplatform/v1beta1/aiplatform-api.json b/aiplatform/v1beta1/aiplatform-api.json index ec369b620c2..8b4a27dd643 100644 --- a/aiplatform/v1beta1/aiplatform-api.json +++ b/aiplatform/v1beta1/aiplatform-api.json @@ -6193,7 +6193,7 @@ "type": "integer" }, "pageToken": { - "description": "A page token, received from a previous FeatureGroupAdminService.ListFeatureGroups call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeatureGroupAdminService.ListFeatureGroups must match the call that provided the page token.", + "description": "A page token, received from a previous FeatureRegistryService.ListFeatureGroups call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeatureRegistryService.ListFeatureGroups must match the call that provided the page token.", "location": "query", "type": "string" }, @@ -6490,6 +6490,132 @@ ] } } + }, + "operations": { + "methods": { + "delete": { + "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/featureMonitors/{featureMonitorsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.featureGroups.featureMonitors.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/featureMonitors/{featureMonitorsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.featureGroups.featureMonitors.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/featureMonitors/{featureMonitorsId}/operations", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.featureGroups.featureMonitors.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/featureMonitors/{featureMonitorsId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.featureGroups.featureMonitors.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + }, + "timeout": { + "description": "The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.", + "format": "google-duration", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}:wait", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } } } }, @@ -14656,7 +14782,7 @@ "type": "integer" }, "pageToken": { - "description": "Optional. The standard list page token. Typically obtained via ListNotebookExecutionJobs.next_page_token of the previous NotebookService.ListNotebookExecutionJobs call.", + "description": "Optional. The standard list page token. Typically obtained via ListNotebookExecutionJobsResponse.next_page_token of the previous NotebookService.ListNotebookExecutionJobs call.", "location": "query", "type": "string" }, @@ -15969,7 +16095,7 @@ "type": "integer" }, "pageToken": { - "description": "Optional. The standard list page token. Typically obtained via ListPersistentResourceResponse.next_page_token of the previous PersistentResourceService.ListPersistentResource call.", + "description": "Optional. The standard list page token. Typically obtained via ListPersistentResourcesResponse.next_page_token of the previous PersistentResourceService.ListPersistentResource call.", "location": "query", "type": "string" }, @@ -18012,7 +18138,7 @@ ] }, "resume": { - "description": "Resumes a paused Schedule to start scheduling new runs. Will mark Schedule.state to 'ACTIVE'. Only paused Schedule can be resumed. When the Schedule is resumed, new runs will be scheduled starting from the next execution time after the current time based on the time_specification in the Schedule. If Schedule.catchUp is set up true, all missed runs will be scheduled for backfill first.", + "description": "Resumes a paused Schedule to start scheduling new runs. Will mark Schedule.state to 'ACTIVE'. Only paused Schedule can be resumed. When the Schedule is resumed, new runs will be scheduled starting from the next execution time after the current time based on the time_specification in the Schedule. If Schedule.catch_up is set up true, all missed runs will be scheduled for backfill first.", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/schedules/{schedulesId}:resume", "httpMethod": "POST", "id": "aiplatform.projects.locations.schedules.resume", @@ -21348,7 +21474,7 @@ "type": "integer" }, "pageToken": { - "description": "Optional. The standard list page token. Typically obtained via ListTuningJob.next_page_token of the previous GenAiTuningService.ListTuningJob][] call.", + "description": "Optional. The standard list page token. Typically obtained via ListTuningJobsResponse.next_page_token of the previous GenAiTuningService.ListTuningJob][] call.", "location": "query", "type": "string" }, @@ -21682,7 +21808,7 @@ } } }, - "revision": "20241026", + "revision": "20241112", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "CloudAiLargeModelsVisionGenerateVideoResponse": { @@ -22986,7 +23112,7 @@ }, "request": { "$ref": "GoogleCloudAiplatformV1beta1MigrateResourceRequest", - "description": "It's the same as the value in MigrateResourceRequest.migrate_resource_requests." + "description": "It's the same as the value in BatchMigrateResourcesRequest.migrate_resource_requests." } }, "type": "object" @@ -24002,6 +24128,80 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1CometInput": { + "description": "Input for Comet metric.", + "id": "GoogleCloudAiplatformV1beta1CometInput", + "properties": { + "instance": { + "$ref": "GoogleCloudAiplatformV1beta1CometInstance", + "description": "Required. Comet instance." + }, + "metricSpec": { + "$ref": "GoogleCloudAiplatformV1beta1CometSpec", + "description": "Required. Spec for comet metric." + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1CometInstance": { + "description": "Spec for Comet instance - The fields used for evaluation are dependent on the comet version.", + "id": "GoogleCloudAiplatformV1beta1CometInstance", + "properties": { + "prediction": { + "description": "Required. Output of the evaluated model.", + "type": "string" + }, + "reference": { + "description": "Optional. Ground truth used to compare against the prediction.", + "type": "string" + }, + "source": { + "description": "Optional. Source text in original language.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1CometResult": { + "description": "Spec for Comet result - calculates the comet score for the given instance using the version specified in the spec.", + "id": "GoogleCloudAiplatformV1beta1CometResult", + "properties": { + "score": { + "description": "Output only. Comet score. Range depends on version.", + "format": "float", + "readOnly": true, + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1CometSpec": { + "description": "Spec for Comet metric.", + "id": "GoogleCloudAiplatformV1beta1CometSpec", + "properties": { + "sourceLanguage": { + "description": "Optional. Source language in BCP-47 format.", + "type": "string" + }, + "targetLanguage": { + "description": "Optional. Target language in BCP-47 format. Covers both prediction and reference.", + "type": "string" + }, + "version": { + "description": "Required. Which version to use for evaluation.", + "enum": [ + "COMET_VERSION_UNSPECIFIED", + "COMET_22_SRC_REF" + ], + "enumDescriptions": [ + "Comet version unspecified.", + "Comet 22 for translation + source + reference (source-reference-combined)." + ], + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1CompleteTrialRequest": { "description": "Request message for VizierService.CompleteTrial.", "id": "GoogleCloudAiplatformV1beta1CompleteTrialRequest", @@ -26488,6 +26688,10 @@ "$ref": "GoogleCloudAiplatformV1beta1CoherenceInput", "description": "Input for coherence metric." }, + "cometInput": { + "$ref": "GoogleCloudAiplatformV1beta1CometInput", + "description": "Translation metrics. Input for Comet metric." + }, "exactMatchInput": { "$ref": "GoogleCloudAiplatformV1beta1ExactMatchInput", "description": "Auto metric instances. Instances and metric spec for exact match metric." @@ -26504,6 +26708,10 @@ "$ref": "GoogleCloudAiplatformV1beta1GroundednessInput", "description": "Input for groundedness metric." }, + "metricxInput": { + "$ref": "GoogleCloudAiplatformV1beta1MetricxInput", + "description": "Input for Metricx metric." + }, "pairwiseMetricInput": { "$ref": "GoogleCloudAiplatformV1beta1PairwiseMetricInput", "description": "Input for pairwise metric." @@ -26587,6 +26795,10 @@ "$ref": "GoogleCloudAiplatformV1beta1CoherenceResult", "description": "Result for coherence metric." }, + "cometResult": { + "$ref": "GoogleCloudAiplatformV1beta1CometResult", + "description": "Translation metrics. Result for Comet metric." + }, "exactMatchResults": { "$ref": "GoogleCloudAiplatformV1beta1ExactMatchResults", "description": "Auto metric evaluation results. Results for exact match metric." @@ -26603,6 +26815,10 @@ "$ref": "GoogleCloudAiplatformV1beta1GroundednessResult", "description": "Result for groundedness metric." }, + "metricxResult": { + "$ref": "GoogleCloudAiplatformV1beta1MetricxResult", + "description": "Result for Metricx metric." + }, "pairwiseMetricResult": { "$ref": "GoogleCloudAiplatformV1beta1PairwiseMetricResult", "description": "Result for pairwise metric." @@ -27983,6 +28199,7 @@ "type": "string" }, "vectorDistance": { + "deprecated": true, "description": "If present, the distance between the query vector and this fact vector.", "format": "double", "type": "number" @@ -32260,7 +32477,7 @@ "id": "GoogleCloudAiplatformV1beta1ListNotebookExecutionJobsResponse", "properties": { "nextPageToken": { - "description": "A token to retrieve next page of results. Pass to ListNotebookExecutionJobs.page_token to obtain that page.", + "description": "A token to retrieve next page of results. Pass to ListNotebookExecutionJobsRequest.page_token to obtain that page.", "type": "string" }, "notebookExecutionJobs": { @@ -32958,6 +33175,84 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1MetricxInput": { + "description": "Input for MetricX metric.", + "id": "GoogleCloudAiplatformV1beta1MetricxInput", + "properties": { + "instance": { + "$ref": "GoogleCloudAiplatformV1beta1MetricxInstance", + "description": "Required. Metricx instance." + }, + "metricSpec": { + "$ref": "GoogleCloudAiplatformV1beta1MetricxSpec", + "description": "Required. Spec for Metricx metric." + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1MetricxInstance": { + "description": "Spec for MetricX instance - The fields used for evaluation are dependent on the MetricX version.", + "id": "GoogleCloudAiplatformV1beta1MetricxInstance", + "properties": { + "prediction": { + "description": "Required. Output of the evaluated model.", + "type": "string" + }, + "reference": { + "description": "Optional. Ground truth used to compare against the prediction.", + "type": "string" + }, + "source": { + "description": "Optional. Source text in original language.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1MetricxResult": { + "description": "Spec for MetricX result - calculates the MetricX score for the given instance using the version specified in the spec.", + "id": "GoogleCloudAiplatformV1beta1MetricxResult", + "properties": { + "score": { + "description": "Output only. MetricX score. Range depends on version.", + "format": "float", + "readOnly": true, + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1MetricxSpec": { + "description": "Spec for MetricX metric.", + "id": "GoogleCloudAiplatformV1beta1MetricxSpec", + "properties": { + "sourceLanguage": { + "description": "Optional. Source language in BCP-47 format.", + "type": "string" + }, + "targetLanguage": { + "description": "Optional. Target language in BCP-47 format. Covers both prediction and reference.", + "type": "string" + }, + "version": { + "description": "Required. Which version to use for evaluation.", + "enum": [ + "METRICX_VERSION_UNSPECIFIED", + "METRICX_24_REF", + "METRICX_24_SRC", + "METRICX_24_SRC_REF" + ], + "enumDescriptions": [ + "MetricX version unspecified.", + "MetricX 2024 (2.6) for translation + reference (reference-based).", + "MetricX 2024 (2.6) for translation + source (QE).", + "MetricX 2024 (2.6) for translation + source + reference (source-reference-combined)." + ], + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1MigratableResource": { "description": "Represents one resource that exists in automl.googleapis.com, datalabeling.googleapis.com or ml.googleapis.com.", "id": "GoogleCloudAiplatformV1beta1MigratableResource", @@ -34143,7 +34438,7 @@ "description": "Email alert config." }, "enableLogging": { - "description": "Dump the anomalies to Cloud Logging. The anomalies will be put to json payload encoded from proto google.cloud.aiplatform.logging.ModelMonitoringAnomaliesLogEntry. This can be further sinked to Pub/Sub or any other services supported by Cloud Logging.", + "description": "Dump the anomalies to Cloud Logging. The anomalies will be put to json payload encoded from proto ModelMonitoringStatsAnomalies. This can be further synced to Pub/Sub or any other services supported by Cloud Logging.", "type": "boolean" }, "notificationChannels": { @@ -35917,7 +36212,7 @@ }, "encryptionSpec": { "$ref": "GoogleCloudAiplatformV1beta1EncryptionSpec", - "description": "Customer-managed encryption key spec for the notebook execution job. This field is auto-populated if the NotebookService.NotebookRuntimeTemplate has an encryption spec." + "description": "Customer-managed encryption key spec for the notebook execution job. This field is auto-populated if the NotebookRuntimeTemplate has an encryption spec." }, "executionTimeout": { "description": "Max running time of the execution job in seconds (default 86400s / 24 hrs).", @@ -35969,6 +36264,10 @@ "readOnly": true, "type": "string" }, + "kernelName": { + "description": "The name of the kernel to use during notebook execution. If unset, the default kernel is used.", + "type": "string" + }, "labels": { "additionalProperties": { "type": "string" @@ -36004,6 +36303,10 @@ "format": "google-datetime", "readOnly": true, "type": "string" + }, + "workbenchRuntime": { + "$ref": "GoogleCloudAiplatformV1beta1NotebookExecutionJobWorkbenchRuntime", + "description": "The Workbench runtime configuration to use for the notebook execution." } }, "type": "object" @@ -36069,6 +36372,12 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1NotebookExecutionJobWorkbenchRuntime": { + "description": "Configuration for a Workbench Instances-based environment.", + "id": "GoogleCloudAiplatformV1beta1NotebookExecutionJobWorkbenchRuntime", + "properties": {}, + "type": "object" + }, "GoogleCloudAiplatformV1beta1NotebookIdleShutdownConfig": { "description": "The idle shutdown configuration of NotebookRuntimeTemplate, which contains the idle_timeout as required field.", "id": "GoogleCloudAiplatformV1beta1NotebookIdleShutdownConfig", @@ -38770,6 +39079,7 @@ "id": "GoogleCloudAiplatformV1beta1RagContextsContext", "properties": { "distance": { + "deprecated": true, "description": "The distance between the query dense embedding vector and the context text vector.", "format": "double", "type": "number" @@ -38779,6 +39089,7 @@ "type": "string" }, "sparseDistance": { + "deprecated": true, "description": "The distance between the query sparse embedding vector and the context text vector.", "format": "double", "type": "number" @@ -39926,6 +40237,7 @@ "type": "array" }, "vectorDistanceThreshold": { + "deprecated": true, "description": "Optional. Only return contexts with vector distance smaller than the threshold.", "format": "double", "type": "number" @@ -40633,7 +40945,7 @@ "type": "string" }, "restartJobOnWorkerRestart": { - "description": "Restarts the entire CustomJob if a worker gets restarted. This feature can be used by distributed training jobs that are not resilient to workers leaving and joining a job.", + "description": "Optional. Restarts the entire CustomJob if a worker gets restarted. This feature can be used by distributed training jobs that are not resilient to workers leaving and joining a job.", "type": "boolean" }, "strategy": { @@ -40665,7 +40977,7 @@ "type": "string" }, "timeout": { - "description": "The maximum job running time. The default is 7 days.", + "description": "Optional. The maximum job running time. The default is 7 days.", "format": "google-duration", "type": "string" } @@ -45634,7 +45946,7 @@ "type": "object" }, "GoogleCloudAiplatformV1beta1StreamingReadFeatureValuesRequest": { - "description": "Request message for FeaturestoreOnlineServingService.StreamingFeatureValuesRead.", + "description": "Request message for FeaturestoreOnlineServingService.StreamingReadFeatureValues.", "id": "GoogleCloudAiplatformV1beta1StreamingReadFeatureValuesRequest", "properties": { "entityIds": { @@ -48662,6 +48974,7 @@ "type": "integer" }, "vectorDistanceThreshold": { + "deprecated": true, "description": "Optional. Only return results with vector distance smaller than the threshold.", "format": "double", "type": "number" diff --git a/aiplatform/v1beta1/aiplatform-gen.go b/aiplatform/v1beta1/aiplatform-gen.go index dceebc8be91..6340fbbccc8 100644 --- a/aiplatform/v1beta1/aiplatform-gen.go +++ b/aiplatform/v1beta1/aiplatform-gen.go @@ -773,6 +773,7 @@ type ProjectsLocationsFeatureGroupsService struct { func NewProjectsLocationsFeatureGroupsFeatureMonitorsService(s *Service) *ProjectsLocationsFeatureGroupsFeatureMonitorsService { rs := &ProjectsLocationsFeatureGroupsFeatureMonitorsService{s: s} rs.FeatureMonitorJobs = NewProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsService(s) + rs.Operations = NewProjectsLocationsFeatureGroupsFeatureMonitorsOperationsService(s) return rs } @@ -780,6 +781,8 @@ type ProjectsLocationsFeatureGroupsFeatureMonitorsService struct { s *Service FeatureMonitorJobs *ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsService + + Operations *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsService } func NewProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsService(s *Service) *ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsService { @@ -791,6 +794,15 @@ type ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsService stru s *Service } +func NewProjectsLocationsFeatureGroupsFeatureMonitorsOperationsService(s *Service) *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsService { + rs := &ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsService{s: s} + return rs +} + +type ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsService struct { + s *Service +} + func NewProjectsLocationsFeatureGroupsFeaturesService(s *Service) *ProjectsLocationsFeatureGroupsFeaturesService { rs := &ProjectsLocationsFeatureGroupsFeaturesService{s: s} rs.Operations = NewProjectsLocationsFeatureGroupsFeaturesOperationsService(s) @@ -3623,7 +3635,7 @@ type GoogleCloudAiplatformV1beta1BatchMigrateResourcesOperationMetadataPartialRe // Model: Migrated model resource name. Model string `json:"model,omitempty"` // Request: It's the same as the value in - // MigrateResourceRequest.migrate_resource_requests. + // BatchMigrateResourcesRequest.migrate_resource_requests. Request *GoogleCloudAiplatformV1beta1MigrateResourceRequest `json:"request,omitempty"` // ForceSendFields is a list of field names (e.g. "Dataset") to unconditionally // include in API requests. By default, fields with empty or default values are @@ -5060,6 +5072,127 @@ func (s GoogleCloudAiplatformV1beta1CoherenceSpec) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1CometInput: Input for Comet metric. +type GoogleCloudAiplatformV1beta1CometInput struct { + // Instance: Required. Comet instance. + Instance *GoogleCloudAiplatformV1beta1CometInstance `json:"instance,omitempty"` + // MetricSpec: Required. Spec for comet metric. + MetricSpec *GoogleCloudAiplatformV1beta1CometSpec `json:"metricSpec,omitempty"` + // ForceSendFields is a list of field names (e.g. "Instance") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Instance") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1CometInput) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1CometInput + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1CometInstance: Spec for Comet instance - The +// fields used for evaluation are dependent on the comet version. +type GoogleCloudAiplatformV1beta1CometInstance struct { + // Prediction: Required. Output of the evaluated model. + Prediction string `json:"prediction,omitempty"` + // Reference: Optional. Ground truth used to compare against the prediction. + Reference string `json:"reference,omitempty"` + // Source: Optional. Source text in original language. + Source string `json:"source,omitempty"` + // ForceSendFields is a list of field names (e.g. "Prediction") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Prediction") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1CometInstance) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1CometInstance + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1CometResult: Spec for Comet result - calculates +// the comet score for the given instance using the version specified in the +// spec. +type GoogleCloudAiplatformV1beta1CometResult struct { + // Score: Output only. Comet score. Range depends on version. + Score float64 `json:"score,omitempty"` + // ForceSendFields is a list of field names (e.g. "Score") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Score") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1CometResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1CometResult + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudAiplatformV1beta1CometResult) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudAiplatformV1beta1CometResult + var s1 struct { + Score gensupport.JSONFloat64 `json:"score"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Score = float64(s1.Score) + return nil +} + +// GoogleCloudAiplatformV1beta1CometSpec: Spec for Comet metric. +type GoogleCloudAiplatformV1beta1CometSpec struct { + // SourceLanguage: Optional. Source language in BCP-47 format. + SourceLanguage string `json:"sourceLanguage,omitempty"` + // TargetLanguage: Optional. Target language in BCP-47 format. Covers both + // prediction and reference. + TargetLanguage string `json:"targetLanguage,omitempty"` + // Version: Required. Which version to use for evaluation. + // + // Possible values: + // "COMET_VERSION_UNSPECIFIED" - Comet version unspecified. + // "COMET_22_SRC_REF" - Comet 22 for translation + source + reference + // (source-reference-combined). + Version string `json:"version,omitempty"` + // ForceSendFields is a list of field names (e.g. "SourceLanguage") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "SourceLanguage") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1CometSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1CometSpec + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1CompleteTrialRequest: Request message for // VizierService.CompleteTrial. type GoogleCloudAiplatformV1beta1CompleteTrialRequest struct { @@ -8672,6 +8805,8 @@ type GoogleCloudAiplatformV1beta1EvaluateInstancesRequest struct { BleuInput *GoogleCloudAiplatformV1beta1BleuInput `json:"bleuInput,omitempty"` // CoherenceInput: Input for coherence metric. CoherenceInput *GoogleCloudAiplatformV1beta1CoherenceInput `json:"coherenceInput,omitempty"` + // CometInput: Translation metrics. Input for Comet metric. + CometInput *GoogleCloudAiplatformV1beta1CometInput `json:"cometInput,omitempty"` // ExactMatchInput: Auto metric instances. Instances and metric spec for exact // match metric. ExactMatchInput *GoogleCloudAiplatformV1beta1ExactMatchInput `json:"exactMatchInput,omitempty"` @@ -8682,6 +8817,8 @@ type GoogleCloudAiplatformV1beta1EvaluateInstancesRequest struct { FulfillmentInput *GoogleCloudAiplatformV1beta1FulfillmentInput `json:"fulfillmentInput,omitempty"` // GroundednessInput: Input for groundedness metric. GroundednessInput *GoogleCloudAiplatformV1beta1GroundednessInput `json:"groundednessInput,omitempty"` + // MetricxInput: Input for Metricx metric. + MetricxInput *GoogleCloudAiplatformV1beta1MetricxInput `json:"metricxInput,omitempty"` // PairwiseMetricInput: Input for pairwise metric. PairwiseMetricInput *GoogleCloudAiplatformV1beta1PairwiseMetricInput `json:"pairwiseMetricInput,omitempty"` // PairwiseQuestionAnsweringQualityInput: Input for pairwise question answering @@ -8747,6 +8884,8 @@ type GoogleCloudAiplatformV1beta1EvaluateInstancesResponse struct { BleuResults *GoogleCloudAiplatformV1beta1BleuResults `json:"bleuResults,omitempty"` // CoherenceResult: Result for coherence metric. CoherenceResult *GoogleCloudAiplatformV1beta1CoherenceResult `json:"coherenceResult,omitempty"` + // CometResult: Translation metrics. Result for Comet metric. + CometResult *GoogleCloudAiplatformV1beta1CometResult `json:"cometResult,omitempty"` // ExactMatchResults: Auto metric evaluation results. Results for exact match // metric. ExactMatchResults *GoogleCloudAiplatformV1beta1ExactMatchResults `json:"exactMatchResults,omitempty"` @@ -8757,6 +8896,8 @@ type GoogleCloudAiplatformV1beta1EvaluateInstancesResponse struct { FulfillmentResult *GoogleCloudAiplatformV1beta1FulfillmentResult `json:"fulfillmentResult,omitempty"` // GroundednessResult: Result for groundedness metric. GroundednessResult *GoogleCloudAiplatformV1beta1GroundednessResult `json:"groundednessResult,omitempty"` + // MetricxResult: Result for Metricx metric. + MetricxResult *GoogleCloudAiplatformV1beta1MetricxResult `json:"metricxResult,omitempty"` // PairwiseMetricResult: Result for pairwise metric. PairwiseMetricResult *GoogleCloudAiplatformV1beta1PairwiseMetricResult `json:"pairwiseMetricResult,omitempty"` // PairwiseQuestionAnsweringQualityResult: Result for pairwise question @@ -16827,7 +16968,7 @@ func (s GoogleCloudAiplatformV1beta1ListNasTrialDetailsResponse) MarshalJSON() ( // message for [NotebookService.CreateNotebookExecutionJob] type GoogleCloudAiplatformV1beta1ListNotebookExecutionJobsResponse struct { // NextPageToken: A token to retrieve next page of results. Pass to - // ListNotebookExecutionJobs.page_token to obtain that page. + // ListNotebookExecutionJobsRequest.page_token to obtain that page. NextPageToken string `json:"nextPageToken,omitempty"` // NotebookExecutionJobs: List of NotebookExecutionJobs in the requested page. NotebookExecutionJobs []*GoogleCloudAiplatformV1beta1NotebookExecutionJob `json:"notebookExecutionJobs,omitempty"` @@ -17881,6 +18022,130 @@ func (s GoogleCloudAiplatformV1beta1MetadataStoreMetadataStoreState) MarshalJSON return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1MetricxInput: Input for MetricX metric. +type GoogleCloudAiplatformV1beta1MetricxInput struct { + // Instance: Required. Metricx instance. + Instance *GoogleCloudAiplatformV1beta1MetricxInstance `json:"instance,omitempty"` + // MetricSpec: Required. Spec for Metricx metric. + MetricSpec *GoogleCloudAiplatformV1beta1MetricxSpec `json:"metricSpec,omitempty"` + // ForceSendFields is a list of field names (e.g. "Instance") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Instance") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1MetricxInput) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1MetricxInput + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1MetricxInstance: Spec for MetricX instance - The +// fields used for evaluation are dependent on the MetricX version. +type GoogleCloudAiplatformV1beta1MetricxInstance struct { + // Prediction: Required. Output of the evaluated model. + Prediction string `json:"prediction,omitempty"` + // Reference: Optional. Ground truth used to compare against the prediction. + Reference string `json:"reference,omitempty"` + // Source: Optional. Source text in original language. + Source string `json:"source,omitempty"` + // ForceSendFields is a list of field names (e.g. "Prediction") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Prediction") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1MetricxInstance) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1MetricxInstance + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1MetricxResult: Spec for MetricX result - +// calculates the MetricX score for the given instance using the version +// specified in the spec. +type GoogleCloudAiplatformV1beta1MetricxResult struct { + // Score: Output only. MetricX score. Range depends on version. + Score float64 `json:"score,omitempty"` + // ForceSendFields is a list of field names (e.g. "Score") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Score") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1MetricxResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1MetricxResult + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudAiplatformV1beta1MetricxResult) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudAiplatformV1beta1MetricxResult + var s1 struct { + Score gensupport.JSONFloat64 `json:"score"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Score = float64(s1.Score) + return nil +} + +// GoogleCloudAiplatformV1beta1MetricxSpec: Spec for MetricX metric. +type GoogleCloudAiplatformV1beta1MetricxSpec struct { + // SourceLanguage: Optional. Source language in BCP-47 format. + SourceLanguage string `json:"sourceLanguage,omitempty"` + // TargetLanguage: Optional. Target language in BCP-47 format. Covers both + // prediction and reference. + TargetLanguage string `json:"targetLanguage,omitempty"` + // Version: Required. Which version to use for evaluation. + // + // Possible values: + // "METRICX_VERSION_UNSPECIFIED" - MetricX version unspecified. + // "METRICX_24_REF" - MetricX 2024 (2.6) for translation + reference + // (reference-based). + // "METRICX_24_SRC" - MetricX 2024 (2.6) for translation + source (QE). + // "METRICX_24_SRC_REF" - MetricX 2024 (2.6) for translation + source + + // reference (source-reference-combined). + Version string `json:"version,omitempty"` + // ForceSendFields is a list of field names (e.g. "SourceLanguage") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "SourceLanguage") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1MetricxSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1MetricxSpec + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1MigratableResource: Represents one resource that // exists in automl.googleapis.com, datalabeling.googleapis.com or // ml.googleapis.com. @@ -19588,9 +19853,8 @@ type GoogleCloudAiplatformV1beta1ModelMonitoringAlertConfig struct { // EmailAlertConfig: Email alert config. EmailAlertConfig *GoogleCloudAiplatformV1beta1ModelMonitoringAlertConfigEmailAlertConfig `json:"emailAlertConfig,omitempty"` // EnableLogging: Dump the anomalies to Cloud Logging. The anomalies will be - // put to json payload encoded from proto - // google.cloud.aiplatform.logging.ModelMonitoringAnomaliesLogEntry. This can - // be further sinked to Pub/Sub or any other services supported by Cloud + // put to json payload encoded from proto ModelMonitoringStatsAnomalies. This + // can be further synced to Pub/Sub or any other services supported by Cloud // Logging. EnableLogging bool `json:"enableLogging,omitempty"` // NotificationChannels: Resource names of the NotificationChannels to send @@ -22011,8 +22275,8 @@ type GoogleCloudAiplatformV1beta1NotebookExecutionJob struct { // up to 128 characters long and can consist of any UTF-8 characters. DisplayName string `json:"displayName,omitempty"` // EncryptionSpec: Customer-managed encryption key spec for the notebook - // execution job. This field is auto-populated if the - // NotebookService.NotebookRuntimeTemplate has an encryption spec. + // execution job. This field is auto-populated if the NotebookRuntimeTemplate + // has an encryption spec. EncryptionSpec *GoogleCloudAiplatformV1beta1EncryptionSpec `json:"encryptionSpec,omitempty"` // ExecutionTimeout: Max running time of the execution job in seconds (default // 86400s / 24 hrs). @@ -22048,6 +22312,9 @@ type GoogleCloudAiplatformV1beta1NotebookExecutionJob struct { // "JOB_STATE_PARTIALLY_SUCCEEDED" - The job is partially succeeded, some // results may be missing due to errors. JobState string `json:"jobState,omitempty"` + // KernelName: The name of the kernel to use during notebook execution. If + // unset, the default kernel is used. + KernelName string `json:"kernelName,omitempty"` // Labels: The labels with user-defined metadata to organize // NotebookExecutionJobs. Label keys and values can be no longer than 64 // characters (Unicode codepoints), can only contain lowercase letters, numeric @@ -22075,6 +22342,9 @@ type GoogleCloudAiplatformV1beta1NotebookExecutionJob struct { // UpdateTime: Output only. Timestamp when this NotebookExecutionJob was most // recently updated. UpdateTime string `json:"updateTime,omitempty"` + // WorkbenchRuntime: The Workbench runtime configuration to use for the + // notebook execution. + WorkbenchRuntime *GoogleCloudAiplatformV1beta1NotebookExecutionJobWorkbenchRuntime `json:"workbenchRuntime,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` @@ -22203,6 +22473,11 @@ func (s GoogleCloudAiplatformV1beta1NotebookExecutionJobGcsNotebookSource) Marsh return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1NotebookExecutionJobWorkbenchRuntime: +// Configuration for a Workbench Instances-based environment. +type GoogleCloudAiplatformV1beta1NotebookExecutionJobWorkbenchRuntime struct { +} + // GoogleCloudAiplatformV1beta1NotebookIdleShutdownConfig: The idle shutdown // configuration of NotebookRuntimeTemplate, which contains the idle_timeout as // required field. @@ -28501,9 +28776,9 @@ type GoogleCloudAiplatformV1beta1Scheduling struct { // set to [Strategy.DWS_FLEX_START]. If set to 0, the job will wait // indefinitely. The default is 24 hours. MaxWaitDuration string `json:"maxWaitDuration,omitempty"` - // RestartJobOnWorkerRestart: Restarts the entire CustomJob if a worker gets - // restarted. This feature can be used by distributed training jobs that are - // not resilient to workers leaving and joining a job. + // RestartJobOnWorkerRestart: Optional. Restarts the entire CustomJob if a + // worker gets restarted. This feature can be used by distributed training jobs + // that are not resilient to workers leaving and joining a job. RestartJobOnWorkerRestart bool `json:"restartJobOnWorkerRestart,omitempty"` // Strategy: Optional. This determines which type of scheduling strategy to // use. @@ -28518,7 +28793,7 @@ type GoogleCloudAiplatformV1beta1Scheduling struct { // "SPOT" - Spot provisioning strategy uses spot resources. // "FLEX_START" - Flex Start strategy uses DWS to queue for resources. Strategy string `json:"strategy,omitempty"` - // Timeout: The maximum job running time. The default is 7 days. + // Timeout: Optional. The maximum job running time. The default is 7 days. Timeout string `json:"timeout,omitempty"` // ForceSendFields is a list of field names (e.g. "DisableRetries") to // unconditionally include in API requests. By default, fields with empty or @@ -36409,7 +36684,7 @@ func (s GoogleCloudAiplatformV1beta1StreamingPredictResponse) MarshalJSON() ([]b } // GoogleCloudAiplatformV1beta1StreamingReadFeatureValuesRequest: Request -// message for FeaturestoreOnlineServingService.StreamingFeatureValuesRead. +// message for FeaturestoreOnlineServingService.StreamingReadFeatureValues. type GoogleCloudAiplatformV1beta1StreamingReadFeatureValuesRequest struct { // EntityIds: Required. IDs of entities to read Feature values of. The maximum // number of IDs is 100. For example, for a machine learning model predicting @@ -63180,9 +63455,9 @@ func (c *ProjectsLocationsFeatureGroupsListCall) PageSize(pageSize int64) *Proje } // PageToken sets the optional parameter "pageToken": A page token, received -// from a previous FeatureGroupAdminService.ListFeatureGroups call. Provide -// this to retrieve the subsequent page. When paginating, all other parameters -// provided to FeatureGroupAdminService.ListFeatureGroups must match the call +// from a previous FeatureRegistryService.ListFeatureGroups call. Provide this +// to retrieve the subsequent page. When paginating, all other parameters +// provided to FeatureRegistryService.ListFeatureGroups must match the call // that provided the page token. func (c *ProjectsLocationsFeatureGroupsListCall) PageToken(pageToken string) *ProjectsLocationsFeatureGroupsListCall { c.urlParams_.Set("pageToken", pageToken) @@ -64300,81 +64575,74 @@ func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsFeatureMonitorJobsListCall } } -type ProjectsLocationsFeatureGroupsFeaturesBatchCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1beta1batchcreatefeaturesrequest *GoogleCloudAiplatformV1beta1BatchCreateFeaturesRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// BatchCreate: Creates a batch of Features in a given FeatureGroup. +// Delete: Deletes a long-running operation. This method indicates that the +// client is no longer interested in the operation result. It does not cancel +// the operation. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. // -// - parent: The resource name of the EntityType/FeatureGroup to create the -// batch of Features under. Format: -// `projects/{project}/locations/{location}/featurestores/{featurestore}/entit -// yTypes/{entity_type}` -// `projects/{project}/locations/{location}/featureGroups/{feature_group}`. -func (r *ProjectsLocationsFeatureGroupsFeaturesService) BatchCreate(parent string, googlecloudaiplatformv1beta1batchcreatefeaturesrequest *GoogleCloudAiplatformV1beta1BatchCreateFeaturesRequest) *ProjectsLocationsFeatureGroupsFeaturesBatchCreateCall { - c := &ProjectsLocationsFeatureGroupsFeaturesBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1beta1batchcreatefeaturesrequest = googlecloudaiplatformv1beta1batchcreatefeaturesrequest +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsService) Delete(name string) *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsDeleteCall { + c := &ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsFeatureGroupsFeaturesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesBatchCreateCall { +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsFeatureGroupsFeaturesBatchCreateCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesBatchCreateCall { +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsDeleteCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsFeatureGroupsFeaturesBatchCreateCall) Header() http.Header { +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureGroupsFeaturesBatchCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1batchcreatefeaturesrequest) - if err != nil { - return nil, err - } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/features:batchCreate") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureGroups.features.batchCreate" call. +// Do executes the "aiplatform.projects.locations.featureGroups.featureMonitors.operations.delete" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsFeatureGroupsFeaturesBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -64393,7 +64661,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesBatchCreateCall) Do(opts ...googl if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -64406,91 +64674,570 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesBatchCreateCall) Do(opts ...googl return ret, nil } -type ProjectsLocationsFeatureGroupsFeaturesCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1beta1feature *GoogleCloudAiplatformV1beta1Feature - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Create: Creates a new Feature in a given FeatureGroup. +// Get: Gets the latest state of a long-running operation. Clients can use this +// method to poll the operation result at intervals as recommended by the API +// service. // -// - parent: The resource name of the EntityType or FeatureGroup to create a -// Feature. Format for entity_type as parent: -// `projects/{project}/locations/{location}/featurestores/{featurestore}/entit -// yTypes/{entity_type}` Format for feature_group as parent: -// `projects/{project}/locations/{location}/featureGroups/{feature_group}`. -func (r *ProjectsLocationsFeatureGroupsFeaturesService) Create(parent string, googlecloudaiplatformv1beta1feature *GoogleCloudAiplatformV1beta1Feature) *ProjectsLocationsFeatureGroupsFeaturesCreateCall { - c := &ProjectsLocationsFeatureGroupsFeaturesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1beta1feature = googlecloudaiplatformv1beta1feature - return c -} - -// FeatureId sets the optional parameter "featureId": Required. The ID to use -// for the Feature, which will become the final component of the Feature's -// resource name. This value may be up to 128 characters, and valid characters -// are `[a-z0-9_]`. The first character cannot be a number. The value must be -// unique within an EntityType/FeatureGroup. -func (c *ProjectsLocationsFeatureGroupsFeaturesCreateCall) FeatureId(featureId string) *ProjectsLocationsFeatureGroupsFeaturesCreateCall { - c.urlParams_.Set("featureId", featureId) +// - name: The name of the operation resource. +func (r *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsService) Get(name string) *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsGetCall { + c := &ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsFeatureGroupsFeaturesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesCreateCall { +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsFeatureGroupsFeaturesCreateCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesCreateCall { +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsFeatureGroupsFeaturesCreateCall) Header() http.Header { +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureGroupsFeaturesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1feature) - if err != nil { - return nil, err +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/features") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureGroups.features.create" call. +// Do executes the "aiplatform.projects.locations.featureGroups.featureMonitors.operations.get" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was because // http.StatusNotModified was returned. -func (c *ProjectsLocationsFeatureGroupsFeaturesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists operations that match the specified filter in the request. If +// the server doesn't support this method, it returns `UNIMPLEMENTED`. +// +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsService) List(name string) *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsListCall { + c := &ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list filter. +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsListCall) Filter(filter string) *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list page +// size. +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list page +// token. +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/operations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featureGroups.featureMonitors.operations.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningListOperationsResponse.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 *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, 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 := &GoogleLongrunningListOperationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsWaitCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Wait: Waits until the specified long-running operation is done or reaches at +// most a specified timeout, returning the latest state. If the operation is +// already done, the latest state is immediately returned. If the timeout +// specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout +// is used. If the server does not support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort +// basis. It may return the latest state before the specified timeout +// (including immediately), meaning even an immediate response is no guarantee +// that the operation is done. +// +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsService) Wait(name string) *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsWaitCall { + c := &ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Timeout sets the optional parameter "timeout": The maximum duration to wait +// before timing out. If left blank, the wait will be at most the time +// permitted by the underlying HTTP/RPC protocol. If RPC context deadline is +// also specified, the shorter one will be used. +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsWaitCall { + c.urlParams_.Set("timeout", timeout) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsWaitCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsWaitCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsWaitCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:wait") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featureGroups.featureMonitors.operations.wait" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsFeatureGroupsFeatureMonitorsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsFeatureGroupsFeaturesBatchCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1batchcreatefeaturesrequest *GoogleCloudAiplatformV1beta1BatchCreateFeaturesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// BatchCreate: Creates a batch of Features in a given FeatureGroup. +// +// - parent: The resource name of the EntityType/FeatureGroup to create the +// batch of Features under. Format: +// `projects/{project}/locations/{location}/featurestores/{featurestore}/entit +// yTypes/{entity_type}` +// `projects/{project}/locations/{location}/featureGroups/{feature_group}`. +func (r *ProjectsLocationsFeatureGroupsFeaturesService) BatchCreate(parent string, googlecloudaiplatformv1beta1batchcreatefeaturesrequest *GoogleCloudAiplatformV1beta1BatchCreateFeaturesRequest) *ProjectsLocationsFeatureGroupsFeaturesBatchCreateCall { + c := &ProjectsLocationsFeatureGroupsFeaturesBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1batchcreatefeaturesrequest = googlecloudaiplatformv1beta1batchcreatefeaturesrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsFeatureGroupsFeaturesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesBatchCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsFeatureGroupsFeaturesBatchCreateCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesBatchCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsFeatureGroupsFeaturesBatchCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeatureGroupsFeaturesBatchCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1batchcreatefeaturesrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/features:batchCreate") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featureGroups.features.batchCreate" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsFeatureGroupsFeaturesBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsFeatureGroupsFeaturesCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1feature *GoogleCloudAiplatformV1beta1Feature + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new Feature in a given FeatureGroup. +// +// - parent: The resource name of the EntityType or FeatureGroup to create a +// Feature. Format for entity_type as parent: +// `projects/{project}/locations/{location}/featurestores/{featurestore}/entit +// yTypes/{entity_type}` Format for feature_group as parent: +// `projects/{project}/locations/{location}/featureGroups/{feature_group}`. +func (r *ProjectsLocationsFeatureGroupsFeaturesService) Create(parent string, googlecloudaiplatformv1beta1feature *GoogleCloudAiplatformV1beta1Feature) *ProjectsLocationsFeatureGroupsFeaturesCreateCall { + c := &ProjectsLocationsFeatureGroupsFeaturesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1feature = googlecloudaiplatformv1beta1feature + return c +} + +// FeatureId sets the optional parameter "featureId": Required. The ID to use +// for the Feature, which will become the final component of the Feature's +// resource name. This value may be up to 128 characters, and valid characters +// are `[a-z0-9_]`. The first character cannot be a number. The value must be +// unique within an EntityType/FeatureGroup. +func (c *ProjectsLocationsFeatureGroupsFeaturesCreateCall) FeatureId(featureId string) *ProjectsLocationsFeatureGroupsFeaturesCreateCall { + c.urlParams_.Set("featureId", featureId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsFeatureGroupsFeaturesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsFeatureGroupsFeaturesCreateCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsFeatureGroupsFeaturesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeatureGroupsFeaturesCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1feature) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/features") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featureGroups.features.create" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsFeatureGroupsFeaturesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -94461,8 +95208,9 @@ func (c *ProjectsLocationsNotebookExecutionJobsListCall) PageSize(pageSize int64 } // PageToken sets the optional parameter "pageToken": The standard list page -// token. Typically obtained via ListNotebookExecutionJobs.next_page_token of -// the previous NotebookService.ListNotebookExecutionJobs call. +// token. Typically obtained via +// ListNotebookExecutionJobsResponse.next_page_token of the previous +// NotebookService.ListNotebookExecutionJobs call. func (c *ProjectsLocationsNotebookExecutionJobsListCall) PageToken(pageToken string) *ProjectsLocationsNotebookExecutionJobsListCall { c.urlParams_.Set("pageToken", pageToken) return c @@ -99333,8 +100081,9 @@ func (c *ProjectsLocationsPersistentResourcesListCall) PageSize(pageSize int64) } // PageToken sets the optional parameter "pageToken": The standard list page -// token. Typically obtained via ListPersistentResourceResponse.next_page_token -// of the previous PersistentResourceService.ListPersistentResource call. +// token. Typically obtained via +// ListPersistentResourcesResponse.next_page_token of the previous +// PersistentResourceService.ListPersistentResource call. func (c *ProjectsLocationsPersistentResourcesListCall) PageToken(pageToken string) *ProjectsLocationsPersistentResourcesListCall { c.urlParams_.Set("pageToken", pageToken) return c @@ -106961,7 +107710,7 @@ type ProjectsLocationsSchedulesResumeCall struct { // Schedule.state to 'ACTIVE'. Only paused Schedule can be resumed. When the // Schedule is resumed, new runs will be scheduled starting from the next // execution time after the current time based on the time_specification in the -// Schedule. If Schedule.catchUp is set up true, all missed runs will be +// Schedule. If Schedule.catch_up is set up true, all missed runs will be // scheduled for backfill first. // // - name: The name of the Schedule resource to be resumed. Format: @@ -119332,8 +120081,8 @@ func (c *ProjectsLocationsTuningJobsListCall) PageSize(pageSize int64) *Projects } // PageToken sets the optional parameter "pageToken": The standard list page -// token. Typically obtained via ListTuningJob.next_page_token of the previous -// GenAiTuningService.ListTuningJob][] call. +// token. Typically obtained via ListTuningJobsResponse.next_page_token of the +// previous GenAiTuningService.ListTuningJob][] call. func (c *ProjectsLocationsTuningJobsListCall) PageToken(pageToken string) *ProjectsLocationsTuningJobsListCall { c.urlParams_.Set("pageToken", pageToken) return c diff --git a/backupdr/v1/backupdr-api.json b/backupdr/v1/backupdr-api.json index 49271569e79..d2f2e6e6b75 100644 --- a/backupdr/v1/backupdr-api.json +++ b/backupdr/v1/backupdr-api.json @@ -1663,7 +1663,7 @@ } } }, - "revision": "20241030", + "revision": "20241106", "rootUrl": "https://backupdr.googleapis.com/", "schemas": { "AbandonBackupRequest": { @@ -2459,7 +2459,7 @@ "id": "BackupRule", "properties": { "backupRetentionDays": { - "description": "Required. Configures the duration for which backup data will be kept. It is defined in “days”. The value should be greater than or equal to minimum enforced retention of the backup vault.", + "description": "Required. Configures the duration for which backup data will be kept. It is defined in “days”. The value should be greater than or equal to minimum enforced retention of the backup vault. Minimum value is 1 and maximum value is 90 for hourly backups. Minimum value is 1 and maximum value is 90 for daily backups. Minimum value is 7 and maximum value is 186 for weekly backups. Minimum value is 30 and maximum value is 732 for monthly backups. Minimum value is 30 and maximum value is 36159 for yearly backups.", "format": "int32", "type": "integer" }, diff --git a/backupdr/v1/backupdr-gen.go b/backupdr/v1/backupdr-gen.go index f61f5c8dfc3..cb7bc026deb 100644 --- a/backupdr/v1/backupdr-gen.go +++ b/backupdr/v1/backupdr-gen.go @@ -1046,7 +1046,11 @@ func (s BackupPlanAssociation) MarshalJSON() ([]byte, error) { type BackupRule struct { // BackupRetentionDays: Required. Configures the duration for which backup data // will be kept. It is defined in “days”. The value should be greater than - // or equal to minimum enforced retention of the backup vault. + // or equal to minimum enforced retention of the backup vault. Minimum value is + // 1 and maximum value is 90 for hourly backups. Minimum value is 1 and maximum + // value is 90 for daily backups. Minimum value is 7 and maximum value is 186 + // for weekly backups. Minimum value is 30 and maximum value is 732 for monthly + // backups. Minimum value is 30 and maximum value is 36159 for yearly backups. BackupRetentionDays int64 `json:"backupRetentionDays,omitempty"` // RuleId: Required. Immutable. The unique id of this `BackupRule`. The // `rule_id` is unique per `BackupPlan`.The `rule_id` must start with a diff --git a/batch/v1/batch-api.json b/batch/v1/batch-api.json index 1e1cf06af2a..ca2e35163da 100644 --- a/batch/v1/batch-api.json +++ b/batch/v1/batch-api.json @@ -561,7 +561,7 @@ } } }, - "revision": "20241002", + "revision": "20241106", "rootUrl": "https://batch.googleapis.com/", "schemas": { "Accelerator": { @@ -1070,7 +1070,7 @@ "id": "CloudLoggingOption", "properties": { "useGenericTaskMonitoredResource": { - "description": "Optional. Set this flag to true to change the [monitored resource type](https://cloud.google.com/monitoring/api/resources) for Cloud Logging logs generated by this Batch job from the [`batch.googleapis.com/Job`](https://cloud.google.com/monitoring/api/resources#tag_batch.googleapis.com/Job) type to the formerly used [`generic_task`](https://cloud.google.com/monitoring/api/resources#tag_generic_task) type.", + "description": "Optional. Set this field to `true` to change the [monitored resource type](https://cloud.google.com/monitoring/api/resources) for Cloud Logging logs generated by this Batch job from the [`batch.googleapis.com/Job`](https://cloud.google.com/monitoring/api/resources#tag_batch.googleapis.com/Job) type to the formerly used [`generic_task`](https://cloud.google.com/monitoring/api/resources#tag_generic_task) type.", "type": "boolean" } }, @@ -1287,7 +1287,7 @@ "type": "boolean" }, "instanceTemplate": { - "description": "Name of an instance template used to create VMs. Named the field as 'instance_template' instead of 'template' to avoid C++ keyword conflict. Batch only supports global instance templates. You can specify the global instance template as a full or partial URL.", + "description": "Name of an instance template used to create VMs. Named the field as 'instance_template' instead of 'template' to avoid C++ keyword conflict. Batch only supports global instance templates from the same project as the job. You can specify the global instance template as a full or partial URL.", "type": "string" }, "policy": { @@ -1637,29 +1637,29 @@ "type": "object" }, "LogsPolicy": { - "description": "LogsPolicy describes how outputs from a Job's Tasks (stdout/stderr) will be preserved.", + "description": "LogsPolicy describes if and how a job's logs are preserved. Logs include information that is automatically written by the Batch service agent and any information that you configured the job's runnables to write to the `stdout` or `stderr` streams.", "id": "LogsPolicy", "properties": { "cloudLoggingOption": { "$ref": "CloudLoggingOption", - "description": "Optional. Additional settings for Cloud Logging. It will only take effect when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`." + "description": "Optional. When `destination` is set to `CLOUD_LOGGING`, you can optionally set this field to configure additional settings for Cloud Logging." }, "destination": { - "description": "Where logs should be saved.", + "description": "If and where logs should be saved.", "enum": [ "DESTINATION_UNSPECIFIED", "CLOUD_LOGGING", "PATH" ], "enumDescriptions": [ - "Logs are not preserved.", - "Logs are streamed to Cloud Logging.", - "Logs are saved to a file path." + "(Default) Logs are not preserved.", + "Logs are streamed to Cloud Logging. Optionally, you can configure additional settings in the `cloudLoggingOption` field.", + "Logs are saved to the file path specified in the `logsPath` field." ], "type": "string" }, "logsPath": { - "description": "The path to which logs are saved when the destination = PATH. This can be a local file path on the VM, or under the mount point of a Persistent Disk or Filestore, or a Cloud Storage path.", + "description": "When `destination` is set to `PATH`, you must set this field to the path where you want logs to be saved. This path can point to a local directory on the VM or (if congifured) a directory under the mount path of any Cloud Storage bucket, network file system (NFS), or writable persistent disk that is mounted to the job. For example, if the job has a bucket with `mountPath` set to `/mnt/disks/my-bucket`, you can write logs to the root directory of the `remotePath` of that bucket by setting this field to `/mnt/disks/my-bucket/`.", "type": "string" } }, diff --git a/batch/v1/batch-gen.go b/batch/v1/batch-gen.go index 9a4aa012b25..c916f829252 100644 --- a/batch/v1/batch-gen.go +++ b/batch/v1/batch-gen.go @@ -865,8 +865,8 @@ type CancelOperationRequest struct { // CloudLoggingOption: `CloudLoggingOption` contains additional settings for // Cloud Logging logs generated by Batch job. type CloudLoggingOption struct { - // UseGenericTaskMonitoredResource: Optional. Set this flag to true to change - // the monitored resource type + // UseGenericTaskMonitoredResource: Optional. Set this field to `true` to + // change the monitored resource type // (https://cloud.google.com/monitoring/api/resources) for Cloud Logging logs // generated by this Batch job from the `batch.googleapis.com/Job` // (https://cloud.google.com/monitoring/api/resources#tag_batch.googleapis.com/Job) @@ -1239,8 +1239,9 @@ type InstancePolicyOrTemplate struct { InstallOpsAgent bool `json:"installOpsAgent,omitempty"` // InstanceTemplate: Name of an instance template used to create VMs. Named the // field as 'instance_template' instead of 'template' to avoid C++ keyword - // conflict. Batch only supports global instance templates. You can specify the - // global instance template as a full or partial URL. + // conflict. Batch only supports global instance templates from the same + // project as the job. You can specify the global instance template as a full + // or partial URL. InstanceTemplate string `json:"instanceTemplate,omitempty"` // Policy: InstancePolicy. Policy *InstancePolicy `json:"policy,omitempty"` @@ -1676,23 +1677,32 @@ func (s LocationPolicy) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// LogsPolicy: LogsPolicy describes how outputs from a Job's Tasks -// (stdout/stderr) will be preserved. +// LogsPolicy: LogsPolicy describes if and how a job's logs are preserved. Logs +// include information that is automatically written by the Batch service agent +// and any information that you configured the job's runnables to write to the +// `stdout` or `stderr` streams. type LogsPolicy struct { - // CloudLoggingOption: Optional. Additional settings for Cloud Logging. It will - // only take effect when the destination of `LogsPolicy` is set to - // `CLOUD_LOGGING`. + // CloudLoggingOption: Optional. When `destination` is set to `CLOUD_LOGGING`, + // you can optionally set this field to configure additional settings for Cloud + // Logging. CloudLoggingOption *CloudLoggingOption `json:"cloudLoggingOption,omitempty"` - // Destination: Where logs should be saved. + // Destination: If and where logs should be saved. // // Possible values: - // "DESTINATION_UNSPECIFIED" - Logs are not preserved. - // "CLOUD_LOGGING" - Logs are streamed to Cloud Logging. - // "PATH" - Logs are saved to a file path. + // "DESTINATION_UNSPECIFIED" - (Default) Logs are not preserved. + // "CLOUD_LOGGING" - Logs are streamed to Cloud Logging. Optionally, you can + // configure additional settings in the `cloudLoggingOption` field. + // "PATH" - Logs are saved to the file path specified in the `logsPath` + // field. Destination string `json:"destination,omitempty"` - // LogsPath: The path to which logs are saved when the destination = PATH. This - // can be a local file path on the VM, or under the mount point of a Persistent - // Disk or Filestore, or a Cloud Storage path. + // LogsPath: When `destination` is set to `PATH`, you must set this field to + // the path where you want logs to be saved. This path can point to a local + // directory on the VM or (if congifured) a directory under the mount path of + // any Cloud Storage bucket, network file system (NFS), or writable persistent + // disk that is mounted to the job. For example, if the job has a bucket with + // `mountPath` set to `/mnt/disks/my-bucket`, you can write logs to the root + // directory of the `remotePath` of that bucket by setting this field to + // `/mnt/disks/my-bucket/`. LogsPath string `json:"logsPath,omitempty"` // ForceSendFields is a list of field names (e.g. "CloudLoggingOption") to // unconditionally include in API requests. By default, fields with empty or diff --git a/beyondcorp/v1/beyondcorp-api.json b/beyondcorp/v1/beyondcorp-api.json index 5705254f49d..3a95a017861 100644 --- a/beyondcorp/v1/beyondcorp-api.json +++ b/beyondcorp/v1/beyondcorp-api.json @@ -2197,34 +2197,6 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, - "setPeering": { - "description": "This is a custom method to allow customers to create a peering connections between Google network and customer networks. This is enabled only for the allowlisted customers.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/securityGateways/{securityGatewaysId}:setPeering", - "httpMethod": "POST", - "id": "beyondcorp.projects.locations.securityGateways.setPeering", - "parameterOrder": [ - "securityGateway" - ], - "parameters": { - "securityGateway": { - "description": "Required. BeyondCorp SecurityGateway name using the form: `projects/{project}/locations/{location}/securityGateways/{security_gateway}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/securityGateways/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+securityGateway}:setPeering", - "request": { - "$ref": "GoogleCloudBeyondcorpSecuritygatewaysV1SetPeeringRequest" - }, - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "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": "v1/projects/{projectsId}/locations/{locationsId}/securityGateways/{securityGatewaysId}:testIamPermissions", @@ -2431,7 +2403,7 @@ } } }, - "revision": "20241024", + "revision": "20241106", "rootUrl": "https://beyondcorp.googleapis.com/", "schemas": { "AllocatedConnection": { @@ -3791,24 +3763,6 @@ }, "type": "object" }, - "GoogleCloudBeyondcorpSecuritygatewaysV1Peering": { - "description": "VPC Peering details.", - "id": "GoogleCloudBeyondcorpSecuritygatewaysV1Peering", - "properties": { - "dnsZones": { - "description": "Optional. List of DNS zones for DNS peering with the customer VPC network.", - "items": { - "type": "string" - }, - "type": "array" - }, - "targetNetwork": { - "description": "Required. The name of the Target VPC network name in the format: `projects/{project}/global/networks/{network}", - "type": "string" - } - }, - "type": "object" - }, "GoogleCloudBeyondcorpSecuritygatewaysV1SecurityGateway": { "description": "Information about a BeyoncCorp SecurityGateway resource.", "id": "GoogleCloudBeyondcorpSecuritygatewaysV1SecurityGateway", @@ -3918,28 +3872,6 @@ }, "type": "object" }, - "GoogleCloudBeyondcorpSecuritygatewaysV1SetPeeringRequest": { - "description": "Set Peering request for creating a VPC peering between Google network and customer networks.", - "id": "GoogleCloudBeyondcorpSecuritygatewaysV1SetPeeringRequest", - "properties": { - "peerings": { - "description": "Required. List of Peering connection information.", - "items": { - "$ref": "GoogleCloudBeyondcorpSecuritygatewaysV1Peering" - }, - "type": "array" - }, - "requestId": { - "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", - "type": "string" - }, - "validateOnly": { - "description": "Optional. If set, validates request by executing a dry-run which would not alter the resource in any way.", - "type": "boolean" - } - }, - "type": "object" - }, "GoogleCloudBeyondcorpSecuritygatewaysV1alphaSecurityGatewayOperationMetadata": { "description": "Represents the metadata of the long-running operation.", "id": "GoogleCloudBeyondcorpSecuritygatewaysV1alphaSecurityGatewayOperationMetadata", diff --git a/beyondcorp/v1/beyondcorp-gen.go b/beyondcorp/v1/beyondcorp-gen.go index b59c0eb54f7..0939de82e77 100644 --- a/beyondcorp/v1/beyondcorp-gen.go +++ b/beyondcorp/v1/beyondcorp-gen.go @@ -1849,32 +1849,6 @@ func (s GoogleCloudBeyondcorpSecuritygatewaysV1ListSecurityGatewaysResponse) Mar return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudBeyondcorpSecuritygatewaysV1Peering: VPC Peering details. -type GoogleCloudBeyondcorpSecuritygatewaysV1Peering struct { - // DnsZones: Optional. List of DNS zones for DNS peering with the customer VPC - // network. - DnsZones []string `json:"dnsZones,omitempty"` - // TargetNetwork: Required. The name of the Target VPC network name in the - // format: `projects/{project}/global/networks/{network} - TargetNetwork string `json:"targetNetwork,omitempty"` - // ForceSendFields is a list of field names (e.g. "DnsZones") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DnsZones") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s GoogleCloudBeyondcorpSecuritygatewaysV1Peering) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudBeyondcorpSecuritygatewaysV1Peering - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // GoogleCloudBeyondcorpSecuritygatewaysV1SecurityGateway: Information about a // BeyoncCorp SecurityGateway resource. type GoogleCloudBeyondcorpSecuritygatewaysV1SecurityGateway struct { @@ -1966,45 +1940,6 @@ func (s GoogleCloudBeyondcorpSecuritygatewaysV1SecurityGatewayOperationMetadata) return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudBeyondcorpSecuritygatewaysV1SetPeeringRequest: Set Peering -// request for creating a VPC peering between Google network and customer -// networks. -type GoogleCloudBeyondcorpSecuritygatewaysV1SetPeeringRequest struct { - // Peerings: Required. List of Peering connection information. - Peerings []*GoogleCloudBeyondcorpSecuritygatewaysV1Peering `json:"peerings,omitempty"` - // RequestId: Optional. An optional request ID to identify requests. Specify a - // unique request ID so that if you must retry your request, the server will - // know to ignore the request if it has already been completed. The server will - // guarantee that for at least 60 minutes since the first request. For example, - // consider a situation where you make an initial request and the request times - // out. If you make the request again with the same request ID, the server can - // check if original operation with the same request ID was received, and if - // so, will ignore the second request. This prevents clients from accidentally - // creating duplicate commitments. The request ID must be a valid UUID with the - // exception that zero UUID is not supported - // (00000000-0000-0000-0000-000000000000). - RequestId string `json:"requestId,omitempty"` - // ValidateOnly: Optional. If set, validates request by executing a dry-run - // which would not alter the resource in any way. - ValidateOnly bool `json:"validateOnly,omitempty"` - // ForceSendFields is a list of field names (e.g. "Peerings") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Peerings") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s GoogleCloudBeyondcorpSecuritygatewaysV1SetPeeringRequest) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudBeyondcorpSecuritygatewaysV1SetPeeringRequest - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // GoogleCloudBeyondcorpSecuritygatewaysV1alphaSecurityGatewayOperationMetadata: // // Represents the metadata of the long-running operation. @@ -10282,112 +10217,6 @@ func (c *ProjectsLocationsSecurityGatewaysSetIamPolicyCall) Do(opts ...googleapi return ret, nil } -type ProjectsLocationsSecurityGatewaysSetPeeringCall struct { - s *Service - securityGateway string - googlecloudbeyondcorpsecuritygatewaysv1setpeeringrequest *GoogleCloudBeyondcorpSecuritygatewaysV1SetPeeringRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// SetPeering: This is a custom method to allow customers to create a peering -// connections between Google network and customer networks. This is enabled -// only for the allowlisted customers. -// -// - securityGateway: BeyondCorp SecurityGateway name using the form: -// `projects/{project}/locations/{location}/securityGateways/{security_gateway -// }`. -func (r *ProjectsLocationsSecurityGatewaysService) SetPeering(securityGateway string, googlecloudbeyondcorpsecuritygatewaysv1setpeeringrequest *GoogleCloudBeyondcorpSecuritygatewaysV1SetPeeringRequest) *ProjectsLocationsSecurityGatewaysSetPeeringCall { - c := &ProjectsLocationsSecurityGatewaysSetPeeringCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.securityGateway = securityGateway - c.googlecloudbeyondcorpsecuritygatewaysv1setpeeringrequest = googlecloudbeyondcorpsecuritygatewaysv1setpeeringrequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsSecurityGatewaysSetPeeringCall) Fields(s ...googleapi.Field) *ProjectsLocationsSecurityGatewaysSetPeeringCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsSecurityGatewaysSetPeeringCall) Context(ctx context.Context) *ProjectsLocationsSecurityGatewaysSetPeeringCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsSecurityGatewaysSetPeeringCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsSecurityGatewaysSetPeeringCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudbeyondcorpsecuritygatewaysv1setpeeringrequest) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+securityGateway}:setPeering") - 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{ - "securityGateway": c.securityGateway, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "beyondcorp.projects.locations.securityGateways.setPeering" call. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsSecurityGatewaysSetPeeringCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleLongrunningOperation{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - type ProjectsLocationsSecurityGatewaysTestIamPermissionsCall struct { s *Service resource string diff --git a/beyondcorp/v1alpha/beyondcorp-api.json b/beyondcorp/v1alpha/beyondcorp-api.json index 33ee03b840d..da9074fbef3 100644 --- a/beyondcorp/v1alpha/beyondcorp-api.json +++ b/beyondcorp/v1alpha/beyondcorp-api.json @@ -4174,34 +4174,6 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, - "setPeering": { - "description": "This is a custom method to allow customers to create a peering connections between Google network and customer networks. This is enabled only for the allowlisted customers.", - "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/securityGateways/{securityGatewaysId}:setPeering", - "httpMethod": "POST", - "id": "beyondcorp.projects.locations.securityGateways.setPeering", - "parameterOrder": [ - "securityGateway" - ], - "parameters": { - "securityGateway": { - "description": "Required. BeyondCorp SecurityGateway name using the form: `projects/{project}/locations/{location}/securityGateways/{security_gateway}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/securityGateways/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1alpha/{+securityGateway}:setPeering", - "request": { - "$ref": "GoogleCloudBeyondcorpSecuritygatewaysV1alphaSetPeeringRequest" - }, - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "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": "v1alpha/projects/{projectsId}/locations/{locationsId}/securityGateways/{securityGatewaysId}:testIamPermissions", @@ -4408,7 +4380,7 @@ } } }, - "revision": "20241011", + "revision": "20241106", "rootUrl": "https://beyondcorp.googleapis.com/", "schemas": { "AllocatedConnection": { @@ -6755,24 +6727,6 @@ }, "type": "object" }, - "GoogleCloudBeyondcorpSecuritygatewaysV1alphaPeering": { - "description": "VPC Peering details.", - "id": "GoogleCloudBeyondcorpSecuritygatewaysV1alphaPeering", - "properties": { - "dnsZones": { - "description": "Optional. List of DNS zones for DNS peering with the customer VPC network.", - "items": { - "type": "string" - }, - "type": "array" - }, - "targetNetwork": { - "description": "Required. The name of the Target VPC network name in the format: `projects/{project}/global/networks/{network}", - "type": "string" - } - }, - "type": "object" - }, "GoogleCloudBeyondcorpSecuritygatewaysV1alphaSecurityGateway": { "description": "Information about a BeyoncCorp SecurityGateway resource.", "id": "GoogleCloudBeyondcorpSecuritygatewaysV1alphaSecurityGateway", @@ -6882,28 +6836,6 @@ }, "type": "object" }, - "GoogleCloudBeyondcorpSecuritygatewaysV1alphaSetPeeringRequest": { - "description": "Set Peering request for creating a VPC peering between Google network and customer networks.", - "id": "GoogleCloudBeyondcorpSecuritygatewaysV1alphaSetPeeringRequest", - "properties": { - "peerings": { - "description": "Required. List of Peering connection information.", - "items": { - "$ref": "GoogleCloudBeyondcorpSecuritygatewaysV1alphaPeering" - }, - "type": "array" - }, - "requestId": { - "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", - "type": "string" - }, - "validateOnly": { - "description": "Optional. If set, validates request by executing a dry-run which would not alter the resource in any way.", - "type": "boolean" - } - }, - "type": "object" - }, "GoogleCloudLocationListLocationsResponse": { "description": "The response message for Locations.ListLocations.", "id": "GoogleCloudLocationListLocationsResponse", diff --git a/beyondcorp/v1alpha/beyondcorp-gen.go b/beyondcorp/v1alpha/beyondcorp-gen.go index 58b15fb9a79..1a8c60fcef8 100644 --- a/beyondcorp/v1alpha/beyondcorp-gen.go +++ b/beyondcorp/v1alpha/beyondcorp-gen.go @@ -3062,32 +3062,6 @@ func (s GoogleCloudBeyondcorpSecuritygatewaysV1alphaListSecurityGatewaysResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudBeyondcorpSecuritygatewaysV1alphaPeering: VPC Peering details. -type GoogleCloudBeyondcorpSecuritygatewaysV1alphaPeering struct { - // DnsZones: Optional. List of DNS zones for DNS peering with the customer VPC - // network. - DnsZones []string `json:"dnsZones,omitempty"` - // TargetNetwork: Required. The name of the Target VPC network name in the - // format: `projects/{project}/global/networks/{network} - TargetNetwork string `json:"targetNetwork,omitempty"` - // ForceSendFields is a list of field names (e.g. "DnsZones") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DnsZones") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s GoogleCloudBeyondcorpSecuritygatewaysV1alphaPeering) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudBeyondcorpSecuritygatewaysV1alphaPeering - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // GoogleCloudBeyondcorpSecuritygatewaysV1alphaSecurityGateway: Information // about a BeyoncCorp SecurityGateway resource. type GoogleCloudBeyondcorpSecuritygatewaysV1alphaSecurityGateway struct { @@ -3180,45 +3154,6 @@ func (s GoogleCloudBeyondcorpSecuritygatewaysV1alphaSecurityGatewayOperationMeta return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudBeyondcorpSecuritygatewaysV1alphaSetPeeringRequest: Set Peering -// request for creating a VPC peering between Google network and customer -// networks. -type GoogleCloudBeyondcorpSecuritygatewaysV1alphaSetPeeringRequest struct { - // Peerings: Required. List of Peering connection information. - Peerings []*GoogleCloudBeyondcorpSecuritygatewaysV1alphaPeering `json:"peerings,omitempty"` - // RequestId: Optional. An optional request ID to identify requests. Specify a - // unique request ID so that if you must retry your request, the server will - // know to ignore the request if it has already been completed. The server will - // guarantee that for at least 60 minutes since the first request. For example, - // consider a situation where you make an initial request and the request times - // out. If you make the request again with the same request ID, the server can - // check if original operation with the same request ID was received, and if - // so, will ignore the second request. This prevents clients from accidentally - // creating duplicate commitments. The request ID must be a valid UUID with the - // exception that zero UUID is not supported - // (00000000-0000-0000-0000-000000000000). - RequestId string `json:"requestId,omitempty"` - // ValidateOnly: Optional. If set, validates request by executing a dry-run - // which would not alter the resource in any way. - ValidateOnly bool `json:"validateOnly,omitempty"` - // ForceSendFields is a list of field names (e.g. "Peerings") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Peerings") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s GoogleCloudBeyondcorpSecuritygatewaysV1alphaSetPeeringRequest) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudBeyondcorpSecuritygatewaysV1alphaSetPeeringRequest - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // GoogleCloudLocationListLocationsResponse: The response message for // Locations.ListLocations. type GoogleCloudLocationListLocationsResponse struct { @@ -18621,112 +18556,6 @@ func (c *ProjectsLocationsSecurityGatewaysSetIamPolicyCall) Do(opts ...googleapi return ret, nil } -type ProjectsLocationsSecurityGatewaysSetPeeringCall struct { - s *Service - securityGateway string - googlecloudbeyondcorpsecuritygatewaysv1alphasetpeeringrequest *GoogleCloudBeyondcorpSecuritygatewaysV1alphaSetPeeringRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// SetPeering: This is a custom method to allow customers to create a peering -// connections between Google network and customer networks. This is enabled -// only for the allowlisted customers. -// -// - securityGateway: BeyondCorp SecurityGateway name using the form: -// `projects/{project}/locations/{location}/securityGateways/{security_gateway -// }`. -func (r *ProjectsLocationsSecurityGatewaysService) SetPeering(securityGateway string, googlecloudbeyondcorpsecuritygatewaysv1alphasetpeeringrequest *GoogleCloudBeyondcorpSecuritygatewaysV1alphaSetPeeringRequest) *ProjectsLocationsSecurityGatewaysSetPeeringCall { - c := &ProjectsLocationsSecurityGatewaysSetPeeringCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.securityGateway = securityGateway - c.googlecloudbeyondcorpsecuritygatewaysv1alphasetpeeringrequest = googlecloudbeyondcorpsecuritygatewaysv1alphasetpeeringrequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsSecurityGatewaysSetPeeringCall) Fields(s ...googleapi.Field) *ProjectsLocationsSecurityGatewaysSetPeeringCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsSecurityGatewaysSetPeeringCall) Context(ctx context.Context) *ProjectsLocationsSecurityGatewaysSetPeeringCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsSecurityGatewaysSetPeeringCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsSecurityGatewaysSetPeeringCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudbeyondcorpsecuritygatewaysv1alphasetpeeringrequest) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+securityGateway}:setPeering") - 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{ - "securityGateway": c.securityGateway, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "beyondcorp.projects.locations.securityGateways.setPeering" call. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsSecurityGatewaysSetPeeringCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleLongrunningOperation{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - type ProjectsLocationsSecurityGatewaysTestIamPermissionsCall struct { s *Service resource string diff --git a/checks/v1alpha/checks-api.json b/checks/v1alpha/checks-api.json index 09fac11c422..c9eedc47411 100644 --- a/checks/v1alpha/checks-api.json +++ b/checks/v1alpha/checks-api.json @@ -160,7 +160,7 @@ "operations": { "methods": { "cancel": { - "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.", "flatPath": "v1alpha/accounts/{accountsId}/apps/{appsId}/operations/{operationsId}:cancel", "httpMethod": "POST", "id": "checks.accounts.apps.operations.cancel", @@ -463,7 +463,7 @@ } } }, - "revision": "20241029", + "revision": "20241114", "rootUrl": "https://checks.googleapis.com/", "schemas": { "CancelOperationRequest": { diff --git a/checks/v1alpha/checks-gen.go b/checks/v1alpha/checks-gen.go index 8926ca52ff6..834406e422b 100644 --- a/checks/v1alpha/checks-gen.go +++ b/checks/v1alpha/checks-gen.go @@ -2451,7 +2451,7 @@ type AccountsAppsOperationsCancelCall struct { // other methods to check whether the cancellation succeeded or whether the // operation completed despite cancellation. On successful cancellation, the // operation is not deleted; instead, it becomes an operation with an -// Operation.error value with a google.rpc.Status.code of 1, corresponding to +// Operation.error value with a google.rpc.Status.code of `1`, corresponding to // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. diff --git a/cloudasset/v1/cloudasset-api.json b/cloudasset/v1/cloudasset-api.json index a243e2537bc..c04fd666ee0 100644 --- a/cloudasset/v1/cloudasset-api.json +++ b/cloudasset/v1/cloudasset-api.json @@ -1095,7 +1095,7 @@ } } }, - "revision": "20240831", + "revision": "20241110", "rootUrl": "https://cloudasset.googleapis.com/", "schemas": { "AccessSelector": { @@ -1170,7 +1170,7 @@ "description": "The main analysis that matches the original request." }, "serviceAccountImpersonationAnalysis": { - "description": "The service account impersonation analysis if AnalyzeIamPolicyRequest.analyze_service_account_impersonation is enabled.", + "description": "The service account impersonation analysis if IamPolicyAnalysisQuery.Options.analyze_service_account_impersonation is enabled.", "items": { "$ref": "IamPolicyAnalysis" }, @@ -1620,7 +1620,7 @@ "id": "EffectiveTagDetails", "properties": { "attachedResource": { - "description": "The [full resource name](https://cloud.google.com/asset-inventory/docs/resource-name-format) of the ancestor from which an effective_tag is inherited, according to [tag inheritance](https://cloud.google.com/resource-manager/docs/tags/tags-overview#inheritance).", + "description": "The [full resource name](https://cloud.google.com/asset-inventory/docs/resource-name-format) of the ancestor from which effective_tags are inherited, according to [tag inheritance](https://cloud.google.com/resource-manager/docs/tags/tags-overview#inheritance).", "type": "string" }, "effectiveTags": { @@ -1884,7 +1884,7 @@ "description": "A Google Cloud resource governed by the organization policies of the AnalyzeOrgPolicyGovernedAssetsRequest.constraint." }, "policyBundle": { - "description": "The ordered list of all organization policies from the AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource to the scope specified in the request. If the constraint is defined with default policy, it will also appear in the list.", + "description": "The ordered list of all organization policies from the consolidated_policy.attached_resource to the scope specified in the request. If the constraint is defined with default policy, it will also appear in the list.", "items": { "$ref": "AnalyzerOrgPolicy" }, @@ -2174,7 +2174,7 @@ "type": "string" }, "policyBundle": { - "description": "The ordered list of all organization policies from the AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource. to the scope specified in the request. If the constraint is defined with default policy, it will also appear in the list.", + "description": "The ordered list of all organization policies from the consolidated_policy.attached_resource. to the scope specified in the request. If the constraint is defined with default policy, it will also appear in the list.", "items": { "$ref": "AnalyzerOrgPolicy" }, @@ -3062,6 +3062,10 @@ "description": "Description of the `ServicePerimeter` and its use. Does not affect behavior.", "type": "string" }, + "etag": { + "description": "Optional. An opaque identifier for the current version of the `ServicePerimeter`. Clients should not expect this to be in any specific format. If etag is not provided, the operation will be performed as if a valid etag is provided.", + "type": "string" + }, "name": { "description": "Identifier. Resource name for the `ServicePerimeter`. Format: `accessPolicies/{access_policy}/servicePerimeters/{service_perimeter}`. The `service_perimeter` component must begin with a letter, followed by alphanumeric characters or `_`. After you create a `ServicePerimeter`, you cannot change its `name`.", "type": "string" @@ -3658,7 +3662,7 @@ "properties": { "consolidatedPolicy": { "$ref": "AnalyzerOrgPolicy", - "description": "The consolidated organization policy for the analyzed resource. The consolidated organization policy is computed by merging and evaluating AnalyzeOrgPoliciesResponse.policy_bundle. The evaluation will respect the organization policy [hierarchy rules](https://cloud.google.com/resource-manager/docs/organization-policy/understanding-hierarchy)." + "description": "The consolidated organization policy for the analyzed resource. The consolidated organization policy is computed by merging and evaluating policy_bundle. The evaluation will respect the organization policy [hierarchy rules](https://cloud.google.com/resource-manager/docs/organization-policy/understanding-hierarchy)." }, "folders": { "description": "The folder(s) that this consolidated policy belongs to, in the format of folders/{FOLDER_NUMBER}. This field is available when the consolidated policy belongs (directly or cascadingly) to one or more folders.", @@ -3672,7 +3676,7 @@ "type": "string" }, "policyBundle": { - "description": "The ordered list of all organization policies from the AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource. to the scope specified in the request. If the constraint is defined with default policy, it will also appear in the list.", + "description": "The ordered list of all organization policies from the consolidated_policy.attached_resource. to the scope specified in the request. If the constraint is defined with default policy, it will also appear in the list.", "items": { "$ref": "AnalyzerOrgPolicy" }, diff --git a/cloudasset/v1/cloudasset-gen.go b/cloudasset/v1/cloudasset-gen.go index cc589c01787..118ae5e948d 100644 --- a/cloudasset/v1/cloudasset-gen.go +++ b/cloudasset/v1/cloudasset-gen.go @@ -328,7 +328,8 @@ type AnalyzeIamPolicyResponse struct { // MainAnalysis: The main analysis that matches the original request. MainAnalysis *IamPolicyAnalysis `json:"mainAnalysis,omitempty"` // ServiceAccountImpersonationAnalysis: The service account impersonation - // analysis if AnalyzeIamPolicyRequest.analyze_service_account_impersonation is + // analysis if + // IamPolicyAnalysisQuery.Options.analyze_service_account_impersonation is // enabled. ServiceAccountImpersonationAnalysis []*IamPolicyAnalysis `json:"serviceAccountImpersonationAnalysis,omitempty"` @@ -1159,7 +1160,7 @@ func (s EffectiveIamPolicy) MarshalJSON() ([]byte, error) { type EffectiveTagDetails struct { // AttachedResource: The full resource name // (https://cloud.google.com/asset-inventory/docs/resource-name-format) of the - // ancestor from which an effective_tag is inherited, according to tag + // ancestor from which effective_tags are inherited, according to tag // inheritance // (https://cloud.google.com/resource-manager/docs/tags/tags-overview#inheritance). AttachedResource string `json:"attachedResource,omitempty"` @@ -1579,9 +1580,9 @@ type GoogleCloudAssetV1AnalyzeOrgPolicyGovernedAssetsResponseGovernedAsset struc // policies of the AnalyzeOrgPolicyGovernedAssetsRequest.constraint. GovernedResource *GoogleCloudAssetV1AnalyzeOrgPolicyGovernedAssetsResponseGovernedResource `json:"governedResource,omitempty"` // PolicyBundle: The ordered list of all organization policies from the - // AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resou - // rce to the scope specified in the request. If the constraint is defined with - // default policy, it will also appear in the list. + // consolidated_policy.attached_resource to the scope specified in the request. + // If the constraint is defined with default policy, it will also appear in the + // list. PolicyBundle []*AnalyzerOrgPolicy `json:"policyBundle,omitempty"` // ForceSendFields is a list of field names (e.g. "ConsolidatedPolicy") to // unconditionally include in API requests. By default, fields with empty or @@ -1946,9 +1947,9 @@ type GoogleCloudAssetV1GovernedContainer struct { // me. Parent string `json:"parent,omitempty"` // PolicyBundle: The ordered list of all organization policies from the - // AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resou - // rce. to the scope specified in the request. If the constraint is defined - // with default policy, it will also appear in the list. + // consolidated_policy.attached_resource. to the scope specified in the + // request. If the constraint is defined with default policy, it will also + // appear in the list. PolicyBundle []*AnalyzerOrgPolicy `json:"policyBundle,omitempty"` // Project: The project that this resource belongs to, in the format of // projects/{PROJECT_NUMBER}. This field is available when the resource belongs @@ -3374,6 +3375,11 @@ type GoogleIdentityAccesscontextmanagerV1ServicePerimeter struct { // Description: Description of the `ServicePerimeter` and its use. Does not // affect behavior. Description string `json:"description,omitempty"` + // Etag: Optional. An opaque identifier for the current version of the + // `ServicePerimeter`. Clients should not expect this to be in any specific + // format. If etag is not provided, the operation will be performed as if a + // valid etag is provided. + Etag string `json:"etag,omitempty"` // Name: Identifier. Resource name for the `ServicePerimeter`. Format: // `accessPolicies/{access_policy}/servicePerimeters/{service_perimeter}`. The // `service_perimeter` component must begin with a letter, followed by @@ -4292,8 +4298,8 @@ func (s Options) MarshalJSON() ([]byte, error) { type OrgPolicyResult struct { // ConsolidatedPolicy: The consolidated organization policy for the analyzed // resource. The consolidated organization policy is computed by merging and - // evaluating AnalyzeOrgPoliciesResponse.policy_bundle. The evaluation will - // respect the organization policy hierarchy rules + // evaluating policy_bundle. The evaluation will respect the organization + // policy hierarchy rules // (https://cloud.google.com/resource-manager/docs/organization-policy/understanding-hierarchy). ConsolidatedPolicy *AnalyzerOrgPolicy `json:"consolidatedPolicy,omitempty"` // Folders: The folder(s) that this consolidated policy belongs to, in the @@ -4307,9 +4313,9 @@ type OrgPolicyResult struct { // organization. Organization string `json:"organization,omitempty"` // PolicyBundle: The ordered list of all organization policies from the - // AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resou - // rce. to the scope specified in the request. If the constraint is defined - // with default policy, it will also appear in the list. + // consolidated_policy.attached_resource. to the scope specified in the + // request. If the constraint is defined with default policy, it will also + // appear in the list. PolicyBundle []*AnalyzerOrgPolicy `json:"policyBundle,omitempty"` // Project: The project that this consolidated policy belongs to, in the format // of projects/{PROJECT_NUMBER}. This field is available when the consolidated diff --git a/cloudasset/v1beta1/cloudasset-api.json b/cloudasset/v1beta1/cloudasset-api.json index 5943500c733..7793cd104fc 100644 --- a/cloudasset/v1beta1/cloudasset-api.json +++ b/cloudasset/v1beta1/cloudasset-api.json @@ -411,7 +411,7 @@ } } }, - "revision": "20240803", + "revision": "20241110", "rootUrl": "https://cloudasset.googleapis.com/", "schemas": { "AnalyzeIamPolicyLongrunningMetadata": { @@ -1372,6 +1372,10 @@ "description": "Description of the `ServicePerimeter` and its use. Does not affect behavior.", "type": "string" }, + "etag": { + "description": "Optional. An opaque identifier for the current version of the `ServicePerimeter`. Clients should not expect this to be in any specific format. If etag is not provided, the operation will be performed as if a valid etag is provided.", + "type": "string" + }, "name": { "description": "Identifier. Resource name for the `ServicePerimeter`. Format: `accessPolicies/{access_policy}/servicePerimeters/{service_perimeter}`. The `service_perimeter` component must begin with a letter, followed by alphanumeric characters or `_`. After you create a `ServicePerimeter`, you cannot change its `name`.", "type": "string" diff --git a/cloudasset/v1beta1/cloudasset-gen.go b/cloudasset/v1beta1/cloudasset-gen.go index d58ad8ce9d5..e8ad161a1d1 100644 --- a/cloudasset/v1beta1/cloudasset-gen.go +++ b/cloudasset/v1beta1/cloudasset-gen.go @@ -1820,6 +1820,11 @@ type GoogleIdentityAccesscontextmanagerV1ServicePerimeter struct { // Description: Description of the `ServicePerimeter` and its use. Does not // affect behavior. Description string `json:"description,omitempty"` + // Etag: Optional. An opaque identifier for the current version of the + // `ServicePerimeter`. Clients should not expect this to be in any specific + // format. If etag is not provided, the operation will be performed as if a + // valid etag is provided. + Etag string `json:"etag,omitempty"` // Name: Identifier. Resource name for the `ServicePerimeter`. Format: // `accessPolicies/{access_policy}/servicePerimeters/{service_perimeter}`. The // `service_perimeter` component must begin with a letter, followed by diff --git a/cloudasset/v1p1beta1/cloudasset-api.json b/cloudasset/v1p1beta1/cloudasset-api.json index 4af631873ab..ede514f9a35 100644 --- a/cloudasset/v1p1beta1/cloudasset-api.json +++ b/cloudasset/v1p1beta1/cloudasset-api.json @@ -207,7 +207,7 @@ } } }, - "revision": "20240803", + "revision": "20241110", "rootUrl": "https://cloudasset.googleapis.com/", "schemas": { "AnalyzeIamPolicyLongrunningMetadata": { @@ -1074,6 +1074,10 @@ "description": "Description of the `ServicePerimeter` and its use. Does not affect behavior.", "type": "string" }, + "etag": { + "description": "Optional. An opaque identifier for the current version of the `ServicePerimeter`. Clients should not expect this to be in any specific format. If etag is not provided, the operation will be performed as if a valid etag is provided.", + "type": "string" + }, "name": { "description": "Identifier. Resource name for the `ServicePerimeter`. Format: `accessPolicies/{access_policy}/servicePerimeters/{service_perimeter}`. The `service_perimeter` component must begin with a letter, followed by alphanumeric characters or `_`. After you create a `ServicePerimeter`, you cannot change its `name`.", "type": "string" diff --git a/cloudasset/v1p1beta1/cloudasset-gen.go b/cloudasset/v1p1beta1/cloudasset-gen.go index 3b4efc5e242..569cf5b66eb 100644 --- a/cloudasset/v1p1beta1/cloudasset-gen.go +++ b/cloudasset/v1p1beta1/cloudasset-gen.go @@ -1631,6 +1631,11 @@ type GoogleIdentityAccesscontextmanagerV1ServicePerimeter struct { // Description: Description of the `ServicePerimeter` and its use. Does not // affect behavior. Description string `json:"description,omitempty"` + // Etag: Optional. An opaque identifier for the current version of the + // `ServicePerimeter`. Clients should not expect this to be in any specific + // format. If etag is not provided, the operation will be performed as if a + // valid etag is provided. + Etag string `json:"etag,omitempty"` // Name: Identifier. Resource name for the `ServicePerimeter`. Format: // `accessPolicies/{access_policy}/servicePerimeters/{service_perimeter}`. The // `service_perimeter` component must begin with a letter, followed by diff --git a/cloudasset/v1p5beta1/cloudasset-api.json b/cloudasset/v1p5beta1/cloudasset-api.json index a2e89fa7195..fd5185456aa 100644 --- a/cloudasset/v1p5beta1/cloudasset-api.json +++ b/cloudasset/v1p5beta1/cloudasset-api.json @@ -177,7 +177,7 @@ } } }, - "revision": "20240803", + "revision": "20241110", "rootUrl": "https://cloudasset.googleapis.com/", "schemas": { "AnalyzeIamPolicyLongrunningMetadata": { @@ -1079,6 +1079,10 @@ "description": "Description of the `ServicePerimeter` and its use. Does not affect behavior.", "type": "string" }, + "etag": { + "description": "Optional. An opaque identifier for the current version of the `ServicePerimeter`. Clients should not expect this to be in any specific format. If etag is not provided, the operation will be performed as if a valid etag is provided.", + "type": "string" + }, "name": { "description": "Identifier. Resource name for the `ServicePerimeter`. Format: `accessPolicies/{access_policy}/servicePerimeters/{service_perimeter}`. The `service_perimeter` component must begin with a letter, followed by alphanumeric characters or `_`. After you create a `ServicePerimeter`, you cannot change its `name`.", "type": "string" diff --git a/cloudasset/v1p5beta1/cloudasset-gen.go b/cloudasset/v1p5beta1/cloudasset-gen.go index 6a09f748c21..de3f24d25aa 100644 --- a/cloudasset/v1p5beta1/cloudasset-gen.go +++ b/cloudasset/v1p5beta1/cloudasset-gen.go @@ -1665,6 +1665,11 @@ type GoogleIdentityAccesscontextmanagerV1ServicePerimeter struct { // Description: Description of the `ServicePerimeter` and its use. Does not // affect behavior. Description string `json:"description,omitempty"` + // Etag: Optional. An opaque identifier for the current version of the + // `ServicePerimeter`. Clients should not expect this to be in any specific + // format. If etag is not provided, the operation will be performed as if a + // valid etag is provided. + Etag string `json:"etag,omitempty"` // Name: Identifier. Resource name for the `ServicePerimeter`. Format: // `accessPolicies/{access_policy}/servicePerimeters/{service_perimeter}`. The // `service_perimeter` component must begin with a letter, followed by diff --git a/cloudscheduler/v1/cloudscheduler-api.json b/cloudscheduler/v1/cloudscheduler-api.json index 8e0b5f517df..f1d4748182e 100644 --- a/cloudscheduler/v1/cloudscheduler-api.json +++ b/cloudscheduler/v1/cloudscheduler-api.json @@ -384,7 +384,7 @@ "type": "integer" }, "pageToken": { - "description": "A token identifying a page of results the server will return. To request the first page results, page_token must be empty. To request the next page of results, page_token must be the value of next_page_token returned from the previous call to ListJobs. It is an error to switch the value of filter or order_by while iterating through pages.", + "description": "A token identifying a page of results the server will return. To request the first page results, page_token must be empty. To request the next page of results, page_token must be the value of next_page_token returned from the previous call to ListJobs.", "location": "query", "type": "string" }, @@ -529,7 +529,7 @@ } } }, - "revision": "20240917", + "revision": "20241113", "rootUrl": "https://cloudscheduler.googleapis.com/", "schemas": { "AppEngineHttpTarget": { @@ -922,7 +922,7 @@ "type": "string" }, "cancelRequested": { - "description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have google.longrunning.Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.", "readOnly": true, "type": "boolean" }, diff --git a/cloudscheduler/v1/cloudscheduler-gen.go b/cloudscheduler/v1/cloudscheduler-gen.go index 1400f663238..ecadd8bd6de 100644 --- a/cloudscheduler/v1/cloudscheduler-gen.go +++ b/cloudscheduler/v1/cloudscheduler-gen.go @@ -785,8 +785,8 @@ type OperationMetadata struct { ApiVersion string `json:"apiVersion,omitempty"` // CancelRequested: Output only. Identifies whether the user has requested // cancellation of the operation. Operations that have been cancelled - // successfully have Operation.error value with a google.rpc.Status.code of 1, - // corresponding to `Code.CANCELLED`. + // successfully have google.longrunning.Operation.error value with a + // google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. CancelRequested bool `json:"cancelRequested,omitempty"` // CreateTime: Output only. The time the operation was created. CreateTime string `json:"createTime,omitempty"` @@ -2070,8 +2070,7 @@ func (c *ProjectsLocationsJobsListCall) PageSize(pageSize int64) *ProjectsLocati // page of results the server will return. To request the first page results, // page_token must be empty. To request the next page of results, page_token // must be the value of next_page_token returned from the previous call to -// ListJobs. It is an error to switch the value of filter or order_by while -// iterating through pages. +// ListJobs. func (c *ProjectsLocationsJobsListCall) PageToken(pageToken string) *ProjectsLocationsJobsListCall { c.urlParams_.Set("pageToken", pageToken) return c diff --git a/cloudscheduler/v1beta1/cloudscheduler-api.json b/cloudscheduler/v1beta1/cloudscheduler-api.json index b320ac7bbf6..447142fb185 100644 --- a/cloudscheduler/v1beta1/cloudscheduler-api.json +++ b/cloudscheduler/v1beta1/cloudscheduler-api.json @@ -433,7 +433,7 @@ } } }, - "revision": "20240917", + "revision": "20241113", "rootUrl": "https://cloudscheduler.googleapis.com/", "schemas": { "AppEngineHttpTarget": { @@ -771,7 +771,7 @@ "type": "string" }, "cancelRequested": { - "description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have google.longrunning.Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.", "readOnly": true, "type": "boolean" }, diff --git a/cloudscheduler/v1beta1/cloudscheduler-gen.go b/cloudscheduler/v1beta1/cloudscheduler-gen.go index 864a99e591a..63dfe62151f 100644 --- a/cloudscheduler/v1beta1/cloudscheduler-gen.go +++ b/cloudscheduler/v1beta1/cloudscheduler-gen.go @@ -700,8 +700,8 @@ type OperationMetadata struct { ApiVersion string `json:"apiVersion,omitempty"` // CancelRequested: Output only. Identifies whether the user has requested // cancellation of the operation. Operations that have been cancelled - // successfully have Operation.error value with a google.rpc.Status.code of 1, - // corresponding to `Code.CANCELLED`. + // successfully have google.longrunning.Operation.error value with a + // google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. CancelRequested bool `json:"cancelRequested,omitempty"` // CreateTime: Output only. The time the operation was created. CreateTime string `json:"createTime,omitempty"` diff --git a/cloudsearch/v1/cloudsearch-api.json b/cloudsearch/v1/cloudsearch-api.json index ceb0fe52e81..b852c278194 100644 --- a/cloudsearch/v1/cloudsearch-api.json +++ b/cloudsearch/v1/cloudsearch-api.json @@ -2115,7 +2115,7 @@ } } }, - "revision": "20241016", + "revision": "20241113", "rootUrl": "https://cloudsearch.googleapis.com/", "schemas": { "Action": { @@ -7042,68 +7042,6 @@ }, "type": "object" }, - "RewrittenQueries": { - "description": "The rewritten queries returned by Apps Search Query Understanding service.", - "id": "RewrittenQueries", - "properties": { - "rewrittenQueries": { - "items": { - "$ref": "RewrittenQuery" - }, - "type": "array" - }, - "selectedQueryIndex": { - "description": "The index of the selected query in `rewritten_queries` that is used by QAPI to call CSSR to get search results. If none of the queries were used (i.e. they all give empty search results), `selected_query_index` would default to -1.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "RewrittenQuery": { - "id": "RewrittenQuery", - "properties": { - "rewrittenQuery": { - "type": "string" - }, - "score": { - "format": "double", - "type": "number" - }, - "sortBy": { - "enum": [ - "SORTBY_UNSUPPORTED", - "SORTBY_RELEVANCY", - "SORTBY_LATEST", - "SORTBY_OLDEST", - "SORTBY_LARGEST", - "SORTBY_SMALLEST", - "SORTBY_MODIFY_LATEST", - "SORTBY_MODIFY_OLDEST", - "SORTBY_VIEW_LATEST", - "SORTBY_VIEW_OLDEST", - "SORTBY_CREATE_LATEST", - "SORTBY_CREATE_OLDEST" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, "SafeHtmlProto": { "description": "IMPORTANT: It is unsafe to accept this message from an untrusted source, since it's trivial for an attacker to forge serialized messages that don't fulfill the type's safety contract -- for example, it could contain attacker controlled script. A system which receives a SafeHtmlProto implicitly trusts the producer of the SafeHtmlProto. So, it's generally safe to return this message in RPC responses, but generally unsafe to accept it in RPC requests.", "id": "SafeHtmlProto", diff --git a/cloudsearch/v1/cloudsearch-gen.go b/cloudsearch/v1/cloudsearch-gen.go index cd3a1b2f0e8..b591115fc80 100644 --- a/cloudsearch/v1/cloudsearch-gen.go +++ b/cloudsearch/v1/cloudsearch-gen.go @@ -6518,82 +6518,6 @@ func (s RetrievalImportance) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RewrittenQueries: The rewritten queries returned by Apps Search Query -// Understanding service. -type RewrittenQueries struct { - RewrittenQueries []*RewrittenQuery `json:"rewrittenQueries,omitempty"` - // SelectedQueryIndex: The index of the selected query in `rewritten_queries` - // that is used by QAPI to call CSSR to get search results. If none of the - // queries were used (i.e. they all give empty search results), - // `selected_query_index` would default to -1. - SelectedQueryIndex int64 `json:"selectedQueryIndex,omitempty"` - // ForceSendFields is a list of field names (e.g. "RewrittenQueries") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "RewrittenQueries") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s RewrittenQueries) MarshalJSON() ([]byte, error) { - type NoMethod RewrittenQueries - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -type RewrittenQuery struct { - RewrittenQuery string `json:"rewrittenQuery,omitempty"` - Score float64 `json:"score,omitempty"` - // Possible values: - // "SORTBY_UNSUPPORTED" - // "SORTBY_RELEVANCY" - // "SORTBY_LATEST" - // "SORTBY_OLDEST" - // "SORTBY_LARGEST" - // "SORTBY_SMALLEST" - // "SORTBY_MODIFY_LATEST" - // "SORTBY_MODIFY_OLDEST" - // "SORTBY_VIEW_LATEST" - // "SORTBY_VIEW_OLDEST" - // "SORTBY_CREATE_LATEST" - // "SORTBY_CREATE_OLDEST" - SortBy string `json:"sortBy,omitempty"` - // ForceSendFields is a list of field names (e.g. "RewrittenQuery") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "RewrittenQuery") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s RewrittenQuery) MarshalJSON() ([]byte, error) { - type NoMethod RewrittenQuery - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -func (s *RewrittenQuery) UnmarshalJSON(data []byte) error { - type NoMethod RewrittenQuery - var s1 struct { - Score gensupport.JSONFloat64 `json:"score"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Score = float64(s1.Score) - return nil -} - // SafeHtmlProto: IMPORTANT: It is unsafe to accept this message from an // untrusted source, since it's trivial for an attacker to forge serialized // messages that don't fulfill the type's safety contract -- for example, it diff --git a/cloudtasks/v2/cloudtasks-api.json b/cloudtasks/v2/cloudtasks-api.json index 4ae0911fb0b..47e49d81a07 100644 --- a/cloudtasks/v2/cloudtasks-api.json +++ b/cloudtasks/v2/cloudtasks-api.json @@ -743,7 +743,7 @@ ] }, "run": { - "description": "Forces a task to run now. When this method is called, Cloud Tasks will dispatch the task, even if the task is already running, the queue has reached its RateLimits or is PAUSED. This command is meant to be used for manual debugging. For example, RunTask can be used to retry a failed task after a fix has been made or to manually force a task to be dispatched now. The dispatched task is returned. That is, the task that is returned contains the status after the task is dispatched but before the task is received by its target. If Cloud Tasks receives a successful response from the task's target, then the task will be deleted; otherwise the task's schedule_time will be reset to the time that RunTask was called plus the retry delay specified in the queue's RetryConfig. RunTask returns NOT_FOUND when it is called on a task that has already succeeded or permanently failed.", + "description": "Forces a task to run now. When this method is called, Cloud Tasks will dispatch the task, even if the task is already running, the queue has reached its RateLimits or is PAUSED. This command is meant to be used for manual debugging. For example, RunTask can be used to retry a failed task after a fix has been made or to manually force a task to be dispatched now. If Cloud Tasks receives a successful response from the task's target, then the task will be deleted; otherwise the task's schedule_time will be reset to the time that RunTask was called plus the retry delay specified in the queue's RetryConfig. RunTask returns NOT_FOUND when it is called on a task that has already succeeded or permanently failed.", "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/queues/{queuesId}/tasks/{tasksId}:run", "httpMethod": "POST", "id": "cloudtasks.projects.locations.queues.tasks.run", @@ -779,7 +779,7 @@ } } }, - "revision": "20240808", + "revision": "20241111", "rootUrl": "https://cloudtasks.googleapis.com/", "schemas": { "AppEngineHttpRequest": { diff --git a/cloudtasks/v2/cloudtasks-gen.go b/cloudtasks/v2/cloudtasks-gen.go index 6b2383e761b..bb086418b31 100644 --- a/cloudtasks/v2/cloudtasks-gen.go +++ b/cloudtasks/v2/cloudtasks-gen.go @@ -4344,13 +4344,11 @@ type ProjectsLocationsQueuesTasksRunCall struct { // reached its RateLimits or is PAUSED. This command is meant to be used for // manual debugging. For example, RunTask can be used to retry a failed task // after a fix has been made or to manually force a task to be dispatched now. -// The dispatched task is returned. That is, the task that is returned contains -// the status after the task is dispatched but before the task is received by -// its target. If Cloud Tasks receives a successful response from the task's -// target, then the task will be deleted; otherwise the task's schedule_time -// will be reset to the time that RunTask was called plus the retry delay -// specified in the queue's RetryConfig. RunTask returns NOT_FOUND when it is -// called on a task that has already succeeded or permanently failed. +// If Cloud Tasks receives a successful response from the task's target, then +// the task will be deleted; otherwise the task's schedule_time will be reset +// to the time that RunTask was called plus the retry delay specified in the +// queue's RetryConfig. RunTask returns NOT_FOUND when it is called on a task +// that has already succeeded or permanently failed. // // - name: The task name. For example: // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`. diff --git a/cloudtasks/v2beta3/cloudtasks-api.json b/cloudtasks/v2beta3/cloudtasks-api.json index 87f782a26fc..ada4dbf13ca 100644 --- a/cloudtasks/v2beta3/cloudtasks-api.json +++ b/cloudtasks/v2beta3/cloudtasks-api.json @@ -791,7 +791,7 @@ } } }, - "revision": "20240808", + "revision": "20241111", "rootUrl": "https://cloudtasks.googleapis.com/", "schemas": { "AppEngineHttpQueue": { @@ -1108,7 +1108,7 @@ "additionalProperties": { "type": "string" }, - "description": "HTTP request headers. This map contains the header field names and values. Headers can be set when the task is created. These headers represent a subset of the headers that will accompany the task's HTTP request. Some HTTP request headers will be ignored or replaced. A partial list of headers that will be ignored or replaced is: * Any header that is prefixed with \"X-CloudTasks-\" will be treated as service header. Service headers define properties of the task and are predefined in CloudTask. * Host: This will be computed by Cloud Tasks and derived from HttpRequest.url. * Content-Length: This will be computed by Cloud Tasks. * User-Agent: This will be set to `\"Google-Cloud-Tasks\"`. * `X-Google-*`: Google use only. * `X-AppEngine-*`: Google use only. `Content-Type` won't be set by Cloud Tasks. You can explicitly set `Content-Type` to a media type when the task is created. For example, `Content-Type` can be set to `\"application/octet-stream\"` or `\"application/json\"`. Headers which can have multiple values (according to RFC2616) can be specified using comma-separated values. The size of the headers must be less than 80KB.", + "description": "HTTP request headers. This map contains the header field names and values. Headers can be set when the task is created. These headers represent a subset of the headers that will accompany the task's HTTP request. Some HTTP request headers will be ignored or replaced. A partial list of headers that will be ignored or replaced is: * Any header that is prefixed with \"X-CloudTasks-\" will be treated as service header. Service headers define properties of the task and are predefined in Cloud Tasks. * Host: This will be computed by Cloud Tasks and derived from HttpRequest.url. * Content-Length: This will be computed by Cloud Tasks. * User-Agent: This will be set to `\"Google-Cloud-Tasks\"`. * `X-Google-*`: Google use only. * `X-AppEngine-*`: Google use only. `Content-Type` won't be set by Cloud Tasks. You can explicitly set `Content-Type` to a media type when the task is created. For example, `Content-Type` can be set to `\"application/octet-stream\"` or `\"application/json\"`. Headers which can have multiple values (according to RFC2616) can be specified using comma-separated values. The size of the headers must be less than 80KB.", "type": "object" }, "httpMethod": { @@ -1162,7 +1162,7 @@ "type": "array" }, "httpMethod": { - "description": "The HTTP method to use for the request. When specified, it overrides HttpRequest for the task. Note that if the value is set to HttpMethod the HttpRequest of the task will be ignored at execution time.", + "description": "The HTTP method to use for the request. When specified, it overrides HttpRequest.http_method for the task. Note that if the value is set to HttpMethod.GET the HttpRequest.body of the task will be ignored at execution time.", "enum": [ "HTTP_METHOD_UNSPECIFIED", "POST", diff --git a/cloudtasks/v2beta3/cloudtasks-gen.go b/cloudtasks/v2beta3/cloudtasks-gen.go index 610f158e8a5..b5798a55232 100644 --- a/cloudtasks/v2beta3/cloudtasks-gen.go +++ b/cloudtasks/v2beta3/cloudtasks-gen.go @@ -912,16 +912,16 @@ type HttpRequest struct { // HTTP request headers will be ignored or replaced. A partial list of headers // that will be ignored or replaced is: * Any header that is prefixed with // "X-CloudTasks-" will be treated as service header. Service headers define - // properties of the task and are predefined in CloudTask. * Host: This will be - // computed by Cloud Tasks and derived from HttpRequest.url. * Content-Length: - // This will be computed by Cloud Tasks. * User-Agent: This will be set to - // "Google-Cloud-Tasks". * `X-Google-*`: Google use only. * `X-AppEngine-*`: - // Google use only. `Content-Type` won't be set by Cloud Tasks. You can - // explicitly set `Content-Type` to a media type when the task is created. For - // example, `Content-Type` can be set to "application/octet-stream" or - // "application/json". Headers which can have multiple values (according to - // RFC2616) can be specified using comma-separated values. The size of the - // headers must be less than 80KB. + // properties of the task and are predefined in Cloud Tasks. * Host: This will + // be computed by Cloud Tasks and derived from HttpRequest.url. * + // Content-Length: This will be computed by Cloud Tasks. * User-Agent: This + // will be set to "Google-Cloud-Tasks". * `X-Google-*`: Google use only. * + // `X-AppEngine-*`: Google use only. `Content-Type` won't be set by Cloud + // Tasks. You can explicitly set `Content-Type` to a media type when the task + // is created. For example, `Content-Type` can be set to + // "application/octet-stream" or "application/json". Headers which can have + // multiple values (according to RFC2616) can be specified using + // comma-separated values. The size of the headers must be less than 80KB. Headers map[string]string `json:"headers,omitempty"` // HttpMethod: The HTTP method to use for the request. The default is POST. // @@ -998,8 +998,9 @@ type HttpTarget struct { // (https://cloud.google.com/terms/service-terms). HeaderOverrides []*HeaderOverride `json:"headerOverrides,omitempty"` // HttpMethod: The HTTP method to use for the request. When specified, it - // overrides HttpRequest for the task. Note that if the value is set to - // HttpMethod the HttpRequest of the task will be ignored at execution time. + // overrides HttpRequest.http_method for the task. Note that if the value is + // set to HttpMethod.GET the HttpRequest.body of the task will be ignored at + // execution time. // // Possible values: // "HTTP_METHOD_UNSPECIFIED" - HTTP method unspecified diff --git a/compute/v0.beta/compute-api.json b/compute/v0.beta/compute-api.json index e0267d3f1e8..804d7580f52 100644 --- a/compute/v0.beta/compute-api.json +++ b/compute/v0.beta/compute-api.json @@ -42695,7 +42695,7 @@ } } }, - "revision": "20241105", + "revision": "20241112", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AWSV4Signature": { @@ -67319,12 +67319,16 @@ "enum": [ "GVNIC", "IDPF", + "IRDMA", + "MRDMA", "UNSPECIFIED_NIC_TYPE", "VIRTIO_NET" ], "enumDescriptions": [ "GVNIC", "IDPF", + "IRDMA", + "MRDMA", "No type specified.", "VIRTIO" ], @@ -67883,12 +67887,16 @@ "enum": [ "GVNIC", "IDPF", + "IRDMA", + "MRDMA", "UNSPECIFIED_NIC_TYPE", "VIRTIO_NET" ], "enumDescriptions": [ "GVNIC", "IDPF", + "IRDMA", + "MRDMA", "No type specified.", "VIRTIO" ], diff --git a/compute/v0.beta/compute-gen.go b/compute/v0.beta/compute-gen.go index a97734a5623..a49aa603a4b 100644 --- a/compute/v0.beta/compute-gen.go +++ b/compute/v0.beta/compute-gen.go @@ -29848,6 +29848,8 @@ type NetworkInterface struct { // Possible values: // "GVNIC" - GVNIC // "IDPF" - IDPF + // "IRDMA" - IRDMA + // "MRDMA" - MRDMA // "UNSPECIFIED_NIC_TYPE" - No type specified. // "VIRTIO_NET" - VIRTIO NicType string `json:"nicType,omitempty"` @@ -30338,6 +30340,8 @@ type NetworkProfileNetworkFeatures struct { // Possible values: // "GVNIC" - GVNIC // "IDPF" - IDPF + // "IRDMA" - IRDMA + // "MRDMA" - MRDMA // "UNSPECIFIED_NIC_TYPE" - No type specified. // "VIRTIO_NET" - VIRTIO InterfaceTypes []string `json:"interfaceTypes,omitempty"` diff --git a/config/v1/config-api.json b/config/v1/config-api.json index aea82befd42..d7f5e953b33 100644 --- a/config/v1/config-api.json +++ b/config/v1/config-api.json @@ -1187,7 +1187,7 @@ } } }, - "revision": "20240710", + "revision": "20241106", "rootUrl": "https://config.googleapis.com/", "schemas": { "ApplyResults": { @@ -1422,7 +1422,7 @@ "type": "string" }, "serviceAccount": { - "description": "Optional. User-specified Service Account (SA) credentials to be used when actuating resources. Format: `projects/{projectID}/serviceAccounts/{serviceAccount}`", + "description": "Required. User-specified Service Account (SA) credentials to be used when actuating resources. Format: `projects/{projectID}/serviceAccounts/{serviceAccount}`", "type": "string" }, "state": { @@ -2091,7 +2091,7 @@ "type": "string" }, "serviceAccount": { - "description": "Optional. User-specified Service Account (SA) credentials to be used when previewing resources. Format: `projects/{projectID}/serviceAccounts/{serviceAccount}`", + "description": "Required. User-specified Service Account (SA) credentials to be used when previewing resources. Format: `projects/{projectID}/serviceAccounts/{serviceAccount}`", "type": "string" }, "state": { diff --git a/config/v1/config-gen.go b/config/v1/config-gen.go index d970f7e10b7..f60a3418654 100644 --- a/config/v1/config-gen.go +++ b/config/v1/config-gen.go @@ -566,7 +566,7 @@ type Deployment struct { // sufficient quotas available to deploy resources in terraform configuration // files. QuotaValidation string `json:"quotaValidation,omitempty"` - // ServiceAccount: Optional. User-specified Service Account (SA) credentials to + // ServiceAccount: Required. User-specified Service Account (SA) credentials to // be used when actuating resources. Format: // `projects/{projectID}/serviceAccounts/{serviceAccount}` ServiceAccount string `json:"serviceAccount,omitempty"` @@ -1392,7 +1392,7 @@ type Preview struct { // "DELETE" - DELETE mode generates as execution plan for destroying current // resources. PreviewMode string `json:"previewMode,omitempty"` - // ServiceAccount: Optional. User-specified Service Account (SA) credentials to + // ServiceAccount: Required. User-specified Service Account (SA) credentials to // be used when previewing resources. Format: // `projects/{projectID}/serviceAccounts/{serviceAccount}` ServiceAccount string `json:"serviceAccount,omitempty"` diff --git a/contactcenterinsights/v1/contactcenterinsights-api.json b/contactcenterinsights/v1/contactcenterinsights-api.json index a7d87254b77..a02a6b7cfd2 100644 --- a/contactcenterinsights/v1/contactcenterinsights-api.json +++ b/contactcenterinsights/v1/contactcenterinsights-api.json @@ -472,809 +472,6 @@ } } }, - "authorizedViewSet": { - "resources": { - "authorizedView": { - "methods": { - "calculateStats": { - "description": "Gets conversation statistics.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSet/{authorizedViewSetId}/authorizedView/{authorizedViewId}:calculateStats", - "httpMethod": "GET", - "id": "contactcenterinsights.projects.locations.authorizedViewSet.authorizedView.calculateStats", - "parameterOrder": [ - "location" - ], - "parameters": { - "filter": { - "description": "A filter to reduce results to a specific subset. This field is useful for getting statistics about conversations with specific properties.", - "location": "query", - "type": "string" - }, - "location": { - "description": "Required. The location of the conversations.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/authorizedViewSet/[^/]+/authorizedView/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+location}:calculateStats", - "response": { - "$ref": "GoogleCloudContactcenterinsightsV1CalculateStatsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "queryMetrics": { - "description": "Query metrics.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSet/{authorizedViewSetId}/authorizedView/{authorizedViewId}:queryMetrics", - "httpMethod": "POST", - "id": "contactcenterinsights.projects.locations.authorizedViewSet.authorizedView.queryMetrics", - "parameterOrder": [ - "location" - ], - "parameters": { - "location": { - "description": "Required. The location of the data. \"projects/{project}/locations/{location}\"", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/authorizedViewSet/[^/]+/authorizedView/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+location}:queryMetrics", - "request": { - "$ref": "GoogleCloudContactcenterinsightsV1QueryMetricsRequest" - }, - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - }, - "authorizedViews": { - "resources": { - "conversations": { - "resources": { - "feedbackLabels": { - "methods": { - "create": { - "description": "Create feedback label.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSet/{authorizedViewSetId}/authorizedViews/{authorizedViewsId}/conversations/{conversationsId}/feedbackLabels", - "httpMethod": "POST", - "id": "contactcenterinsights.projects.locations.authorizedViewSet.authorizedViews.conversations.feedbackLabels.create", - "parameterOrder": [ - "parent" - ], - "parameters": { - "feedbackLabelId": { - "description": "Optional. The ID of the feedback label to create. If one is not specified it will be generated by the server.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. The parent resource of the feedback label.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/authorizedViewSet/[^/]+/authorizedViews/[^/]+/conversations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/feedbackLabels", - "request": { - "$ref": "GoogleCloudContactcenterinsightsV1FeedbackLabel" - }, - "response": { - "$ref": "GoogleCloudContactcenterinsightsV1FeedbackLabel" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "delete": { - "description": "Delete feedback label.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSet/{authorizedViewSetId}/authorizedViews/{authorizedViewsId}/conversations/{conversationsId}/feedbackLabels/{feedbackLabelsId}", - "httpMethod": "DELETE", - "id": "contactcenterinsights.projects.locations.authorizedViewSet.authorizedViews.conversations.feedbackLabels.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the feedback label to delete.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/authorizedViewSet/[^/]+/authorizedViews/[^/]+/conversations/[^/]+/feedbackLabels/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "GoogleProtobufEmpty" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "get": { - "description": "Get feedback label.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSet/{authorizedViewSetId}/authorizedViews/{authorizedViewsId}/conversations/{conversationsId}/feedbackLabels/{feedbackLabelsId}", - "httpMethod": "GET", - "id": "contactcenterinsights.projects.locations.authorizedViewSet.authorizedViews.conversations.feedbackLabels.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the feedback label to get.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/authorizedViewSet/[^/]+/authorizedViews/[^/]+/conversations/[^/]+/feedbackLabels/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "GoogleCloudContactcenterinsightsV1FeedbackLabel" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "list": { - "description": "List feedback labels.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSet/{authorizedViewSetId}/authorizedViews/{authorizedViewsId}/conversations/{conversationsId}/feedbackLabels", - "httpMethod": "GET", - "id": "contactcenterinsights.projects.locations.authorizedViewSet.authorizedViews.conversations.feedbackLabels.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "filter": { - "description": "Optional. A filter to reduce results to a specific subset. Supports disjunctions (OR) and conjunctions (AND). Automatically sorts by conversation ID. To sort by all feedback labels in a project see ListAllFeedbackLabels. Supported fields: * `issue_model_id` * `qa_question_id` * `qa_scorecard_id` * `min_create_time` * `max_create_time` * `min_update_time` * `max_update_time` * `feedback_label_type`: QUALITY_AI, TOPIC_MODELING", - "location": "query", - "type": "string" - }, - "pageSize": { - "description": "Optional. The maximum number of feedback labels to return in the response. A valid page size ranges from 0 to 100,000 inclusive. If the page size is zero or unspecified, a default page size of 100 will be chosen. Note that a call might return fewer results than the requested page size.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "Optional. The value returned by the last `ListFeedbackLabelsResponse`. This value indicates that this is a continuation of a prior `ListFeedbackLabels` call and that the system should return the next page of data.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. The parent resource of the feedback labels.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/authorizedViewSet/[^/]+/authorizedViews/[^/]+/conversations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/feedbackLabels", - "response": { - "$ref": "GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "patch": { - "description": "Update feedback label.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSet/{authorizedViewSetId}/authorizedViews/{authorizedViewsId}/conversations/{conversationsId}/feedbackLabels/{feedbackLabelsId}", - "httpMethod": "PATCH", - "id": "contactcenterinsights.projects.locations.authorizedViewSet.authorizedViews.conversations.feedbackLabels.patch", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Immutable. Resource name of the FeedbackLabel. Format: projects/{project}/locations/{location}/conversations/{conversation}/feedbackLabels/{feedback_label}", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/authorizedViewSet/[^/]+/authorizedViews/[^/]+/conversations/[^/]+/feedbackLabels/[^/]+$", - "required": true, - "type": "string" - }, - "updateMask": { - "description": "Required. The list of fields to be updated.", - "format": "google-fieldmask", - "location": "query", - "type": "string" - } - }, - "path": "v1/{+name}", - "request": { - "$ref": "GoogleCloudContactcenterinsightsV1FeedbackLabel" - }, - "response": { - "$ref": "GoogleCloudContactcenterinsightsV1FeedbackLabel" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - } - } - } - } - } - } - }, - "authorizedViewSets": { - "resources": { - "authorizedViews": { - "methods": { - "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": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSets/{authorizedViewSetsId}/authorizedViews/{authorizedViewsId}:getIamPolicy", - "httpMethod": "GET", - "id": "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.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/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+resource}:getIamPolicy", - "response": { - "$ref": "GoogleIamV1Policy" - }, - "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": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSets/{authorizedViewSetsId}/authorizedViews/{authorizedViewsId}:setIamPolicy", - "httpMethod": "POST", - "id": "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.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/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+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": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSets/{authorizedViewSetsId}/authorizedViews/{authorizedViewsId}:testIamPermissions", - "httpMethod": "POST", - "id": "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.testIamPermissions", - "parameterOrder": [ - "resource" - ], - "parameters": { - "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/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+resource}:testIamPermissions", - "request": { - "$ref": "GoogleIamV1TestIamPermissionsRequest" - }, - "response": { - "$ref": "GoogleIamV1TestIamPermissionsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - }, - "resources": { - "conversations": { - "methods": { - "create": { - "description": "Creates a conversation. Note that this method does not support audio transcription or redaction. Use `conversations.upload` instead.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSets/{authorizedViewSetsId}/authorizedViews/{authorizedViewsId}/conversations", - "httpMethod": "POST", - "id": "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.create", - "parameterOrder": [ - "parent" - ], - "parameters": { - "conversationId": { - "description": "A unique ID for the new conversation. This ID will become the final component of the conversation's resource name. If no ID is specified, a server-generated ID will be used. This value should be 4-64 characters and must match the regular expression `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-`", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. The parent resource of the conversation.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/conversations", - "request": { - "$ref": "GoogleCloudContactcenterinsightsV1Conversation" - }, - "response": { - "$ref": "GoogleCloudContactcenterinsightsV1Conversation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "delete": { - "description": "Deletes a conversation.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSets/{authorizedViewSetsId}/authorizedViews/{authorizedViewsId}/conversations/{conversationsId}", - "httpMethod": "DELETE", - "id": "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "force": { - "description": "If set to true, all of this conversation's analyses will also be deleted. Otherwise, the request will only succeed if the conversation has no analyses.", - "location": "query", - "type": "boolean" - }, - "name": { - "description": "Required. The name of the conversation to delete.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/conversations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "GoogleProtobufEmpty" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "get": { - "description": "Gets a conversation.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSets/{authorizedViewSetsId}/authorizedViews/{authorizedViewsId}/conversations/{conversationsId}", - "httpMethod": "GET", - "id": "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the conversation to get.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/conversations/[^/]+$", - "required": true, - "type": "string" - }, - "view": { - "description": "The level of details of the conversation. Default is `FULL`.", - "enum": [ - "CONVERSATION_VIEW_UNSPECIFIED", - "FULL", - "BASIC" - ], - "enumDescriptions": [ - "The conversation view is not specified. * Defaults to `FULL` in `GetConversationRequest`. * Defaults to `BASIC` in `ListConversationsRequest`.", - "Populates all fields in the conversation.", - "Populates all fields in the conversation except the transcript." - ], - "location": "query", - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "GoogleCloudContactcenterinsightsV1Conversation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "list": { - "description": "Lists conversations.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSets/{authorizedViewSetsId}/authorizedViews/{authorizedViewsId}/conversations", - "httpMethod": "GET", - "id": "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "filter": { - "description": "A filter to reduce results to a specific subset. Useful for querying conversations with specific properties.", - "location": "query", - "type": "string" - }, - "orderBy": { - "description": "Optional. The attribute by which to order conversations in the response. If empty, conversations will be ordered by descending creation time. Supported values are one of the following: * create_time * customer_satisfaction_rating * duration * latest_analysis * start_time * turn_count The default sort order is ascending. To specify order, append `asc` or `desc` (`create_time desc`). For more details, see [Google AIPs Ordering](https://google.aip.dev/132#ordering).", - "location": "query", - "type": "string" - }, - "pageSize": { - "description": "The maximum number of conversations to return in the response. A valid page size ranges from 0 to 100,000 inclusive. If the page size is zero or unspecified, a default page size of 100 will be chosen. Note that a call might return fewer results than the requested page size.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "The value returned by the last `ListConversationsResponse`. This value indicates that this is a continuation of a prior `ListConversations` call and that the system should return the next page of data.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. The parent resource of the conversation.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$", - "required": true, - "type": "string" - }, - "view": { - "description": "The level of details of the conversation. Default is `BASIC`.", - "enum": [ - "CONVERSATION_VIEW_UNSPECIFIED", - "FULL", - "BASIC" - ], - "enumDescriptions": [ - "The conversation view is not specified. * Defaults to `FULL` in `GetConversationRequest`. * Defaults to `BASIC` in `ListConversationsRequest`.", - "Populates all fields in the conversation.", - "Populates all fields in the conversation except the transcript." - ], - "location": "query", - "type": "string" - } - }, - "path": "v1/{+parent}/conversations", - "response": { - "$ref": "GoogleCloudContactcenterinsightsV1ListConversationsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "patch": { - "description": "Updates a conversation.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSets/{authorizedViewSetsId}/authorizedViews/{authorizedViewsId}/conversations/{conversationsId}", - "httpMethod": "PATCH", - "id": "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.patch", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Immutable. The resource name of the conversation. Format: projects/{project}/locations/{location}/conversations/{conversation}", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/conversations/[^/]+$", - "required": true, - "type": "string" - }, - "updateMask": { - "description": "The list of fields to be updated. All possible fields can be updated by passing `*`, or a subset of the following updateable fields can be provided: * `agent_id` * `language_code` * `labels` * `metadata` * `quality_metadata` * `call_metadata` * `start_time` * `expire_time` or `ttl` * `data_source.gcs_source.audio_uri` or `data_source.dialogflow_source.audio_uri`", - "format": "google-fieldmask", - "location": "query", - "type": "string" - } - }, - "path": "v1/{+name}", - "request": { - "$ref": "GoogleCloudContactcenterinsightsV1Conversation" - }, - "response": { - "$ref": "GoogleCloudContactcenterinsightsV1Conversation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "upload": { - "description": "Create a long-running conversation upload operation. This method differs from `CreateConversation` by allowing audio transcription and optional DLP redaction.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSets/{authorizedViewSetsId}/authorizedViews/{authorizedViewsId}/conversations:upload", - "httpMethod": "POST", - "id": "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.upload", - "parameterOrder": [ - "parent" - ], - "parameters": { - "conversationId": { - "description": "Optional. A unique ID for the new conversation. This ID will become the final component of the conversation's resource name. If no ID is specified, a server-generated ID will be used. This value should be 4-64 characters and must match the regular expression `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-`", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. The parent resource of the conversation.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$", - "required": true, - "type": "string" - }, - "redactionConfig.deidentifyTemplate": { - "description": "The fully-qualified DLP deidentify template resource name. Format: `projects/{project}/deidentifyTemplates/{template}`", - "location": "query", - "type": "string" - }, - "redactionConfig.inspectTemplate": { - "description": "The fully-qualified DLP inspect template resource name. Format: `projects/{project}/locations/{location}/inspectTemplates/{template}`", - "location": "query", - "type": "string" - }, - "speechConfig.speechRecognizer": { - "description": "The fully-qualified Speech Recognizer resource name. Format: `projects/{project_id}/locations/{location}/recognizer/{recognizer}`", - "location": "query", - "type": "string" - } - }, - "path": "v1/{+parent}/conversations:upload", - "request": { - "$ref": "GoogleCloudContactcenterinsightsV1Conversation" - }, - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - }, - "resources": { - "analyses": { - "methods": { - "create": { - "description": "Creates an analysis. The long running operation is done when the analysis has completed.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSets/{authorizedViewSetsId}/authorizedViews/{authorizedViewsId}/conversations/{conversationsId}/analyses", - "httpMethod": "POST", - "id": "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.analyses.create", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "Required. The parent resource of the analysis.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/conversations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/analyses", - "request": { - "$ref": "GoogleCloudContactcenterinsightsV1Analysis" - }, - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "delete": { - "description": "Deletes an analysis.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSets/{authorizedViewSetsId}/authorizedViews/{authorizedViewsId}/conversations/{conversationsId}/analyses/{analysesId}", - "httpMethod": "DELETE", - "id": "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.analyses.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the analysis to delete.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/conversations/[^/]+/analyses/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "GoogleProtobufEmpty" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "get": { - "description": "Gets an analysis.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSets/{authorizedViewSetsId}/authorizedViews/{authorizedViewsId}/conversations/{conversationsId}/analyses/{analysesId}", - "httpMethod": "GET", - "id": "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.analyses.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the analysis to get.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/conversations/[^/]+/analyses/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "GoogleCloudContactcenterinsightsV1Analysis" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "list": { - "description": "Lists analyses.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSets/{authorizedViewSetsId}/authorizedViews/{authorizedViewsId}/conversations/{conversationsId}/analyses", - "httpMethod": "GET", - "id": "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.analyses.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "filter": { - "description": "A filter to reduce results to a specific subset. Useful for querying conversations with specific properties.", - "location": "query", - "type": "string" - }, - "pageSize": { - "description": "The maximum number of analyses to return in the response. If this value is zero, the service will select a default size. A call might return fewer objects than requested. A non-empty `next_page_token` in the response indicates that more data is available.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "The value returned by the last `ListAnalysesResponse`; indicates that this is a continuation of a prior `ListAnalyses` call and the system should return the next page of data.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. The parent resource of the analyses.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/conversations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/analyses", - "response": { - "$ref": "GoogleCloudContactcenterinsightsV1ListAnalysesResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - } - } - }, - "operations": { - "methods": { - "cancel": { - "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSets/{authorizedViewSetsId}/authorizedViews/{authorizedViewsId}/operations/{operationsId}:cancel", - "httpMethod": "POST", - "id": "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.operations.cancel", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource to be cancelled.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/operations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}:cancel", - "response": { - "$ref": "GoogleProtobufEmpty" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "get": { - "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSets/{authorizedViewSetsId}/authorizedViews/{authorizedViewsId}/operations/{operationsId}", - "httpMethod": "GET", - "id": "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.operations.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/operations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSets/{authorizedViewSetsId}/authorizedViews/{authorizedViewsId}/operations", - "httpMethod": "GET", - "id": "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.operations.list", - "parameterOrder": [ - "name" - ], - "parameters": { - "filter": { - "description": "The standard list filter.", - "location": "query", - "type": "string" - }, - "name": { - "description": "The name of the operation's parent resource.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$", - "required": true, - "type": "string" - }, - "pageSize": { - "description": "The standard list page size.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "The standard list page token.", - "location": "query", - "type": "string" - } - }, - "path": "v1/{+name}/operations", - "response": { - "$ref": "GoogleLongrunningListOperationsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - } - } - } - } - }, "conversations": { "methods": { "bulkAnalyze": { @@ -3312,7 +2509,7 @@ } } }, - "revision": "20241021", + "revision": "20241114", "rootUrl": "https://contactcenterinsights.googleapis.com/", "schemas": { "GoogleCloudContactcenterinsightsV1Analysis": { @@ -4206,7 +3403,7 @@ "additionalProperties": { "type": "string" }, - "description": "A map for the user to specify any custom fields. A maximum of 20 labels per conversation is allowed, with a maximum of 256 characters per entry.", + "description": "A map for the user to specify any custom fields. A maximum of 100 labels per conversation is allowed, with a maximum of 256 characters per entry.", "type": "object" }, "languageCode": { @@ -4434,6 +3631,24 @@ "description": "A user-specified string representing the agent.", "type": "string" }, + "agentType": { + "description": "The agent type, e.g. HUMAN_AGENT.", + "enum": [ + "ROLE_UNSPECIFIED", + "HUMAN_AGENT", + "AUTOMATED_AGENT", + "END_USER", + "ANY_AGENT" + ], + "enumDescriptions": [ + "Participant's role is not set.", + "Participant is a human agent.", + "Participant is an automated agent.", + "Participant is an end user who conversed with the contact center.", + "Participant is either a human or automated agent." + ], + "type": "string" + }, "displayName": { "description": "The agent's name.", "type": "string" @@ -5463,7 +4678,7 @@ "type": "string" }, "customMetadataKeys": { - "description": "Optional. Custom keys to extract as conversation labels from metadata files in `metadata_bucket_uri`. Keys not included in this field will be ignored. Note that there is a limit of 20 labels per conversation.", + "description": "Optional. Custom keys to extract as conversation labels from metadata files in `metadata_bucket_uri`. Keys not included in this field will be ignored. Note that there is a limit of 100 labels per conversation.", "items": { "type": "string" }, @@ -6213,12 +5428,6 @@ "description": "The conversation the answer applies to.", "type": "string" }, - "potentialScore": { - "deprecated": true, - "description": "The maximum potential score of the question. If the question was answered using `na_value`, this field will be zero. Deprecated: Use AnswerValue.potential_score instead.", - "format": "double", - "type": "number" - }, "qaQuestion": { "description": "The QaQuestion answered by this answer.", "type": "string" @@ -6263,7 +5472,7 @@ "type": "object" }, "GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue": { - "description": "Message for holding the value of the answer. QaQuestion.AnswerChoice defines the possible answer values for a question.", + "description": "Message for holding the value of a QaAnswer. QaQuestion.AnswerChoice defines the possible answer values for a question.", "id": "GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue", "properties": { "boolValue": { @@ -6275,11 +5484,11 @@ "type": "string" }, "naValue": { - "description": "A value of \"Not Applicable (N/A)\".", + "description": "A value of \"Not Applicable (N/A)\". Should only ever be `true`.", "type": "boolean" }, "normalizedScore": { - "description": "Output only. Normalized score of the questions. Calculated as score / potential_score iff potential_score != 0 else 0", + "description": "Output only. Normalized score of the questions. Calculated as score / potential_score.", "format": "double", "readOnly": true, "type": "number" @@ -6704,7 +5913,8 @@ "DAILY", "HOURLY", "PER_MINUTE", - "PER_5_MINUTES" + "PER_5_MINUTES", + "MONTHLY" ], "enumDescriptions": [ "The time granularity is unspecified and will default to NONE.", @@ -6712,7 +5922,8 @@ "Data points in the time series will aggregate at a daily granularity. 1 day means [midnight to midnight).", "Data points in the time series will aggregate at a daily granularity. 1 HOUR means [01:00 to 02:00).", "Data points in the time series will aggregate at a daily granularity. PER_MINUTE means [01:00 to 01:01).", - "Data points in the time series will aggregate at a 1 minute granularity. PER_5_MINUTES means [01:00 to 01:05)." + "Data points in the time series will aggregate at a 1 minute granularity. PER_5_MINUTES means [01:00 to 01:05).", + "Data points in the time series will aggregate at a monthly granularity. 1 MONTH means [01st of the month to 1st of the next month)." ], "type": "string" } @@ -7828,7 +7039,7 @@ "additionalProperties": { "type": "string" }, - "description": "A map for the user to specify any custom fields. A maximum of 20 labels per conversation is allowed, with a maximum of 256 characters per entry.", + "description": "A map for the user to specify any custom fields. A maximum of 100 labels per conversation is allowed, with a maximum of 256 characters per entry.", "type": "object" }, "languageCode": { @@ -8056,6 +7267,24 @@ "description": "A user-specified string representing the agent.", "type": "string" }, + "agentType": { + "description": "The agent type, e.g. HUMAN_AGENT.", + "enum": [ + "ROLE_UNSPECIFIED", + "HUMAN_AGENT", + "AUTOMATED_AGENT", + "END_USER", + "ANY_AGENT" + ], + "enumDescriptions": [ + "Participant's role is not set.", + "Participant is a human agent.", + "Participant is an automated agent.", + "Participant is an end user who conversed with the contact center.", + "Participant is either a human or automated agent." + ], + "type": "string" + }, "displayName": { "description": "The agent's name.", "type": "string" @@ -9068,7 +8297,7 @@ "type": "string" }, "customMetadataKeys": { - "description": "Optional. Custom keys to extract as conversation labels from metadata files in `metadata_bucket_uri`. Keys not included in this field will be ignored. Note that there is a limit of 20 labels per conversation.", + "description": "Optional. Custom keys to extract as conversation labels from metadata files in `metadata_bucket_uri`. Keys not included in this field will be ignored. Note that there is a limit of 100 labels per conversation.", "items": { "type": "string" }, @@ -9464,12 +8693,6 @@ "description": "The conversation the answer applies to.", "type": "string" }, - "potentialScore": { - "deprecated": true, - "description": "The maximum potential score of the question. If the question was answered using `na_value`, this field will be zero. Deprecated: Use AnswerValue.potential_score instead.", - "format": "double", - "type": "number" - }, "qaQuestion": { "description": "The QaQuestion answered by this answer.", "type": "string" @@ -9514,7 +8737,7 @@ "type": "object" }, "GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue": { - "description": "Message for holding the value of the answer. QaQuestion.AnswerChoice defines the possible answer values for a question.", + "description": "Message for holding the value of a QaAnswer. QaQuestion.AnswerChoice defines the possible answer values for a question.", "id": "GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue", "properties": { "boolValue": { @@ -9526,11 +8749,11 @@ "type": "string" }, "naValue": { - "description": "A value of \"Not Applicable (N/A)\".", + "description": "A value of \"Not Applicable (N/A)\". Should only ever be `true`.", "type": "boolean" }, "normalizedScore": { - "description": "Output only. Normalized score of the questions. Calculated as score / potential_score iff potential_score != 0 else 0", + "description": "Output only. Normalized score of the questions. Calculated as score / potential_score.", "format": "double", "readOnly": true, "type": "number" @@ -10141,151 +9364,6 @@ }, "type": "object" }, - "GoogleIamV1AuditConfig": { - "description": "Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { \"audit_configs\": [ { \"service\": \"allServices\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" }, { \"log_type\": \"ADMIN_READ\" } ] }, { \"service\": \"sampleservice.googleapis.com\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\" }, { \"log_type\": \"DATA_WRITE\", \"exempted_members\": [ \"user:aliya@example.com\" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `jose@example.com` from DATA_READ logging, and `aliya@example.com` from DATA_WRITE logging.", - "id": "GoogleIamV1AuditConfig", - "properties": { - "auditLogConfigs": { - "description": "The configuration for logging of each type of permission.", - "items": { - "$ref": "GoogleIamV1AuditLogConfig" - }, - "type": "array" - }, - "service": { - "description": "Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.", - "type": "string" - } - }, - "type": "object" - }, - "GoogleIamV1AuditLogConfig": { - "description": "Provides the configuration for logging a type of permissions. Example: { \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ logging.", - "id": "GoogleIamV1AuditLogConfig", - "properties": { - "exemptedMembers": { - "description": "Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.", - "items": { - "type": "string" - }, - "type": "array" - }, - "logType": { - "description": "The log type that this config enables.", - "enum": [ - "LOG_TYPE_UNSPECIFIED", - "ADMIN_READ", - "DATA_WRITE", - "DATA_READ" - ], - "enumDescriptions": [ - "Default case. Should never be this.", - "Admin reads. Example: CloudIAM getIamPolicy", - "Data writes. Example: CloudSQL Users create", - "Data reads. Example: CloudSQL Users list" - ], - "type": "string" - } - }, - "type": "object" - }, - "GoogleIamV1Binding": { - "description": "Associates `members`, or principals, with a `role`.", - "id": "GoogleIamV1Binding", - "properties": { - "condition": { - "$ref": "GoogleTypeExpr", - "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." - }, - "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workforce identity pool. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities with a specific attribute value. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`: All identities in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`: All identities in a workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: Deleted single identity in a workforce identity pool. For example, `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.", - "items": { - "type": "string" - }, - "type": "array" - }, - "role": { - "description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles).", - "type": "string" - } - }, - "type": "object" - }, - "GoogleIamV1Policy": { - "description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:eve@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time \u003c timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 } ``` **YAML example:** ``` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time \u003c timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).", - "id": "GoogleIamV1Policy", - "properties": { - "auditConfigs": { - "description": "Specifies cloud audit logging configuration for this policy.", - "items": { - "$ref": "GoogleIamV1AuditConfig" - }, - "type": "array" - }, - "bindings": { - "description": "Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.", - "items": { - "$ref": "GoogleIamV1Binding" - }, - "type": "array" - }, - "etag": { - "description": "`etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.", - "format": "byte", - "type": "string" - }, - "version": { - "description": "Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. 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", - "type": "integer" - } - }, - "type": "object" - }, - "GoogleIamV1SetIamPolicyRequest": { - "description": "Request message for `SetIamPolicy` method.", - "id": "GoogleIamV1SetIamPolicyRequest", - "properties": { - "policy": { - "$ref": "GoogleIamV1Policy", - "description": "REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud services (such as Projects) might reject them." - }, - "updateMask": { - "description": "OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the mask will be modified. If no mask is provided, the following default mask is used: `paths: \"bindings, etag\"`", - "format": "google-fieldmask", - "type": "string" - } - }, - "type": "object" - }, - "GoogleIamV1TestIamPermissionsRequest": { - "description": "Request message for `TestIamPermissions` method.", - "id": "GoogleIamV1TestIamPermissionsRequest", - "properties": { - "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).", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "GoogleIamV1TestIamPermissionsResponse": { - "description": "Response message for `TestIamPermissions` method.", - "id": "GoogleIamV1TestIamPermissionsResponse", - "properties": { - "permissions": { - "description": "A subset of `TestPermissionsRequest.permissions` that the caller is allowed.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, "GoogleLongrunningListOperationsResponse": { "description": "The response message for Operations.ListOperations.", "id": "GoogleLongrunningListOperationsResponse", @@ -10372,29 +9450,6 @@ }, "type": "object" }, - "GoogleTypeExpr": { - "description": "Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: \"Summary size limit\" description: \"Determines if a summary is less than 100 chars\" expression: \"document.summary.size() \u003c 100\" Example (Equality): title: \"Requestor is owner\" description: \"Determines if requestor is the document owner\" expression: \"document.owner == request.auth.claims.email\" Example (Logic): title: \"Public documents\" description: \"Determine whether the document should be publicly visible\" expression: \"document.type != 'private' \u0026\u0026 document.type != 'internal'\" Example (Data Manipulation): title: \"Notification string\" description: \"Create a notification string with a timestamp.\" expression: \"'New message received at ' + string(document.create_time)\" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.", - "id": "GoogleTypeExpr", - "properties": { - "description": { - "description": "Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.", - "type": "string" - }, - "expression": { - "description": "Textual representation of an expression in Common Expression Language syntax.", - "type": "string" - }, - "location": { - "description": "Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.", - "type": "string" - }, - "title": { - "description": "Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.", - "type": "string" - } - }, - "type": "object" - }, "GoogleTypeInterval": { "description": "Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive). The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time.", "id": "GoogleTypeInterval", diff --git a/contactcenterinsights/v1/contactcenterinsights-gen.go b/contactcenterinsights/v1/contactcenterinsights-gen.go index 4b0fdaa068d..41d83028ca9 100644 --- a/contactcenterinsights/v1/contactcenterinsights-gen.go +++ b/contactcenterinsights/v1/contactcenterinsights-gen.go @@ -169,8 +169,6 @@ type ProjectsService struct { func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs := &ProjectsLocationsService{s: s} rs.AnalysisRules = NewProjectsLocationsAnalysisRulesService(s) - rs.AuthorizedViewSet = NewProjectsLocationsAuthorizedViewSetService(s) - rs.AuthorizedViewSets = NewProjectsLocationsAuthorizedViewSetsService(s) rs.Conversations = NewProjectsLocationsConversationsService(s) rs.EncryptionSpec = NewProjectsLocationsEncryptionSpecService(s) rs.Insightsdata = NewProjectsLocationsInsightsdataService(s) @@ -187,10 +185,6 @@ type ProjectsLocationsService struct { AnalysisRules *ProjectsLocationsAnalysisRulesService - AuthorizedViewSet *ProjectsLocationsAuthorizedViewSetService - - AuthorizedViewSets *ProjectsLocationsAuthorizedViewSetsService - Conversations *ProjectsLocationsConversationsService EncryptionSpec *ProjectsLocationsEncryptionSpecService @@ -217,120 +211,6 @@ type ProjectsLocationsAnalysisRulesService struct { s *Service } -func NewProjectsLocationsAuthorizedViewSetService(s *Service) *ProjectsLocationsAuthorizedViewSetService { - rs := &ProjectsLocationsAuthorizedViewSetService{s: s} - rs.AuthorizedView = NewProjectsLocationsAuthorizedViewSetAuthorizedViewService(s) - rs.AuthorizedViews = NewProjectsLocationsAuthorizedViewSetAuthorizedViewsService(s) - return rs -} - -type ProjectsLocationsAuthorizedViewSetService struct { - s *Service - - AuthorizedView *ProjectsLocationsAuthorizedViewSetAuthorizedViewService - - AuthorizedViews *ProjectsLocationsAuthorizedViewSetAuthorizedViewsService -} - -func NewProjectsLocationsAuthorizedViewSetAuthorizedViewService(s *Service) *ProjectsLocationsAuthorizedViewSetAuthorizedViewService { - rs := &ProjectsLocationsAuthorizedViewSetAuthorizedViewService{s: s} - return rs -} - -type ProjectsLocationsAuthorizedViewSetAuthorizedViewService struct { - s *Service -} - -func NewProjectsLocationsAuthorizedViewSetAuthorizedViewsService(s *Service) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsService { - rs := &ProjectsLocationsAuthorizedViewSetAuthorizedViewsService{s: s} - rs.Conversations = NewProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsService(s) - return rs -} - -type ProjectsLocationsAuthorizedViewSetAuthorizedViewsService struct { - s *Service - - Conversations *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsService -} - -func NewProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsService(s *Service) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsService { - rs := &ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsService{s: s} - rs.FeedbackLabels = NewProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsService(s) - return rs -} - -type ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsService struct { - s *Service - - FeedbackLabels *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsService -} - -func NewProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsService(s *Service) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsService { - rs := &ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsService{s: s} - return rs -} - -type ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsService struct { - s *Service -} - -func NewProjectsLocationsAuthorizedViewSetsService(s *Service) *ProjectsLocationsAuthorizedViewSetsService { - rs := &ProjectsLocationsAuthorizedViewSetsService{s: s} - rs.AuthorizedViews = NewProjectsLocationsAuthorizedViewSetsAuthorizedViewsService(s) - return rs -} - -type ProjectsLocationsAuthorizedViewSetsService struct { - s *Service - - AuthorizedViews *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsService -} - -func NewProjectsLocationsAuthorizedViewSetsAuthorizedViewsService(s *Service) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsService { - rs := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsService{s: s} - rs.Conversations = NewProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsService(s) - rs.Operations = NewProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsService(s) - return rs -} - -type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsService struct { - s *Service - - Conversations *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsService - - Operations *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsService -} - -func NewProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsService(s *Service) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsService { - rs := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsService{s: s} - rs.Analyses = NewProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesService(s) - return rs -} - -type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsService struct { - s *Service - - Analyses *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesService -} - -func NewProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesService(s *Service) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesService { - rs := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesService{s: s} - return rs -} - -type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesService struct { - s *Service -} - -func NewProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsService(s *Service) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsService { - rs := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsService{s: s} - return rs -} - -type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsService struct { - s *Service -} - func NewProjectsLocationsConversationsService(s *Service) *ProjectsLocationsConversationsService { rs := &ProjectsLocationsConversationsService{s: s} rs.Analyses = NewProjectsLocationsConversationsAnalysesService(s) @@ -1481,7 +1361,7 @@ type GoogleCloudContactcenterinsightsV1Conversation struct { // ExpireTime: The time at which this conversation should expire. After this // time, the conversation data and any associated analyses will be deleted. ExpireTime string `json:"expireTime,omitempty"` - // Labels: A map for the user to specify any custom fields. A maximum of 20 + // Labels: A map for the user to specify any custom fields. A maximum of 100 // labels per conversation is allowed, with a maximum of 256 characters per // entry. Labels map[string]string `json:"labels,omitempty"` @@ -1746,6 +1626,16 @@ func (s GoogleCloudContactcenterinsightsV1ConversationQualityMetadata) MarshalJS type GoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo struct { // AgentId: A user-specified string representing the agent. AgentId string `json:"agentId,omitempty"` + // AgentType: The agent type, e.g. HUMAN_AGENT. + // + // Possible values: + // "ROLE_UNSPECIFIED" - Participant's role is not set. + // "HUMAN_AGENT" - Participant is a human agent. + // "AUTOMATED_AGENT" - Participant is an automated agent. + // "END_USER" - Participant is an end user who conversed with the contact + // center. + // "ANY_AGENT" - Participant is either a human or automated agent. + AgentType string `json:"agentType,omitempty"` // DisplayName: The agent's name. DisplayName string `json:"displayName,omitempty"` // DispositionCode: A user-provided string indicating the outcome of the @@ -3161,7 +3051,7 @@ type GoogleCloudContactcenterinsightsV1IngestConversationsRequestGcsSource struc BucketUri string `json:"bucketUri,omitempty"` // CustomMetadataKeys: Optional. Custom keys to extract as conversation labels // from metadata files in `metadata_bucket_uri`. Keys not included in this - // field will be ignored. Note that there is a limit of 20 labels per + // field will be ignored. Note that there is a limit of 100 labels per // conversation. CustomMetadataKeys []string `json:"customMetadataKeys,omitempty"` // MetadataBucketUri: Optional. The Cloud Storage path to the conversation @@ -4162,10 +4052,6 @@ type GoogleCloudContactcenterinsightsV1QaAnswer struct { AnswerValue *GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue `json:"answerValue,omitempty"` // Conversation: The conversation the answer applies to. Conversation string `json:"conversation,omitempty"` - // PotentialScore: The maximum potential score of the question. If the question - // was answered using `na_value`, this field will be zero. Deprecated: Use - // AnswerValue.potential_score instead. - PotentialScore float64 `json:"potentialScore,omitempty"` // QaQuestion: The QaQuestion answered by this answer. QaQuestion string `json:"qaQuestion,omitempty"` // QuestionBody: Question text. E.g., "Did the agent greet the customer?" @@ -4192,20 +4078,6 @@ func (s GoogleCloudContactcenterinsightsV1QaAnswer) MarshalJSON() ([]byte, error return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -func (s *GoogleCloudContactcenterinsightsV1QaAnswer) UnmarshalJSON(data []byte) error { - type NoMethod GoogleCloudContactcenterinsightsV1QaAnswer - var s1 struct { - PotentialScore gensupport.JSONFloat64 `json:"potentialScore"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.PotentialScore = float64(s1.PotentialScore) - return nil -} - // GoogleCloudContactcenterinsightsV1QaAnswerAnswerSource: A question may have // multiple answers from varying sources, one of which becomes the "main" // answer above. AnswerSource represents each individual answer. @@ -4239,7 +4111,7 @@ func (s GoogleCloudContactcenterinsightsV1QaAnswerAnswerSource) MarshalJSON() ([ } // GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue: Message for holding -// the value of the answer. QaQuestion.AnswerChoice defines the possible answer +// the value of a QaAnswer. QaQuestion.AnswerChoice defines the possible answer // values for a question. type GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue struct { // BoolValue: Boolean value. @@ -4247,10 +4119,10 @@ type GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue struct { // Key: A short string used as an identifier. Matches the value used in // QaQuestion.AnswerChoice.key. Key string `json:"key,omitempty"` - // NaValue: A value of "Not Applicable (N/A)". + // NaValue: A value of "Not Applicable (N/A)". Should only ever be `true`. NaValue bool `json:"naValue,omitempty"` // NormalizedScore: Output only. Normalized score of the questions. Calculated - // as score / potential_score iff potential_score != 0 else 0 + // as score / potential_score. NormalizedScore float64 `json:"normalizedScore,omitempty"` // NumValue: Numerical value. NumValue float64 `json:"numValue,omitempty"` @@ -4793,6 +4665,8 @@ type GoogleCloudContactcenterinsightsV1QueryMetricsRequest struct { // granularity. PER_MINUTE means [01:00 to 01:01). // "PER_5_MINUTES" - Data points in the time series will aggregate at a 1 // minute granularity. PER_5_MINUTES means [01:00 to 01:05). + // "MONTHLY" - Data points in the time series will aggregate at a monthly + // granularity. 1 MONTH means [01st of the month to 1st of the next month). TimeGranularity string `json:"timeGranularity,omitempty"` // ForceSendFields is a list of field names (e.g. "Dimensions") to // unconditionally include in API requests. By default, fields with empty or @@ -6238,7 +6112,7 @@ type GoogleCloudContactcenterinsightsV1alpha1Conversation struct { // ExpireTime: The time at which this conversation should expire. After this // time, the conversation data and any associated analyses will be deleted. ExpireTime string `json:"expireTime,omitempty"` - // Labels: A map for the user to specify any custom fields. A maximum of 20 + // Labels: A map for the user to specify any custom fields. A maximum of 100 // labels per conversation is allowed, with a maximum of 256 characters per // entry. Labels map[string]string `json:"labels,omitempty"` @@ -6501,6 +6375,16 @@ func (s GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadata) Mar type GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadataAgentInfo struct { // AgentId: A user-specified string representing the agent. AgentId string `json:"agentId,omitempty"` + // AgentType: The agent type, e.g. HUMAN_AGENT. + // + // Possible values: + // "ROLE_UNSPECIFIED" - Participant's role is not set. + // "HUMAN_AGENT" - Participant is a human agent. + // "AUTOMATED_AGENT" - Participant is an automated agent. + // "END_USER" - Participant is an end user who conversed with the contact + // center. + // "ANY_AGENT" - Participant is either a human or automated agent. + AgentType string `json:"agentType,omitempty"` // DisplayName: The agent's name. DisplayName string `json:"displayName,omitempty"` // DispositionCode: A user-provided string indicating the outcome of the @@ -7881,7 +7765,7 @@ type GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestGcsSource BucketUri string `json:"bucketUri,omitempty"` // CustomMetadataKeys: Optional. Custom keys to extract as conversation labels // from metadata files in `metadata_bucket_uri`. Keys not included in this - // field will be ignored. Note that there is a limit of 20 labels per + // field will be ignored. Note that there is a limit of 100 labels per // conversation. CustomMetadataKeys []string `json:"customMetadataKeys,omitempty"` // MetadataBucketUri: Optional. The Cloud Storage path to the conversation @@ -8397,10 +8281,6 @@ type GoogleCloudContactcenterinsightsV1alpha1QaAnswer struct { AnswerValue *GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue `json:"answerValue,omitempty"` // Conversation: The conversation the answer applies to. Conversation string `json:"conversation,omitempty"` - // PotentialScore: The maximum potential score of the question. If the question - // was answered using `na_value`, this field will be zero. Deprecated: Use - // AnswerValue.potential_score instead. - PotentialScore float64 `json:"potentialScore,omitempty"` // QaQuestion: The QaQuestion answered by this answer. QaQuestion string `json:"qaQuestion,omitempty"` // QuestionBody: Question text. E.g., "Did the agent greet the customer?" @@ -8427,20 +8307,6 @@ func (s GoogleCloudContactcenterinsightsV1alpha1QaAnswer) MarshalJSON() ([]byte, return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -func (s *GoogleCloudContactcenterinsightsV1alpha1QaAnswer) UnmarshalJSON(data []byte) error { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1QaAnswer - var s1 struct { - PotentialScore gensupport.JSONFloat64 `json:"potentialScore"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.PotentialScore = float64(s1.PotentialScore) - return nil -} - // GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerSource: A question may // have multiple answers from varying sources, one of which becomes the "main" // answer above. AnswerSource represents each individual answer. @@ -8474,7 +8340,7 @@ func (s GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerSource) MarshalJSO } // GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue: Message for -// holding the value of the answer. QaQuestion.AnswerChoice defines the +// holding the value of a QaAnswer. QaQuestion.AnswerChoice defines the // possible answer values for a question. type GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue struct { // BoolValue: Boolean value. @@ -8482,10 +8348,10 @@ type GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue struct { // Key: A short string used as an identifier. Matches the value used in // QaQuestion.AnswerChoice.key. Key string `json:"key,omitempty"` - // NaValue: A value of "Not Applicable (N/A)". + // NaValue: A value of "Not Applicable (N/A)". Should only ever be `true`. NaValue bool `json:"naValue,omitempty"` // NormalizedScore: Output only. Normalized score of the questions. Calculated - // as score / potential_score iff potential_score != 0 else 0 + // as score / potential_score. NormalizedScore float64 `json:"normalizedScore,omitempty"` // NumValue: Numerical value. NumValue float64 `json:"numValue,omitempty"` @@ -9355,355 +9221,6 @@ func (s GoogleCloudContactcenterinsightsV1alpha1UploadConversationRequest) Marsh return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleIamV1AuditConfig: Specifies the audit configuration for a service. The -// configuration determines which permission types are logged, and what -// identities, if any, are exempted from logging. An AuditConfig must have one -// or more AuditLogConfigs. If there are AuditConfigs for both `allServices` -// and a specific service, the union of the two AuditConfigs is used for that -// service: the log_types specified in each AuditConfig are enabled, and the -// exempted_members in each AuditLogConfig are exempted. Example Policy with -// multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", -// "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ -// "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { "log_type": -// "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com", -// "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type": -// "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] } ] } ] } For -// sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ -// logging. It also exempts `jose@example.com` from DATA_READ logging, and -// `aliya@example.com` from DATA_WRITE logging. -type GoogleIamV1AuditConfig struct { - // AuditLogConfigs: The configuration for logging of each type of permission. - AuditLogConfigs []*GoogleIamV1AuditLogConfig `json:"auditLogConfigs,omitempty"` - // Service: Specifies a service that will be enabled for audit logging. For - // example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` - // is a special value that covers all services. - Service string `json:"service,omitempty"` - // ForceSendFields is a list of field names (e.g. "AuditLogConfigs") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AuditLogConfigs") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s GoogleIamV1AuditConfig) MarshalJSON() ([]byte, error) { - type NoMethod GoogleIamV1AuditConfig - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// GoogleIamV1AuditLogConfig: Provides the configuration for logging a type of -// permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", -// "exempted_members": [ "user:jose@example.com" ] }, { "log_type": -// "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while -// exempting jose@example.com from DATA_READ logging. -type GoogleIamV1AuditLogConfig struct { - // ExemptedMembers: Specifies the identities that do not cause logging for this - // type of permission. Follows the same format of Binding.members. - ExemptedMembers []string `json:"exemptedMembers,omitempty"` - // LogType: The log type that this config enables. - // - // Possible values: - // "LOG_TYPE_UNSPECIFIED" - Default case. Should never be this. - // "ADMIN_READ" - Admin reads. Example: CloudIAM getIamPolicy - // "DATA_WRITE" - Data writes. Example: CloudSQL Users create - // "DATA_READ" - Data reads. Example: CloudSQL Users list - LogType string `json:"logType,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExemptedMembers") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ExemptedMembers") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s GoogleIamV1AuditLogConfig) MarshalJSON() ([]byte, error) { - type NoMethod GoogleIamV1AuditLogConfig - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// GoogleIamV1Binding: Associates `members`, or principals, with a `role`. -type GoogleIamV1Binding struct { - // Condition: The condition that is associated with this binding. If the - // condition evaluates to `true`, then this binding applies to the current - // request. If the condition evaluates to `false`, then this binding does not - // apply to the current request. However, a different role binding might grant - // the same role to one or more of the principals in this binding. To learn - // which resources support conditions in their IAM policies, see the IAM - // documentation - // (https://cloud.google.com/iam/help/conditions/resource-policies). - Condition *GoogleTypeExpr `json:"condition,omitempty"` - // Members: Specifies the principals requesting access for a Google Cloud - // resource. `members` can have the following values: * `allUsers`: A special - // identifier that represents anyone who is on the internet; with or without a - // Google account. * `allAuthenticatedUsers`: A special identifier that - // represents anyone who is authenticated with a Google account or a service - // account. Does not include identities that come from external identity - // providers (IdPs) through identity federation. * `user:{emailid}`: An email - // address that represents a specific Google account. For example, - // `alice@example.com` . * `serviceAccount:{emailid}`: An email address that - // represents a Google service account. For example, - // `my-other-app@appspot.gserviceaccount.com`. * - // `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An - // identifier for a Kubernetes service account - // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). - // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * - // `group:{emailid}`: An email address that represents a Google group. For - // example, `admins@example.com`. * `domain:{domain}`: The G Suite domain - // (primary) that represents all the users of that domain. For example, - // `google.com` or `example.com`. * - // `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/sub - // ject/{subject_attribute_value}`: A single identity in a workforce identity - // pool. * - // `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/ - // group/{group_id}`: All workforce identities in a group. * - // `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/ - // attribute.{attribute_name}/{attribute_value}`: All workforce identities with - // a specific attribute value. * - // `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/ - // *`: All identities in a workforce identity pool. * - // `principal://iam.googleapis.com/projects/{project_number}/locations/global/wo - // rkloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single - // identity in a workload identity pool. * - // `principalSet://iam.googleapis.com/projects/{project_number}/locations/global - // /workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool - // group. * - // `principalSet://iam.googleapis.com/projects/{project_number}/locations/global - // /workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value} - // `: All identities in a workload identity pool with a certain attribute. * - // `principalSet://iam.googleapis.com/projects/{project_number}/locations/global - // /workloadIdentityPools/{pool_id}/*`: All identities in a workload identity - // pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus - // unique identifier) representing a user that has been recently deleted. For - // example, `alice@example.com?uid=123456789012345678901`. If the user is - // recovered, this value reverts to `user:{emailid}` and the recovered user - // retains the role in the binding. * - // `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus - // unique identifier) representing a service account that has been recently - // deleted. For example, - // `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the - // service account is undeleted, this value reverts to - // `serviceAccount:{emailid}` and the undeleted service account retains the - // role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email - // address (plus unique identifier) representing a Google group that has been - // recently deleted. For example, - // `admins@example.com?uid=123456789012345678901`. If the group is recovered, - // this value reverts to `group:{emailid}` and the recovered group retains the - // role in the binding. * - // `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool - // _id}/subject/{subject_attribute_value}`: Deleted single identity in a - // workforce identity pool. For example, - // `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-po - // ol-id/subject/my-subject-attribute-value`. - Members []string `json:"members,omitempty"` - // Role: Role that is assigned to the list of `members`, or principals. For - // example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview - // of the IAM roles and permissions, see the IAM documentation - // (https://cloud.google.com/iam/docs/roles-overview). For a list of the - // available pre-defined roles, see here - // (https://cloud.google.com/iam/docs/understanding-roles). - Role string `json:"role,omitempty"` - // ForceSendFields is a list of field names (e.g. "Condition") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Condition") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s GoogleIamV1Binding) MarshalJSON() ([]byte, error) { - type NoMethod GoogleIamV1Binding - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// GoogleIamV1Policy: An Identity and Access Management (IAM) policy, which -// specifies access controls for Google Cloud resources. A `Policy` is a -// collection of `bindings`. A `binding` binds one or more `members`, or -// principals, to a single `role`. Principals can be user accounts, service -// accounts, Google groups, and domains (such as G Suite). A `role` is a named -// list of permissions; each `role` can be an IAM predefined role or a -// user-created custom role. For some types of Google Cloud resources, a -// `binding` can also specify a `condition`, which is a logical expression that -// allows access to a resource only if the expression evaluates to `true`. A -// condition can add constraints based on attributes of the request, the -// resource, or both. To learn which resources support conditions in their IAM -// policies, see the IAM documentation -// (https://cloud.google.com/iam/help/conditions/resource-policies). **JSON -// example:** ``` { "bindings": [ { "role": -// "roles/resourcemanager.organizationAdmin", "members": [ -// "user:mike@example.com", "group:admins@example.com", "domain:google.com", -// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": -// "roles/resourcemanager.organizationViewer", "members": [ -// "user:eve@example.com" ], "condition": { "title": "expirable access", -// "description": "Does not grant access after Sep 2020", "expression": -// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": -// "BwWWja0YfJA=", "version": 3 } ``` **YAML example:** ``` bindings: - -// members: - user:mike@example.com - group:admins@example.com - -// domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com -// role: roles/resourcemanager.organizationAdmin - members: - -// user:eve@example.com role: roles/resourcemanager.organizationViewer -// condition: title: expirable access description: Does not grant access after -// Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') -// etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, -// see the IAM documentation (https://cloud.google.com/iam/docs/). -type GoogleIamV1Policy struct { - // AuditConfigs: Specifies cloud audit logging configuration for this policy. - AuditConfigs []*GoogleIamV1AuditConfig `json:"auditConfigs,omitempty"` - // Bindings: Associates a list of `members`, or principals, with a `role`. - // Optionally, may specify a `condition` that determines how and when the - // `bindings` are applied. Each of the `bindings` must contain at least one - // principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; - // up to 250 of these principals can be Google groups. Each occurrence of a - // principal counts towards these limits. For example, if the `bindings` grant - // 50 different roles to `user:alice@example.com`, and not to any other - // principal, then you can add another 1,450 principals to the `bindings` in - // the `Policy`. - Bindings []*GoogleIamV1Binding `json:"bindings,omitempty"` - // Etag: `etag` is used for optimistic concurrency control as a way to help - // prevent simultaneous updates of a policy from overwriting each other. It is - // strongly suggested that systems make use of the `etag` in the - // read-modify-write cycle to perform policy updates in order to avoid race - // conditions: An `etag` is returned in the response to `getIamPolicy`, and - // systems are expected to put that etag in the request to `setIamPolicy` to - // ensure that their change will be applied to the same version of the policy. - // **Important:** If you use IAM Conditions, you must include the `etag` field - // whenever you call `setIamPolicy`. If you omit this field, then IAM allows - // you to overwrite a version `3` policy with a version `1` policy, and all of - // the conditions in the version `3` policy are lost. - Etag string `json:"etag,omitempty"` - // Version: Specifies the format of the policy. Valid values are `0`, `1`, and - // `3`. Requests that specify an invalid value are rejected. Any operation that - // affects conditional role bindings must specify version `3`. This requirement - // applies to the following operations: * Getting a policy that includes a - // conditional role binding * Adding a conditional role binding to a policy * - // Changing a conditional role binding in a policy * Removing any role binding, - // with or without a condition, from a policy that includes conditions - // **Important:** If you use IAM Conditions, you must include the `etag` field - // whenever you call `setIamPolicy`. If you omit this field, then IAM allows - // you to overwrite a version `3` policy with a version `1` policy, and all of - // the conditions in the version `3` policy are lost. If a policy does not - // include any conditions, operations on that policy may specify any valid - // version or leave the field unset. To learn which resources support - // conditions in their IAM policies, see the IAM documentation - // (https://cloud.google.com/iam/help/conditions/resource-policies). - Version int64 `json:"version,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AuditConfigs") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AuditConfigs") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s GoogleIamV1Policy) MarshalJSON() ([]byte, error) { - type NoMethod GoogleIamV1Policy - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// GoogleIamV1SetIamPolicyRequest: Request message for `SetIamPolicy` method. -type GoogleIamV1SetIamPolicyRequest struct { - // Policy: REQUIRED: The complete policy to be applied to the `resource`. The - // size of the policy is limited to a few 10s of KB. An empty policy is a valid - // policy but certain Google Cloud services (such as Projects) might reject - // them. - Policy *GoogleIamV1Policy `json:"policy,omitempty"` - // UpdateMask: OPTIONAL: A FieldMask specifying which fields of the policy to - // modify. Only the fields in the mask will be modified. If no mask is - // provided, the following default mask is used: `paths: "bindings, etag" - UpdateMask string `json:"updateMask,omitempty"` - // ForceSendFields is a list of field names (e.g. "Policy") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Policy") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s GoogleIamV1SetIamPolicyRequest) MarshalJSON() ([]byte, error) { - type NoMethod GoogleIamV1SetIamPolicyRequest - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// GoogleIamV1TestIamPermissionsRequest: Request message for -// `TestIamPermissions` method. -type GoogleIamV1TestIamPermissionsRequest struct { - // 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). - Permissions []string `json:"permissions,omitempty"` - // ForceSendFields is a list of field names (e.g. "Permissions") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Permissions") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s GoogleIamV1TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { - type NoMethod GoogleIamV1TestIamPermissionsRequest - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// GoogleIamV1TestIamPermissionsResponse: Response message for -// `TestIamPermissions` method. -type GoogleIamV1TestIamPermissionsResponse struct { - // Permissions: A subset of `TestPermissionsRequest.permissions` that the - // caller is allowed. - Permissions []string `json:"permissions,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Permissions") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Permissions") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s GoogleIamV1TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleIamV1TestIamPermissionsResponse - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // GoogleLongrunningListOperationsResponse: The response message for // Operations.ListOperations. type GoogleLongrunningListOperationsResponse struct { @@ -9824,54 +9341,6 @@ func (s GoogleRpcStatus) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleTypeExpr: Represents a textual expression in the Common Expression -// Language (CEL) syntax. CEL is a C-like expression language. The syntax and -// semantics of CEL are documented at https://github.com/google/cel-spec. -// Example (Comparison): title: "Summary size limit" description: "Determines -// if a summary is less than 100 chars" expression: "document.summary.size() < -// 100" Example (Equality): title: "Requestor is owner" description: -// "Determines if requestor is the document owner" expression: "document.owner -// == request.auth.claims.email" Example (Logic): title: "Public documents" -// description: "Determine whether the document should be publicly visible" -// expression: "document.type != 'private' && document.type != 'internal'" -// Example (Data Manipulation): title: "Notification string" description: -// "Create a notification string with a timestamp." expression: "'New message -// received at ' + string(document.create_time)" The exact variables and -// functions that may be referenced within an expression are determined by the -// service that evaluates it. See the service documentation for additional -// information. -type GoogleTypeExpr struct { - // Description: Optional. Description of the expression. This is a longer text - // which describes the expression, e.g. when hovered over it in a UI. - Description string `json:"description,omitempty"` - // Expression: Textual representation of an expression in Common Expression - // Language syntax. - Expression string `json:"expression,omitempty"` - // Location: Optional. String indicating the location of the expression for - // error reporting, e.g. a file name and a position in the file. - Location string `json:"location,omitempty"` - // Title: Optional. Title for the expression, i.e. a short string describing - // its purpose. This can be used e.g. in UIs which allow to enter the - // expression. - Title string `json:"title,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Description") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s GoogleTypeExpr) MarshalJSON() ([]byte, error) { - type NoMethod GoogleTypeExpr - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // GoogleTypeInterval: Represents a time interval, encoded as a Timestamp start // (inclusive) and a Timestamp end (exclusive). The start must be less than or // equal to the end. When the start equals the end, the interval is empty @@ -11261,2763 +10730,6 @@ func (c *ProjectsLocationsAnalysisRulesPatchCall) Do(opts ...googleapi.CallOptio return ret, nil } -type ProjectsLocationsAuthorizedViewSetAuthorizedViewCalculateStatsCall struct { - s *Service - location string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// CalculateStats: Gets conversation statistics. -// -// - location: The location of the conversations. -func (r *ProjectsLocationsAuthorizedViewSetAuthorizedViewService) CalculateStats(location string) *ProjectsLocationsAuthorizedViewSetAuthorizedViewCalculateStatsCall { - c := &ProjectsLocationsAuthorizedViewSetAuthorizedViewCalculateStatsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.location = location - return c -} - -// Filter sets the optional parameter "filter": A filter to reduce results to a -// specific subset. This field is useful for getting statistics about -// conversations with specific properties. -func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewCalculateStatsCall) Filter(filter string) *ProjectsLocationsAuthorizedViewSetAuthorizedViewCalculateStatsCall { - c.urlParams_.Set("filter", filter) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewCalculateStatsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetAuthorizedViewCalculateStatsCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewCalculateStatsCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthorizedViewSetAuthorizedViewCalculateStatsCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewCalculateStatsCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetAuthorizedViewCalculateStatsCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewCalculateStatsCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewCalculateStatsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+location}:calculateStats") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "location": c.location, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "contactcenterinsights.projects.locations.authorizedViewSet.authorizedView.calculateStats" call. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudContactcenterinsightsV1CalculateStatsResponse.ServerResponse.Head -// er 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 *ProjectsLocationsAuthorizedViewSetAuthorizedViewCalculateStatsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1CalculateStatsResponse, 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 := &GoogleCloudContactcenterinsightsV1CalculateStatsResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - -type ProjectsLocationsAuthorizedViewSetAuthorizedViewQueryMetricsCall struct { - s *Service - location string - googlecloudcontactcenterinsightsv1querymetricsrequest *GoogleCloudContactcenterinsightsV1QueryMetricsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// QueryMetrics: Query metrics. -// -// - location: The location of the data. -// "projects/{project}/locations/{location}". -func (r *ProjectsLocationsAuthorizedViewSetAuthorizedViewService) QueryMetrics(location string, googlecloudcontactcenterinsightsv1querymetricsrequest *GoogleCloudContactcenterinsightsV1QueryMetricsRequest) *ProjectsLocationsAuthorizedViewSetAuthorizedViewQueryMetricsCall { - c := &ProjectsLocationsAuthorizedViewSetAuthorizedViewQueryMetricsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.location = location - c.googlecloudcontactcenterinsightsv1querymetricsrequest = googlecloudcontactcenterinsightsv1querymetricsrequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewQueryMetricsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetAuthorizedViewQueryMetricsCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewQueryMetricsCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetAuthorizedViewQueryMetricsCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewQueryMetricsCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewQueryMetricsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1querymetricsrequest) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+location}:queryMetrics") - 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{ - "location": c.location, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "contactcenterinsights.projects.locations.authorizedViewSet.authorizedView.queryMetrics" call. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewQueryMetricsCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleLongrunningOperation{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - -type ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsCreateCall struct { - s *Service - parent string - googlecloudcontactcenterinsightsv1feedbacklabel *GoogleCloudContactcenterinsightsV1FeedbackLabel - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Create: Create feedback label. -// -// - parent: The parent resource of the feedback label. -func (r *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsService) Create(parent string, googlecloudcontactcenterinsightsv1feedbacklabel *GoogleCloudContactcenterinsightsV1FeedbackLabel) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsCreateCall { - c := &ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudcontactcenterinsightsv1feedbacklabel = googlecloudcontactcenterinsightsv1feedbacklabel - return c -} - -// FeedbackLabelId sets the optional parameter "feedbackLabelId": The ID of the -// feedback label to create. If one is not specified it will be generated by -// the server. -func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsCreateCall) FeedbackLabelId(feedbackLabelId string) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsCreateCall { - c.urlParams_.Set("feedbackLabelId", feedbackLabelId) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsCreateCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsCreateCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsCreateCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsCreateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1feedbacklabel) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/feedbackLabels") - 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 "contactcenterinsights.projects.locations.authorizedViewSet.authorizedViews.conversations.feedbackLabels.create" call. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudContactcenterinsightsV1FeedbackLabel.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 *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1FeedbackLabel, 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 := &GoogleCloudContactcenterinsightsV1FeedbackLabel{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - -type ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Delete: Delete feedback label. -// -// - name: The name of the feedback label to delete. -func (r *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsService) Delete(name string) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsDeleteCall { - c := &ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsDeleteCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsDeleteCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsDeleteCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "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 "contactcenterinsights.projects.locations.authorizedViewSet.authorizedViews.conversations.feedbackLabels.delete" call. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleProtobufEmpty{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - -type ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Get feedback label. -// -// - name: The name of the feedback label to get. -func (r *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsService) Get(name string) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsGetCall { - c := &ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsGetCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsGetCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsGetCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "contactcenterinsights.projects.locations.authorizedViewSet.authorizedViews.conversations.feedbackLabels.get" call. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudContactcenterinsightsV1FeedbackLabel.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 *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1FeedbackLabel, 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 := &GoogleCloudContactcenterinsightsV1FeedbackLabel{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - -type ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: List feedback labels. -// -// - parent: The parent resource of the feedback labels. -func (r *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsService) List(parent string) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsListCall { - c := &ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Filter sets the optional parameter "filter": A filter to reduce results to a -// specific subset. Supports disjunctions (OR) and conjunctions (AND). -// Automatically sorts by conversation ID. To sort by all feedback labels in a -// project see ListAllFeedbackLabels. Supported fields: * `issue_model_id` * -// `qa_question_id` * `qa_scorecard_id` * `min_create_time` * `max_create_time` -// * `min_update_time` * `max_update_time` * `feedback_label_type`: QUALITY_AI, -// TOPIC_MODELING -func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsListCall) Filter(filter string) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number of -// feedback labels to return in the response. A valid page size ranges from 0 -// to 100,000 inclusive. If the page size is zero or unspecified, a default -// page size of 100 will be chosen. Note that a call might return fewer results -// than the requested page size. -func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsListCall) PageSize(pageSize int64) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The value returned by the -// last `ListFeedbackLabelsResponse`. This value indicates that this is a -// continuation of a prior `ListFeedbackLabels` call and that the system should -// return the next page of data. -func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsListCall) PageToken(pageToken string) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsListCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsListCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsListCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsListCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/feedbackLabels") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "contactcenterinsights.projects.locations.authorizedViewSet.authorizedViews.conversations.feedbackLabels.list" call. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse.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 *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse, 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 := &GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsListCall) Pages(ctx context.Context, f func(*GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -type ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsPatchCall struct { - s *Service - name string - googlecloudcontactcenterinsightsv1feedbacklabel *GoogleCloudContactcenterinsightsV1FeedbackLabel - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Patch: Update feedback label. -// -// - name: Immutable. Resource name of the FeedbackLabel. Format: -// projects/{project}/locations/{location}/conversations/{conversation}/feedba -// ckLabels/{feedback_label}. -func (r *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsService) Patch(name string, googlecloudcontactcenterinsightsv1feedbacklabel *GoogleCloudContactcenterinsightsV1FeedbackLabel) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsPatchCall { - c := &ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlecloudcontactcenterinsightsv1feedbacklabel = googlecloudcontactcenterinsightsv1feedbacklabel - return c -} - -// UpdateMask sets the optional parameter "updateMask": Required. The list of -// fields to be updated. -func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsPatchCall { - c.urlParams_.Set("updateMask", updateMask) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsPatchCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsPatchCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsPatchCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsPatchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1feedbacklabel) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "contactcenterinsights.projects.locations.authorizedViewSet.authorizedViews.conversations.feedbackLabels.patch" call. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudContactcenterinsightsV1FeedbackLabel.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 *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1FeedbackLabel, 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 := &GoogleCloudContactcenterinsightsV1FeedbackLabel{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - -type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsGetIamPolicyCall struct { - s *Service - resource string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - 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 *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsService) GetIamPolicy(resource string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsGetIamPolicyCall { - c := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsGetIamPolicyCall{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 *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsGetIamPolicyCall { - 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 -// details. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsGetIamPolicyCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsGetIamPolicyCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsGetIamPolicyCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsGetIamPolicyCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.getIamPolicy" call. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleIamV1Policy{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - -type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsSetIamPolicyCall 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 *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsSetIamPolicyCall { - c := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsSetIamPolicyCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsSetIamPolicyCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsSetIamPolicyCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.setIamPolicy" call. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleIamV1Policy{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - -type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsTestIamPermissionsCall struct { - s *Service - resource string - googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest - 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 *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsTestIamPermissionsCall { - c := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsTestIamPermissionsCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsTestIamPermissionsCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsTestIamPermissionsCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+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 "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.testIamPermissions" call. -// 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 *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsTestIamPermissionsCall) 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 -} - -type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsCreateCall struct { - s *Service - parent string - googlecloudcontactcenterinsightsv1conversation *GoogleCloudContactcenterinsightsV1Conversation - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Create: Creates a conversation. Note that this method does not support audio -// transcription or redaction. Use `conversations.upload` instead. -// -// - parent: The parent resource of the conversation. -func (r *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsService) Create(parent string, googlecloudcontactcenterinsightsv1conversation *GoogleCloudContactcenterinsightsV1Conversation) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsCreateCall { - c := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudcontactcenterinsightsv1conversation = googlecloudcontactcenterinsightsv1conversation - return c -} - -// ConversationId sets the optional parameter "conversationId": A unique ID for -// the new conversation. This ID will become the final component of the -// conversation's resource name. If no ID is specified, a server-generated ID -// will be used. This value should be 4-64 characters and must match the -// regular expression `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-` -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsCreateCall) ConversationId(conversationId string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsCreateCall { - c.urlParams_.Set("conversationId", conversationId) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsCreateCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsCreateCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsCreateCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsCreateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1conversation) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/conversations") - 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 "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.create" call. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudContactcenterinsightsV1Conversation.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 *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1Conversation, 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 := &GoogleCloudContactcenterinsightsV1Conversation{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - -type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Delete: Deletes a conversation. -// -// - name: The name of the conversation to delete. -func (r *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsService) Delete(name string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsDeleteCall { - c := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Force sets the optional parameter "force": If set to true, all of this -// conversation's analyses will also be deleted. Otherwise, the request will -// only succeed if the conversation has no analyses. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsDeleteCall) Force(force bool) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsDeleteCall { - c.urlParams_.Set("force", fmt.Sprint(force)) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsDeleteCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsDeleteCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsDeleteCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "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 "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.delete" call. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleProtobufEmpty{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - -type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets a conversation. -// -// - name: The name of the conversation to get. -func (r *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsService) Get(name string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsGetCall { - c := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// View sets the optional parameter "view": The level of details of the -// conversation. Default is `FULL`. -// -// Possible values: -// -// "CONVERSATION_VIEW_UNSPECIFIED" - The conversation view is not specified. -// -// * Defaults to `FULL` in `GetConversationRequest`. * Defaults to `BASIC` in -// `ListConversationsRequest`. -// -// "FULL" - Populates all fields in the conversation. -// "BASIC" - Populates all fields in the conversation except the transcript. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsGetCall) View(view string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsGetCall { - c.urlParams_.Set("view", view) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsGetCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsGetCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsGetCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.get" call. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudContactcenterinsightsV1Conversation.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 *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1Conversation, 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 := &GoogleCloudContactcenterinsightsV1Conversation{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - -type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists conversations. -// -// - parent: The parent resource of the conversation. -func (r *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsService) List(parent string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsListCall { - c := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Filter sets the optional parameter "filter": A filter to reduce results to a -// specific subset. Useful for querying conversations with specific properties. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsListCall) Filter(filter string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// OrderBy sets the optional parameter "orderBy": The attribute by which to -// order conversations in the response. If empty, conversations will be ordered -// by descending creation time. Supported values are one of the following: * -// create_time * customer_satisfaction_rating * duration * latest_analysis * -// start_time * turn_count The default sort order is ascending. To specify -// order, append `asc` or `desc` (`create_time desc`). For more details, see -// Google AIPs Ordering (https://google.aip.dev/132#ordering). -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsListCall) OrderBy(orderBy string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number of -// conversations to return in the response. A valid page size ranges from 0 to -// 100,000 inclusive. If the page size is zero or unspecified, a default page -// size of 100 will be chosen. Note that a call might return fewer results than -// the requested page size. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsListCall) PageSize(pageSize int64) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The value returned by the -// last `ListConversationsResponse`. This value indicates that this is a -// continuation of a prior `ListConversations` call and that the system should -// return the next page of data. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsListCall) PageToken(pageToken string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// View sets the optional parameter "view": The level of details of the -// conversation. Default is `BASIC`. -// -// Possible values: -// -// "CONVERSATION_VIEW_UNSPECIFIED" - The conversation view is not specified. -// -// * Defaults to `FULL` in `GetConversationRequest`. * Defaults to `BASIC` in -// `ListConversationsRequest`. -// -// "FULL" - Populates all fields in the conversation. -// "BASIC" - Populates all fields in the conversation except the transcript. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsListCall) View(view string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsListCall { - c.urlParams_.Set("view", view) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsListCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsListCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsListCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsListCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/conversations") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.list" call. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudContactcenterinsightsV1ListConversationsResponse.ServerResponse.H -// eader 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 *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1ListConversationsResponse, 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 := &GoogleCloudContactcenterinsightsV1ListConversationsResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsListCall) Pages(ctx context.Context, f func(*GoogleCloudContactcenterinsightsV1ListConversationsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsPatchCall struct { - s *Service - name string - googlecloudcontactcenterinsightsv1conversation *GoogleCloudContactcenterinsightsV1Conversation - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Patch: Updates a conversation. -// -// - name: Immutable. The resource name of the conversation. Format: -// projects/{project}/locations/{location}/conversations/{conversation}. -func (r *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsService) Patch(name string, googlecloudcontactcenterinsightsv1conversation *GoogleCloudContactcenterinsightsV1Conversation) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsPatchCall { - c := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlecloudcontactcenterinsightsv1conversation = googlecloudcontactcenterinsightsv1conversation - return c -} - -// UpdateMask sets the optional parameter "updateMask": The list of fields to -// be updated. All possible fields can be updated by passing `*`, or a subset -// of the following updateable fields can be provided: * `agent_id` * -// `language_code` * `labels` * `metadata` * `quality_metadata` * -// `call_metadata` * `start_time` * `expire_time` or `ttl` * -// `data_source.gcs_source.audio_uri` or -// `data_source.dialogflow_source.audio_uri` -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsPatchCall { - c.urlParams_.Set("updateMask", updateMask) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsPatchCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsPatchCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsPatchCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsPatchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1conversation) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.patch" call. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudContactcenterinsightsV1Conversation.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 *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1Conversation, 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 := &GoogleCloudContactcenterinsightsV1Conversation{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - -type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsUploadCall struct { - s *Service - parent string - googlecloudcontactcenterinsightsv1conversation *GoogleCloudContactcenterinsightsV1Conversation - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Upload: Create a long-running conversation upload operation. This method -// differs from `CreateConversation` by allowing audio transcription and -// optional DLP redaction. -// -// - parent: The parent resource of the conversation. -func (r *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsService) Upload(parent string, googlecloudcontactcenterinsightsv1conversation *GoogleCloudContactcenterinsightsV1Conversation) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsUploadCall { - c := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsUploadCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudcontactcenterinsightsv1conversation = googlecloudcontactcenterinsightsv1conversation - return c -} - -// ConversationId sets the optional parameter "conversationId": A unique ID for -// the new conversation. This ID will become the final component of the -// conversation's resource name. If no ID is specified, a server-generated ID -// will be used. This value should be 4-64 characters and must match the -// regular expression `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-` -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsUploadCall) ConversationId(conversationId string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsUploadCall { - c.urlParams_.Set("conversationId", conversationId) - return c -} - -// RedactionConfigDeidentifyTemplate sets the optional parameter -// "redactionConfig.deidentifyTemplate": The fully-qualified DLP deidentify -// template resource name. Format: -// `projects/{project}/deidentifyTemplates/{template}` -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsUploadCall) RedactionConfigDeidentifyTemplate(redactionConfigDeidentifyTemplate string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsUploadCall { - c.urlParams_.Set("redactionConfig.deidentifyTemplate", redactionConfigDeidentifyTemplate) - return c -} - -// RedactionConfigInspectTemplate sets the optional parameter -// "redactionConfig.inspectTemplate": The fully-qualified DLP inspect template -// resource name. Format: -// `projects/{project}/locations/{location}/inspectTemplates/{template}` -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsUploadCall) RedactionConfigInspectTemplate(redactionConfigInspectTemplate string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsUploadCall { - c.urlParams_.Set("redactionConfig.inspectTemplate", redactionConfigInspectTemplate) - return c -} - -// SpeechConfigSpeechRecognizer sets the optional parameter -// "speechConfig.speechRecognizer": The fully-qualified Speech Recognizer -// resource name. Format: -// `projects/{project_id}/locations/{location}/recognizer/{recognizer}` -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsUploadCall) SpeechConfigSpeechRecognizer(speechConfigSpeechRecognizer string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsUploadCall { - c.urlParams_.Set("speechConfig.speechRecognizer", speechConfigSpeechRecognizer) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsUploadCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsUploadCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsUploadCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsUploadCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsUploadCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsUploadCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1conversation) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/conversations:upload") - 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 "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.upload" call. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsUploadCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleLongrunningOperation{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - -type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesCreateCall struct { - s *Service - parent string - googlecloudcontactcenterinsightsv1analysis *GoogleCloudContactcenterinsightsV1Analysis - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Create: Creates an analysis. The long running operation is done when the -// analysis has completed. -// -// - parent: The parent resource of the analysis. -func (r *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesService) Create(parent string, googlecloudcontactcenterinsightsv1analysis *GoogleCloudContactcenterinsightsV1Analysis) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesCreateCall { - c := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudcontactcenterinsightsv1analysis = googlecloudcontactcenterinsightsv1analysis - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesCreateCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesCreateCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesCreateCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesCreateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1analysis) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analyses") - 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 "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.analyses.create" call. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleLongrunningOperation{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - -type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Delete: Deletes an analysis. -// -// - name: The name of the analysis to delete. -func (r *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesService) Delete(name string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesDeleteCall { - c := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesDeleteCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesDeleteCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesDeleteCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "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 "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.analyses.delete" call. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleProtobufEmpty{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - -type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets an analysis. -// -// - name: The name of the analysis to get. -func (r *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesService) Get(name string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesGetCall { - c := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesGetCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesGetCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesGetCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesGetCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.analyses.get" call. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudContactcenterinsightsV1Analysis.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 *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1Analysis, 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 := &GoogleCloudContactcenterinsightsV1Analysis{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - -type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists analyses. -// -// - parent: The parent resource of the analyses. -func (r *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesService) List(parent string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesListCall { - c := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Filter sets the optional parameter "filter": A filter to reduce results to a -// specific subset. Useful for querying conversations with specific properties. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesListCall) Filter(filter string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number of -// analyses to return in the response. If this value is zero, the service will -// select a default size. A call might return fewer objects than requested. A -// non-empty `next_page_token` in the response indicates that more data is -// available. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesListCall) PageSize(pageSize int64) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The value returned by the -// last `ListAnalysesResponse`; indicates that this is a continuation of a -// prior `ListAnalyses` call and the system should return the next page of -// data. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesListCall) PageToken(pageToken string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesListCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesListCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesListCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesListCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analyses") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.analyses.list" call. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudContactcenterinsightsV1ListAnalysesResponse.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 *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1ListAnalysesResponse, 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 := &GoogleCloudContactcenterinsightsV1ListAnalysesResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesListCall) Pages(ctx context.Context, f func(*GoogleCloudContactcenterinsightsV1ListAnalysesResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsCancelCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Cancel: Starts asynchronous cancellation on a long-running operation. The -// server makes a best effort to cancel the operation, but success is not -// guaranteed. If the server doesn't support this method, it returns -// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or -// other methods to check whether the cancellation succeeded or whether the -// operation completed despite cancellation. On successful cancellation, the -// operation is not deleted; instead, it becomes an operation with an -// Operation.error value with a google.rpc.Status.code of 1, corresponding to -// `Code.CANCELLED`. -// -// - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsService) Cancel(name string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsCancelCall { - c := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsCancelCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsCancelCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsCancelCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.operations.cancel" call. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleProtobufEmpty{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - -type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets the latest state of a long-running operation. Clients can use this -// method to poll the operation result at intervals as recommended by the API -// service. -// -// - name: The name of the operation resource. -func (r *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsService) Get(name string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsGetCall { - c := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsGetCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsGetCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.operations.get" call. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleLongrunningOperation{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - -type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsListCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists operations that match the specified filter in the request. If -// the server doesn't support this method, it returns `UNIMPLEMENTED`. -// -// - name: The name of the operation's parent resource. -func (r *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsService) List(name string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsListCall { - c := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Filter sets the optional parameter "filter": The standard list filter. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsListCall) Filter(filter string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list page -// size. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The standard list page -// token. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsListCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsListCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsListCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.operations.list" call. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningListOperationsResponse.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 *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, 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 := &GoogleLongrunningListOperationsResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - type ProjectsLocationsConversationsBulkAnalyzeCall struct { s *Service parent string diff --git a/container/v1/container-api.json b/container/v1/container-api.json index 82c83c8c627..ef0a2632dbc 100644 --- a/container/v1/container-api.json +++ b/container/v1/container-api.json @@ -2540,7 +2540,7 @@ } } }, - "revision": "20241024", + "revision": "20241105", "rootUrl": "https://container.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -4930,7 +4930,7 @@ "additionalProperties": { "type": "string" }, - "description": "The Linux kernel parameters to be applied to the nodes and all pods running on the nodes. The following parameters are supported. net.core.busy_poll net.core.busy_read net.core.netdev_max_backlog net.core.rmem_max net.core.wmem_default net.core.wmem_max net.core.optmem_max net.core.somaxconn net.ipv4.tcp_rmem net.ipv4.tcp_wmem net.ipv4.tcp_tw_reuse", + "description": "The Linux kernel parameters to be applied to the nodes and all pods running on the nodes. The following parameters are supported. net.core.busy_poll net.core.busy_read net.core.netdev_max_backlog net.core.rmem_max net.core.wmem_default net.core.wmem_max net.core.optmem_max net.core.somaxconn net.ipv4.tcp_rmem net.ipv4.tcp_wmem net.ipv4.tcp_tw_reuse kernel.shmmni kernel.shmmax kernel.shmall", "type": "object" } }, diff --git a/container/v1/container-gen.go b/container/v1/container-gen.go index c0e1f81665a..e45ae581436 100644 --- a/container/v1/container-gen.go +++ b/container/v1/container-gen.go @@ -3223,7 +3223,7 @@ type LinuxNodeConfig struct { // net.core.busy_poll net.core.busy_read net.core.netdev_max_backlog // net.core.rmem_max net.core.wmem_default net.core.wmem_max // net.core.optmem_max net.core.somaxconn net.ipv4.tcp_rmem net.ipv4.tcp_wmem - // net.ipv4.tcp_tw_reuse + // net.ipv4.tcp_tw_reuse kernel.shmmni kernel.shmmax kernel.shmall Sysctls map[string]string `json:"sysctls,omitempty"` // ForceSendFields is a list of field names (e.g. "CgroupMode") to // unconditionally include in API requests. By default, fields with empty or diff --git a/container/v1beta1/container-api.json b/container/v1beta1/container-api.json index 120deec767a..273c1d206bb 100644 --- a/container/v1beta1/container-api.json +++ b/container/v1beta1/container-api.json @@ -2685,7 +2685,7 @@ } } }, - "revision": "20241022", + "revision": "20241105", "rootUrl": "https://container.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -5458,7 +5458,7 @@ "additionalProperties": { "type": "string" }, - "description": "The Linux kernel parameters to be applied to the nodes and all pods running on the nodes. The following parameters are supported. net.core.busy_poll net.core.busy_read net.core.netdev_max_backlog net.core.rmem_max net.core.wmem_default net.core.wmem_max net.core.optmem_max net.core.somaxconn net.ipv4.tcp_rmem net.ipv4.tcp_wmem net.ipv4.tcp_tw_reuse", + "description": "The Linux kernel parameters to be applied to the nodes and all pods running on the nodes. The following parameters are supported. net.core.busy_poll net.core.busy_read net.core.netdev_max_backlog net.core.rmem_max net.core.wmem_default net.core.wmem_max net.core.optmem_max net.core.somaxconn net.ipv4.tcp_rmem net.ipv4.tcp_wmem net.ipv4.tcp_tw_reuse kernel.shmmni kernel.shmmax kernel.shmall", "type": "object" } }, diff --git a/container/v1beta1/container-gen.go b/container/v1beta1/container-gen.go index 9896030f899..42192dd1206 100644 --- a/container/v1beta1/container-gen.go +++ b/container/v1beta1/container-gen.go @@ -3671,7 +3671,7 @@ type LinuxNodeConfig struct { // net.core.busy_poll net.core.busy_read net.core.netdev_max_backlog // net.core.rmem_max net.core.wmem_default net.core.wmem_max // net.core.optmem_max net.core.somaxconn net.ipv4.tcp_rmem net.ipv4.tcp_wmem - // net.ipv4.tcp_tw_reuse + // net.ipv4.tcp_tw_reuse kernel.shmmni kernel.shmmax kernel.shmall Sysctls map[string]string `json:"sysctls,omitempty"` // ForceSendFields is a list of field names (e.g. "CgroupMode") to // unconditionally include in API requests. By default, fields with empty or diff --git a/dataform/v1beta1/dataform-api.json b/dataform/v1beta1/dataform-api.json index 4e941d7cefa..89a163b4a2d 100644 --- a/dataform/v1beta1/dataform-api.json +++ b/dataform/v1beta1/dataform-api.json @@ -200,7 +200,7 @@ ] }, "updateConfig": { - "description": "Update default config for a given project and location.", + "description": "Update default config for a given project and location. *Note:* This method does not fully implement AIP/134. In particular: 1. The wildcard entry (***) is treated as a bad request 2. When the *field_mask* is omitted, instead of only updating the set fields, the request is treated as a full update on all modifiable fields ", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/config", "httpMethod": "PATCH", "id": "dataform.projects.locations.updateConfig", @@ -608,7 +608,7 @@ ] }, "patch": { - "description": "Updates a single Repository.", + "description": "Updates a single Repository. *Note:* This method does not fully implement AIP/134. In particular: 1. The wildcard entry (***) is treated as a bad request 2. When the *field_mask* is omitted, instead of only updating the set fields, the request is treated as a full update on all modifiable fields ", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}", "httpMethod": "PATCH", "id": "dataform.projects.locations.repositories.patch", @@ -1174,7 +1174,7 @@ ] }, "patch": { - "description": "Updates a single ReleaseConfig.", + "description": "Updates a single ReleaseConfig. *Note:* This method does not fully implement AIP/134. In particular: 1. The wildcard entry (***) is treated as a bad request 2. When the *field_mask* is omitted, instead of only updating the set fields, the request is treated as a full update on all modifiable fields ", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/releaseConfigs/{releaseConfigsId}", "httpMethod": "PATCH", "id": "dataform.projects.locations.repositories.releaseConfigs.patch", @@ -1331,7 +1331,7 @@ ] }, "patch": { - "description": "Updates a single WorkflowConfig.", + "description": "Updates a single WorkflowConfig. *Note:* This method does not fully implement AIP/134. In particular: 1. The wildcard entry (***) is treated as a bad request 2. When the *field_mask* is omitted, instead of only updating the set fields, the request is treated as a full update on all modifiable fields ", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/workflowConfigs/{workflowConfigsId}", "httpMethod": "PATCH", "id": "dataform.projects.locations.repositories.workflowConfigs.patch", @@ -2295,7 +2295,7 @@ } } }, - "revision": "20241020", + "revision": "20241108", "rootUrl": "https://dataform.googleapis.com/", "schemas": { "Assertion": { @@ -3376,7 +3376,7 @@ "type": "string" }, "cancelRequested": { - "description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have google.longrunning.Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.", "readOnly": true, "type": "boolean" }, diff --git a/dataform/v1beta1/dataform-gen.go b/dataform/v1beta1/dataform-gen.go index 700a52c871a..86442382463 100644 --- a/dataform/v1beta1/dataform-gen.go +++ b/dataform/v1beta1/dataform-gen.go @@ -1792,8 +1792,8 @@ type OperationMetadata struct { ApiVersion string `json:"apiVersion,omitempty"` // CancelRequested: Output only. Identifies whether the user has requested // cancellation of the operation. Operations that have been cancelled - // successfully have Operation.error value with a google.rpc.Status.code of 1, - // corresponding to `Code.CANCELLED`. + // successfully have google.longrunning.Operation.error value with a + // google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. CancelRequested bool `json:"cancelRequested,omitempty"` // CreateTime: Output only. The time the operation was created. CreateTime string `json:"createTime,omitempty"` @@ -3411,6 +3411,10 @@ type ProjectsLocationsUpdateConfigCall struct { } // UpdateConfig: Update default config for a given project and location. +// *Note:* This method does not fully implement AIP/134. In particular: 1. The +// wildcard entry (***) is treated as a bad request 2. When the *field_mask* is +// omitted, instead of only updating the set fields, the request is treated as +// a full update on all modifiable fields // // - name: Identifier. The config name. func (r *ProjectsLocationsService) UpdateConfig(name string, config *Config) *ProjectsLocationsUpdateConfigCall { @@ -4935,7 +4939,11 @@ type ProjectsLocationsRepositoriesPatchCall struct { header_ http.Header } -// Patch: Updates a single Repository. +// Patch: Updates a single Repository. *Note:* This method does not fully +// implement AIP/134. In particular: 1. The wildcard entry (***) is treated as +// a bad request 2. When the *field_mask* is omitted, instead of only updating +// the set fields, the request is treated as a full update on all modifiable +// fields // // - name: Identifier. The repository's name. func (r *ProjectsLocationsRepositoriesService) Patch(name string, repository *Repository) *ProjectsLocationsRepositoriesPatchCall { @@ -6996,7 +7004,11 @@ type ProjectsLocationsRepositoriesReleaseConfigsPatchCall struct { header_ http.Header } -// Patch: Updates a single ReleaseConfig. +// Patch: Updates a single ReleaseConfig. *Note:* This method does not fully +// implement AIP/134. In particular: 1. The wildcard entry (***) is treated as +// a bad request 2. When the *field_mask* is omitted, instead of only updating +// the set fields, the request is treated as a full update on all modifiable +// fields // // - name: Identifier. The release config's name. func (r *ProjectsLocationsRepositoriesReleaseConfigsService) Patch(name string, releaseconfig *ReleaseConfig) *ProjectsLocationsRepositoriesReleaseConfigsPatchCall { @@ -7564,7 +7576,11 @@ type ProjectsLocationsRepositoriesWorkflowConfigsPatchCall struct { header_ http.Header } -// Patch: Updates a single WorkflowConfig. +// Patch: Updates a single WorkflowConfig. *Note:* This method does not fully +// implement AIP/134. In particular: 1. The wildcard entry (***) is treated as +// a bad request 2. When the *field_mask* is omitted, instead of only updating +// the set fields, the request is treated as a full update on all modifiable +// fields // // - name: Identifier. The workflow config's name. func (r *ProjectsLocationsRepositoriesWorkflowConfigsService) Patch(name string, workflowconfig *WorkflowConfig) *ProjectsLocationsRepositoriesWorkflowConfigsPatchCall { diff --git a/datamigration/v1/datamigration-api.json b/datamigration/v1/datamigration-api.json index 79ceed6a13b..2e5c4853dcd 100644 --- a/datamigration/v1/datamigration-api.json +++ b/datamigration/v1/datamigration-api.json @@ -2218,7 +2218,7 @@ } } }, - "revision": "20241022", + "revision": "20241109", "rootUrl": "https://datamigration.googleapis.com/", "schemas": { "AlloyDbConnectionProfile": { @@ -5269,6 +5269,10 @@ "description": "If the source is a Cloud SQL database, use this field to provide the Cloud SQL instance ID of the source.", "type": "string" }, + "database": { + "description": "Optional. The name of the specific database within the host.", + "type": "string" + }, "host": { "description": "Required. The IP or hostname of the source PostgreSQL database.", "type": "string" diff --git a/datamigration/v1/datamigration-gen.go b/datamigration/v1/datamigration-gen.go index 2a84320f726..9ba428f5ed2 100644 --- a/datamigration/v1/datamigration-gen.go +++ b/datamigration/v1/datamigration-gen.go @@ -3628,6 +3628,8 @@ type PostgreSqlConnectionProfile struct { // CloudSqlId: If the source is a Cloud SQL database, use this field to provide // the Cloud SQL instance ID of the source. CloudSqlId string `json:"cloudSqlId,omitempty"` + // Database: Optional. The name of the specific database within the host. + Database string `json:"database,omitempty"` // Host: Required. The IP or hostname of the source PostgreSQL database. Host string `json:"host,omitempty"` // NetworkArchitecture: Output only. If the source is a Cloud SQL database, diff --git a/deploymentmanager/v0.alpha/deploymentmanager-api.json b/deploymentmanager/v0.alpha/deploymentmanager-api.json index d185c287ead..4bdf12454bf 100644 --- a/deploymentmanager/v0.alpha/deploymentmanager-api.json +++ b/deploymentmanager/v0.alpha/deploymentmanager-api.json @@ -1676,7 +1676,7 @@ } } }, - "revision": "20241111", + "revision": "20241117", "rootUrl": "https://deploymentmanager.googleapis.com/", "schemas": { "AsyncOptions": { @@ -2694,11 +2694,12 @@ "LIST_OVERHEAD_QUOTA_EXCEED", "QUOTA_INFO_UNAVAILABLE", "RESOURCE_USES_GLOBAL_DNS", - "RESERVED_ENTRY_134", + "RATE_LIMIT_EXCEEDED", "RESERVED_ENTRY_135", "RESERVED_ENTRY_136", "RESERVED_ENTRY_139", - "RESERVED_ENTRY_141" + "RESERVED_ENTRY_141", + "RESERVED_ENTRY_142" ], "enumDeprecated": [ false, @@ -2739,6 +2740,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -2776,6 +2778,7 @@ "Resource can't be retrieved due to list overhead quota exceed which captures the amount of resources filtered out by user-defined list filter.", "Quota information is not available to client requests (e.g: regions.list).", "Indicates that a VM is using global DNS. Can also be used to indicate that a resource has attributes that could result in the creation of a VM that uses global DNS.", + "Resource can't be retrieved due to api quota exceeded.", "Reserved entries for quickly adding new warnings without breaking dependent clients.", "", "", @@ -3079,11 +3082,12 @@ "LIST_OVERHEAD_QUOTA_EXCEED", "QUOTA_INFO_UNAVAILABLE", "RESOURCE_USES_GLOBAL_DNS", - "RESERVED_ENTRY_134", + "RATE_LIMIT_EXCEEDED", "RESERVED_ENTRY_135", "RESERVED_ENTRY_136", "RESERVED_ENTRY_139", - "RESERVED_ENTRY_141" + "RESERVED_ENTRY_141", + "RESERVED_ENTRY_142" ], "enumDeprecated": [ false, @@ -3124,6 +3128,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -3161,6 +3166,7 @@ "Resource can't be retrieved due to list overhead quota exceed which captures the amount of resources filtered out by user-defined list filter.", "Quota information is not available to client requests (e.g: regions.list).", "Indicates that a VM is using global DNS. Can also be used to indicate that a resource has attributes that could result in the creation of a VM that uses global DNS.", + "Resource can't be retrieved due to api quota exceeded.", "Reserved entries for quickly adding new warnings without breaking dependent clients.", "", "", @@ -3388,11 +3394,12 @@ "LIST_OVERHEAD_QUOTA_EXCEED", "QUOTA_INFO_UNAVAILABLE", "RESOURCE_USES_GLOBAL_DNS", - "RESERVED_ENTRY_134", + "RATE_LIMIT_EXCEEDED", "RESERVED_ENTRY_135", "RESERVED_ENTRY_136", "RESERVED_ENTRY_139", - "RESERVED_ENTRY_141" + "RESERVED_ENTRY_141", + "RESERVED_ENTRY_142" ], "enumDeprecated": [ false, @@ -3433,6 +3440,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -3470,6 +3478,7 @@ "Resource can't be retrieved due to list overhead quota exceed which captures the amount of resources filtered out by user-defined list filter.", "Quota information is not available to client requests (e.g: regions.list).", "Indicates that a VM is using global DNS. Can also be used to indicate that a resource has attributes that could result in the creation of a VM that uses global DNS.", + "Resource can't be retrieved due to api quota exceeded.", "Reserved entries for quickly adding new warnings without breaking dependent clients.", "", "", diff --git a/deploymentmanager/v0.alpha/deploymentmanager-gen.go b/deploymentmanager/v0.alpha/deploymentmanager-gen.go index cc3ef8724c0..3a75d3bd7d5 100644 --- a/deploymentmanager/v0.alpha/deploymentmanager-gen.go +++ b/deploymentmanager/v0.alpha/deploymentmanager-gen.go @@ -1724,12 +1724,14 @@ type OperationWarnings struct { // "RESOURCE_USES_GLOBAL_DNS" - Indicates that a VM is using global DNS. Can // also be used to indicate that a resource has attributes that could result in // the creation of a VM that uses global DNS. - // "RESERVED_ENTRY_134" - Reserved entries for quickly adding new warnings + // "RATE_LIMIT_EXCEEDED" - Resource can't be retrieved due to api quota + // exceeded. + // "RESERVED_ENTRY_135" - Reserved entries for quickly adding new warnings // without breaking dependent clients. - // "RESERVED_ENTRY_135" // "RESERVED_ENTRY_136" // "RESERVED_ENTRY_139" // "RESERVED_ENTRY_141" + // "RESERVED_ENTRY_142" Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } @@ -2167,12 +2169,14 @@ type ResourceWarnings struct { // "RESOURCE_USES_GLOBAL_DNS" - Indicates that a VM is using global DNS. Can // also be used to indicate that a resource has attributes that could result in // the creation of a VM that uses global DNS. - // "RESERVED_ENTRY_134" - Reserved entries for quickly adding new warnings + // "RATE_LIMIT_EXCEEDED" - Resource can't be retrieved due to api quota + // exceeded. + // "RESERVED_ENTRY_135" - Reserved entries for quickly adding new warnings // without breaking dependent clients. - // "RESERVED_ENTRY_135" // "RESERVED_ENTRY_136" // "RESERVED_ENTRY_139" // "RESERVED_ENTRY_141" + // "RESERVED_ENTRY_142" Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } @@ -2478,12 +2482,14 @@ type ResourceUpdateWarnings struct { // "RESOURCE_USES_GLOBAL_DNS" - Indicates that a VM is using global DNS. Can // also be used to indicate that a resource has attributes that could result in // the creation of a VM that uses global DNS. - // "RESERVED_ENTRY_134" - Reserved entries for quickly adding new warnings + // "RATE_LIMIT_EXCEEDED" - Resource can't be retrieved due to api quota + // exceeded. + // "RESERVED_ENTRY_135" - Reserved entries for quickly adding new warnings // without breaking dependent clients. - // "RESERVED_ENTRY_135" // "RESERVED_ENTRY_136" // "RESERVED_ENTRY_139" // "RESERVED_ENTRY_141" + // "RESERVED_ENTRY_142" Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } diff --git a/deploymentmanager/v2/deploymentmanager-api.json b/deploymentmanager/v2/deploymentmanager-api.json index 629e63dbbc3..2f77abcf42c 100644 --- a/deploymentmanager/v2/deploymentmanager-api.json +++ b/deploymentmanager/v2/deploymentmanager-api.json @@ -1028,7 +1028,7 @@ } } }, - "revision": "20241111", + "revision": "20241117", "rootUrl": "https://deploymentmanager.googleapis.com/", "schemas": { "AuditConfig": { @@ -1744,11 +1744,12 @@ "LIST_OVERHEAD_QUOTA_EXCEED", "QUOTA_INFO_UNAVAILABLE", "RESOURCE_USES_GLOBAL_DNS", - "RESERVED_ENTRY_134", + "RATE_LIMIT_EXCEEDED", "RESERVED_ENTRY_135", "RESERVED_ENTRY_136", "RESERVED_ENTRY_139", - "RESERVED_ENTRY_141" + "RESERVED_ENTRY_141", + "RESERVED_ENTRY_142" ], "enumDeprecated": [ false, @@ -1789,6 +1790,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -1826,6 +1828,7 @@ "Resource can't be retrieved due to list overhead quota exceed which captures the amount of resources filtered out by user-defined list filter.", "Quota information is not available to client requests (e.g: regions.list).", "Indicates that a VM is using global DNS. Can also be used to indicate that a resource has attributes that could result in the creation of a VM that uses global DNS.", + "Resource can't be retrieved due to api quota exceeded.", "Reserved entries for quickly adding new warnings without breaking dependent clients.", "", "", @@ -2048,11 +2051,12 @@ "LIST_OVERHEAD_QUOTA_EXCEED", "QUOTA_INFO_UNAVAILABLE", "RESOURCE_USES_GLOBAL_DNS", - "RESERVED_ENTRY_134", + "RATE_LIMIT_EXCEEDED", "RESERVED_ENTRY_135", "RESERVED_ENTRY_136", "RESERVED_ENTRY_139", - "RESERVED_ENTRY_141" + "RESERVED_ENTRY_141", + "RESERVED_ENTRY_142" ], "enumDeprecated": [ false, @@ -2093,6 +2097,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -2130,6 +2135,7 @@ "Resource can't be retrieved due to list overhead quota exceed which captures the amount of resources filtered out by user-defined list filter.", "Quota information is not available to client requests (e.g: regions.list).", "Indicates that a VM is using global DNS. Can also be used to indicate that a resource has attributes that could result in the creation of a VM that uses global DNS.", + "Resource can't be retrieved due to api quota exceeded.", "Reserved entries for quickly adding new warnings without breaking dependent clients.", "", "", @@ -2334,11 +2340,12 @@ "LIST_OVERHEAD_QUOTA_EXCEED", "QUOTA_INFO_UNAVAILABLE", "RESOURCE_USES_GLOBAL_DNS", - "RESERVED_ENTRY_134", + "RATE_LIMIT_EXCEEDED", "RESERVED_ENTRY_135", "RESERVED_ENTRY_136", "RESERVED_ENTRY_139", - "RESERVED_ENTRY_141" + "RESERVED_ENTRY_141", + "RESERVED_ENTRY_142" ], "enumDeprecated": [ false, @@ -2379,6 +2386,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -2416,6 +2424,7 @@ "Resource can't be retrieved due to list overhead quota exceed which captures the amount of resources filtered out by user-defined list filter.", "Quota information is not available to client requests (e.g: regions.list).", "Indicates that a VM is using global DNS. Can also be used to indicate that a resource has attributes that could result in the creation of a VM that uses global DNS.", + "Resource can't be retrieved due to api quota exceeded.", "Reserved entries for quickly adding new warnings without breaking dependent clients.", "", "", diff --git a/deploymentmanager/v2/deploymentmanager-gen.go b/deploymentmanager/v2/deploymentmanager-gen.go index a0d79e33053..9c523076bd5 100644 --- a/deploymentmanager/v2/deploymentmanager-gen.go +++ b/deploymentmanager/v2/deploymentmanager-gen.go @@ -1326,12 +1326,14 @@ type OperationWarnings struct { // "RESOURCE_USES_GLOBAL_DNS" - Indicates that a VM is using global DNS. Can // also be used to indicate that a resource has attributes that could result in // the creation of a VM that uses global DNS. - // "RESERVED_ENTRY_134" - Reserved entries for quickly adding new warnings + // "RATE_LIMIT_EXCEEDED" - Resource can't be retrieved due to api quota + // exceeded. + // "RESERVED_ENTRY_135" - Reserved entries for quickly adding new warnings // without breaking dependent clients. - // "RESERVED_ENTRY_135" // "RESERVED_ENTRY_136" // "RESERVED_ENTRY_139" // "RESERVED_ENTRY_141" + // "RESERVED_ENTRY_142" Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } @@ -1690,12 +1692,14 @@ type ResourceWarnings struct { // "RESOURCE_USES_GLOBAL_DNS" - Indicates that a VM is using global DNS. Can // also be used to indicate that a resource has attributes that could result in // the creation of a VM that uses global DNS. - // "RESERVED_ENTRY_134" - Reserved entries for quickly adding new warnings + // "RATE_LIMIT_EXCEEDED" - Resource can't be retrieved due to api quota + // exceeded. + // "RESERVED_ENTRY_135" - Reserved entries for quickly adding new warnings // without breaking dependent clients. - // "RESERVED_ENTRY_135" // "RESERVED_ENTRY_136" // "RESERVED_ENTRY_139" // "RESERVED_ENTRY_141" + // "RESERVED_ENTRY_142" Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } @@ -1986,12 +1990,14 @@ type ResourceUpdateWarnings struct { // "RESOURCE_USES_GLOBAL_DNS" - Indicates that a VM is using global DNS. Can // also be used to indicate that a resource has attributes that could result in // the creation of a VM that uses global DNS. - // "RESERVED_ENTRY_134" - Reserved entries for quickly adding new warnings + // "RATE_LIMIT_EXCEEDED" - Resource can't be retrieved due to api quota + // exceeded. + // "RESERVED_ENTRY_135" - Reserved entries for quickly adding new warnings // without breaking dependent clients. - // "RESERVED_ENTRY_135" // "RESERVED_ENTRY_136" // "RESERVED_ENTRY_139" // "RESERVED_ENTRY_141" + // "RESERVED_ENTRY_142" Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } diff --git a/deploymentmanager/v2beta/deploymentmanager-api.json b/deploymentmanager/v2beta/deploymentmanager-api.json index 9e9bd744c96..ececb674b71 100644 --- a/deploymentmanager/v2beta/deploymentmanager-api.json +++ b/deploymentmanager/v2beta/deploymentmanager-api.json @@ -1636,7 +1636,7 @@ } } }, - "revision": "20241111", + "revision": "20241117", "rootUrl": "https://deploymentmanager.googleapis.com/", "schemas": { "AsyncOptions": { @@ -2593,11 +2593,12 @@ "LIST_OVERHEAD_QUOTA_EXCEED", "QUOTA_INFO_UNAVAILABLE", "RESOURCE_USES_GLOBAL_DNS", - "RESERVED_ENTRY_134", + "RATE_LIMIT_EXCEEDED", "RESERVED_ENTRY_135", "RESERVED_ENTRY_136", "RESERVED_ENTRY_139", - "RESERVED_ENTRY_141" + "RESERVED_ENTRY_141", + "RESERVED_ENTRY_142" ], "enumDeprecated": [ false, @@ -2638,6 +2639,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -2675,6 +2677,7 @@ "Resource can't be retrieved due to list overhead quota exceed which captures the amount of resources filtered out by user-defined list filter.", "Quota information is not available to client requests (e.g: regions.list).", "Indicates that a VM is using global DNS. Can also be used to indicate that a resource has attributes that could result in the creation of a VM that uses global DNS.", + "Resource can't be retrieved due to api quota exceeded.", "Reserved entries for quickly adding new warnings without breaking dependent clients.", "", "", @@ -2955,11 +2958,12 @@ "LIST_OVERHEAD_QUOTA_EXCEED", "QUOTA_INFO_UNAVAILABLE", "RESOURCE_USES_GLOBAL_DNS", - "RESERVED_ENTRY_134", + "RATE_LIMIT_EXCEEDED", "RESERVED_ENTRY_135", "RESERVED_ENTRY_136", "RESERVED_ENTRY_139", - "RESERVED_ENTRY_141" + "RESERVED_ENTRY_141", + "RESERVED_ENTRY_142" ], "enumDeprecated": [ false, @@ -3000,6 +3004,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -3037,6 +3042,7 @@ "Resource can't be retrieved due to list overhead quota exceed which captures the amount of resources filtered out by user-defined list filter.", "Quota information is not available to client requests (e.g: regions.list).", "Indicates that a VM is using global DNS. Can also be used to indicate that a resource has attributes that could result in the creation of a VM that uses global DNS.", + "Resource can't be retrieved due to api quota exceeded.", "Reserved entries for quickly adding new warnings without breaking dependent clients.", "", "", @@ -3241,11 +3247,12 @@ "LIST_OVERHEAD_QUOTA_EXCEED", "QUOTA_INFO_UNAVAILABLE", "RESOURCE_USES_GLOBAL_DNS", - "RESERVED_ENTRY_134", + "RATE_LIMIT_EXCEEDED", "RESERVED_ENTRY_135", "RESERVED_ENTRY_136", "RESERVED_ENTRY_139", - "RESERVED_ENTRY_141" + "RESERVED_ENTRY_141", + "RESERVED_ENTRY_142" ], "enumDeprecated": [ false, @@ -3286,6 +3293,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -3323,6 +3331,7 @@ "Resource can't be retrieved due to list overhead quota exceed which captures the amount of resources filtered out by user-defined list filter.", "Quota information is not available to client requests (e.g: regions.list).", "Indicates that a VM is using global DNS. Can also be used to indicate that a resource has attributes that could result in the creation of a VM that uses global DNS.", + "Resource can't be retrieved due to api quota exceeded.", "Reserved entries for quickly adding new warnings without breaking dependent clients.", "", "", diff --git a/deploymentmanager/v2beta/deploymentmanager-gen.go b/deploymentmanager/v2beta/deploymentmanager-gen.go index 5242f5d4b0a..03f6608d99d 100644 --- a/deploymentmanager/v2beta/deploymentmanager-gen.go +++ b/deploymentmanager/v2beta/deploymentmanager-gen.go @@ -1654,12 +1654,14 @@ type OperationWarnings struct { // "RESOURCE_USES_GLOBAL_DNS" - Indicates that a VM is using global DNS. Can // also be used to indicate that a resource has attributes that could result in // the creation of a VM that uses global DNS. - // "RESERVED_ENTRY_134" - Reserved entries for quickly adding new warnings + // "RATE_LIMIT_EXCEEDED" - Resource can't be retrieved due to api quota + // exceeded. + // "RESERVED_ENTRY_135" - Reserved entries for quickly adding new warnings // without breaking dependent clients. - // "RESERVED_ENTRY_135" // "RESERVED_ENTRY_136" // "RESERVED_ENTRY_139" // "RESERVED_ENTRY_141" + // "RESERVED_ENTRY_142" Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } @@ -2086,12 +2088,14 @@ type ResourceWarnings struct { // "RESOURCE_USES_GLOBAL_DNS" - Indicates that a VM is using global DNS. Can // also be used to indicate that a resource has attributes that could result in // the creation of a VM that uses global DNS. - // "RESERVED_ENTRY_134" - Reserved entries for quickly adding new warnings + // "RATE_LIMIT_EXCEEDED" - Resource can't be retrieved due to api quota + // exceeded. + // "RESERVED_ENTRY_135" - Reserved entries for quickly adding new warnings // without breaking dependent clients. - // "RESERVED_ENTRY_135" // "RESERVED_ENTRY_136" // "RESERVED_ENTRY_139" // "RESERVED_ENTRY_141" + // "RESERVED_ENTRY_142" Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } @@ -2382,12 +2386,14 @@ type ResourceUpdateWarnings struct { // "RESOURCE_USES_GLOBAL_DNS" - Indicates that a VM is using global DNS. Can // also be used to indicate that a resource has attributes that could result in // the creation of a VM that uses global DNS. - // "RESERVED_ENTRY_134" - Reserved entries for quickly adding new warnings + // "RATE_LIMIT_EXCEEDED" - Resource can't be retrieved due to api quota + // exceeded. + // "RESERVED_ENTRY_135" - Reserved entries for quickly adding new warnings // without breaking dependent clients. - // "RESERVED_ENTRY_135" // "RESERVED_ENTRY_136" // "RESERVED_ENTRY_139" // "RESERVED_ENTRY_141" + // "RESERVED_ENTRY_142" Code string `json:"code,omitempty"` // Data: [Output Only] Metadata about this warning in key: value format. For // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } diff --git a/dialogflow/v3beta1/dialogflow-api.json b/dialogflow/v3beta1/dialogflow-api.json index 011d3c7a792..072311dbe38 100644 --- a/dialogflow/v3beta1/dialogflow-api.json +++ b/dialogflow/v3beta1/dialogflow-api.json @@ -5185,7 +5185,7 @@ } } }, - "revision": "20241025", + "revision": "20241112", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -10014,7 +10014,7 @@ "type": "object" }, "GoogleCloudDialogflowCxV3beta1FlowInvocation": { - "description": "Stores metadata of the invocation of a CX flow. Next Id: 7", + "description": "Stores metadata of the invocation of a CX flow.", "id": "GoogleCloudDialogflowCxV3beta1FlowInvocation", "properties": { "flow": { @@ -12077,7 +12077,7 @@ "type": "object" }, "GoogleCloudDialogflowCxV3beta1PlaybookInvocation": { - "description": "Stores metadata of the invocation of a child playbook. Next Id: 5", + "description": "Stores metadata of the invocation of a child playbook.", "id": "GoogleCloudDialogflowCxV3beta1PlaybookInvocation", "properties": { "playbook": { diff --git a/dialogflow/v3beta1/dialogflow-gen.go b/dialogflow/v3beta1/dialogflow-gen.go index 8724d99c2b9..e233c616be2 100644 --- a/dialogflow/v3beta1/dialogflow-gen.go +++ b/dialogflow/v3beta1/dialogflow-gen.go @@ -7224,7 +7224,7 @@ func (s GoogleCloudDialogflowCxV3beta1FlowImportStrategy) MarshalJSON() ([]byte, } // GoogleCloudDialogflowCxV3beta1FlowInvocation: Stores metadata of the -// invocation of a CX flow. Next Id: 7 +// invocation of a CX flow. type GoogleCloudDialogflowCxV3beta1FlowInvocation struct { // Flow: Required. The unique identifier of the flow. Format: // `projects//locations//agents//flows/`. @@ -10281,7 +10281,7 @@ func (s GoogleCloudDialogflowCxV3beta1PlaybookInstruction) MarshalJSON() ([]byte } // GoogleCloudDialogflowCxV3beta1PlaybookInvocation: Stores metadata of the -// invocation of a child playbook. Next Id: 5 +// invocation of a child playbook. type GoogleCloudDialogflowCxV3beta1PlaybookInvocation struct { // Playbook: Required. The unique identifier of the playbook. Format: // `projects//locations//agents//playbooks/`. diff --git a/digitalassetlinks/v1/digitalassetlinks-api.json b/digitalassetlinks/v1/digitalassetlinks-api.json index 8fff69369d5..e85ffb0b852 100644 --- a/digitalassetlinks/v1/digitalassetlinks-api.json +++ b/digitalassetlinks/v1/digitalassetlinks-api.json @@ -184,7 +184,7 @@ } } }, - "revision": "20241109", + "revision": "20241112", "rootUrl": "https://digitalassetlinks.googleapis.com/", "schemas": { "AndroidAppAsset": { @@ -253,7 +253,7 @@ "ERROR_CODE_FETCH_BUDGET_EXHAUSTED" ], "enumDescriptions": [ - "", + "Default value, otherwise unused.", "Unable to parse query.", "Unable to fetch the asset links data.", "Invalid HTTPS certificate .", @@ -306,7 +306,7 @@ "ERROR_CODE_FETCH_BUDGET_EXHAUSTED" ], "enumDescriptions": [ - "", + "Default value, otherwise unused.", "Unable to parse query.", "Unable to fetch the asset links data.", "Invalid HTTPS certificate .", diff --git a/digitalassetlinks/v1/digitalassetlinks-gen.go b/digitalassetlinks/v1/digitalassetlinks-gen.go index f38aedd266e..c3db3fb0883 100644 --- a/digitalassetlinks/v1/digitalassetlinks-gen.go +++ b/digitalassetlinks/v1/digitalassetlinks-gen.go @@ -274,7 +274,7 @@ type CheckResponse struct { // ErrorCode: Error codes that describe the result of the Check operation. // // Possible values: - // "ERROR_CODE_UNSPECIFIED" + // "ERROR_CODE_UNSPECIFIED" - Default value, otherwise unused. // "ERROR_CODE_INVALID_QUERY" - Unable to parse query. // "ERROR_CODE_FETCH_ERROR" - Unable to fetch the asset links data. // "ERROR_CODE_FAILED_SSL_VALIDATION" - Invalid HTTPS certificate . @@ -328,7 +328,7 @@ type ListResponse struct { // ErrorCode: Error codes that describe the result of the List operation. // // Possible values: - // "ERROR_CODE_UNSPECIFIED" + // "ERROR_CODE_UNSPECIFIED" - Default value, otherwise unused. // "ERROR_CODE_INVALID_QUERY" - Unable to parse query. // "ERROR_CODE_FETCH_ERROR" - Unable to fetch the asset links data. // "ERROR_CODE_FAILED_SSL_VALIDATION" - Invalid HTTPS certificate . diff --git a/file/v1/file-api.json b/file/v1/file-api.json index f5ce834cbd8..169122f31a1 100644 --- a/file/v1/file-api.json +++ b/file/v1/file-api.json @@ -902,7 +902,7 @@ } } }, - "revision": "20241015", + "revision": "20241104", "rootUrl": "https://file.googleapis.com/", "schemas": { "Backup": { @@ -1151,7 +1151,7 @@ }, "maxReadIops": { "deprecated": true, - "description": "Optional. Deprecated: `max_iops` should be used instead of this parameter. Maximum raw read IOPS.", + "description": "Optional. Deprecated: `max_iops` should be used instead of this parameter. Maximum read IOPS.", "format": "int64", "type": "string" } diff --git a/file/v1/file-gen.go b/file/v1/file-gen.go index bccf38a61d3..486c38d4e00 100644 --- a/file/v1/file-gen.go +++ b/file/v1/file-gen.go @@ -479,7 +479,7 @@ type FixedIOPS struct { // MaxIops: Required. Maximum IOPS. MaxIops int64 `json:"maxIops,omitempty,string"` // MaxReadIops: Optional. Deprecated: `max_iops` should be used instead of this - // parameter. Maximum raw read IOPS. + // parameter. Maximum read IOPS. MaxReadIops int64 `json:"maxReadIops,omitempty,string"` // ForceSendFields is a list of field names (e.g. "MaxIops") to unconditionally // include in API requests. By default, fields with empty or default values are diff --git a/file/v1beta1/file-api.json b/file/v1beta1/file-api.json index fa3bba6f444..2fb2242df39 100644 --- a/file/v1beta1/file-api.json +++ b/file/v1beta1/file-api.json @@ -1069,7 +1069,7 @@ } } }, - "revision": "20241015", + "revision": "20241104", "rootUrl": "https://file.googleapis.com/", "schemas": { "Backup": { @@ -1323,13 +1323,13 @@ "id": "FixedIOPS", "properties": { "maxIops": { - "description": "Required. Maximum raw IOPS.", + "description": "Required. Maximum IOPS.", "format": "int64", "type": "string" }, "maxReadIops": { "deprecated": true, - "description": "Optional. Deprecated: `max_iops` should be used instead of this parameter. Maximum raw read IOPS.", + "description": "Optional. Deprecated: `max_iops` should be used instead of this parameter. Maximum read IOPS.", "format": "int64", "type": "string" } diff --git a/file/v1beta1/file-gen.go b/file/v1beta1/file-gen.go index 0a1969c08fc..1b775ad17e0 100644 --- a/file/v1beta1/file-gen.go +++ b/file/v1beta1/file-gen.go @@ -511,10 +511,10 @@ func (s FileShareConfig) MarshalJSON() ([]byte, error) { // FixedIOPS: Fixed IOPS (input/output operations per second) parameters. type FixedIOPS struct { - // MaxIops: Required. Maximum raw IOPS. + // MaxIops: Required. Maximum IOPS. MaxIops int64 `json:"maxIops,omitempty,string"` // MaxReadIops: Optional. Deprecated: `max_iops` should be used instead of this - // parameter. Maximum raw read IOPS. + // parameter. Maximum read IOPS. MaxReadIops int64 `json:"maxReadIops,omitempty,string"` // ForceSendFields is a list of field names (e.g. "MaxIops") to unconditionally // include in API requests. By default, fields with empty or default values are diff --git a/firebaseappdistribution/v1/firebaseappdistribution-api.json b/firebaseappdistribution/v1/firebaseappdistribution-api.json index d3dd2406270..cb50041ebcc 100644 --- a/firebaseappdistribution/v1/firebaseappdistribution-api.json +++ b/firebaseappdistribution/v1/firebaseappdistribution-api.json @@ -438,7 +438,7 @@ "operations": { "methods": { "cancel": { - "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.", "flatPath": "v1/projects/{projectsId}/apps/{appsId}/releases/{releasesId}/operations/{operationsId}:cancel", "httpMethod": "POST", "id": "firebaseappdistribution.projects.apps.releases.operations.cancel", @@ -941,7 +941,7 @@ } } }, - "revision": "20240612", + "revision": "20241115", "rootUrl": "https://firebaseappdistribution.googleapis.com/", "schemas": { "GdataBlobstore2Info": { diff --git a/firebaseappdistribution/v1/firebaseappdistribution-gen.go b/firebaseappdistribution/v1/firebaseappdistribution-gen.go index 4b566c38d84..8bcc834d343 100644 --- a/firebaseappdistribution/v1/firebaseappdistribution-gen.go +++ b/firebaseappdistribution/v1/firebaseappdistribution-gen.go @@ -2797,7 +2797,7 @@ type ProjectsAppsReleasesOperationsCancelCall struct { // other methods to check whether the cancellation succeeded or whether the // operation completed despite cancellation. On successful cancellation, the // operation is not deleted; instead, it becomes an operation with an -// Operation.error value with a google.rpc.Status.code of 1, corresponding to +// Operation.error value with a google.rpc.Status.code of `1`, corresponding to // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. diff --git a/firebaseappdistribution/v1alpha/firebaseappdistribution-api.json b/firebaseappdistribution/v1alpha/firebaseappdistribution-api.json index ea0adf29e9f..260f7d43120 100644 --- a/firebaseappdistribution/v1alpha/firebaseappdistribution-api.json +++ b/firebaseappdistribution/v1alpha/firebaseappdistribution-api.json @@ -585,6 +585,157 @@ } } } + }, + "testCases": { + "methods": { + "create": { + "description": "Create a new test case.", + "flatPath": "v1alpha/projects/{projectsId}/apps/{appsId}/testCases", + "httpMethod": "POST", + "id": "firebaseappdistribution.projects.apps.testCases.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent resource where this test case will be created. Format: `projects/{project_number}/apps/{app_id}`", + "location": "path", + "pattern": "^projects/[^/]+/apps/[^/]+$", + "required": true, + "type": "string" + }, + "testCaseId": { + "description": "Optional. The ID to use for the test case, which will become the final component of the test case's resource name. This value should be 4-63 characters, and valid characters are /a-z-/.", + "location": "query", + "type": "string" + } + }, + "path": "v1alpha/{+parent}/testCases", + "request": { + "$ref": "GoogleFirebaseAppdistroV1alphaTestCase" + }, + "response": { + "$ref": "GoogleFirebaseAppdistroV1alphaTestCase" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Delete a test case.", + "flatPath": "v1alpha/projects/{projectsId}/apps/{appsId}/testCases/{testCasesId}", + "httpMethod": "DELETE", + "id": "firebaseappdistribution.projects.apps.testCases.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the test case resource to delete. Format: `projects/{project_number}/apps/{app_id}/testCases/{test_case_id}`", + "location": "path", + "pattern": "^projects/[^/]+/apps/[^/]+/testCases/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Get a test case.", + "flatPath": "v1alpha/projects/{projectsId}/apps/{appsId}/testCases/{testCasesId}", + "httpMethod": "GET", + "id": "firebaseappdistribution.projects.apps.testCases.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the test case resource to retrieve. Format: `projects/{project_number}/apps/{app_id}/testCases/{test_case_id}`", + "location": "path", + "pattern": "^projects/[^/]+/apps/[^/]+/testCases/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "GoogleFirebaseAppdistroV1alphaTestCase" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "List test cases.", + "flatPath": "v1alpha/projects/{projectsId}/apps/{appsId}/testCases", + "httpMethod": "GET", + "id": "firebaseappdistribution.projects.apps.testCases.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of test cases to return. The service may return fewer than this value. If unspecified, at most 50 test cases will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous `ListTestCases` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListTestCases` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource from which to list test cases. Format: `projects/{project_number}/apps/{app_id}`", + "location": "path", + "pattern": "^projects/[^/]+/apps/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/testCases", + "response": { + "$ref": "GoogleFirebaseAppdistroV1alphaListTestCasesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Update a test case.", + "flatPath": "v1alpha/projects/{projectsId}/apps/{appsId}/testCases/{testCasesId}", + "httpMethod": "PATCH", + "id": "firebaseappdistribution.projects.apps.testCases.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Identifier. The name of the test case resource. Format: `projects/{project_number}/apps/{app_id}/testCases/{test_case_id}`", + "location": "path", + "pattern": "^projects/[^/]+/apps/[^/]+/testCases/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "request": { + "$ref": "GoogleFirebaseAppdistroV1alphaTestCase" + }, + "response": { + "$ref": "GoogleFirebaseAppdistroV1alphaTestCase" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } } } }, @@ -625,7 +776,7 @@ } } }, - "revision": "20241101", + "revision": "20241115", "rootUrl": "https://firebaseappdistribution.googleapis.com/", "schemas": { "AndroidxCrawlerOutputPoint": { @@ -1365,6 +1516,24 @@ }, "type": "object" }, + "GoogleFirebaseAppdistroV1alphaListTestCasesResponse": { + "description": "The response message for `ListTestCases`.", + "id": "GoogleFirebaseAppdistroV1alphaListTestCasesResponse", + "properties": { + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + }, + "testCases": { + "description": "The test cases from the specified app.", + "items": { + "$ref": "GoogleFirebaseAppdistroV1alphaTestCase" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleFirebaseAppdistroV1alphaLoginCredential": { "description": "Login credential for automated tests", "id": "GoogleFirebaseAppdistroV1alphaLoginCredential", @@ -1626,6 +1795,25 @@ }, "type": "object" }, + "GoogleFirebaseAppdistroV1alphaTestCase": { + "description": "AI test cases", + "id": "GoogleFirebaseAppdistroV1alphaTestCase", + "properties": { + "aiInstructions": { + "$ref": "GoogleFirebaseAppdistroV1alphaAiInstructions", + "description": "Optional. Instructions for AI driven test." + }, + "displayName": { + "description": "Optional. Display name of the test case.", + "type": "string" + }, + "name": { + "description": "Identifier. The name of the test case resource. Format: `projects/{project_number}/apps/{app_id}/testCases/{test_case_id}`", + "type": "string" + } + }, + "type": "object" + }, "GoogleFirebaseAppdistroV1alphaTestConfig": { "description": "Configuration for automated tests", "id": "GoogleFirebaseAppdistroV1alphaTestConfig", @@ -1693,6 +1881,12 @@ } }, "type": "object" + }, + "GoogleProtobufEmpty": { + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", + "id": "GoogleProtobufEmpty", + "properties": {}, + "type": "object" } }, "servicePath": "", diff --git a/firebaseappdistribution/v1alpha/firebaseappdistribution-gen.go b/firebaseappdistribution/v1alpha/firebaseappdistribution-gen.go index 8b72d9ace44..38fafb7f41a 100644 --- a/firebaseappdistribution/v1alpha/firebaseappdistribution-gen.go +++ b/firebaseappdistribution/v1alpha/firebaseappdistribution-gen.go @@ -244,6 +244,7 @@ type ProjectsService struct { func NewProjectsAppsService(s *Service) *ProjectsAppsService { rs := &ProjectsAppsService{s: s} rs.Releases = NewProjectsAppsReleasesService(s) + rs.TestCases = NewProjectsAppsTestCasesService(s) return rs } @@ -251,6 +252,8 @@ type ProjectsAppsService struct { s *Service Releases *ProjectsAppsReleasesService + + TestCases *ProjectsAppsTestCasesService } func NewProjectsAppsReleasesService(s *Service) *ProjectsAppsReleasesService { @@ -274,6 +277,15 @@ type ProjectsAppsReleasesTestsService struct { s *Service } +func NewProjectsAppsTestCasesService(s *Service) *ProjectsAppsTestCasesService { + rs := &ProjectsAppsTestCasesService{s: s} + return rs +} + +type ProjectsAppsTestCasesService struct { + s *Service +} + func NewProjectsTestersService(s *Service) *ProjectsTestersService { rs := &ProjectsTestersService{s: s} return rs @@ -1117,6 +1129,35 @@ func (s GoogleFirebaseAppdistroV1alphaListReleaseTestsResponse) MarshalJSON() ([ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleFirebaseAppdistroV1alphaListTestCasesResponse: The response message +// for `ListTestCases`. +type GoogleFirebaseAppdistroV1alphaListTestCasesResponse struct { + // NextPageToken: A token, which can be sent as `page_token` to retrieve the + // next page. If this field is omitted, there are no subsequent pages. + NextPageToken string `json:"nextPageToken,omitempty"` + // TestCases: The test cases from the specified app. + TestCases []*GoogleFirebaseAppdistroV1alphaTestCase `json:"testCases,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleFirebaseAppdistroV1alphaListTestCasesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleFirebaseAppdistroV1alphaListTestCasesResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleFirebaseAppdistroV1alphaLoginCredential: Login credential for // automated tests type GoogleFirebaseAppdistroV1alphaLoginCredential struct { @@ -1406,6 +1447,36 @@ func (s GoogleFirebaseAppdistroV1alphaTerminalAction) MarshalJSON() ([]byte, err return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleFirebaseAppdistroV1alphaTestCase: AI test cases +type GoogleFirebaseAppdistroV1alphaTestCase struct { + // AiInstructions: Optional. Instructions for AI driven test. + AiInstructions *GoogleFirebaseAppdistroV1alphaAiInstructions `json:"aiInstructions,omitempty"` + // DisplayName: Optional. Display name of the test case. + DisplayName string `json:"displayName,omitempty"` + // Name: Identifier. The name of the test case resource. Format: + // `projects/{project_number}/apps/{app_id}/testCases/{test_case_id}` + Name string `json:"name,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "AiInstructions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AiInstructions") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleFirebaseAppdistroV1alphaTestCase) MarshalJSON() ([]byte, error) { + type NoMethod GoogleFirebaseAppdistroV1alphaTestCase + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleFirebaseAppdistroV1alphaTestConfig: Configuration for automated tests type GoogleFirebaseAppdistroV1alphaTestConfig struct { // DisplayName: Optional. Display name of the AI driven test. Required if the @@ -1495,6 +1566,16 @@ func (s GoogleFirebaseAppdistroV1alphaTesterUdid) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleProtobufEmpty: A generic empty message that you can re-use to avoid +// defining duplicated empty messages in your APIs. A typical example is to use +// it as the request or the response type of an API method. For instance: +// service Foo { rpc Bar(google.protobuf.Empty) returns +// (google.protobuf.Empty); } +type GoogleProtobufEmpty struct { + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` +} + type AppsGetCall struct { s *Service mobilesdkAppId string @@ -3110,6 +3191,574 @@ func (c *ProjectsAppsReleasesTestsListCall) Pages(ctx context.Context, f func(*G } } +type ProjectsAppsTestCasesCreateCall struct { + s *Service + parent string + googlefirebaseappdistrov1alphatestcase *GoogleFirebaseAppdistroV1alphaTestCase + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Create a new test case. +// +// - parent: The parent resource where this test case will be created. Format: +// `projects/{project_number}/apps/{app_id}`. +func (r *ProjectsAppsTestCasesService) Create(parent string, googlefirebaseappdistrov1alphatestcase *GoogleFirebaseAppdistroV1alphaTestCase) *ProjectsAppsTestCasesCreateCall { + c := &ProjectsAppsTestCasesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlefirebaseappdistrov1alphatestcase = googlefirebaseappdistrov1alphatestcase + return c +} + +// TestCaseId sets the optional parameter "testCaseId": The ID to use for the +// test case, which will become the final component of the test case's resource +// name. This value should be 4-63 characters, and valid characters are /a-z-/. +func (c *ProjectsAppsTestCasesCreateCall) TestCaseId(testCaseId string) *ProjectsAppsTestCasesCreateCall { + c.urlParams_.Set("testCaseId", testCaseId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsAppsTestCasesCreateCall) Fields(s ...googleapi.Field) *ProjectsAppsTestCasesCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsAppsTestCasesCreateCall) Context(ctx context.Context) *ProjectsAppsTestCasesCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsAppsTestCasesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsAppsTestCasesCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlefirebaseappdistrov1alphatestcase) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/testCases") + 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 "firebaseappdistribution.projects.apps.testCases.create" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleFirebaseAppdistroV1alphaTestCase.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 *ProjectsAppsTestCasesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1alphaTestCase, 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 := &GoogleFirebaseAppdistroV1alphaTestCase{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsAppsTestCasesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Delete a test case. +// +// - name: The name of the test case resource to delete. Format: +// `projects/{project_number}/apps/{app_id}/testCases/{test_case_id}`. +func (r *ProjectsAppsTestCasesService) Delete(name string) *ProjectsAppsTestCasesDeleteCall { + c := &ProjectsAppsTestCasesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsAppsTestCasesDeleteCall) Fields(s ...googleapi.Field) *ProjectsAppsTestCasesDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsAppsTestCasesDeleteCall) Context(ctx context.Context) *ProjectsAppsTestCasesDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsAppsTestCasesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsAppsTestCasesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebaseappdistribution.projects.apps.testCases.delete" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsAppsTestCasesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsAppsTestCasesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Get a test case. +// +// - name: The name of the test case resource to retrieve. Format: +// `projects/{project_number}/apps/{app_id}/testCases/{test_case_id}`. +func (r *ProjectsAppsTestCasesService) Get(name string) *ProjectsAppsTestCasesGetCall { + c := &ProjectsAppsTestCasesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsAppsTestCasesGetCall) Fields(s ...googleapi.Field) *ProjectsAppsTestCasesGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsAppsTestCasesGetCall) IfNoneMatch(entityTag string) *ProjectsAppsTestCasesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsAppsTestCasesGetCall) Context(ctx context.Context) *ProjectsAppsTestCasesGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsAppsTestCasesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsAppsTestCasesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebaseappdistribution.projects.apps.testCases.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleFirebaseAppdistroV1alphaTestCase.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 *ProjectsAppsTestCasesGetCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1alphaTestCase, 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 := &GoogleFirebaseAppdistroV1alphaTestCase{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsAppsTestCasesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: List test cases. +// +// - parent: The parent resource from which to list test cases. Format: +// `projects/{project_number}/apps/{app_id}`. +func (r *ProjectsAppsTestCasesService) List(parent string) *ProjectsAppsTestCasesListCall { + c := &ProjectsAppsTestCasesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of test +// cases to return. The service may return fewer than this value. If +// unspecified, at most 50 test cases will be returned. The maximum value is +// 1000; values above 1000 will be coerced to 1000. +func (c *ProjectsAppsTestCasesListCall) PageSize(pageSize int64) *ProjectsAppsTestCasesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, received +// from a previous `ListTestCases` call. Provide this to retrieve the +// subsequent page. When paginating, all other parameters provided to +// `ListTestCases` must match the call that provided the page token. +func (c *ProjectsAppsTestCasesListCall) PageToken(pageToken string) *ProjectsAppsTestCasesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsAppsTestCasesListCall) Fields(s ...googleapi.Field) *ProjectsAppsTestCasesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsAppsTestCasesListCall) IfNoneMatch(entityTag string) *ProjectsAppsTestCasesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsAppsTestCasesListCall) Context(ctx context.Context) *ProjectsAppsTestCasesListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsAppsTestCasesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsAppsTestCasesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/testCases") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebaseappdistribution.projects.apps.testCases.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleFirebaseAppdistroV1alphaListTestCasesResponse.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 *ProjectsAppsTestCasesListCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1alphaListTestCasesResponse, 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 := &GoogleFirebaseAppdistroV1alphaListTestCasesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsAppsTestCasesListCall) Pages(ctx context.Context, f func(*GoogleFirebaseAppdistroV1alphaListTestCasesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type ProjectsAppsTestCasesPatchCall struct { + s *Service + name string + googlefirebaseappdistrov1alphatestcase *GoogleFirebaseAppdistroV1alphaTestCase + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Update a test case. +// +// - name: Identifier. The name of the test case resource. Format: +// `projects/{project_number}/apps/{app_id}/testCases/{test_case_id}`. +func (r *ProjectsAppsTestCasesService) Patch(name string, googlefirebaseappdistrov1alphatestcase *GoogleFirebaseAppdistroV1alphaTestCase) *ProjectsAppsTestCasesPatchCall { + c := &ProjectsAppsTestCasesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlefirebaseappdistrov1alphatestcase = googlefirebaseappdistrov1alphatestcase + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsAppsTestCasesPatchCall) Fields(s ...googleapi.Field) *ProjectsAppsTestCasesPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsAppsTestCasesPatchCall) Context(ctx context.Context) *ProjectsAppsTestCasesPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsAppsTestCasesPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsAppsTestCasesPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlefirebaseappdistrov1alphatestcase) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("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 "firebaseappdistribution.projects.apps.testCases.patch" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleFirebaseAppdistroV1alphaTestCase.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 *ProjectsAppsTestCasesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1alphaTestCase, 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 := &GoogleFirebaseAppdistroV1alphaTestCase{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + type ProjectsTestersGetUdidsCall struct { s *Service project string diff --git a/gkebackup/v1/gkebackup-api.json b/gkebackup/v1/gkebackup-api.json index 3d286114c65..e7168eec215 100644 --- a/gkebackup/v1/gkebackup-api.json +++ b/gkebackup/v1/gkebackup-api.json @@ -1713,7 +1713,7 @@ } } }, - "revision": "20241002", + "revision": "20241106", "rootUrl": "https://gkebackup.googleapis.com/", "schemas": { "AuditConfig": { @@ -2141,7 +2141,7 @@ "type": "object" }, "ClusterResourceRestoreScope": { - "description": "Defines the scope of cluster-scoped resources to restore. Some group kinds are not reasonable choices for a restore, and will cause an error if selected here. Any scope selection that would restore \"all valid\" resources automatically excludes these group kinds. - gkebackup.gke.io/BackupJob - gkebackup.gke.io/RestoreJob - metrics.k8s.io/NodeMetrics - migration.k8s.io/StorageState - migration.k8s.io/StorageVersionMigration - Node - snapshot.storage.k8s.io/VolumeSnapshotContent - storage.k8s.io/CSINode Some group kinds are driven by restore configuration elsewhere, and will cause an error if selected here. - Namespace - PersistentVolume", + "description": "Defines the scope of cluster-scoped resources to restore. Some group kinds are not reasonable choices for a restore, and will cause an error if selected here. Any scope selection that would restore \"all valid\" resources automatically excludes these group kinds. - Node - ComponentStatus - gkebackup.gke.io/BackupJob - gkebackup.gke.io/RestoreJob - metrics.k8s.io/NodeMetrics - migration.k8s.io/StorageState - migration.k8s.io/StorageVersionMigration - snapshot.storage.k8s.io/VolumeSnapshotContent - storage.k8s.io/CSINode - storage.k8s.io/VolumeAttachment Some group kinds are driven by restore configuration elsewhere, and will cause an error if selected here. - Namespace - PersistentVolume", "id": "ClusterResourceRestoreScope", "properties": { "allGroupKinds": { diff --git a/gkebackup/v1/gkebackup-gen.go b/gkebackup/v1/gkebackup-gen.go index 2a0dfaec994..b20944cbf6e 100644 --- a/gkebackup/v1/gkebackup-gen.go +++ b/gkebackup/v1/gkebackup-gen.go @@ -750,13 +750,14 @@ func (s ClusterMetadata) MarshalJSON() ([]byte, error) { // ClusterResourceRestoreScope: Defines the scope of cluster-scoped resources // to restore. Some group kinds are not reasonable choices for a restore, and // will cause an error if selected here. Any scope selection that would restore -// "all valid" resources automatically excludes these group kinds. - -// gkebackup.gke.io/BackupJob - gkebackup.gke.io/RestoreJob - +// "all valid" resources automatically excludes these group kinds. - Node - +// ComponentStatus - gkebackup.gke.io/BackupJob - gkebackup.gke.io/RestoreJob - // metrics.k8s.io/NodeMetrics - migration.k8s.io/StorageState - -// migration.k8s.io/StorageVersionMigration - Node - -// snapshot.storage.k8s.io/VolumeSnapshotContent - storage.k8s.io/CSINode Some -// group kinds are driven by restore configuration elsewhere, and will cause an -// error if selected here. - Namespace - PersistentVolume +// migration.k8s.io/StorageVersionMigration - +// snapshot.storage.k8s.io/VolumeSnapshotContent - storage.k8s.io/CSINode - +// storage.k8s.io/VolumeAttachment Some group kinds are driven by restore +// configuration elsewhere, and will cause an error if selected here. - +// Namespace - PersistentVolume type ClusterResourceRestoreScope struct { // AllGroupKinds: Optional. If True, all valid cluster-scoped resources will be // restored. Mutually exclusive to any other field in the message. diff --git a/gkehub/v1/gkehub-api.json b/gkehub/v1/gkehub-api.json index 3114b127874..3926ebdb16a 100644 --- a/gkehub/v1/gkehub-api.json +++ b/gkehub/v1/gkehub-api.json @@ -2111,7 +2111,7 @@ } } }, - "revision": "20241025", + "revision": "20241108", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AppDevExperienceFeatureSpec": { @@ -2208,6 +2208,16 @@ "format": "byte", "type": "string" }, + "scopeTenancyIdentityProvider": { + "description": "Optional. Output only. The identity provider for the scope-tenancy workload identity pool.", + "readOnly": true, + "type": "string" + }, + "scopeTenancyWorkloadIdentityPool": { + "description": "Optional. Output only. The name of the scope-tenancy workload identity pool. This pool is set in the fleet-level feature.", + "readOnly": true, + "type": "string" + }, "workloadIdentityPool": { "description": "Output only. The name of the workload identity pool in which `issuer` will be recognized. There is a single Workload Identity Pool per Hub that is shared between all Memberships that belong to that Hub. For a Hub hosted in {PROJECT_ID}, the workload pool format is `{PROJECT_ID}.hub.id.goog`, although this is subject to change in newer versions of this API.", "readOnly": true, diff --git a/gkehub/v1/gkehub-gen.go b/gkehub/v1/gkehub-gen.go index a5c976eabce..ccce49eccb3 100644 --- a/gkehub/v1/gkehub-gen.go +++ b/gkehub/v1/gkehub-gen.go @@ -470,6 +470,13 @@ type Authority struct { // performed on `issuer`, and instead OIDC tokens will be validated using this // field. OidcJwks string `json:"oidcJwks,omitempty"` + // ScopeTenancyIdentityProvider: Optional. Output only. The identity provider + // for the scope-tenancy workload identity pool. + ScopeTenancyIdentityProvider string `json:"scopeTenancyIdentityProvider,omitempty"` + // ScopeTenancyWorkloadIdentityPool: Optional. Output only. The name of the + // scope-tenancy workload identity pool. This pool is set in the fleet-level + // feature. + ScopeTenancyWorkloadIdentityPool string `json:"scopeTenancyWorkloadIdentityPool,omitempty"` // WorkloadIdentityPool: Output only. The name of the workload identity pool in // which `issuer` will be recognized. There is a single Workload Identity Pool // per Hub that is shared between all Memberships that belong to that Hub. For diff --git a/gkehub/v1alpha/gkehub-api.json b/gkehub/v1alpha/gkehub-api.json index 39aac57ab2d..7a0824e2d85 100644 --- a/gkehub/v1alpha/gkehub-api.json +++ b/gkehub/v1alpha/gkehub-api.json @@ -2255,7 +2255,7 @@ } } }, - "revision": "20241025", + "revision": "20241108", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AnthosObservabilityFeatureSpec": { @@ -2382,6 +2382,16 @@ "format": "byte", "type": "string" }, + "scopeTenancyIdentityProvider": { + "description": "Optional. Output only. The identity provider for the scope-tenancy workload identity pool.", + "readOnly": true, + "type": "string" + }, + "scopeTenancyWorkloadIdentityPool": { + "description": "Optional. Output only. The name of the scope-tenancy workload identity pool. This pool is set in the fleet-level feature.", + "readOnly": true, + "type": "string" + }, "workloadIdentityPool": { "description": "Output only. The name of the workload identity pool in which `issuer` will be recognized. There is a single Workload Identity Pool per Hub that is shared between all Memberships that belong to that Hub. For a Hub hosted in {PROJECT_ID}, the workload pool format is `{PROJECT_ID}.hub.id.goog`, although this is subject to change in newer versions of this API.", "readOnly": true, diff --git a/gkehub/v1alpha/gkehub-gen.go b/gkehub/v1alpha/gkehub-gen.go index 1b26fb5710e..b79686cbb0f 100644 --- a/gkehub/v1alpha/gkehub-gen.go +++ b/gkehub/v1alpha/gkehub-gen.go @@ -521,6 +521,13 @@ type Authority struct { // performed on `issuer`, and instead OIDC tokens will be validated using this // field. OidcJwks string `json:"oidcJwks,omitempty"` + // ScopeTenancyIdentityProvider: Optional. Output only. The identity provider + // for the scope-tenancy workload identity pool. + ScopeTenancyIdentityProvider string `json:"scopeTenancyIdentityProvider,omitempty"` + // ScopeTenancyWorkloadIdentityPool: Optional. Output only. The name of the + // scope-tenancy workload identity pool. This pool is set in the fleet-level + // feature. + ScopeTenancyWorkloadIdentityPool string `json:"scopeTenancyWorkloadIdentityPool,omitempty"` // WorkloadIdentityPool: Output only. The name of the workload identity pool in // which `issuer` will be recognized. There is a single Workload Identity Pool // per Hub that is shared between all Memberships that belong to that Hub. For diff --git a/gkehub/v1beta/gkehub-api.json b/gkehub/v1beta/gkehub-api.json index 54ac97bf10b..e250bf05a71 100644 --- a/gkehub/v1beta/gkehub-api.json +++ b/gkehub/v1beta/gkehub-api.json @@ -2111,7 +2111,7 @@ } } }, - "revision": "20241025", + "revision": "20241108", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AnthosObservabilityFeatureSpec": { @@ -2238,6 +2238,16 @@ "format": "byte", "type": "string" }, + "scopeTenancyIdentityProvider": { + "description": "Optional. Output only. The identity provider for the scope-tenancy workload identity pool.", + "readOnly": true, + "type": "string" + }, + "scopeTenancyWorkloadIdentityPool": { + "description": "Optional. Output only. The name of the scope-tenancy workload identity pool. This pool is set in the fleet-level feature.", + "readOnly": true, + "type": "string" + }, "workloadIdentityPool": { "description": "Output only. The name of the workload identity pool in which `issuer` will be recognized. There is a single Workload Identity Pool per Hub that is shared between all Memberships that belong to that Hub. For a Hub hosted in {PROJECT_ID}, the workload pool format is `{PROJECT_ID}.hub.id.goog`, although this is subject to change in newer versions of this API.", "readOnly": true, diff --git a/gkehub/v1beta/gkehub-gen.go b/gkehub/v1beta/gkehub-gen.go index 1d4f90d83b2..d026ecd7d22 100644 --- a/gkehub/v1beta/gkehub-gen.go +++ b/gkehub/v1beta/gkehub-gen.go @@ -521,6 +521,13 @@ type Authority struct { // performed on `issuer`, and instead OIDC tokens will be validated using this // field. OidcJwks string `json:"oidcJwks,omitempty"` + // ScopeTenancyIdentityProvider: Optional. Output only. The identity provider + // for the scope-tenancy workload identity pool. + ScopeTenancyIdentityProvider string `json:"scopeTenancyIdentityProvider,omitempty"` + // ScopeTenancyWorkloadIdentityPool: Optional. Output only. The name of the + // scope-tenancy workload identity pool. This pool is set in the fleet-level + // feature. + ScopeTenancyWorkloadIdentityPool string `json:"scopeTenancyWorkloadIdentityPool,omitempty"` // WorkloadIdentityPool: Output only. The name of the workload identity pool in // which `issuer` will be recognized. There is a single Workload Identity Pool // per Hub that is shared between all Memberships that belong to that Hub. For diff --git a/gkehub/v1beta1/gkehub-api.json b/gkehub/v1beta1/gkehub-api.json index d933fe145e1..01555b4b56e 100644 --- a/gkehub/v1beta1/gkehub-api.json +++ b/gkehub/v1beta1/gkehub-api.json @@ -712,7 +712,7 @@ } } }, - "revision": "20240118", + "revision": "20241108", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "ApplianceCluster": { @@ -792,6 +792,16 @@ "format": "byte", "type": "string" }, + "scopeTenancyIdentityProvider": { + "description": "Optional. Output only. The identity provider for the scope-tenancy workload identity pool.", + "readOnly": true, + "type": "string" + }, + "scopeTenancyWorkloadIdentityPool": { + "description": "Optional. Output only. The name of the scope-tenancy workload identity pool. This pool is set in the fleet-level feature.", + "readOnly": true, + "type": "string" + }, "workloadIdentityPool": { "description": "Output only. The name of the workload identity pool in which `issuer` will be recognized. There is a single Workload Identity Pool per Hub that is shared between all Memberships that belong to that Hub. For a Hub hosted in {PROJECT_ID}, the workload pool format is `{PROJECT_ID}.hub.id.goog`, although this is subject to change in newer versions of this API.", "readOnly": true, diff --git a/gkehub/v1beta1/gkehub-gen.go b/gkehub/v1beta1/gkehub-gen.go index f36521b0c1f..c2298f484ae 100644 --- a/gkehub/v1beta1/gkehub-gen.go +++ b/gkehub/v1beta1/gkehub-gen.go @@ -322,6 +322,13 @@ type Authority struct { // performed on `issuer`, and instead OIDC tokens will be validated using this // field. OidcJwks string `json:"oidcJwks,omitempty"` + // ScopeTenancyIdentityProvider: Optional. Output only. The identity provider + // for the scope-tenancy workload identity pool. + ScopeTenancyIdentityProvider string `json:"scopeTenancyIdentityProvider,omitempty"` + // ScopeTenancyWorkloadIdentityPool: Optional. Output only. The name of the + // scope-tenancy workload identity pool. This pool is set in the fleet-level + // feature. + ScopeTenancyWorkloadIdentityPool string `json:"scopeTenancyWorkloadIdentityPool,omitempty"` // WorkloadIdentityPool: Output only. The name of the workload identity pool in // which `issuer` will be recognized. There is a single Workload Identity Pool // per Hub that is shared between all Memberships that belong to that Hub. For diff --git a/gkeonprem/v1/gkeonprem-api.json b/gkeonprem/v1/gkeonprem-api.json index 0626a85df31..803c7e8525d 100644 --- a/gkeonprem/v1/gkeonprem-api.json +++ b/gkeonprem/v1/gkeonprem-api.json @@ -3094,7 +3094,7 @@ } } }, - "revision": "20241023", + "revision": "20241110", "rootUrl": "https://gkeonprem.googleapis.com/", "schemas": { "Authorization": { @@ -5837,7 +5837,12 @@ "VmwareAdminMetalLbConfig": { "description": "VmwareAdminMetalLbConfig represents configuration parameters for a MetalLB load balancer. For admin clusters, currently no configurations is needed.", "id": "VmwareAdminMetalLbConfig", - "properties": {}, + "properties": { + "enabled": { + "description": "Whether MetalLB is enabled.", + "type": "boolean" + } + }, "type": "object" }, "VmwareAdminNetworkConfig": { diff --git a/gkeonprem/v1/gkeonprem-gen.go b/gkeonprem/v1/gkeonprem-gen.go index c0d5fb7b3d0..c3798b4313f 100644 --- a/gkeonprem/v1/gkeonprem-gen.go +++ b/gkeonprem/v1/gkeonprem-gen.go @@ -4133,6 +4133,24 @@ func (s VmwareAdminManualLbConfig) MarshalJSON() ([]byte, error) { // parameters for a MetalLB load balancer. For admin clusters, currently no // configurations is needed. type VmwareAdminMetalLbConfig struct { + // Enabled: Whether MetalLB is enabled. + Enabled bool `json:"enabled,omitempty"` + // ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Enabled") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s VmwareAdminMetalLbConfig) MarshalJSON() ([]byte, error) { + type NoMethod VmwareAdminMetalLbConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // VmwareAdminNetworkConfig: VmwareAdminNetworkConfig contains network diff --git a/go.work.sum b/go.work.sum index 67f5500f561..a5e646a06b6 100644 --- a/go.work.sum +++ b/go.work.sum @@ -142,6 +142,7 @@ cloud.google.com/go/compute v1.28.1 h1:XwPcZjgMCnU2tkwY10VleUjSAfpTj9RDn+kGrbYsi cloud.google.com/go/compute v1.28.1/go.mod h1:b72iXMY4FucVry3NR3Li4kVyyTvbMDE7x5WsqvxjsYk= cloud.google.com/go/compute v1.28.2 h1:M9Rf+Ii9xQZk+rTBEgaz3J5ZyKs6kSNAgdZQpyBpxVk= cloud.google.com/go/compute v1.28.2/go.mod h1:HFlsDurE5DpQZClAGf/cYh+gxssMhBxBovZDYkEn/Og= +cloud.google.com/go/compute v1.28.3 h1:+b9s7mbJYe7yQ0qA9o6GS7Tb1Ubygnv6jCLxM0JnbQA= cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/contactcenterinsights v1.13.0/go.mod h1:ieq5d5EtHsu8vhe2y3amtZ+BE+AQwX5qAy7cpo0POsI= cloud.google.com/go/contactcenterinsights v1.13.6/go.mod h1:mL+DbN3pMQGaAbDC4wZhryLciwSwHf5Tfk4Itr72Zyk= @@ -738,7 +739,6 @@ google.golang.org/genproto/googleapis/api v0.0.0-20240205150955-31a09d347014/go. google.golang.org/genproto/googleapis/api v0.0.0-20240213162025-012b6fc9bca9/go.mod h1:PVreiBMirk8ypES6aw9d4p6iiBNSIfZEBqr3UGoAi2E= google.golang.org/genproto/googleapis/api v0.0.0-20240227224415-6ceb2ff114de/go.mod h1:5iCWqnniDlqZHrd3neWVTOwvh/v6s3232omMecelax8= google.golang.org/genproto/googleapis/api v0.0.0-20240311132316-a219d84964c2/go.mod h1:O1cOfN1Cy6QEYr7VxtjOyP5AdAuR0aJ/MYZaaof623Y= -google.golang.org/genproto/googleapis/api v0.0.0-20241104194629-dd2ea8efbc28/go.mod h1:dguCy7UOdZhTvLzDyt15+rOrawrpM4q7DD9dQ1P11P4= google.golang.org/genproto/googleapis/rpc v0.0.0-20231106174013-bbf56f31fb17/go.mod h1:oQ5rr10WTTMvP4A36n8JpR1OrO1BEiV4f78CneXZxkA= google.golang.org/genproto/googleapis/rpc v0.0.0-20240102182953-50ed04b92917/go.mod h1:xtjpI3tXFPP051KaWnhvxkiubL/6dJ18vLVf7q2pTOU= google.golang.org/genproto/googleapis/rpc v0.0.0-20240116215550-a9fa1716bcac/go.mod h1:daQN87bsDqDoe316QbbvX60nMoJQa4r6Ds0ZuoAe5yA= diff --git a/looker/v1/looker-api.json b/looker/v1/looker-api.json index d3d2ee6c709..fe5050ce882 100644 --- a/looker/v1/looker-api.json +++ b/looker/v1/looker-api.json @@ -731,7 +731,7 @@ } } }, - "revision": "20241016", + "revision": "20241106", "rootUrl": "https://looker.googleapis.com/", "schemas": { "AdminSettings": { @@ -1222,7 +1222,7 @@ }, "userMetadata": { "$ref": "UserMetadata", - "description": "User metadata." + "description": "Optional. User metadata." } }, "type": "object" diff --git a/looker/v1/looker-gen.go b/looker/v1/looker-gen.go index b776f8d5911..6b21970289f 100644 --- a/looker/v1/looker-gen.go +++ b/looker/v1/looker-gen.go @@ -832,7 +832,7 @@ type Instance struct { State string `json:"state,omitempty"` // UpdateTime: Output only. The time when the Looker instance was last updated. UpdateTime string `json:"updateTime,omitempty"` - // UserMetadata: User metadata. + // UserMetadata: Optional. User metadata. UserMetadata *UserMetadata `json:"userMetadata,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. diff --git a/merchantapi/accounts_v1beta/merchantapi-api.json b/merchantapi/accounts_v1beta/merchantapi-api.json index ad5e00d9993..ed1ac5e66ac 100644 --- a/merchantapi/accounts_v1beta/merchantapi-api.json +++ b/merchantapi/accounts_v1beta/merchantapi-api.json @@ -1417,7 +1417,7 @@ } } }, - "revision": "20241111", + "revision": "20241115", "rootUrl": "https://merchantapi.googleapis.com/", "schemas": { "Accepted": { @@ -1671,7 +1671,7 @@ "type": "object" }, "BusinessInfo": { - "description": "Collection of information related to a business.", + "description": "The `BusinessInfo` message contains essential information about a merchant's business. This message captures key business details such as physical address, customer service contacts, and region-specific identifiers.", "id": "BusinessInfo", "properties": { "address": { @@ -2060,7 +2060,7 @@ "type": "object" }, "Homepage": { - "description": "A store's homepage.", + "description": "The `Homepage` message represents a merchant's store homepage within the system. A merchant's homepage is the primary domain where customers interact with their store. The homepage can be claimed and verified as a proof of ownership and allows the merchant to unlock features that require a verified website. For more information, see [Understanding online store URL verification](//support.google.com/merchants/answer/176793).", "id": "Homepage", "properties": { "claimed": { diff --git a/merchantapi/accounts_v1beta/merchantapi-gen.go b/merchantapi/accounts_v1beta/merchantapi-gen.go index 4222f841b83..b14ec60e7f8 100644 --- a/merchantapi/accounts_v1beta/merchantapi-gen.go +++ b/merchantapi/accounts_v1beta/merchantapi-gen.go @@ -647,7 +647,10 @@ func (s BusinessIdentity) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BusinessInfo: Collection of information related to a business. +// BusinessInfo: The `BusinessInfo` message contains essential information +// about a merchant's business. This message captures key business details such +// as physical address, customer service contacts, and region-specific +// identifiers. type BusinessInfo struct { // Address: Optional. The address of the business. Only `region_code`, // `address_lines`, `postal_code`, `administrative_area` and `locality` fields @@ -1166,7 +1169,13 @@ func (s Headers) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Homepage: A store's homepage. +// Homepage: The `Homepage` message represents a merchant's store homepage +// within the system. A merchant's homepage is the primary domain where +// customers interact with their store. The homepage can be claimed and +// verified as a proof of ownership and allows the merchant to unlock features +// that require a verified website. For more information, see Understanding +// online store URL verification +// (//support.google.com/merchants/answer/176793). type Homepage struct { // Claimed: Output only. Whether the homepage is claimed. See // https://support.google.com/merchants/answer/176793. diff --git a/merchantapi/inventories_v1beta/merchantapi-api.json b/merchantapi/inventories_v1beta/merchantapi-api.json index 43a0470fede..fe86163cc29 100644 --- a/merchantapi/inventories_v1beta/merchantapi-api.json +++ b/merchantapi/inventories_v1beta/merchantapi-api.json @@ -300,7 +300,7 @@ } } }, - "revision": "20241109", + "revision": "20241115", "rootUrl": "https://merchantapi.googleapis.com/", "schemas": { "CustomAttribute": { @@ -605,7 +605,7 @@ "type": "object" }, "RegionalInventory": { - "description": "Regional inventory information for the product. Represents specific information like price and availability for a given product in a specific `region`.For a list of all accepted attribute values, see the [regional product inventory data specification](https://support.google.com/merchants/answer/9698880).", + "description": "Regional inventory information for the product. Represents specific information like price and availability for a given product in a specific `region`. For a list of all accepted attribute values, see the [regional product inventory data specification](https://support.google.com/merchants/answer/9698880).", "id": "RegionalInventory", "properties": { "account": { diff --git a/merchantapi/inventories_v1beta/merchantapi-gen.go b/merchantapi/inventories_v1beta/merchantapi-gen.go index be9a752de7f..d57711065a6 100644 --- a/merchantapi/inventories_v1beta/merchantapi-gen.go +++ b/merchantapi/inventories_v1beta/merchantapi-gen.go @@ -542,7 +542,7 @@ func (s ProductStatusChangeMessage) MarshalJSON() ([]byte, error) { // RegionalInventory: Regional inventory information for the product. // Represents specific information like price and availability for a given -// product in a specific `region`.For a list of all accepted attribute values, +// product in a specific `region`. For a list of all accepted attribute values, // see the regional product inventory data specification // (https://support.google.com/merchants/answer/9698880). type RegionalInventory struct { diff --git a/networkmanagement/v1/networkmanagement-api.json b/networkmanagement/v1/networkmanagement-api.json index d98915b1962..40fe1467d83 100644 --- a/networkmanagement/v1/networkmanagement-api.json +++ b/networkmanagement/v1/networkmanagement-api.json @@ -591,7 +591,7 @@ } } }, - "revision": "20241023", + "revision": "20241106", "rootUrl": "https://networkmanagement.googleapis.com/", "schemas": { "AbortInfo": { @@ -1172,7 +1172,8 @@ "REDIS_CLUSTER_UNSUPPORTED_PROTOCOL", "NO_ADVERTISED_ROUTE_TO_GCP_DESTINATION", "NO_TRAFFIC_SELECTOR_TO_GCP_DESTINATION", - "NO_KNOWN_ROUTE_FROM_PEERED_NETWORK_TO_DESTINATION" + "NO_KNOWN_ROUTE_FROM_PEERED_NETWORK_TO_DESTINATION", + "PRIVATE_NAT_TO_PSC_ENDPOINT_UNSUPPORTED" ], "enumDescriptions": [ "Cause is unspecified.", @@ -1257,7 +1258,8 @@ "Packet is dropped due to an unsupported protocol being used to connect to a Redis Cluster. Only TCP connections are accepted by a Redis Cluster.", "Packet from the non-GCP (on-prem) or unknown GCP network is dropped due to the destination IP address not belonging to any IP prefix advertised via BGP by the Cloud Router.", "Packet from the non-GCP (on-prem) or unknown GCP network is dropped due to the destination IP address not belonging to any IP prefix included to the local traffic selector of the VPN tunnel.", - "Packet from the unknown peered network is dropped due to no known route from the source network to the destination IP address." + "Packet from the unknown peered network is dropped due to no known route from the source network to the destination IP address.", + "Sending packets processed by the Private NAT Gateways to the Private Service Connect endpoints is not supported." ], "type": "string" }, @@ -1341,7 +1343,7 @@ "type": "string" }, "fqdn": { - "description": "DNS endpoint of [Google Kubernetes Engine cluster control plane](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). Requires gke_master_cluster to be set, can't be used simultaneoulsly with ip_address.", + "description": "DNS endpoint of [Google Kubernetes Engine cluster control plane](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). Requires gke_master_cluster to be set, can't be used simultaneoulsly with ip_address or network. Applicable only to destination endpoint.", "type": "string" }, "gkeMasterCluster": { @@ -1692,12 +1694,16 @@ "description": "URI of a GKE cluster.", "type": "string" }, + "dnsEndpoint": { + "description": "DNS endpoint of a GKE cluster control plane.", + "type": "string" + }, "externalIp": { - "description": "External IP address of a GKE cluster master.", + "description": "External IP address of a GKE cluster control plane.", "type": "string" }, "internalIp": { - "description": "Internal IP address of a GKE cluster master.", + "description": "Internal IP address of a GKE cluster control plane.", "type": "string" } }, diff --git a/networkmanagement/v1/networkmanagement-gen.go b/networkmanagement/v1/networkmanagement-gen.go index 5fea2905804..147e026ab97 100644 --- a/networkmanagement/v1/networkmanagement-gen.go +++ b/networkmanagement/v1/networkmanagement-gen.go @@ -1054,6 +1054,9 @@ type DropInfo struct { // "NO_KNOWN_ROUTE_FROM_PEERED_NETWORK_TO_DESTINATION" - Packet from the // unknown peered network is dropped due to no known route from the source // network to the destination IP address. + // "PRIVATE_NAT_TO_PSC_ENDPOINT_UNSUPPORTED" - Sending packets processed by + // the Private NAT Gateways to the Private Service Connect endpoints is not + // supported. Cause string `json:"cause,omitempty"` // DestinationIp: Destination IP address of the dropped packet (if relevant). DestinationIp string `json:"destinationIp,omitempty"` @@ -1149,7 +1152,7 @@ type Endpoint struct { // Fqdn: DNS endpoint of Google Kubernetes Engine cluster control plane // (https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). // Requires gke_master_cluster to be set, can't be used simultaneoulsly with - // ip_address. + // ip_address or network. Applicable only to destination endpoint. Fqdn string `json:"fqdn,omitempty"` // GkeMasterCluster: A cluster URI for Google Kubernetes Engine cluster control // plane @@ -1500,9 +1503,11 @@ type GKEMasterInfo struct { ClusterNetworkUri string `json:"clusterNetworkUri,omitempty"` // ClusterUri: URI of a GKE cluster. ClusterUri string `json:"clusterUri,omitempty"` - // ExternalIp: External IP address of a GKE cluster master. + // DnsEndpoint: DNS endpoint of a GKE cluster control plane. + DnsEndpoint string `json:"dnsEndpoint,omitempty"` + // ExternalIp: External IP address of a GKE cluster control plane. ExternalIp string `json:"externalIp,omitempty"` - // InternalIp: Internal IP address of a GKE cluster master. + // InternalIp: Internal IP address of a GKE cluster control plane. InternalIp string `json:"internalIp,omitempty"` // ForceSendFields is a list of field names (e.g. "ClusterNetworkUri") to // unconditionally include in API requests. By default, fields with empty or diff --git a/networkmanagement/v1beta1/networkmanagement-api.json b/networkmanagement/v1beta1/networkmanagement-api.json index 3412555070f..dd40509efa7 100644 --- a/networkmanagement/v1beta1/networkmanagement-api.json +++ b/networkmanagement/v1beta1/networkmanagement-api.json @@ -758,7 +758,7 @@ } } }, - "revision": "20241023", + "revision": "20241106", "rootUrl": "https://networkmanagement.googleapis.com/", "schemas": { "AbortInfo": { @@ -1339,7 +1339,8 @@ "REDIS_CLUSTER_UNSUPPORTED_PROTOCOL", "NO_ADVERTISED_ROUTE_TO_GCP_DESTINATION", "NO_TRAFFIC_SELECTOR_TO_GCP_DESTINATION", - "NO_KNOWN_ROUTE_FROM_PEERED_NETWORK_TO_DESTINATION" + "NO_KNOWN_ROUTE_FROM_PEERED_NETWORK_TO_DESTINATION", + "PRIVATE_NAT_TO_PSC_ENDPOINT_UNSUPPORTED" ], "enumDescriptions": [ "Cause is unspecified.", @@ -1424,7 +1425,8 @@ "Packet is dropped due to an unsupported protocol being used to connect to a Redis Cluster. Only TCP connections are accepted by a Redis Cluster.", "Packet from the non-GCP (on-prem) or unknown GCP network is dropped due to the destination IP address not belonging to any IP prefix advertised via BGP by the Cloud Router.", "Packet from the non-GCP (on-prem) or unknown GCP network is dropped due to the destination IP address not belonging to any IP prefix included to the local traffic selector of the VPN tunnel.", - "Packet from the unknown peered network is dropped due to no known route from the source network to the destination IP address." + "Packet from the unknown peered network is dropped due to no known route from the source network to the destination IP address.", + "Sending packets processed by the Private NAT Gateways to the Private Service Connect endpoints is not supported." ], "type": "string" }, @@ -1508,7 +1510,7 @@ "type": "string" }, "fqdn": { - "description": "DNS endpoint of [Google Kubernetes Engine cluster control plane](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). Requires gke_master_cluster to be set, can't be used simultaneoulsly with ip_address.", + "description": "DNS endpoint of [Google Kubernetes Engine cluster control plane](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). Requires gke_master_cluster to be set, can't be used simultaneoulsly with ip_address or network. Applicable only to destination endpoint.", "type": "string" }, "gkeMasterCluster": { @@ -1859,12 +1861,16 @@ "description": "URI of a GKE cluster.", "type": "string" }, + "dnsEndpoint": { + "description": "DNS endpoint of a GKE cluster control plane.", + "type": "string" + }, "externalIp": { - "description": "External IP address of a GKE cluster master.", + "description": "External IP address of a GKE cluster control plane.", "type": "string" }, "internalIp": { - "description": "Internal IP address of a GKE cluster master.", + "description": "Internal IP address of a GKE cluster control plane.", "type": "string" } }, diff --git a/networkmanagement/v1beta1/networkmanagement-gen.go b/networkmanagement/v1beta1/networkmanagement-gen.go index 1a091bef660..3cbbb5dd700 100644 --- a/networkmanagement/v1beta1/networkmanagement-gen.go +++ b/networkmanagement/v1beta1/networkmanagement-gen.go @@ -1066,6 +1066,9 @@ type DropInfo struct { // "NO_KNOWN_ROUTE_FROM_PEERED_NETWORK_TO_DESTINATION" - Packet from the // unknown peered network is dropped due to no known route from the source // network to the destination IP address. + // "PRIVATE_NAT_TO_PSC_ENDPOINT_UNSUPPORTED" - Sending packets processed by + // the Private NAT Gateways to the Private Service Connect endpoints is not + // supported. Cause string `json:"cause,omitempty"` // DestinationIp: Destination IP address of the dropped packet (if relevant). DestinationIp string `json:"destinationIp,omitempty"` @@ -1161,7 +1164,7 @@ type Endpoint struct { // Fqdn: DNS endpoint of Google Kubernetes Engine cluster control plane // (https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). // Requires gke_master_cluster to be set, can't be used simultaneoulsly with - // ip_address. + // ip_address or network. Applicable only to destination endpoint. Fqdn string `json:"fqdn,omitempty"` // GkeMasterCluster: A cluster URI for Google Kubernetes Engine cluster control // plane @@ -1512,9 +1515,11 @@ type GKEMasterInfo struct { ClusterNetworkUri string `json:"clusterNetworkUri,omitempty"` // ClusterUri: URI of a GKE cluster. ClusterUri string `json:"clusterUri,omitempty"` - // ExternalIp: External IP address of a GKE cluster master. + // DnsEndpoint: DNS endpoint of a GKE cluster control plane. + DnsEndpoint string `json:"dnsEndpoint,omitempty"` + // ExternalIp: External IP address of a GKE cluster control plane. ExternalIp string `json:"externalIp,omitempty"` - // InternalIp: Internal IP address of a GKE cluster master. + // InternalIp: Internal IP address of a GKE cluster control plane. InternalIp string `json:"internalIp,omitempty"` // ForceSendFields is a list of field names (e.g. "ClusterNetworkUri") to // unconditionally include in API requests. By default, fields with empty or diff --git a/networkservices/v1/networkservices-api.json b/networkservices/v1/networkservices-api.json index 65f94ffa521..362c7c267d5 100644 --- a/networkservices/v1/networkservices-api.json +++ b/networkservices/v1/networkservices-api.json @@ -177,6 +177,188 @@ } }, "resources": { + "authzExtensions": { + "methods": { + "create": { + "description": "Creates a new `AuthzExtension` resource in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authzExtensions", + "httpMethod": "POST", + "id": "networkservices.projects.locations.authzExtensions.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "authzExtensionId": { + "description": "Required. User-provided ID of the `AuthzExtension` resource to be created.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource of the `AuthzExtension` resource. Must be in the format `projects/{project}/locations/{location}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server guarantees that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, ignores the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/authzExtensions", + "request": { + "$ref": "AuthzExtension" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes the specified `AuthzExtension` resource.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authzExtensions/{authzExtensionsId}", + "httpMethod": "DELETE", + "id": "networkservices.projects.locations.authzExtensions.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the `AuthzExtension` resource to delete. Must be in the format `projects/{project}/locations/{location}/authzExtensions/{authz_extension}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/authzExtensions/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server guarantees that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, ignores the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of the specified `AuthzExtension` resource.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authzExtensions/{authzExtensionsId}", + "httpMethod": "GET", + "id": "networkservices.projects.locations.authzExtensions.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. A name of the `AuthzExtension` resource to get. Must be in the format `projects/{project}/locations/{location}/authzExtensions/{authz_extension}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/authzExtensions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "AuthzExtension" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists `AuthzExtension` resources in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authzExtensions", + "httpMethod": "GET", + "id": "networkservices.projects.locations.authzExtensions.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Filtering results.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. Hint for how to order the results.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. Requested page size. The server might return fewer items than requested. If unspecified, the server picks an appropriate default.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A token identifying a page of results that the server returns.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The project and location from which the `AuthzExtension` resources are listed, specified in the following format: `projects/{project}/locations/{location}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/authzExtensions", + "response": { + "$ref": "ListAuthzExtensionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates the parameters of the specified `AuthzExtension` resource.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authzExtensions/{authzExtensionsId}", + "httpMethod": "PATCH", + "id": "networkservices.projects.locations.authzExtensions.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Identifier. Name of the `AuthzExtension` resource in the following format: `projects/{project}/locations/{location}/authzExtensions/{authz_extension}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/authzExtensions/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server guarantees that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, ignores the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "updateMask": { + "description": "Required. Used to specify the fields to be overwritten in the `AuthzExtension` resource by the update. The fields specified in the `update_mask` are relative to the resource, not the full request. A field is overwritten if it is in the mask. If the user does not specify a mask, then all fields are overwritten.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "AuthzExtension" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "edgeCacheKeysets": { "methods": { "getIamPolicy": { @@ -762,6 +944,73 @@ "https://www.googleapis.com/auth/cloud-platform" ] } + }, + "resources": { + "routeViews": { + "methods": { + "get": { + "description": "Get a single RouteView of a Gateway.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/gateways/{gatewaysId}/routeViews/{routeViewsId}", + "httpMethod": "GET", + "id": "networkservices.projects.locations.gateways.routeViews.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the GatewayRouteView resource. Formats: projects/{project_number}/locations/{location}/gateways/{gateway_name}/routeViews/{route_view_name}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/gateways/[^/]+/routeViews/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GatewayRouteView" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists RouteViews", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/gateways/{gatewaysId}/routeViews", + "httpMethod": "GET", + "id": "networkservices.projects.locations.gateways.routeViews.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Maximum number of GatewayRouteViews to return per call.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The value returned by the last `ListGatewayRouteViewsResponse` Indicates that this is a continuation of a prior `ListGatewayRouteViews` call, and that the system should return the next page of data.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The Gateway to which a Route is associated. Formats: projects/{project_number}/locations/{location}/gateways/{gateway_name}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/gateways/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/routeViews", + "response": { + "$ref": "ListGatewayRouteViewsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } } }, "grpcRoutes": { @@ -1597,6 +1846,73 @@ "https://www.googleapis.com/auth/cloud-platform" ] } + }, + "resources": { + "routeViews": { + "methods": { + "get": { + "description": "Get a single RouteView of a Mesh.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/meshes/{meshesId}/routeViews/{routeViewsId}", + "httpMethod": "GET", + "id": "networkservices.projects.locations.meshes.routeViews.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the MeshRouteView resource. Format: projects/{project_number}/locations/{location}/meshes/{mesh_name}/routeViews/{route_view_name}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/meshes/[^/]+/routeViews/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "MeshRouteView" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists RouteViews", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/meshes/{meshesId}/routeViews", + "httpMethod": "GET", + "id": "networkservices.projects.locations.meshes.routeViews.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Maximum number of MeshRouteViews to return per call.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The value returned by the last `ListMeshRouteViewsResponse` Indicates that this is a continuation of a prior `ListMeshRouteViews` call, and that the system should return the next page of data.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The Mesh to which a Route is associated. Format: projects/{project_number}/locations/{location}/meshes/{mesh_name}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/meshes/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/routeViews", + "response": { + "$ref": "ListMeshRouteViewsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } } }, "operations": { @@ -2393,16 +2709,16 @@ "type": "string" }, "view": { - "description": "Determine how much data should be returned by the API. See [AIP-157](https://google.aip.dev/157).", + "description": "Determines how much data must be returned in the response. See [AIP-157](https://google.aip.dev/157).", "enum": [ "WASM_PLUGIN_VIEW_UNSPECIFIED", "WASM_PLUGIN_VIEW_BASIC", "WASM_PLUGIN_VIEW_FULL" ], "enumDescriptions": [ - "The default / unset value. The API will default to the BASIC view.", - "Include just WasmPlugin record.", - "Include WasmPlugin record and all its WasmPluginVersions." + "Unspecified value. Do not use.", + "If specified in the `GET` request for a `WasmPlugin` resource, the server's response includes just the `WasmPlugin` resource.", + "If specified in the `GET` request for a `WasmPlugin` resource, the server's response includes the `WasmPlugin` resource with all its versions." ], "location": "query", "type": "string" @@ -2426,7 +2742,7 @@ ], "parameters": { "pageSize": { - "description": "Maximum number of `WasmPlugin` resources to return per call. If not specified, at most 50 `WasmPlugin`s are returned. The maximum value is 1000; values above 1000 are coerced to 1000.", + "description": "Maximum number of `WasmPlugin` resources to return per call. If not specified, at most 50 `WasmPlugin` resources are returned. The maximum value is 1000; values above 1000 are coerced to 1000.", "format": "int32", "location": "query", "type": "integer" @@ -2583,7 +2899,7 @@ ], "parameters": { "pageSize": { - "description": "Maximum number of `WasmPluginVersion` resources to return per call. If not specified, at most 50 `WasmPluginVersion`s are returned. The maximum value is 1000; values above 1000 are coerced to 1000.", + "description": "Maximum number of `WasmPluginVersion` resources to return per call. If not specified, at most 50 `WasmPluginVersion` resources are returned. The maximum value is 1000; values above 1000 are coerced to 1000.", "format": "int32", "location": "query", "type": "integer" @@ -2618,7 +2934,7 @@ } } }, - "revision": "20241010", + "revision": "20241109", "rootUrl": "https://networkservices.googleapis.com/", "schemas": { "AuditConfig": { @@ -2669,6 +2985,98 @@ }, "type": "object" }, + "AuthzExtension": { + "description": "`AuthzExtension` is a resource that allows traffic forwarding to a callout backend service to make an authorization decision.", + "id": "AuthzExtension", + "properties": { + "authority": { + "description": "Required. The `:authority` header in the gRPC request sent from Envoy to the extension service.", + "type": "string" + }, + "createTime": { + "description": "Output only. The timestamp when the resource was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "Optional. A human-readable description of the resource.", + "type": "string" + }, + "failOpen": { + "description": "Optional. Determines how the proxy behaves if the call to the extension fails or times out. When set to `TRUE`, request or response processing continues without error. Any subsequent extensions in the extension chain are also executed. When set to `FALSE` or the default setting of `FALSE` is used, one of the following happens: * If response headers have not been delivered to the downstream client, a generic 500 error is returned to the client. The error response can be tailored by configuring a custom error response in the load balancer. * If response headers have been delivered, then the HTTP stream to the downstream client is reset.", + "type": "boolean" + }, + "forwardHeaders": { + "description": "Optional. List of the HTTP headers to forward to the extension (from the client). If omitted, all headers are sent. Each element is a string indicating the header name.", + "items": { + "type": "string" + }, + "type": "array" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Set of labels associated with the `AuthzExtension` resource. The format must comply with [the requirements for labels](/compute/docs/labeling-resources#requirements) for Google Cloud resources.", + "type": "object" + }, + "loadBalancingScheme": { + "description": "Required. All backend services and forwarding rules referenced by this extension must share the same load balancing scheme. Supported values: `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to [Backend services overview](https://cloud.google.com/load-balancing/docs/backend-service).", + "enum": [ + "LOAD_BALANCING_SCHEME_UNSPECIFIED", + "INTERNAL_MANAGED", + "EXTERNAL_MANAGED" + ], + "enumDescriptions": [ + "Default value. Do not use.", + "Signifies that this is used for Internal HTTP(S) Load Balancing.", + "Signifies that this is used for External Managed HTTP(S) Load Balancing." + ], + "type": "string" + }, + "metadata": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Optional. The metadata provided here is included as part of the `metadata_context` (of type `google.protobuf.Struct`) in the `ProcessingRequest` message sent to the extension server. The metadata is available under the namespace `com.google.authz_extension.`. The following variables are supported in the metadata Struct: `{forwarding_rule_id}` - substituted with the forwarding rule's fully qualified resource name.", + "type": "object" + }, + "name": { + "description": "Required. Identifier. Name of the `AuthzExtension` resource in the following format: `projects/{project}/locations/{location}/authzExtensions/{authz_extension}`.", + "type": "string" + }, + "service": { + "description": "Required. The reference to the service that runs the extension. To configure a callout extension, `service` must be a fully-qualified reference to a [backend service](https://cloud.google.com/compute/docs/reference/rest/v1/backendServices) in the format: `https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/backendServices/{backendService}` or `https://www.googleapis.com/compute/v1/projects/{project}/global/backendServices/{backendService}`.", + "type": "string" + }, + "timeout": { + "description": "Required. Specifies the timeout for each individual message on the stream. The timeout must be between 10-10000 milliseconds.", + "format": "google-duration", + "type": "string" + }, + "updateTime": { + "description": "Output only. The timestamp when the resource was updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "wireFormat": { + "description": "Optional. The format of communication supported by the callout extension. If not specified, the default is `EXT_PROC_GRPC`.", + "enum": [ + "WIRE_FORMAT_UNSPECIFIED", + "EXT_PROC_GRPC" + ], + "enumDescriptions": [ + "Not specified.", + "The extension service uses ExtProc GRPC API over a gRPC stream. This is the default value if the wire format is not specified. The backend service for the extension must use HTTP2 or H2C as the protocol. All `supported_events` for a client request will be sent as part of the same gRPC stream." + ], + "type": "string" + } + }, + "type": "object" + }, "Binding": { "description": "Associates `members`, or principals, with a `role`.", "id": "Binding", @@ -2875,7 +3283,7 @@ "id": "ExtensionChainExtension", "properties": { "authority": { - "description": "Optional. The `:authority` header in the gRPC request sent from Envoy to the extension service. Required for Callout extensions. This field is not supported for plugin extensions and must not be set.", + "description": "Optional. The `:authority` header in the gRPC request sent from Envoy to the extension service. Required for Callout extensions. This field is not supported for plugin extensions. Setting it results in a validation error.", "type": "string" }, "failOpen": { @@ -2894,7 +3302,7 @@ "description": "Properties of the object.", "type": "any" }, - "description": "Optional. The metadata provided here is included as part of the `metadata_context` (of type `google.protobuf.Struct`) in the `ProcessingRequest` message sent to the extension server. The metadata is available under the namespace `com.google....`. For example: `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`. The following variables are supported in the metadata: `{forwarding_rule_id}` - substituted with the forwarding rule's fully qualified resource name. This field is not supported for plugin extensions and must not be set.", + "description": "Optional. The metadata provided here is included as part of the `metadata_context` (of type `google.protobuf.Struct`) in the `ProcessingRequest` message sent to the extension server. The metadata is available under the namespace `com.google....`. For example: `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`. The following variables are supported in the metadata: `{forwarding_rule_id}` - substituted with the forwarding rule's fully qualified resource name. This field is not supported for plugin extensions. Setting it results in a validation error.", "type": "object" }, "name": { @@ -2902,11 +3310,11 @@ "type": "string" }, "service": { - "description": "Required. The reference to the service that runs the extension. Currently only callout extensions are supported here. To configure a callout extension, `service` must be a fully-qualified reference to a [backend service](https://cloud.google.com/compute/docs/reference/rest/v1/backendServices) in the format: `https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/backendServices/{backendService}` or `https://www.googleapis.com/compute/v1/projects/{project}/global/backendServices/{backendService}`. To configure a plugin extension, this must be a reference to a [wasm plugin](https://cloud.google.com/service-extensions/docs/reference/rest/v1beta1/projects.locations.wasmPlugins) in the format: `projects/{project}/locations/{location}/wasmPlugins/{plugin}` or `//networkservices.googleapis.com/projects/{project}/locations/{location}/wasmPlugins/{wasmPlugin}`.", + "description": "Required. The reference to the service that runs the extension. To configure a callout extension, `service` must be a fully-qualified reference to a [backend service](https://cloud.google.com/compute/docs/reference/rest/v1/backendServices) in the format: `https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/backendServices/{backendService}` or `https://www.googleapis.com/compute/v1/projects/{project}/global/backendServices/{backendService}`. To configure a plugin extension, `service` must be a reference to a [`WasmPlugin` resource](https://cloud.google.com/service-extensions/docs/reference/rest/v1beta1/projects.locations.wasmPlugins) in the format: `projects/{project}/locations/{location}/wasmPlugins/{plugin}` or `//networkservices.googleapis.com/projects/{project}/locations/{location}/wasmPlugins/{wasmPlugin}`. Plugin extensions are currently supported for the `LbTrafficExtension` and the `LbRouteExtension` resources.", "type": "string" }, "supportedEvents": { - "description": "Optional. A set of events during request or response processing for which this extension is called. This field is required for the `LbTrafficExtension` resource. It must not be set for the `LbRouteExtension` resource.", + "description": "Optional. A set of events during request or response processing for which this extension is called. This field is required for the `LbTrafficExtension` resource. It must not be set for the `LbRouteExtension` resource, otherwise a validation error is returned.", "items": { "enum": [ "EVENT_TYPE_UNSPECIFIED", @@ -2931,7 +3339,7 @@ "type": "array" }, "timeout": { - "description": "Optional. Specifies the timeout for each individual message on the stream. The timeout must be between 10-1000 milliseconds. Required for callout extensions. This field is not supported for plugin extensions and must not be set.", + "description": "Optional. Specifies the timeout for each individual message on the stream. The timeout must be between `10`-`1000` milliseconds. Required for callout extensions. This field is not supported for plugin extensions. Setting it results in a validation error.", "format": "google-duration", "type": "string" } @@ -3084,6 +3492,39 @@ }, "type": "object" }, + "GatewayRouteView": { + "description": "GatewayRouteView defines view-only resource for Routes to a Gateway", + "id": "GatewayRouteView", + "properties": { + "name": { + "description": "Output only. Identifier. Full path name of the GatewayRouteView resource. Format: projects/{project_number}/locations/{location}/gateways/{gateway_name}/routeViews/{route_view_name}", + "readOnly": true, + "type": "string" + }, + "routeId": { + "description": "Output only. The resource id for the route.", + "readOnly": true, + "type": "string" + }, + "routeLocation": { + "description": "Output only. Location where the route exists.", + "readOnly": true, + "type": "string" + }, + "routeProjectNumber": { + "description": "Output only. Project number where the route exists.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "routeType": { + "description": "Output only. Type of the route: HttpRoute,GrpcRoute,TcpRoute, or TlsRoute", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "GrpcRoute": { "description": "GrpcRoute is the resource defining how gRPC traffic routed by a Mesh or Gateway resource is routed.", "id": "GrpcRoute", @@ -3963,7 +4404,7 @@ "type": "array" }, "forwardingRules": { - "description": "Required. A list of references to the forwarding rules to which this service extension is attached to. At least one forwarding rule is required. There can be only one `LbRouteExtension` resource per forwarding rule.", + "description": "Required. A list of references to the forwarding rules to which this service extension is attached. At least one forwarding rule is required. There can be only one `LbRouteExtension` resource per forwarding rule.", "items": { "type": "string" }, @@ -3995,7 +4436,7 @@ "description": "Properties of the object.", "type": "any" }, - "description": "Optional. The metadata provided here is included as part of the `metadata_context` (of type `google.protobuf.Struct`) in the `ProcessingRequest` message sent to the extension server. The metadata is available under the namespace `com.google.lb_route_extension.`. The following variables are supported in the metadata Struct: `{forwarding_rule_id}` - substituted with the forwarding rule's fully qualified resource name. This field is not supported for plugin extensions and must not be set.", + "description": "Optional. The metadata provided here is included as part of the `metadata_context` (of type `google.protobuf.Struct`) in the `ProcessingRequest` message sent to the extension server. The metadata is available under the namespace `com.google.lb_route_extension.`. The following variables are supported in the metadata Struct: `{forwarding_rule_id}` - substituted with the forwarding rule's fully qualified resource name. This field is not supported for plugin extensions. Setting it results in a validation error.", "type": "object" }, "name": { @@ -4033,7 +4474,7 @@ "type": "array" }, "forwardingRules": { - "description": "Required. A list of references to the forwarding rules to which this service extension is attached to. At least one forwarding rule is required. There can be only one `LBTrafficExtension` resource per forwarding rule.", + "description": "Optional. A list of references to the forwarding rules to which this service extension is attached. At least one forwarding rule is required. There can be only one `LBTrafficExtension` resource per forwarding rule.", "items": { "type": "string" }, @@ -4065,7 +4506,7 @@ "description": "Properties of the object.", "type": "any" }, - "description": "Optional. The metadata provided here is included in the `ProcessingRequest.metadata_context.filter_metadata` map field. The metadata is available under the key `com.google.lb_traffic_extension.`. The following variables are supported in the metadata: `{forwarding_rule_id}` - substituted with the forwarding rule's fully qualified resource name. This field is not supported for plugin extensions and must not be set.", + "description": "Optional. The metadata provided here is included in the `ProcessingRequest.metadata_context.filter_metadata` map field. The metadata is available under the key `com.google.lb_traffic_extension.`. The following variables are supported in the metadata: `{forwarding_rule_id}` - substituted with the forwarding rule's fully qualified resource name. This field is not supported for plugin extensions. Setting it results in a validation error.", "type": "object" }, "name": { @@ -4081,6 +4522,31 @@ }, "type": "object" }, + "ListAuthzExtensionsResponse": { + "description": "Message for response to listing `AuthzExtension` resources.", + "id": "ListAuthzExtensionsResponse", + "properties": { + "authzExtensions": { + "description": "The list of `AuthzExtension` resources.", + "items": { + "$ref": "AuthzExtension" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token identifying a page of results that the server returns.", + "type": "string" + }, + "unreachable": { + "description": "Locations that could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "ListEndpointPoliciesResponse": { "description": "Response returned by the ListEndpointPolicies method.", "id": "ListEndpointPoliciesResponse", @@ -4099,6 +4565,24 @@ }, "type": "object" }, + "ListGatewayRouteViewsResponse": { + "description": "Response returned by the ListGatewayRouteViews method.", + "id": "ListGatewayRouteViewsResponse", + "properties": { + "gatewayRouteViews": { + "description": "List of GatewayRouteView resources.", + "items": { + "$ref": "GatewayRouteView" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + } + }, + "type": "object" + }, "ListGatewaysResponse": { "description": "Response returned by the ListGateways method.", "id": "ListGatewaysResponse", @@ -4228,6 +4712,24 @@ }, "type": "object" }, + "ListMeshRouteViewsResponse": { + "description": "Response returned by the ListMeshRouteViews method.", + "id": "ListMeshRouteViewsResponse", + "properties": { + "meshRouteViews": { + "description": "List of MeshRouteView resources.", + "items": { + "$ref": "MeshRouteView" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + } + }, + "type": "object" + }, "ListMeshesResponse": { "description": "Response returned by the ListMeshes method.", "id": "ListMeshesResponse", @@ -4499,6 +5001,39 @@ }, "type": "object" }, + "MeshRouteView": { + "description": "MeshRouteView defines view-only resource for Routes to a Mesh", + "id": "MeshRouteView", + "properties": { + "name": { + "description": "Output only. Identifier. Full path name of the MeshRouteView resource. Format: projects/{project_number}/locations/{location}/meshes/{mesh_name}/routeViews/{route_view_name}", + "readOnly": true, + "type": "string" + }, + "routeId": { + "description": "Output only. The resource id for the route.", + "readOnly": true, + "type": "string" + }, + "routeLocation": { + "description": "Output only. Location where the route exists.", + "readOnly": true, + "type": "string" + }, + "routeProjectNumber": { + "description": "Output only. Project number where the route exists.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "routeType": { + "description": "Output only. Type of the route: HttpRoute,GrpcRoute,TcpRoute, or TlsRoute", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "Operation": { "description": "This resource represents a long-running operation that is the result of a network API call.", "id": "Operation", @@ -5119,7 +5654,7 @@ }, "logConfig": { "$ref": "WasmPluginLogConfig", - "description": "Optional. Specifies the logging options for the activity performed by this `WasmPlugin`. If logging is enabled, plugin logs are exported to Cloud Logging. Note that the settings relate to the logs generated by using logging statements in your Wasm code." + "description": "Optional. Specifies the logging options for the activity performed by this plugin. If logging is enabled, plugin logs are exported to Cloud Logging. Note that the settings relate to the logs generated by using logging statements in your Wasm code." }, "mainVersionId": { "description": "Optional. The ID of the `WasmPluginVersion` resource that is the currently serving one. The version referred to must be a child of this `WasmPlugin` resource.", @@ -5136,7 +5671,7 @@ "type": "string" }, "usedBy": { - "description": "Output only. List of all [Service Extensions](https://cloud.google.com/service-extensions/docs/overview) that use this `WasmPlugin`.", + "description": "Output only. List of all [extensions](https://cloud.google.com/service-extensions/docs/overview) that use this `WasmPlugin` resource.", "items": { "$ref": "WasmPluginUsedBy" }, @@ -5147,22 +5682,22 @@ "additionalProperties": { "$ref": "WasmPluginVersionDetails" }, - "description": "Optional. All versions of this `WasmPlugin` in the key-value format. The key is the resource ID, the value is the `VersionDetails`. Allows to create or update `WasmPlugin` and its WasmPluginVersions in a single request. When the `main_version_id` field is not empty it must point to one of the VersionDetails in the map. If provided in the update request, the new versions replace the previous set. Any version omitted from the `versions` will be removed. Since the `WasmPluginVersion` resource is immutable, if the WasmPluginVersion with the same name already exists and differs the Update request will fail. Note: In the GET request, this field is populated only if the GetWasmPluginRequest.view is set to WASM_PLUGIN_VIEW_FULL.", + "description": "Optional. All versions of this `WasmPlugin` resource in the key-value format. The key is the resource ID, and the value is the `VersionDetails` object. Lets you create or update a `WasmPlugin` resource and its versions in a single request. When the `main_version_id` field is not empty, it must point to one of the `VersionDetails` objects in the map. If provided in a `PATCH` request, the new versions replace the previous set. Any version omitted from the `versions` field is removed. Because the `WasmPluginVersion` resource is immutable, if a `WasmPluginVersion` resource with the same name already exists and differs, the request fails. Note: In a `GET` request, this field is populated only if the field `GetWasmPluginRequest.view` is set to `WASM_PLUGIN_VIEW_FULL`.", "type": "object" } }, "type": "object" }, "WasmPluginLogConfig": { - "description": "Specifies the logging options for the activity performed by this `WasmPlugin`. If logging is enabled, plugin logs are exported to Cloud Logging.", + "description": "Specifies the logging options for the activity performed by this plugin. If logging is enabled, plugin logs are exported to Cloud Logging.", "id": "WasmPluginLogConfig", "properties": { "enable": { - "description": "Optional. Specifies whether to enable logging for activity by this `WasmPlugin`. Defaults to `false`.", + "description": "Optional. Specifies whether to enable logging for activity by this plugin. Defaults to `false`.", "type": "boolean" }, "minLogLevel": { - "description": "Non-empty default. Specificies the lowest level of the plugin logs that are exported to Cloud Logging. This setting relates to the logs generated by using logging statements in your Wasm code. This field is can be set only if logging is enabled for the `WasmPlugin` resource. If the field is not provided when logging is enabled, it is set to `INFO` by default.", + "description": "Non-empty default. Specificies the lowest level of the plugin logs that are exported to Cloud Logging. This setting relates to the logs generated by using logging statements in your Wasm code. This field is can be set only if logging is enabled for the plugin. If the field is not provided when logging is enabled, it is set to `INFO` by default.", "enum": [ "LOG_LEVEL_UNSPECIFIED", "TRACE", @@ -5173,7 +5708,7 @@ "CRITICAL" ], "enumDescriptions": [ - "Unspecified value.", + "Unspecified value. Defaults to `LogLevel.INFO`.", "Report logs with TRACE level and above.", "Report logs with DEBUG level and above.", "Report logs with INFO level and above.", @@ -5184,7 +5719,7 @@ "type": "string" }, "sampleRate": { - "description": "Non-empty default. Configures the sampling rate of activity logs, where `1.0` means all logged activity is reported and `0.0` means no activity is reported. A floating point value between `0.0` and `1.0` indicates that a percentage of log messages is stored. The default value when logging is enabled is `1.0`. The value of the field must be between `0` and `1` (inclusive). This field can only be specified if logging is enabled for this `WasmPlugin`.", + "description": "Non-empty default. Configures the sampling rate of activity logs, where `1.0` means all logged activity is reported and `0.0` means no activity is reported. A floating point value between `0.0` and `1.0` indicates that a percentage of log messages is stored. The default value when logging is enabled is `1.0`. The value of the field must be between `0` and `1` (inclusive). This field can be specified only if logging is enabled for this plugin.", "format": "float", "type": "number" } @@ -5192,11 +5727,11 @@ "type": "object" }, "WasmPluginUsedBy": { - "description": "Defines a resource that uses the `WasmPlugin`.", + "description": "Defines a resource that uses the `WasmPlugin` resource.", "id": "WasmPluginUsedBy", "properties": { "name": { - "description": "Output only. Full name of the resource https://google.aip.dev/122#full-resource-names, e.g. `//networkservices.googleapis.com/projects/{project}/locations/{location}/lbRouteExtensions/{extension}`", + "description": "Output only. Full name of the resource https://google.aip.dev/122#full-resource-names, for example `//networkservices.googleapis.com/projects/{project}/locations/{location}/lbRouteExtensions/{extension}`", "readOnly": true, "type": "string" } @@ -5204,7 +5739,7 @@ "type": "object" }, "WasmPluginVersion": { - "description": "A single immutable version of a `WasmPlugin`. Defines the Wasm module used and optionally its runtime config.", + "description": "A single immutable version of a `WasmPlugin` resource. Defines the Wasm module used and optionally its runtime config.", "id": "WasmPluginVersion", "properties": { "createTime": { @@ -5218,12 +5753,12 @@ "type": "string" }, "imageDigest": { - "description": "Output only. The resolved digest for the image specified in `image`. The digest is resolved during the creation of `WasmPluginVersion` resource. This field holds the digest value regardless of whether a tag or digest was originally specified in the `image` field.", + "description": "Output only. The resolved digest for the image specified in the `image` field. The digest is resolved during the creation of `WasmPluginVersion` resource. This field holds the digest value, regardless of whether a tag or digest was originally specified in the `image` field.", "readOnly": true, "type": "string" }, "imageUri": { - "description": "Optional. URI of the container image containing the Wasm plugin, stored in the Artifact Registry. When a new `WasmPluginVersion` resource is created, the digest of the container image is saved in the `image_digest` field. When downloading an image, the digest value is used instead of an image tag.", + "description": "Optional. URI of the container image containing the plugin, stored in the Artifact Registry. When a new `WasmPluginVersion` resource is created, the digest of the container image is saved in the `image_digest` field. When downloading an image, the digest value is used instead of an image tag.", "type": "string" }, "labels": { @@ -5238,17 +5773,17 @@ "type": "string" }, "pluginConfigData": { - "description": "Configuration for the Wasm plugin. The configuration is provided to the Wasm plugin at runtime through the `ON_CONFIGURE` callback. When a new `WasmPluginVersion` resource is created, the digest of the contents is saved in the `plugin_config_digest` field.", + "description": "Configuration for the plugin. The configuration is provided to the plugin at runtime through the `ON_CONFIGURE` callback. When a new `WasmPluginVersion` resource is created, the digest of the contents is saved in the `plugin_config_digest` field.", "format": "byte", "type": "string" }, "pluginConfigDigest": { - "description": "Output only. This field holds the digest (usually checksum) value for the plugin configuration. The value is calculated based on the contents of the `plugin_config_data` or the container image defined by the `plugin_config_uri` field.", + "description": "Output only. This field holds the digest (usually checksum) value for the plugin configuration. The value is calculated based on the contents of `plugin_config_data` or the container image defined by the `plugin_config_uri` field.", "readOnly": true, "type": "string" }, "pluginConfigUri": { - "description": "URI of the Wasm plugin configuration stored in the Artifact Registry. The configuration is provided to the plugin at runtime through the `ON_CONFIGURE` callback. The container image must contain only a single file with the name `plugin.config`. When a new `WasmPluginVersion` resource is created, the digest of the container image is saved in the `plugin_config_digest` field.", + "description": "URI of the plugin configuration stored in the Artifact Registry. The configuration is provided to the plugin at runtime through the `ON_CONFIGURE` callback. The container image must contain only a single file with the name `plugin.config`. When a new `WasmPluginVersion` resource is created, the digest of the container image is saved in the `plugin_config_digest` field.", "type": "string" }, "updateTime": { @@ -5291,17 +5826,17 @@ "type": "object" }, "pluginConfigData": { - "description": "Configuration for the Wasm plugin. The configuration is provided to the Wasm plugin at runtime through the `ON_CONFIGURE` callback. When a new `WasmPluginVersion` version is created, the digest of the contents is saved in the `plugin_config_digest` field.", + "description": "Configuration for the plugin. The configuration is provided to the plugin at runtime through the `ON_CONFIGURE` callback. When a new `WasmPluginVersion` version is created, the digest of the contents is saved in the `plugin_config_digest` field.", "format": "byte", "type": "string" }, "pluginConfigDigest": { - "description": "Output only. This field holds the digest (usually checksum) value for the plugin configuration. The value is calculated based on the contents of the `plugin_config_data` or the container image defined by the `plugin_config_uri` field.", + "description": "Output only. This field holds the digest (usually checksum) value for the plugin configuration. The value is calculated based on the contents of the `plugin_config_data` field or the container image defined by the `plugin_config_uri` field.", "readOnly": true, "type": "string" }, "pluginConfigUri": { - "description": "URI of the WasmPlugin configuration stored in the Artifact Registry. The configuration is provided to the Wasm plugin at runtime through the `ON_CONFIGURE` callback. The container image must contain only a single file with the name `plugin.config`. When a new `WasmPluginVersion` resource is created, the digest of the container image is saved in the `plugin_config_digest` field.", + "description": "URI of the plugin configuration stored in the Artifact Registry. The configuration is provided to the plugin at runtime through the `ON_CONFIGURE` callback. The container image must contain only a single file with the name `plugin.config`. When a new `WasmPluginVersion` resource is created, the digest of the container image is saved in the `plugin_config_digest` field.", "type": "string" }, "updateTime": { diff --git a/networkservices/v1/networkservices-gen.go b/networkservices/v1/networkservices-gen.go index b8305e980f4..ade2fd4ab2c 100644 --- a/networkservices/v1/networkservices-gen.go +++ b/networkservices/v1/networkservices-gen.go @@ -168,6 +168,7 @@ type ProjectsService struct { func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs := &ProjectsLocationsService{s: s} + rs.AuthzExtensions = NewProjectsLocationsAuthzExtensionsService(s) rs.EdgeCacheKeysets = NewProjectsLocationsEdgeCacheKeysetsService(s) rs.EdgeCacheOrigins = NewProjectsLocationsEdgeCacheOriginsService(s) rs.EdgeCacheServices = NewProjectsLocationsEdgeCacheServicesService(s) @@ -190,6 +191,8 @@ func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { type ProjectsLocationsService struct { s *Service + AuthzExtensions *ProjectsLocationsAuthzExtensionsService + EdgeCacheKeysets *ProjectsLocationsEdgeCacheKeysetsService EdgeCacheOrigins *ProjectsLocationsEdgeCacheOriginsService @@ -223,6 +226,15 @@ type ProjectsLocationsService struct { WasmPlugins *ProjectsLocationsWasmPluginsService } +func NewProjectsLocationsAuthzExtensionsService(s *Service) *ProjectsLocationsAuthzExtensionsService { + rs := &ProjectsLocationsAuthzExtensionsService{s: s} + return rs +} + +type ProjectsLocationsAuthzExtensionsService struct { + s *Service +} + func NewProjectsLocationsEdgeCacheKeysetsService(s *Service) *ProjectsLocationsEdgeCacheKeysetsService { rs := &ProjectsLocationsEdgeCacheKeysetsService{s: s} return rs @@ -261,11 +273,23 @@ type ProjectsLocationsEndpointPoliciesService struct { func NewProjectsLocationsGatewaysService(s *Service) *ProjectsLocationsGatewaysService { rs := &ProjectsLocationsGatewaysService{s: s} + rs.RouteViews = NewProjectsLocationsGatewaysRouteViewsService(s) return rs } type ProjectsLocationsGatewaysService struct { s *Service + + RouteViews *ProjectsLocationsGatewaysRouteViewsService +} + +func NewProjectsLocationsGatewaysRouteViewsService(s *Service) *ProjectsLocationsGatewaysRouteViewsService { + rs := &ProjectsLocationsGatewaysRouteViewsService{s: s} + return rs +} + +type ProjectsLocationsGatewaysRouteViewsService struct { + s *Service } func NewProjectsLocationsGrpcRoutesService(s *Service) *ProjectsLocationsGrpcRoutesService { @@ -306,11 +330,23 @@ type ProjectsLocationsLbTrafficExtensionsService struct { func NewProjectsLocationsMeshesService(s *Service) *ProjectsLocationsMeshesService { rs := &ProjectsLocationsMeshesService{s: s} + rs.RouteViews = NewProjectsLocationsMeshesRouteViewsService(s) return rs } type ProjectsLocationsMeshesService struct { s *Service + + RouteViews *ProjectsLocationsMeshesRouteViewsService +} + +func NewProjectsLocationsMeshesRouteViewsService(s *Service) *ProjectsLocationsMeshesRouteViewsService { + rs := &ProjectsLocationsMeshesRouteViewsService{s: s} + return rs +} + +type ProjectsLocationsMeshesRouteViewsService struct { + s *Service } func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService { @@ -455,6 +491,106 @@ func (s AuditLogConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// AuthzExtension: `AuthzExtension` is a resource that allows traffic +// forwarding to a callout backend service to make an authorization decision. +type AuthzExtension struct { + // Authority: Required. The `:authority` header in the gRPC request sent from + // Envoy to the extension service. + Authority string `json:"authority,omitempty"` + // CreateTime: Output only. The timestamp when the resource was created. + CreateTime string `json:"createTime,omitempty"` + // Description: Optional. A human-readable description of the resource. + Description string `json:"description,omitempty"` + // FailOpen: Optional. Determines how the proxy behaves if the call to the + // extension fails or times out. When set to `TRUE`, request or response + // processing continues without error. Any subsequent extensions in the + // extension chain are also executed. When set to `FALSE` or the default + // setting of `FALSE` is used, one of the following happens: * If response + // headers have not been delivered to the downstream client, a generic 500 + // error is returned to the client. The error response can be tailored by + // configuring a custom error response in the load balancer. * If response + // headers have been delivered, then the HTTP stream to the downstream client + // is reset. + FailOpen bool `json:"failOpen,omitempty"` + // ForwardHeaders: Optional. List of the HTTP headers to forward to the + // extension (from the client). If omitted, all headers are sent. Each element + // is a string indicating the header name. + ForwardHeaders []string `json:"forwardHeaders,omitempty"` + // Labels: Optional. Set of labels associated with the `AuthzExtension` + // resource. The format must comply with the requirements for labels + // (/compute/docs/labeling-resources#requirements) for Google Cloud resources. + Labels map[string]string `json:"labels,omitempty"` + // LoadBalancingScheme: Required. All backend services and forwarding rules + // referenced by this extension must share the same load balancing scheme. + // Supported values: `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more + // information, refer to Backend services overview + // (https://cloud.google.com/load-balancing/docs/backend-service). + // + // Possible values: + // "LOAD_BALANCING_SCHEME_UNSPECIFIED" - Default value. Do not use. + // "INTERNAL_MANAGED" - Signifies that this is used for Internal HTTP(S) Load + // Balancing. + // "EXTERNAL_MANAGED" - Signifies that this is used for External Managed + // HTTP(S) Load Balancing. + LoadBalancingScheme string `json:"loadBalancingScheme,omitempty"` + // Metadata: Optional. The metadata provided here is included as part of the + // `metadata_context` (of type `google.protobuf.Struct`) in the + // `ProcessingRequest` message sent to the extension server. The metadata is + // available under the namespace `com.google.authz_extension.`. The following + // variables are supported in the metadata Struct: `{forwarding_rule_id}` - + // substituted with the forwarding rule's fully qualified resource name. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` + // Name: Required. Identifier. Name of the `AuthzExtension` resource in the + // following format: + // `projects/{project}/locations/{location}/authzExtensions/{authz_extension}`. + Name string `json:"name,omitempty"` + // Service: Required. The reference to the service that runs the extension. To + // configure a callout extension, `service` must be a fully-qualified reference + // to a backend service + // (https://cloud.google.com/compute/docs/reference/rest/v1/backendServices) in + // the format: + // `https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/ba + // ckendServices/{backendService}` or + // `https://www.googleapis.com/compute/v1/projects/{project}/global/backendServi + // ces/{backendService}`. + Service string `json:"service,omitempty"` + // Timeout: Required. Specifies the timeout for each individual message on the + // stream. The timeout must be between 10-10000 milliseconds. + Timeout string `json:"timeout,omitempty"` + // UpdateTime: Output only. The timestamp when the resource was updated. + UpdateTime string `json:"updateTime,omitempty"` + // WireFormat: Optional. The format of communication supported by the callout + // extension. If not specified, the default is `EXT_PROC_GRPC`. + // + // Possible values: + // "WIRE_FORMAT_UNSPECIFIED" - Not specified. + // "EXT_PROC_GRPC" - The extension service uses ExtProc GRPC API over a gRPC + // stream. This is the default value if the wire format is not specified. The + // backend service for the extension must use HTTP2 or H2C as the protocol. All + // `supported_events` for a client request will be sent as part of the same + // gRPC stream. + WireFormat string `json:"wireFormat,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Authority") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Authority") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AuthzExtension) MarshalJSON() ([]byte, error) { + type NoMethod AuthzExtension + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Binding: Associates `members`, or principals, with a `role`. type Binding struct { // Condition: The condition that is associated with this binding. If the @@ -825,7 +961,8 @@ func (s ExtensionChain) MarshalJSON() ([]byte, error) { type ExtensionChainExtension struct { // Authority: Optional. The `:authority` header in the gRPC request sent from // Envoy to the extension service. Required for Callout extensions. This field - // is not supported for plugin extensions and must not be set. + // is not supported for plugin extensions. Setting it results in a validation + // error. Authority string `json:"authority,omitempty"` // FailOpen: Optional. Determines how the proxy behaves if the call to the // extension fails or times out. When set to `TRUE`, request or response @@ -849,7 +986,8 @@ type ExtensionChainExtension struct { // `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`. The // following variables are supported in the metadata: `{forwarding_rule_id}` - // substituted with the forwarding rule's fully qualified resource name. This - // field is not supported for plugin extensions and must not be set. + // field is not supported for plugin extensions. Setting it results in a + // validation error. Metadata googleapi.RawMessage `json:"metadata,omitempty"` // Name: Required. The name for this extension. The name is logged as part of // the HTTP request logs. The name must conform with RFC-1034, is restricted to @@ -857,27 +995,27 @@ type ExtensionChainExtension struct { // 63 characters. Additionally, the first character must be a letter and the // last a letter or a number. Name string `json:"name,omitempty"` - // Service: Required. The reference to the service that runs the extension. - // Currently only callout extensions are supported here. To configure a callout - // extension, `service` must be a fully-qualified reference to a backend - // service + // Service: Required. The reference to the service that runs the extension. To + // configure a callout extension, `service` must be a fully-qualified reference + // to a backend service // (https://cloud.google.com/compute/docs/reference/rest/v1/backendServices) in // the format: // `https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/ba // ckendServices/{backendService}` or // `https://www.googleapis.com/compute/v1/projects/{project}/global/backendServi - // ces/{backendService}`. To configure a plugin extension, this must be a - // reference to a wasm plugin + // ces/{backendService}`. To configure a plugin extension, `service` must be a + // reference to a `WasmPlugin` resource // (https://cloud.google.com/service-extensions/docs/reference/rest/v1beta1/projects.locations.wasmPlugins) // in the format: // `projects/{project}/locations/{location}/wasmPlugins/{plugin}` or // `//networkservices.googleapis.com/projects/{project}/locations/{location}/was - // mPlugins/{wasmPlugin}`. + // mPlugins/{wasmPlugin}`. Plugin extensions are currently supported for the + // `LbTrafficExtension` and the `LbRouteExtension` resources. Service string `json:"service,omitempty"` // SupportedEvents: Optional. A set of events during request or response // processing for which this extension is called. This field is required for // the `LbTrafficExtension` resource. It must not be set for the - // `LbRouteExtension` resource. + // `LbRouteExtension` resource, otherwise a validation error is returned. // // Possible values: // "EVENT_TYPE_UNSPECIFIED" - Unspecified value. Do not use. @@ -895,9 +1033,9 @@ type ExtensionChainExtension struct { // called when the HTTP response trailers arrives. SupportedEvents []string `json:"supportedEvents,omitempty"` // Timeout: Optional. Specifies the timeout for each individual message on the - // stream. The timeout must be between 10-1000 milliseconds. Required for - // callout extensions. This field is not supported for plugin extensions and - // must not be set. + // stream. The timeout must be between `10`-`1000` milliseconds. Required for + // callout extensions. This field is not supported for plugin extensions. + // Setting it results in a validation error. Timeout string `json:"timeout,omitempty"` // ForceSendFields is a list of field names (e.g. "Authority") to // unconditionally include in API requests. By default, fields with empty or @@ -1072,6 +1210,44 @@ func (s Gateway) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GatewayRouteView: GatewayRouteView defines view-only resource for Routes to +// a Gateway +type GatewayRouteView struct { + // Name: Output only. Identifier. Full path name of the GatewayRouteView + // resource. Format: + // projects/{project_number}/locations/{location}/gateways/{gateway_name}/routeV + // iews/{route_view_name} + Name string `json:"name,omitempty"` + // RouteId: Output only. The resource id for the route. + RouteId string `json:"routeId,omitempty"` + // RouteLocation: Output only. Location where the route exists. + RouteLocation string `json:"routeLocation,omitempty"` + // RouteProjectNumber: Output only. Project number where the route exists. + RouteProjectNumber int64 `json:"routeProjectNumber,omitempty,string"` + // RouteType: Output only. Type of the route: HttpRoute,GrpcRoute,TcpRoute, or + // TlsRoute + RouteType string `json:"routeType,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GatewayRouteView) MarshalJSON() ([]byte, error) { + type NoMethod GatewayRouteView + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GrpcRoute: GrpcRoute is the resource defining how gRPC traffic routed by a // Mesh or Gateway resource is routed. type GrpcRoute struct { @@ -2267,7 +2443,7 @@ type LbRouteExtension struct { // chains per resource. ExtensionChains []*ExtensionChain `json:"extensionChains,omitempty"` // ForwardingRules: Required. A list of references to the forwarding rules to - // which this service extension is attached to. At least one forwarding rule is + // which this service extension is attached. At least one forwarding rule is // required. There can be only one `LbRouteExtension` resource per forwarding // rule. ForwardingRules []string `json:"forwardingRules,omitempty"` @@ -2295,8 +2471,8 @@ type LbRouteExtension struct { // available under the namespace `com.google.lb_route_extension.`. The // following variables are supported in the metadata Struct: // `{forwarding_rule_id}` - substituted with the forwarding rule's fully - // qualified resource name. This field is not supported for plugin extensions - // and must not be set. + // qualified resource name. This field is not supported for plugin extensions. + // Setting it results in a validation error. Metadata googleapi.RawMessage `json:"metadata,omitempty"` // Name: Required. Identifier. Name of the `LbRouteExtension` resource in the // following format: @@ -2342,8 +2518,8 @@ type LbTrafficExtension struct { // Any subsequent extension chains do not execute. Limited to 5 extension // chains per resource. ExtensionChains []*ExtensionChain `json:"extensionChains,omitempty"` - // ForwardingRules: Required. A list of references to the forwarding rules to - // which this service extension is attached to. At least one forwarding rule is + // ForwardingRules: Optional. A list of references to the forwarding rules to + // which this service extension is attached. At least one forwarding rule is // required. There can be only one `LBTrafficExtension` resource per forwarding // rule. ForwardingRules []string `json:"forwardingRules,omitempty"` @@ -2370,7 +2546,8 @@ type LbTrafficExtension struct { // is available under the key `com.google.lb_traffic_extension.`. The following // variables are supported in the metadata: `{forwarding_rule_id}` - // substituted with the forwarding rule's fully qualified resource name. This - // field is not supported for plugin extensions and must not be set. + // field is not supported for plugin extensions. Setting it results in a + // validation error. Metadata googleapi.RawMessage `json:"metadata,omitempty"` // Name: Required. Identifier. Name of the `LbTrafficExtension` resource in the // following format: @@ -2400,6 +2577,37 @@ func (s LbTrafficExtension) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// ListAuthzExtensionsResponse: Message for response to listing +// `AuthzExtension` resources. +type ListAuthzExtensionsResponse struct { + // AuthzExtensions: The list of `AuthzExtension` resources. + AuthzExtensions []*AuthzExtension `json:"authzExtensions,omitempty"` + // NextPageToken: A token identifying a page of results that the server + // returns. + NextPageToken string `json:"nextPageToken,omitempty"` + // Unreachable: Locations that could not be reached. + Unreachable []string `json:"unreachable,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "AuthzExtensions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AuthzExtensions") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ListAuthzExtensionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListAuthzExtensionsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // ListEndpointPoliciesResponse: Response returned by the ListEndpointPolicies // method. type ListEndpointPoliciesResponse struct { @@ -2431,6 +2639,35 @@ func (s ListEndpointPoliciesResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// ListGatewayRouteViewsResponse: Response returned by the +// ListGatewayRouteViews method. +type ListGatewayRouteViewsResponse struct { + // GatewayRouteViews: List of GatewayRouteView resources. + GatewayRouteViews []*GatewayRouteView `json:"gatewayRouteViews,omitempty"` + // NextPageToken: A token, which can be sent as `page_token` to retrieve the + // next page. If this field is omitted, there are no subsequent pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "GatewayRouteViews") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "GatewayRouteViews") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ListGatewayRouteViewsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListGatewayRouteViewsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // ListGatewaysResponse: Response returned by the ListGateways method. type ListGatewaysResponse struct { // Gateways: List of Gateway resources. @@ -2613,6 +2850,35 @@ func (s ListLocationsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// ListMeshRouteViewsResponse: Response returned by the ListMeshRouteViews +// method. +type ListMeshRouteViewsResponse struct { + // MeshRouteViews: List of MeshRouteView resources. + MeshRouteViews []*MeshRouteView `json:"meshRouteViews,omitempty"` + // NextPageToken: A token, which can be sent as `page_token` to retrieve the + // next page. If this field is omitted, there are no subsequent pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "MeshRouteViews") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "MeshRouteViews") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ListMeshRouteViewsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListMeshRouteViewsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // ListMeshesResponse: Response returned by the ListMeshes method. type ListMeshesResponse struct { // Meshes: List of Mesh resources. @@ -2991,6 +3257,43 @@ func (s Mesh) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// MeshRouteView: MeshRouteView defines view-only resource for Routes to a Mesh +type MeshRouteView struct { + // Name: Output only. Identifier. Full path name of the MeshRouteView resource. + // Format: + // projects/{project_number}/locations/{location}/meshes/{mesh_name}/routeViews/ + // {route_view_name} + Name string `json:"name,omitempty"` + // RouteId: Output only. The resource id for the route. + RouteId string `json:"routeId,omitempty"` + // RouteLocation: Output only. Location where the route exists. + RouteLocation string `json:"routeLocation,omitempty"` + // RouteProjectNumber: Output only. Project number where the route exists. + RouteProjectNumber int64 `json:"routeProjectNumber,omitempty,string"` + // RouteType: Output only. Type of the route: HttpRoute,GrpcRoute,TcpRoute, or + // TlsRoute + RouteType string `json:"routeType,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s MeshRouteView) MarshalJSON() ([]byte, error) { + type NoMethod MeshRouteView + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Operation: This resource represents a long-running operation that is the // result of a network API call. type Operation struct { @@ -3852,9 +4155,9 @@ type WasmPlugin struct { // (/compute/docs/labeling-resources#requirements). Labels map[string]string `json:"labels,omitempty"` // LogConfig: Optional. Specifies the logging options for the activity - // performed by this `WasmPlugin`. If logging is enabled, plugin logs are - // exported to Cloud Logging. Note that the settings relate to the logs - // generated by using logging statements in your Wasm code. + // performed by this plugin. If logging is enabled, plugin logs are exported to + // Cloud Logging. Note that the settings relate to the logs generated by using + // logging statements in your Wasm code. LogConfig *WasmPluginLogConfig `json:"logConfig,omitempty"` // MainVersionId: Optional. The ID of the `WasmPluginVersion` resource that is // the currently serving one. The version referred to must be a child of this @@ -3865,21 +4168,21 @@ type WasmPlugin struct { Name string `json:"name,omitempty"` // UpdateTime: Output only. The timestamp when the resource was updated. UpdateTime string `json:"updateTime,omitempty"` - // UsedBy: Output only. List of all Service Extensions + // UsedBy: Output only. List of all extensions // (https://cloud.google.com/service-extensions/docs/overview) that use this - // `WasmPlugin`. + // `WasmPlugin` resource. UsedBy []*WasmPluginUsedBy `json:"usedBy,omitempty"` - // Versions: Optional. All versions of this `WasmPlugin` in the key-value - // format. The key is the resource ID, the value is the `VersionDetails`. - // Allows to create or update `WasmPlugin` and its WasmPluginVersions in a - // single request. When the `main_version_id` field is not empty it must point - // to one of the VersionDetails in the map. If provided in the update request, - // the new versions replace the previous set. Any version omitted from the - // `versions` will be removed. Since the `WasmPluginVersion` resource is - // immutable, if the WasmPluginVersion with the same name already exists and - // differs the Update request will fail. Note: In the GET request, this field - // is populated only if the GetWasmPluginRequest.view is set to - // WASM_PLUGIN_VIEW_FULL. + // Versions: Optional. All versions of this `WasmPlugin` resource in the + // key-value format. The key is the resource ID, and the value is the + // `VersionDetails` object. Lets you create or update a `WasmPlugin` resource + // and its versions in a single request. When the `main_version_id` field is + // not empty, it must point to one of the `VersionDetails` objects in the map. + // If provided in a `PATCH` request, the new versions replace the previous set. + // Any version omitted from the `versions` field is removed. Because the + // `WasmPluginVersion` resource is immutable, if a `WasmPluginVersion` resource + // with the same name already exists and differs, the request fails. Note: In a + // `GET` request, this field is populated only if the field + // `GetWasmPluginRequest.view` is set to `WASM_PLUGIN_VIEW_FULL`. Versions map[string]WasmPluginVersionDetails `json:"versions,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. @@ -3903,21 +4206,20 @@ func (s WasmPlugin) MarshalJSON() ([]byte, error) { } // WasmPluginLogConfig: Specifies the logging options for the activity -// performed by this `WasmPlugin`. If logging is enabled, plugin logs are -// exported to Cloud Logging. +// performed by this plugin. If logging is enabled, plugin logs are exported to +// Cloud Logging. type WasmPluginLogConfig struct { // Enable: Optional. Specifies whether to enable logging for activity by this - // `WasmPlugin`. Defaults to `false`. + // plugin. Defaults to `false`. Enable bool `json:"enable,omitempty"` // MinLogLevel: Non-empty default. Specificies the lowest level of the plugin // logs that are exported to Cloud Logging. This setting relates to the logs // generated by using logging statements in your Wasm code. This field is can - // be set only if logging is enabled for the `WasmPlugin` resource. If the - // field is not provided when logging is enabled, it is set to `INFO` by - // default. + // be set only if logging is enabled for the plugin. If the field is not + // provided when logging is enabled, it is set to `INFO` by default. // // Possible values: - // "LOG_LEVEL_UNSPECIFIED" - Unspecified value. + // "LOG_LEVEL_UNSPECIFIED" - Unspecified value. Defaults to `LogLevel.INFO`. // "TRACE" - Report logs with TRACE level and above. // "DEBUG" - Report logs with DEBUG level and above. // "INFO" - Report logs with INFO level and above. @@ -3930,8 +4232,8 @@ type WasmPluginLogConfig struct { // activity is reported. A floating point value between `0.0` and `1.0` // indicates that a percentage of log messages is stored. The default value // when logging is enabled is `1.0`. The value of the field must be between `0` - // and `1` (inclusive). This field can only be specified if logging is enabled - // for this `WasmPlugin`. + // and `1` (inclusive). This field can be specified only if logging is enabled + // for this plugin. SampleRate float64 `json:"sampleRate,omitempty"` // ForceSendFields is a list of field names (e.g. "Enable") to unconditionally // include in API requests. By default, fields with empty or default values are @@ -3965,10 +4267,10 @@ func (s *WasmPluginLogConfig) UnmarshalJSON(data []byte) error { return nil } -// WasmPluginUsedBy: Defines a resource that uses the `WasmPlugin`. +// WasmPluginUsedBy: Defines a resource that uses the `WasmPlugin` resource. type WasmPluginUsedBy struct { // Name: Output only. Full name of the resource - // https://google.aip.dev/122#full-resource-names, e.g. + // https://google.aip.dev/122#full-resource-names, for example // `//networkservices.googleapis.com/projects/{project}/locations/{location}/lbR // outeExtensions/{extension}` Name string `json:"name,omitempty"` @@ -3990,20 +4292,20 @@ func (s WasmPluginUsedBy) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// WasmPluginVersion: A single immutable version of a `WasmPlugin`. Defines the -// Wasm module used and optionally its runtime config. +// WasmPluginVersion: A single immutable version of a `WasmPlugin` resource. +// Defines the Wasm module used and optionally its runtime config. type WasmPluginVersion struct { // CreateTime: Output only. The timestamp when the resource was created. CreateTime string `json:"createTime,omitempty"` // Description: Optional. A human-readable description of the resource. Description string `json:"description,omitempty"` - // ImageDigest: Output only. The resolved digest for the image specified in - // `image`. The digest is resolved during the creation of `WasmPluginVersion` - // resource. This field holds the digest value regardless of whether a tag or - // digest was originally specified in the `image` field. + // ImageDigest: Output only. The resolved digest for the image specified in the + // `image` field. The digest is resolved during the creation of + // `WasmPluginVersion` resource. This field holds the digest value, regardless + // of whether a tag or digest was originally specified in the `image` field. ImageDigest string `json:"imageDigest,omitempty"` - // ImageUri: Optional. URI of the container image containing the Wasm plugin, - // stored in the Artifact Registry. When a new `WasmPluginVersion` resource is + // ImageUri: Optional. URI of the container image containing the plugin, stored + // in the Artifact Registry. When a new `WasmPluginVersion` resource is // created, the digest of the container image is saved in the `image_digest` // field. When downloading an image, the digest value is used instead of an // image tag. @@ -4015,17 +4317,17 @@ type WasmPluginVersion struct { // format: `projects/{project}/locations/{location}/wasmPlugins/{wasm_plugin}/ // versions/{wasm_plugin_version}`. Name string `json:"name,omitempty"` - // PluginConfigData: Configuration for the Wasm plugin. The configuration is - // provided to the Wasm plugin at runtime through the `ON_CONFIGURE` callback. - // When a new `WasmPluginVersion` resource is created, the digest of the - // contents is saved in the `plugin_config_digest` field. + // PluginConfigData: Configuration for the plugin. The configuration is + // provided to the plugin at runtime through the `ON_CONFIGURE` callback. When + // a new `WasmPluginVersion` resource is created, the digest of the contents is + // saved in the `plugin_config_digest` field. PluginConfigData string `json:"pluginConfigData,omitempty"` // PluginConfigDigest: Output only. This field holds the digest (usually // checksum) value for the plugin configuration. The value is calculated based - // on the contents of the `plugin_config_data` or the container image defined - // by the `plugin_config_uri` field. + // on the contents of `plugin_config_data` or the container image defined by + // the `plugin_config_uri` field. PluginConfigDigest string `json:"pluginConfigDigest,omitempty"` - // PluginConfigUri: URI of the Wasm plugin configuration stored in the Artifact + // PluginConfigUri: URI of the plugin configuration stored in the Artifact // Registry. The configuration is provided to the plugin at runtime through the // `ON_CONFIGURE` callback. The container image must contain only a single file // with the name `plugin.config`. When a new `WasmPluginVersion` resource is @@ -4076,21 +4378,21 @@ type WasmPluginVersionDetails struct { // Labels: Optional. Set of labels associated with the `WasmPluginVersion` // resource. Labels map[string]string `json:"labels,omitempty"` - // PluginConfigData: Configuration for the Wasm plugin. The configuration is - // provided to the Wasm plugin at runtime through the `ON_CONFIGURE` callback. - // When a new `WasmPluginVersion` version is created, the digest of the - // contents is saved in the `plugin_config_digest` field. + // PluginConfigData: Configuration for the plugin. The configuration is + // provided to the plugin at runtime through the `ON_CONFIGURE` callback. When + // a new `WasmPluginVersion` version is created, the digest of the contents is + // saved in the `plugin_config_digest` field. PluginConfigData string `json:"pluginConfigData,omitempty"` // PluginConfigDigest: Output only. This field holds the digest (usually // checksum) value for the plugin configuration. The value is calculated based - // on the contents of the `plugin_config_data` or the container image defined - // by the `plugin_config_uri` field. + // on the contents of the `plugin_config_data` field or the container image + // defined by the `plugin_config_uri` field. PluginConfigDigest string `json:"pluginConfigDigest,omitempty"` - // PluginConfigUri: URI of the WasmPlugin configuration stored in the Artifact - // Registry. The configuration is provided to the Wasm plugin at runtime - // through the `ON_CONFIGURE` callback. The container image must contain only a - // single file with the name `plugin.config`. When a new `WasmPluginVersion` - // resource is created, the digest of the container image is saved in the + // PluginConfigUri: URI of the plugin configuration stored in the Artifact + // Registry. The configuration is provided to the plugin at runtime through the + // `ON_CONFIGURE` callback. The container image must contain only a single file + // with the name `plugin.config`. When a new `WasmPluginVersion` resource is + // created, the digest of the container image is saved in the // `plugin_config_digest` field. PluginConfigUri string `json:"pluginConfigUri,omitempty"` // UpdateTime: Output only. The timestamp when the resource was updated. @@ -4373,57 +4675,696 @@ func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocat } } -type ProjectsLocationsEdgeCacheKeysetsGetIamPolicyCall struct { - s *Service - resource string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsAuthzExtensionsCreateCall struct { + s *Service + parent string + authzextension *AuthzExtension + 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. +// Create: Creates a new `AuthzExtension` resource in a given project and +// location. // -// - 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 *ProjectsLocationsEdgeCacheKeysetsService) GetIamPolicy(resource string) *ProjectsLocationsEdgeCacheKeysetsGetIamPolicyCall { - c := &ProjectsLocationsEdgeCacheKeysetsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource +// - parent: The parent resource of the `AuthzExtension` resource. Must be in +// the format `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsAuthzExtensionsService) Create(parent string, authzextension *AuthzExtension) *ProjectsLocationsAuthzExtensionsCreateCall { + c := &ProjectsLocationsAuthzExtensionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.authzextension = authzextension 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 *ProjectsLocationsEdgeCacheKeysetsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsEdgeCacheKeysetsGetIamPolicyCall { - c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) +// AuthzExtensionId sets the optional parameter "authzExtensionId": Required. +// User-provided ID of the `AuthzExtension` resource to be created. +func (c *ProjectsLocationsAuthzExtensionsCreateCall) AuthzExtensionId(authzExtensionId string) *ProjectsLocationsAuthzExtensionsCreateCall { + c.urlParams_.Set("authzExtensionId", authzExtensionId) + return c +} + +// RequestId sets the optional parameter "requestId": An optional request ID to +// identify requests. Specify a unique request ID so that if you must retry +// your request, the server can ignore the request if it has already been +// completed. The server guarantees that for at least 60 minutes since the +// first request. For example, consider a situation where you make an initial +// request and the request times out. If you make the request again with the +// same request ID, the server can check if original operation with the same +// request ID was received, and if so, ignores the second request. This +// prevents clients from accidentally creating duplicate commitments. The +// request ID must be a valid UUID with the exception that zero UUID is not +// supported (00000000-0000-0000-0000-000000000000). +func (c *ProjectsLocationsAuthzExtensionsCreateCall) RequestId(requestId string) *ProjectsLocationsAuthzExtensionsCreateCall { + c.urlParams_.Set("requestId", requestId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsEdgeCacheKeysetsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsEdgeCacheKeysetsGetIamPolicyCall { +func (c *ProjectsLocationsAuthzExtensionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthzExtensionsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *ProjectsLocationsEdgeCacheKeysetsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsEdgeCacheKeysetsGetIamPolicyCall { - c.ifNoneMatch_ = entityTag +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAuthzExtensionsCreateCall) Context(ctx context.Context) *ProjectsLocationsAuthzExtensionsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAuthzExtensionsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthzExtensionsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.authzextension) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/authzExtensions") + 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 "networkservices.projects.locations.authzExtensions.create" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsAuthzExtensionsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsAuthzExtensionsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes the specified `AuthzExtension` resource. +// +// - name: The name of the `AuthzExtension` resource to delete. Must be in the +// format +// `projects/{project}/locations/{location}/authzExtensions/{authz_extension}` +// . +func (r *ProjectsLocationsAuthzExtensionsService) Delete(name string) *ProjectsLocationsAuthzExtensionsDeleteCall { + c := &ProjectsLocationsAuthzExtensionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// RequestId sets the optional parameter "requestId": An optional request ID to +// identify requests. Specify a unique request ID so that if you must retry +// your request, the server can ignore the request if it has already been +// completed. The server guarantees that for at least 60 minutes after the +// first request. For example, consider a situation where you make an initial +// request and the request times out. If you make the request again with the +// same request ID, the server can check if original operation with the same +// request ID was received, and if so, ignores the second request. This +// prevents clients from accidentally creating duplicate commitments. The +// request ID must be a valid UUID with the exception that zero UUID is not +// supported (00000000-0000-0000-0000-000000000000). +func (c *ProjectsLocationsAuthzExtensionsDeleteCall) RequestId(requestId string) *ProjectsLocationsAuthzExtensionsDeleteCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAuthzExtensionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthzExtensionsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAuthzExtensionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAuthzExtensionsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAuthzExtensionsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthzExtensionsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "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 "networkservices.projects.locations.authzExtensions.delete" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsAuthzExtensionsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsAuthzExtensionsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets details of the specified `AuthzExtension` resource. +// +// - name: A name of the `AuthzExtension` resource to get. Must be in the +// format +// `projects/{project}/locations/{location}/authzExtensions/{authz_extension}` +// . +func (r *ProjectsLocationsAuthzExtensionsService) Get(name string) *ProjectsLocationsAuthzExtensionsGetCall { + c := &ProjectsLocationsAuthzExtensionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAuthzExtensionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthzExtensionsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsAuthzExtensionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthzExtensionsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAuthzExtensionsGetCall) Context(ctx context.Context) *ProjectsLocationsAuthzExtensionsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAuthzExtensionsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthzExtensionsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networkservices.projects.locations.authzExtensions.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *AuthzExtension.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 *ProjectsLocationsAuthzExtensionsGetCall) Do(opts ...googleapi.CallOption) (*AuthzExtension, 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 := &AuthzExtension{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsAuthzExtensionsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists `AuthzExtension` resources in a given project and location. +// +// - parent: The project and location from which the `AuthzExtension` resources +// are listed, specified in the following format: +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsAuthzExtensionsService) List(parent string) *ProjectsLocationsAuthzExtensionsListCall { + c := &ProjectsLocationsAuthzExtensionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filtering results. +func (c *ProjectsLocationsAuthzExtensionsListCall) Filter(filter string) *ProjectsLocationsAuthzExtensionsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": Hint for how to order the +// results. +func (c *ProjectsLocationsAuthzExtensionsListCall) OrderBy(orderBy string) *ProjectsLocationsAuthzExtensionsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": Requested page size. The +// server might return fewer items than requested. If unspecified, the server +// picks an appropriate default. +func (c *ProjectsLocationsAuthzExtensionsListCall) PageSize(pageSize int64) *ProjectsLocationsAuthzExtensionsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results that the server returns. +func (c *ProjectsLocationsAuthzExtensionsListCall) PageToken(pageToken string) *ProjectsLocationsAuthzExtensionsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAuthzExtensionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthzExtensionsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsAuthzExtensionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthzExtensionsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAuthzExtensionsListCall) Context(ctx context.Context) *ProjectsLocationsAuthzExtensionsListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAuthzExtensionsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthzExtensionsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/authzExtensions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networkservices.projects.locations.authzExtensions.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListAuthzExtensionsResponse.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 *ProjectsLocationsAuthzExtensionsListCall) Do(opts ...googleapi.CallOption) (*ListAuthzExtensionsResponse, 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 := &ListAuthzExtensionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsAuthzExtensionsListCall) Pages(ctx context.Context, f func(*ListAuthzExtensionsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type ProjectsLocationsAuthzExtensionsPatchCall struct { + s *Service + name string + authzextension *AuthzExtension + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates the parameters of the specified `AuthzExtension` resource. +// +// - name: Identifier. Name of the `AuthzExtension` resource in the following +// format: +// `projects/{project}/locations/{location}/authzExtensions/{authz_extension}` +// . +func (r *ProjectsLocationsAuthzExtensionsService) Patch(name string, authzextension *AuthzExtension) *ProjectsLocationsAuthzExtensionsPatchCall { + c := &ProjectsLocationsAuthzExtensionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.authzextension = authzextension + return c +} + +// RequestId sets the optional parameter "requestId": An optional request ID to +// identify requests. Specify a unique request ID so that if you must retry +// your request, the server can ignore the request if it has already been +// completed. The server guarantees that for at least 60 minutes since the +// first request. For example, consider a situation where you make an initial +// request and the request times out. If you make the request again with the +// same request ID, the server can check if original operation with the same +// request ID was received, and if so, ignores the second request. This +// prevents clients from accidentally creating duplicate commitments. The +// request ID must be a valid UUID with the exception that zero UUID is not +// supported (00000000-0000-0000-0000-000000000000). +func (c *ProjectsLocationsAuthzExtensionsPatchCall) RequestId(requestId string) *ProjectsLocationsAuthzExtensionsPatchCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. Used to +// specify the fields to be overwritten in the `AuthzExtension` resource by the +// update. The fields specified in the `update_mask` are relative to the +// resource, not the full request. A field is overwritten if it is in the mask. +// If the user does not specify a mask, then all fields are overwritten. +func (c *ProjectsLocationsAuthzExtensionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAuthzExtensionsPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAuthzExtensionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthzExtensionsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAuthzExtensionsPatchCall) Context(ctx context.Context) *ProjectsLocationsAuthzExtensionsPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAuthzExtensionsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthzExtensionsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.authzextension) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networkservices.projects.locations.authzExtensions.patch" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsAuthzExtensionsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsEdgeCacheKeysetsGetIamPolicyCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + 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 *ProjectsLocationsEdgeCacheKeysetsService) GetIamPolicy(resource string) *ProjectsLocationsEdgeCacheKeysetsGetIamPolicyCall { + c := &ProjectsLocationsEdgeCacheKeysetsGetIamPolicyCall{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 *ProjectsLocationsEdgeCacheKeysetsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsEdgeCacheKeysetsGetIamPolicyCall { + 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 +// details. +func (c *ProjectsLocationsEdgeCacheKeysetsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsEdgeCacheKeysetsGetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsEdgeCacheKeysetsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsEdgeCacheKeysetsGetIamPolicyCall { + c.ifNoneMatch_ = entityTag return c } @@ -6489,25 +7430,260 @@ func (c *ProjectsLocationsGatewaysPatchCall) doRequest(alt string) (*http.Respon } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + 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 "networkservices.projects.locations.gateways.patch" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsGatewaysPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsGatewaysRouteViewsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Get a single RouteView of a Gateway. +// +// - name: Name of the GatewayRouteView resource. Formats: +// projects/{project_number}/locations/{location}/gateways/{gateway_name}/rout +// eViews/{route_view_name}. +func (r *ProjectsLocationsGatewaysRouteViewsService) Get(name string) *ProjectsLocationsGatewaysRouteViewsGetCall { + c := &ProjectsLocationsGatewaysRouteViewsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsGatewaysRouteViewsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGatewaysRouteViewsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsGatewaysRouteViewsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGatewaysRouteViewsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsGatewaysRouteViewsGetCall) Context(ctx context.Context) *ProjectsLocationsGatewaysRouteViewsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsGatewaysRouteViewsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGatewaysRouteViewsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networkservices.projects.locations.gateways.routeViews.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *GatewayRouteView.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 *ProjectsLocationsGatewaysRouteViewsGetCall) Do(opts ...googleapi.CallOption) (*GatewayRouteView, 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 := &GatewayRouteView{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsGatewaysRouteViewsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists RouteViews +// +// - parent: The Gateway to which a Route is associated. Formats: +// projects/{project_number}/locations/{location}/gateways/{gateway_name}. +func (r *ProjectsLocationsGatewaysRouteViewsService) List(parent string) *ProjectsLocationsGatewaysRouteViewsListCall { + c := &ProjectsLocationsGatewaysRouteViewsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// GatewayRouteViews to return per call. +func (c *ProjectsLocationsGatewaysRouteViewsListCall) PageSize(pageSize int64) *ProjectsLocationsGatewaysRouteViewsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The value returned by the +// last `ListGatewayRouteViewsResponse` Indicates that this is a continuation +// of a prior `ListGatewayRouteViews` call, and that the system should return +// the next page of data. +func (c *ProjectsLocationsGatewaysRouteViewsListCall) PageToken(pageToken string) *ProjectsLocationsGatewaysRouteViewsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsGatewaysRouteViewsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsGatewaysRouteViewsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsGatewaysRouteViewsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsGatewaysRouteViewsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsGatewaysRouteViewsListCall) Context(ctx context.Context) *ProjectsLocationsGatewaysRouteViewsListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsGatewaysRouteViewsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGatewaysRouteViewsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/routeViews") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networkservices.projects.locations.gateways.patch" call. +// Do executes the "networkservices.projects.locations.gateways.routeViews.list" call. // Any non-2xx status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was returned. -func (c *ProjectsLocationsGatewaysPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// *ListGatewayRouteViewsResponse.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 *ProjectsLocationsGatewaysRouteViewsListCall) Do(opts ...googleapi.CallOption) (*ListGatewayRouteViewsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6526,7 +7702,7 @@ func (c *ProjectsLocationsGatewaysPatchCall) Do(opts ...googleapi.CallOption) (* if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &ListGatewayRouteViewsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6539,6 +7715,27 @@ func (c *ProjectsLocationsGatewaysPatchCall) Do(opts ...googleapi.CallOption) (* return ret, nil } +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsGatewaysRouteViewsListCall) Pages(ctx context.Context, f func(*ListGatewayRouteViewsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + type ProjectsLocationsGrpcRoutesCreateCall struct { s *Service parent string @@ -9535,6 +10732,261 @@ func (c *ProjectsLocationsMeshesPatchCall) Do(opts ...googleapi.CallOption) (*Op return ret, nil } +type ProjectsLocationsMeshesRouteViewsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Get a single RouteView of a Mesh. +// +// - name: Name of the MeshRouteView resource. Format: +// projects/{project_number}/locations/{location}/meshes/{mesh_name}/routeView +// s/{route_view_name}. +func (r *ProjectsLocationsMeshesRouteViewsService) Get(name string) *ProjectsLocationsMeshesRouteViewsGetCall { + c := &ProjectsLocationsMeshesRouteViewsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsMeshesRouteViewsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsMeshesRouteViewsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsMeshesRouteViewsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsMeshesRouteViewsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsMeshesRouteViewsGetCall) Context(ctx context.Context) *ProjectsLocationsMeshesRouteViewsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsMeshesRouteViewsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsMeshesRouteViewsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networkservices.projects.locations.meshes.routeViews.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *MeshRouteView.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 *ProjectsLocationsMeshesRouteViewsGetCall) Do(opts ...googleapi.CallOption) (*MeshRouteView, 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 := &MeshRouteView{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsMeshesRouteViewsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists RouteViews +// +// - parent: The Mesh to which a Route is associated. Format: +// projects/{project_number}/locations/{location}/meshes/{mesh_name}. +func (r *ProjectsLocationsMeshesRouteViewsService) List(parent string) *ProjectsLocationsMeshesRouteViewsListCall { + c := &ProjectsLocationsMeshesRouteViewsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// MeshRouteViews to return per call. +func (c *ProjectsLocationsMeshesRouteViewsListCall) PageSize(pageSize int64) *ProjectsLocationsMeshesRouteViewsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The value returned by the +// last `ListMeshRouteViewsResponse` Indicates that this is a continuation of a +// prior `ListMeshRouteViews` call, and that the system should return the next +// page of data. +func (c *ProjectsLocationsMeshesRouteViewsListCall) PageToken(pageToken string) *ProjectsLocationsMeshesRouteViewsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsMeshesRouteViewsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsMeshesRouteViewsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsMeshesRouteViewsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsMeshesRouteViewsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsMeshesRouteViewsListCall) Context(ctx context.Context) *ProjectsLocationsMeshesRouteViewsListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsMeshesRouteViewsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsMeshesRouteViewsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/routeViews") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networkservices.projects.locations.meshes.routeViews.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListMeshRouteViewsResponse.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 *ProjectsLocationsMeshesRouteViewsListCall) Do(opts ...googleapi.CallOption) (*ListMeshRouteViewsResponse, 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 := &ListMeshRouteViewsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsMeshesRouteViewsListCall) Pages(ctx context.Context, f func(*ListMeshRouteViewsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + type ProjectsLocationsOperationsCancelCall struct { s *Service name string @@ -12404,19 +13856,21 @@ func (r *ProjectsLocationsWasmPluginsService) Get(name string) *ProjectsLocation return c } -// View sets the optional parameter "view": Determine how much data should be -// returned by the API. See AIP-157 (https://google.aip.dev/157). +// View sets the optional parameter "view": Determines how much data must be +// returned in the response. See AIP-157 (https://google.aip.dev/157). // // Possible values: // -// "WASM_PLUGIN_VIEW_UNSPECIFIED" - The default / unset value. The API will +// "WASM_PLUGIN_VIEW_UNSPECIFIED" - Unspecified value. Do not use. +// "WASM_PLUGIN_VIEW_BASIC" - If specified in the `GET` request for a // -// default to the BASIC view. +// `WasmPlugin` resource, the server's response includes just the `WasmPlugin` +// resource. // -// "WASM_PLUGIN_VIEW_BASIC" - Include just WasmPlugin record. -// "WASM_PLUGIN_VIEW_FULL" - Include WasmPlugin record and all its +// "WASM_PLUGIN_VIEW_FULL" - If specified in the `GET` request for a // -// WasmPluginVersions. +// `WasmPlugin` resource, the server's response includes the `WasmPlugin` +// resource with all its versions. func (c *ProjectsLocationsWasmPluginsGetCall) View(view string) *ProjectsLocationsWasmPluginsGetCall { c.urlParams_.Set("view", view) return c @@ -12533,8 +13987,8 @@ func (r *ProjectsLocationsWasmPluginsService) List(parent string) *ProjectsLocat // PageSize sets the optional parameter "pageSize": Maximum number of // `WasmPlugin` resources to return per call. If not specified, at most 50 -// `WasmPlugin`s are returned. The maximum value is 1000; values above 1000 are -// coerced to 1000. +// `WasmPlugin` resources are returned. The maximum value is 1000; values above +// 1000 are coerced to 1000. func (c *ProjectsLocationsWasmPluginsListCall) PageSize(pageSize int64) *ProjectsLocationsWasmPluginsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c @@ -13119,8 +14573,8 @@ func (r *ProjectsLocationsWasmPluginsVersionsService) List(parent string) *Proje // PageSize sets the optional parameter "pageSize": Maximum number of // `WasmPluginVersion` resources to return per call. If not specified, at most -// 50 `WasmPluginVersion`s are returned. The maximum value is 1000; values -// above 1000 are coerced to 1000. +// 50 `WasmPluginVersion` resources are returned. The maximum value is 1000; +// values above 1000 are coerced to 1000. func (c *ProjectsLocationsWasmPluginsVersionsListCall) PageSize(pageSize int64) *ProjectsLocationsWasmPluginsVersionsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c diff --git a/networkservices/v1beta1/networkservices-api.json b/networkservices/v1beta1/networkservices-api.json index e6d34ea1d3b..50d3d071f38 100644 --- a/networkservices/v1beta1/networkservices-api.json +++ b/networkservices/v1beta1/networkservices-api.json @@ -671,6 +671,73 @@ "https://www.googleapis.com/auth/cloud-platform" ] } + }, + "resources": { + "routeViews": { + "methods": { + "get": { + "description": "Get a single RouteView of a Gateway.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/gateways/{gatewaysId}/routeViews/{routeViewsId}", + "httpMethod": "GET", + "id": "networkservices.projects.locations.gateways.routeViews.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the GatewayRouteView resource. Formats: projects/{project_number}/locations/{location}/gateways/{gateway_name}/routeViews/{route_view_name}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/gateways/[^/]+/routeViews/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GatewayRouteView" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists RouteViews", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/gateways/{gatewaysId}/routeViews", + "httpMethod": "GET", + "id": "networkservices.projects.locations.gateways.routeViews.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Maximum number of GatewayRouteViews to return per call.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The value returned by the last `ListGatewayRouteViewsResponse` Indicates that this is a continuation of a prior `ListGatewayRouteViews` call, and that the system should return the next page of data.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The Gateway to which a Route is associated. Formats: projects/{project_number}/locations/{location}/gateways/{gateway_name}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/gateways/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/routeViews", + "response": { + "$ref": "ListGatewayRouteViewsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } } }, "grpcRoutes": { @@ -1506,6 +1573,73 @@ "https://www.googleapis.com/auth/cloud-platform" ] } + }, + "resources": { + "routeViews": { + "methods": { + "get": { + "description": "Get a single RouteView of a Mesh.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/meshes/{meshesId}/routeViews/{routeViewsId}", + "httpMethod": "GET", + "id": "networkservices.projects.locations.meshes.routeViews.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the MeshRouteView resource. Format: projects/{project_number}/locations/{location}/meshes/{mesh_name}/routeViews/{route_view_name}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/meshes/[^/]+/routeViews/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "MeshRouteView" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists RouteViews", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/meshes/{meshesId}/routeViews", + "httpMethod": "GET", + "id": "networkservices.projects.locations.meshes.routeViews.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Maximum number of MeshRouteViews to return per call.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The value returned by the last `ListMeshRouteViewsResponse` Indicates that this is a continuation of a prior `ListMeshRouteViews` call, and that the system should return the next page of data.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The Mesh to which a Route is associated. Format: projects/{project_number}/locations/{location}/meshes/{mesh_name}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/meshes/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/routeViews", + "response": { + "$ref": "ListMeshRouteViewsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } } }, "operations": { @@ -2302,16 +2436,16 @@ "type": "string" }, "view": { - "description": "Determine how much data should be returned by the API. See [AIP-157](https://google.aip.dev/157).", + "description": "Determines how much data must be returned in the response. See [AIP-157](https://google.aip.dev/157).", "enum": [ "WASM_PLUGIN_VIEW_UNSPECIFIED", "WASM_PLUGIN_VIEW_BASIC", "WASM_PLUGIN_VIEW_FULL" ], "enumDescriptions": [ - "The default / unset value. The API will default to the BASIC view.", - "Include just WasmPlugin record.", - "Include WasmPlugin record and all its WasmPluginVersions." + "Unspecified value. Do not use.", + "If specified in the `GET` request for a `WasmPlugin` resource, the server's response includes just the `WasmPlugin` resource.", + "If specified in the `GET` request for a `WasmPlugin` resource, the server's response includes the `WasmPlugin` resource with all its versions." ], "location": "query", "type": "string" @@ -2335,7 +2469,7 @@ ], "parameters": { "pageSize": { - "description": "Maximum number of `WasmPlugin` resources to return per call. If not specified, at most 50 `WasmPlugin`s are returned. The maximum value is 1000; values above 1000 are coerced to 1000.", + "description": "Maximum number of `WasmPlugin` resources to return per call. If not specified, at most 50 `WasmPlugin` resources are returned. The maximum value is 1000; values above 1000 are coerced to 1000.", "format": "int32", "location": "query", "type": "integer" @@ -2492,7 +2626,7 @@ ], "parameters": { "pageSize": { - "description": "Maximum number of `WasmPluginVersion` resources to return per call. If not specified, at most 50 `WasmPluginVersion`s are returned. The maximum value is 1000; values above 1000 are coerced to 1000.", + "description": "Maximum number of `WasmPluginVersion` resources to return per call. If not specified, at most 50 `WasmPluginVersion` resources are returned. The maximum value is 1000; values above 1000 are coerced to 1000.", "format": "int32", "location": "query", "type": "integer" @@ -2527,7 +2661,7 @@ } } }, - "revision": "20241016", + "revision": "20241109", "rootUrl": "https://networkservices.googleapis.com/", "schemas": { "AuthzExtension": { @@ -2740,7 +2874,7 @@ "id": "ExtensionChainExtension", "properties": { "authority": { - "description": "Optional. The `:authority` header in the gRPC request sent from Envoy to the extension service. Required for Callout extensions. This field is not supported for plugin extensions and must not be set.", + "description": "Optional. The `:authority` header in the gRPC request sent from Envoy to the extension service. Required for Callout extensions. This field is not supported for plugin extensions. Setting it results in a validation error.", "type": "string" }, "failOpen": { @@ -2759,7 +2893,7 @@ "description": "Properties of the object.", "type": "any" }, - "description": "Optional. The metadata provided here is included as part of the `metadata_context` (of type `google.protobuf.Struct`) in the `ProcessingRequest` message sent to the extension server. The metadata is available under the namespace `com.google....`. For example: `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`. The following variables are supported in the metadata: `{forwarding_rule_id}` - substituted with the forwarding rule's fully qualified resource name. This field is not supported for plugin extensions and must not be set.", + "description": "Optional. The metadata provided here is included as part of the `metadata_context` (of type `google.protobuf.Struct`) in the `ProcessingRequest` message sent to the extension server. The metadata is available under the namespace `com.google....`. For example: `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`. The following variables are supported in the metadata: `{forwarding_rule_id}` - substituted with the forwarding rule's fully qualified resource name. This field is not supported for plugin extensions. Setting it results in a validation error.", "type": "object" }, "name": { @@ -2767,11 +2901,11 @@ "type": "string" }, "service": { - "description": "Required. The reference to the service that runs the extension. Currently only callout extensions are supported here. To configure a callout extension, `service` must be a fully-qualified reference to a [backend service](https://cloud.google.com/compute/docs/reference/rest/v1/backendServices) in the format: `https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/backendServices/{backendService}` or `https://www.googleapis.com/compute/v1/projects/{project}/global/backendServices/{backendService}`. To configure a plugin extension, this must be a reference to a [wasm plugin](https://cloud.google.com/service-extensions/docs/reference/rest/v1beta1/projects.locations.wasmPlugins) in the format: `projects/{project}/locations/{location}/wasmPlugins/{plugin}` or `//networkservices.googleapis.com/projects/{project}/locations/{location}/wasmPlugins/{wasmPlugin}`.", + "description": "Required. The reference to the service that runs the extension. To configure a callout extension, `service` must be a fully-qualified reference to a [backend service](https://cloud.google.com/compute/docs/reference/rest/v1/backendServices) in the format: `https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/backendServices/{backendService}` or `https://www.googleapis.com/compute/v1/projects/{project}/global/backendServices/{backendService}`. To configure a plugin extension, `service` must be a reference to a [`WasmPlugin` resource](https://cloud.google.com/service-extensions/docs/reference/rest/v1beta1/projects.locations.wasmPlugins) in the format: `projects/{project}/locations/{location}/wasmPlugins/{plugin}` or `//networkservices.googleapis.com/projects/{project}/locations/{location}/wasmPlugins/{wasmPlugin}`. Plugin extensions are currently supported for the `LbTrafficExtension` and the `LbRouteExtension` resources.", "type": "string" }, "supportedEvents": { - "description": "Optional. A set of events during request or response processing for which this extension is called. This field is required for the `LbTrafficExtension` resource. It must not be set for the `LbRouteExtension` resource.", + "description": "Optional. A set of events during request or response processing for which this extension is called. This field is required for the `LbTrafficExtension` resource. It must not be set for the `LbRouteExtension` resource, otherwise a validation error is returned.", "items": { "enum": [ "EVENT_TYPE_UNSPECIFIED", @@ -2796,7 +2930,7 @@ "type": "array" }, "timeout": { - "description": "Optional. Specifies the timeout for each individual message on the stream. The timeout must be between 10-1000 milliseconds. Required for callout extensions. This field is not supported for plugin extensions and must not be set.", + "description": "Optional. Specifies the timeout for each individual message on the stream. The timeout must be between `10`-`1000` milliseconds. Required for callout extensions. This field is not supported for plugin extensions. Setting it results in a validation error.", "format": "google-duration", "type": "string" } @@ -2949,6 +3083,39 @@ }, "type": "object" }, + "GatewayRouteView": { + "description": "GatewayRouteView defines view-only resource for Routes to a Gateway", + "id": "GatewayRouteView", + "properties": { + "name": { + "description": "Output only. Identifier. Full path name of the GatewayRouteView resource. Format: projects/{project_number}/locations/{location}/gateways/{gateway_name}/routeViews/{route_view_name}", + "readOnly": true, + "type": "string" + }, + "routeId": { + "description": "Output only. The resource id for the route.", + "readOnly": true, + "type": "string" + }, + "routeLocation": { + "description": "Output only. Location where the route exists.", + "readOnly": true, + "type": "string" + }, + "routeProjectNumber": { + "description": "Output only. Project number where the route exists.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "routeType": { + "description": "Output only. Type of the route: HttpRoute,GrpcRoute,TcpRoute, or TlsRoute", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "GrpcRoute": { "description": "GrpcRoute is the resource defining how gRPC traffic routed by a Mesh or Gateway resource is routed.", "id": "GrpcRoute", @@ -3828,7 +3995,7 @@ "type": "array" }, "forwardingRules": { - "description": "Required. A list of references to the forwarding rules to which this service extension is attached to. At least one forwarding rule is required. There can be only one `LbRouteExtension` resource per forwarding rule.", + "description": "Required. A list of references to the forwarding rules to which this service extension is attached. At least one forwarding rule is required. There can be only one `LbRouteExtension` resource per forwarding rule.", "items": { "type": "string" }, @@ -3860,7 +4027,7 @@ "description": "Properties of the object.", "type": "any" }, - "description": "Optional. The metadata provided here is included as part of the `metadata_context` (of type `google.protobuf.Struct`) in the `ProcessingRequest` message sent to the extension server. The metadata is available under the namespace `com.google.lb_route_extension.`. The following variables are supported in the metadata Struct: `{forwarding_rule_id}` - substituted with the forwarding rule's fully qualified resource name. This field is not supported for plugin extensions and must not be set.", + "description": "Optional. The metadata provided here is included as part of the `metadata_context` (of type `google.protobuf.Struct`) in the `ProcessingRequest` message sent to the extension server. The metadata is available under the namespace `com.google.lb_route_extension.`. The following variables are supported in the metadata Struct: `{forwarding_rule_id}` - substituted with the forwarding rule's fully qualified resource name. This field is not supported for plugin extensions. Setting it results in a validation error.", "type": "object" }, "name": { @@ -3898,7 +4065,7 @@ "type": "array" }, "forwardingRules": { - "description": "Required. A list of references to the forwarding rules to which this service extension is attached to. At least one forwarding rule is required. There can be only one `LBTrafficExtension` resource per forwarding rule.", + "description": "Optional. A list of references to the forwarding rules to which this service extension is attached. At least one forwarding rule is required. There can be only one `LBTrafficExtension` resource per forwarding rule.", "items": { "type": "string" }, @@ -3930,7 +4097,7 @@ "description": "Properties of the object.", "type": "any" }, - "description": "Optional. The metadata provided here is included in the `ProcessingRequest.metadata_context.filter_metadata` map field. The metadata is available under the key `com.google.lb_traffic_extension.`. The following variables are supported in the metadata: `{forwarding_rule_id}` - substituted with the forwarding rule's fully qualified resource name. This field is not supported for plugin extensions and must not be set.", + "description": "Optional. The metadata provided here is included in the `ProcessingRequest.metadata_context.filter_metadata` map field. The metadata is available under the key `com.google.lb_traffic_extension.`. The following variables are supported in the metadata: `{forwarding_rule_id}` - substituted with the forwarding rule's fully qualified resource name. This field is not supported for plugin extensions. Setting it results in a validation error.", "type": "object" }, "name": { @@ -3989,6 +4156,24 @@ }, "type": "object" }, + "ListGatewayRouteViewsResponse": { + "description": "Response returned by the ListGatewayRouteViews method.", + "id": "ListGatewayRouteViewsResponse", + "properties": { + "gatewayRouteViews": { + "description": "List of GatewayRouteView resources.", + "items": { + "$ref": "GatewayRouteView" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + } + }, + "type": "object" + }, "ListGatewaysResponse": { "description": "Response returned by the ListGateways method.", "id": "ListGatewaysResponse", @@ -4118,6 +4303,24 @@ }, "type": "object" }, + "ListMeshRouteViewsResponse": { + "description": "Response returned by the ListMeshRouteViews method.", + "id": "ListMeshRouteViewsResponse", + "properties": { + "meshRouteViews": { + "description": "List of MeshRouteView resources.", + "items": { + "$ref": "MeshRouteView" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + } + }, + "type": "object" + }, "ListMeshesResponse": { "description": "Response returned by the ListMeshes method.", "id": "ListMeshesResponse", @@ -4389,6 +4592,39 @@ }, "type": "object" }, + "MeshRouteView": { + "description": "MeshRouteView defines view-only resource for Routes to a Mesh", + "id": "MeshRouteView", + "properties": { + "name": { + "description": "Output only. Identifier. Full path name of the MeshRouteView resource. Format: projects/{project_number}/locations/{location}/meshes/{mesh_name}/routeViews/{route_view_name}", + "readOnly": true, + "type": "string" + }, + "routeId": { + "description": "Output only. The resource id for the route.", + "readOnly": true, + "type": "string" + }, + "routeLocation": { + "description": "Output only. Location where the route exists.", + "readOnly": true, + "type": "string" + }, + "routeProjectNumber": { + "description": "Output only. Project number where the route exists.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "routeType": { + "description": "Output only. Type of the route: HttpRoute,GrpcRoute,TcpRoute, or TlsRoute", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "MetadataLabelMatcher": { "description": "The matcher that is based on node metadata presented by xDS clients.", "id": "MetadataLabelMatcher", @@ -4977,7 +5213,7 @@ }, "logConfig": { "$ref": "WasmPluginLogConfig", - "description": "Optional. Specifies the logging options for the activity performed by this `WasmPlugin`. If logging is enabled, plugin logs are exported to Cloud Logging. Note that the settings relate to the logs generated by using logging statements in your Wasm code." + "description": "Optional. Specifies the logging options for the activity performed by this plugin. If logging is enabled, plugin logs are exported to Cloud Logging. Note that the settings relate to the logs generated by using logging statements in your Wasm code." }, "mainVersionId": { "description": "Optional. The ID of the `WasmPluginVersion` resource that is the currently serving one. The version referred to must be a child of this `WasmPlugin` resource.", @@ -4994,7 +5230,7 @@ "type": "string" }, "usedBy": { - "description": "Output only. List of all [Service Extensions](https://cloud.google.com/service-extensions/docs/overview) that use this `WasmPlugin`.", + "description": "Output only. List of all [extensions](https://cloud.google.com/service-extensions/docs/overview) that use this `WasmPlugin` resource.", "items": { "$ref": "WasmPluginUsedBy" }, @@ -5005,22 +5241,22 @@ "additionalProperties": { "$ref": "WasmPluginVersionDetails" }, - "description": "Optional. All versions of this `WasmPlugin` in the key-value format. The key is the resource ID, the value is the `VersionDetails`. Allows to create or update `WasmPlugin` and its WasmPluginVersions in a single request. When the `main_version_id` field is not empty it must point to one of the VersionDetails in the map. If provided in the update request, the new versions replace the previous set. Any version omitted from the `versions` will be removed. Since the `WasmPluginVersion` resource is immutable, if the WasmPluginVersion with the same name already exists and differs the Update request will fail. Note: In the GET request, this field is populated only if the GetWasmPluginRequest.view is set to WASM_PLUGIN_VIEW_FULL.", + "description": "Optional. All versions of this `WasmPlugin` resource in the key-value format. The key is the resource ID, and the value is the `VersionDetails` object. Lets you create or update a `WasmPlugin` resource and its versions in a single request. When the `main_version_id` field is not empty, it must point to one of the `VersionDetails` objects in the map. If provided in a `PATCH` request, the new versions replace the previous set. Any version omitted from the `versions` field is removed. Because the `WasmPluginVersion` resource is immutable, if a `WasmPluginVersion` resource with the same name already exists and differs, the request fails. Note: In a `GET` request, this field is populated only if the field `GetWasmPluginRequest.view` is set to `WASM_PLUGIN_VIEW_FULL`.", "type": "object" } }, "type": "object" }, "WasmPluginLogConfig": { - "description": "Specifies the logging options for the activity performed by this `WasmPlugin`. If logging is enabled, plugin logs are exported to Cloud Logging.", + "description": "Specifies the logging options for the activity performed by this plugin. If logging is enabled, plugin logs are exported to Cloud Logging.", "id": "WasmPluginLogConfig", "properties": { "enable": { - "description": "Optional. Specifies whether to enable logging for activity by this `WasmPlugin`. Defaults to `false`.", + "description": "Optional. Specifies whether to enable logging for activity by this plugin. Defaults to `false`.", "type": "boolean" }, "minLogLevel": { - "description": "Non-empty default. Specificies the lowest level of the plugin logs that are exported to Cloud Logging. This setting relates to the logs generated by using logging statements in your Wasm code. This field is can be set only if logging is enabled for the `WasmPlugin` resource. If the field is not provided when logging is enabled, it is set to `INFO` by default.", + "description": "Non-empty default. Specificies the lowest level of the plugin logs that are exported to Cloud Logging. This setting relates to the logs generated by using logging statements in your Wasm code. This field is can be set only if logging is enabled for the plugin. If the field is not provided when logging is enabled, it is set to `INFO` by default.", "enum": [ "LOG_LEVEL_UNSPECIFIED", "TRACE", @@ -5031,7 +5267,7 @@ "CRITICAL" ], "enumDescriptions": [ - "Unspecified value.", + "Unspecified value. Defaults to `LogLevel.INFO`.", "Report logs with TRACE level and above.", "Report logs with DEBUG level and above.", "Report logs with INFO level and above.", @@ -5042,7 +5278,7 @@ "type": "string" }, "sampleRate": { - "description": "Non-empty default. Configures the sampling rate of activity logs, where `1.0` means all logged activity is reported and `0.0` means no activity is reported. A floating point value between `0.0` and `1.0` indicates that a percentage of log messages is stored. The default value when logging is enabled is `1.0`. The value of the field must be between `0` and `1` (inclusive). This field can only be specified if logging is enabled for this `WasmPlugin`.", + "description": "Non-empty default. Configures the sampling rate of activity logs, where `1.0` means all logged activity is reported and `0.0` means no activity is reported. A floating point value between `0.0` and `1.0` indicates that a percentage of log messages is stored. The default value when logging is enabled is `1.0`. The value of the field must be between `0` and `1` (inclusive). This field can be specified only if logging is enabled for this plugin.", "format": "float", "type": "number" } @@ -5050,11 +5286,11 @@ "type": "object" }, "WasmPluginUsedBy": { - "description": "Defines a resource that uses the `WasmPlugin`.", + "description": "Defines a resource that uses the `WasmPlugin` resource.", "id": "WasmPluginUsedBy", "properties": { "name": { - "description": "Output only. Full name of the resource https://google.aip.dev/122#full-resource-names, e.g. `//networkservices.googleapis.com/projects/{project}/locations/{location}/lbRouteExtensions/{extension}`", + "description": "Output only. Full name of the resource https://google.aip.dev/122#full-resource-names, for example `//networkservices.googleapis.com/projects/{project}/locations/{location}/lbRouteExtensions/{extension}`", "readOnly": true, "type": "string" } @@ -5062,7 +5298,7 @@ "type": "object" }, "WasmPluginVersion": { - "description": "A single immutable version of a `WasmPlugin`. Defines the Wasm module used and optionally its runtime config.", + "description": "A single immutable version of a `WasmPlugin` resource. Defines the Wasm module used and optionally its runtime config.", "id": "WasmPluginVersion", "properties": { "createTime": { @@ -5076,12 +5312,12 @@ "type": "string" }, "imageDigest": { - "description": "Output only. The resolved digest for the image specified in `image`. The digest is resolved during the creation of `WasmPluginVersion` resource. This field holds the digest value regardless of whether a tag or digest was originally specified in the `image` field.", + "description": "Output only. The resolved digest for the image specified in the `image` field. The digest is resolved during the creation of `WasmPluginVersion` resource. This field holds the digest value, regardless of whether a tag or digest was originally specified in the `image` field.", "readOnly": true, "type": "string" }, "imageUri": { - "description": "Optional. URI of the container image containing the Wasm plugin, stored in the Artifact Registry. When a new `WasmPluginVersion` resource is created, the digest of the container image is saved in the `image_digest` field. When downloading an image, the digest value is used instead of an image tag.", + "description": "Optional. URI of the container image containing the plugin, stored in the Artifact Registry. When a new `WasmPluginVersion` resource is created, the digest of the container image is saved in the `image_digest` field. When downloading an image, the digest value is used instead of an image tag.", "type": "string" }, "labels": { @@ -5096,17 +5332,17 @@ "type": "string" }, "pluginConfigData": { - "description": "Configuration for the Wasm plugin. The configuration is provided to the Wasm plugin at runtime through the `ON_CONFIGURE` callback. When a new `WasmPluginVersion` resource is created, the digest of the contents is saved in the `plugin_config_digest` field.", + "description": "Configuration for the plugin. The configuration is provided to the plugin at runtime through the `ON_CONFIGURE` callback. When a new `WasmPluginVersion` resource is created, the digest of the contents is saved in the `plugin_config_digest` field.", "format": "byte", "type": "string" }, "pluginConfigDigest": { - "description": "Output only. This field holds the digest (usually checksum) value for the plugin configuration. The value is calculated based on the contents of the `plugin_config_data` or the container image defined by the `plugin_config_uri` field.", + "description": "Output only. This field holds the digest (usually checksum) value for the plugin configuration. The value is calculated based on the contents of `plugin_config_data` or the container image defined by the `plugin_config_uri` field.", "readOnly": true, "type": "string" }, "pluginConfigUri": { - "description": "URI of the Wasm plugin configuration stored in the Artifact Registry. The configuration is provided to the plugin at runtime through the `ON_CONFIGURE` callback. The container image must contain only a single file with the name `plugin.config`. When a new `WasmPluginVersion` resource is created, the digest of the container image is saved in the `plugin_config_digest` field.", + "description": "URI of the plugin configuration stored in the Artifact Registry. The configuration is provided to the plugin at runtime through the `ON_CONFIGURE` callback. The container image must contain only a single file with the name `plugin.config`. When a new `WasmPluginVersion` resource is created, the digest of the container image is saved in the `plugin_config_digest` field.", "type": "string" }, "updateTime": { @@ -5149,17 +5385,17 @@ "type": "object" }, "pluginConfigData": { - "description": "Configuration for the Wasm plugin. The configuration is provided to the Wasm plugin at runtime through the `ON_CONFIGURE` callback. When a new `WasmPluginVersion` version is created, the digest of the contents is saved in the `plugin_config_digest` field.", + "description": "Configuration for the plugin. The configuration is provided to the plugin at runtime through the `ON_CONFIGURE` callback. When a new `WasmPluginVersion` version is created, the digest of the contents is saved in the `plugin_config_digest` field.", "format": "byte", "type": "string" }, "pluginConfigDigest": { - "description": "Output only. This field holds the digest (usually checksum) value for the plugin configuration. The value is calculated based on the contents of the `plugin_config_data` or the container image defined by the `plugin_config_uri` field.", + "description": "Output only. This field holds the digest (usually checksum) value for the plugin configuration. The value is calculated based on the contents of the `plugin_config_data` field or the container image defined by the `plugin_config_uri` field.", "readOnly": true, "type": "string" }, "pluginConfigUri": { - "description": "URI of the WasmPlugin configuration stored in the Artifact Registry. The configuration is provided to the Wasm plugin at runtime through the `ON_CONFIGURE` callback. The container image must contain only a single file with the name `plugin.config`. When a new `WasmPluginVersion` resource is created, the digest of the container image is saved in the `plugin_config_digest` field.", + "description": "URI of the plugin configuration stored in the Artifact Registry. The configuration is provided to the plugin at runtime through the `ON_CONFIGURE` callback. The container image must contain only a single file with the name `plugin.config`. When a new `WasmPluginVersion` resource is created, the digest of the container image is saved in the `plugin_config_digest` field.", "type": "string" }, "updateTime": { diff --git a/networkservices/v1beta1/networkservices-gen.go b/networkservices/v1beta1/networkservices-gen.go index aa13c7d3f59..64ec76f1250 100644 --- a/networkservices/v1beta1/networkservices-gen.go +++ b/networkservices/v1beta1/networkservices-gen.go @@ -237,11 +237,23 @@ type ProjectsLocationsEndpointPoliciesService struct { func NewProjectsLocationsGatewaysService(s *Service) *ProjectsLocationsGatewaysService { rs := &ProjectsLocationsGatewaysService{s: s} + rs.RouteViews = NewProjectsLocationsGatewaysRouteViewsService(s) return rs } type ProjectsLocationsGatewaysService struct { s *Service + + RouteViews *ProjectsLocationsGatewaysRouteViewsService +} + +func NewProjectsLocationsGatewaysRouteViewsService(s *Service) *ProjectsLocationsGatewaysRouteViewsService { + rs := &ProjectsLocationsGatewaysRouteViewsService{s: s} + return rs +} + +type ProjectsLocationsGatewaysRouteViewsService struct { + s *Service } func NewProjectsLocationsGrpcRoutesService(s *Service) *ProjectsLocationsGrpcRoutesService { @@ -282,11 +294,23 @@ type ProjectsLocationsLbTrafficExtensionsService struct { func NewProjectsLocationsMeshesService(s *Service) *ProjectsLocationsMeshesService { rs := &ProjectsLocationsMeshesService{s: s} + rs.RouteViews = NewProjectsLocationsMeshesRouteViewsService(s) return rs } type ProjectsLocationsMeshesService struct { s *Service + + RouteViews *ProjectsLocationsMeshesRouteViewsService +} + +func NewProjectsLocationsMeshesRouteViewsService(s *Service) *ProjectsLocationsMeshesRouteViewsService { + rs := &ProjectsLocationsMeshesRouteViewsService{s: s} + return rs +} + +type ProjectsLocationsMeshesRouteViewsService struct { + s *Service } func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService { @@ -605,7 +629,8 @@ func (s ExtensionChain) MarshalJSON() ([]byte, error) { type ExtensionChainExtension struct { // Authority: Optional. The `:authority` header in the gRPC request sent from // Envoy to the extension service. Required for Callout extensions. This field - // is not supported for plugin extensions and must not be set. + // is not supported for plugin extensions. Setting it results in a validation + // error. Authority string `json:"authority,omitempty"` // FailOpen: Optional. Determines how the proxy behaves if the call to the // extension fails or times out. When set to `TRUE`, request or response @@ -629,7 +654,8 @@ type ExtensionChainExtension struct { // `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`. The // following variables are supported in the metadata: `{forwarding_rule_id}` - // substituted with the forwarding rule's fully qualified resource name. This - // field is not supported for plugin extensions and must not be set. + // field is not supported for plugin extensions. Setting it results in a + // validation error. Metadata googleapi.RawMessage `json:"metadata,omitempty"` // Name: Required. The name for this extension. The name is logged as part of // the HTTP request logs. The name must conform with RFC-1034, is restricted to @@ -637,27 +663,27 @@ type ExtensionChainExtension struct { // 63 characters. Additionally, the first character must be a letter and the // last a letter or a number. Name string `json:"name,omitempty"` - // Service: Required. The reference to the service that runs the extension. - // Currently only callout extensions are supported here. To configure a callout - // extension, `service` must be a fully-qualified reference to a backend - // service + // Service: Required. The reference to the service that runs the extension. To + // configure a callout extension, `service` must be a fully-qualified reference + // to a backend service // (https://cloud.google.com/compute/docs/reference/rest/v1/backendServices) in // the format: // `https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/ba // ckendServices/{backendService}` or // `https://www.googleapis.com/compute/v1/projects/{project}/global/backendServi - // ces/{backendService}`. To configure a plugin extension, this must be a - // reference to a wasm plugin + // ces/{backendService}`. To configure a plugin extension, `service` must be a + // reference to a `WasmPlugin` resource // (https://cloud.google.com/service-extensions/docs/reference/rest/v1beta1/projects.locations.wasmPlugins) // in the format: // `projects/{project}/locations/{location}/wasmPlugins/{plugin}` or // `//networkservices.googleapis.com/projects/{project}/locations/{location}/was - // mPlugins/{wasmPlugin}`. + // mPlugins/{wasmPlugin}`. Plugin extensions are currently supported for the + // `LbTrafficExtension` and the `LbRouteExtension` resources. Service string `json:"service,omitempty"` // SupportedEvents: Optional. A set of events during request or response // processing for which this extension is called. This field is required for // the `LbTrafficExtension` resource. It must not be set for the - // `LbRouteExtension` resource. + // `LbRouteExtension` resource, otherwise a validation error is returned. // // Possible values: // "EVENT_TYPE_UNSPECIFIED" - Unspecified value. Do not use. @@ -675,9 +701,9 @@ type ExtensionChainExtension struct { // called when the HTTP response trailers arrives. SupportedEvents []string `json:"supportedEvents,omitempty"` // Timeout: Optional. Specifies the timeout for each individual message on the - // stream. The timeout must be between 10-1000 milliseconds. Required for - // callout extensions. This field is not supported for plugin extensions and - // must not be set. + // stream. The timeout must be between `10`-`1000` milliseconds. Required for + // callout extensions. This field is not supported for plugin extensions. + // Setting it results in a validation error. Timeout string `json:"timeout,omitempty"` // ForceSendFields is a list of field names (e.g. "Authority") to // unconditionally include in API requests. By default, fields with empty or @@ -852,6 +878,44 @@ func (s Gateway) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GatewayRouteView: GatewayRouteView defines view-only resource for Routes to +// a Gateway +type GatewayRouteView struct { + // Name: Output only. Identifier. Full path name of the GatewayRouteView + // resource. Format: + // projects/{project_number}/locations/{location}/gateways/{gateway_name}/routeV + // iews/{route_view_name} + Name string `json:"name,omitempty"` + // RouteId: Output only. The resource id for the route. + RouteId string `json:"routeId,omitempty"` + // RouteLocation: Output only. Location where the route exists. + RouteLocation string `json:"routeLocation,omitempty"` + // RouteProjectNumber: Output only. Project number where the route exists. + RouteProjectNumber int64 `json:"routeProjectNumber,omitempty,string"` + // RouteType: Output only. Type of the route: HttpRoute,GrpcRoute,TcpRoute, or + // TlsRoute + RouteType string `json:"routeType,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GatewayRouteView) MarshalJSON() ([]byte, error) { + type NoMethod GatewayRouteView + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GrpcRoute: GrpcRoute is the resource defining how gRPC traffic routed by a // Mesh or Gateway resource is routed. type GrpcRoute struct { @@ -2047,7 +2111,7 @@ type LbRouteExtension struct { // chains per resource. ExtensionChains []*ExtensionChain `json:"extensionChains,omitempty"` // ForwardingRules: Required. A list of references to the forwarding rules to - // which this service extension is attached to. At least one forwarding rule is + // which this service extension is attached. At least one forwarding rule is // required. There can be only one `LbRouteExtension` resource per forwarding // rule. ForwardingRules []string `json:"forwardingRules,omitempty"` @@ -2075,8 +2139,8 @@ type LbRouteExtension struct { // available under the namespace `com.google.lb_route_extension.`. The // following variables are supported in the metadata Struct: // `{forwarding_rule_id}` - substituted with the forwarding rule's fully - // qualified resource name. This field is not supported for plugin extensions - // and must not be set. + // qualified resource name. This field is not supported for plugin extensions. + // Setting it results in a validation error. Metadata googleapi.RawMessage `json:"metadata,omitempty"` // Name: Required. Identifier. Name of the `LbRouteExtension` resource in the // following format: @@ -2122,8 +2186,8 @@ type LbTrafficExtension struct { // Any subsequent extension chains do not execute. Limited to 5 extension // chains per resource. ExtensionChains []*ExtensionChain `json:"extensionChains,omitempty"` - // ForwardingRules: Required. A list of references to the forwarding rules to - // which this service extension is attached to. At least one forwarding rule is + // ForwardingRules: Optional. A list of references to the forwarding rules to + // which this service extension is attached. At least one forwarding rule is // required. There can be only one `LBTrafficExtension` resource per forwarding // rule. ForwardingRules []string `json:"forwardingRules,omitempty"` @@ -2150,7 +2214,8 @@ type LbTrafficExtension struct { // is available under the key `com.google.lb_traffic_extension.`. The following // variables are supported in the metadata: `{forwarding_rule_id}` - // substituted with the forwarding rule's fully qualified resource name. This - // field is not supported for plugin extensions and must not be set. + // field is not supported for plugin extensions. Setting it results in a + // validation error. Metadata googleapi.RawMessage `json:"metadata,omitempty"` // Name: Required. Identifier. Name of the `LbTrafficExtension` resource in the // following format: @@ -2242,6 +2307,35 @@ func (s ListEndpointPoliciesResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// ListGatewayRouteViewsResponse: Response returned by the +// ListGatewayRouteViews method. +type ListGatewayRouteViewsResponse struct { + // GatewayRouteViews: List of GatewayRouteView resources. + GatewayRouteViews []*GatewayRouteView `json:"gatewayRouteViews,omitempty"` + // NextPageToken: A token, which can be sent as `page_token` to retrieve the + // next page. If this field is omitted, there are no subsequent pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "GatewayRouteViews") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "GatewayRouteViews") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ListGatewayRouteViewsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListGatewayRouteViewsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // ListGatewaysResponse: Response returned by the ListGateways method. type ListGatewaysResponse struct { // Gateways: List of Gateway resources. @@ -2424,6 +2518,35 @@ func (s ListLocationsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// ListMeshRouteViewsResponse: Response returned by the ListMeshRouteViews +// method. +type ListMeshRouteViewsResponse struct { + // MeshRouteViews: List of MeshRouteView resources. + MeshRouteViews []*MeshRouteView `json:"meshRouteViews,omitempty"` + // NextPageToken: A token, which can be sent as `page_token` to retrieve the + // next page. If this field is omitted, there are no subsequent pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "MeshRouteViews") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "MeshRouteViews") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ListMeshRouteViewsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListMeshRouteViewsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // ListMeshesResponse: Response returned by the ListMeshes method. type ListMeshesResponse struct { // Meshes: List of Mesh resources. @@ -2802,6 +2925,43 @@ func (s Mesh) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// MeshRouteView: MeshRouteView defines view-only resource for Routes to a Mesh +type MeshRouteView struct { + // Name: Output only. Identifier. Full path name of the MeshRouteView resource. + // Format: + // projects/{project_number}/locations/{location}/meshes/{mesh_name}/routeViews/ + // {route_view_name} + Name string `json:"name,omitempty"` + // RouteId: Output only. The resource id for the route. + RouteId string `json:"routeId,omitempty"` + // RouteLocation: Output only. Location where the route exists. + RouteLocation string `json:"routeLocation,omitempty"` + // RouteProjectNumber: Output only. Project number where the route exists. + RouteProjectNumber int64 `json:"routeProjectNumber,omitempty,string"` + // RouteType: Output only. Type of the route: HttpRoute,GrpcRoute,TcpRoute, or + // TlsRoute + RouteType string `json:"routeType,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s MeshRouteView) MarshalJSON() ([]byte, error) { + type NoMethod MeshRouteView + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // MetadataLabelMatcher: The matcher that is based on node metadata presented // by xDS clients. type MetadataLabelMatcher struct { @@ -3562,9 +3722,9 @@ type WasmPlugin struct { // (/compute/docs/labeling-resources#requirements). Labels map[string]string `json:"labels,omitempty"` // LogConfig: Optional. Specifies the logging options for the activity - // performed by this `WasmPlugin`. If logging is enabled, plugin logs are - // exported to Cloud Logging. Note that the settings relate to the logs - // generated by using logging statements in your Wasm code. + // performed by this plugin. If logging is enabled, plugin logs are exported to + // Cloud Logging. Note that the settings relate to the logs generated by using + // logging statements in your Wasm code. LogConfig *WasmPluginLogConfig `json:"logConfig,omitempty"` // MainVersionId: Optional. The ID of the `WasmPluginVersion` resource that is // the currently serving one. The version referred to must be a child of this @@ -3575,21 +3735,21 @@ type WasmPlugin struct { Name string `json:"name,omitempty"` // UpdateTime: Output only. The timestamp when the resource was updated. UpdateTime string `json:"updateTime,omitempty"` - // UsedBy: Output only. List of all Service Extensions + // UsedBy: Output only. List of all extensions // (https://cloud.google.com/service-extensions/docs/overview) that use this - // `WasmPlugin`. + // `WasmPlugin` resource. UsedBy []*WasmPluginUsedBy `json:"usedBy,omitempty"` - // Versions: Optional. All versions of this `WasmPlugin` in the key-value - // format. The key is the resource ID, the value is the `VersionDetails`. - // Allows to create or update `WasmPlugin` and its WasmPluginVersions in a - // single request. When the `main_version_id` field is not empty it must point - // to one of the VersionDetails in the map. If provided in the update request, - // the new versions replace the previous set. Any version omitted from the - // `versions` will be removed. Since the `WasmPluginVersion` resource is - // immutable, if the WasmPluginVersion with the same name already exists and - // differs the Update request will fail. Note: In the GET request, this field - // is populated only if the GetWasmPluginRequest.view is set to - // WASM_PLUGIN_VIEW_FULL. + // Versions: Optional. All versions of this `WasmPlugin` resource in the + // key-value format. The key is the resource ID, and the value is the + // `VersionDetails` object. Lets you create or update a `WasmPlugin` resource + // and its versions in a single request. When the `main_version_id` field is + // not empty, it must point to one of the `VersionDetails` objects in the map. + // If provided in a `PATCH` request, the new versions replace the previous set. + // Any version omitted from the `versions` field is removed. Because the + // `WasmPluginVersion` resource is immutable, if a `WasmPluginVersion` resource + // with the same name already exists and differs, the request fails. Note: In a + // `GET` request, this field is populated only if the field + // `GetWasmPluginRequest.view` is set to `WASM_PLUGIN_VIEW_FULL`. Versions map[string]WasmPluginVersionDetails `json:"versions,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. @@ -3613,21 +3773,20 @@ func (s WasmPlugin) MarshalJSON() ([]byte, error) { } // WasmPluginLogConfig: Specifies the logging options for the activity -// performed by this `WasmPlugin`. If logging is enabled, plugin logs are -// exported to Cloud Logging. +// performed by this plugin. If logging is enabled, plugin logs are exported to +// Cloud Logging. type WasmPluginLogConfig struct { // Enable: Optional. Specifies whether to enable logging for activity by this - // `WasmPlugin`. Defaults to `false`. + // plugin. Defaults to `false`. Enable bool `json:"enable,omitempty"` // MinLogLevel: Non-empty default. Specificies the lowest level of the plugin // logs that are exported to Cloud Logging. This setting relates to the logs // generated by using logging statements in your Wasm code. This field is can - // be set only if logging is enabled for the `WasmPlugin` resource. If the - // field is not provided when logging is enabled, it is set to `INFO` by - // default. + // be set only if logging is enabled for the plugin. If the field is not + // provided when logging is enabled, it is set to `INFO` by default. // // Possible values: - // "LOG_LEVEL_UNSPECIFIED" - Unspecified value. + // "LOG_LEVEL_UNSPECIFIED" - Unspecified value. Defaults to `LogLevel.INFO`. // "TRACE" - Report logs with TRACE level and above. // "DEBUG" - Report logs with DEBUG level and above. // "INFO" - Report logs with INFO level and above. @@ -3640,8 +3799,8 @@ type WasmPluginLogConfig struct { // activity is reported. A floating point value between `0.0` and `1.0` // indicates that a percentage of log messages is stored. The default value // when logging is enabled is `1.0`. The value of the field must be between `0` - // and `1` (inclusive). This field can only be specified if logging is enabled - // for this `WasmPlugin`. + // and `1` (inclusive). This field can be specified only if logging is enabled + // for this plugin. SampleRate float64 `json:"sampleRate,omitempty"` // ForceSendFields is a list of field names (e.g. "Enable") to unconditionally // include in API requests. By default, fields with empty or default values are @@ -3675,10 +3834,10 @@ func (s *WasmPluginLogConfig) UnmarshalJSON(data []byte) error { return nil } -// WasmPluginUsedBy: Defines a resource that uses the `WasmPlugin`. +// WasmPluginUsedBy: Defines a resource that uses the `WasmPlugin` resource. type WasmPluginUsedBy struct { // Name: Output only. Full name of the resource - // https://google.aip.dev/122#full-resource-names, e.g. + // https://google.aip.dev/122#full-resource-names, for example // `//networkservices.googleapis.com/projects/{project}/locations/{location}/lbR // outeExtensions/{extension}` Name string `json:"name,omitempty"` @@ -3700,20 +3859,20 @@ func (s WasmPluginUsedBy) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// WasmPluginVersion: A single immutable version of a `WasmPlugin`. Defines the -// Wasm module used and optionally its runtime config. +// WasmPluginVersion: A single immutable version of a `WasmPlugin` resource. +// Defines the Wasm module used and optionally its runtime config. type WasmPluginVersion struct { // CreateTime: Output only. The timestamp when the resource was created. CreateTime string `json:"createTime,omitempty"` // Description: Optional. A human-readable description of the resource. Description string `json:"description,omitempty"` - // ImageDigest: Output only. The resolved digest for the image specified in - // `image`. The digest is resolved during the creation of `WasmPluginVersion` - // resource. This field holds the digest value regardless of whether a tag or - // digest was originally specified in the `image` field. + // ImageDigest: Output only. The resolved digest for the image specified in the + // `image` field. The digest is resolved during the creation of + // `WasmPluginVersion` resource. This field holds the digest value, regardless + // of whether a tag or digest was originally specified in the `image` field. ImageDigest string `json:"imageDigest,omitempty"` - // ImageUri: Optional. URI of the container image containing the Wasm plugin, - // stored in the Artifact Registry. When a new `WasmPluginVersion` resource is + // ImageUri: Optional. URI of the container image containing the plugin, stored + // in the Artifact Registry. When a new `WasmPluginVersion` resource is // created, the digest of the container image is saved in the `image_digest` // field. When downloading an image, the digest value is used instead of an // image tag. @@ -3725,17 +3884,17 @@ type WasmPluginVersion struct { // format: `projects/{project}/locations/{location}/wasmPlugins/{wasm_plugin}/ // versions/{wasm_plugin_version}`. Name string `json:"name,omitempty"` - // PluginConfigData: Configuration for the Wasm plugin. The configuration is - // provided to the Wasm plugin at runtime through the `ON_CONFIGURE` callback. - // When a new `WasmPluginVersion` resource is created, the digest of the - // contents is saved in the `plugin_config_digest` field. + // PluginConfigData: Configuration for the plugin. The configuration is + // provided to the plugin at runtime through the `ON_CONFIGURE` callback. When + // a new `WasmPluginVersion` resource is created, the digest of the contents is + // saved in the `plugin_config_digest` field. PluginConfigData string `json:"pluginConfigData,omitempty"` // PluginConfigDigest: Output only. This field holds the digest (usually // checksum) value for the plugin configuration. The value is calculated based - // on the contents of the `plugin_config_data` or the container image defined - // by the `plugin_config_uri` field. + // on the contents of `plugin_config_data` or the container image defined by + // the `plugin_config_uri` field. PluginConfigDigest string `json:"pluginConfigDigest,omitempty"` - // PluginConfigUri: URI of the Wasm plugin configuration stored in the Artifact + // PluginConfigUri: URI of the plugin configuration stored in the Artifact // Registry. The configuration is provided to the plugin at runtime through the // `ON_CONFIGURE` callback. The container image must contain only a single file // with the name `plugin.config`. When a new `WasmPluginVersion` resource is @@ -3786,21 +3945,21 @@ type WasmPluginVersionDetails struct { // Labels: Optional. Set of labels associated with the `WasmPluginVersion` // resource. Labels map[string]string `json:"labels,omitempty"` - // PluginConfigData: Configuration for the Wasm plugin. The configuration is - // provided to the Wasm plugin at runtime through the `ON_CONFIGURE` callback. - // When a new `WasmPluginVersion` version is created, the digest of the - // contents is saved in the `plugin_config_digest` field. + // PluginConfigData: Configuration for the plugin. The configuration is + // provided to the plugin at runtime through the `ON_CONFIGURE` callback. When + // a new `WasmPluginVersion` version is created, the digest of the contents is + // saved in the `plugin_config_digest` field. PluginConfigData string `json:"pluginConfigData,omitempty"` // PluginConfigDigest: Output only. This field holds the digest (usually // checksum) value for the plugin configuration. The value is calculated based - // on the contents of the `plugin_config_data` or the container image defined - // by the `plugin_config_uri` field. + // on the contents of the `plugin_config_data` field or the container image + // defined by the `plugin_config_uri` field. PluginConfigDigest string `json:"pluginConfigDigest,omitempty"` - // PluginConfigUri: URI of the WasmPlugin configuration stored in the Artifact - // Registry. The configuration is provided to the Wasm plugin at runtime - // through the `ON_CONFIGURE` callback. The container image must contain only a - // single file with the name `plugin.config`. When a new `WasmPluginVersion` - // resource is created, the digest of the container image is saved in the + // PluginConfigUri: URI of the plugin configuration stored in the Artifact + // Registry. The configuration is provided to the plugin at runtime through the + // `ON_CONFIGURE` callback. The container image must contain only a single file + // with the name `plugin.config`. When a new `WasmPluginVersion` resource is + // created, the digest of the container image is saved in the // `plugin_config_digest` field. PluginConfigUri string `json:"pluginConfigUri,omitempty"` // UpdateTime: Output only. The timestamp when the resource was updated. @@ -5815,25 +5974,260 @@ func (c *ProjectsLocationsGatewaysPatchCall) doRequest(alt string) (*http.Respon } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+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 "networkservices.projects.locations.gateways.patch" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsGatewaysPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsGatewaysRouteViewsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Get a single RouteView of a Gateway. +// +// - name: Name of the GatewayRouteView resource. Formats: +// projects/{project_number}/locations/{location}/gateways/{gateway_name}/rout +// eViews/{route_view_name}. +func (r *ProjectsLocationsGatewaysRouteViewsService) Get(name string) *ProjectsLocationsGatewaysRouteViewsGetCall { + c := &ProjectsLocationsGatewaysRouteViewsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsGatewaysRouteViewsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGatewaysRouteViewsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsGatewaysRouteViewsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGatewaysRouteViewsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsGatewaysRouteViewsGetCall) Context(ctx context.Context) *ProjectsLocationsGatewaysRouteViewsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsGatewaysRouteViewsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGatewaysRouteViewsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networkservices.projects.locations.gateways.routeViews.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *GatewayRouteView.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 *ProjectsLocationsGatewaysRouteViewsGetCall) Do(opts ...googleapi.CallOption) (*GatewayRouteView, 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 := &GatewayRouteView{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsGatewaysRouteViewsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists RouteViews +// +// - parent: The Gateway to which a Route is associated. Formats: +// projects/{project_number}/locations/{location}/gateways/{gateway_name}. +func (r *ProjectsLocationsGatewaysRouteViewsService) List(parent string) *ProjectsLocationsGatewaysRouteViewsListCall { + c := &ProjectsLocationsGatewaysRouteViewsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// GatewayRouteViews to return per call. +func (c *ProjectsLocationsGatewaysRouteViewsListCall) PageSize(pageSize int64) *ProjectsLocationsGatewaysRouteViewsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The value returned by the +// last `ListGatewayRouteViewsResponse` Indicates that this is a continuation +// of a prior `ListGatewayRouteViews` call, and that the system should return +// the next page of data. +func (c *ProjectsLocationsGatewaysRouteViewsListCall) PageToken(pageToken string) *ProjectsLocationsGatewaysRouteViewsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsGatewaysRouteViewsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsGatewaysRouteViewsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsGatewaysRouteViewsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsGatewaysRouteViewsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsGatewaysRouteViewsListCall) Context(ctx context.Context) *ProjectsLocationsGatewaysRouteViewsListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsGatewaysRouteViewsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGatewaysRouteViewsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/routeViews") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networkservices.projects.locations.gateways.patch" call. +// Do executes the "networkservices.projects.locations.gateways.routeViews.list" call. // Any non-2xx status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was returned. -func (c *ProjectsLocationsGatewaysPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// *ListGatewayRouteViewsResponse.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 *ProjectsLocationsGatewaysRouteViewsListCall) Do(opts ...googleapi.CallOption) (*ListGatewayRouteViewsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5852,7 +6246,7 @@ func (c *ProjectsLocationsGatewaysPatchCall) Do(opts ...googleapi.CallOption) (* if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &ListGatewayRouteViewsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5865,6 +6259,27 @@ func (c *ProjectsLocationsGatewaysPatchCall) Do(opts ...googleapi.CallOption) (* return ret, nil } +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsGatewaysRouteViewsListCall) Pages(ctx context.Context, f func(*ListGatewayRouteViewsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + type ProjectsLocationsGrpcRoutesCreateCall struct { s *Service parent string @@ -8861,6 +9276,261 @@ func (c *ProjectsLocationsMeshesPatchCall) Do(opts ...googleapi.CallOption) (*Op return ret, nil } +type ProjectsLocationsMeshesRouteViewsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Get a single RouteView of a Mesh. +// +// - name: Name of the MeshRouteView resource. Format: +// projects/{project_number}/locations/{location}/meshes/{mesh_name}/routeView +// s/{route_view_name}. +func (r *ProjectsLocationsMeshesRouteViewsService) Get(name string) *ProjectsLocationsMeshesRouteViewsGetCall { + c := &ProjectsLocationsMeshesRouteViewsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsMeshesRouteViewsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsMeshesRouteViewsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsMeshesRouteViewsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsMeshesRouteViewsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsMeshesRouteViewsGetCall) Context(ctx context.Context) *ProjectsLocationsMeshesRouteViewsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsMeshesRouteViewsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsMeshesRouteViewsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networkservices.projects.locations.meshes.routeViews.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *MeshRouteView.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 *ProjectsLocationsMeshesRouteViewsGetCall) Do(opts ...googleapi.CallOption) (*MeshRouteView, 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 := &MeshRouteView{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsMeshesRouteViewsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists RouteViews +// +// - parent: The Mesh to which a Route is associated. Format: +// projects/{project_number}/locations/{location}/meshes/{mesh_name}. +func (r *ProjectsLocationsMeshesRouteViewsService) List(parent string) *ProjectsLocationsMeshesRouteViewsListCall { + c := &ProjectsLocationsMeshesRouteViewsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// MeshRouteViews to return per call. +func (c *ProjectsLocationsMeshesRouteViewsListCall) PageSize(pageSize int64) *ProjectsLocationsMeshesRouteViewsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The value returned by the +// last `ListMeshRouteViewsResponse` Indicates that this is a continuation of a +// prior `ListMeshRouteViews` call, and that the system should return the next +// page of data. +func (c *ProjectsLocationsMeshesRouteViewsListCall) PageToken(pageToken string) *ProjectsLocationsMeshesRouteViewsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsMeshesRouteViewsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsMeshesRouteViewsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsMeshesRouteViewsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsMeshesRouteViewsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsMeshesRouteViewsListCall) Context(ctx context.Context) *ProjectsLocationsMeshesRouteViewsListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsMeshesRouteViewsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsMeshesRouteViewsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/routeViews") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networkservices.projects.locations.meshes.routeViews.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListMeshRouteViewsResponse.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 *ProjectsLocationsMeshesRouteViewsListCall) Do(opts ...googleapi.CallOption) (*ListMeshRouteViewsResponse, 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 := &ListMeshRouteViewsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsMeshesRouteViewsListCall) Pages(ctx context.Context, f func(*ListMeshRouteViewsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + type ProjectsLocationsOperationsCancelCall struct { s *Service name string @@ -11730,19 +12400,21 @@ func (r *ProjectsLocationsWasmPluginsService) Get(name string) *ProjectsLocation return c } -// View sets the optional parameter "view": Determine how much data should be -// returned by the API. See AIP-157 (https://google.aip.dev/157). +// View sets the optional parameter "view": Determines how much data must be +// returned in the response. See AIP-157 (https://google.aip.dev/157). // // Possible values: // -// "WASM_PLUGIN_VIEW_UNSPECIFIED" - The default / unset value. The API will +// "WASM_PLUGIN_VIEW_UNSPECIFIED" - Unspecified value. Do not use. +// "WASM_PLUGIN_VIEW_BASIC" - If specified in the `GET` request for a // -// default to the BASIC view. +// `WasmPlugin` resource, the server's response includes just the `WasmPlugin` +// resource. // -// "WASM_PLUGIN_VIEW_BASIC" - Include just WasmPlugin record. -// "WASM_PLUGIN_VIEW_FULL" - Include WasmPlugin record and all its +// "WASM_PLUGIN_VIEW_FULL" - If specified in the `GET` request for a // -// WasmPluginVersions. +// `WasmPlugin` resource, the server's response includes the `WasmPlugin` +// resource with all its versions. func (c *ProjectsLocationsWasmPluginsGetCall) View(view string) *ProjectsLocationsWasmPluginsGetCall { c.urlParams_.Set("view", view) return c @@ -11859,8 +12531,8 @@ func (r *ProjectsLocationsWasmPluginsService) List(parent string) *ProjectsLocat // PageSize sets the optional parameter "pageSize": Maximum number of // `WasmPlugin` resources to return per call. If not specified, at most 50 -// `WasmPlugin`s are returned. The maximum value is 1000; values above 1000 are -// coerced to 1000. +// `WasmPlugin` resources are returned. The maximum value is 1000; values above +// 1000 are coerced to 1000. func (c *ProjectsLocationsWasmPluginsListCall) PageSize(pageSize int64) *ProjectsLocationsWasmPluginsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c @@ -12445,8 +13117,8 @@ func (r *ProjectsLocationsWasmPluginsVersionsService) List(parent string) *Proje // PageSize sets the optional parameter "pageSize": Maximum number of // `WasmPluginVersion` resources to return per call. If not specified, at most -// 50 `WasmPluginVersion`s are returned. The maximum value is 1000; values -// above 1000 are coerced to 1000. +// 50 `WasmPluginVersion` resources are returned. The maximum value is 1000; +// values above 1000 are coerced to 1000. func (c *ProjectsLocationsWasmPluginsVersionsListCall) PageSize(pageSize int64) *ProjectsLocationsWasmPluginsVersionsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c diff --git a/notebooks/v1/notebooks-api.json b/notebooks/v1/notebooks-api.json index 66ab3fe04b4..fd126556f95 100644 --- a/notebooks/v1/notebooks-api.json +++ b/notebooks/v1/notebooks-api.json @@ -2008,7 +2008,7 @@ } } }, - "revision": "20241016", + "revision": "20241106", "rootUrl": "https://notebooks.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -2706,7 +2706,7 @@ "type": "object" }, "machineType": { - "description": "Required. The [Compute Engine machine type](https://cloud.google.com/compute/docs/machine-types) of this instance.", + "description": "Required. The [Compute Engine machine type](https://cloud.google.com/compute/docs/machine-resource) of this instance.", "type": "string" }, "metadata": { @@ -3360,7 +3360,7 @@ "type": "string" }, "requestedCancellation": { - "description": "Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "description": "Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have google.longrunning.Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.", "type": "boolean" }, "statusMessage": { @@ -3968,9 +3968,9 @@ "enumDescriptions": [ "Unspecified state.", "The job is executing normally.", - "The job is paused by the user. It will not execute. A user can intentionally pause the job using PauseJobRequest.", + "The job is paused by the user. It will not execute. A user can intentionally pause the job using [Cloud Scheduler](https://cloud.google.com/scheduler/docs/creating#pause).", "The job is disabled by the system due to error. The user cannot directly set a job to be disabled.", - "The job state resulting from a failed CloudScheduler.UpdateJob operation. To recover a job from this state, retry CloudScheduler.UpdateJob until a successful response is received.", + "The job state resulting from a failed [CloudScheduler.UpdateJob](https://cloud.google.com/scheduler/docs/creating#edit) operation. To recover a job from this state, retry [CloudScheduler.UpdateJob](https://cloud.google.com/scheduler/docs/creating#edit) until a successful response is received.", "The schedule resource is being created.", "The schedule resource is being deleted." ], @@ -4109,7 +4109,7 @@ "id": "SetInstanceMachineTypeRequest", "properties": { "machineType": { - "description": "Required. The [Compute Engine machine type](https://cloud.google.com/compute/docs/machine-types).", + "description": "Required. The [Compute Engine machine type](https://cloud.google.com/compute/docs/machine-resource).", "type": "string" } }, diff --git a/notebooks/v1/notebooks-gen.go b/notebooks/v1/notebooks-gen.go index ae721276a9c..07b050a2f4d 100644 --- a/notebooks/v1/notebooks-gen.go +++ b/notebooks/v1/notebooks-gen.go @@ -1101,7 +1101,7 @@ type Instance struct { // setLabels method. Labels map[string]string `json:"labels,omitempty"` // MachineType: Required. The Compute Engine machine type - // (https://cloud.google.com/compute/docs/machine-types) of this instance. + // (https://cloud.google.com/compute/docs/machine-resource) of this instance. MachineType string `json:"machineType,omitempty"` // Metadata: Custom metadata to apply to this instance. For example, to specify // a Cloud Storage bucket for automatic backup, you can use the @@ -1842,8 +1842,8 @@ type OperationMetadata struct { Endpoint string `json:"endpoint,omitempty"` // RequestedCancellation: Identifies whether the user has requested // cancellation of the operation. Operations that have successfully been - // cancelled have Operation.error value with a google.rpc.Status.code of 1, - // corresponding to `Code.CANCELLED`. + // cancelled have google.longrunning.Operation.error value with a + // google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. RequestedCancellation bool `json:"requestedCancellation,omitempty"` // StatusMessage: Human-readable status of the operation, if any. StatusMessage string `json:"statusMessage,omitempty"` @@ -2595,12 +2595,15 @@ type Schedule struct { // "STATE_UNSPECIFIED" - Unspecified state. // "ENABLED" - The job is executing normally. // "PAUSED" - The job is paused by the user. It will not execute. A user can - // intentionally pause the job using PauseJobRequest. + // intentionally pause the job using [Cloud + // Scheduler](https://cloud.google.com/scheduler/docs/creating#pause). // "DISABLED" - The job is disabled by the system due to error. The user // cannot directly set a job to be disabled. // "UPDATE_FAILED" - The job state resulting from a failed - // CloudScheduler.UpdateJob operation. To recover a job from this state, retry - // CloudScheduler.UpdateJob until a successful response is received. + // [CloudScheduler.UpdateJob](https://cloud.google.com/scheduler/docs/creating#e + // dit) operation. To recover a job from this state, retry + // [CloudScheduler.UpdateJob](https://cloud.google.com/scheduler/docs/creating#e + // dit) until a successful response is received. // "INITIALIZING" - The schedule resource is being created. // "DELETING" - The schedule resource is being deleted. State string `json:"state,omitempty"` @@ -2773,7 +2776,7 @@ func (s SetInstanceLabelsRequest) MarshalJSON() ([]byte, error) { // SetInstanceMachineTypeRequest: Request for setting instance machine type. type SetInstanceMachineTypeRequest struct { // MachineType: Required. The Compute Engine machine type - // (https://cloud.google.com/compute/docs/machine-types). + // (https://cloud.google.com/compute/docs/machine-resource). MachineType string `json:"machineType,omitempty"` // ForceSendFields is a list of field names (e.g. "MachineType") to // unconditionally include in API requests. By default, fields with empty or diff --git a/notebooks/v2/notebooks-api.json b/notebooks/v2/notebooks-api.json index 6bf661bb1ac..67909376873 100644 --- a/notebooks/v2/notebooks-api.json +++ b/notebooks/v2/notebooks-api.json @@ -904,7 +904,7 @@ } } }, - "revision": "20241016", + "revision": "20241106", "rootUrl": "https://notebooks.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -1718,7 +1718,7 @@ "type": "string" }, "requestedCancellation": { - "description": "Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "description": "Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have google.longrunning.Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.", "type": "boolean" }, "statusMessage": { diff --git a/notebooks/v2/notebooks-gen.go b/notebooks/v2/notebooks-gen.go index 73069179478..1dde01c2ad6 100644 --- a/notebooks/v2/notebooks-gen.go +++ b/notebooks/v2/notebooks-gen.go @@ -1190,8 +1190,8 @@ type OperationMetadata struct { Endpoint string `json:"endpoint,omitempty"` // RequestedCancellation: Identifies whether the user has requested // cancellation of the operation. Operations that have successfully been - // cancelled have Operation.error value with a google.rpc.Status.code of 1, - // corresponding to `Code.CANCELLED`. + // cancelled have google.longrunning.Operation.error value with a + // google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. RequestedCancellation bool `json:"requestedCancellation,omitempty"` // StatusMessage: Human-readable status of the operation, if any. StatusMessage string `json:"statusMessage,omitempty"` diff --git a/privateca/v1/privateca-api.json b/privateca/v1/privateca-api.json index b9a8b924fc7..6d88f8db1da 100644 --- a/privateca/v1/privateca-api.json +++ b/privateca/v1/privateca-api.json @@ -1028,7 +1028,7 @@ ], "parameters": { "certificateId": { - "description": "Optional. It must be unique within a location and match the regular expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a CertificateAuthority in the Enterprise CertificateAuthority.Tier, but is optional and its value is ignored otherwise.", + "description": "Optional. It must be unique within a location and match the regular expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a CertificateAuthority in the Enterprise CertificateAuthority.tier, but is optional and its value is ignored otherwise.", "location": "query", "type": "string" }, @@ -1605,7 +1605,7 @@ } } }, - "revision": "20241002", + "revision": "20241106", "rootUrl": "https://privateca.googleapis.com/", "schemas": { "AccessUrls": { @@ -2641,7 +2641,7 @@ "type": "array" }, "nextPageToken": { - "description": "A token to retrieve next page of results. Pass this value in ListCertificateAuthoritiesRequest.next_page_token to retrieve the next page of results.", + "description": "A token to retrieve next page of results. Pass this value in ListCertificateAuthoritiesRequest.page_token to retrieve the next page of results.", "type": "string" }, "unreachable": { @@ -2666,7 +2666,7 @@ "type": "array" }, "nextPageToken": { - "description": "A token to retrieve next page of results. Pass this value in ListCertificateAuthoritiesRequest.next_page_token to retrieve the next page of results.", + "description": "A token to retrieve next page of results. Pass this value in ListCertificateAuthoritiesRequest.page_token to retrieve the next page of results.", "type": "string" }, "unreachable": { @@ -2691,7 +2691,7 @@ "type": "array" }, "nextPageToken": { - "description": "A token to retrieve next page of results. Pass this value in ListCertificateRevocationListsRequest.next_page_token to retrieve the next page of results.", + "description": "A token to retrieve next page of results. Pass this value in ListCertificateRevocationListsRequest.page_token to retrieve the next page of results.", "type": "string" }, "unreachable": { @@ -2716,7 +2716,7 @@ "type": "array" }, "nextPageToken": { - "description": "A token to retrieve next page of results. Pass this value in ListCertificateTemplatesRequest.next_page_token to retrieve the next page of results.", + "description": "A token to retrieve next page of results. Pass this value in ListCertificateTemplatesRequest.page_token to retrieve the next page of results.", "type": "string" }, "unreachable": { @@ -2741,7 +2741,7 @@ "type": "array" }, "nextPageToken": { - "description": "A token to retrieve next page of results. Pass this value in ListCertificatesRequest.next_page_token to retrieve the next page of results.", + "description": "A token to retrieve next page of results. Pass this value in ListCertificatesRequest.page_token to retrieve the next page of results.", "type": "string" }, "unreachable": { @@ -2963,7 +2963,7 @@ "type": "string" }, "requestedCancellation": { - "description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have google.longrunning.Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", "readOnly": true, "type": "boolean" }, diff --git a/privateca/v1/privateca-gen.go b/privateca/v1/privateca-gen.go index 0bdaae81ae7..a09b616c354 100644 --- a/privateca/v1/privateca-gen.go +++ b/privateca/v1/privateca-gen.go @@ -1686,8 +1686,8 @@ type ListCaPoolsResponse struct { // CaPools: The list of CaPools. CaPools []*CaPool `json:"caPools,omitempty"` // NextPageToken: A token to retrieve next page of results. Pass this value in - // ListCertificateAuthoritiesRequest.next_page_token to retrieve the next page - // of results. + // ListCertificateAuthoritiesRequest.page_token to retrieve the next page of + // results. NextPageToken string `json:"nextPageToken,omitempty"` // Unreachable: A list of locations (e.g. "us-west1") that could not be // reached. @@ -1719,8 +1719,8 @@ type ListCertificateAuthoritiesResponse struct { // CertificateAuthorities: The list of CertificateAuthorities. CertificateAuthorities []*CertificateAuthority `json:"certificateAuthorities,omitempty"` // NextPageToken: A token to retrieve next page of results. Pass this value in - // ListCertificateAuthoritiesRequest.next_page_token to retrieve the next page - // of results. + // ListCertificateAuthoritiesRequest.page_token to retrieve the next page of + // results. NextPageToken string `json:"nextPageToken,omitempty"` // Unreachable: A list of locations (e.g. "us-west1") that could not be // reached. @@ -1752,8 +1752,8 @@ type ListCertificateRevocationListsResponse struct { // CertificateRevocationLists: The list of CertificateRevocationLists. CertificateRevocationLists []*CertificateRevocationList `json:"certificateRevocationLists,omitempty"` // NextPageToken: A token to retrieve next page of results. Pass this value in - // ListCertificateRevocationListsRequest.next_page_token to retrieve the next - // page of results. + // ListCertificateRevocationListsRequest.page_token to retrieve the next page + // of results. NextPageToken string `json:"nextPageToken,omitempty"` // Unreachable: A list of locations (e.g. "us-west1") that could not be // reached. @@ -1785,7 +1785,7 @@ type ListCertificateTemplatesResponse struct { // CertificateTemplates: The list of CertificateTemplates. CertificateTemplates []*CertificateTemplate `json:"certificateTemplates,omitempty"` // NextPageToken: A token to retrieve next page of results. Pass this value in - // ListCertificateTemplatesRequest.next_page_token to retrieve the next page of + // ListCertificateTemplatesRequest.page_token to retrieve the next page of // results. NextPageToken string `json:"nextPageToken,omitempty"` // Unreachable: A list of locations (e.g. "us-west1") that could not be @@ -1818,8 +1818,7 @@ type ListCertificatesResponse struct { // Certificates: The list of Certificates. Certificates []*Certificate `json:"certificates,omitempty"` // NextPageToken: A token to retrieve next page of results. Pass this value in - // ListCertificatesRequest.next_page_token to retrieve the next page of - // results. + // ListCertificatesRequest.page_token to retrieve the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` // Unreachable: A list of locations (e.g. "us-west1") that could not be // reached. @@ -2081,8 +2080,8 @@ type OperationMetadata struct { EndTime string `json:"endTime,omitempty"` // RequestedCancellation: Output only. Identifies whether the user has // requested cancellation of the operation. Operations that have successfully - // been cancelled have Operation.error value with a google.rpc.Status.code of - // 1, corresponding to `Code.CANCELLED`. + // been cancelled have google.longrunning.Operation.error value with a + // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. RequestedCancellation bool `json:"requestedCancellation,omitempty"` // StatusMessage: Output only. Human-readable status of the operation, if any. StatusMessage string `json:"statusMessage,omitempty"` @@ -6196,7 +6195,7 @@ func (r *ProjectsLocationsCaPoolsCertificatesService) Create(parent string, cert // CertificateId sets the optional parameter "certificateId": It must be unique // within a location and match the regular expression `[a-zA-Z0-9_-]{1,63}`. // This field is required when using a CertificateAuthority in the Enterprise -// CertificateAuthority.Tier, but is optional and its value is ignored +// CertificateAuthority.tier, but is optional and its value is ignored // otherwise. func (c *ProjectsLocationsCaPoolsCertificatesCreateCall) CertificateId(certificateId string) *ProjectsLocationsCaPoolsCertificatesCreateCall { c.urlParams_.Set("certificateId", certificateId) diff --git a/storage/v1/storage-api.json b/storage/v1/storage-api.json index 09b7f6487aa..96599143e6a 100644 --- a/storage/v1/storage-api.json +++ b/storage/v1/storage-api.json @@ -93,7 +93,7 @@ "location": "us-west4" } ], - "etag": "\"3132333635343336333933383332343134323139\"", + "etag": "\"3134393437363236373436353839383934323639\"", "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" @@ -1129,6 +1129,19 @@ "required": true, "type": "string" }, + "projection": { + "description": "Set of properties to return. Defaults to full.", + "enum": [ + "full", + "noAcl" + ], + "enumDescriptions": [ + "Include all properties.", + "Omit owner, acl and defaultObjectAcl properties." + ], + "location": "query", + "type": "string" + }, "userProject": { "description": "The project to be billed for this request. Required for Requester Pays buckets.", "location": "query", @@ -1136,6 +1149,9 @@ } }, "path": "b/{bucket}/restore", + "response": { + "$ref": "Bucket" + }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/devstorage.full_control", @@ -4256,7 +4272,7 @@ } } }, - "revision": "20241008", + "revision": "20241113", "rootUrl": "https://storage.googleapis.com/", "schemas": { "AdvanceRelocateBucketOperationRequest": { @@ -5790,6 +5806,11 @@ "format": "date-time", "type": "string" }, + "timeFinalized": { + "description": "The time when the object was finalized.", + "format": "date-time", + "type": "string" + }, "timeStorageClassUpdated": { "description": "The time at which the object's storage class was last changed. When the object is initially created, it will be set to timeCreated.", "format": "date-time", diff --git a/storage/v1/storage-gen.go b/storage/v1/storage-gen.go index 2c11b2d8d61..8cb6c0771d5 100644 --- a/storage/v1/storage-gen.go +++ b/storage/v1/storage-gen.go @@ -2300,6 +2300,8 @@ type Object struct { // format. Will be returned if and only if this version of the object has been // deleted. TimeDeleted string `json:"timeDeleted,omitempty"` + // TimeFinalized: The time when the object was finalized. + TimeFinalized string `json:"timeFinalized,omitempty"` // TimeStorageClassUpdated: The time at which the object's storage class was // last changed. When the object is initially created, it will be set to // timeCreated. @@ -5537,6 +5539,18 @@ func (r *BucketsService) Restore(bucket string, generation int64) *BucketsRestor return c } +// Projection sets the optional parameter "projection": Set of properties to +// return. Defaults to full. +// +// Possible values: +// +// "full" - Include all properties. +// "noAcl" - Omit owner, acl and defaultObjectAcl properties. +func (c *BucketsRestoreCall) Projection(projection string) *BucketsRestoreCall { + c.urlParams_.Set("projection", projection) + return c +} + // UserProject sets the optional parameter "userProject": The project to be // billed for this request. Required for Requester Pays buckets. func (c *BucketsRestoreCall) UserProject(userProject string) *BucketsRestoreCall { @@ -5586,17 +5600,40 @@ func (c *BucketsRestoreCall) doRequest(alt string) (*http.Response, error) { } // Do executes the "storage.buckets.restore" call. -func (c *BucketsRestoreCall) Do(opts ...googleapi.CallOption) error { +// Any non-2xx status code is an error. Response headers are in either +// *Bucket.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 *BucketsRestoreCall) Do(opts ...googleapi.CallOption) (*Bucket, 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 err + return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { - return gensupport.WrapError(err) + return nil, gensupport.WrapError(err) } - return nil + ret := &Bucket{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil } type BucketsSetIamPolicyCall struct { diff --git a/texttospeech/v1/texttospeech-api.json b/texttospeech/v1/texttospeech-api.json index 5e7f4733319..fd347dc6141 100644 --- a/texttospeech/v1/texttospeech-api.json +++ b/texttospeech/v1/texttospeech-api.json @@ -108,7 +108,7 @@ "operations": { "methods": { "cancel": { - "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.", "flatPath": "v1/operations/{operationsId}:cancel", "httpMethod": "POST", "id": "texttospeech.operations.cancel", @@ -318,7 +318,7 @@ } } }, - "revision": "20241026", + "revision": "20241116", "rootUrl": "https://texttospeech.googleapis.com/", "schemas": { "AdvancedVoiceOptions": { diff --git a/texttospeech/v1/texttospeech-gen.go b/texttospeech/v1/texttospeech-gen.go index 38577322244..8f0c1059eb2 100644 --- a/texttospeech/v1/texttospeech-gen.go +++ b/texttospeech/v1/texttospeech-gen.go @@ -979,7 +979,7 @@ type OperationsCancelCall struct { // other methods to check whether the cancellation succeeded or whether the // operation completed despite cancellation. On successful cancellation, the // operation is not deleted; instead, it becomes an operation with an -// Operation.error value with a google.rpc.Status.code of 1, corresponding to +// Operation.error value with a google.rpc.Status.code of `1`, corresponding to // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled.