From 47cbba61ec8d62ebdfd1affe3a9244b20184c781 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 23 Apr 2025 00:40:21 -0700 Subject: [PATCH 1/8] feat(all): auto-regenerate discovery clients (#3122) --- aiplatform/v1/aiplatform-api.json | 411 +- aiplatform/v1/aiplatform-gen.go | 2328 ++++++++--- aiplatform/v1beta1/aiplatform-api.json | 634 ++- aiplatform/v1beta1/aiplatform-gen.go | 3396 +++++++++++++---- .../v1beta2/artifactregistry-api.json | 18 +- .../v1beta2/artifactregistry-gen.go | 8 + chat/v1/chat-api.json | 6 +- chat/v1/chat-gen.go | 4 +- classroom/v1/classroom-api.json | 4 +- classroom/v1/classroom-gen.go | 2 +- cloudbuild/v1/cloudbuild-api.json | 7 +- cloudbuild/v2/cloudbuild-api.json | 7 +- cloudchannel/v1/cloudchannel-api.json | 28 +- cloudchannel/v1/cloudchannel-gen.go | 52 +- .../v2/cloudresourcemanager-api.json | 15 +- .../v2/cloudresourcemanager-gen.go | 16 +- .../v2beta1/cloudresourcemanager-api.json | 15 +- .../v2beta1/cloudresourcemanager-gen.go | 16 +- .../v3/cloudresourcemanager-api.json | 95 +- .../v3/cloudresourcemanager-gen.go | 283 +- css/v1/css-api.json | 10 +- css/v1/css-gen.go | 8 +- discoveryengine/v1/discoveryengine-api.json | 458 ++- discoveryengine/v1/discoveryengine-gen.go | 761 +++- .../v1alpha/discoveryengine-api.json | 522 ++- .../v1alpha/discoveryengine-gen.go | 759 +++- .../v1beta/discoveryengine-api.json | 495 ++- discoveryengine/v1beta/discoveryengine-gen.go | 741 +++- firebaseml/v2beta/firebaseml-api.json | 19 +- firebaseml/v2beta/firebaseml-gen.go | 12 + forms/v1/forms-api.json | 4 +- forms/v1/forms-gen.go | 4 +- language/v1/language-api.json | 6 +- language/v1/language-gen.go | 2 + language/v1beta2/language-api.json | 6 +- language/v1beta2/language-gen.go | 2 + language/v2/language-api.json | 6 +- language/v2/language-gen.go | 2 + licensing/v1/licensing-api.json | 4 +- licensing/v1/licensing-gen.go | 2 +- .../accounts_v1beta/merchantapi-api.json | 19 +- .../accounts_v1beta/merchantapi-gen.go | 63 +- reseller/v1/reseller-api.json | 24 +- reseller/v1/reseller-gen.go | 56 +- serviceusage/v1beta1/serviceusage-api.json | 4 +- serviceusage/v1beta1/serviceusage-gen.go | 6 +- sheets/v4/sheets-api.json | 214 +- sheets/v4/sheets-gen.go | 252 +- vpcaccess/v1/vpcaccess-api.json | 8 +- vpcaccess/v1/vpcaccess-gen.go | 8 + vpcaccess/v1beta1/vpcaccess-api.json | 8 +- vpcaccess/v1beta1/vpcaccess-gen.go | 8 + 52 files changed, 10307 insertions(+), 1531 deletions(-) diff --git a/aiplatform/v1/aiplatform-api.json b/aiplatform/v1/aiplatform-api.json index 41a92d5d14a..6bf870a6533 100644 --- a/aiplatform/v1/aiplatform-api.json +++ b/aiplatform/v1/aiplatform-api.json @@ -315,6 +315,102 @@ }, "protocol": "rest", "resources": { + "batchPredictionJobs": { + "methods": { + "create": { + "description": "Creates a BatchPredictionJob. A BatchPredictionJob once created will right away be attempted to start.", + "flatPath": "v1/batchPredictionJobs", + "httpMethod": "POST", + "id": "aiplatform.batchPredictionJobs.create", + "parameterOrder": [], + "parameters": { + "parent": { + "description": "Required. The resource name of the Location to create the BatchPredictionJob in. Format: `projects/{project}/locations/{location}`", + "location": "query", + "type": "string" + } + }, + "path": "v1/batchPredictionJobs", + "request": { + "$ref": "GoogleCloudAiplatformV1BatchPredictionJob" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1BatchPredictionJob" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets a BatchPredictionJob", + "flatPath": "v1/batchPredictionJobs/{batchPredictionJobsId}", + "httpMethod": "GET", + "id": "aiplatform.batchPredictionJobs.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the BatchPredictionJob resource. Format: `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}`", + "location": "path", + "pattern": "^batchPredictionJobs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudAiplatformV1BatchPredictionJob" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists BatchPredictionJobs in a Location.", + "flatPath": "v1/batchPredictionJobs", + "httpMethod": "GET", + "id": "aiplatform.batchPredictionJobs.list", + "parameterOrder": [], + "parameters": { + "filter": { + "description": "The standard list filter. Supported fields: * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. * `model_display_name` supports `=`, `!=` comparisons. * `state` supports `=`, `!=` comparisons. * `create_time` supports `=`, `!=`,`\u003c`, `\u003c=`,`\u003e`, `\u003e=` comparisons. `create_time` must be in RFC 3339 format. * `labels` supports general map functions that is: `labels.key=value` - key:value equality `labels.key:* - key existence Some examples of using the filter are: * `state=\"JOB_STATE_SUCCEEDED\" AND display_name:\"my_job_*\"` * `state!=\"JOB_STATE_FAILED\" OR display_name=\"my_job\"` * `NOT display_name=\"my_job\"` * `create_time\u003e\"2021-05-18T00:00:00Z\"` * `labels.keyA=valueA` * `labels.keyB:*`", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token. Typically obtained via ListBatchPredictionJobsResponse.next_page_token of the previous JobService.ListBatchPredictionJobs call.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the Location to list the BatchPredictionJobs from. Format: `projects/{project}/locations/{location}`", + "location": "query", + "type": "string" + }, + "readMask": { + "description": "Mask specifying which fields to read.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/batchPredictionJobs", + "response": { + "$ref": "GoogleCloudAiplatformV1ListBatchPredictionJobsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "datasets": { "methods": { "create": { @@ -827,6 +923,41 @@ "https://www.googleapis.com/auth/cloud-platform.read-only" ] } + }, + "resources": { + "chat": { + "methods": { + "completions": { + "description": "Exposes an OpenAI-compatible endpoint for chat completions.", + "flatPath": "v1/endpoints/{endpointsId}/chat/completions", + "httpMethod": "POST", + "id": "aiplatform.endpoints.chat.completions", + "parameterOrder": [ + "endpoint" + ], + "parameters": { + "endpoint": { + "description": "Required. The name of the endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + "location": "path", + "pattern": "^endpoints/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+endpoint}/chat/completions", + "request": { + "$ref": "GoogleApiHttpBody" + }, + "response": { + "$ref": "GoogleApiHttpBody" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + } + } + } } }, "media": { @@ -15363,6 +15494,161 @@ } } }, + "ragEngineConfig": { + "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}/ragEngineConfig/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.ragEngineConfig.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/ragEngineConfig/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}/ragEngineConfig/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.ragEngineConfig.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/ragEngineConfig/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}/ragEngineConfig/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.ragEngineConfig.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/ragEngineConfig/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}/ragEngineConfig/operations", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.ragEngineConfig.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/[^/]+/ragEngineConfig$", + "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}/ragEngineConfig/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.ragEngineConfig.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/ragEngineConfig/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" + ] + } + } + } + } + }, "reasoningEngines": { "methods": { "create": { @@ -19555,7 +19841,7 @@ } } }, - "revision": "20250322", + "revision": "20250415", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "CloudAiLargeModelsVisionGenerateVideoResponse": { @@ -20445,7 +20731,7 @@ "type": "string" }, "flipEnabled": { - "description": "Optional. Whether to flip the candidate and baseline responses. This is only applicable to the pairwise metric. If enabled, also provide PairwiseMetricSpec.candidate_response_field_name and PairwiseMetricSpec.baseline_response_field_name. When rendering PairwiseMetricSpec.metric_prompt_template, the candidate and baseline fields will be flipped for half of the samples to reduce bias.", + "description": "Optional. Default is true. Whether to flip the candidate and baseline responses. This is only applicable to the pairwise metric. If enabled, also provide PairwiseMetricSpec.candidate_response_field_name and PairwiseMetricSpec.baseline_response_field_name. When rendering PairwiseMetricSpec.metric_prompt_template, the candidate and baseline fields will be flipped for half of the samples to reduce bias.", "type": "boolean" }, "samplingCount": { @@ -25552,6 +25838,10 @@ "description": "The fact used in grounding.", "id": "GoogleCloudAiplatformV1Fact", "properties": { + "chunk": { + "$ref": "GoogleCloudAiplatformV1RagChunk", + "description": "If present, chunk properties." + }, "query": { "description": "Query that is used to retrieve this fact.", "type": "string" @@ -27109,7 +27399,7 @@ "description": "Properties of the object.", "type": "any" }, - "description": "Optional. Required. The function parameters and values in JSON object format. See [FunctionDeclaration.parameters] for parameter details.", + "description": "Optional. The function parameters and values in JSON object format. See [FunctionDeclaration.parameters] for parameter details.", "type": "object" }, "name": { @@ -27207,7 +27497,7 @@ "id": "GoogleCloudAiplatformV1GcsSource", "properties": { "uris": { - "description": "Required. Google Cloud Storage URI(-s) to the input file(s). May contain wildcards. For more information on wildcards, see https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames.", + "description": "Required. Google Cloud Storage URI(-s) to the input file(s). May contain wildcards. For more information on wildcards, see https://cloud.google.com/storage/docs/wildcards.", "items": { "type": "string" }, @@ -27613,6 +27903,10 @@ "format": "float", "type": "number" }, + "thinkingConfig": { + "$ref": "GoogleCloudAiplatformV1GenerationConfigThinkingConfig", + "description": "Optional. Config for thinking features. An error will be returned if this field is set for models that don't support thinking." + }, "topK": { "description": "Optional. If specified, top-k sampling will be used.", "format": "float", @@ -27669,12 +27963,24 @@ "id": "GoogleCloudAiplatformV1GenerationConfigRoutingConfigManualRoutingMode", "properties": { "modelName": { - "description": "The model name to use. Only the public LLM models are accepted. e.g. 'gemini-1.5-pro-001'.", + "description": "The model name to use. Only the public LLM models are accepted. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models).", "type": "string" } }, "type": "object" }, + "GoogleCloudAiplatformV1GenerationConfigThinkingConfig": { + "description": "Config for thinking features.", + "id": "GoogleCloudAiplatformV1GenerationConfigThinkingConfig", + "properties": { + "thinkingBudget": { + "description": "Optional. Indicates the thinking budget in tokens. This is only applied when enable_thinking is true.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1GenericOperationMetadata": { "description": "Generic Metadata shared by all operations.", "id": "GoogleCloudAiplatformV1GenericOperationMetadata", @@ -27848,6 +28154,10 @@ "description": "Chunk from context retrieved by the retrieval tools.", "id": "GoogleCloudAiplatformV1GroundingChunkRetrievedContext", "properties": { + "ragChunk": { + "$ref": "GoogleCloudAiplatformV1RagChunk", + "description": "Additional context for the RAG retrieval result. This is only populated when using the RAG retrieval tool." + }, "text": { "description": "Text of the attribution.", "type": "string" @@ -32791,6 +33101,40 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1NotebookReservationAffinity": { + "description": "Notebook Reservation Affinity for consuming Zonal reservation.", + "id": "GoogleCloudAiplatformV1NotebookReservationAffinity", + "properties": { + "consumeReservationType": { + "description": "Required. Specifies the type of reservation from which this instance can consume resources: RESERVATION_ANY (default), RESERVATION_SPECIFIC, or RESERVATION_NONE. See Consuming reserved instances for examples.", + "enum": [ + "RESERVATION_AFFINITY_TYPE_UNSPECIFIED", + "RESERVATION_NONE", + "RESERVATION_ANY", + "RESERVATION_SPECIFIC" + ], + "enumDescriptions": [ + "Default type.", + "Do not consume from any allocated capacity.", + "Consume any reservation available.", + "Must consume from a specific reservation. Must specify key value fields for specifying the reservations." + ], + "type": "string" + }, + "key": { + "description": "Optional. Corresponds to the label key of a reservation resource. To target a RESERVATION_SPECIFIC by name, use compute.googleapis.com/reservation-name as the key and specify the name of your reservation as its value.", + "type": "string" + }, + "values": { + "description": "Optional. Corresponds to the label values of a reservation resource. This must be the full path name of Reservation.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1NotebookRuntime": { "description": "A runtime is a virtual machine allocated to a particular user for a particular Notebook file on temporary basis with lifetime limited to 24 hours.", "id": "GoogleCloudAiplatformV1NotebookRuntime", @@ -32909,6 +33253,11 @@ "readOnly": true, "type": "string" }, + "reservationAffinity": { + "$ref": "GoogleCloudAiplatformV1NotebookReservationAffinity", + "description": "Output only. Reservation Affinity of the notebook runtime.", + "readOnly": true + }, "runtimeState": { "description": "Output only. The runtime (instance) state of the NotebookRuntime.", "enum": [ @@ -33061,6 +33410,10 @@ ], "type": "string" }, + "reservationAffinity": { + "$ref": "GoogleCloudAiplatformV1NotebookReservationAffinity", + "description": "Optional. Reservation Affinity of the notebook runtime template." + }, "serviceAccount": { "deprecated": true, "description": "Deprecated: This field is ignored and the \"Vertex AI Notebook Service Account\" (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is used for the runtime workload identity. See https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account for more details. For NotebookExecutionJob, use NotebookExecutionJob.service_account instead. The service account that the runtime workload runs as. You can use any service account within the same project, but you must have the service account user permission to use the instance. If not specified, the [Compute Engine default service account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used.", @@ -34467,7 +34820,7 @@ "type": "integer" }, "service": { - "description": "Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the default behavior is defined by gRPC.", + "description": "Service is the name of the service to place in the gRPC HealthCheckRequest. See https://github.com/grpc/grpc/blob/master/doc/health-checking.md. If this is not specified, the default behavior is defined by gRPC.", "type": "string" } }, @@ -35468,6 +35821,38 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1RagChunk": { + "description": "A RagChunk includes the content of a chunk of a RagFile, and associated metadata.", + "id": "GoogleCloudAiplatformV1RagChunk", + "properties": { + "pageSpan": { + "$ref": "GoogleCloudAiplatformV1RagChunkPageSpan", + "description": "If populated, represents where the chunk starts and ends in the document." + }, + "text": { + "description": "The content of the chunk.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1RagChunkPageSpan": { + "description": "Represents where the chunk starts and ends in the document.", + "id": "GoogleCloudAiplatformV1RagChunkPageSpan", + "properties": { + "firstPage": { + "description": "Page where chunk starts in the document. Inclusive. 1-indexed.", + "format": "int32", + "type": "integer" + }, + "lastPage": { + "description": "Page where chunk ends in the document. Inclusive. 1-indexed.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1RagContexts": { "description": "Relevant contexts for one query.", "id": "GoogleCloudAiplatformV1RagContexts", @@ -35486,6 +35871,10 @@ "description": "A context of the query.", "id": "GoogleCloudAiplatformV1RagContextsContext", "properties": { + "chunk": { + "$ref": "GoogleCloudAiplatformV1RagChunk", + "description": "Context of the retrieved chunk." + }, "score": { "description": "According to the underlying Vector DB and the selected metric type, the score can be either the distance or the similarity between the query and the context and its range depends on the metric type. For example, if the metric type is COSINE_DISTANCE, it represents the distance between the query and the context. The larger the distance, the less relevant the context is to the query. The range is [0, 2], while 0 means the most relevant and 2 means the least relevant.", "format": "double", @@ -35789,7 +36178,7 @@ "id": "GoogleCloudAiplatformV1RagRetrievalConfigRankingLlmRanker", "properties": { "modelName": { - "description": "Optional. The model name used for ranking. Format: `gemini-1.5-pro`", + "description": "Optional. The model name used for ranking. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models).", "type": "string" } }, @@ -36192,7 +36581,7 @@ "id": "GoogleCloudAiplatformV1ReasoningEngineSpec", "properties": { "agentFramework": { - "description": "Optional. The OSS agent framework used to develop the agent. Currently supported values: \"langchain\", \"langgraph\", \"ag2\", \"custom\".", + "description": "Optional. The OSS agent framework used to develop the agent. Currently supported values: \"google-adk\", \"langchain\", \"langgraph\", \"ag2\", \"llama-index\", \"custom\".", "type": "string" }, "classMethods": { @@ -42030,6 +42419,10 @@ "description": "The speech generation config.", "id": "GoogleCloudAiplatformV1SpeechConfig", "properties": { + "languageCode": { + "description": "Optional. Language code (ISO 639. e.g. en-US) for the speech synthesization.", + "type": "string" + }, "voiceConfig": { "$ref": "GoogleCloudAiplatformV1VoiceConfig", "description": "The configuration for the speaker to use." @@ -44914,7 +45307,7 @@ "id": "GoogleCloudAiplatformV1TuningJob", "properties": { "baseModel": { - "description": "The base model that is being tuned, e.g., \"gemini-1.0-pro-002\". .", + "description": "The base model that is being tuned. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).", "type": "string" }, "createTime": { diff --git a/aiplatform/v1/aiplatform-gen.go b/aiplatform/v1/aiplatform-gen.go index 17a70ff037c..733d93428bf 100644 --- a/aiplatform/v1/aiplatform-gen.go +++ b/aiplatform/v1/aiplatform-gen.go @@ -129,6 +129,7 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err return nil, err } s := &Service{client: client, BasePath: basePath, logger: internaloption.GetLogger(opts)} + s.BatchPredictionJobs = NewBatchPredictionJobsService(s) s.Datasets = NewDatasetsService(s) s.Endpoints = NewEndpointsService(s) s.Media = NewMediaService(s) @@ -158,6 +159,8 @@ type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment + BatchPredictionJobs *BatchPredictionJobsService + Datasets *DatasetsService Endpoints *EndpointsService @@ -176,6 +179,15 @@ func (s *Service) userAgent() string { return googleapi.UserAgent + " " + s.UserAgent } +func NewBatchPredictionJobsService(s *Service) *BatchPredictionJobsService { + rs := &BatchPredictionJobsService{s: s} + return rs +} + +type BatchPredictionJobsService struct { + s *Service +} + func NewDatasetsService(s *Service) *DatasetsService { rs := &DatasetsService{s: s} rs.DatasetVersions = NewDatasetsDatasetVersionsService(s) @@ -199,11 +211,23 @@ type DatasetsDatasetVersionsService struct { func NewEndpointsService(s *Service) *EndpointsService { rs := &EndpointsService{s: s} + rs.Chat = NewEndpointsChatService(s) return rs } type EndpointsService struct { s *Service + + Chat *EndpointsChatService +} + +func NewEndpointsChatService(s *Service) *EndpointsChatService { + rs := &EndpointsChatService{s: s} + return rs +} + +type EndpointsChatService struct { + s *Service } func NewMediaService(s *Service) *MediaService { @@ -255,6 +279,7 @@ func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs.PipelineJobs = NewProjectsLocationsPipelineJobsService(s) rs.Publishers = NewProjectsLocationsPublishersService(s) rs.RagCorpora = NewProjectsLocationsRagCorporaService(s) + rs.RagEngineConfig = NewProjectsLocationsRagEngineConfigService(s) rs.ReasoningEngines = NewProjectsLocationsReasoningEnginesService(s) rs.Schedules = NewProjectsLocationsSchedulesService(s) rs.SpecialistPools = NewProjectsLocationsSpecialistPoolsService(s) @@ -320,6 +345,8 @@ type ProjectsLocationsService struct { RagCorpora *ProjectsLocationsRagCorporaService + RagEngineConfig *ProjectsLocationsRagEngineConfigService + ReasoningEngines *ProjectsLocationsReasoningEnginesService Schedules *ProjectsLocationsSchedulesService @@ -1217,6 +1244,27 @@ type ProjectsLocationsRagCorporaRagFilesOperationsService struct { s *Service } +func NewProjectsLocationsRagEngineConfigService(s *Service) *ProjectsLocationsRagEngineConfigService { + rs := &ProjectsLocationsRagEngineConfigService{s: s} + rs.Operations = NewProjectsLocationsRagEngineConfigOperationsService(s) + return rs +} + +type ProjectsLocationsRagEngineConfigService struct { + s *Service + + Operations *ProjectsLocationsRagEngineConfigOperationsService +} + +func NewProjectsLocationsRagEngineConfigOperationsService(s *Service) *ProjectsLocationsRagEngineConfigOperationsService { + rs := &ProjectsLocationsRagEngineConfigOperationsService{s: s} + return rs +} + +type ProjectsLocationsRagEngineConfigOperationsService struct { + s *Service +} + func NewProjectsLocationsReasoningEnginesService(s *Service) *ProjectsLocationsReasoningEnginesService { rs := &ProjectsLocationsReasoningEnginesService{s: s} rs.Operations = NewProjectsLocationsReasoningEnginesOperationsService(s) @@ -2672,9 +2720,9 @@ type GoogleCloudAiplatformV1AutoraterConfig struct { // endpoint format: // `projects/{project}/locations/{location}/endpoints/{endpoint}` AutoraterModel string `json:"autoraterModel,omitempty"` - // FlipEnabled: Optional. Whether to flip the candidate and baseline responses. - // This is only applicable to the pairwise metric. If enabled, also provide - // PairwiseMetricSpec.candidate_response_field_name and + // FlipEnabled: Optional. Default is true. Whether to flip the candidate and + // baseline responses. This is only applicable to the pairwise metric. If + // enabled, also provide PairwiseMetricSpec.candidate_response_field_name and // PairwiseMetricSpec.baseline_response_field_name. When rendering // PairwiseMetricSpec.metric_prompt_template, the candidate and baseline fields // will be flipped for half of the samples to reduce bias. @@ -9987,6 +10035,8 @@ func (s GoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataResponse) MarshalJ // GoogleCloudAiplatformV1Fact: The fact used in grounding. type GoogleCloudAiplatformV1Fact struct { + // Chunk: If present, chunk properties. + Chunk *GoogleCloudAiplatformV1RagChunk `json:"chunk,omitempty"` // Query: Query that is used to retrieve this fact. Query string `json:"query,omitempty"` // Score: If present, according to the underlying Vector DB and the selected @@ -10006,13 +10056,13 @@ type GoogleCloudAiplatformV1Fact struct { // VectorDistance: If present, the distance between the query vector and this // fact vector. VectorDistance float64 `json:"vectorDistance,omitempty"` - // ForceSendFields is a list of field names (e.g. "Query") to unconditionally + // ForceSendFields is a list of field names (e.g. "Chunk") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Query") to include in API + // NullFields is a list of field names (e.g. "Chunk") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -12354,8 +12404,8 @@ func (s GoogleCloudAiplatformV1FulfillmentSpec) MarshalJSON() ([]byte, error) { // [FunctionDeclaration.name] and a structured JSON object containing the // parameters and their values. type GoogleCloudAiplatformV1FunctionCall struct { - // Args: Optional. Required. The function parameters and values in JSON object - // format. See [FunctionDeclaration.parameters] for parameter details. + // Args: Optional. The function parameters and values in JSON object format. + // See [FunctionDeclaration.parameters] for parameter details. Args googleapi.RawMessage `json:"args,omitempty"` // Name: Required. The name of the function to call. Matches // [FunctionDeclaration.name]. @@ -12525,7 +12575,7 @@ func (s GoogleCloudAiplatformV1GcsDestination) MarshalJSON() ([]byte, error) { type GoogleCloudAiplatformV1GcsSource struct { // Uris: Required. Google Cloud Storage URI(-s) to the input file(s). May // contain wildcards. For more information on wildcards, see - // https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames. + // https://cloud.google.com/storage/docs/wildcards. Uris []string `json:"uris,omitempty"` // ForceSendFields is a list of field names (e.g. "Uris") to unconditionally // include in API requests. By default, fields with empty or default values are @@ -12897,6 +12947,9 @@ type GoogleCloudAiplatformV1GenerationConfig struct { StopSequences []string `json:"stopSequences,omitempty"` // Temperature: Optional. Controls the randomness of predictions. Temperature float64 `json:"temperature,omitempty"` + // ThinkingConfig: Optional. Config for thinking features. An error will be + // returned if this field is set for models that don't support thinking. + ThinkingConfig *GoogleCloudAiplatformV1GenerationConfigThinkingConfig `json:"thinkingConfig,omitempty"` // TopK: Optional. If specified, top-k sampling will be used. TopK float64 `json:"topK,omitempty"` // TopP: Optional. If specified, nucleus sampling will be used. @@ -13000,7 +13053,8 @@ func (s GoogleCloudAiplatformV1GenerationConfigRoutingConfigAutoRoutingMode) Mar // manual routing is set, the specified model will be used directly. type GoogleCloudAiplatformV1GenerationConfigRoutingConfigManualRoutingMode struct { // ModelName: The model name to use. Only the public LLM models are accepted. - // e.g. 'gemini-1.5-pro-001'. + // See Supported models + // (https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models). ModelName string `json:"modelName,omitempty"` // ForceSendFields is a list of field names (e.g. "ModelName") to // unconditionally include in API requests. By default, fields with empty or @@ -13020,6 +13074,30 @@ func (s GoogleCloudAiplatformV1GenerationConfigRoutingConfigManualRoutingMode) M return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1GenerationConfigThinkingConfig: Config for thinking +// features. +type GoogleCloudAiplatformV1GenerationConfigThinkingConfig struct { + // ThinkingBudget: Optional. Indicates the thinking budget in tokens. This is + // only applied when enable_thinking is true. + ThinkingBudget int64 `json:"thinkingBudget,omitempty"` + // ForceSendFields is a list of field names (e.g. "ThinkingBudget") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ThinkingBudget") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1GenerationConfigThinkingConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1GenerationConfigThinkingConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1GenericOperationMetadata: Generic Metadata shared by // all operations. type GoogleCloudAiplatformV1GenericOperationMetadata struct { @@ -13292,21 +13370,24 @@ func (s GoogleCloudAiplatformV1GroundingChunk) MarshalJSON() ([]byte, error) { // GoogleCloudAiplatformV1GroundingChunkRetrievedContext: Chunk from context // retrieved by the retrieval tools. type GoogleCloudAiplatformV1GroundingChunkRetrievedContext struct { + // RagChunk: Additional context for the RAG retrieval result. This is only + // populated when using the RAG retrieval tool. + RagChunk *GoogleCloudAiplatformV1RagChunk `json:"ragChunk,omitempty"` // Text: Text of the attribution. Text string `json:"text,omitempty"` // Title: Title of the attribution. Title string `json:"title,omitempty"` // Uri: URI reference of the attribution. Uri string `json:"uri,omitempty"` - // ForceSendFields is a list of field names (e.g. "Text") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See + // ForceSendFields is a list of field names (e.g. "RagChunk") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Text") to include in API requests - // with the JSON null value. By default, fields with empty values are omitted - // from API requests. See + // NullFields is a list of field names (e.g. "RagChunk") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -20102,6 +20183,47 @@ func (s GoogleCloudAiplatformV1NotebookIdleShutdownConfig) MarshalJSON() ([]byte return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1NotebookReservationAffinity: Notebook Reservation +// Affinity for consuming Zonal reservation. +type GoogleCloudAiplatformV1NotebookReservationAffinity struct { + // ConsumeReservationType: Required. Specifies the type of reservation from + // which this instance can consume resources: RESERVATION_ANY (default), + // RESERVATION_SPECIFIC, or RESERVATION_NONE. See Consuming reserved instances + // for examples. + // + // Possible values: + // "RESERVATION_AFFINITY_TYPE_UNSPECIFIED" - Default type. + // "RESERVATION_NONE" - Do not consume from any allocated capacity. + // "RESERVATION_ANY" - Consume any reservation available. + // "RESERVATION_SPECIFIC" - Must consume from a specific reservation. Must + // specify key value fields for specifying the reservations. + ConsumeReservationType string `json:"consumeReservationType,omitempty"` + // Key: Optional. Corresponds to the label key of a reservation resource. To + // target a RESERVATION_SPECIFIC by name, use + // compute.googleapis.com/reservation-name as the key and specify the name of + // your reservation as its value. + Key string `json:"key,omitempty"` + // Values: Optional. Corresponds to the label values of a reservation resource. + // This must be the full path name of Reservation. + Values []string `json:"values,omitempty"` + // ForceSendFields is a list of field names (e.g. "ConsumeReservationType") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ConsumeReservationType") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1NotebookReservationAffinity) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1NotebookReservationAffinity + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1NotebookRuntime: A runtime is a virtual machine // allocated to a particular user for a particular Notebook file on temporary // basis with lifetime limited to 24 hours. @@ -20181,6 +20303,9 @@ type GoogleCloudAiplatformV1NotebookRuntime struct { // ProxyUri: Output only. The proxy endpoint used to access the // NotebookRuntime. ProxyUri string `json:"proxyUri,omitempty"` + // ReservationAffinity: Output only. Reservation Affinity of the notebook + // runtime. + ReservationAffinity *GoogleCloudAiplatformV1NotebookReservationAffinity `json:"reservationAffinity,omitempty"` // RuntimeState: Output only. The runtime (instance) state of the // NotebookRuntime. // @@ -20299,6 +20424,9 @@ type GoogleCloudAiplatformV1NotebookRuntimeTemplate struct { // user. // "ONE_CLICK" - runtime or template with system defined configurations. NotebookRuntimeType string `json:"notebookRuntimeType,omitempty"` + // ReservationAffinity: Optional. Reservation Affinity of the notebook runtime + // template. + ReservationAffinity *GoogleCloudAiplatformV1NotebookReservationAffinity `json:"reservationAffinity,omitempty"` // ServiceAccount: Deprecated: This field is ignored and the "Vertex AI // Notebook Service Account" // (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is @@ -22126,8 +22254,8 @@ type GoogleCloudAiplatformV1ProbeGrpcAction struct { // 65535. Port int64 `json:"port,omitempty"` // Service: Service is the name of the service to place in the gRPC - // HealthCheckRequest (see - // https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is + // HealthCheckRequest. See + // https://github.com/grpc/grpc/blob/master/doc/health-checking.md. If this is // not specified, the default behavior is defined by gRPC. Service string `json:"service,omitempty"` // ForceSendFields is a list of field names (e.g. "Port") to unconditionally @@ -23553,6 +23681,57 @@ func (s GoogleCloudAiplatformV1QuestionAnsweringRelevanceSpec) MarshalJSON() ([] return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1RagChunk: A RagChunk includes the content of a chunk +// of a RagFile, and associated metadata. +type GoogleCloudAiplatformV1RagChunk struct { + // PageSpan: If populated, represents where the chunk starts and ends in the + // document. + PageSpan *GoogleCloudAiplatformV1RagChunkPageSpan `json:"pageSpan,omitempty"` + // Text: The content of the chunk. + Text string `json:"text,omitempty"` + // ForceSendFields is a list of field names (e.g. "PageSpan") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "PageSpan") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1RagChunk) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1RagChunk + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1RagChunkPageSpan: Represents where the chunk starts +// and ends in the document. +type GoogleCloudAiplatformV1RagChunkPageSpan struct { + // FirstPage: Page where chunk starts in the document. Inclusive. 1-indexed. + FirstPage int64 `json:"firstPage,omitempty"` + // LastPage: Page where chunk ends in the document. Inclusive. 1-indexed. + LastPage int64 `json:"lastPage,omitempty"` + // ForceSendFields is a list of field names (e.g. "FirstPage") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "FirstPage") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1RagChunkPageSpan) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1RagChunkPageSpan + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1RagContexts: Relevant contexts for one query. type GoogleCloudAiplatformV1RagContexts struct { // Contexts: All its contexts. @@ -23577,6 +23756,8 @@ func (s GoogleCloudAiplatformV1RagContexts) MarshalJSON() ([]byte, error) { // GoogleCloudAiplatformV1RagContextsContext: A context of the query. type GoogleCloudAiplatformV1RagContextsContext struct { + // Chunk: Context of the retrieved chunk. + Chunk *GoogleCloudAiplatformV1RagChunk `json:"chunk,omitempty"` // Score: According to the underlying Vector DB and the selected metric type, // the score can be either the distance or the similarity between the query and // the context and its range depends on the metric type. For example, if the @@ -23593,13 +23774,13 @@ type GoogleCloudAiplatformV1RagContextsContext struct { SourceUri string `json:"sourceUri,omitempty"` // Text: The text chunk. Text string `json:"text,omitempty"` - // ForceSendFields is a list of field names (e.g. "Score") to unconditionally + // ForceSendFields is a list of field names (e.g. "Chunk") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://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 + // NullFields is a list of field names (e.g. "Chunk") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -24029,8 +24210,8 @@ func (s GoogleCloudAiplatformV1RagRetrievalConfigRanking) MarshalJSON() ([]byte, // GoogleCloudAiplatformV1RagRetrievalConfigRankingLlmRanker: Config for // LlmRanker. type GoogleCloudAiplatformV1RagRetrievalConfigRankingLlmRanker struct { - // ModelName: Optional. The model name used for ranking. Format: - // `gemini-1.5-pro` + // ModelName: Optional. The model name used for ranking. See Supported models + // (https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models). ModelName string `json:"modelName,omitempty"` // ForceSendFields is a list of field names (e.g. "ModelName") to // unconditionally include in API requests. By default, fields with empty or @@ -24721,7 +24902,8 @@ func (s GoogleCloudAiplatformV1ReasoningEngine) MarshalJSON() ([]byte, error) { // GoogleCloudAiplatformV1ReasoningEngineSpec: ReasoningEngine configurations type GoogleCloudAiplatformV1ReasoningEngineSpec struct { // AgentFramework: Optional. The OSS agent framework used to develop the agent. - // Currently supported values: "langchain", "langgraph", "ag2", "custom". + // Currently supported values: "google-adk", "langchain", "langgraph", "ag2", + // "llama-index", "custom". AgentFramework string `json:"agentFramework,omitempty"` // ClassMethods: Optional. Declarations for object class methods in OpenAPI // specification format. @@ -33873,15 +34055,18 @@ func (s GoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation) MarshalJ // GoogleCloudAiplatformV1SpeechConfig: The speech generation config. type GoogleCloudAiplatformV1SpeechConfig struct { + // LanguageCode: Optional. Language code (ISO 639. e.g. en-US) for the speech + // synthesization. + LanguageCode string `json:"languageCode,omitempty"` // VoiceConfig: The configuration for the speaker to use. VoiceConfig *GoogleCloudAiplatformV1VoiceConfig `json:"voiceConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "VoiceConfig") to + // ForceSendFields is a list of field names (e.g. "LanguageCode") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "VoiceConfig") to include in API + // NullFields is a list of field names (e.g. "LanguageCode") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -38085,7 +38270,8 @@ func (s GoogleCloudAiplatformV1TuningDataStats) MarshalJSON() ([]byte, error) { // GoogleCloudAiplatformV1TuningJob: Represents a TuningJob that runs with // Google owned models. type GoogleCloudAiplatformV1TuningJob struct { - // BaseModel: The base model that is being tuned, e.g., "gemini-1.0-pro-002". . + // BaseModel: The base model that is being tuned. See Supported models + // (https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models). BaseModel string `json:"baseModel,omitempty"` // CreateTime: Output only. Time when the TuningJob was created. CreateTime string `json:"createTime,omitempty"` @@ -40077,25 +40263,26 @@ func (s GoogleTypeMoney) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -type DatasetsCreateCall struct { - s *Service - googlecloudaiplatformv1dataset *GoogleCloudAiplatformV1Dataset - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type BatchPredictionJobsCreateCall struct { + s *Service + googlecloudaiplatformv1batchpredictionjob *GoogleCloudAiplatformV1BatchPredictionJob + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a Dataset. -func (r *DatasetsService) Create(googlecloudaiplatformv1dataset *GoogleCloudAiplatformV1Dataset) *DatasetsCreateCall { - c := &DatasetsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.googlecloudaiplatformv1dataset = googlecloudaiplatformv1dataset +// Create: Creates a BatchPredictionJob. A BatchPredictionJob once created will +// right away be attempted to start. +func (r *BatchPredictionJobsService) Create(googlecloudaiplatformv1batchpredictionjob *GoogleCloudAiplatformV1BatchPredictionJob) *BatchPredictionJobsCreateCall { + c := &BatchPredictionJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.googlecloudaiplatformv1batchpredictionjob = googlecloudaiplatformv1batchpredictionjob return c } // Parent sets the optional parameter "parent": Required. The resource name of -// the Location to create the Dataset in. Format: +// the Location to create the BatchPredictionJob in. Format: // `projects/{project}/locations/{location}` -func (c *DatasetsCreateCall) Parent(parent string) *DatasetsCreateCall { +func (c *BatchPredictionJobsCreateCall) Parent(parent string) *BatchPredictionJobsCreateCall { c.urlParams_.Set("parent", parent) return c } @@ -40103,151 +40290,52 @@ func (c *DatasetsCreateCall) Parent(parent string) *DatasetsCreateCall { // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *DatasetsCreateCall) Fields(s ...googleapi.Field) *DatasetsCreateCall { +func (c *BatchPredictionJobsCreateCall) Fields(s ...googleapi.Field) *BatchPredictionJobsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *DatasetsCreateCall) Context(ctx context.Context) *DatasetsCreateCall { +func (c *BatchPredictionJobsCreateCall) Context(ctx context.Context) *BatchPredictionJobsCreateCall { 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 *DatasetsCreateCall) Header() http.Header { +func (c *BatchPredictionJobsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *DatasetsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *BatchPredictionJobsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1dataset) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1batchpredictionjob) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/datasets") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/batchPredictionJobs") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.datasets.create", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.batchPredictionJobs.create", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.datasets.create" call. +// Do executes the "aiplatform.batchPredictionJobs.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 *DatasetsCreateCall) 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 - b, err := gensupport.DecodeResponseBytes(target, res) - if err != nil { - return nil, err - } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.datasets.create", "response", internallog.HTTPResponse(res, b)) - return ret, nil -} - -type DatasetsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Delete: Deletes a Dataset. -// -// - name: The resource name of the Dataset to delete. Format: -// `projects/{project}/locations/{location}/datasets/{dataset}`. -func (r *DatasetsService) Delete(name string) *DatasetsDeleteCall { - c := &DatasetsDeleteCall{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 *DatasetsDeleteCall) Fields(s ...googleapi.Field) *DatasetsDeleteCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *DatasetsDeleteCall) Context(ctx context.Context) *DatasetsDeleteCall { - 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 *DatasetsDeleteCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *DatasetsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, nil) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.datasets.delete", "request", internallog.HTTPRequest(req, nil)) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "aiplatform.datasets.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 +// *GoogleCloudAiplatformV1BatchPredictionJob.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 *DatasetsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *BatchPredictionJobsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1BatchPredictionJob, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -40266,7 +40354,7 @@ func (c *DatasetsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunnin if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1BatchPredictionJob{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -40277,11 +40365,11 @@ func (c *DatasetsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunnin if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.datasets.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.batchPredictionJobs.create", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type DatasetsGetCall struct { +type BatchPredictionJobsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -40290,26 +40378,21 @@ type DatasetsGetCall struct { header_ http.Header } -// Get: Gets a Dataset. +// Get: Gets a BatchPredictionJob // -// - name: The name of the Dataset resource. -func (r *DatasetsService) Get(name string) *DatasetsGetCall { - c := &DatasetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the BatchPredictionJob resource. Format: +// `projects/{project}/locations/{location}/batchPredictionJobs/{batch_predict +// ion_job}`. +func (r *BatchPredictionJobsService) Get(name string) *BatchPredictionJobsGetCall { + c := &BatchPredictionJobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// ReadMask sets the optional parameter "readMask": Mask specifying which -// fields to read. -func (c *DatasetsGetCall) ReadMask(readMask string) *DatasetsGetCall { - c.urlParams_.Set("readMask", readMask) - 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 *DatasetsGetCall) Fields(s ...googleapi.Field) *DatasetsGetCall { +func (c *BatchPredictionJobsGetCall) Fields(s ...googleapi.Field) *BatchPredictionJobsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -40317,27 +40400,27 @@ func (c *DatasetsGetCall) Fields(s ...googleapi.Field) *DatasetsGetCall { // 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 *DatasetsGetCall) IfNoneMatch(entityTag string) *DatasetsGetCall { +func (c *BatchPredictionJobsGetCall) IfNoneMatch(entityTag string) *BatchPredictionJobsGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *DatasetsGetCall) Context(ctx context.Context) *DatasetsGetCall { +func (c *BatchPredictionJobsGetCall) Context(ctx context.Context) *BatchPredictionJobsGetCall { 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 *DatasetsGetCall) Header() http.Header { +func (c *BatchPredictionJobsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *DatasetsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *BatchPredictionJobsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -40354,17 +40437,17 @@ func (c *DatasetsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.datasets.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.batchPredictionJobs.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.datasets.get" call. +// Do executes the "aiplatform.batchPredictionJobs.get" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudAiplatformV1Dataset.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// *GoogleCloudAiplatformV1BatchPredictionJob.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 *DatasetsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1Dataset, error) { +func (c *BatchPredictionJobsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1BatchPredictionJob, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -40383,7 +40466,7 @@ func (c *DatasetsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatfo if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1Dataset{ + ret := &GoogleCloudAiplatformV1BatchPredictionJob{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -40394,11 +40477,11 @@ func (c *DatasetsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatfo if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.datasets.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.batchPredictionJobs.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type DatasetsListCall struct { +type BatchPredictionJobsListCall struct { s *Service urlParams_ gensupport.URLParams ifNoneMatch_ string @@ -40406,57 +40489,55 @@ type DatasetsListCall struct { header_ http.Header } -// List: Lists Datasets in a Location. -func (r *DatasetsService) List() *DatasetsListCall { - c := &DatasetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// List: Lists BatchPredictionJobs in a Location. +func (r *BatchPredictionJobsService) List() *BatchPredictionJobsListCall { + c := &BatchPredictionJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} return c } -// Filter sets the optional parameter "filter": An expression for filtering the -// results of the request. For field names both snake_case and camelCase are -// supported. * `display_name`: supports = and != * `metadata_schema_uri`: -// supports = and != * `labels` supports general map functions that is: * -// `labels.key=value` - key:value equality * `labels.key:* or labels:key - key -// existence * A key including a space must be quoted. `labels."a key". Some -// examples: * `displayName="myDisplayName" * `labels.myKey="myValue" -func (c *DatasetsListCall) Filter(filter string) *DatasetsListCall { +// Filter sets the optional parameter "filter": The standard list filter. +// Supported fields: * `display_name` supports `=`, `!=` comparisons, and `:` +// wildcard. * `model_display_name` supports `=`, `!=` comparisons. * `state` +// supports `=`, `!=` comparisons. * `create_time` supports `=`, `!=`,`<`, +// `<=`,`>`, `>=` comparisons. `create_time` must be in RFC 3339 format. * +// `labels` supports general map functions that is: `labels.key=value` - +// key:value equality `labels.key:* - key existence Some examples of using the +// filter are: * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*" * +// `state!="JOB_STATE_FAILED" OR display_name="my_job" * `NOT +// display_name="my_job" * `create_time>"2021-05-18T00:00:00Z" * +// `labels.keyA=valueA` * `labels.keyB:*` +func (c *BatchPredictionJobsListCall) Filter(filter string) *BatchPredictionJobsListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": A comma-separated list of -// fields to order by, sorted in ascending order. Use "desc" after a field name -// for descending. Supported fields: * `display_name` * `create_time` * -// `update_time` -func (c *DatasetsListCall) OrderBy(orderBy string) *DatasetsListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - // PageSize sets the optional parameter "pageSize": The standard list page // size. -func (c *DatasetsListCall) PageSize(pageSize int64) *DatasetsListCall { +func (c *BatchPredictionJobsListCall) PageSize(pageSize int64) *BatchPredictionJobsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list page -// token. -func (c *DatasetsListCall) PageToken(pageToken string) *DatasetsListCall { +// token. Typically obtained via +// ListBatchPredictionJobsResponse.next_page_token of the previous +// JobService.ListBatchPredictionJobs call. +func (c *BatchPredictionJobsListCall) PageToken(pageToken string) *BatchPredictionJobsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// Parent sets the optional parameter "parent": Required. The name of the -// Dataset's parent resource. Format: `projects/{project}/locations/{location}` -func (c *DatasetsListCall) Parent(parent string) *DatasetsListCall { +// Parent sets the optional parameter "parent": Required. The resource name of +// the Location to list the BatchPredictionJobs from. Format: +// `projects/{project}/locations/{location}` +func (c *BatchPredictionJobsListCall) Parent(parent string) *BatchPredictionJobsListCall { c.urlParams_.Set("parent", parent) return c } // ReadMask sets the optional parameter "readMask": Mask specifying which // fields to read. -func (c *DatasetsListCall) ReadMask(readMask string) *DatasetsListCall { +func (c *BatchPredictionJobsListCall) ReadMask(readMask string) *BatchPredictionJobsListCall { c.urlParams_.Set("readMask", readMask) return c } @@ -40464,7 +40545,7 @@ func (c *DatasetsListCall) ReadMask(readMask string) *DatasetsListCall { // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *DatasetsListCall) Fields(s ...googleapi.Field) *DatasetsListCall { +func (c *BatchPredictionJobsListCall) Fields(s ...googleapi.Field) *BatchPredictionJobsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -40472,51 +40553,53 @@ func (c *DatasetsListCall) Fields(s ...googleapi.Field) *DatasetsListCall { // 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 *DatasetsListCall) IfNoneMatch(entityTag string) *DatasetsListCall { +func (c *BatchPredictionJobsListCall) IfNoneMatch(entityTag string) *BatchPredictionJobsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *DatasetsListCall) Context(ctx context.Context) *DatasetsListCall { +func (c *BatchPredictionJobsListCall) Context(ctx context.Context) *BatchPredictionJobsListCall { 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 *DatasetsListCall) Header() http.Header { +func (c *BatchPredictionJobsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *DatasetsListCall) doRequest(alt string) (*http.Response, error) { +func (c *BatchPredictionJobsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/datasets") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/batchPredictionJobs") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.datasets.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.batchPredictionJobs.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.datasets.list" call. +// Do executes the "aiplatform.batchPredictionJobs.list" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudAiplatformV1ListDatasetsResponse.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 +// *GoogleCloudAiplatformV1ListBatchPredictionJobsResponse.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 *DatasetsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListDatasetsResponse, error) { +func (c *BatchPredictionJobsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListBatchPredictionJobsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -40535,7 +40618,7 @@ func (c *DatasetsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatf if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1ListDatasetsResponse{ + ret := &GoogleCloudAiplatformV1ListBatchPredictionJobsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -40546,14 +40629,14 @@ func (c *DatasetsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatf if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.datasets.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.batchPredictionJobs.list", "response", internallog.HTTPResponse(res, b)) 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 *DatasetsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListDatasetsResponse) error) error { +func (c *BatchPredictionJobsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListBatchPredictionJobsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -40571,59 +40654,53 @@ func (c *DatasetsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatf } } -type DatasetsPatchCall struct { +type DatasetsCreateCall struct { s *Service - name string googlecloudaiplatformv1dataset *GoogleCloudAiplatformV1Dataset urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// Patch: Updates a Dataset. -// -// - name: Output only. Identifier. The resource name of the Dataset. Format: -// `projects/{project}/locations/{location}/datasets/{dataset}`. -func (r *DatasetsService) Patch(name string, googlecloudaiplatformv1dataset *GoogleCloudAiplatformV1Dataset) *DatasetsPatchCall { - c := &DatasetsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// Create: Creates a Dataset. +func (r *DatasetsService) Create(googlecloudaiplatformv1dataset *GoogleCloudAiplatformV1Dataset) *DatasetsCreateCall { + c := &DatasetsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.googlecloudaiplatformv1dataset = googlecloudaiplatformv1dataset return c } -// UpdateMask sets the optional parameter "updateMask": Required. The update -// mask applies to the resource. For the `FieldMask` definition, see -// google.protobuf.FieldMask. Updatable fields: * `display_name` * -// `description` * `labels` -func (c *DatasetsPatchCall) UpdateMask(updateMask string) *DatasetsPatchCall { - c.urlParams_.Set("updateMask", updateMask) +// Parent sets the optional parameter "parent": Required. The resource name of +// the Location to create the Dataset in. Format: +// `projects/{project}/locations/{location}` +func (c *DatasetsCreateCall) Parent(parent string) *DatasetsCreateCall { + c.urlParams_.Set("parent", parent) 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 *DatasetsPatchCall) Fields(s ...googleapi.Field) *DatasetsPatchCall { +func (c *DatasetsCreateCall) Fields(s ...googleapi.Field) *DatasetsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *DatasetsPatchCall) Context(ctx context.Context) *DatasetsPatchCall { +func (c *DatasetsCreateCall) Context(ctx context.Context) *DatasetsCreateCall { 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 *DatasetsPatchCall) Header() http.Header { +func (c *DatasetsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *DatasetsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *DatasetsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1dataset) if err != nil { @@ -40631,27 +40708,24 @@ func (c *DatasetsPatchCall) doRequest(alt string) (*http.Response, error) { } 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/datasets") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.datasets.patch", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.datasets.create", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.datasets.patch" call. +// Do executes the "aiplatform.datasets.create" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudAiplatformV1Dataset.ServerResponse.Header or (if a response was +// *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 *DatasetsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1Dataset, error) { +func (c *DatasetsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -40670,7 +40744,7 @@ func (c *DatasetsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplat if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1Dataset{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -40681,82 +40755,585 @@ func (c *DatasetsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplat if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.datasets.patch", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.datasets.create", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type DatasetsDatasetVersionsCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1datasetversion *GoogleCloudAiplatformV1DatasetVersion - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type DatasetsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Create a version from a Dataset. +// Delete: Deletes a Dataset. // -// - parent: The name of the Dataset resource. Format: +// - name: The resource name of the Dataset to delete. Format: // `projects/{project}/locations/{location}/datasets/{dataset}`. -func (r *DatasetsDatasetVersionsService) Create(parent string, googlecloudaiplatformv1datasetversion *GoogleCloudAiplatformV1DatasetVersion) *DatasetsDatasetVersionsCreateCall { - c := &DatasetsDatasetVersionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1datasetversion = googlecloudaiplatformv1datasetversion +func (r *DatasetsService) Delete(name string) *DatasetsDeleteCall { + c := &DatasetsDeleteCall{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 *DatasetsDatasetVersionsCreateCall) Fields(s ...googleapi.Field) *DatasetsDatasetVersionsCreateCall { +func (c *DatasetsDeleteCall) Fields(s ...googleapi.Field) *DatasetsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *DatasetsDatasetVersionsCreateCall) Context(ctx context.Context) *DatasetsDatasetVersionsCreateCall { +func (c *DatasetsDeleteCall) Context(ctx context.Context) *DatasetsDeleteCall { 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 *DatasetsDatasetVersionsCreateCall) Header() http.Header { +func (c *DatasetsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *DatasetsDatasetVersionsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1datasetversion) - if err != nil { - return nil, err - } +func (c *DatasetsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/datasetVersions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.datasets.datasetVersions.create", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.datasets.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.datasets.datasetVersions.create" call. +// Do executes the "aiplatform.datasets.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 *DatasetsDatasetVersionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *DatasetsDeleteCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.datasets.delete", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type DatasetsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a Dataset. +// +// - name: The name of the Dataset resource. +func (r *DatasetsService) Get(name string) *DatasetsGetCall { + c := &DatasetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// ReadMask sets the optional parameter "readMask": Mask specifying which +// fields to read. +func (c *DatasetsGetCall) ReadMask(readMask string) *DatasetsGetCall { + c.urlParams_.Set("readMask", readMask) + 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 *DatasetsGetCall) Fields(s ...googleapi.Field) *DatasetsGetCall { + 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 *DatasetsGetCall) IfNoneMatch(entityTag string) *DatasetsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *DatasetsGetCall) Context(ctx context.Context) *DatasetsGetCall { + 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 *DatasetsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *DatasetsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.datasets.get", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.datasets.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudAiplatformV1Dataset.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 *DatasetsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1Dataset, 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 := &GoogleCloudAiplatformV1Dataset{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.datasets.get", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type DatasetsListCall struct { + s *Service + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists Datasets in a Location. +func (r *DatasetsService) List() *DatasetsListCall { + c := &DatasetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + return c +} + +// Filter sets the optional parameter "filter": An expression for filtering the +// results of the request. For field names both snake_case and camelCase are +// supported. * `display_name`: supports = and != * `metadata_schema_uri`: +// supports = and != * `labels` supports general map functions that is: * +// `labels.key=value` - key:value equality * `labels.key:* or labels:key - key +// existence * A key including a space must be quoted. `labels."a key". Some +// examples: * `displayName="myDisplayName" * `labels.myKey="myValue" +func (c *DatasetsListCall) Filter(filter string) *DatasetsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": A comma-separated list of +// fields to order by, sorted in ascending order. Use "desc" after a field name +// for descending. Supported fields: * `display_name` * `create_time` * +// `update_time` +func (c *DatasetsListCall) OrderBy(orderBy string) *DatasetsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list page +// size. +func (c *DatasetsListCall) PageSize(pageSize int64) *DatasetsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list page +// token. +func (c *DatasetsListCall) PageToken(pageToken string) *DatasetsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Parent sets the optional parameter "parent": Required. The name of the +// Dataset's parent resource. Format: `projects/{project}/locations/{location}` +func (c *DatasetsListCall) Parent(parent string) *DatasetsListCall { + c.urlParams_.Set("parent", parent) + return c +} + +// ReadMask sets the optional parameter "readMask": Mask specifying which +// fields to read. +func (c *DatasetsListCall) ReadMask(readMask string) *DatasetsListCall { + c.urlParams_.Set("readMask", readMask) + 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 *DatasetsListCall) Fields(s ...googleapi.Field) *DatasetsListCall { + 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 *DatasetsListCall) IfNoneMatch(entityTag string) *DatasetsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *DatasetsListCall) Context(ctx context.Context) *DatasetsListCall { + 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 *DatasetsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *DatasetsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/datasets") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.datasets.list", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.datasets.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudAiplatformV1ListDatasetsResponse.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 *DatasetsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListDatasetsResponse, 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 := &GoogleCloudAiplatformV1ListDatasetsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.datasets.list", "response", internallog.HTTPResponse(res, b)) + 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 *DatasetsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListDatasetsResponse) 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 DatasetsPatchCall struct { + s *Service + name string + googlecloudaiplatformv1dataset *GoogleCloudAiplatformV1Dataset + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates a Dataset. +// +// - name: Output only. Identifier. The resource name of the Dataset. Format: +// `projects/{project}/locations/{location}/datasets/{dataset}`. +func (r *DatasetsService) Patch(name string, googlecloudaiplatformv1dataset *GoogleCloudAiplatformV1Dataset) *DatasetsPatchCall { + c := &DatasetsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudaiplatformv1dataset = googlecloudaiplatformv1dataset + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. The update +// mask applies to the resource. For the `FieldMask` definition, see +// google.protobuf.FieldMask. Updatable fields: * `display_name` * +// `description` * `labels` +func (c *DatasetsPatchCall) UpdateMask(updateMask string) *DatasetsPatchCall { + 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 *DatasetsPatchCall) Fields(s ...googleapi.Field) *DatasetsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *DatasetsPatchCall) Context(ctx context.Context) *DatasetsPatchCall { + 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 *DatasetsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *DatasetsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1dataset) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.datasets.patch", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.datasets.patch" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudAiplatformV1Dataset.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 *DatasetsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1Dataset, 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 := &GoogleCloudAiplatformV1Dataset{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.datasets.patch", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type DatasetsDatasetVersionsCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1datasetversion *GoogleCloudAiplatformV1DatasetVersion + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Create a version from a Dataset. +// +// - parent: The name of the Dataset resource. Format: +// `projects/{project}/locations/{location}/datasets/{dataset}`. +func (r *DatasetsDatasetVersionsService) Create(parent string, googlecloudaiplatformv1datasetversion *GoogleCloudAiplatformV1DatasetVersion) *DatasetsDatasetVersionsCreateCall { + c := &DatasetsDatasetVersionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1datasetversion = googlecloudaiplatformv1datasetversion + 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 *DatasetsDatasetVersionsCreateCall) Fields(s ...googleapi.Field) *DatasetsDatasetVersionsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *DatasetsDatasetVersionsCreateCall) Context(ctx context.Context) *DatasetsDatasetVersionsCreateCall { + 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 *DatasetsDatasetVersionsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *DatasetsDatasetVersionsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1datasetversion) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/datasetVersions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.datasets.datasetVersions.create", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.datasets.datasetVersions.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 *DatasetsDatasetVersionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -41935,6 +42512,111 @@ func (c *EndpointsStreamGenerateContentCall) Do(opts ...googleapi.CallOption) (* return ret, nil } +type EndpointsChatCompletionsCall 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 *EndpointsChatService) Completions(endpoint string, googleapihttpbody *GoogleApiHttpBody) *EndpointsChatCompletionsCall { + c := &EndpointsChatCompletionsCall{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 *EndpointsChatCompletionsCall) Fields(s ...googleapi.Field) *EndpointsChatCompletionsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *EndpointsChatCompletionsCall) Context(ctx context.Context) *EndpointsChatCompletionsCall { + 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 *EndpointsChatCompletionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *EndpointsChatCompletionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(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, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.endpoints.chat.completions", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.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 *EndpointsChatCompletionsCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.endpoints.chat.completions", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type MediaUploadCall struct { s *Service parent string @@ -95463,11 +96145,696 @@ func (c *ProjectsLocationsRagCorporaRagFilesDeleteCall) Do(opts ...googleapi.Cal if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.delete", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsRagCorporaRagFilesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a RagFile. +// +// - name: The name of the RagFile resource. Format: +// `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{ +// rag_file}`. +func (r *ProjectsLocationsRagCorporaRagFilesService) Get(name string) *ProjectsLocationsRagCorporaRagFilesGetCall { + c := &ProjectsLocationsRagCorporaRagFilesGetCall{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 *ProjectsLocationsRagCorporaRagFilesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRagCorporaRagFilesGetCall { + 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 *ProjectsLocationsRagCorporaRagFilesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRagCorporaRagFilesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsRagCorporaRagFilesGetCall) Context(ctx context.Context) *ProjectsLocationsRagCorporaRagFilesGetCall { + 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 *ProjectsLocationsRagCorporaRagFilesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRagCorporaRagFilesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.get", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.ragCorpora.ragFiles.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudAiplatformV1RagFile.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 *ProjectsLocationsRagCorporaRagFilesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1RagFile, 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 := &GoogleCloudAiplatformV1RagFile{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.get", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsRagCorporaRagFilesImportCall struct { + s *Service + parent string + googlecloudaiplatformv1importragfilesrequest *GoogleCloudAiplatformV1ImportRagFilesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Import: Import files from Google Cloud Storage or Google Drive into a +// RagCorpus. +// +// - parent: The name of the RagCorpus resource into which to import files. +// Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`. +func (r *ProjectsLocationsRagCorporaRagFilesService) Import(parent string, googlecloudaiplatformv1importragfilesrequest *GoogleCloudAiplatformV1ImportRagFilesRequest) *ProjectsLocationsRagCorporaRagFilesImportCall { + c := &ProjectsLocationsRagCorporaRagFilesImportCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1importragfilesrequest = googlecloudaiplatformv1importragfilesrequest + 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 *ProjectsLocationsRagCorporaRagFilesImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsRagCorporaRagFilesImportCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsRagCorporaRagFilesImportCall) Context(ctx context.Context) *ProjectsLocationsRagCorporaRagFilesImportCall { + 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 *ProjectsLocationsRagCorporaRagFilesImportCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRagCorporaRagFilesImportCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1importragfilesrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/ragFiles:import") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.import", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.ragCorpora.ragFiles.import" 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 *ProjectsLocationsRagCorporaRagFilesImportCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.import", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsRagCorporaRagFilesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists RagFiles in a RagCorpus. +// +// - parent: The resource name of the RagCorpus from which to list the +// RagFiles. Format: +// `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`. +func (r *ProjectsLocationsRagCorporaRagFilesService) List(parent string) *ProjectsLocationsRagCorporaRagFilesListCall { + c := &ProjectsLocationsRagCorporaRagFilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list page +// size. +func (c *ProjectsLocationsRagCorporaRagFilesListCall) PageSize(pageSize int64) *ProjectsLocationsRagCorporaRagFilesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list page +// token. Typically obtained via ListRagFilesResponse.next_page_token of the +// previous VertexRagDataService.ListRagFiles call. +func (c *ProjectsLocationsRagCorporaRagFilesListCall) PageToken(pageToken string) *ProjectsLocationsRagCorporaRagFilesListCall { + 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 *ProjectsLocationsRagCorporaRagFilesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRagCorporaRagFilesListCall { + 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 *ProjectsLocationsRagCorporaRagFilesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRagCorporaRagFilesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsRagCorporaRagFilesListCall) Context(ctx context.Context) *ProjectsLocationsRagCorporaRagFilesListCall { + 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 *ProjectsLocationsRagCorporaRagFilesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRagCorporaRagFilesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/ragFiles") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.list", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.ragCorpora.ragFiles.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudAiplatformV1ListRagFilesResponse.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 *ProjectsLocationsRagCorporaRagFilesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListRagFilesResponse, 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 := &GoogleCloudAiplatformV1ListRagFilesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.list", "response", internallog.HTTPResponse(res, b)) + 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 *ProjectsLocationsRagCorporaRagFilesListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListRagFilesResponse) 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 ProjectsLocationsRagCorporaRagFilesOperationsCancelCall 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 *ProjectsLocationsRagCorporaRagFilesOperationsService) Cancel(name string) *ProjectsLocationsRagCorporaRagFilesOperationsCancelCall { + c := &ProjectsLocationsRagCorporaRagFilesOperationsCancelCall{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 *ProjectsLocationsRagCorporaRagFilesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsRagCorporaRagFilesOperationsCancelCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsRagCorporaRagFilesOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsRagCorporaRagFilesOperationsCancelCall { + 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 *ProjectsLocationsRagCorporaRagFilesOperationsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRagCorporaRagFilesOperationsCancelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.operations.cancel", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.ragCorpora.ragFiles.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 *ProjectsLocationsRagCorporaRagFilesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.operations.cancel", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsRagCorporaRagFilesOperationsDeleteCall 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 *ProjectsLocationsRagCorporaRagFilesOperationsService) Delete(name string) *ProjectsLocationsRagCorporaRagFilesOperationsDeleteCall { + c := &ProjectsLocationsRagCorporaRagFilesOperationsDeleteCall{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 *ProjectsLocationsRagCorporaRagFilesOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsRagCorporaRagFilesOperationsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsRagCorporaRagFilesOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsRagCorporaRagFilesOperationsDeleteCall { + 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 *ProjectsLocationsRagCorporaRagFilesOperationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRagCorporaRagFilesOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.operations.delete", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.ragCorpora.ragFiles.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 *ProjectsLocationsRagCorporaRagFilesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.operations.delete", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsRagCorporaRagFilesOperationsGetCall 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 *ProjectsLocationsRagCorporaRagFilesOperationsService) Get(name string) *ProjectsLocationsRagCorporaRagFilesOperationsGetCall { + c := &ProjectsLocationsRagCorporaRagFilesOperationsGetCall{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 *ProjectsLocationsRagCorporaRagFilesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRagCorporaRagFilesOperationsGetCall { + 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 *ProjectsLocationsRagCorporaRagFilesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRagCorporaRagFilesOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsRagCorporaRagFilesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsRagCorporaRagFilesOperationsGetCall { + 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 *ProjectsLocationsRagCorporaRagFilesOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRagCorporaRagFilesOperationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.operations.get", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.ragCorpora.ragFiles.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 *ProjectsLocationsRagCorporaRagFilesOperationsGetCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.operations.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsRagCorporaRagFilesGetCall struct { +type ProjectsLocationsRagCorporaRagFilesOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -95476,21 +96843,40 @@ type ProjectsLocationsRagCorporaRagFilesGetCall struct { header_ http.Header } -// Get: Gets a RagFile. +// 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 RagFile resource. Format: -// `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{ -// rag_file}`. -func (r *ProjectsLocationsRagCorporaRagFilesService) Get(name string) *ProjectsLocationsRagCorporaRagFilesGetCall { - c := &ProjectsLocationsRagCorporaRagFilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsRagCorporaRagFilesOperationsService) List(name string) *ProjectsLocationsRagCorporaRagFilesOperationsListCall { + c := &ProjectsLocationsRagCorporaRagFilesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } +// Filter sets the optional parameter "filter": The standard list filter. +func (c *ProjectsLocationsRagCorporaRagFilesOperationsListCall) Filter(filter string) *ProjectsLocationsRagCorporaRagFilesOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list page +// size. +func (c *ProjectsLocationsRagCorporaRagFilesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsRagCorporaRagFilesOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list page +// token. +func (c *ProjectsLocationsRagCorporaRagFilesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsRagCorporaRagFilesOperationsListCall { + 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 *ProjectsLocationsRagCorporaRagFilesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRagCorporaRagFilesGetCall { +func (c *ProjectsLocationsRagCorporaRagFilesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRagCorporaRagFilesOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -95498,34 +96884,34 @@ func (c *ProjectsLocationsRagCorporaRagFilesGetCall) Fields(s ...googleapi.Field // 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 *ProjectsLocationsRagCorporaRagFilesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRagCorporaRagFilesGetCall { +func (c *ProjectsLocationsRagCorporaRagFilesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRagCorporaRagFilesOperationsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsRagCorporaRagFilesGetCall) Context(ctx context.Context) *ProjectsLocationsRagCorporaRagFilesGetCall { +func (c *ProjectsLocationsRagCorporaRagFilesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsRagCorporaRagFilesOperationsListCall { 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 *ProjectsLocationsRagCorporaRagFilesGetCall) Header() http.Header { +func (c *ProjectsLocationsRagCorporaRagFilesOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsRagCorporaRagFilesGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsRagCorporaRagFilesOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -95535,17 +96921,17 @@ func (c *ProjectsLocationsRagCorporaRagFilesGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.operations.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.ragCorpora.ragFiles.get" call. +// Do executes the "aiplatform.projects.locations.ragCorpora.ragFiles.operations.list" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudAiplatformV1RagFile.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// *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 *ProjectsLocationsRagCorporaRagFilesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1RagFile, error) { +func (c *ProjectsLocationsRagCorporaRagFilesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -95564,7 +96950,7 @@ func (c *ProjectsLocationsRagCorporaRagFilesGetCall) Do(opts ...googleapi.CallOp if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1RagFile{ + ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -95575,210 +96961,113 @@ func (c *ProjectsLocationsRagCorporaRagFilesGetCall) Do(opts ...googleapi.CallOp if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.operations.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsRagCorporaRagFilesImportCall struct { - s *Service - parent string - googlecloudaiplatformv1importragfilesrequest *GoogleCloudAiplatformV1ImportRagFilesRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Import: Import files from Google Cloud Storage or Google Drive into a -// RagCorpus. -// -// - parent: The name of the RagCorpus resource into which to import files. -// Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`. -func (r *ProjectsLocationsRagCorporaRagFilesService) Import(parent string, googlecloudaiplatformv1importragfilesrequest *GoogleCloudAiplatformV1ImportRagFilesRequest) *ProjectsLocationsRagCorporaRagFilesImportCall { - c := &ProjectsLocationsRagCorporaRagFilesImportCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1importragfilesrequest = googlecloudaiplatformv1importragfilesrequest - 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 *ProjectsLocationsRagCorporaRagFilesImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsRagCorporaRagFilesImportCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsRagCorporaRagFilesImportCall) Context(ctx context.Context) *ProjectsLocationsRagCorporaRagFilesImportCall { +// 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 *ProjectsLocationsRagCorporaRagFilesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { 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 *ProjectsLocationsRagCorporaRagFilesImportCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsRagCorporaRagFilesImportCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1importragfilesrequest) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/ragFiles:import") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, - }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.import", "request", internallog.HTTPRequest(req, body.Bytes())) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "aiplatform.projects.locations.ragCorpora.ragFiles.import" 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 *ProjectsLocationsRagCorporaRagFilesImportCall) 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() + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err } - 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 - b, err := gensupport.DecodeResponseBytes(target, res) - if err != nil { - return nil, err + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.import", "response", internallog.HTTPResponse(res, b)) - return ret, nil } -type ProjectsLocationsRagCorporaRagFilesListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsRagCorporaRagFilesOperationsWaitCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists RagFiles in a RagCorpus. +// 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. // -// - parent: The resource name of the RagCorpus from which to list the -// RagFiles. Format: -// `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`. -func (r *ProjectsLocationsRagCorporaRagFilesService) List(parent string) *ProjectsLocationsRagCorporaRagFilesListCall { - c := &ProjectsLocationsRagCorporaRagFilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list page -// size. -func (c *ProjectsLocationsRagCorporaRagFilesListCall) PageSize(pageSize int64) *ProjectsLocationsRagCorporaRagFilesListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsRagCorporaRagFilesOperationsService) Wait(name string) *ProjectsLocationsRagCorporaRagFilesOperationsWaitCall { + c := &ProjectsLocationsRagCorporaRagFilesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } -// PageToken sets the optional parameter "pageToken": The standard list page -// token. Typically obtained via ListRagFilesResponse.next_page_token of the -// previous VertexRagDataService.ListRagFiles call. -func (c *ProjectsLocationsRagCorporaRagFilesListCall) PageToken(pageToken string) *ProjectsLocationsRagCorporaRagFilesListCall { - c.urlParams_.Set("pageToken", pageToken) +// 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 *ProjectsLocationsRagCorporaRagFilesOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsRagCorporaRagFilesOperationsWaitCall { + 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 *ProjectsLocationsRagCorporaRagFilesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRagCorporaRagFilesListCall { +func (c *ProjectsLocationsRagCorporaRagFilesOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsRagCorporaRagFilesOperationsWaitCall { 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 *ProjectsLocationsRagCorporaRagFilesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRagCorporaRagFilesListCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsRagCorporaRagFilesListCall) Context(ctx context.Context) *ProjectsLocationsRagCorporaRagFilesListCall { +func (c *ProjectsLocationsRagCorporaRagFilesOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsRagCorporaRagFilesOperationsWaitCall { 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 *ProjectsLocationsRagCorporaRagFilesListCall) Header() http.Header { +func (c *ProjectsLocationsRagCorporaRagFilesOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsRagCorporaRagFilesListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsRagCorporaRagFilesOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/ragFiles") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:wait") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + req, err := http.NewRequest("POST", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.operations.wait", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.ragCorpora.ragFiles.list" call. +// Do executes the "aiplatform.projects.locations.ragCorpora.ragFiles.operations.wait" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudAiplatformV1ListRagFilesResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use +// *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 *ProjectsLocationsRagCorporaRagFilesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListRagFilesResponse, error) { +func (c *ProjectsLocationsRagCorporaRagFilesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -95797,7 +97086,7 @@ func (c *ProjectsLocationsRagCorporaRagFilesListCall) Do(opts ...googleapi.CallO if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1ListRagFilesResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -95808,32 +97097,11 @@ func (c *ProjectsLocationsRagCorporaRagFilesListCall) Do(opts ...googleapi.CallO if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.operations.wait", "response", internallog.HTTPResponse(res, b)) 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 *ProjectsLocationsRagCorporaRagFilesListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListRagFilesResponse) 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 ProjectsLocationsRagCorporaRagFilesOperationsCancelCall struct { +type ProjectsLocationsRagEngineConfigOperationsCancelCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -95852,8 +97120,8 @@ type ProjectsLocationsRagCorporaRagFilesOperationsCancelCall struct { // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsRagCorporaRagFilesOperationsService) Cancel(name string) *ProjectsLocationsRagCorporaRagFilesOperationsCancelCall { - c := &ProjectsLocationsRagCorporaRagFilesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsRagEngineConfigOperationsService) Cancel(name string) *ProjectsLocationsRagEngineConfigOperationsCancelCall { + c := &ProjectsLocationsRagEngineConfigOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -95861,27 +97129,27 @@ func (r *ProjectsLocationsRagCorporaRagFilesOperationsService) Cancel(name strin // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsRagCorporaRagFilesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsRagCorporaRagFilesOperationsCancelCall { +func (c *ProjectsLocationsRagEngineConfigOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsRagEngineConfigOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsRagCorporaRagFilesOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsRagCorporaRagFilesOperationsCancelCall { +func (c *ProjectsLocationsRagEngineConfigOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsRagEngineConfigOperationsCancelCall { 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 *ProjectsLocationsRagCorporaRagFilesOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsRagEngineConfigOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsRagCorporaRagFilesOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsRagEngineConfigOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -95895,17 +97163,17 @@ func (c *ProjectsLocationsRagCorporaRagFilesOperationsCancelCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.operations.cancel", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragEngineConfig.operations.cancel", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.ragCorpora.ragFiles.operations.cancel" call. +// Do executes the "aiplatform.projects.locations.ragEngineConfig.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 *ProjectsLocationsRagCorporaRagFilesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsRagEngineConfigOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -95935,11 +97203,11 @@ func (c *ProjectsLocationsRagCorporaRagFilesOperationsCancelCall) Do(opts ...goo if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.operations.cancel", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragEngineConfig.operations.cancel", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsRagCorporaRagFilesOperationsDeleteCall struct { +type ProjectsLocationsRagEngineConfigOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -95953,8 +97221,8 @@ type ProjectsLocationsRagCorporaRagFilesOperationsDeleteCall struct { // `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsRagCorporaRagFilesOperationsService) Delete(name string) *ProjectsLocationsRagCorporaRagFilesOperationsDeleteCall { - c := &ProjectsLocationsRagCorporaRagFilesOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsRagEngineConfigOperationsService) Delete(name string) *ProjectsLocationsRagEngineConfigOperationsDeleteCall { + c := &ProjectsLocationsRagEngineConfigOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -95962,27 +97230,27 @@ func (r *ProjectsLocationsRagCorporaRagFilesOperationsService) Delete(name strin // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsRagCorporaRagFilesOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsRagCorporaRagFilesOperationsDeleteCall { +func (c *ProjectsLocationsRagEngineConfigOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsRagEngineConfigOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsRagCorporaRagFilesOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsRagCorporaRagFilesOperationsDeleteCall { +func (c *ProjectsLocationsRagEngineConfigOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsRagEngineConfigOperationsDeleteCall { 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 *ProjectsLocationsRagCorporaRagFilesOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsRagEngineConfigOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsRagCorporaRagFilesOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsRagEngineConfigOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -95996,17 +97264,17 @@ func (c *ProjectsLocationsRagCorporaRagFilesOperationsDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.operations.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragEngineConfig.operations.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.ragCorpora.ragFiles.operations.delete" call. +// Do executes the "aiplatform.projects.locations.ragEngineConfig.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 *ProjectsLocationsRagCorporaRagFilesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsRagEngineConfigOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -96036,11 +97304,11 @@ func (c *ProjectsLocationsRagCorporaRagFilesOperationsDeleteCall) Do(opts ...goo if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.operations.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragEngineConfig.operations.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsRagCorporaRagFilesOperationsGetCall struct { +type ProjectsLocationsRagEngineConfigOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -96054,8 +97322,8 @@ type ProjectsLocationsRagCorporaRagFilesOperationsGetCall struct { // service. // // - name: The name of the operation resource. -func (r *ProjectsLocationsRagCorporaRagFilesOperationsService) Get(name string) *ProjectsLocationsRagCorporaRagFilesOperationsGetCall { - c := &ProjectsLocationsRagCorporaRagFilesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsRagEngineConfigOperationsService) Get(name string) *ProjectsLocationsRagEngineConfigOperationsGetCall { + c := &ProjectsLocationsRagEngineConfigOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -96063,7 +97331,7 @@ func (r *ProjectsLocationsRagCorporaRagFilesOperationsService) Get(name string) // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsRagCorporaRagFilesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRagCorporaRagFilesOperationsGetCall { +func (c *ProjectsLocationsRagEngineConfigOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRagEngineConfigOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -96071,27 +97339,27 @@ func (c *ProjectsLocationsRagCorporaRagFilesOperationsGetCall) Fields(s ...googl // 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 *ProjectsLocationsRagCorporaRagFilesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRagCorporaRagFilesOperationsGetCall { +func (c *ProjectsLocationsRagEngineConfigOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRagEngineConfigOperationsGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsRagCorporaRagFilesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsRagCorporaRagFilesOperationsGetCall { +func (c *ProjectsLocationsRagEngineConfigOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsRagEngineConfigOperationsGetCall { 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 *ProjectsLocationsRagCorporaRagFilesOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsRagEngineConfigOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsRagCorporaRagFilesOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsRagEngineConfigOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -96108,17 +97376,17 @@ func (c *ProjectsLocationsRagCorporaRagFilesOperationsGetCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.operations.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragEngineConfig.operations.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.ragCorpora.ragFiles.operations.get" call. +// Do executes the "aiplatform.projects.locations.ragEngineConfig.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 *ProjectsLocationsRagCorporaRagFilesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsRagEngineConfigOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -96148,11 +97416,11 @@ func (c *ProjectsLocationsRagCorporaRagFilesOperationsGetCall) Do(opts ...google if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.operations.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragEngineConfig.operations.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsRagCorporaRagFilesOperationsListCall struct { +type ProjectsLocationsRagEngineConfigOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -96165,28 +97433,28 @@ type ProjectsLocationsRagCorporaRagFilesOperationsListCall struct { // the server doesn't support this method, it returns `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. -func (r *ProjectsLocationsRagCorporaRagFilesOperationsService) List(name string) *ProjectsLocationsRagCorporaRagFilesOperationsListCall { - c := &ProjectsLocationsRagCorporaRagFilesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsRagEngineConfigOperationsService) List(name string) *ProjectsLocationsRagEngineConfigOperationsListCall { + c := &ProjectsLocationsRagEngineConfigOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list filter. -func (c *ProjectsLocationsRagCorporaRagFilesOperationsListCall) Filter(filter string) *ProjectsLocationsRagCorporaRagFilesOperationsListCall { +func (c *ProjectsLocationsRagEngineConfigOperationsListCall) Filter(filter string) *ProjectsLocationsRagEngineConfigOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list page // size. -func (c *ProjectsLocationsRagCorporaRagFilesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsRagCorporaRagFilesOperationsListCall { +func (c *ProjectsLocationsRagEngineConfigOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsRagEngineConfigOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list page // token. -func (c *ProjectsLocationsRagCorporaRagFilesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsRagCorporaRagFilesOperationsListCall { +func (c *ProjectsLocationsRagEngineConfigOperationsListCall) PageToken(pageToken string) *ProjectsLocationsRagEngineConfigOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -96194,7 +97462,7 @@ func (c *ProjectsLocationsRagCorporaRagFilesOperationsListCall) PageToken(pageTo // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsRagCorporaRagFilesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRagCorporaRagFilesOperationsListCall { +func (c *ProjectsLocationsRagEngineConfigOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRagEngineConfigOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -96202,27 +97470,27 @@ func (c *ProjectsLocationsRagCorporaRagFilesOperationsListCall) Fields(s ...goog // 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 *ProjectsLocationsRagCorporaRagFilesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRagCorporaRagFilesOperationsListCall { +func (c *ProjectsLocationsRagEngineConfigOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRagEngineConfigOperationsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsRagCorporaRagFilesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsRagCorporaRagFilesOperationsListCall { +func (c *ProjectsLocationsRagEngineConfigOperationsListCall) Context(ctx context.Context) *ProjectsLocationsRagEngineConfigOperationsListCall { 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 *ProjectsLocationsRagCorporaRagFilesOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsRagEngineConfigOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsRagCorporaRagFilesOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsRagEngineConfigOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -96239,17 +97507,17 @@ func (c *ProjectsLocationsRagCorporaRagFilesOperationsListCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.operations.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragEngineConfig.operations.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.ragCorpora.ragFiles.operations.list" call. +// Do executes the "aiplatform.projects.locations.ragEngineConfig.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 *ProjectsLocationsRagCorporaRagFilesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ProjectsLocationsRagEngineConfigOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -96279,14 +97547,14 @@ func (c *ProjectsLocationsRagCorporaRagFilesOperationsListCall) Do(opts ...googl if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.operations.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragEngineConfig.operations.list", "response", internallog.HTTPResponse(res, b)) 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 *ProjectsLocationsRagCorporaRagFilesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *ProjectsLocationsRagEngineConfigOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -96304,7 +97572,7 @@ func (c *ProjectsLocationsRagCorporaRagFilesOperationsListCall) Pages(ctx contex } } -type ProjectsLocationsRagCorporaRagFilesOperationsWaitCall struct { +type ProjectsLocationsRagEngineConfigOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -96323,8 +97591,8 @@ type ProjectsLocationsRagCorporaRagFilesOperationsWaitCall struct { // that the operation is done. // // - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsRagCorporaRagFilesOperationsService) Wait(name string) *ProjectsLocationsRagCorporaRagFilesOperationsWaitCall { - c := &ProjectsLocationsRagCorporaRagFilesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsRagEngineConfigOperationsService) Wait(name string) *ProjectsLocationsRagEngineConfigOperationsWaitCall { + c := &ProjectsLocationsRagEngineConfigOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -96333,7 +97601,7 @@ func (r *ProjectsLocationsRagCorporaRagFilesOperationsService) Wait(name string) // 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 *ProjectsLocationsRagCorporaRagFilesOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsRagCorporaRagFilesOperationsWaitCall { +func (c *ProjectsLocationsRagEngineConfigOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsRagEngineConfigOperationsWaitCall { c.urlParams_.Set("timeout", timeout) return c } @@ -96341,27 +97609,27 @@ func (c *ProjectsLocationsRagCorporaRagFilesOperationsWaitCall) Timeout(timeout // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsRagCorporaRagFilesOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsRagCorporaRagFilesOperationsWaitCall { +func (c *ProjectsLocationsRagEngineConfigOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsRagEngineConfigOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsRagCorporaRagFilesOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsRagCorporaRagFilesOperationsWaitCall { +func (c *ProjectsLocationsRagEngineConfigOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsRagEngineConfigOperationsWaitCall { 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 *ProjectsLocationsRagCorporaRagFilesOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsRagEngineConfigOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsRagCorporaRagFilesOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsRagEngineConfigOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -96375,17 +97643,17 @@ func (c *ProjectsLocationsRagCorporaRagFilesOperationsWaitCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.operations.wait", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragEngineConfig.operations.wait", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.ragCorpora.ragFiles.operations.wait" call. +// Do executes the "aiplatform.projects.locations.ragEngineConfig.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 *ProjectsLocationsRagCorporaRagFilesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsRagEngineConfigOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -96415,7 +97683,7 @@ func (c *ProjectsLocationsRagCorporaRagFilesOperationsWaitCall) Do(opts ...googl if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.operations.wait", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragEngineConfig.operations.wait", "response", internallog.HTTPResponse(res, b)) return ret, nil } diff --git a/aiplatform/v1beta1/aiplatform-api.json b/aiplatform/v1beta1/aiplatform-api.json index 6b52c500068..7ca6e0c3182 100644 --- a/aiplatform/v1beta1/aiplatform-api.json +++ b/aiplatform/v1beta1/aiplatform-api.json @@ -315,6 +315,102 @@ }, "protocol": "rest", "resources": { + "batchPredictionJobs": { + "methods": { + "create": { + "description": "Creates a BatchPredictionJob. A BatchPredictionJob once created will right away be attempted to start.", + "flatPath": "v1beta1/batchPredictionJobs", + "httpMethod": "POST", + "id": "aiplatform.batchPredictionJobs.create", + "parameterOrder": [], + "parameters": { + "parent": { + "description": "Required. The resource name of the Location to create the BatchPredictionJob in. Format: `projects/{project}/locations/{location}`", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/batchPredictionJobs", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1BatchPredictionJob" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1beta1BatchPredictionJob" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets a BatchPredictionJob", + "flatPath": "v1beta1/batchPredictionJobs/{batchPredictionJobsId}", + "httpMethod": "GET", + "id": "aiplatform.batchPredictionJobs.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the BatchPredictionJob resource. Format: `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}`", + "location": "path", + "pattern": "^batchPredictionJobs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleCloudAiplatformV1beta1BatchPredictionJob" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists BatchPredictionJobs in a Location.", + "flatPath": "v1beta1/batchPredictionJobs", + "httpMethod": "GET", + "id": "aiplatform.batchPredictionJobs.list", + "parameterOrder": [], + "parameters": { + "filter": { + "description": "The standard list filter. Supported fields: * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. * `model_display_name` supports `=`, `!=` comparisons. * `state` supports `=`, `!=` comparisons. * `create_time` supports `=`, `!=`,`\u003c`, `\u003c=`,`\u003e`, `\u003e=` comparisons. `create_time` must be in RFC 3339 format. * `labels` supports general map functions that is: `labels.key=value` - key:value equality `labels.key:* - key existence Some examples of using the filter are: * `state=\"JOB_STATE_SUCCEEDED\" AND display_name:\"my_job_*\"` * `state!=\"JOB_STATE_FAILED\" OR display_name=\"my_job\"` * `NOT display_name=\"my_job\"` * `create_time\u003e\"2021-05-18T00:00:00Z\"` * `labels.keyA=valueA` * `labels.keyB:*`", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token. Typically obtained via ListBatchPredictionJobsResponse.next_page_token of the previous JobService.ListBatchPredictionJobs call.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the Location to list the BatchPredictionJobs from. Format: `projects/{project}/locations/{location}`", + "location": "query", + "type": "string" + }, + "readMask": { + "description": "Mask specifying which fields to read.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/batchPredictionJobs", + "response": { + "$ref": "GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "datasets": { "methods": { "create": { @@ -828,6 +924,41 @@ "https://www.googleapis.com/auth/cloud-platform.read-only" ] } + }, + "resources": { + "chat": { + "methods": { + "completions": { + "description": "Exposes an OpenAI-compatible endpoint for chat completions.", + "flatPath": "v1beta1/endpoints/{endpointsId}/chat/completions", + "httpMethod": "POST", + "id": "aiplatform.endpoints.chat.completions", + "parameterOrder": [ + "endpoint" + ], + "parameters": { + "endpoint": { + "description": "Required. The name of the endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + "location": "path", + "pattern": "^endpoints/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+endpoint}/chat/completions", + "request": { + "$ref": "GoogleApiHttpBody" + }, + "response": { + "$ref": "GoogleApiHttpBody" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + } + } + } } }, "media": { @@ -1127,6 +1258,31 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "getRagEngineConfig": { + "description": "Gets a RagEngineConfig.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/ragEngineConfig", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.getRagEngineConfig", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the RagEngineConfig resource. Format: `projects/{project}/locations/{location}/ragEngineConfig`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/ragEngineConfig$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleCloudAiplatformV1beta1RagEngineConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "list": { "description": "Lists information about the supported locations for this service.", "flatPath": "v1beta1/projects/{projectsId}/locations", @@ -1201,6 +1357,34 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "updateRagEngineConfig": { + "description": "Updates a RagEngineConfig.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/ragEngineConfig", + "httpMethod": "PATCH", + "id": "aiplatform.projects.locations.updateRagEngineConfig", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Identifier. The name of the RagEngineConfig. Format: `projects/{project}/locations/{location}/ragEngineConfig`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/ragEngineConfig$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1RagEngineConfig" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } }, "resources": { @@ -5609,7 +5793,7 @@ "type": "string" }, "exampleStore.exampleStoreConfig.vertexEmbeddingModel": { - "description": "Required. The embedding model to be used for vector embedding. Immutable. Supported models: * \"textembedding-gecko@003\" * \"text-embedding-004\" * \"text-embedding-005\" * \"text-multilingual-embedding-002\"", + "description": "Required. The embedding model to be used for vector embedding. Immutable. Supported models: * \"text-embedding-005\" * \"text-multilingual-embedding-002\"", "location": "query", "type": "string" }, @@ -17504,6 +17688,31 @@ "https://www.googleapis.com/auth/cloud-platform.read-only" ] }, + "fetchPublisherModelConfig": { + "description": "Fetches the configs of publisher models.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/publishers/{publishersId}/models/{modelsId}:fetchPublisherModelConfig", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.publishers.models.fetchPublisherModelConfig", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the publisher model, in the format of `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:fetchPublisherModelConfig", + "response": { + "$ref": "GoogleCloudAiplatformV1beta1PublisherModelConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "generateContent": { "description": "Generate content with multimodal inputs.", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/publishers/{publishersId}/models/{modelsId}:generateContent", @@ -17680,6 +17889,34 @@ "https://www.googleapis.com/auth/cloud-platform.read-only" ] }, + "setPublisherModelConfig": { + "description": "Sets (creates or updates) configs of publisher models. For example, sets the request/response logging config.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/publishers/{publishersId}/models/{modelsId}:setPublisherModelConfig", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.publishers.models.setPublisherModelConfig", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the publisher model, in the format of `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:setPublisherModelConfig", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1SetPublisherModelConfigRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "streamGenerateContent": { "description": "Generate content with multimodal inputs with streaming support.", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/publishers/{publishersId}/models/{modelsId}:streamGenerateContent", @@ -18317,6 +18554,161 @@ } } }, + "ragEngineConfig": { + "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": "v1beta1/projects/{projectsId}/locations/{locationsId}/ragEngineConfig/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.ragEngineConfig.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/ragEngineConfig/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+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": "v1beta1/projects/{projectsId}/locations/{locationsId}/ragEngineConfig/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.ragEngineConfig.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/ragEngineConfig/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}/ragEngineConfig/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.ragEngineConfig.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/ragEngineConfig/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}/ragEngineConfig/operations", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.ragEngineConfig.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/[^/]+/ragEngineConfig$", + "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}/ragEngineConfig/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.ragEngineConfig.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/ragEngineConfig/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" + ] + } + } + } + } + }, "reasoningEngines": { "methods": { "create": { @@ -23040,7 +23432,7 @@ } } }, - "revision": "20250322", + "revision": "20250415", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "CloudAiLargeModelsVisionGenerateVideoResponse": { @@ -24215,7 +24607,7 @@ "type": "string" }, "flipEnabled": { - "description": "Optional. Whether to flip the candidate and baseline responses. This is only applicable to the pairwise metric. If enabled, also provide PairwiseMetricSpec.candidate_response_field_name and PairwiseMetricSpec.baseline_response_field_name. When rendering PairwiseMetricSpec.metric_prompt_template, the candidate and baseline fields will be flipped for half of the samples to reduce bias.", + "description": "Optional. Default is true. Whether to flip the candidate and baseline responses. This is only applicable to the pairwise metric. If enabled, also provide PairwiseMetricSpec.candidate_response_field_name and PairwiseMetricSpec.baseline_response_field_name. When rendering PairwiseMetricSpec.metric_prompt_template, the candidate and baseline fields will be flipped for half of the samples to reduce bias.", "type": "boolean" }, "samplingCount": { @@ -28016,7 +28408,7 @@ "id": "GoogleCloudAiplatformV1beta1DistillationSpec", "properties": { "baseTeacherModel": { - "description": "The base teacher model that is being distilled, e.g., \"gemini-1.0-pro-002\".", + "description": "The base teacher model that is being distilled. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).", "type": "string" }, "hyperParameters": { @@ -28833,8 +29225,13 @@ "description": "Optional. Indicates that the event is updating the state with the given delta.", "type": "object" }, - "transferToAgent": { + "transferAgent": { "description": "Optional. If set, the event transfers to the specified agent.", + "type": "string" + }, + "transferToAgent": { + "deprecated": true, + "description": "Deprecated. If set, the event transfers to the specified agent.", "type": "boolean" } }, @@ -29006,7 +29403,7 @@ "id": "GoogleCloudAiplatformV1beta1ExampleStoreConfig", "properties": { "vertexEmbeddingModel": { - "description": "Required. The embedding model to be used for vector embedding. Immutable. Supported models: * \"textembedding-gecko@003\" * \"text-embedding-004\" * \"text-embedding-005\" * \"text-multilingual-embedding-002\"", + "description": "Required. The embedding model to be used for vector embedding. Immutable. Supported models: * \"text-embedding-005\" * \"text-multilingual-embedding-002\"", "type": "string" } }, @@ -30190,6 +30587,10 @@ "description": "The fact used in grounding.", "id": "GoogleCloudAiplatformV1beta1Fact", "properties": { + "chunk": { + "$ref": "GoogleCloudAiplatformV1beta1RagChunk", + "description": "If present, chunk properties." + }, "query": { "description": "Query that is used to retrieve this fact.", "type": "string" @@ -31776,7 +32177,7 @@ "type": "array" }, "nextPageToken": { - "description": "A token, which can be sent as ListExamplesRequest.page_token to retrieve the next page. Absence of this field indicates there are no subsequent pages.", + "description": "A token, which can be sent as FetchExamplesRequest.page_token to retrieve the next page. Absence of this field indicates there are no subsequent pages.", "type": "string" } }, @@ -32236,7 +32637,7 @@ "description": "Properties of the object.", "type": "any" }, - "description": "Optional. Required. The function parameters and values in JSON object format. See [FunctionDeclaration.parameters] for parameter details.", + "description": "Optional. The function parameters and values in JSON object format. See [FunctionDeclaration.parameters] for parameter details.", "type": "object" }, "id": { @@ -32342,7 +32743,7 @@ "id": "GoogleCloudAiplatformV1beta1GcsSource", "properties": { "uris": { - "description": "Required. Google Cloud Storage URI(-s) to the input file(s). May contain wildcards. For more information on wildcards, see https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames.", + "description": "Required. Google Cloud Storage URI(-s) to the input file(s). May contain wildcards. For more information on wildcards, see https://cloud.google.com/storage/docs/wildcards.", "items": { "type": "string" }, @@ -32795,6 +33196,10 @@ ], "type": "string" }, + "modelConfig": { + "$ref": "GoogleCloudAiplatformV1beta1GenerationConfigModelConfig", + "description": "Optional. Config for model selection." + }, "presencePenalty": { "description": "Optional. Positive penalties.", "format": "float", @@ -32856,6 +33261,10 @@ "format": "float", "type": "number" }, + "thinkingConfig": { + "$ref": "GoogleCloudAiplatformV1beta1GenerationConfigThinkingConfig", + "description": "Optional. Config for thinking features. An error will be returned if this field is set for models that don't support thinking." + }, "topK": { "description": "Optional. If specified, top-k sampling will be used.", "format": "float", @@ -32869,6 +33278,29 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1GenerationConfigModelConfig": { + "description": "Config for model selection.", + "id": "GoogleCloudAiplatformV1beta1GenerationConfigModelConfig", + "properties": { + "featureSelectionPreference": { + "description": "Required. Feature selection preference.", + "enum": [ + "FEATURE_SELECTION_PREFERENCE_UNSPECIFIED", + "PRIORITIZE_QUALITY", + "BALANCED", + "PRIORITIZE_COST" + ], + "enumDescriptions": [ + "Unspecified feature selection preference.", + "Prefer higher quality over lower cost.", + "Balanced feature selection preference.", + "Prefer lower cost over higher quality." + ], + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfig": { "description": "The configuration for routing the request to a specific model.", "id": "GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfig", @@ -32912,12 +33344,24 @@ "id": "GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigManualRoutingMode", "properties": { "modelName": { - "description": "The model name to use. Only the public LLM models are accepted. e.g. 'gemini-1.5-pro-001'.", + "description": "The model name to use. Only the public LLM models are accepted. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models).", "type": "string" } }, "type": "object" }, + "GoogleCloudAiplatformV1beta1GenerationConfigThinkingConfig": { + "description": "Config for thinking features.", + "id": "GoogleCloudAiplatformV1beta1GenerationConfigThinkingConfig", + "properties": { + "thinkingBudget": { + "description": "Optional. Indicates the thinking budget in tokens. This is only applied when enable_thinking is true.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1GenericOperationMetadata": { "description": "Generic Metadata shared by all operations.", "id": "GoogleCloudAiplatformV1beta1GenericOperationMetadata", @@ -33091,6 +33535,10 @@ "description": "Chunk from context retrieved by the retrieval tools.", "id": "GoogleCloudAiplatformV1beta1GroundingChunkRetrievedContext", "properties": { + "ragChunk": { + "$ref": "GoogleCloudAiplatformV1beta1RagChunk", + "description": "Additional context for the RAG retrieval result. This is only populated when using the RAG retrieval tool." + }, "text": { "description": "Text of the attribution.", "type": "string" @@ -37264,7 +37712,7 @@ "type": "string" }, "gcsUri": { - "description": "Google Cloud Storage URI to the input file(s). May contain wildcards. For more information on wildcards, see https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames.", + "description": "Google Cloud Storage URI to the input file(s). May contain wildcards. For more information on wildcards, see https://cloud.google.com/storage/docs/wildcards.", "type": "string" } }, @@ -39049,6 +39497,40 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1NotebookReservationAffinity": { + "description": "Notebook Reservation Affinity for consuming Zonal reservation.", + "id": "GoogleCloudAiplatformV1beta1NotebookReservationAffinity", + "properties": { + "consumeReservationType": { + "description": "Required. Specifies the type of reservation from which this instance can consume resources: RESERVATION_ANY (default), RESERVATION_SPECIFIC, or RESERVATION_NONE. See Consuming reserved instances for examples.", + "enum": [ + "RESERVATION_AFFINITY_TYPE_UNSPECIFIED", + "RESERVATION_NONE", + "RESERVATION_ANY", + "RESERVATION_SPECIFIC" + ], + "enumDescriptions": [ + "Default type.", + "Do not consume from any allocated capacity.", + "Consume any reservation available.", + "Must consume from a specific reservation. Must specify key value fields for specifying the reservations." + ], + "type": "string" + }, + "key": { + "description": "Optional. Corresponds to the label key of a reservation resource. To target a RESERVATION_SPECIFIC by name, use compute.googleapis.com/reservation-name as the key and specify the name of your reservation as its value.", + "type": "string" + }, + "values": { + "description": "Optional. Corresponds to the label values of a reservation resource. This must be the full path name of Reservation.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1NotebookRuntime": { "description": "A runtime is a virtual machine allocated to a particular user for a particular Notebook file on temporary basis with lifetime limited to 24 hours.", "id": "GoogleCloudAiplatformV1beta1NotebookRuntime", @@ -39167,6 +39649,11 @@ "readOnly": true, "type": "string" }, + "reservationAffinity": { + "$ref": "GoogleCloudAiplatformV1beta1NotebookReservationAffinity", + "description": "Output only. Reservation Affinity of the notebook runtime.", + "readOnly": true + }, "runtimeState": { "description": "Output only. The runtime (instance) state of the NotebookRuntime.", "enum": [ @@ -39319,6 +39806,10 @@ ], "type": "string" }, + "reservationAffinity": { + "$ref": "GoogleCloudAiplatformV1beta1NotebookReservationAffinity", + "description": "Optional. Reservation Affinity of the notebook runtime template." + }, "serviceAccount": { "deprecated": true, "description": "Deprecated: This field is ignored and the \"Vertex AI Notebook Service Account\" (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is used for the runtime workload identity. See https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account for more details. For NotebookExecutionJob, use NotebookExecutionJob.service_account instead. The service account that the runtime workload runs as. You can use any service account within the same project, but you must have the service account user permission to use the instance. If not specified, the [Compute Engine default service account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used.", @@ -40681,10 +41172,19 @@ "$ref": "GoogleCloudAiplatformV1beta1BigQueryDestination", "description": "BigQuery table for logging. If only given a project, a new dataset will be created with name `logging__` where will be made BigQuery-dataset-name compatible (e.g. most special characters will become underscores). If no table name is given, a new table will be created with name `request_response_logging`" }, + "enableOtelLogging": { + "description": "This field is used for large models. If true, in addition to the original large model logs, logs will be converted in OTel schema format, and saved in otel_log column. Default value is false.", + "type": "boolean" + }, "enabled": { "description": "If logging is enabled or not.", "type": "boolean" }, + "requestResponseLoggingSchemaVersion": { + "description": "Output only. The schema version used in creating the BigQuery table for the request response logging. The versions are \"v1\" and \"v2\". The current default version is \"v1\".", + "readOnly": true, + "type": "string" + }, "samplingRate": { "description": "Percentage of requests to be logged, expressed as a fraction in range(0,1].", "format": "double", @@ -40911,7 +41411,7 @@ "type": "integer" }, "service": { - "description": "Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the default behavior is defined by gRPC.", + "description": "Service is the name of the service to place in the gRPC HealthCheckRequest. See https://github.com/grpc/grpc/blob/master/doc/health-checking.md. If this is not specified, the default behavior is defined by gRPC.", "type": "string" } }, @@ -41338,6 +41838,17 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1PublisherModelConfig": { + "description": "This message contains configs of a publisher model.", + "id": "GoogleCloudAiplatformV1beta1PublisherModelConfig", + "properties": { + "loggingConfig": { + "$ref": "GoogleCloudAiplatformV1beta1PredictRequestResponseLoggingConfig", + "description": "The prediction request/response logging config." + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1PublisherModelDocumentation": { "description": "A named piece of documentation.", "id": "GoogleCloudAiplatformV1beta1PublisherModelDocumentation", @@ -41994,6 +42505,38 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1RagChunk": { + "description": "A RagChunk includes the content of a chunk of a RagFile, and associated metadata.", + "id": "GoogleCloudAiplatformV1beta1RagChunk", + "properties": { + "pageSpan": { + "$ref": "GoogleCloudAiplatformV1beta1RagChunkPageSpan", + "description": "If populated, represents where the chunk starts and ends in the document." + }, + "text": { + "description": "The content of the chunk.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1RagChunkPageSpan": { + "description": "Represents where the chunk starts and ends in the document.", + "id": "GoogleCloudAiplatformV1beta1RagChunkPageSpan", + "properties": { + "firstPage": { + "description": "Page where chunk starts in the document. Inclusive. 1-indexed.", + "format": "int32", + "type": "integer" + }, + "lastPage": { + "description": "Page where chunk ends in the document. Inclusive. 1-indexed.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1RagContexts": { "description": "Relevant contexts for one query.", "id": "GoogleCloudAiplatformV1beta1RagContexts", @@ -42012,6 +42555,10 @@ "description": "A context of the query.", "id": "GoogleCloudAiplatformV1beta1RagContextsContext", "properties": { + "chunk": { + "$ref": "GoogleCloudAiplatformV1beta1RagChunk", + "description": "Context of the retrieved chunk." + }, "distance": { "deprecated": true, "description": "The distance between the query dense embedding vector and the context text vector.", @@ -42188,6 +42735,21 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1RagEngineConfig": { + "description": "Config for RagEngine.", + "id": "GoogleCloudAiplatformV1beta1RagEngineConfig", + "properties": { + "name": { + "description": "Identifier. The name of the RagEngineConfig. Format: `projects/{project}/locations/{location}/ragEngineConfig`", + "type": "string" + }, + "ragManagedDbConfig": { + "$ref": "GoogleCloudAiplatformV1beta1RagManagedDbConfig", + "description": "The config of the RagManagedDb used by RagEngine." + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1RagFile": { "description": "A RagFile contains user data for chunking, embedding and indexing.", "id": "GoogleCloudAiplatformV1beta1RagFile", @@ -42405,6 +42967,33 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1RagManagedDbConfig": { + "description": "Configuration message for RagManagedDb used by RagEngine.", + "id": "GoogleCloudAiplatformV1beta1RagManagedDbConfig", + "properties": { + "basic": { + "$ref": "GoogleCloudAiplatformV1beta1RagManagedDbConfigBasic", + "description": "Sets the RagManagedDb to the Basic tier." + }, + "enterprise": { + "$ref": "GoogleCloudAiplatformV1beta1RagManagedDbConfigEnterprise", + "description": "Sets the RagManagedDb to the Enterprise tier. This is the default tier if not explicitly chosen." + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1RagManagedDbConfigBasic": { + "description": "Basic tier is a cost-effective and low compute tier suitable for the following cases: * Experimenting with RagManagedDb. * Small data size. * Latency insensitive workload. * Only using RAG Engine with external vector DBs.", + "id": "GoogleCloudAiplatformV1beta1RagManagedDbConfigBasic", + "properties": {}, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1RagManagedDbConfigEnterprise": { + "description": "Enterprise tier offers production grade performance along with autoscaling functionality. It is suitable for customers with large amounts of data or performance sensitive workloads. NOTE: This is the default tier if not explicitly chosen.", + "id": "GoogleCloudAiplatformV1beta1RagManagedDbConfigEnterprise", + "properties": {}, + "type": "object" + }, "GoogleCloudAiplatformV1beta1RagQuery": { "description": "A query to retrieve relevant contexts.", "id": "GoogleCloudAiplatformV1beta1RagQuery", @@ -42520,7 +43109,7 @@ "id": "GoogleCloudAiplatformV1beta1RagRetrievalConfigRankingLlmRanker", "properties": { "modelName": { - "description": "Optional. The model name used for ranking. Format: `gemini-1.5-pro`", + "description": "Optional. The model name used for ranking. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models).", "type": "string" } }, @@ -42964,7 +43553,7 @@ "id": "GoogleCloudAiplatformV1beta1ReasoningEngineSpec", "properties": { "agentFramework": { - "description": "Optional. The OSS agent framework used to develop the agent. Currently supported values: \"langchain\", \"langgraph\", \"ag2\", \"custom\".", + "description": "Optional. The OSS agent framework used to develop the agent. Currently supported values: \"google-adk\", \"langchain\", \"langgraph\", \"ag2\", \"llama-index\", \"custom\".", "type": "string" }, "classMethods": { @@ -49120,6 +49709,17 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1SetPublisherModelConfigRequest": { + "description": "Request message for EndpointService.SetPublisherModelConfig.", + "id": "GoogleCloudAiplatformV1beta1SetPublisherModelConfigRequest", + "properties": { + "publisherModelConfig": { + "$ref": "GoogleCloudAiplatformV1beta1PublisherModelConfig", + "description": "Required. The publisher model config." + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1SharePointSources": { "description": "The SharePointSources to pass to ImportRagFiles.", "id": "GoogleCloudAiplatformV1beta1SharePointSources", @@ -49353,6 +49953,10 @@ "description": "The speech generation config.", "id": "GoogleCloudAiplatformV1beta1SpeechConfig", "properties": { + "languageCode": { + "description": "Optional. Language code (ISO 639. e.g. en-US) for the speech synthesization.", + "type": "string" + }, "voiceConfig": { "$ref": "GoogleCloudAiplatformV1beta1VoiceConfig", "description": "The configuration for the speaker to use." @@ -52500,7 +53104,7 @@ "id": "GoogleCloudAiplatformV1beta1TuningJob", "properties": { "baseModel": { - "description": "The base model that is being tuned, e.g., \"gemini-1.0-pro-002\". .", + "description": "The base model that is being tuned. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).", "type": "string" }, "createTime": { diff --git a/aiplatform/v1beta1/aiplatform-gen.go b/aiplatform/v1beta1/aiplatform-gen.go index deac823c9ee..17fb5d412f4 100644 --- a/aiplatform/v1beta1/aiplatform-gen.go +++ b/aiplatform/v1beta1/aiplatform-gen.go @@ -129,6 +129,7 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err return nil, err } s := &Service{client: client, BasePath: basePath, logger: internaloption.GetLogger(opts)} + s.BatchPredictionJobs = NewBatchPredictionJobsService(s) s.Datasets = NewDatasetsService(s) s.Endpoints = NewEndpointsService(s) s.Media = NewMediaService(s) @@ -158,6 +159,8 @@ type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment + BatchPredictionJobs *BatchPredictionJobsService + Datasets *DatasetsService Endpoints *EndpointsService @@ -176,6 +179,15 @@ func (s *Service) userAgent() string { return googleapi.UserAgent + " " + s.UserAgent } +func NewBatchPredictionJobsService(s *Service) *BatchPredictionJobsService { + rs := &BatchPredictionJobsService{s: s} + return rs +} + +type BatchPredictionJobsService struct { + s *Service +} + func NewDatasetsService(s *Service) *DatasetsService { rs := &DatasetsService{s: s} rs.DatasetVersions = NewDatasetsDatasetVersionsService(s) @@ -199,11 +211,23 @@ type DatasetsDatasetVersionsService struct { func NewEndpointsService(s *Service) *EndpointsService { rs := &EndpointsService{s: s} + rs.Chat = NewEndpointsChatService(s) return rs } type EndpointsService struct { s *Service + + Chat *EndpointsChatService +} + +func NewEndpointsChatService(s *Service) *EndpointsChatService { + rs := &EndpointsChatService{s: s} + return rs +} + +type EndpointsChatService struct { + s *Service } func NewMediaService(s *Service) *MediaService { @@ -266,6 +290,7 @@ func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs.PipelineJobs = NewProjectsLocationsPipelineJobsService(s) rs.Publishers = NewProjectsLocationsPublishersService(s) rs.RagCorpora = NewProjectsLocationsRagCorporaService(s) + rs.RagEngineConfig = NewProjectsLocationsRagEngineConfigService(s) rs.ReasoningEngines = NewProjectsLocationsReasoningEnginesService(s) rs.Schedules = NewProjectsLocationsSchedulesService(s) rs.Sessions = NewProjectsLocationsSessionsService(s) @@ -349,6 +374,8 @@ type ProjectsLocationsService struct { RagCorpora *ProjectsLocationsRagCorporaService + RagEngineConfig *ProjectsLocationsRagEngineConfigService + ReasoningEngines *ProjectsLocationsReasoningEnginesService Schedules *ProjectsLocationsSchedulesService @@ -1466,6 +1493,27 @@ type ProjectsLocationsRagCorporaRagFilesOperationsService struct { s *Service } +func NewProjectsLocationsRagEngineConfigService(s *Service) *ProjectsLocationsRagEngineConfigService { + rs := &ProjectsLocationsRagEngineConfigService{s: s} + rs.Operations = NewProjectsLocationsRagEngineConfigOperationsService(s) + return rs +} + +type ProjectsLocationsRagEngineConfigService struct { + s *Service + + Operations *ProjectsLocationsRagEngineConfigOperationsService +} + +func NewProjectsLocationsRagEngineConfigOperationsService(s *Service) *ProjectsLocationsRagEngineConfigOperationsService { + rs := &ProjectsLocationsRagEngineConfigOperationsService{s: s} + return rs +} + +type ProjectsLocationsRagEngineConfigOperationsService struct { + s *Service +} + func NewProjectsLocationsReasoningEnginesService(s *Service) *ProjectsLocationsReasoningEnginesService { rs := &ProjectsLocationsReasoningEnginesService{s: s} rs.Operations = NewProjectsLocationsReasoningEnginesOperationsService(s) @@ -3432,9 +3480,9 @@ type GoogleCloudAiplatformV1beta1AutoraterConfig struct { // endpoint format: // `projects/{project}/locations/{location}/endpoints/{endpoint}` AutoraterModel string `json:"autoraterModel,omitempty"` - // FlipEnabled: Optional. Whether to flip the candidate and baseline responses. - // This is only applicable to the pairwise metric. If enabled, also provide - // PairwiseMetricSpec.candidate_response_field_name and + // FlipEnabled: Optional. Default is true. Whether to flip the candidate and + // baseline responses. This is only applicable to the pairwise metric. If + // enabled, also provide PairwiseMetricSpec.candidate_response_field_name and // PairwiseMetricSpec.baseline_response_field_name. When rendering // PairwiseMetricSpec.metric_prompt_template, the candidate and baseline fields // will be flipped for half of the samples to reduce bias. @@ -9036,8 +9084,9 @@ func (s *GoogleCloudAiplatformV1beta1DistillationHyperParameters) UnmarshalJSON( // GoogleCloudAiplatformV1beta1DistillationSpec: Tuning Spec for Distillation. type GoogleCloudAiplatformV1beta1DistillationSpec struct { - // BaseTeacherModel: The base teacher model that is being distilled, e.g., - // "gemini-1.0-pro-002". + // BaseTeacherModel: The base teacher model that is being distilled. See + // Supported models + // (https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models). BaseTeacherModel string `json:"baseTeacherModel,omitempty"` // HyperParameters: Optional. Hyperparameters for Distillation. HyperParameters *GoogleCloudAiplatformV1beta1DistillationHyperParameters `json:"hyperParameters,omitempty"` @@ -9939,7 +9988,9 @@ type GoogleCloudAiplatformV1beta1EventActions struct { // StateDelta: Optional. Indicates that the event is updating the state with // the given delta. StateDelta googleapi.RawMessage `json:"stateDelta,omitempty"` - // TransferToAgent: Optional. If set, the event transfers to the specified + // TransferAgent: Optional. If set, the event transfers to the specified agent. + TransferAgent string `json:"transferAgent,omitempty"` + // TransferToAgent: Deprecated. If set, the event transfers to the specified // agent. TransferToAgent bool `json:"transferToAgent,omitempty"` // ForceSendFields is a list of field names (e.g. "ArtifactDelta") to @@ -10192,8 +10243,7 @@ func (s GoogleCloudAiplatformV1beta1ExampleStore) MarshalJSON() ([]byte, error) // Example Store. type GoogleCloudAiplatformV1beta1ExampleStoreConfig struct { // VertexEmbeddingModel: Required. The embedding model to be used for vector - // embedding. Immutable. Supported models: * "textembedding-gecko@003" * - // "text-embedding-004" * "text-embedding-005" * + // embedding. Immutable. Supported models: * "text-embedding-005" * // "text-multilingual-embedding-002" VertexEmbeddingModel string `json:"vertexEmbeddingModel,omitempty"` // ForceSendFields is a list of field names (e.g. "VertexEmbeddingModel") to @@ -11945,6 +11995,8 @@ func (s GoogleCloudAiplatformV1beta1ExtensionPrivateServiceConnectConfig) Marsha // GoogleCloudAiplatformV1beta1Fact: The fact used in grounding. type GoogleCloudAiplatformV1beta1Fact struct { + // Chunk: If present, chunk properties. + Chunk *GoogleCloudAiplatformV1beta1RagChunk `json:"chunk,omitempty"` // Query: Query that is used to retrieve this fact. Query string `json:"query,omitempty"` // Score: If present, according to the underlying Vector DB and the selected @@ -11964,13 +12016,13 @@ type GoogleCloudAiplatformV1beta1Fact struct { // VectorDistance: If present, the distance between the query vector and this // fact vector. VectorDistance float64 `json:"vectorDistance,omitempty"` - // ForceSendFields is a list of field names (e.g. "Query") to unconditionally + // ForceSendFields is a list of field names (e.g. "Chunk") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Query") to include in API + // NullFields is a list of field names (e.g. "Chunk") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -14181,7 +14233,7 @@ type GoogleCloudAiplatformV1beta1FetchExamplesResponse struct { // Examples: The examples in the Example Store that satisfy the metadata // filters. Examples []*GoogleCloudAiplatformV1beta1Example `json:"examples,omitempty"` - // NextPageToken: A token, which can be sent as ListExamplesRequest.page_token + // NextPageToken: A token, which can be sent as FetchExamplesRequest.page_token // to retrieve the next page. Absence of this field indicates there are no // subsequent pages. NextPageToken string `json:"nextPageToken,omitempty"` @@ -14973,8 +15025,8 @@ func (s GoogleCloudAiplatformV1beta1FulfillmentSpec) MarshalJSON() ([]byte, erro // [FunctionDeclaration.name] and a structured JSON object containing the // parameters and their values. type GoogleCloudAiplatformV1beta1FunctionCall struct { - // Args: Optional. Required. The function parameters and values in JSON object - // format. See [FunctionDeclaration.parameters] for parameter details. + // Args: Optional. The function parameters and values in JSON object format. + // See [FunctionDeclaration.parameters] for parameter details. Args googleapi.RawMessage `json:"args,omitempty"` // Id: Optional. The unique id of the function call. If populated, the client // to execute the `function_call` and return the response with the matching @@ -15151,7 +15203,7 @@ func (s GoogleCloudAiplatformV1beta1GcsDestination) MarshalJSON() ([]byte, error type GoogleCloudAiplatformV1beta1GcsSource struct { // Uris: Required. Google Cloud Storage URI(-s) to the input file(s). May // contain wildcards. For more information on wildcards, see - // https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames. + // https://cloud.google.com/storage/docs/wildcards. Uris []string `json:"uris,omitempty"` // ForceSendFields is a list of field names (e.g. "Uris") to unconditionally // include in API requests. By default, fields with empty or default values are @@ -15637,6 +15689,8 @@ type GoogleCloudAiplatformV1beta1GenerationConfig struct { // "MEDIA_RESOLUTION_HIGH" - Media resolution set to high (zoomed reframing // with 256 tokens). MediaResolution string `json:"mediaResolution,omitempty"` + // ModelConfig: Optional. Config for model selection. + ModelConfig *GoogleCloudAiplatformV1beta1GenerationConfigModelConfig `json:"modelConfig,omitempty"` // PresencePenalty: Optional. Positive penalties. PresencePenalty float64 `json:"presencePenalty,omitempty"` // ResponseLogprobs: Optional. If true, export the logprobs results in @@ -15673,6 +15727,9 @@ type GoogleCloudAiplatformV1beta1GenerationConfig struct { StopSequences []string `json:"stopSequences,omitempty"` // Temperature: Optional. Controls the randomness of predictions. Temperature float64 `json:"temperature,omitempty"` + // ThinkingConfig: Optional. Config for thinking features. An error will be + // returned if this field is set for models that don't support thinking. + ThinkingConfig *GoogleCloudAiplatformV1beta1GenerationConfigThinkingConfig `json:"thinkingConfig,omitempty"` // TopK: Optional. If specified, top-k sampling will be used. TopK float64 `json:"topK,omitempty"` // TopP: Optional. If specified, nucleus sampling will be used. @@ -15717,6 +15774,36 @@ func (s *GoogleCloudAiplatformV1beta1GenerationConfig) UnmarshalJSON(data []byte return nil } +// GoogleCloudAiplatformV1beta1GenerationConfigModelConfig: Config for model +// selection. +type GoogleCloudAiplatformV1beta1GenerationConfigModelConfig struct { + // FeatureSelectionPreference: Required. Feature selection preference. + // + // Possible values: + // "FEATURE_SELECTION_PREFERENCE_UNSPECIFIED" - Unspecified feature selection + // preference. + // "PRIORITIZE_QUALITY" - Prefer higher quality over lower cost. + // "BALANCED" - Balanced feature selection preference. + // "PRIORITIZE_COST" - Prefer lower cost over higher quality. + FeatureSelectionPreference string `json:"featureSelectionPreference,omitempty"` + // ForceSendFields is a list of field names (e.g. "FeatureSelectionPreference") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "FeatureSelectionPreference") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1GenerationConfigModelConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1GenerationConfigModelConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfig: The configuration // for routing the request to a specific model. type GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfig struct { @@ -15776,7 +15863,8 @@ func (s GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigAutoRoutingMode // When manual routing is set, the specified model will be used directly. type GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigManualRoutingMode struct { // ModelName: The model name to use. Only the public LLM models are accepted. - // e.g. 'gemini-1.5-pro-001'. + // See Supported models + // (https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models). ModelName string `json:"modelName,omitempty"` // ForceSendFields is a list of field names (e.g. "ModelName") to // unconditionally include in API requests. By default, fields with empty or @@ -15796,6 +15884,30 @@ func (s GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigManualRoutingMo return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1GenerationConfigThinkingConfig: Config for +// thinking features. +type GoogleCloudAiplatformV1beta1GenerationConfigThinkingConfig struct { + // ThinkingBudget: Optional. Indicates the thinking budget in tokens. This is + // only applied when enable_thinking is true. + ThinkingBudget int64 `json:"thinkingBudget,omitempty"` + // ForceSendFields is a list of field names (e.g. "ThinkingBudget") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ThinkingBudget") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1GenerationConfigThinkingConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1GenerationConfigThinkingConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1GenericOperationMetadata: Generic Metadata // shared by all operations. type GoogleCloudAiplatformV1beta1GenericOperationMetadata struct { @@ -16071,21 +16183,24 @@ func (s GoogleCloudAiplatformV1beta1GroundingChunk) MarshalJSON() ([]byte, error // GoogleCloudAiplatformV1beta1GroundingChunkRetrievedContext: Chunk from // context retrieved by the retrieval tools. type GoogleCloudAiplatformV1beta1GroundingChunkRetrievedContext struct { + // RagChunk: Additional context for the RAG retrieval result. This is only + // populated when using the RAG retrieval tool. + RagChunk *GoogleCloudAiplatformV1beta1RagChunk `json:"ragChunk,omitempty"` // Text: Text of the attribution. Text string `json:"text,omitempty"` // Title: Title of the attribution. Title string `json:"title,omitempty"` // Uri: URI reference of the attribution. Uri string `json:"uri,omitempty"` - // ForceSendFields is a list of field names (e.g. "Text") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See + // ForceSendFields is a list of field names (e.g. "RagChunk") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Text") to include in API requests - // with the JSON null value. By default, fields with empty values are omitted - // from API requests. See + // NullFields is a list of field names (e.g. "RagChunk") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -21961,7 +22076,7 @@ type GoogleCloudAiplatformV1beta1ModelMonitoringInputModelMonitoringDatasetModel Format string `json:"format,omitempty"` // GcsUri: Google Cloud Storage URI to the input file(s). May contain // wildcards. For more information on wildcards, see - // https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames. + // https://cloud.google.com/storage/docs/wildcards. GcsUri string `json:"gcsUri,omitempty"` // ForceSendFields is a list of field names (e.g. "Format") to unconditionally // include in API requests. By default, fields with empty or default values are @@ -24376,6 +24491,47 @@ func (s GoogleCloudAiplatformV1beta1NotebookIdleShutdownConfig) MarshalJSON() ([ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1NotebookReservationAffinity: Notebook +// Reservation Affinity for consuming Zonal reservation. +type GoogleCloudAiplatformV1beta1NotebookReservationAffinity struct { + // ConsumeReservationType: Required. Specifies the type of reservation from + // which this instance can consume resources: RESERVATION_ANY (default), + // RESERVATION_SPECIFIC, or RESERVATION_NONE. See Consuming reserved instances + // for examples. + // + // Possible values: + // "RESERVATION_AFFINITY_TYPE_UNSPECIFIED" - Default type. + // "RESERVATION_NONE" - Do not consume from any allocated capacity. + // "RESERVATION_ANY" - Consume any reservation available. + // "RESERVATION_SPECIFIC" - Must consume from a specific reservation. Must + // specify key value fields for specifying the reservations. + ConsumeReservationType string `json:"consumeReservationType,omitempty"` + // Key: Optional. Corresponds to the label key of a reservation resource. To + // target a RESERVATION_SPECIFIC by name, use + // compute.googleapis.com/reservation-name as the key and specify the name of + // your reservation as its value. + Key string `json:"key,omitempty"` + // Values: Optional. Corresponds to the label values of a reservation resource. + // This must be the full path name of Reservation. + Values []string `json:"values,omitempty"` + // ForceSendFields is a list of field names (e.g. "ConsumeReservationType") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ConsumeReservationType") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1NotebookReservationAffinity) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1NotebookReservationAffinity + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1NotebookRuntime: A runtime is a virtual machine // allocated to a particular user for a particular Notebook file on temporary // basis with lifetime limited to 24 hours. @@ -24455,6 +24611,9 @@ type GoogleCloudAiplatformV1beta1NotebookRuntime struct { // ProxyUri: Output only. The proxy endpoint used to access the // NotebookRuntime. ProxyUri string `json:"proxyUri,omitempty"` + // ReservationAffinity: Output only. Reservation Affinity of the notebook + // runtime. + ReservationAffinity *GoogleCloudAiplatformV1beta1NotebookReservationAffinity `json:"reservationAffinity,omitempty"` // RuntimeState: Output only. The runtime (instance) state of the // NotebookRuntime. // @@ -24573,6 +24732,9 @@ type GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate struct { // user. // "ONE_CLICK" - runtime or template with system defined configurations. NotebookRuntimeType string `json:"notebookRuntimeType,omitempty"` + // ReservationAffinity: Optional. Reservation Affinity of the notebook runtime + // template. + ReservationAffinity *GoogleCloudAiplatformV1beta1NotebookReservationAffinity `json:"reservationAffinity,omitempty"` // ServiceAccount: Deprecated: This field is ignored and the "Vertex AI // Notebook Service Account" // (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is @@ -26316,8 +26478,16 @@ type GoogleCloudAiplatformV1beta1PredictRequestResponseLoggingConfig struct { // underscores). If no table name is given, a new table will be created with // name `request_response_logging` BigqueryDestination *GoogleCloudAiplatformV1beta1BigQueryDestination `json:"bigqueryDestination,omitempty"` + // EnableOtelLogging: This field is used for large models. If true, in addition + // to the original large model logs, logs will be converted in OTel schema + // format, and saved in otel_log column. Default value is false. + EnableOtelLogging bool `json:"enableOtelLogging,omitempty"` // Enabled: If logging is enabled or not. Enabled bool `json:"enabled,omitempty"` + // RequestResponseLoggingSchemaVersion: Output only. The schema version used in + // creating the BigQuery table for the request response logging. The versions + // are "v1" and "v2". The current default version is "v1". + RequestResponseLoggingSchemaVersion string `json:"requestResponseLoggingSchemaVersion,omitempty"` // SamplingRate: Percentage of requests to be logged, expressed as a fraction // in range(0,1]. SamplingRate float64 `json:"samplingRate,omitempty"` @@ -26648,8 +26818,8 @@ type GoogleCloudAiplatformV1beta1ProbeGrpcAction struct { // 65535. Port int64 `json:"port,omitempty"` // Service: Service is the name of the service to place in the gRPC - // HealthCheckRequest (see - // https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is + // HealthCheckRequest. See + // https://github.com/grpc/grpc/blob/master/doc/health-checking.md. If this is // not specified, the default behavior is defined by gRPC. Service string `json:"service,omitempty"` // ForceSendFields is a list of field names (e.g. "Port") to unconditionally @@ -27181,6 +27351,32 @@ func (s GoogleCloudAiplatformV1beta1PublisherModelCallToActionViewRestApi) Marsh return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1PublisherModelConfig: This message contains +// configs of a publisher model. +type GoogleCloudAiplatformV1beta1PublisherModelConfig struct { + // LoggingConfig: The prediction request/response logging config. + LoggingConfig *GoogleCloudAiplatformV1beta1PredictRequestResponseLoggingConfig `json:"loggingConfig,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "LoggingConfig") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "LoggingConfig") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1PublisherModelConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1PublisherModelConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1PublisherModelDocumentation: A named piece of // documentation. type GoogleCloudAiplatformV1beta1PublisherModelDocumentation struct { @@ -28219,6 +28415,57 @@ func (s GoogleCloudAiplatformV1beta1QuestionAnsweringRelevanceSpec) MarshalJSON( return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1RagChunk: A RagChunk includes the content of a +// chunk of a RagFile, and associated metadata. +type GoogleCloudAiplatformV1beta1RagChunk struct { + // PageSpan: If populated, represents where the chunk starts and ends in the + // document. + PageSpan *GoogleCloudAiplatformV1beta1RagChunkPageSpan `json:"pageSpan,omitempty"` + // Text: The content of the chunk. + Text string `json:"text,omitempty"` + // ForceSendFields is a list of field names (e.g. "PageSpan") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "PageSpan") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1RagChunk) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1RagChunk + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1RagChunkPageSpan: Represents where the chunk +// starts and ends in the document. +type GoogleCloudAiplatformV1beta1RagChunkPageSpan struct { + // FirstPage: Page where chunk starts in the document. Inclusive. 1-indexed. + FirstPage int64 `json:"firstPage,omitempty"` + // LastPage: Page where chunk ends in the document. Inclusive. 1-indexed. + LastPage int64 `json:"lastPage,omitempty"` + // ForceSendFields is a list of field names (e.g. "FirstPage") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "FirstPage") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1RagChunkPageSpan) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1RagChunkPageSpan + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1RagContexts: Relevant contexts for one query. type GoogleCloudAiplatformV1beta1RagContexts struct { // Contexts: All its contexts. @@ -28243,6 +28490,8 @@ func (s GoogleCloudAiplatformV1beta1RagContexts) MarshalJSON() ([]byte, error) { // GoogleCloudAiplatformV1beta1RagContextsContext: A context of the query. type GoogleCloudAiplatformV1beta1RagContextsContext struct { + // Chunk: Context of the retrieved chunk. + Chunk *GoogleCloudAiplatformV1beta1RagChunk `json:"chunk,omitempty"` // Distance: The distance between the query dense embedding vector and the // context text vector. Distance float64 `json:"distance,omitempty"` @@ -28265,13 +28514,13 @@ type GoogleCloudAiplatformV1beta1RagContextsContext struct { SparseDistance float64 `json:"sparseDistance,omitempty"` // Text: The text chunk. Text string `json:"text,omitempty"` - // ForceSendFields is a list of field names (e.g. "Distance") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See + // ForceSendFields is a list of field names (e.g. "Chunk") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Distance") to include in API + // NullFields is a list of field names (e.g. "Chunk") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -28512,6 +28761,34 @@ func (s GoogleCloudAiplatformV1beta1RagEmbeddingModelConfigVertexPredictionEndpo return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1RagEngineConfig: Config for RagEngine. +type GoogleCloudAiplatformV1beta1RagEngineConfig struct { + // Name: Identifier. The name of the RagEngineConfig. Format: + // `projects/{project}/locations/{location}/ragEngineConfig` + Name string `json:"name,omitempty"` + // RagManagedDbConfig: The config of the RagManagedDb used by RagEngine. + RagManagedDbConfig *GoogleCloudAiplatformV1beta1RagManagedDbConfig `json:"ragManagedDbConfig,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 GoogleCloudAiplatformV1beta1RagEngineConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1RagEngineConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1RagFile: A RagFile contains user data for // chunking, embedding and indexing. type GoogleCloudAiplatformV1beta1RagFile struct { @@ -28784,6 +29061,47 @@ func (s GoogleCloudAiplatformV1beta1RagFileTransformationConfig) MarshalJSON() ( return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1RagManagedDbConfig: Configuration message for +// RagManagedDb used by RagEngine. +type GoogleCloudAiplatformV1beta1RagManagedDbConfig struct { + // Basic: Sets the RagManagedDb to the Basic tier. + Basic *GoogleCloudAiplatformV1beta1RagManagedDbConfigBasic `json:"basic,omitempty"` + // Enterprise: Sets the RagManagedDb to the Enterprise tier. This is the + // default tier if not explicitly chosen. + Enterprise *GoogleCloudAiplatformV1beta1RagManagedDbConfigEnterprise `json:"enterprise,omitempty"` + // ForceSendFields is a list of field names (e.g. "Basic") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Basic") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1RagManagedDbConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1RagManagedDbConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1RagManagedDbConfigBasic: Basic tier is a +// cost-effective and low compute tier suitable for the following cases: * +// Experimenting with RagManagedDb. * Small data size. * Latency insensitive +// workload. * Only using RAG Engine with external vector DBs. +type GoogleCloudAiplatformV1beta1RagManagedDbConfigBasic struct { +} + +// GoogleCloudAiplatformV1beta1RagManagedDbConfigEnterprise: Enterprise tier +// offers production grade performance along with autoscaling functionality. It +// is suitable for customers with large amounts of data or performance +// sensitive workloads. NOTE: This is the default tier if not explicitly +// chosen. +type GoogleCloudAiplatformV1beta1RagManagedDbConfigEnterprise struct { +} + // GoogleCloudAiplatformV1beta1RagQuery: A query to retrieve relevant contexts. type GoogleCloudAiplatformV1beta1RagQuery struct { // RagRetrievalConfig: Optional. The retrieval config for the query. @@ -28993,8 +29311,8 @@ func (s GoogleCloudAiplatformV1beta1RagRetrievalConfigRanking) MarshalJSON() ([] // GoogleCloudAiplatformV1beta1RagRetrievalConfigRankingLlmRanker: Config for // LlmRanker. type GoogleCloudAiplatformV1beta1RagRetrievalConfigRankingLlmRanker struct { - // ModelName: Optional. The model name used for ranking. Format: - // `gemini-1.5-pro` + // ModelName: Optional. The model name used for ranking. See Supported models + // (https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models). ModelName string `json:"modelName,omitempty"` // ForceSendFields is a list of field names (e.g. "ModelName") to // unconditionally include in API requests. By default, fields with empty or @@ -29747,7 +30065,8 @@ func (s GoogleCloudAiplatformV1beta1ReasoningEngine) MarshalJSON() ([]byte, erro // configurations type GoogleCloudAiplatformV1beta1ReasoningEngineSpec struct { // AgentFramework: Optional. The OSS agent framework used to develop the agent. - // Currently supported values: "langchain", "langgraph", "ag2", "custom". + // Currently supported values: "google-adk", "langchain", "langgraph", "ag2", + // "llama-index", "custom". AgentFramework string `json:"agentFramework,omitempty"` // ClassMethods: Optional. Declarations for object class methods in OpenAPI // specification format. @@ -39275,6 +39594,29 @@ func (s GoogleCloudAiplatformV1beta1SessionEvent) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1SetPublisherModelConfigRequest: Request message +// for EndpointService.SetPublisherModelConfig. +type GoogleCloudAiplatformV1beta1SetPublisherModelConfigRequest struct { + // PublisherModelConfig: Required. The publisher model config. + PublisherModelConfig *GoogleCloudAiplatformV1beta1PublisherModelConfig `json:"publisherModelConfig,omitempty"` + // ForceSendFields is a list of field names (e.g. "PublisherModelConfig") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "PublisherModelConfig") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1SetPublisherModelConfigRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1SetPublisherModelConfigRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1SharePointSources: The SharePointSources to pass // to ImportRagFiles. type GoogleCloudAiplatformV1beta1SharePointSources struct { @@ -39634,15 +39976,18 @@ func (s GoogleCloudAiplatformV1beta1SpeculativeDecodingSpecNgramSpeculation) Mar // GoogleCloudAiplatformV1beta1SpeechConfig: The speech generation config. type GoogleCloudAiplatformV1beta1SpeechConfig struct { + // LanguageCode: Optional. Language code (ISO 639. e.g. en-US) for the speech + // synthesization. + LanguageCode string `json:"languageCode,omitempty"` // VoiceConfig: The configuration for the speaker to use. VoiceConfig *GoogleCloudAiplatformV1beta1VoiceConfig `json:"voiceConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "VoiceConfig") to + // ForceSendFields is a list of field names (e.g. "LanguageCode") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "VoiceConfig") to include in API + // NullFields is a list of field names (e.g. "LanguageCode") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -44217,7 +44562,8 @@ func (s GoogleCloudAiplatformV1beta1TuningDataStats) MarshalJSON() ([]byte, erro // GoogleCloudAiplatformV1beta1TuningJob: Represents a TuningJob that runs with // Google owned models. type GoogleCloudAiplatformV1beta1TuningJob struct { - // BaseModel: The base model that is being tuned, e.g., "gemini-1.0-pro-002". . + // BaseModel: The base model that is being tuned. See Supported models + // (https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models). BaseModel string `json:"baseModel,omitempty"` // CreateTime: Output only. Time when the TuningJob was created. CreateTime string `json:"createTime,omitempty"` @@ -46434,25 +46780,26 @@ func (s GoogleTypeMoney) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -type DatasetsCreateCall struct { - s *Service - googlecloudaiplatformv1beta1dataset *GoogleCloudAiplatformV1beta1Dataset - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type BatchPredictionJobsCreateCall struct { + s *Service + googlecloudaiplatformv1beta1batchpredictionjob *GoogleCloudAiplatformV1beta1BatchPredictionJob + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a Dataset. -func (r *DatasetsService) Create(googlecloudaiplatformv1beta1dataset *GoogleCloudAiplatformV1beta1Dataset) *DatasetsCreateCall { - c := &DatasetsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.googlecloudaiplatformv1beta1dataset = googlecloudaiplatformv1beta1dataset +// Create: Creates a BatchPredictionJob. A BatchPredictionJob once created will +// right away be attempted to start. +func (r *BatchPredictionJobsService) Create(googlecloudaiplatformv1beta1batchpredictionjob *GoogleCloudAiplatformV1beta1BatchPredictionJob) *BatchPredictionJobsCreateCall { + c := &BatchPredictionJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.googlecloudaiplatformv1beta1batchpredictionjob = googlecloudaiplatformv1beta1batchpredictionjob return c } // Parent sets the optional parameter "parent": Required. The resource name of -// the Location to create the Dataset in. Format: +// the Location to create the BatchPredictionJob in. Format: // `projects/{project}/locations/{location}` -func (c *DatasetsCreateCall) Parent(parent string) *DatasetsCreateCall { +func (c *BatchPredictionJobsCreateCall) Parent(parent string) *BatchPredictionJobsCreateCall { c.urlParams_.Set("parent", parent) return c } @@ -46460,151 +46807,52 @@ func (c *DatasetsCreateCall) Parent(parent string) *DatasetsCreateCall { // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *DatasetsCreateCall) Fields(s ...googleapi.Field) *DatasetsCreateCall { +func (c *BatchPredictionJobsCreateCall) Fields(s ...googleapi.Field) *BatchPredictionJobsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *DatasetsCreateCall) Context(ctx context.Context) *DatasetsCreateCall { +func (c *BatchPredictionJobsCreateCall) Context(ctx context.Context) *BatchPredictionJobsCreateCall { 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 *DatasetsCreateCall) Header() http.Header { +func (c *BatchPredictionJobsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *DatasetsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *BatchPredictionJobsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1beta1dataset) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1beta1batchpredictionjob) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/datasets") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/batchPredictionJobs") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.datasets.create", "request", internallog.HTTPRequest(req, body.Bytes())) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "aiplatform.datasets.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 *DatasetsCreateCall) 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 - b, err := gensupport.DecodeResponseBytes(target, res) - if err != nil { - return nil, err - } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.datasets.create", "response", internallog.HTTPResponse(res, b)) - return ret, nil -} - -type DatasetsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Delete: Deletes a Dataset. -// -// - name: The resource name of the Dataset to delete. Format: -// `projects/{project}/locations/{location}/datasets/{dataset}`. -func (r *DatasetsService) Delete(name string) *DatasetsDeleteCall { - c := &DatasetsDeleteCall{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 *DatasetsDeleteCall) Fields(s ...googleapi.Field) *DatasetsDeleteCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *DatasetsDeleteCall) Context(ctx context.Context) *DatasetsDeleteCall { - 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 *DatasetsDeleteCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *DatasetsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, nil) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.datasets.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.batchPredictionJobs.create", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.datasets.delete" call. +// Do executes the "aiplatform.batchPredictionJobs.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 +// *GoogleCloudAiplatformV1beta1BatchPredictionJob.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 *DatasetsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *BatchPredictionJobsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1BatchPredictionJob, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -46623,7 +46871,7 @@ func (c *DatasetsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunnin if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1beta1BatchPredictionJob{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -46634,11 +46882,11 @@ func (c *DatasetsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunnin if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.datasets.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.batchPredictionJobs.create", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type DatasetsGetCall struct { +type BatchPredictionJobsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -46647,26 +46895,21 @@ type DatasetsGetCall struct { header_ http.Header } -// Get: Gets a Dataset. +// Get: Gets a BatchPredictionJob // -// - name: The name of the Dataset resource. -func (r *DatasetsService) Get(name string) *DatasetsGetCall { - c := &DatasetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the BatchPredictionJob resource. Format: +// `projects/{project}/locations/{location}/batchPredictionJobs/{batch_predict +// ion_job}`. +func (r *BatchPredictionJobsService) Get(name string) *BatchPredictionJobsGetCall { + c := &BatchPredictionJobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// ReadMask sets the optional parameter "readMask": Mask specifying which -// fields to read. -func (c *DatasetsGetCall) ReadMask(readMask string) *DatasetsGetCall { - c.urlParams_.Set("readMask", readMask) - 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 *DatasetsGetCall) Fields(s ...googleapi.Field) *DatasetsGetCall { +func (c *BatchPredictionJobsGetCall) Fields(s ...googleapi.Field) *BatchPredictionJobsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -46674,27 +46917,27 @@ func (c *DatasetsGetCall) Fields(s ...googleapi.Field) *DatasetsGetCall { // 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 *DatasetsGetCall) IfNoneMatch(entityTag string) *DatasetsGetCall { +func (c *BatchPredictionJobsGetCall) IfNoneMatch(entityTag string) *BatchPredictionJobsGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *DatasetsGetCall) Context(ctx context.Context) *DatasetsGetCall { +func (c *BatchPredictionJobsGetCall) Context(ctx context.Context) *BatchPredictionJobsGetCall { 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 *DatasetsGetCall) Header() http.Header { +func (c *BatchPredictionJobsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *DatasetsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *BatchPredictionJobsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -46711,17 +46954,17 @@ func (c *DatasetsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.datasets.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.batchPredictionJobs.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.datasets.get" call. +// Do executes the "aiplatform.batchPredictionJobs.get" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudAiplatformV1beta1Dataset.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use +// *GoogleCloudAiplatformV1beta1BatchPredictionJob.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 *DatasetsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Dataset, error) { +func (c *BatchPredictionJobsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1BatchPredictionJob, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -46740,7 +46983,7 @@ func (c *DatasetsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatfo if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1Dataset{ + ret := &GoogleCloudAiplatformV1beta1BatchPredictionJob{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -46751,11 +46994,11 @@ func (c *DatasetsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatfo if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.datasets.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.batchPredictionJobs.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type DatasetsListCall struct { +type BatchPredictionJobsListCall struct { s *Service urlParams_ gensupport.URLParams ifNoneMatch_ string @@ -46763,57 +47006,55 @@ type DatasetsListCall struct { header_ http.Header } -// List: Lists Datasets in a Location. -func (r *DatasetsService) List() *DatasetsListCall { - c := &DatasetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// List: Lists BatchPredictionJobs in a Location. +func (r *BatchPredictionJobsService) List() *BatchPredictionJobsListCall { + c := &BatchPredictionJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} return c } -// Filter sets the optional parameter "filter": An expression for filtering the -// results of the request. For field names both snake_case and camelCase are -// supported. * `display_name`: supports = and != * `metadata_schema_uri`: -// supports = and != * `labels` supports general map functions that is: * -// `labels.key=value` - key:value equality * `labels.key:* or labels:key - key -// existence * A key including a space must be quoted. `labels."a key". Some -// examples: * `displayName="myDisplayName" * `labels.myKey="myValue" -func (c *DatasetsListCall) Filter(filter string) *DatasetsListCall { +// Filter sets the optional parameter "filter": The standard list filter. +// Supported fields: * `display_name` supports `=`, `!=` comparisons, and `:` +// wildcard. * `model_display_name` supports `=`, `!=` comparisons. * `state` +// supports `=`, `!=` comparisons. * `create_time` supports `=`, `!=`,`<`, +// `<=`,`>`, `>=` comparisons. `create_time` must be in RFC 3339 format. * +// `labels` supports general map functions that is: `labels.key=value` - +// key:value equality `labels.key:* - key existence Some examples of using the +// filter are: * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*" * +// `state!="JOB_STATE_FAILED" OR display_name="my_job" * `NOT +// display_name="my_job" * `create_time>"2021-05-18T00:00:00Z" * +// `labels.keyA=valueA` * `labels.keyB:*` +func (c *BatchPredictionJobsListCall) Filter(filter string) *BatchPredictionJobsListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": A comma-separated list of -// fields to order by, sorted in ascending order. Use "desc" after a field name -// for descending. Supported fields: * `display_name` * `create_time` * -// `update_time` -func (c *DatasetsListCall) OrderBy(orderBy string) *DatasetsListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - // PageSize sets the optional parameter "pageSize": The standard list page // size. -func (c *DatasetsListCall) PageSize(pageSize int64) *DatasetsListCall { +func (c *BatchPredictionJobsListCall) PageSize(pageSize int64) *BatchPredictionJobsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list page -// token. -func (c *DatasetsListCall) PageToken(pageToken string) *DatasetsListCall { +// token. Typically obtained via +// ListBatchPredictionJobsResponse.next_page_token of the previous +// JobService.ListBatchPredictionJobs call. +func (c *BatchPredictionJobsListCall) PageToken(pageToken string) *BatchPredictionJobsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// Parent sets the optional parameter "parent": Required. The name of the -// Dataset's parent resource. Format: `projects/{project}/locations/{location}` -func (c *DatasetsListCall) Parent(parent string) *DatasetsListCall { +// Parent sets the optional parameter "parent": Required. The resource name of +// the Location to list the BatchPredictionJobs from. Format: +// `projects/{project}/locations/{location}` +func (c *BatchPredictionJobsListCall) Parent(parent string) *BatchPredictionJobsListCall { c.urlParams_.Set("parent", parent) return c } // ReadMask sets the optional parameter "readMask": Mask specifying which // fields to read. -func (c *DatasetsListCall) ReadMask(readMask string) *DatasetsListCall { +func (c *BatchPredictionJobsListCall) ReadMask(readMask string) *BatchPredictionJobsListCall { c.urlParams_.Set("readMask", readMask) return c } @@ -46821,7 +47062,7 @@ func (c *DatasetsListCall) ReadMask(readMask string) *DatasetsListCall { // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *DatasetsListCall) Fields(s ...googleapi.Field) *DatasetsListCall { +func (c *BatchPredictionJobsListCall) Fields(s ...googleapi.Field) *BatchPredictionJobsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -46829,51 +47070,51 @@ func (c *DatasetsListCall) Fields(s ...googleapi.Field) *DatasetsListCall { // 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 *DatasetsListCall) IfNoneMatch(entityTag string) *DatasetsListCall { +func (c *BatchPredictionJobsListCall) IfNoneMatch(entityTag string) *BatchPredictionJobsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *DatasetsListCall) Context(ctx context.Context) *DatasetsListCall { +func (c *BatchPredictionJobsListCall) Context(ctx context.Context) *BatchPredictionJobsListCall { 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 *DatasetsListCall) Header() http.Header { +func (c *BatchPredictionJobsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *DatasetsListCall) doRequest(alt string) (*http.Response, error) { +func (c *BatchPredictionJobsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/datasets") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/batchPredictionJobs") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.datasets.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.batchPredictionJobs.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.datasets.list" call. +// Do executes the "aiplatform.batchPredictionJobs.list" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudAiplatformV1beta1ListDatasetsResponse.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 *DatasetsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListDatasetsResponse, error) { +// *GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse.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 *BatchPredictionJobsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -46892,7 +47133,7 @@ func (c *DatasetsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatf if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ListDatasetsResponse{ + ret := &GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -46903,14 +47144,14 @@ func (c *DatasetsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatf if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.datasets.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.batchPredictionJobs.list", "response", internallog.HTTPResponse(res, b)) 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 *DatasetsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListDatasetsResponse) error) error { +func (c *BatchPredictionJobsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -46928,59 +47169,53 @@ func (c *DatasetsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatf } } -type DatasetsPatchCall struct { +type DatasetsCreateCall struct { s *Service - name string googlecloudaiplatformv1beta1dataset *GoogleCloudAiplatformV1beta1Dataset urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// Patch: Updates a Dataset. -// -// - name: Output only. Identifier. The resource name of the Dataset. Format: -// `projects/{project}/locations/{location}/datasets/{dataset}`. -func (r *DatasetsService) Patch(name string, googlecloudaiplatformv1beta1dataset *GoogleCloudAiplatformV1beta1Dataset) *DatasetsPatchCall { - c := &DatasetsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// Create: Creates a Dataset. +func (r *DatasetsService) Create(googlecloudaiplatformv1beta1dataset *GoogleCloudAiplatformV1beta1Dataset) *DatasetsCreateCall { + c := &DatasetsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.googlecloudaiplatformv1beta1dataset = googlecloudaiplatformv1beta1dataset return c } -// UpdateMask sets the optional parameter "updateMask": Required. The update -// mask applies to the resource. For the `FieldMask` definition, see -// google.protobuf.FieldMask. Updatable fields: * `display_name` * -// `description` * `labels` -func (c *DatasetsPatchCall) UpdateMask(updateMask string) *DatasetsPatchCall { - c.urlParams_.Set("updateMask", updateMask) +// Parent sets the optional parameter "parent": Required. The resource name of +// the Location to create the Dataset in. Format: +// `projects/{project}/locations/{location}` +func (c *DatasetsCreateCall) Parent(parent string) *DatasetsCreateCall { + c.urlParams_.Set("parent", parent) 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 *DatasetsPatchCall) Fields(s ...googleapi.Field) *DatasetsPatchCall { +func (c *DatasetsCreateCall) Fields(s ...googleapi.Field) *DatasetsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *DatasetsPatchCall) Context(ctx context.Context) *DatasetsPatchCall { +func (c *DatasetsCreateCall) Context(ctx context.Context) *DatasetsCreateCall { 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 *DatasetsPatchCall) Header() http.Header { +func (c *DatasetsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *DatasetsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *DatasetsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1beta1dataset) if err != nil { @@ -46988,27 +47223,24 @@ func (c *DatasetsPatchCall) doRequest(alt string) (*http.Response, error) { } 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/datasets") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.datasets.patch", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.datasets.create", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.datasets.patch" call. +// Do executes the "aiplatform.datasets.create" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudAiplatformV1beta1Dataset.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use +// *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 *DatasetsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Dataset, error) { +func (c *DatasetsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -47027,7 +47259,7 @@ func (c *DatasetsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplat if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1Dataset{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -47038,34 +47270,537 @@ func (c *DatasetsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplat if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.datasets.patch", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.datasets.create", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type DatasetsDatasetVersionsCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1beta1datasetversion *GoogleCloudAiplatformV1beta1DatasetVersion - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type DatasetsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Create a version from a Dataset. +// Delete: Deletes a Dataset. // -// - parent: The name of the Dataset resource. Format: +// - name: The resource name of the Dataset to delete. Format: // `projects/{project}/locations/{location}/datasets/{dataset}`. -func (r *DatasetsDatasetVersionsService) Create(parent string, googlecloudaiplatformv1beta1datasetversion *GoogleCloudAiplatformV1beta1DatasetVersion) *DatasetsDatasetVersionsCreateCall { - c := &DatasetsDatasetVersionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1beta1datasetversion = googlecloudaiplatformv1beta1datasetversion +func (r *DatasetsService) Delete(name string) *DatasetsDeleteCall { + c := &DatasetsDeleteCall{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 *DatasetsDatasetVersionsCreateCall) Fields(s ...googleapi.Field) *DatasetsDatasetVersionsCreateCall { +func (c *DatasetsDeleteCall) Fields(s ...googleapi.Field) *DatasetsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *DatasetsDeleteCall) Context(ctx context.Context) *DatasetsDeleteCall { + 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 *DatasetsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *DatasetsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.datasets.delete", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.datasets.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 *DatasetsDeleteCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.datasets.delete", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type DatasetsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a Dataset. +// +// - name: The name of the Dataset resource. +func (r *DatasetsService) Get(name string) *DatasetsGetCall { + c := &DatasetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// ReadMask sets the optional parameter "readMask": Mask specifying which +// fields to read. +func (c *DatasetsGetCall) ReadMask(readMask string) *DatasetsGetCall { + c.urlParams_.Set("readMask", readMask) + 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 *DatasetsGetCall) Fields(s ...googleapi.Field) *DatasetsGetCall { + 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 *DatasetsGetCall) IfNoneMatch(entityTag string) *DatasetsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *DatasetsGetCall) Context(ctx context.Context) *DatasetsGetCall { + 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 *DatasetsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *DatasetsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.datasets.get", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.datasets.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudAiplatformV1beta1Dataset.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 *DatasetsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Dataset, 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 := &GoogleCloudAiplatformV1beta1Dataset{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.datasets.get", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type DatasetsListCall struct { + s *Service + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists Datasets in a Location. +func (r *DatasetsService) List() *DatasetsListCall { + c := &DatasetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + return c +} + +// Filter sets the optional parameter "filter": An expression for filtering the +// results of the request. For field names both snake_case and camelCase are +// supported. * `display_name`: supports = and != * `metadata_schema_uri`: +// supports = and != * `labels` supports general map functions that is: * +// `labels.key=value` - key:value equality * `labels.key:* or labels:key - key +// existence * A key including a space must be quoted. `labels."a key". Some +// examples: * `displayName="myDisplayName" * `labels.myKey="myValue" +func (c *DatasetsListCall) Filter(filter string) *DatasetsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": A comma-separated list of +// fields to order by, sorted in ascending order. Use "desc" after a field name +// for descending. Supported fields: * `display_name` * `create_time` * +// `update_time` +func (c *DatasetsListCall) OrderBy(orderBy string) *DatasetsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list page +// size. +func (c *DatasetsListCall) PageSize(pageSize int64) *DatasetsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list page +// token. +func (c *DatasetsListCall) PageToken(pageToken string) *DatasetsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Parent sets the optional parameter "parent": Required. The name of the +// Dataset's parent resource. Format: `projects/{project}/locations/{location}` +func (c *DatasetsListCall) Parent(parent string) *DatasetsListCall { + c.urlParams_.Set("parent", parent) + return c +} + +// ReadMask sets the optional parameter "readMask": Mask specifying which +// fields to read. +func (c *DatasetsListCall) ReadMask(readMask string) *DatasetsListCall { + c.urlParams_.Set("readMask", readMask) + 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 *DatasetsListCall) Fields(s ...googleapi.Field) *DatasetsListCall { + 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 *DatasetsListCall) IfNoneMatch(entityTag string) *DatasetsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *DatasetsListCall) Context(ctx context.Context) *DatasetsListCall { + 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 *DatasetsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *DatasetsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/datasets") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.datasets.list", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.datasets.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudAiplatformV1beta1ListDatasetsResponse.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 *DatasetsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListDatasetsResponse, 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 := &GoogleCloudAiplatformV1beta1ListDatasetsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.datasets.list", "response", internallog.HTTPResponse(res, b)) + 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 *DatasetsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListDatasetsResponse) 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 DatasetsPatchCall struct { + s *Service + name string + googlecloudaiplatformv1beta1dataset *GoogleCloudAiplatformV1beta1Dataset + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates a Dataset. +// +// - name: Output only. Identifier. The resource name of the Dataset. Format: +// `projects/{project}/locations/{location}/datasets/{dataset}`. +func (r *DatasetsService) Patch(name string, googlecloudaiplatformv1beta1dataset *GoogleCloudAiplatformV1beta1Dataset) *DatasetsPatchCall { + c := &DatasetsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudaiplatformv1beta1dataset = googlecloudaiplatformv1beta1dataset + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. The update +// mask applies to the resource. For the `FieldMask` definition, see +// google.protobuf.FieldMask. Updatable fields: * `display_name` * +// `description` * `labels` +func (c *DatasetsPatchCall) UpdateMask(updateMask string) *DatasetsPatchCall { + 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 *DatasetsPatchCall) Fields(s ...googleapi.Field) *DatasetsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *DatasetsPatchCall) Context(ctx context.Context) *DatasetsPatchCall { + 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 *DatasetsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *DatasetsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1beta1dataset) + if err != nil { + return nil, err + } + 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("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.datasets.patch", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.datasets.patch" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudAiplatformV1beta1Dataset.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 *DatasetsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Dataset, 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 := &GoogleCloudAiplatformV1beta1Dataset{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.datasets.patch", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type DatasetsDatasetVersionsCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1datasetversion *GoogleCloudAiplatformV1beta1DatasetVersion + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Create a version from a Dataset. +// +// - parent: The name of the Dataset resource. Format: +// `projects/{project}/locations/{location}/datasets/{dataset}`. +func (r *DatasetsDatasetVersionsService) Create(parent string, googlecloudaiplatformv1beta1datasetversion *GoogleCloudAiplatformV1beta1DatasetVersion) *DatasetsDatasetVersionsCreateCall { + c := &DatasetsDatasetVersionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1datasetversion = googlecloudaiplatformv1beta1datasetversion + 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 *DatasetsDatasetVersionsCreateCall) Fields(s ...googleapi.Field) *DatasetsDatasetVersionsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -48292,6 +49027,111 @@ func (c *EndpointsStreamGenerateContentCall) Do(opts ...googleapi.CallOption) (* return ret, nil } +type EndpointsChatCompletionsCall 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 *EndpointsChatService) Completions(endpoint string, googleapihttpbody *GoogleApiHttpBody) *EndpointsChatCompletionsCall { + c := &EndpointsChatCompletionsCall{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 *EndpointsChatCompletionsCall) Fields(s ...googleapi.Field) *EndpointsChatCompletionsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *EndpointsChatCompletionsCall) Context(ctx context.Context) *EndpointsChatCompletionsCall { + 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 *EndpointsChatCompletionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *EndpointsChatCompletionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googleapihttpbody) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+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, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.endpoints.chat.completions", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.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 *EndpointsChatCompletionsCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.endpoints.chat.completions", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type MediaUploadCall struct { s *Service parent string @@ -49423,6 +50263,117 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleClou return ret, nil } +type ProjectsLocationsGetRagEngineConfigCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetRagEngineConfig: Gets a RagEngineConfig. +// +// - name: The name of the RagEngineConfig resource. Format: +// `projects/{project}/locations/{location}/ragEngineConfig`. +func (r *ProjectsLocationsService) GetRagEngineConfig(name string) *ProjectsLocationsGetRagEngineConfigCall { + c := &ProjectsLocationsGetRagEngineConfigCall{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 *ProjectsLocationsGetRagEngineConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetRagEngineConfigCall { + 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 *ProjectsLocationsGetRagEngineConfigCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetRagEngineConfigCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsGetRagEngineConfigCall) Context(ctx context.Context) *ProjectsLocationsGetRagEngineConfigCall { + 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 *ProjectsLocationsGetRagEngineConfigCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGetRagEngineConfigCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.getRagEngineConfig", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.getRagEngineConfig" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudAiplatformV1beta1RagEngineConfig.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 *ProjectsLocationsGetRagEngineConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1RagEngineConfig, 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 := &GoogleCloudAiplatformV1beta1RagEngineConfig{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.getRagEngineConfig", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type ProjectsLocationsListCall struct { s *Service name string @@ -49692,6 +50643,111 @@ func (c *ProjectsLocationsRetrieveContextsCall) Do(opts ...googleapi.CallOption) return ret, nil } +type ProjectsLocationsUpdateRagEngineConfigCall struct { + s *Service + name string + googlecloudaiplatformv1beta1ragengineconfig *GoogleCloudAiplatformV1beta1RagEngineConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// UpdateRagEngineConfig: Updates a RagEngineConfig. +// +// - name: Identifier. The name of the RagEngineConfig. Format: +// `projects/{project}/locations/{location}/ragEngineConfig`. +func (r *ProjectsLocationsService) UpdateRagEngineConfig(name string, googlecloudaiplatformv1beta1ragengineconfig *GoogleCloudAiplatformV1beta1RagEngineConfig) *ProjectsLocationsUpdateRagEngineConfigCall { + c := &ProjectsLocationsUpdateRagEngineConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudaiplatformv1beta1ragengineconfig = googlecloudaiplatformv1beta1ragengineconfig + 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 *ProjectsLocationsUpdateRagEngineConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsUpdateRagEngineConfigCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsUpdateRagEngineConfigCall) Context(ctx context.Context) *ProjectsLocationsUpdateRagEngineConfigCall { + 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 *ProjectsLocationsUpdateRagEngineConfigCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsUpdateRagEngineConfigCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1beta1ragengineconfig) + if err != nil { + return nil, err + } + 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("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.updateRagEngineConfig", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.updateRagEngineConfig" 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 *ProjectsLocationsUpdateRagEngineConfigCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.updateRagEngineConfig", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type ProjectsLocationsAgentsOperationsCancelCall struct { s *Service name string @@ -65945,8 +67001,7 @@ func (c *ProjectsLocationsExampleStoresCreateCall) ExampleStoreDisplayName(examp // ExampleStoreExampleStoreConfigVertexEmbeddingModel sets the optional // parameter "exampleStore.exampleStoreConfig.vertexEmbeddingModel": Required. // The embedding model to be used for vector embedding. Immutable. Supported -// models: * "textembedding-gecko@003" * "text-embedding-004" * -// "text-embedding-005" * "text-multilingual-embedding-002" +// models: * "text-embedding-005" * "text-multilingual-embedding-002" func (c *ProjectsLocationsExampleStoresCreateCall) ExampleStoreExampleStoreConfigVertexEmbeddingModel(exampleStoreExampleStoreConfigVertexEmbeddingModel string) *ProjectsLocationsExampleStoresCreateCall { c.urlParams_.Set("exampleStore.exampleStoreConfig.vertexEmbeddingModel", exampleStoreExampleStoreConfigVertexEmbeddingModel) return c @@ -110668,6 +111723,118 @@ func (c *ProjectsLocationsPublishersModelsFetchPredictOperationCall) Do(opts ... return ret, nil } +type ProjectsLocationsPublishersModelsFetchPublisherModelConfigCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// FetchPublisherModelConfig: Fetches the configs of publisher models. +// +// - name: The name of the publisher model, in the format of +// `projects/{project}/locations/{location}/publishers/{publisher}/models/{mod +// el}`. +func (r *ProjectsLocationsPublishersModelsService) FetchPublisherModelConfig(name string) *ProjectsLocationsPublishersModelsFetchPublisherModelConfigCall { + c := &ProjectsLocationsPublishersModelsFetchPublisherModelConfigCall{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 *ProjectsLocationsPublishersModelsFetchPublisherModelConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsPublishersModelsFetchPublisherModelConfigCall { + 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 *ProjectsLocationsPublishersModelsFetchPublisherModelConfigCall) IfNoneMatch(entityTag string) *ProjectsLocationsPublishersModelsFetchPublisherModelConfigCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsPublishersModelsFetchPublisherModelConfigCall) Context(ctx context.Context) *ProjectsLocationsPublishersModelsFetchPublisherModelConfigCall { + 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 *ProjectsLocationsPublishersModelsFetchPublisherModelConfigCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsPublishersModelsFetchPublisherModelConfigCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:fetchPublisherModelConfig") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.publishers.models.fetchPublisherModelConfig", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.publishers.models.fetchPublisherModelConfig" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudAiplatformV1beta1PublisherModelConfig.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 *ProjectsLocationsPublishersModelsFetchPublisherModelConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1PublisherModelConfig, 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 := &GoogleCloudAiplatformV1beta1PublisherModelConfig{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.publishers.models.fetchPublisherModelConfig", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type ProjectsLocationsPublishersModelsGenerateContentCall struct { s *Service model string @@ -111321,273 +112488,60 @@ func (c *ProjectsLocationsPublishersModelsServerStreamingPredictCall) Do(opts .. return ret, nil } -type ProjectsLocationsPublishersModelsStreamGenerateContentCall struct { - s *Service - model string - googlecloudaiplatformv1beta1generatecontentrequest *GoogleCloudAiplatformV1beta1GenerateContentRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// StreamGenerateContent: Generate content with multimodal inputs with -// streaming support. -// -// - model: The fully qualified name of the publisher model or tuned model -// endpoint to use. Publisher model format: -// `projects/{project}/locations/{location}/publishers/*/models/*` Tuned -// model endpoint format: -// `projects/{project}/locations/{location}/endpoints/{endpoint}`. -func (r *ProjectsLocationsPublishersModelsService) StreamGenerateContent(model string, googlecloudaiplatformv1beta1generatecontentrequest *GoogleCloudAiplatformV1beta1GenerateContentRequest) *ProjectsLocationsPublishersModelsStreamGenerateContentCall { - c := &ProjectsLocationsPublishersModelsStreamGenerateContentCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.model = model - c.googlecloudaiplatformv1beta1generatecontentrequest = googlecloudaiplatformv1beta1generatecontentrequest - 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 *ProjectsLocationsPublishersModelsStreamGenerateContentCall) Fields(s ...googleapi.Field) *ProjectsLocationsPublishersModelsStreamGenerateContentCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsPublishersModelsStreamGenerateContentCall) Context(ctx context.Context) *ProjectsLocationsPublishersModelsStreamGenerateContentCall { - 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 *ProjectsLocationsPublishersModelsStreamGenerateContentCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsPublishersModelsStreamGenerateContentCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1beta1generatecontentrequest) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+model}:streamGenerateContent") - 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{ - "model": c.model, - }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.publishers.models.streamGenerateContent", "request", internallog.HTTPRequest(req, body.Bytes())) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "aiplatform.projects.locations.publishers.models.streamGenerateContent" call. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudAiplatformV1beta1GenerateContentResponse.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 *ProjectsLocationsPublishersModelsStreamGenerateContentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1GenerateContentResponse, 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 := &GoogleCloudAiplatformV1beta1GenerateContentResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - b, err := gensupport.DecodeResponseBytes(target, res) - if err != nil { - return nil, err - } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.publishers.models.streamGenerateContent", "response", internallog.HTTPResponse(res, b)) - return ret, nil -} - -type ProjectsLocationsPublishersModelsStreamRawPredictCall struct { - s *Service - endpoint string - googlecloudaiplatformv1beta1streamrawpredictrequest *GoogleCloudAiplatformV1beta1StreamRawPredictRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// StreamRawPredict: Perform a streaming online prediction with an arbitrary -// HTTP payload. -// -// - endpoint: The name of the Endpoint requested to serve the prediction. -// Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`. -func (r *ProjectsLocationsPublishersModelsService) StreamRawPredict(endpoint string, googlecloudaiplatformv1beta1streamrawpredictrequest *GoogleCloudAiplatformV1beta1StreamRawPredictRequest) *ProjectsLocationsPublishersModelsStreamRawPredictCall { - c := &ProjectsLocationsPublishersModelsStreamRawPredictCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.endpoint = endpoint - c.googlecloudaiplatformv1beta1streamrawpredictrequest = googlecloudaiplatformv1beta1streamrawpredictrequest - 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 *ProjectsLocationsPublishersModelsStreamRawPredictCall) Fields(s ...googleapi.Field) *ProjectsLocationsPublishersModelsStreamRawPredictCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsPublishersModelsStreamRawPredictCall) Context(ctx context.Context) *ProjectsLocationsPublishersModelsStreamRawPredictCall { - 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 *ProjectsLocationsPublishersModelsStreamRawPredictCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsPublishersModelsStreamRawPredictCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1beta1streamrawpredictrequest) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+endpoint}:streamRawPredict") - 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, - }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.publishers.models.streamRawPredict", "request", internallog.HTTPRequest(req, body.Bytes())) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "aiplatform.projects.locations.publishers.models.streamRawPredict" 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 *ProjectsLocationsPublishersModelsStreamRawPredictCall) 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 - b, err := gensupport.DecodeResponseBytes(target, res) - if err != nil { - return nil, err - } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.publishers.models.streamRawPredict", "response", internallog.HTTPResponse(res, b)) - return ret, nil -} - -type ProjectsLocationsRagCorporaCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1beta1ragcorpus *GoogleCloudAiplatformV1beta1RagCorpus - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsPublishersModelsSetPublisherModelConfigCall struct { + s *Service + name string + googlecloudaiplatformv1beta1setpublishermodelconfigrequest *GoogleCloudAiplatformV1beta1SetPublisherModelConfigRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a RagCorpus. +// SetPublisherModelConfig: Sets (creates or updates) configs of publisher +// models. For example, sets the request/response logging config. // -// - parent: The resource name of the Location to create the RagCorpus in. -// Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsRagCorporaService) Create(parent string, googlecloudaiplatformv1beta1ragcorpus *GoogleCloudAiplatformV1beta1RagCorpus) *ProjectsLocationsRagCorporaCreateCall { - c := &ProjectsLocationsRagCorporaCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1beta1ragcorpus = googlecloudaiplatformv1beta1ragcorpus +// - name: The name of the publisher model, in the format of +// `projects/{project}/locations/{location}/publishers/{publisher}/models/{mod +// el}`. +func (r *ProjectsLocationsPublishersModelsService) SetPublisherModelConfig(name string, googlecloudaiplatformv1beta1setpublishermodelconfigrequest *GoogleCloudAiplatformV1beta1SetPublisherModelConfigRequest) *ProjectsLocationsPublishersModelsSetPublisherModelConfigCall { + c := &ProjectsLocationsPublishersModelsSetPublisherModelConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudaiplatformv1beta1setpublishermodelconfigrequest = googlecloudaiplatformv1beta1setpublishermodelconfigrequest 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 *ProjectsLocationsRagCorporaCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsRagCorporaCreateCall { +func (c *ProjectsLocationsPublishersModelsSetPublisherModelConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsPublishersModelsSetPublisherModelConfigCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsRagCorporaCreateCall) Context(ctx context.Context) *ProjectsLocationsRagCorporaCreateCall { +func (c *ProjectsLocationsPublishersModelsSetPublisherModelConfigCall) Context(ctx context.Context) *ProjectsLocationsPublishersModelsSetPublisherModelConfigCall { 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 *ProjectsLocationsRagCorporaCreateCall) Header() http.Header { +func (c *ProjectsLocationsPublishersModelsSetPublisherModelConfigCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsRagCorporaCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsPublishersModelsSetPublisherModelConfigCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1beta1ragcorpus) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1beta1setpublishermodelconfigrequest) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/ragCorpora") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:setPublisherModelConfig") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -111595,19 +112549,339 @@ func (c *ProjectsLocationsRagCorporaCreateCall) doRequest(alt string) (*http.Res } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.create", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.publishers.models.setPublisherModelConfig", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.ragCorpora.create" call. +// Do executes the "aiplatform.projects.locations.publishers.models.setPublisherModelConfig" 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 *ProjectsLocationsRagCorporaCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsPublishersModelsSetPublisherModelConfigCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.publishers.models.setPublisherModelConfig", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsPublishersModelsStreamGenerateContentCall struct { + s *Service + model string + googlecloudaiplatformv1beta1generatecontentrequest *GoogleCloudAiplatformV1beta1GenerateContentRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// StreamGenerateContent: Generate content with multimodal inputs with +// streaming support. +// +// - model: The fully qualified name of the publisher model or tuned model +// endpoint to use. Publisher model format: +// `projects/{project}/locations/{location}/publishers/*/models/*` Tuned +// model endpoint format: +// `projects/{project}/locations/{location}/endpoints/{endpoint}`. +func (r *ProjectsLocationsPublishersModelsService) StreamGenerateContent(model string, googlecloudaiplatformv1beta1generatecontentrequest *GoogleCloudAiplatformV1beta1GenerateContentRequest) *ProjectsLocationsPublishersModelsStreamGenerateContentCall { + c := &ProjectsLocationsPublishersModelsStreamGenerateContentCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.model = model + c.googlecloudaiplatformv1beta1generatecontentrequest = googlecloudaiplatformv1beta1generatecontentrequest + 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 *ProjectsLocationsPublishersModelsStreamGenerateContentCall) Fields(s ...googleapi.Field) *ProjectsLocationsPublishersModelsStreamGenerateContentCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsPublishersModelsStreamGenerateContentCall) Context(ctx context.Context) *ProjectsLocationsPublishersModelsStreamGenerateContentCall { + 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 *ProjectsLocationsPublishersModelsStreamGenerateContentCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsPublishersModelsStreamGenerateContentCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1beta1generatecontentrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+model}:streamGenerateContent") + 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{ + "model": c.model, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.publishers.models.streamGenerateContent", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.publishers.models.streamGenerateContent" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudAiplatformV1beta1GenerateContentResponse.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 *ProjectsLocationsPublishersModelsStreamGenerateContentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1GenerateContentResponse, 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 := &GoogleCloudAiplatformV1beta1GenerateContentResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.publishers.models.streamGenerateContent", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsPublishersModelsStreamRawPredictCall struct { + s *Service + endpoint string + googlecloudaiplatformv1beta1streamrawpredictrequest *GoogleCloudAiplatformV1beta1StreamRawPredictRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// StreamRawPredict: Perform a streaming online prediction with an arbitrary +// HTTP payload. +// +// - endpoint: The name of the Endpoint requested to serve the prediction. +// Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`. +func (r *ProjectsLocationsPublishersModelsService) StreamRawPredict(endpoint string, googlecloudaiplatformv1beta1streamrawpredictrequest *GoogleCloudAiplatformV1beta1StreamRawPredictRequest) *ProjectsLocationsPublishersModelsStreamRawPredictCall { + c := &ProjectsLocationsPublishersModelsStreamRawPredictCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.endpoint = endpoint + c.googlecloudaiplatformv1beta1streamrawpredictrequest = googlecloudaiplatformv1beta1streamrawpredictrequest + 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 *ProjectsLocationsPublishersModelsStreamRawPredictCall) Fields(s ...googleapi.Field) *ProjectsLocationsPublishersModelsStreamRawPredictCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsPublishersModelsStreamRawPredictCall) Context(ctx context.Context) *ProjectsLocationsPublishersModelsStreamRawPredictCall { + 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 *ProjectsLocationsPublishersModelsStreamRawPredictCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsPublishersModelsStreamRawPredictCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1beta1streamrawpredictrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+endpoint}:streamRawPredict") + 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, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.publishers.models.streamRawPredict", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.publishers.models.streamRawPredict" 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 *ProjectsLocationsPublishersModelsStreamRawPredictCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.publishers.models.streamRawPredict", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsRagCorporaCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1ragcorpus *GoogleCloudAiplatformV1beta1RagCorpus + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a RagCorpus. +// +// - parent: The resource name of the Location to create the RagCorpus in. +// Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsRagCorporaService) Create(parent string, googlecloudaiplatformv1beta1ragcorpus *GoogleCloudAiplatformV1beta1RagCorpus) *ProjectsLocationsRagCorporaCreateCall { + c := &ProjectsLocationsRagCorporaCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1ragcorpus = googlecloudaiplatformv1beta1ragcorpus + 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 *ProjectsLocationsRagCorporaCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsRagCorporaCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsRagCorporaCreateCall) Context(ctx context.Context) *ProjectsLocationsRagCorporaCreateCall { + 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 *ProjectsLocationsRagCorporaCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRagCorporaCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1beta1ragcorpus) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/ragCorpora") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.create", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.ragCorpora.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 *ProjectsLocationsRagCorporaCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -112792,11 +114066,696 @@ func (c *ProjectsLocationsRagCorporaRagFilesDeleteCall) Do(opts ...googleapi.Cal if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.delete", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsRagCorporaRagFilesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a RagFile. +// +// - name: The name of the RagFile resource. Format: +// `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{ +// rag_file}`. +func (r *ProjectsLocationsRagCorporaRagFilesService) Get(name string) *ProjectsLocationsRagCorporaRagFilesGetCall { + c := &ProjectsLocationsRagCorporaRagFilesGetCall{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 *ProjectsLocationsRagCorporaRagFilesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRagCorporaRagFilesGetCall { + 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 *ProjectsLocationsRagCorporaRagFilesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRagCorporaRagFilesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsRagCorporaRagFilesGetCall) Context(ctx context.Context) *ProjectsLocationsRagCorporaRagFilesGetCall { + 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 *ProjectsLocationsRagCorporaRagFilesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRagCorporaRagFilesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.get", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.ragCorpora.ragFiles.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudAiplatformV1beta1RagFile.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 *ProjectsLocationsRagCorporaRagFilesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1RagFile, 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 := &GoogleCloudAiplatformV1beta1RagFile{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.get", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsRagCorporaRagFilesImportCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1importragfilesrequest *GoogleCloudAiplatformV1beta1ImportRagFilesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Import: Import files from Google Cloud Storage or Google Drive into a +// RagCorpus. +// +// - parent: The name of the RagCorpus resource into which to import files. +// Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`. +func (r *ProjectsLocationsRagCorporaRagFilesService) Import(parent string, googlecloudaiplatformv1beta1importragfilesrequest *GoogleCloudAiplatformV1beta1ImportRagFilesRequest) *ProjectsLocationsRagCorporaRagFilesImportCall { + c := &ProjectsLocationsRagCorporaRagFilesImportCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1importragfilesrequest = googlecloudaiplatformv1beta1importragfilesrequest + 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 *ProjectsLocationsRagCorporaRagFilesImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsRagCorporaRagFilesImportCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsRagCorporaRagFilesImportCall) Context(ctx context.Context) *ProjectsLocationsRagCorporaRagFilesImportCall { + 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 *ProjectsLocationsRagCorporaRagFilesImportCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRagCorporaRagFilesImportCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1beta1importragfilesrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/ragFiles:import") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.import", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.ragCorpora.ragFiles.import" 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 *ProjectsLocationsRagCorporaRagFilesImportCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.import", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsRagCorporaRagFilesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists RagFiles in a RagCorpus. +// +// - parent: The resource name of the RagCorpus from which to list the +// RagFiles. Format: +// `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`. +func (r *ProjectsLocationsRagCorporaRagFilesService) List(parent string) *ProjectsLocationsRagCorporaRagFilesListCall { + c := &ProjectsLocationsRagCorporaRagFilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list page +// size. +func (c *ProjectsLocationsRagCorporaRagFilesListCall) PageSize(pageSize int64) *ProjectsLocationsRagCorporaRagFilesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list page +// token. Typically obtained via ListRagFilesResponse.next_page_token of the +// previous VertexRagDataService.ListRagFiles call. +func (c *ProjectsLocationsRagCorporaRagFilesListCall) PageToken(pageToken string) *ProjectsLocationsRagCorporaRagFilesListCall { + 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 *ProjectsLocationsRagCorporaRagFilesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRagCorporaRagFilesListCall { + 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 *ProjectsLocationsRagCorporaRagFilesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRagCorporaRagFilesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsRagCorporaRagFilesListCall) Context(ctx context.Context) *ProjectsLocationsRagCorporaRagFilesListCall { + 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 *ProjectsLocationsRagCorporaRagFilesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRagCorporaRagFilesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/ragFiles") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.list", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.ragCorpora.ragFiles.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudAiplatformV1beta1ListRagFilesResponse.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 *ProjectsLocationsRagCorporaRagFilesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListRagFilesResponse, 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 := &GoogleCloudAiplatformV1beta1ListRagFilesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.list", "response", internallog.HTTPResponse(res, b)) + 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 *ProjectsLocationsRagCorporaRagFilesListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListRagFilesResponse) 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 ProjectsLocationsRagCorporaRagFilesOperationsCancelCall 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 *ProjectsLocationsRagCorporaRagFilesOperationsService) Cancel(name string) *ProjectsLocationsRagCorporaRagFilesOperationsCancelCall { + c := &ProjectsLocationsRagCorporaRagFilesOperationsCancelCall{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 *ProjectsLocationsRagCorporaRagFilesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsRagCorporaRagFilesOperationsCancelCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsRagCorporaRagFilesOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsRagCorporaRagFilesOperationsCancelCall { + 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 *ProjectsLocationsRagCorporaRagFilesOperationsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRagCorporaRagFilesOperationsCancelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:cancel") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.operations.cancel", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.ragCorpora.ragFiles.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 *ProjectsLocationsRagCorporaRagFilesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.operations.cancel", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsRagCorporaRagFilesOperationsDeleteCall 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 *ProjectsLocationsRagCorporaRagFilesOperationsService) Delete(name string) *ProjectsLocationsRagCorporaRagFilesOperationsDeleteCall { + c := &ProjectsLocationsRagCorporaRagFilesOperationsDeleteCall{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 *ProjectsLocationsRagCorporaRagFilesOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsRagCorporaRagFilesOperationsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsRagCorporaRagFilesOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsRagCorporaRagFilesOperationsDeleteCall { + 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 *ProjectsLocationsRagCorporaRagFilesOperationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRagCorporaRagFilesOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.operations.delete", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.ragCorpora.ragFiles.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 *ProjectsLocationsRagCorporaRagFilesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.operations.delete", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsRagCorporaRagFilesOperationsGetCall 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 *ProjectsLocationsRagCorporaRagFilesOperationsService) Get(name string) *ProjectsLocationsRagCorporaRagFilesOperationsGetCall { + c := &ProjectsLocationsRagCorporaRagFilesOperationsGetCall{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 *ProjectsLocationsRagCorporaRagFilesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRagCorporaRagFilesOperationsGetCall { + 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 *ProjectsLocationsRagCorporaRagFilesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRagCorporaRagFilesOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsRagCorporaRagFilesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsRagCorporaRagFilesOperationsGetCall { + 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 *ProjectsLocationsRagCorporaRagFilesOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRagCorporaRagFilesOperationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.operations.get", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.ragCorpora.ragFiles.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 *ProjectsLocationsRagCorporaRagFilesOperationsGetCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.operations.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsRagCorporaRagFilesGetCall struct { +type ProjectsLocationsRagCorporaRagFilesOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -112805,21 +114764,40 @@ type ProjectsLocationsRagCorporaRagFilesGetCall struct { header_ http.Header } -// Get: Gets a RagFile. +// 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 RagFile resource. Format: -// `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{ -// rag_file}`. -func (r *ProjectsLocationsRagCorporaRagFilesService) Get(name string) *ProjectsLocationsRagCorporaRagFilesGetCall { - c := &ProjectsLocationsRagCorporaRagFilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsRagCorporaRagFilesOperationsService) List(name string) *ProjectsLocationsRagCorporaRagFilesOperationsListCall { + c := &ProjectsLocationsRagCorporaRagFilesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } +// Filter sets the optional parameter "filter": The standard list filter. +func (c *ProjectsLocationsRagCorporaRagFilesOperationsListCall) Filter(filter string) *ProjectsLocationsRagCorporaRagFilesOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list page +// size. +func (c *ProjectsLocationsRagCorporaRagFilesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsRagCorporaRagFilesOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list page +// token. +func (c *ProjectsLocationsRagCorporaRagFilesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsRagCorporaRagFilesOperationsListCall { + 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 *ProjectsLocationsRagCorporaRagFilesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRagCorporaRagFilesGetCall { +func (c *ProjectsLocationsRagCorporaRagFilesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRagCorporaRagFilesOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -112827,34 +114805,34 @@ func (c *ProjectsLocationsRagCorporaRagFilesGetCall) Fields(s ...googleapi.Field // 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 *ProjectsLocationsRagCorporaRagFilesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRagCorporaRagFilesGetCall { +func (c *ProjectsLocationsRagCorporaRagFilesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRagCorporaRagFilesOperationsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsRagCorporaRagFilesGetCall) Context(ctx context.Context) *ProjectsLocationsRagCorporaRagFilesGetCall { +func (c *ProjectsLocationsRagCorporaRagFilesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsRagCorporaRagFilesOperationsListCall { 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 *ProjectsLocationsRagCorporaRagFilesGetCall) Header() http.Header { +func (c *ProjectsLocationsRagCorporaRagFilesOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsRagCorporaRagFilesGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsRagCorporaRagFilesOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/operations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -112864,17 +114842,17 @@ func (c *ProjectsLocationsRagCorporaRagFilesGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.operations.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.ragCorpora.ragFiles.get" call. +// Do executes the "aiplatform.projects.locations.ragCorpora.ragFiles.operations.list" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudAiplatformV1beta1RagFile.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use +// *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 *ProjectsLocationsRagCorporaRagFilesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1RagFile, error) { +func (c *ProjectsLocationsRagCorporaRagFilesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -112893,7 +114871,7 @@ func (c *ProjectsLocationsRagCorporaRagFilesGetCall) Do(opts ...googleapi.CallOp if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1RagFile{ + ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -112904,210 +114882,113 @@ func (c *ProjectsLocationsRagCorporaRagFilesGetCall) Do(opts ...googleapi.CallOp if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.operations.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsRagCorporaRagFilesImportCall struct { - s *Service - parent string - googlecloudaiplatformv1beta1importragfilesrequest *GoogleCloudAiplatformV1beta1ImportRagFilesRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Import: Import files from Google Cloud Storage or Google Drive into a -// RagCorpus. -// -// - parent: The name of the RagCorpus resource into which to import files. -// Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`. -func (r *ProjectsLocationsRagCorporaRagFilesService) Import(parent string, googlecloudaiplatformv1beta1importragfilesrequest *GoogleCloudAiplatformV1beta1ImportRagFilesRequest) *ProjectsLocationsRagCorporaRagFilesImportCall { - c := &ProjectsLocationsRagCorporaRagFilesImportCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1beta1importragfilesrequest = googlecloudaiplatformv1beta1importragfilesrequest - 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 *ProjectsLocationsRagCorporaRagFilesImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsRagCorporaRagFilesImportCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsRagCorporaRagFilesImportCall) Context(ctx context.Context) *ProjectsLocationsRagCorporaRagFilesImportCall { +// 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 *ProjectsLocationsRagCorporaRagFilesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { 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 *ProjectsLocationsRagCorporaRagFilesImportCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsRagCorporaRagFilesImportCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1beta1importragfilesrequest) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/ragFiles:import") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, - }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.import", "request", internallog.HTTPRequest(req, body.Bytes())) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "aiplatform.projects.locations.ragCorpora.ragFiles.import" 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 *ProjectsLocationsRagCorporaRagFilesImportCall) 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() + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err } - 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 - b, err := gensupport.DecodeResponseBytes(target, res) - if err != nil { - return nil, err + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.import", "response", internallog.HTTPResponse(res, b)) - return ret, nil } -type ProjectsLocationsRagCorporaRagFilesListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsRagCorporaRagFilesOperationsWaitCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists RagFiles in a RagCorpus. +// 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. // -// - parent: The resource name of the RagCorpus from which to list the -// RagFiles. Format: -// `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`. -func (r *ProjectsLocationsRagCorporaRagFilesService) List(parent string) *ProjectsLocationsRagCorporaRagFilesListCall { - c := &ProjectsLocationsRagCorporaRagFilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list page -// size. -func (c *ProjectsLocationsRagCorporaRagFilesListCall) PageSize(pageSize int64) *ProjectsLocationsRagCorporaRagFilesListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsRagCorporaRagFilesOperationsService) Wait(name string) *ProjectsLocationsRagCorporaRagFilesOperationsWaitCall { + c := &ProjectsLocationsRagCorporaRagFilesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } -// PageToken sets the optional parameter "pageToken": The standard list page -// token. Typically obtained via ListRagFilesResponse.next_page_token of the -// previous VertexRagDataService.ListRagFiles call. -func (c *ProjectsLocationsRagCorporaRagFilesListCall) PageToken(pageToken string) *ProjectsLocationsRagCorporaRagFilesListCall { - c.urlParams_.Set("pageToken", pageToken) +// 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 *ProjectsLocationsRagCorporaRagFilesOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsRagCorporaRagFilesOperationsWaitCall { + 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 *ProjectsLocationsRagCorporaRagFilesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRagCorporaRagFilesListCall { +func (c *ProjectsLocationsRagCorporaRagFilesOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsRagCorporaRagFilesOperationsWaitCall { 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 *ProjectsLocationsRagCorporaRagFilesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRagCorporaRagFilesListCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsRagCorporaRagFilesListCall) Context(ctx context.Context) *ProjectsLocationsRagCorporaRagFilesListCall { +func (c *ProjectsLocationsRagCorporaRagFilesOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsRagCorporaRagFilesOperationsWaitCall { 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 *ProjectsLocationsRagCorporaRagFilesListCall) Header() http.Header { +func (c *ProjectsLocationsRagCorporaRagFilesOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsRagCorporaRagFilesListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsRagCorporaRagFilesOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/ragFiles") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:wait") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + req, err := http.NewRequest("POST", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.operations.wait", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.ragCorpora.ragFiles.list" call. +// Do executes the "aiplatform.projects.locations.ragCorpora.ragFiles.operations.wait" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudAiplatformV1beta1ListRagFilesResponse.ServerResponse.Header or -// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// *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 *ProjectsLocationsRagCorporaRagFilesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListRagFilesResponse, error) { +func (c *ProjectsLocationsRagCorporaRagFilesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -113126,7 +115007,7 @@ func (c *ProjectsLocationsRagCorporaRagFilesListCall) Do(opts ...googleapi.CallO if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ListRagFilesResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -113137,32 +115018,11 @@ func (c *ProjectsLocationsRagCorporaRagFilesListCall) Do(opts ...googleapi.CallO if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.operations.wait", "response", internallog.HTTPResponse(res, b)) 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 *ProjectsLocationsRagCorporaRagFilesListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListRagFilesResponse) 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 ProjectsLocationsRagCorporaRagFilesOperationsCancelCall struct { +type ProjectsLocationsRagEngineConfigOperationsCancelCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -113181,8 +115041,8 @@ type ProjectsLocationsRagCorporaRagFilesOperationsCancelCall struct { // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsRagCorporaRagFilesOperationsService) Cancel(name string) *ProjectsLocationsRagCorporaRagFilesOperationsCancelCall { - c := &ProjectsLocationsRagCorporaRagFilesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsRagEngineConfigOperationsService) Cancel(name string) *ProjectsLocationsRagEngineConfigOperationsCancelCall { + c := &ProjectsLocationsRagEngineConfigOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -113190,27 +115050,27 @@ func (r *ProjectsLocationsRagCorporaRagFilesOperationsService) Cancel(name strin // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsRagCorporaRagFilesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsRagCorporaRagFilesOperationsCancelCall { +func (c *ProjectsLocationsRagEngineConfigOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsRagEngineConfigOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsRagCorporaRagFilesOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsRagCorporaRagFilesOperationsCancelCall { +func (c *ProjectsLocationsRagEngineConfigOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsRagEngineConfigOperationsCancelCall { 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 *ProjectsLocationsRagCorporaRagFilesOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsRagEngineConfigOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsRagCorporaRagFilesOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsRagEngineConfigOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -113224,17 +115084,17 @@ func (c *ProjectsLocationsRagCorporaRagFilesOperationsCancelCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.operations.cancel", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragEngineConfig.operations.cancel", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.ragCorpora.ragFiles.operations.cancel" call. +// Do executes the "aiplatform.projects.locations.ragEngineConfig.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 *ProjectsLocationsRagCorporaRagFilesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsRagEngineConfigOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -113264,11 +115124,11 @@ func (c *ProjectsLocationsRagCorporaRagFilesOperationsCancelCall) Do(opts ...goo if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.operations.cancel", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragEngineConfig.operations.cancel", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsRagCorporaRagFilesOperationsDeleteCall struct { +type ProjectsLocationsRagEngineConfigOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -113282,8 +115142,8 @@ type ProjectsLocationsRagCorporaRagFilesOperationsDeleteCall struct { // `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsRagCorporaRagFilesOperationsService) Delete(name string) *ProjectsLocationsRagCorporaRagFilesOperationsDeleteCall { - c := &ProjectsLocationsRagCorporaRagFilesOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsRagEngineConfigOperationsService) Delete(name string) *ProjectsLocationsRagEngineConfigOperationsDeleteCall { + c := &ProjectsLocationsRagEngineConfigOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -113291,27 +115151,27 @@ func (r *ProjectsLocationsRagCorporaRagFilesOperationsService) Delete(name strin // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsRagCorporaRagFilesOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsRagCorporaRagFilesOperationsDeleteCall { +func (c *ProjectsLocationsRagEngineConfigOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsRagEngineConfigOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsRagCorporaRagFilesOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsRagCorporaRagFilesOperationsDeleteCall { +func (c *ProjectsLocationsRagEngineConfigOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsRagEngineConfigOperationsDeleteCall { 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 *ProjectsLocationsRagCorporaRagFilesOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsRagEngineConfigOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsRagCorporaRagFilesOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsRagEngineConfigOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -113325,17 +115185,17 @@ func (c *ProjectsLocationsRagCorporaRagFilesOperationsDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.operations.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragEngineConfig.operations.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.ragCorpora.ragFiles.operations.delete" call. +// Do executes the "aiplatform.projects.locations.ragEngineConfig.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 *ProjectsLocationsRagCorporaRagFilesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsRagEngineConfigOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -113365,11 +115225,11 @@ func (c *ProjectsLocationsRagCorporaRagFilesOperationsDeleteCall) Do(opts ...goo if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.operations.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragEngineConfig.operations.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsRagCorporaRagFilesOperationsGetCall struct { +type ProjectsLocationsRagEngineConfigOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -113383,8 +115243,8 @@ type ProjectsLocationsRagCorporaRagFilesOperationsGetCall struct { // service. // // - name: The name of the operation resource. -func (r *ProjectsLocationsRagCorporaRagFilesOperationsService) Get(name string) *ProjectsLocationsRagCorporaRagFilesOperationsGetCall { - c := &ProjectsLocationsRagCorporaRagFilesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsRagEngineConfigOperationsService) Get(name string) *ProjectsLocationsRagEngineConfigOperationsGetCall { + c := &ProjectsLocationsRagEngineConfigOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -113392,7 +115252,7 @@ func (r *ProjectsLocationsRagCorporaRagFilesOperationsService) Get(name string) // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsRagCorporaRagFilesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRagCorporaRagFilesOperationsGetCall { +func (c *ProjectsLocationsRagEngineConfigOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRagEngineConfigOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -113400,27 +115260,27 @@ func (c *ProjectsLocationsRagCorporaRagFilesOperationsGetCall) Fields(s ...googl // 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 *ProjectsLocationsRagCorporaRagFilesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRagCorporaRagFilesOperationsGetCall { +func (c *ProjectsLocationsRagEngineConfigOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRagEngineConfigOperationsGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsRagCorporaRagFilesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsRagCorporaRagFilesOperationsGetCall { +func (c *ProjectsLocationsRagEngineConfigOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsRagEngineConfigOperationsGetCall { 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 *ProjectsLocationsRagCorporaRagFilesOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsRagEngineConfigOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsRagCorporaRagFilesOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsRagEngineConfigOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -113437,17 +115297,17 @@ func (c *ProjectsLocationsRagCorporaRagFilesOperationsGetCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.operations.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragEngineConfig.operations.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.ragCorpora.ragFiles.operations.get" call. +// Do executes the "aiplatform.projects.locations.ragEngineConfig.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 *ProjectsLocationsRagCorporaRagFilesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsRagEngineConfigOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -113477,11 +115337,11 @@ func (c *ProjectsLocationsRagCorporaRagFilesOperationsGetCall) Do(opts ...google if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.operations.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragEngineConfig.operations.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsRagCorporaRagFilesOperationsListCall struct { +type ProjectsLocationsRagEngineConfigOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -113494,28 +115354,28 @@ type ProjectsLocationsRagCorporaRagFilesOperationsListCall struct { // the server doesn't support this method, it returns `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. -func (r *ProjectsLocationsRagCorporaRagFilesOperationsService) List(name string) *ProjectsLocationsRagCorporaRagFilesOperationsListCall { - c := &ProjectsLocationsRagCorporaRagFilesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsRagEngineConfigOperationsService) List(name string) *ProjectsLocationsRagEngineConfigOperationsListCall { + c := &ProjectsLocationsRagEngineConfigOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list filter. -func (c *ProjectsLocationsRagCorporaRagFilesOperationsListCall) Filter(filter string) *ProjectsLocationsRagCorporaRagFilesOperationsListCall { +func (c *ProjectsLocationsRagEngineConfigOperationsListCall) Filter(filter string) *ProjectsLocationsRagEngineConfigOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list page // size. -func (c *ProjectsLocationsRagCorporaRagFilesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsRagCorporaRagFilesOperationsListCall { +func (c *ProjectsLocationsRagEngineConfigOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsRagEngineConfigOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list page // token. -func (c *ProjectsLocationsRagCorporaRagFilesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsRagCorporaRagFilesOperationsListCall { +func (c *ProjectsLocationsRagEngineConfigOperationsListCall) PageToken(pageToken string) *ProjectsLocationsRagEngineConfigOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -113523,7 +115383,7 @@ func (c *ProjectsLocationsRagCorporaRagFilesOperationsListCall) PageToken(pageTo // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsRagCorporaRagFilesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRagCorporaRagFilesOperationsListCall { +func (c *ProjectsLocationsRagEngineConfigOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRagEngineConfigOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -113531,27 +115391,27 @@ func (c *ProjectsLocationsRagCorporaRagFilesOperationsListCall) Fields(s ...goog // 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 *ProjectsLocationsRagCorporaRagFilesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRagCorporaRagFilesOperationsListCall { +func (c *ProjectsLocationsRagEngineConfigOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRagEngineConfigOperationsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsRagCorporaRagFilesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsRagCorporaRagFilesOperationsListCall { +func (c *ProjectsLocationsRagEngineConfigOperationsListCall) Context(ctx context.Context) *ProjectsLocationsRagEngineConfigOperationsListCall { 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 *ProjectsLocationsRagCorporaRagFilesOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsRagEngineConfigOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsRagCorporaRagFilesOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsRagEngineConfigOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -113568,17 +115428,17 @@ func (c *ProjectsLocationsRagCorporaRagFilesOperationsListCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.operations.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragEngineConfig.operations.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.ragCorpora.ragFiles.operations.list" call. +// Do executes the "aiplatform.projects.locations.ragEngineConfig.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 *ProjectsLocationsRagCorporaRagFilesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ProjectsLocationsRagEngineConfigOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -113608,14 +115468,14 @@ func (c *ProjectsLocationsRagCorporaRagFilesOperationsListCall) Do(opts ...googl if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.operations.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragEngineConfig.operations.list", "response", internallog.HTTPResponse(res, b)) 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 *ProjectsLocationsRagCorporaRagFilesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *ProjectsLocationsRagEngineConfigOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -113633,7 +115493,7 @@ func (c *ProjectsLocationsRagCorporaRagFilesOperationsListCall) Pages(ctx contex } } -type ProjectsLocationsRagCorporaRagFilesOperationsWaitCall struct { +type ProjectsLocationsRagEngineConfigOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -113652,8 +115512,8 @@ type ProjectsLocationsRagCorporaRagFilesOperationsWaitCall struct { // that the operation is done. // // - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsRagCorporaRagFilesOperationsService) Wait(name string) *ProjectsLocationsRagCorporaRagFilesOperationsWaitCall { - c := &ProjectsLocationsRagCorporaRagFilesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsRagEngineConfigOperationsService) Wait(name string) *ProjectsLocationsRagEngineConfigOperationsWaitCall { + c := &ProjectsLocationsRagEngineConfigOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -113662,7 +115522,7 @@ func (r *ProjectsLocationsRagCorporaRagFilesOperationsService) Wait(name string) // 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 *ProjectsLocationsRagCorporaRagFilesOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsRagCorporaRagFilesOperationsWaitCall { +func (c *ProjectsLocationsRagEngineConfigOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsRagEngineConfigOperationsWaitCall { c.urlParams_.Set("timeout", timeout) return c } @@ -113670,27 +115530,27 @@ func (c *ProjectsLocationsRagCorporaRagFilesOperationsWaitCall) Timeout(timeout // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsRagCorporaRagFilesOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsRagCorporaRagFilesOperationsWaitCall { +func (c *ProjectsLocationsRagEngineConfigOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsRagEngineConfigOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsRagCorporaRagFilesOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsRagCorporaRagFilesOperationsWaitCall { +func (c *ProjectsLocationsRagEngineConfigOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsRagEngineConfigOperationsWaitCall { 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 *ProjectsLocationsRagCorporaRagFilesOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsRagEngineConfigOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsRagCorporaRagFilesOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsRagEngineConfigOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -113704,17 +115564,17 @@ func (c *ProjectsLocationsRagCorporaRagFilesOperationsWaitCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.operations.wait", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragEngineConfig.operations.wait", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.ragCorpora.ragFiles.operations.wait" call. +// Do executes the "aiplatform.projects.locations.ragEngineConfig.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 *ProjectsLocationsRagCorporaRagFilesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsRagEngineConfigOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -113744,7 +115604,7 @@ func (c *ProjectsLocationsRagCorporaRagFilesOperationsWaitCall) Do(opts ...googl if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragCorpora.ragFiles.operations.wait", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.ragEngineConfig.operations.wait", "response", internallog.HTTPResponse(res, b)) return ret, nil } diff --git a/artifactregistry/v1beta2/artifactregistry-api.json b/artifactregistry/v1beta2/artifactregistry-api.json index 7d2bcd0f29f..91e950e58eb 100644 --- a/artifactregistry/v1beta2/artifactregistry-api.json +++ b/artifactregistry/v1beta2/artifactregistry-api.json @@ -233,6 +233,16 @@ "description": "Regional Endpoint", "endpointUrl": "https://artifactregistry.me-central2.rep.googleapis.com/", "location": "me-central2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://artifactregistry.us.rep.googleapis.com/", + "location": "us" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://artifactregistry.eu.rep.googleapis.com/", + "location": "eu" } ], "fullyEncodeReservedExpansion": true, @@ -426,6 +436,12 @@ "name" ], "parameters": { + "extraLocationTypes": { + "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "location": "query", + "repeated": true, + "type": "string" + }, "filter": { "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", "location": "query", @@ -1424,7 +1440,7 @@ } } }, - "revision": "20241010", + "revision": "20250415", "rootUrl": "https://artifactregistry.googleapis.com/", "schemas": { "AptArtifact": { diff --git a/artifactregistry/v1beta2/artifactregistry-gen.go b/artifactregistry/v1beta2/artifactregistry-gen.go index a3c38f04a63..10ca321b9ef 100644 --- a/artifactregistry/v1beta2/artifactregistry-gen.go +++ b/artifactregistry/v1beta2/artifactregistry-gen.go @@ -1972,6 +1972,14 @@ func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall return c } +// ExtraLocationTypes sets the optional parameter "extraLocationTypes": A list +// of extra location types that should be used as conditions for controlling +// the visibility of the locations. +func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall { + c.urlParams_.SetMulti("extraLocationTypes", append([]string{}, extraLocationTypes...)) + return c +} + // Filter sets the optional parameter "filter": A filter to narrow down results // to a preferred subset. The filtering language accepts strings like // "displayName=tokyo", and is documented in more detail in AIP-160 diff --git a/chat/v1/chat-api.json b/chat/v1/chat-api.json index 802b88aca2b..e648b1bcf06 100644 --- a/chat/v1/chat-api.json +++ b/chat/v1/chat-api.json @@ -1526,7 +1526,7 @@ } } }, - "revision": "20250406", + "revision": "20250417", "rootUrl": "https://chat.googleapis.com/", "schemas": { "AccessSettings": { @@ -2528,8 +2528,8 @@ ], "enumDescriptions": [ "Don't use. Unspecified.", - "Default value. No border.", - "Outline." + "No border.", + "Default value. Outline." ], "type": "string" } diff --git a/chat/v1/chat-gen.go b/chat/v1/chat-gen.go index 58007471505..0cab796f3ab 100644 --- a/chat/v1/chat-gen.go +++ b/chat/v1/chat-gen.go @@ -1953,8 +1953,8 @@ type GoogleAppsCardV1BorderStyle struct { // // Possible values: // "BORDER_TYPE_UNSPECIFIED" - Don't use. Unspecified. - // "NO_BORDER" - Default value. No border. - // "STROKE" - Outline. + // "NO_BORDER" - No border. + // "STROKE" - Default value. Outline. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "CornerRadius") to // unconditionally include in API requests. By default, fields with empty or diff --git a/classroom/v1/classroom-api.json b/classroom/v1/classroom-api.json index 1bba3ab257d..0fff18a08f9 100644 --- a/classroom/v1/classroom-api.json +++ b/classroom/v1/classroom-api.json @@ -4107,7 +4107,7 @@ } } }, - "revision": "20250331", + "revision": "20250416", "rootUrl": "https://classroom.googleapis.com/", "schemas": { "AddOnAttachment": { @@ -5573,7 +5573,7 @@ }, "form": { "$ref": "Form", - "description": "Google Forms material." + "description": "Google Forms material. Read-only." }, "link": { "$ref": "Link", diff --git a/classroom/v1/classroom-gen.go b/classroom/v1/classroom-gen.go index 430964468af..cb671e02642 100644 --- a/classroom/v1/classroom-gen.go +++ b/classroom/v1/classroom-gen.go @@ -2475,7 +2475,7 @@ func (s ListTopicResponse) MarshalJSON() ([]byte, error) { type Material struct { // DriveFile: Google Drive file material. DriveFile *SharedDriveFile `json:"driveFile,omitempty"` - // Form: Google Forms material. + // Form: Google Forms material. Read-only. Form *Form `json:"form,omitempty"` // Link: Link material. On creation, this is upgraded to a more appropriate // type if possible, and this is reflected in the response. diff --git a/cloudbuild/v1/cloudbuild-api.json b/cloudbuild/v1/cloudbuild-api.json index caef4bf2d22..4b830c87746 100644 --- a/cloudbuild/v1/cloudbuild-api.json +++ b/cloudbuild/v1/cloudbuild-api.json @@ -86,6 +86,11 @@ "endpointUrl": "https://cloudbuild.europe-north1.rep.googleapis.com/", "location": "europe-north1" }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://cloudbuild.europe-north2.rep.googleapis.com/", + "location": "europe-north2" + }, { "description": "Regional Endpoint", "endpointUrl": "https://cloudbuild.europe-southwest1.rep.googleapis.com/", @@ -2568,7 +2573,7 @@ } } }, - "revision": "20250303", + "revision": "20250418", "rootUrl": "https://cloudbuild.googleapis.com/", "schemas": { "ApprovalConfig": { diff --git a/cloudbuild/v2/cloudbuild-api.json b/cloudbuild/v2/cloudbuild-api.json index aafcb014cd4..152890e8d06 100644 --- a/cloudbuild/v2/cloudbuild-api.json +++ b/cloudbuild/v2/cloudbuild-api.json @@ -86,6 +86,11 @@ "endpointUrl": "https://cloudbuild.europe-north1.rep.googleapis.com/", "location": "europe-north1" }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://cloudbuild.europe-north2.rep.googleapis.com/", + "location": "europe-north2" + }, { "description": "Regional Endpoint", "endpointUrl": "https://cloudbuild.europe-southwest1.rep.googleapis.com/", @@ -1082,7 +1087,7 @@ } } }, - "revision": "20250321", + "revision": "20250418", "rootUrl": "https://cloudbuild.googleapis.com/", "schemas": { "AuditConfig": { diff --git a/cloudchannel/v1/cloudchannel-api.json b/cloudchannel/v1/cloudchannel-api.json index 0f3fc584187..a40c2122a3d 100644 --- a/cloudchannel/v1/cloudchannel-api.json +++ b/cloudchannel/v1/cloudchannel-api.json @@ -2289,7 +2289,7 @@ } } }, - "revision": "20250412", + "revision": "20250419", "rootUrl": "https://cloudchannel.googleapis.com/", "schemas": { "GoogleCloudChannelV1ActivateEntitlementRequest": { @@ -2430,7 +2430,7 @@ "type": "array" }, "priceReferenceId": { - "description": "Optional. Price reference ID for the offer. Optional field only for offers that require additional price information. Used to guarantee that the pricing is consistent between quoting the offer and placing the order.", + "description": "Optional. Price reference ID for the offer. Only for offers that require additional price information. Used to guarantee that the pricing is consistent between quoting the offer and placing the order.", "type": "string" }, "purchaseOrderId": { @@ -2866,6 +2866,20 @@ "readOnly": true, "type": "string" }, + "customerAttestationState": { + "description": "Optional. Indicate if a customer is attesting about the correctness of provided information. Only required if creating a GCP Entitlement.", + "enum": [ + "CUSTOMER_ATTESTATION_STATE_UNSPECIFIED", + "EXEMPT", + "NON_EXEMPT_AND_INFO_VERIFIED" + ], + "enumDescriptions": [ + "Default value if not set yet", + "Customer is exempt from attesting based on exemption list at https://cloud.google.com/terms/direct-tos-exemptions. Contact information of customer will be mandatory.", + "Customer is not exempt and has verified the information provided is correct. Contact information of customer will be mandatory." + ], + "type": "string" + }, "domain": { "description": "Required. The customer's primary domain. Must match the primary contact email's domain.", "type": "string" @@ -3109,7 +3123,7 @@ "type": "array" }, "priceReferenceId": { - "description": "Optional. Price reference ID for the offer. Optional field only for offers that require additional price information. Used to guarantee that the pricing is consistent between quoting the offer and placing the order.", + "description": "Optional. Price reference ID for the offer. Only for offers that require additional price information. Used to guarantee that the pricing is consistent between quoting the offer and placing the order.", "type": "string" }, "provisionedService": { @@ -3567,7 +3581,7 @@ "type": "string" }, "offers": { - "description": "The list of Offers requested.", + "description": "The list of Offers requested. The pricing information for each Offer only includes the base price. Effective prices and discounts aren't populated.", "items": { "$ref": "GoogleCloudChannelV1Offer" }, @@ -4326,7 +4340,7 @@ "description": "Offer." }, "priceReferenceId": { - "description": "Optional. Price reference ID for the offer. Optional field only for offers that require additional price information. Used to guarantee that the pricing is consistent between quoting the offer and placing the order.", + "description": "Optional. Price reference ID for the offer. Only for offers that require additional price information. Used to guarantee that the pricing is consistent between quoting the offer and placing the order.", "type": "string" } }, @@ -4902,7 +4916,7 @@ "description": "Offer with parameter constraints updated to allow the Transfer." }, "priceReferenceId": { - "description": "Optional. Price reference ID for the offer. Optional field only for offers that require additional price information. Used to guarantee that the pricing is consistent between quoting the offer and placing the order.", + "description": "Optional. Price reference ID for the offer. Only for offers that require additional price information. Used to guarantee that the pricing is consistent between quoting the offer and placing the order.", "type": "string" } }, @@ -5230,7 +5244,7 @@ "type": "array" }, "priceReferenceId": { - "description": "Optional. Price reference ID for the offer. Optional field only for offers that require additional price information. Used to guarantee that the pricing is consistent between quoting the offer and placing the order.", + "description": "Optional. Price reference ID for the offer. Only for offers that require additional price information. Used to guarantee that the pricing is consistent between quoting the offer and placing the order.", "type": "string" }, "provisionedService": { diff --git a/cloudchannel/v1/cloudchannel-gen.go b/cloudchannel/v1/cloudchannel-gen.go index 7a0a68a4d0c..1a8a1580a1a 100644 --- a/cloudchannel/v1/cloudchannel-gen.go +++ b/cloudchannel/v1/cloudchannel-gen.go @@ -560,10 +560,9 @@ type GoogleCloudChannelV1ChangeOfferRequest struct { // available Parameters refer to the Offer.parameter_definitions from the // desired offer. Parameters []*GoogleCloudChannelV1Parameter `json:"parameters,omitempty"` - // PriceReferenceId: Optional. Price reference ID for the offer. Optional field - // only for offers that require additional price information. Used to guarantee - // that the pricing is consistent between quoting the offer and placing the - // order. + // PriceReferenceId: Optional. Price reference ID for the offer. Only for + // offers that require additional price information. Used to guarantee that the + // pricing is consistent between quoting the offer and placing the order. PriceReferenceId string `json:"priceReferenceId,omitempty"` // PurchaseOrderId: Optional. Purchase order id provided by the reseller. PurchaseOrderId string `json:"purchaseOrderId,omitempty"` @@ -1125,6 +1124,19 @@ type GoogleCloudChannelV1Customer struct { CorrelationId string `json:"correlationId,omitempty"` // CreateTime: Output only. Time when the customer was created. CreateTime string `json:"createTime,omitempty"` + // CustomerAttestationState: Optional. Indicate if a customer is attesting + // about the correctness of provided information. Only required if creating a + // GCP Entitlement. + // + // Possible values: + // "CUSTOMER_ATTESTATION_STATE_UNSPECIFIED" - Default value if not set yet + // "EXEMPT" - Customer is exempt from attesting based on exemption list at + // https://cloud.google.com/terms/direct-tos-exemptions. Contact information of + // customer will be mandatory. + // "NON_EXEMPT_AND_INFO_VERIFIED" - Customer is not exempt and has verified + // the information provided is correct. Contact information of customer will be + // mandatory. + CustomerAttestationState string `json:"customerAttestationState,omitempty"` // Domain: Required. The customer's primary domain. Must match the primary // contact email's domain. Domain string `json:"domain,omitempty"` @@ -1387,10 +1399,9 @@ type GoogleCloudChannelV1Entitlement struct { // Google Cloud billing subaccounts, the following Parameter may be accepted as // input: - display_name: The display name of the billing subaccount. Parameters []*GoogleCloudChannelV1Parameter `json:"parameters,omitempty"` - // PriceReferenceId: Optional. Price reference ID for the offer. Optional field - // only for offers that require additional price information. Used to guarantee - // that the pricing is consistent between quoting the offer and placing the - // order. + // PriceReferenceId: Optional. Price reference ID for the offer. Only for + // offers that require additional price information. Used to guarantee that the + // pricing is consistent between quoting the offer and placing the order. PriceReferenceId string `json:"priceReferenceId,omitempty"` // ProvisionedService: Output only. Service provisioning details for the // entitlement. @@ -1893,7 +1904,9 @@ func (s GoogleCloudChannelV1ListEntitlementsResponse) MarshalJSON() ([]byte, err type GoogleCloudChannelV1ListOffersResponse struct { // NextPageToken: A token to retrieve the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` - // Offers: The list of Offers requested. + // Offers: The list of Offers requested. The pricing information for each Offer + // only includes the base price. Effective prices and discounts aren't + // populated. Offers []*GoogleCloudChannelV1Offer `json:"offers,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. @@ -2864,10 +2877,9 @@ func (s GoogleCloudChannelV1ProvisionedService) MarshalJSON() ([]byte, error) { type GoogleCloudChannelV1PurchasableOffer struct { // Offer: Offer. Offer *GoogleCloudChannelV1Offer `json:"offer,omitempty"` - // PriceReferenceId: Optional. Price reference ID for the offer. Optional field - // only for offers that require additional price information. Used to guarantee - // that the pricing is consistent between quoting the offer and placing the - // order. + // PriceReferenceId: Optional. Price reference ID for the offer. Only for + // offers that require additional price information. Used to guarantee that the + // pricing is consistent between quoting the offer and placing the order. PriceReferenceId string `json:"priceReferenceId,omitempty"` // ForceSendFields is a list of field names (e.g. "Offer") to unconditionally // include in API requests. By default, fields with empty or default values are @@ -3749,10 +3761,9 @@ func (s GoogleCloudChannelV1TransferEntitlementsToGoogleRequest) MarshalJSON() ( type GoogleCloudChannelV1TransferableOffer struct { // Offer: Offer with parameter constraints updated to allow the Transfer. Offer *GoogleCloudChannelV1Offer `json:"offer,omitempty"` - // PriceReferenceId: Optional. Price reference ID for the offer. Optional field - // only for offers that require additional price information. Used to guarantee - // that the pricing is consistent between quoting the offer and placing the - // order. + // PriceReferenceId: Optional. Price reference ID for the offer. Only for + // offers that require additional price information. Used to guarantee that the + // pricing is consistent between quoting the offer and placing the order. PriceReferenceId string `json:"priceReferenceId,omitempty"` // ForceSendFields is a list of field names (e.g. "Offer") to unconditionally // include in API requests. By default, fields with empty or default values are @@ -4207,10 +4218,9 @@ type GoogleCloudChannelV1alpha1Entitlement struct { // Google Cloud billing subaccounts, the following Parameter may be accepted as // input: - display_name: The display name of the billing subaccount. Parameters []*GoogleCloudChannelV1alpha1Parameter `json:"parameters,omitempty"` - // PriceReferenceId: Optional. Price reference ID for the offer. Optional field - // only for offers that require additional price information. Used to guarantee - // that the pricing is consistent between quoting the offer and placing the - // order. + // PriceReferenceId: Optional. Price reference ID for the offer. Only for + // offers that require additional price information. Used to guarantee that the + // pricing is consistent between quoting the offer and placing the order. PriceReferenceId string `json:"priceReferenceId,omitempty"` // ProvisionedService: Output only. Service provisioning details for the // entitlement. diff --git a/cloudresourcemanager/v2/cloudresourcemanager-api.json b/cloudresourcemanager/v2/cloudresourcemanager-api.json index 5196c266d3c..dc97568c361 100644 --- a/cloudresourcemanager/v2/cloudresourcemanager-api.json +++ b/cloudresourcemanager/v2/cloudresourcemanager-api.json @@ -450,7 +450,7 @@ } } }, - "revision": "20240310", + "revision": "20250417", "rootUrl": "https://cloudresourcemanager.googleapis.com/", "schemas": { "AuditConfig": { @@ -705,6 +705,14 @@ "description": "A Folder in an Organization's resource hierarchy, used to organize that Organization's resources.", "id": "Folder", "properties": { + "configuredCapabilities": { + "description": "Output only. Optional capabilities configured for this folder (via UpdateCapability API). Example: `folders/123/capabilities/app-management`.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, "createTime": { "description": "Output only. Timestamp when the Folder was created. Assigned by the server.", "format": "google-datetime", @@ -730,6 +738,11 @@ "readOnly": true, "type": "string" }, + "managementProject": { + "description": "Output only. Management Project associated with this folder (if app-management capability is enabled). Example: `projects/google-mp-123` OUTPUT ONLY.", + "readOnly": true, + "type": "string" + }, "name": { "description": "Output only. The resource name of the Folder. Its format is `folders/{folder_id}`, for example: \"folders/1234\".", "readOnly": true, diff --git a/cloudresourcemanager/v2/cloudresourcemanager-gen.go b/cloudresourcemanager/v2/cloudresourcemanager-gen.go index a4e5c83a711..66dbdad65d6 100644 --- a/cloudresourcemanager/v2/cloudresourcemanager-gen.go +++ b/cloudresourcemanager/v2/cloudresourcemanager-gen.go @@ -581,6 +581,10 @@ func (s Expr) MarshalJSON() ([]byte, error) { // Folder: A Folder in an Organization's resource hierarchy, used to organize // that Organization's resources. type Folder struct { + // ConfiguredCapabilities: Output only. Optional capabilities configured for + // this folder (via UpdateCapability API). Example: + // `folders/123/capabilities/app-management`. + ConfiguredCapabilities []string `json:"configuredCapabilities,omitempty"` // CreateTime: Output only. Timestamp when the Folder was created. Assigned by // the server. CreateTime string `json:"createTime,omitempty"` @@ -599,6 +603,10 @@ type Folder struct { // "ACTIVE" - The normal and active state. // "DELETE_REQUESTED" - The folder has been marked for deletion by the user. LifecycleState string `json:"lifecycleState,omitempty"` + // ManagementProject: Output only. Management Project associated with this + // folder (if app-management capability is enabled). Example: + // `projects/google-mp-123` OUTPUT ONLY. + ManagementProject string `json:"managementProject,omitempty"` // Name: Output only. The resource name of the Folder. Its format is // `folders/{folder_id}`, for example: "folders/1234". Name string `json:"name,omitempty"` @@ -613,15 +621,15 @@ type Folder struct { // 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 + // ForceSendFields is a list of field names (e.g. "ConfiguredCapabilities") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://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 + // NullFields is a list of field names (e.g. "ConfiguredCapabilities") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } diff --git a/cloudresourcemanager/v2beta1/cloudresourcemanager-api.json b/cloudresourcemanager/v2beta1/cloudresourcemanager-api.json index 9759efd0f4d..ff545830c15 100644 --- a/cloudresourcemanager/v2beta1/cloudresourcemanager-api.json +++ b/cloudresourcemanager/v2beta1/cloudresourcemanager-api.json @@ -450,7 +450,7 @@ } } }, - "revision": "20240310", + "revision": "20250417", "rootUrl": "https://cloudresourcemanager.googleapis.com/", "schemas": { "AuditConfig": { @@ -705,6 +705,14 @@ "description": "A Folder in an Organization's resource hierarchy, used to organize that Organization's resources.", "id": "Folder", "properties": { + "configuredCapabilities": { + "description": "Output only. Optional capabilities configured for this folder (via UpdateCapability API). Example: `folders/123/capabilities/app-management`.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, "createTime": { "description": "Output only. Timestamp when the Folder was created. Assigned by the server.", "format": "google-datetime", @@ -730,6 +738,11 @@ "readOnly": true, "type": "string" }, + "managementProject": { + "description": "Output only. Management Project associated with this folder (if app-management capability is enabled). Example: `projects/google-mp-123` OUTPUT ONLY.", + "readOnly": true, + "type": "string" + }, "name": { "description": "Output only. The resource name of the Folder. Its format is `folders/{folder_id}`, for example: \"folders/1234\".", "readOnly": true, diff --git a/cloudresourcemanager/v2beta1/cloudresourcemanager-gen.go b/cloudresourcemanager/v2beta1/cloudresourcemanager-gen.go index a66d1116a76..4fdb5b60c50 100644 --- a/cloudresourcemanager/v2beta1/cloudresourcemanager-gen.go +++ b/cloudresourcemanager/v2beta1/cloudresourcemanager-gen.go @@ -581,6 +581,10 @@ func (s Expr) MarshalJSON() ([]byte, error) { // Folder: A Folder in an Organization's resource hierarchy, used to organize // that Organization's resources. type Folder struct { + // ConfiguredCapabilities: Output only. Optional capabilities configured for + // this folder (via UpdateCapability API). Example: + // `folders/123/capabilities/app-management`. + ConfiguredCapabilities []string `json:"configuredCapabilities,omitempty"` // CreateTime: Output only. Timestamp when the Folder was created. Assigned by // the server. CreateTime string `json:"createTime,omitempty"` @@ -599,6 +603,10 @@ type Folder struct { // "ACTIVE" - The normal and active state. // "DELETE_REQUESTED" - The folder has been marked for deletion by the user. LifecycleState string `json:"lifecycleState,omitempty"` + // ManagementProject: Output only. Management Project associated with this + // folder (if app-management capability is enabled). Example: + // `projects/google-mp-123` OUTPUT ONLY. + ManagementProject string `json:"managementProject,omitempty"` // Name: Output only. The resource name of the Folder. Its format is // `folders/{folder_id}`, for example: "folders/1234". Name string `json:"name,omitempty"` @@ -613,15 +621,15 @@ type Folder struct { // 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 + // ForceSendFields is a list of field names (e.g. "ConfiguredCapabilities") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://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 + // NullFields is a list of field names (e.g. "ConfiguredCapabilities") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } diff --git a/cloudresourcemanager/v3/cloudresourcemanager-api.json b/cloudresourcemanager/v3/cloudresourcemanager-api.json index 4f947d598db..a2a9db10e1c 100644 --- a/cloudresourcemanager/v3/cloudresourcemanager-api.json +++ b/cloudresourcemanager/v3/cloudresourcemanager-api.json @@ -462,6 +462,71 @@ "https://www.googleapis.com/auth/cloud-platform" ] } + }, + "resources": { + "capabilities": { + "methods": { + "get": { + "description": "Retrieves the Capability identified by the supplied resource name.", + "flatPath": "v3/folders/{foldersId}/capabilities/{capabilitiesId}", + "httpMethod": "GET", + "id": "cloudresourcemanager.folders.capabilities.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the capability to get. For example, `folders/123/capabilities/app-management`", + "location": "path", + "pattern": "^folders/[^/]+/capabilities/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v3/{+name}", + "response": { + "$ref": "Capability" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates the Capability.", + "flatPath": "v3/folders/{foldersId}/capabilities/{capabilitiesId}", + "httpMethod": "PATCH", + "id": "cloudresourcemanager.folders.capabilities.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Immutable. Identifier. The resource name of the capability. Must be in the following form: * `folders/{folder_id}/capabilities/{capability_name}` For example, `folders/123/capabilities/app-management` Following are the allowed {capability_name} values: * `app-management`", + "location": "path", + "pattern": "^folders/[^/]+/capabilities/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. The list of fields to update. Only [Capability.value] can be updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v3/{+name}", + "request": { + "$ref": "Capability" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } } }, "liens": { @@ -1805,7 +1870,7 @@ } } }, - "revision": "20250206", + "revision": "20250417", "rootUrl": "https://cloudresourcemanager.googleapis.com/", "schemas": { "AuditConfig": { @@ -1878,6 +1943,21 @@ }, "type": "object" }, + "Capability": { + "description": "Representation of a Capability.", + "id": "Capability", + "properties": { + "name": { + "description": "Immutable. Identifier. The resource name of the capability. Must be in the following form: * `folders/{folder_id}/capabilities/{capability_name}` For example, `folders/123/capabilities/app-management` Following are the allowed {capability_name} values: * `app-management`", + "type": "string" + }, + "value": { + "description": "Required. The configured value of the capability at the given parent resource.", + "type": "boolean" + } + }, + "type": "object" + }, "CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation": { "description": "Metadata describing a long running folder operation", "id": "CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation", @@ -2097,6 +2177,14 @@ "description": "A folder in an organization's resource hierarchy, used to organize that organization's resources.", "id": "Folder", "properties": { + "configuredCapabilities": { + "description": "Output only. Optional capabilities configured for this folder (via UpdateCapability API). Example: `folders/123/capabilities/app-management`.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, "createTime": { "description": "Output only. Timestamp when the folder was created.", "format": "google-datetime", @@ -2118,6 +2206,11 @@ "readOnly": true, "type": "string" }, + "managementProject": { + "description": "Output only. Management Project associated with this folder (if app-management capability is enabled). Example: `projects/google-mp-123` OUTPUT ONLY.", + "readOnly": true, + "type": "string" + }, "name": { "description": "Output only. The resource name of the folder. Its format is `folders/{folder_id}`, for example: \"folders/1234\".", "readOnly": true, diff --git a/cloudresourcemanager/v3/cloudresourcemanager-gen.go b/cloudresourcemanager/v3/cloudresourcemanager-gen.go index 2f6c065e65c..da1443ee313 100644 --- a/cloudresourcemanager/v3/cloudresourcemanager-gen.go +++ b/cloudresourcemanager/v3/cloudresourcemanager-gen.go @@ -199,11 +199,23 @@ type EffectiveTagsService struct { func NewFoldersService(s *Service) *FoldersService { rs := &FoldersService{s: s} + rs.Capabilities = NewFoldersCapabilitiesService(s) return rs } type FoldersService struct { s *Service + + Capabilities *FoldersCapabilitiesService +} + +func NewFoldersCapabilitiesService(s *Service) *FoldersCapabilitiesService { + rs := &FoldersCapabilitiesService{s: s} + return rs +} + +type FoldersCapabilitiesService struct { + s *Service } func NewLiensService(s *Service) *LiensService { @@ -456,6 +468,37 @@ func (s Binding) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// Capability: Representation of a Capability. +type Capability struct { + // Name: Immutable. Identifier. The resource name of the capability. Must be in + // the following form: * `folders/{folder_id}/capabilities/{capability_name}` + // For example, `folders/123/capabilities/app-management` Following are the + // allowed {capability_name} values: * `app-management` + Name string `json:"name,omitempty"` + // Value: Required. The configured value of the capability at the given parent + // resource. + Value bool `json:"value,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 Capability) MarshalJSON() ([]byte, error) { + type NoMethod Capability + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation: // Metadata describing a long running folder operation type CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation struct { @@ -733,6 +776,10 @@ func (s Expr) MarshalJSON() ([]byte, error) { // Folder: A folder in an organization's resource hierarchy, used to organize // that organization's resources. type Folder struct { + // ConfiguredCapabilities: Output only. Optional capabilities configured for + // this folder (via UpdateCapability API). Example: + // `folders/123/capabilities/app-management`. + ConfiguredCapabilities []string `json:"configuredCapabilities,omitempty"` // CreateTime: Output only. Timestamp when the folder was created. CreateTime string `json:"createTime,omitempty"` // DeleteTime: Output only. Timestamp when the folder was requested to be @@ -749,6 +796,10 @@ type Folder struct { // value of the folder resource. This may be sent on update and delete requests // to ensure the client has an up-to-date value before proceeding. Etag string `json:"etag,omitempty"` + // ManagementProject: Output only. Management Project associated with this + // folder (if app-management capability is enabled). Example: + // `projects/google-mp-123` OUTPUT ONLY. + ManagementProject string `json:"managementProject,omitempty"` // Name: Output only. The resource name of the folder. Its format is // `folders/{folder_id}`, for example: "folders/1234". Name string `json:"name,omitempty"` @@ -773,15 +824,15 @@ type Folder struct { // 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 + // ForceSendFields is a list of field names (e.g. "ConfiguredCapabilities") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://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 + // NullFields is a list of field names (e.g. "ConfiguredCapabilities") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -3555,6 +3606,230 @@ func (c *FoldersUndeleteCall) Do(opts ...googleapi.CallOption) (*Operation, erro return ret, nil } +type FoldersCapabilitiesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Retrieves the Capability identified by the supplied resource name. +// +// - name: The name of the capability to get. For example, +// `folders/123/capabilities/app-management`. +func (r *FoldersCapabilitiesService) Get(name string) *FoldersCapabilitiesGetCall { + c := &FoldersCapabilitiesGetCall{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 *FoldersCapabilitiesGetCall) Fields(s ...googleapi.Field) *FoldersCapabilitiesGetCall { + 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 *FoldersCapabilitiesGetCall) IfNoneMatch(entityTag string) *FoldersCapabilitiesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *FoldersCapabilitiesGetCall) Context(ctx context.Context) *FoldersCapabilitiesGetCall { + 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 *FoldersCapabilitiesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *FoldersCapabilitiesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "cloudresourcemanager.folders.capabilities.get", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "cloudresourcemanager.folders.capabilities.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *Capability.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 *FoldersCapabilitiesGetCall) Do(opts ...googleapi.CallOption) (*Capability, 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 := &Capability{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "cloudresourcemanager.folders.capabilities.get", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type FoldersCapabilitiesPatchCall struct { + s *Service + name string + capability *Capability + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates the Capability. +// +// - name: Immutable. Identifier. The resource name of the capability. Must be +// in the following form: * +// `folders/{folder_id}/capabilities/{capability_name}` For example, +// `folders/123/capabilities/app-management` Following are the allowed +// {capability_name} values: * `app-management`. +func (r *FoldersCapabilitiesService) Patch(name string, capability *Capability) *FoldersCapabilitiesPatchCall { + c := &FoldersCapabilitiesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.capability = capability + return c +} + +// UpdateMask sets the optional parameter "updateMask": The list of fields to +// update. Only [Capability.value] can be updated. +func (c *FoldersCapabilitiesPatchCall) UpdateMask(updateMask string) *FoldersCapabilitiesPatchCall { + 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 *FoldersCapabilitiesPatchCall) Fields(s ...googleapi.Field) *FoldersCapabilitiesPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *FoldersCapabilitiesPatchCall) Context(ctx context.Context) *FoldersCapabilitiesPatchCall { + 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 *FoldersCapabilitiesPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *FoldersCapabilitiesPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.capability) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "cloudresourcemanager.folders.capabilities.patch", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "cloudresourcemanager.folders.capabilities.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 *FoldersCapabilitiesPatchCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "cloudresourcemanager.folders.capabilities.patch", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type LiensCreateCall struct { s *Service lien *Lien diff --git a/css/v1/css-api.json b/css/v1/css-api.json index 35574071481..0f01eec0283 100644 --- a/css/v1/css-api.json +++ b/css/v1/css-api.json @@ -292,7 +292,7 @@ ], "parameters": { "name": { - "description": "The name of the CSS Product input. Format: `accounts/{account}/cssProductInputs/{css_product_input}`, where the last section `css_product_input` consists of 3 parts: contentLanguage~feedLabel~offerId. Example: accounts/123/cssProductInputs/de~DE~rawProvidedId123", + "description": "Identifier. The name of the CSS Product input. Format: `accounts/{account}/cssProductInputs/{css_product_input}`, where the last section `css_product_input` consists of 3 parts: contentLanguage~feedLabel~offerId. Example: accounts/123/cssProductInputs/de~DE~rawProvidedId123", "location": "path", "pattern": "^accounts/[^/]+/cssProductInputs/[^/]+$", "required": true, @@ -484,7 +484,7 @@ ], "parameters": { "name": { - "description": "The resource name of the label. Format: accounts/{account}/labels/{label}", + "description": "Identifier. The resource name of the label. Format: accounts/{account}/labels/{label}", "location": "path", "pattern": "^accounts/[^/]+/labels/[^/]+$", "required": true, @@ -547,7 +547,7 @@ } } }, - "revision": "20250406", + "revision": "20250421", "rootUrl": "https://css.googleapis.com/", "schemas": { "Account": { @@ -662,7 +662,7 @@ "type": "string" }, "name": { - "description": "The resource name of the label. Format: accounts/{account}/labels/{label}", + "description": "Identifier. The resource name of the label. Format: accounts/{account}/labels/{label}", "type": "string" } }, @@ -1000,7 +1000,7 @@ "type": "string" }, "name": { - "description": "The name of the CSS Product input. Format: `accounts/{account}/cssProductInputs/{css_product_input}`, where the last section `css_product_input` consists of 3 parts: contentLanguage~feedLabel~offerId. Example: accounts/123/cssProductInputs/de~DE~rawProvidedId123", + "description": "Identifier. The name of the CSS Product input. Format: `accounts/{account}/cssProductInputs/{css_product_input}`, where the last section `css_product_input` consists of 3 parts: contentLanguage~feedLabel~offerId. Example: accounts/123/cssProductInputs/de~DE~rawProvidedId123", "type": "string" }, "rawProvidedId": { diff --git a/css/v1/css-gen.go b/css/v1/css-gen.go index 03d42cb0c5f..eb271ae7791 100644 --- a/css/v1/css-gen.go +++ b/css/v1/css-gen.go @@ -285,7 +285,7 @@ type AccountLabel struct { // "AUTOMATIC" - Indicates that the label was created automatically by CSS // Center. LabelType string `json:"labelType,omitempty"` - // Name: The resource name of the label. Format: + // Name: Identifier. The resource name of the label. Format: // accounts/{account}/labels/{label} Name string `json:"name,omitempty"` @@ -583,7 +583,7 @@ type CssProductInput struct { // received by the CSS API. If the operation is prevented, the aborted // exception will be thrown. FreshnessTime string `json:"freshnessTime,omitempty"` - // Name: The name of the CSS Product input. Format: + // Name: Identifier. The name of the CSS Product input. Format: // `accounts/{account}/cssProductInputs/{css_product_input}`, where the last // section `css_product_input` consists of 3 parts: // contentLanguage~feedLabel~offerId. Example: @@ -1795,7 +1795,7 @@ type AccountsCssProductInputsPatchCall struct { // After inserting, updating, or deleting a CSS Product input, it may take // several minutes before the processed Css Product can be retrieved. // -// - name: The name of the CSS Product input. Format: +// - name: Identifier. The name of the CSS Product input. Format: // `accounts/{account}/cssProductInputs/{css_product_input}`, where the last // section `css_product_input` consists of 3 parts: // contentLanguage~feedLabel~offerId. Example: @@ -2533,7 +2533,7 @@ type AccountsLabelsPatchCall struct { // Patch: Updates a label. // -// - name: The resource name of the label. Format: +// - name: Identifier. The resource name of the label. Format: // accounts/{account}/labels/{label}. func (r *AccountsLabelsService) Patch(name string, accountlabel *AccountLabel) *AccountsLabelsPatchCall { c := &AccountsLabelsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} diff --git a/discoveryengine/v1/discoveryengine-api.json b/discoveryengine/v1/discoveryengine-api.json index cc05d883b39..34f4556b485 100644 --- a/discoveryengine/v1/discoveryengine-api.json +++ b/discoveryengine/v1/discoveryengine-api.json @@ -3507,6 +3507,34 @@ }, "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}/collections/{collectionsId}/engines/{enginesId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "discoveryengine.projects.locations.collections.engines.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:cancel", + "request": { + "$ref": "GoogleLongrunningCancelOperationRequest" + }, + "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}/collections/{collectionsId}/engines/{enginesId}/operations/{operationsId}", @@ -6945,7 +6973,7 @@ } } }, - "revision": "20250410", + "revision": "20250419", "rootUrl": "https://discoveryengine.googleapis.com/", "schemas": { "GoogleApiDistribution": { @@ -7569,6 +7597,60 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1AnswerGenerationSpec": { + "description": "The specification for answer generation.", + "id": "GoogleCloudDiscoveryengineV1AnswerGenerationSpec", + "properties": { + "userDefinedClassifierSpec": { + "$ref": "GoogleCloudDiscoveryengineV1AnswerGenerationSpecUserDefinedClassifierSpec", + "description": "Optional. The specification for user specified classifier spec." + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1AnswerGenerationSpecUserDefinedClassifierSpec": { + "description": "The specification for user defined classifier.", + "id": "GoogleCloudDiscoveryengineV1AnswerGenerationSpecUserDefinedClassifierSpec", + "properties": { + "enableUserDefinedClassifier": { + "description": "Optional. Whether or not to enable and include user defined classifier.", + "type": "boolean" + }, + "modelId": { + "description": "Optional. The model id to be used for the user defined classifier.", + "type": "string" + }, + "preamble": { + "description": "Optional. The preamble to be used for the user defined classifier.", + "type": "string" + }, + "seed": { + "description": "Optional. The seed value to be used for the user defined classifier.", + "format": "int32", + "type": "integer" + }, + "taskMarker": { + "description": "Optional. The task marker to be used for the user defined classifier.", + "type": "string" + }, + "temperature": { + "description": "Optional. The temperature value to be used for the user defined classifier.", + "format": "double", + "type": "number" + }, + "topK": { + "description": "Optional. The top-k value to be used for the user defined classifier.", + "format": "int64", + "type": "string" + }, + "topP": { + "description": "Optional. The top-p value to be used for the user defined classifier.", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1AnswerGroundingSupport": { "description": "Grounding support for a claim in `answer_text`.", "id": "GoogleCloudDiscoveryengineV1AnswerGroundingSupport", @@ -8939,6 +9021,11 @@ "description": "Indicates that this claim required grounding check. When the system decided this claim doesn't require attribution/grounding check, this field will be set to false. In that case, no grounding check was done for the claim and therefore citation_indices should not be returned.", "type": "boolean" }, + "score": { + "description": "Confidence score for the claim in the answer candidate, in the range of [0, 1]. This is set only when enable_claim_level_score is true.", + "format": "double", + "type": "number" + }, "startPos": { "description": "Position indicating the start of the claim in the answer candidate, measured in bytes. Note that this is not measured in characters and, therefore, must be rendered in the user interface keeping in mind that some characters may take more than one byte. For example, if the claim text contains non-ASCII characters, the start and end positions vary when measured in characters (programming-language-dependent) and when measured in bytes (programming-language-independent).", "format": "int32", @@ -8955,6 +9042,10 @@ "description": "The threshold (in [0,1]) used for determining whether a fact must be cited for a claim in the answer candidate. Choosing a higher threshold will lead to fewer but very strong citations, while choosing a lower threshold may lead to more but somewhat weaker citations. If unset, the threshold will default to 0.6.", "format": "double", "type": "number" + }, + "enableClaimLevelScore": { + "description": "The control flag that enables claim-level grounding score in the response.", + "type": "boolean" } }, "type": "object" @@ -10340,7 +10431,7 @@ "id": "GoogleCloudDiscoveryengineV1DocumentContent", "properties": { "mimeType": { - "description": "The MIME type of the content. Supported types: * `application/pdf` (PDF, only native PDFs are supported for now) * `text/html` (HTML) * `text/plain` (TXT) * `text/xml` (XML) * `application/json` (JSON) * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX) * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX) * `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet` (XLSX) * `application/vnd.ms-excel.sheet.macroenabled.12` (XLSM) The following types are supported only if layout parser is enabled in the data store: * `image/bmp` (BMP) * `image/gif` (GIF) * `image/jpeg` (JPEG) * `image/png` (PNG) * `image/tiff` (TIFF) See https://www.iana.org/assignments/media-types/media-types.xhtml.", + "description": "The MIME type of the content. Supported types: * `application/pdf` (PDF, only native PDFs are supported for now) * `text/html` (HTML) * `text/plain` (TXT) * `application/xml` or `text/xml` (XML) * `application/json` (JSON) * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX) * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX) * `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet` (XLSX) * `application/vnd.ms-excel.sheet.macroenabled.12` (XLSM) The following types are supported only if layout parser is enabled in the data store: * `image/bmp` (BMP) * `image/gif` (GIF) * `image/jpeg` (JPEG) * `image/png` (PNG) * `image/tiff` (TIFF) See https://www.iana.org/assignments/media-types/media-types.xhtml.", "type": "string" }, "rawBytes": { @@ -10508,6 +10599,27 @@ "enableTableAnnotation": { "description": "Optional. If true, the LLM based annotation is added to the table during parsing.", "type": "boolean" + }, + "excludeHtmlClasses": { + "description": "Optional. List of HTML classes to exclude from the parsed content.", + "items": { + "type": "string" + }, + "type": "array" + }, + "excludeHtmlElements": { + "description": "Optional. List of HTML elements to exclude from the parsed content.", + "items": { + "type": "string" + }, + "type": "array" + }, + "excludeHtmlIds": { + "description": "Optional. List of HTML ids to exclude from the parsed content.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" @@ -10629,6 +10741,10 @@ ], "type": "string" }, + "mediaRecommendationEngineConfig": { + "$ref": "GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfig", + "description": "Configurations for the Media Engine. Only applicable on the data stores with solution_type SOLUTION_TYPE_RECOMMENDATION and IndustryVertical.MEDIA vertical." + }, "name": { "description": "Immutable. The fully qualified resource name of the engine. This field must be a UTF-8 encoded string with a length limit of 1024 characters. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` engine should be 1-63 characters, and valid characters are /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned.", "type": "string" @@ -10728,6 +10844,97 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfig": { + "description": "Additional config specs for a Media Recommendation engine.", + "id": "GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfig", + "properties": { + "engineFeaturesConfig": { + "$ref": "GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigEngineFeaturesConfig", + "description": "Optional. Additional engine features config." + }, + "optimizationObjective": { + "description": "The optimization objective. e.g., `cvr`. This field together with optimization_objective describe engine metadata to use to control engine training and serving. Currently supported values: `ctr`, `cvr`. If not specified, we choose default based on engine type. Default depends on type of recommendation: `recommended-for-you` =\u003e `ctr` `others-you-may-like` =\u003e `ctr`", + "type": "string" + }, + "optimizationObjectiveConfig": { + "$ref": "GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigOptimizationObjectiveConfig", + "description": "Name and value of the custom threshold for cvr optimization_objective. For target_field `watch-time`, target_field_value must be an integer value indicating the media progress time in seconds between (0, 86400] (excludes 0, includes 86400) (e.g., 90). For target_field `watch-percentage`, the target_field_value must be a valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g., 0.5)." + }, + "trainingState": { + "description": "The training state that the engine is in (e.g. `TRAINING` or `PAUSED`). Since part of the cost of running the service is frequency of training - this can be used to determine when to train engine in order to control cost. If not specified: the default value for `CreateEngine` method is `TRAINING`. The default value for `UpdateEngine` method is to keep the state the same as before.", + "enum": [ + "TRAINING_STATE_UNSPECIFIED", + "PAUSED", + "TRAINING" + ], + "enumDescriptions": [ + "Unspecified training state.", + "The engine training is paused.", + "The engine is training." + ], + "type": "string" + }, + "type": { + "description": "Required. The type of engine. e.g., `recommended-for-you`. This field together with optimization_objective describe engine metadata to use to control engine training and serving. Currently supported values: `recommended-for-you`, `others-you-may-like`, `more-like-this`, `most-popular-items`.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigEngineFeaturesConfig": { + "description": "More feature configs of the selected engine type.", + "id": "GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigEngineFeaturesConfig", + "properties": { + "mostPopularConfig": { + "$ref": "GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigMostPopularFeatureConfig", + "description": "Most popular engine feature config." + }, + "recommendedForYouConfig": { + "$ref": "GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig", + "description": "Recommended for you engine feature config." + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigMostPopularFeatureConfig": { + "description": "Feature configurations that are required for creating a Most Popular engine.", + "id": "GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigMostPopularFeatureConfig", + "properties": { + "timeWindowDays": { + "description": "The time window of which the engine is queried at training and prediction time. Positive integers only. The value translates to the last X days of events. Currently required for the `most-popular-items` engine.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigOptimizationObjectiveConfig": { + "description": "Custom threshold for `cvr` optimization_objective.", + "id": "GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigOptimizationObjectiveConfig", + "properties": { + "targetField": { + "description": "Required. The name of the field to target. Currently supported values: `watch-percentage`, `watch-time`.", + "type": "string" + }, + "targetFieldValueFloat": { + "description": "Required. The threshold to be applied to the target (e.g., 0.5).", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig": { + "description": "Additional feature configurations for creating a `recommended-for-you` engine.", + "id": "GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig", + "properties": { + "contextEventType": { + "description": "The type of event with which the engine is queried at prediction time. If set to `generic`, only `view-item`, `media-play`,and `media-complete` will be used as `context-event` in engine training. If set to `view-home-page`, `view-home-page` will also be used as `context-events` in addition to `view-item`, `media-play`, and `media-complete`. Currently supported for the `recommended-for-you` engine. Currently supported values: `view-home-page`, `generic`.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1EngineSearchEngineConfig": { "description": "Configurations for a Search Engine.", "id": "GoogleCloudDiscoveryengineV1EngineSearchEngineConfig", @@ -10772,6 +10979,10 @@ "description": "Text content of the fact chunk. Can be at most 10K characters long.", "type": "string" }, + "domain": { + "description": "The domain of the source.", + "type": "string" + }, "index": { "description": "The index of this chunk. Currently, only used for the streaming mode.", "format": "int32", @@ -10787,6 +10998,14 @@ }, "description": "More fine-grained information for the source reference.", "type": "object" + }, + "title": { + "description": "The title of the source.", + "type": "string" + }, + "uri": { + "description": "The URI of the source.", + "type": "string" } }, "type": "object" @@ -13449,6 +13668,10 @@ "description": "Configures metadata that is used to generate serving time results (e.g. search results or recommendation predictions). The ServingConfig is passed in the search and predict request and generates results.", "id": "GoogleCloudDiscoveryengineV1ServingConfig", "properties": { + "answerGenerationSpec": { + "$ref": "GoogleCloudDiscoveryengineV1AnswerGenerationSpec", + "description": "Optional. The specification for answer generation." + }, "boostControlIds": { "description": "Boost controls to use in serving path. All triggered boost controls will be applied. Boost controls must be in the same data store as the serving config. Maximum of 20 boost controls.", "items": { @@ -15788,6 +16011,10 @@ "description": "Manages the connection to external data sources for all data stores grouped under a Collection. It's a singleton resource of Collection. The initialization is only supported through DataConnectorService.SetUpDataConnector method, which will create a new Collection and initialize its DataConnector.", "id": "GoogleCloudDiscoveryengineV1alphaDataConnector", "properties": { + "aclEnabled": { + "description": "Optional. Whether the connector will be created with an ACL config. Currently this field only affects Cloud Storage and BigQuery connectors.", + "type": "boolean" + }, "actionConfig": { "$ref": "GoogleCloudDiscoveryengineV1alphaActionConfig", "description": "Optional. Action configurations to make the connector support actions." @@ -15825,6 +16052,27 @@ "readOnly": true, "type": "array" }, + "connectorModes": { + "description": "Optional. The modes enabled for this connector. Default state is CONNECTOR_MODE_UNSPECIFIED.", + "items": { + "enum": [ + "CONNECTOR_MODE_UNSPECIFIED", + "DATA_INGESTION", + "ACTIONS", + "FEDERATED", + "EUA" + ], + "enumDescriptions": [ + "Connector mode unspecified.", + "Connector utilized for data ingestion.", + "Connector utilized for actions.", + "Connector utilized for federated search.", + "Connector utilized for End User Authentication." + ], + "type": "string" + }, + "type": "array" + }, "connectorType": { "description": "Output only. The type of connector. Each source can only map to one type. For example, salesforce, confluence and jira have THIRD_PARTY connector type. It is notmutable once set by system.", "enum": [ @@ -15871,6 +16119,10 @@ }, "type": "array" }, + "endUserConfig": { + "$ref": "GoogleCloudDiscoveryengineV1alphaDataConnectorEndUserConfig", + "description": "Optional. Any params and credentials used specifically for EUA connectors." + }, "entities": { "description": "List of entities from the connected data source to ingest.", "items": { @@ -16024,6 +16276,29 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaDataConnectorEndUserConfig": { + "description": "Any params and credentials used specifically for EUA connectors.", + "id": "GoogleCloudDiscoveryengineV1alphaDataConnectorEndUserConfig", + "properties": { + "additionalParams": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Optional. Any additional parameters needed for EUA.", + "type": "object" + }, + "authParams": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Optional. Any authentication parameters specific to EUA connectors.", + "type": "object" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaDataConnectorRealtimeSyncConfig": { "description": "The configuration for realtime sync to store additional params for realtime sync.", "id": "GoogleCloudDiscoveryengineV1alphaDataConnectorRealtimeSyncConfig", @@ -16594,6 +16869,27 @@ "enableTableAnnotation": { "description": "Optional. If true, the LLM based annotation is added to the table during parsing.", "type": "boolean" + }, + "excludeHtmlClasses": { + "description": "Optional. List of HTML classes to exclude from the parsed content.", + "items": { + "type": "string" + }, + "type": "array" + }, + "excludeHtmlElements": { + "description": "Optional. List of HTML elements to exclude from the parsed content.", + "items": { + "type": "string" + }, + "type": "array" + }, + "excludeHtmlIds": { + "description": "Optional. List of HTML ids to exclude from the parsed content.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" @@ -16810,6 +17106,10 @@ "description": "Additional config specs for a Media Recommendation engine.", "id": "GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig", "properties": { + "engineFeaturesConfig": { + "$ref": "GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigEngineFeaturesConfig", + "description": "Optional. Additional engine features config." + }, "optimizationObjective": { "description": "The optimization objective. e.g., `cvr`. This field together with optimization_objective describe engine metadata to use to control engine training and serving. Currently supported values: `ctr`, `cvr`. If not specified, we choose default based on engine type. Default depends on type of recommendation: `recommended-for-you` =\u003e `ctr` `others-you-may-like` =\u003e `ctr`", "type": "string" @@ -16839,6 +17139,33 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigEngineFeaturesConfig": { + "description": "More feature configs of the selected engine type.", + "id": "GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigEngineFeaturesConfig", + "properties": { + "mostPopularConfig": { + "$ref": "GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigMostPopularFeatureConfig", + "description": "Most popular engine feature config." + }, + "recommendedForYouConfig": { + "$ref": "GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig", + "description": "Recommended for you engine feature config." + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigMostPopularFeatureConfig": { + "description": "Feature configurations that are required for creating a Most Popular engine.", + "id": "GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigMostPopularFeatureConfig", + "properties": { + "timeWindowDays": { + "description": "The time window of which the engine is queried at training and prediction time. Positive integers only. The value translates to the last X days of events. Currently required for the `most-popular-items` engine.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig": { "description": "Custom threshold for `cvr` optimization_objective.", "id": "GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig", @@ -16855,6 +17182,17 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig": { + "description": "Additional feature configurations for creating a `recommended-for-you` engine.", + "id": "GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig", + "properties": { + "contextEventType": { + "description": "The type of event with which the engine is queried at prediction time. If set to `generic`, only `view-item`, `media-play`,and `media-complete` will be used as `context-event` in engine training. If set to `view-home-page`, `view-home-page` will also be used as `context-events` in addition to `view-item`, `media-play`, and `media-complete`. Currently supported for the `recommended-for-you` engine. Currently supported values: `view-home-page`, `generic`.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaEngineRecommendationMetadata": { "description": "Additional information of a recommendation engine.", "id": "GoogleCloudDiscoveryengineV1alphaEngineRecommendationMetadata", @@ -20672,6 +21010,27 @@ "enableTableAnnotation": { "description": "Optional. If true, the LLM based annotation is added to the table during parsing.", "type": "boolean" + }, + "excludeHtmlClasses": { + "description": "Optional. List of HTML classes to exclude from the parsed content.", + "items": { + "type": "string" + }, + "type": "array" + }, + "excludeHtmlElements": { + "description": "Optional. List of HTML elements to exclude from the parsed content.", + "items": { + "type": "string" + }, + "type": "array" + }, + "excludeHtmlIds": { + "description": "Optional. List of HTML ids to exclude from the parsed content.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" @@ -20772,6 +21131,10 @@ ], "type": "string" }, + "mediaRecommendationEngineConfig": { + "$ref": "GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfig", + "description": "Configurations for the Media Engine. Only applicable on the data stores with solution_type SOLUTION_TYPE_RECOMMENDATION and IndustryVertical.MEDIA vertical." + }, "name": { "description": "Immutable. The fully qualified resource name of the engine. This field must be a UTF-8 encoded string with a length limit of 1024 characters. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` engine should be 1-63 characters, and valid characters are /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned.", "type": "string" @@ -20871,6 +21234,97 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfig": { + "description": "Additional config specs for a Media Recommendation engine.", + "id": "GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfig", + "properties": { + "engineFeaturesConfig": { + "$ref": "GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigEngineFeaturesConfig", + "description": "Optional. Additional engine features config." + }, + "optimizationObjective": { + "description": "The optimization objective. e.g., `cvr`. This field together with optimization_objective describe engine metadata to use to control engine training and serving. Currently supported values: `ctr`, `cvr`. If not specified, we choose default based on engine type. Default depends on type of recommendation: `recommended-for-you` =\u003e `ctr` `others-you-may-like` =\u003e `ctr`", + "type": "string" + }, + "optimizationObjectiveConfig": { + "$ref": "GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig", + "description": "Name and value of the custom threshold for cvr optimization_objective. For target_field `watch-time`, target_field_value must be an integer value indicating the media progress time in seconds between (0, 86400] (excludes 0, includes 86400) (e.g., 90). For target_field `watch-percentage`, the target_field_value must be a valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g., 0.5)." + }, + "trainingState": { + "description": "The training state that the engine is in (e.g. `TRAINING` or `PAUSED`). Since part of the cost of running the service is frequency of training - this can be used to determine when to train engine in order to control cost. If not specified: the default value for `CreateEngine` method is `TRAINING`. The default value for `UpdateEngine` method is to keep the state the same as before.", + "enum": [ + "TRAINING_STATE_UNSPECIFIED", + "PAUSED", + "TRAINING" + ], + "enumDescriptions": [ + "Unspecified training state.", + "The engine training is paused.", + "The engine is training." + ], + "type": "string" + }, + "type": { + "description": "Required. The type of engine. e.g., `recommended-for-you`. This field together with optimization_objective describe engine metadata to use to control engine training and serving. Currently supported values: `recommended-for-you`, `others-you-may-like`, `more-like-this`, `most-popular-items`.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigEngineFeaturesConfig": { + "description": "More feature configs of the selected engine type.", + "id": "GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigEngineFeaturesConfig", + "properties": { + "mostPopularConfig": { + "$ref": "GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigMostPopularFeatureConfig", + "description": "Most popular engine feature config." + }, + "recommendedForYouConfig": { + "$ref": "GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig", + "description": "Recommended for you engine feature config." + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigMostPopularFeatureConfig": { + "description": "Feature configurations that are required for creating a Most Popular engine.", + "id": "GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigMostPopularFeatureConfig", + "properties": { + "timeWindowDays": { + "description": "The time window of which the engine is queried at training and prediction time. Positive integers only. The value translates to the last X days of events. Currently required for the `most-popular-items` engine.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig": { + "description": "Custom threshold for `cvr` optimization_objective.", + "id": "GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig", + "properties": { + "targetField": { + "description": "Required. The name of the field to target. Currently supported values: `watch-percentage`, `watch-time`.", + "type": "string" + }, + "targetFieldValueFloat": { + "description": "Required. The threshold to be applied to the target (e.g., 0.5).", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig": { + "description": "Additional feature configurations for creating a `recommended-for-you` engine.", + "id": "GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig", + "properties": { + "contextEventType": { + "description": "The type of event with which the engine is queried at prediction time. If set to `generic`, only `view-item`, `media-play`,and `media-complete` will be used as `context-event` in engine training. If set to `view-home-page`, `view-home-page` will also be used as `context-events` in addition to `view-item`, `media-play`, and `media-complete`. Currently supported for the `recommended-for-you` engine. Currently supported values: `view-home-page`, `generic`.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig": { "description": "Configurations for a Search Engine.", "id": "GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig", diff --git a/discoveryengine/v1/discoveryengine-gen.go b/discoveryengine/v1/discoveryengine-gen.go index b626e0eb870..b6d850df651 100644 --- a/discoveryengine/v1/discoveryengine-gen.go +++ b/discoveryengine/v1/discoveryengine-gen.go @@ -1878,6 +1878,86 @@ func (s GoogleCloudDiscoveryengineV1AnswerCitationSource) MarshalJSON() ([]byte, return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1AnswerGenerationSpec: The specification for +// answer generation. +type GoogleCloudDiscoveryengineV1AnswerGenerationSpec struct { + // UserDefinedClassifierSpec: Optional. The specification for user specified + // classifier spec. + UserDefinedClassifierSpec *GoogleCloudDiscoveryengineV1AnswerGenerationSpecUserDefinedClassifierSpec `json:"userDefinedClassifierSpec,omitempty"` + // ForceSendFields is a list of field names (e.g. "UserDefinedClassifierSpec") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "UserDefinedClassifierSpec") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1AnswerGenerationSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1AnswerGenerationSpec + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1AnswerGenerationSpecUserDefinedClassifierSpec: +// The specification for user defined classifier. +type GoogleCloudDiscoveryengineV1AnswerGenerationSpecUserDefinedClassifierSpec struct { + // EnableUserDefinedClassifier: Optional. Whether or not to enable and include + // user defined classifier. + EnableUserDefinedClassifier bool `json:"enableUserDefinedClassifier,omitempty"` + // ModelId: Optional. The model id to be used for the user defined classifier. + ModelId string `json:"modelId,omitempty"` + // Preamble: Optional. The preamble to be used for the user defined classifier. + Preamble string `json:"preamble,omitempty"` + // Seed: Optional. The seed value to be used for the user defined classifier. + Seed int64 `json:"seed,omitempty"` + // TaskMarker: Optional. The task marker to be used for the user defined + // classifier. + TaskMarker string `json:"taskMarker,omitempty"` + // Temperature: Optional. The temperature value to be used for the user defined + // classifier. + Temperature float64 `json:"temperature,omitempty"` + // TopK: Optional. The top-k value to be used for the user defined classifier. + TopK int64 `json:"topK,omitempty,string"` + // TopP: Optional. The top-p value to be used for the user defined classifier. + TopP float64 `json:"topP,omitempty"` + // ForceSendFields is a list of field names (e.g. + // "EnableUserDefinedClassifier") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "EnableUserDefinedClassifier") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1AnswerGenerationSpecUserDefinedClassifierSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1AnswerGenerationSpecUserDefinedClassifierSpec + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudDiscoveryengineV1AnswerGenerationSpecUserDefinedClassifierSpec) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDiscoveryengineV1AnswerGenerationSpecUserDefinedClassifierSpec + var s1 struct { + Temperature gensupport.JSONFloat64 `json:"temperature"` + TopP gensupport.JSONFloat64 `json:"topP"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Temperature = float64(s1.Temperature) + s.TopP = float64(s1.TopP) + return nil +} + // GoogleCloudDiscoveryengineV1AnswerGroundingSupport: Grounding support for a // claim in `answer_text`. type GoogleCloudDiscoveryengineV1AnswerGroundingSupport struct { @@ -3795,6 +3875,9 @@ type GoogleCloudDiscoveryengineV1CheckGroundingResponseClaim struct { // check, this field will be set to false. In that case, no grounding check was // done for the claim and therefore citation_indices should not be returned. GroundingCheckRequired bool `json:"groundingCheckRequired,omitempty"` + // Score: Confidence score for the claim in the answer candidate, in the range + // of [0, 1]. This is set only when enable_claim_level_score is true. + Score float64 `json:"score,omitempty"` // StartPos: Position indicating the start of the claim in the answer // candidate, measured in bytes. Note that this is not measured in characters // and, therefore, must be rendered in the user interface keeping in mind that @@ -3821,6 +3904,20 @@ func (s GoogleCloudDiscoveryengineV1CheckGroundingResponseClaim) MarshalJSON() ( return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +func (s *GoogleCloudDiscoveryengineV1CheckGroundingResponseClaim) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDiscoveryengineV1CheckGroundingResponseClaim + 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 +} + // GoogleCloudDiscoveryengineV1CheckGroundingSpec: Specification for the // grounding check. type GoogleCloudDiscoveryengineV1CheckGroundingSpec struct { @@ -3830,6 +3927,9 @@ type GoogleCloudDiscoveryengineV1CheckGroundingSpec struct { // lower threshold may lead to more but somewhat weaker citations. If unset, // the threshold will default to 0.6. CitationThreshold float64 `json:"citationThreshold,omitempty"` + // EnableClaimLevelScore: The control flag that enables claim-level grounding + // score in the response. + EnableClaimLevelScore bool `json:"enableClaimLevelScore,omitempty"` // ForceSendFields is a list of field names (e.g. "CitationThreshold") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -5683,7 +5783,8 @@ func (s GoogleCloudDiscoveryengineV1DocumentAclInfoAccessRestriction) MarshalJSO type GoogleCloudDiscoveryengineV1DocumentContent struct { // MimeType: The MIME type of the content. Supported types: * `application/pdf` // (PDF, only native PDFs are supported for now) * `text/html` (HTML) * - // `text/plain` (TXT) * `text/xml` (XML) * `application/json` (JSON) * + // `text/plain` (TXT) * `application/xml` or `text/xml` (XML) * + // `application/json` (JSON) * // `application/vnd.openxmlformats-officedocument.wordprocessingml.document` // (DOCX) * // `application/vnd.openxmlformats-officedocument.presentationml.presentation` @@ -5950,6 +6051,15 @@ type GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigLayoutPars // EnableTableAnnotation: Optional. If true, the LLM based annotation is added // to the table during parsing. EnableTableAnnotation bool `json:"enableTableAnnotation,omitempty"` + // ExcludeHtmlClasses: Optional. List of HTML classes to exclude from the + // parsed content. + ExcludeHtmlClasses []string `json:"excludeHtmlClasses,omitempty"` + // ExcludeHtmlElements: Optional. List of HTML elements to exclude from the + // parsed content. + ExcludeHtmlElements []string `json:"excludeHtmlElements,omitempty"` + // ExcludeHtmlIds: Optional. List of HTML ids to exclude from the parsed + // content. + ExcludeHtmlIds []string `json:"excludeHtmlIds,omitempty"` // ForceSendFields is a list of field names (e.g. "EnableImageAnnotation") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -6110,6 +6220,10 @@ type GoogleCloudDiscoveryengineV1Engine struct { // "MEDIA" - The media industry vertical. // "HEALTHCARE_FHIR" - The healthcare FHIR vertical. IndustryVertical string `json:"industryVertical,omitempty"` + // MediaRecommendationEngineConfig: Configurations for the Media Engine. Only + // applicable on the data stores with solution_type + // SOLUTION_TYPE_RECOMMENDATION and IndustryVertical.MEDIA vertical. + MediaRecommendationEngineConfig *GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfig `json:"mediaRecommendationEngineConfig,omitempty"` // Name: Immutable. The fully qualified resource name of the engine. This field // must be a UTF-8 encoded string with a length limit of 1024 characters. // Format: @@ -6289,6 +6403,184 @@ func (s GoogleCloudDiscoveryengineV1EngineCommonConfig) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfig: +// Additional config specs for a Media Recommendation engine. +type GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfig struct { + // EngineFeaturesConfig: Optional. Additional engine features config. + EngineFeaturesConfig *GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigEngineFeaturesConfig `json:"engineFeaturesConfig,omitempty"` + // OptimizationObjective: The optimization objective. e.g., `cvr`. This field + // together with optimization_objective describe engine metadata to use to + // control engine training and serving. Currently supported values: `ctr`, + // `cvr`. If not specified, we choose default based on engine type. Default + // depends on type of recommendation: `recommended-for-you` => `ctr` + // `others-you-may-like` => `ctr` + OptimizationObjective string `json:"optimizationObjective,omitempty"` + // OptimizationObjectiveConfig: Name and value of the custom threshold for cvr + // optimization_objective. For target_field `watch-time`, target_field_value + // must be an integer value indicating the media progress time in seconds + // between (0, 86400] (excludes 0, includes 86400) (e.g., 90). For target_field + // `watch-percentage`, the target_field_value must be a valid float value + // between (0, 1.0] (excludes 0, includes 1.0) (e.g., 0.5). + OptimizationObjectiveConfig *GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigOptimizationObjectiveConfig `json:"optimizationObjectiveConfig,omitempty"` + // TrainingState: The training state that the engine is in (e.g. `TRAINING` or + // `PAUSED`). Since part of the cost of running the service is frequency of + // training - this can be used to determine when to train engine in order to + // control cost. If not specified: the default value for `CreateEngine` method + // is `TRAINING`. The default value for `UpdateEngine` method is to keep the + // state the same as before. + // + // Possible values: + // "TRAINING_STATE_UNSPECIFIED" - Unspecified training state. + // "PAUSED" - The engine training is paused. + // "TRAINING" - The engine is training. + TrainingState string `json:"trainingState,omitempty"` + // Type: Required. The type of engine. e.g., `recommended-for-you`. This field + // together with optimization_objective describe engine metadata to use to + // control engine training and serving. Currently supported values: + // `recommended-for-you`, `others-you-may-like`, `more-like-this`, + // `most-popular-items`. + Type string `json:"type,omitempty"` + // ForceSendFields is a list of field names (e.g. "EngineFeaturesConfig") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "EngineFeaturesConfig") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigEngineFeatur +// esConfig: More feature configs of the selected engine type. +type GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigEngineFeaturesConfig struct { + // MostPopularConfig: Most popular engine feature config. + MostPopularConfig *GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigMostPopularFeatureConfig `json:"mostPopularConfig,omitempty"` + // RecommendedForYouConfig: Recommended for you engine feature config. + RecommendedForYouConfig *GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig `json:"recommendedForYouConfig,omitempty"` + // ForceSendFields is a list of field names (e.g. "MostPopularConfig") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "MostPopularConfig") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigEngineFeaturesConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigEngineFeaturesConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigMostPopularF +// eatureConfig: Feature configurations that are required for creating a Most +// Popular engine. +type GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigMostPopularFeatureConfig struct { + // TimeWindowDays: The time window of which the engine is queried at training + // and prediction time. Positive integers only. The value translates to the + // last X days of events. Currently required for the `most-popular-items` + // engine. + TimeWindowDays int64 `json:"timeWindowDays,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "TimeWindowDays") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "TimeWindowDays") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigMostPopularFeatureConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigMostPopularFeatureConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigOptimization +// ObjectiveConfig: Custom threshold for `cvr` optimization_objective. +type GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigOptimizationObjectiveConfig struct { + // TargetField: Required. The name of the field to target. Currently supported + // values: `watch-percentage`, `watch-time`. + TargetField string `json:"targetField,omitempty"` + // TargetFieldValueFloat: Required. The threshold to be applied to the target + // (e.g., 0.5). + TargetFieldValueFloat float64 `json:"targetFieldValueFloat,omitempty"` + // ForceSendFields is a list of field names (e.g. "TargetField") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "TargetField") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigOptimizationObjectiveConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigOptimizationObjectiveConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigOptimizationObjectiveConfig) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigOptimizationObjectiveConfig + var s1 struct { + TargetFieldValueFloat gensupport.JSONFloat64 `json:"targetFieldValueFloat"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.TargetFieldValueFloat = float64(s1.TargetFieldValueFloat) + return nil +} + +// GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigRecommendedF +// orYouFeatureConfig: Additional feature configurations for creating a +// `recommended-for-you` engine. +type GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig struct { + // ContextEventType: The type of event with which the engine is queried at + // prediction time. If set to `generic`, only `view-item`, `media-play`,and + // `media-complete` will be used as `context-event` in engine training. If set + // to `view-home-page`, `view-home-page` will also be used as `context-events` + // in addition to `view-item`, `media-play`, and `media-complete`. Currently + // supported for the `recommended-for-you` engine. Currently supported values: + // `view-home-page`, `generic`. + ContextEventType string `json:"contextEventType,omitempty"` + // ForceSendFields is a list of field names (e.g. "ContextEventType") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ContextEventType") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1EngineSearchEngineConfig: Configurations for a // Search Engine. type GoogleCloudDiscoveryengineV1EngineSearchEngineConfig struct { @@ -6332,6 +6624,8 @@ type GoogleCloudDiscoveryengineV1FactChunk struct { // ChunkText: Text content of the fact chunk. Can be at most 10K characters // long. ChunkText string `json:"chunkText,omitempty"` + // Domain: The domain of the source. + Domain string `json:"domain,omitempty"` // Index: The index of this chunk. Currently, only used for the streaming mode. Index int64 `json:"index,omitempty"` // Source: Source from which this fact chunk was retrieved. If it was retrieved @@ -6340,6 +6634,10 @@ type GoogleCloudDiscoveryengineV1FactChunk struct { Source string `json:"source,omitempty"` // SourceMetadata: More fine-grained information for the source reference. SourceMetadata map[string]string `json:"sourceMetadata,omitempty"` + // Title: The title of the source. + Title string `json:"title,omitempty"` + // Uri: The URI of the source. + Uri string `json:"uri,omitempty"` // ForceSendFields is a list of field names (e.g. "ChunkText") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -10430,6 +10728,8 @@ func (s GoogleCloudDiscoveryengineV1SearchResponseSummarySummaryWithMetadata) Ma // predictions). The ServingConfig is passed in the search and predict request // and generates results. type GoogleCloudDiscoveryengineV1ServingConfig struct { + // AnswerGenerationSpec: Optional. The specification for answer generation. + AnswerGenerationSpec *GoogleCloudDiscoveryengineV1AnswerGenerationSpec `json:"answerGenerationSpec,omitempty"` // BoostControlIds: Boost controls to use in serving path. All triggered boost // controls will be applied. Boost controls must be in the same data store as // the serving config. Maximum of 20 boost controls. @@ -10531,15 +10831,15 @@ type GoogleCloudDiscoveryengineV1ServingConfig struct { // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "BoostControlIds") to + // ForceSendFields is a list of field names (e.g. "AnswerGenerationSpec") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BoostControlIds") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See + // NullFields is a list of field names (e.g. "AnswerGenerationSpec") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -13451,6 +13751,10 @@ func (s GoogleCloudDiscoveryengineV1alphaCustomFineTuningSpec) MarshalJSON() ([] // through DataConnectorService.SetUpDataConnector method, which will create a // new Collection and initialize its DataConnector. type GoogleCloudDiscoveryengineV1alphaDataConnector struct { + // AclEnabled: Optional. Whether the connector will be created with an ACL + // config. Currently this field only affects Cloud Storage and BigQuery + // connectors. + AclEnabled bool `json:"aclEnabled,omitempty"` // ActionConfig: Optional. Action configurations to make the connector support // actions. ActionConfig *GoogleCloudDiscoveryengineV1alphaActionConfig `json:"actionConfig,omitempty"` @@ -13471,6 +13775,16 @@ type GoogleCloudDiscoveryengineV1alphaDataConnector struct { // "ALLOWLIST_IN_SERVICE_ATTACHMENT" - Connector requires customer to // allowlist our project in their service attachment. BlockingReasons []string `json:"blockingReasons,omitempty"` + // ConnectorModes: Optional. The modes enabled for this connector. Default + // state is CONNECTOR_MODE_UNSPECIFIED. + // + // Possible values: + // "CONNECTOR_MODE_UNSPECIFIED" - Connector mode unspecified. + // "DATA_INGESTION" - Connector utilized for data ingestion. + // "ACTIONS" - Connector utilized for actions. + // "FEDERATED" - Connector utilized for federated search. + // "EUA" - Connector utilized for End User Authentication. + ConnectorModes []string `json:"connectorModes,omitempty"` // ConnectorType: Output only. The type of connector. Each source can only map // to one type. For example, salesforce, confluence and jira have THIRD_PARTY // connector type. It is notmutable once set by system. @@ -13500,6 +13814,9 @@ type GoogleCloudDiscoveryengineV1alphaDataConnector struct { // DestinationConfigs: Optional. Any target destinations used to connect to // third-party services. DestinationConfigs []*GoogleCloudDiscoveryengineV1alphaDestinationConfig `json:"destinationConfigs,omitempty"` + // EndUserConfig: Optional. Any params and credentials used specifically for + // EUA connectors. + EndUserConfig *GoogleCloudDiscoveryengineV1alphaDataConnectorEndUserConfig `json:"endUserConfig,omitempty"` // Entities: List of entities from the connected data source to ingest. Entities []*GoogleCloudDiscoveryengineV1alphaDataConnectorSourceEntity `json:"entities,omitempty"` // Errors: Output only. The errors from initialization or from the latest @@ -13629,13 +13946,13 @@ type GoogleCloudDiscoveryengineV1alphaDataConnector struct { SyncMode string `json:"syncMode,omitempty"` // UpdateTime: Output only. Timestamp the DataConnector was last updated. UpdateTime string `json:"updateTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActionConfig") to + // ForceSendFields is a list of field names (e.g. "AclEnabled") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ActionConfig") to include in API + // NullFields is a list of field names (e.g. "AclEnabled") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -13647,6 +13964,32 @@ func (s GoogleCloudDiscoveryengineV1alphaDataConnector) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1alphaDataConnectorEndUserConfig: Any params and +// credentials used specifically for EUA connectors. +type GoogleCloudDiscoveryengineV1alphaDataConnectorEndUserConfig struct { + // AdditionalParams: Optional. Any additional parameters needed for EUA. + AdditionalParams googleapi.RawMessage `json:"additionalParams,omitempty"` + // AuthParams: Optional. Any authentication parameters specific to EUA + // connectors. + AuthParams googleapi.RawMessage `json:"authParams,omitempty"` + // ForceSendFields is a list of field names (e.g. "AdditionalParams") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AdditionalParams") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1alphaDataConnectorEndUserConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaDataConnectorEndUserConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1alphaDataConnectorRealtimeSyncConfig: The // configuration for realtime sync to store additional params for realtime // sync. @@ -14418,6 +14761,15 @@ type GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigLayou // EnableTableAnnotation: Optional. If true, the LLM based annotation is added // to the table during parsing. EnableTableAnnotation bool `json:"enableTableAnnotation,omitempty"` + // ExcludeHtmlClasses: Optional. List of HTML classes to exclude from the + // parsed content. + ExcludeHtmlClasses []string `json:"excludeHtmlClasses,omitempty"` + // ExcludeHtmlElements: Optional. List of HTML elements to exclude from the + // parsed content. + ExcludeHtmlElements []string `json:"excludeHtmlElements,omitempty"` + // ExcludeHtmlIds: Optional. List of HTML ids to exclude from the parsed + // content. + ExcludeHtmlIds []string `json:"excludeHtmlIds,omitempty"` // ForceSendFields is a list of field names (e.g. "EnableImageAnnotation") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -14724,6 +15076,8 @@ func (s GoogleCloudDiscoveryengineV1alphaEngineCommonConfig) MarshalJSON() ([]by // GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig: // Additional config specs for a Media Recommendation engine. type GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig struct { + // EngineFeaturesConfig: Optional. Additional engine features config. + EngineFeaturesConfig *GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigEngineFeaturesConfig `json:"engineFeaturesConfig,omitempty"` // OptimizationObjective: The optimization objective. e.g., `cvr`. This field // together with optimization_objective describe engine metadata to use to // control engine training and serving. Currently supported values: `ctr`, @@ -14756,15 +15110,15 @@ type GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig stru // `recommended-for-you`, `others-you-may-like`, `more-like-this`, // `most-popular-items`. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "OptimizationObjective") to + // ForceSendFields is a list of field names (e.g. "EngineFeaturesConfig") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "OptimizationObjective") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See + // NullFields is a list of field names (e.g. "EngineFeaturesConfig") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -14774,6 +15128,58 @@ func (s GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig) return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigEngineF +// eaturesConfig: More feature configs of the selected engine type. +type GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigEngineFeaturesConfig struct { + // MostPopularConfig: Most popular engine feature config. + MostPopularConfig *GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigMostPopularFeatureConfig `json:"mostPopularConfig,omitempty"` + // RecommendedForYouConfig: Recommended for you engine feature config. + RecommendedForYouConfig *GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig `json:"recommendedForYouConfig,omitempty"` + // ForceSendFields is a list of field names (e.g. "MostPopularConfig") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "MostPopularConfig") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigEngineFeaturesConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigEngineFeaturesConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigMostPop +// ularFeatureConfig: Feature configurations that are required for creating a +// Most Popular engine. +type GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigMostPopularFeatureConfig struct { + // TimeWindowDays: The time window of which the engine is queried at training + // and prediction time. Positive integers only. The value translates to the + // last X days of events. Currently required for the `most-popular-items` + // engine. + TimeWindowDays int64 `json:"timeWindowDays,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "TimeWindowDays") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "TimeWindowDays") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigMostPopularFeatureConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigMostPopularFeatureConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimiz // ationObjectiveConfig: Custom threshold for `cvr` optimization_objective. type GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig struct { @@ -14815,6 +15221,36 @@ func (s *GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigO return nil } +// GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigRecomme +// ndedForYouFeatureConfig: Additional feature configurations for creating a +// `recommended-for-you` engine. +type GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig struct { + // ContextEventType: The type of event with which the engine is queried at + // prediction time. If set to `generic`, only `view-item`, `media-play`,and + // `media-complete` will be used as `context-event` in engine training. If set + // to `view-home-page`, `view-home-page` will also be used as `context-events` + // in addition to `view-item`, `media-play`, and `media-complete`. Currently + // supported for the `recommended-for-you` engine. Currently supported values: + // `view-home-page`, `generic`. + ContextEventType string `json:"contextEventType,omitempty"` + // ForceSendFields is a list of field names (e.g. "ContextEventType") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ContextEventType") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1alphaEngineRecommendationMetadata: Additional // information of a recommendation engine. type GoogleCloudDiscoveryengineV1alphaEngineRecommendationMetadata struct { @@ -20100,6 +20536,15 @@ type GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigLayout // EnableTableAnnotation: Optional. If true, the LLM based annotation is added // to the table during parsing. EnableTableAnnotation bool `json:"enableTableAnnotation,omitempty"` + // ExcludeHtmlClasses: Optional. List of HTML classes to exclude from the + // parsed content. + ExcludeHtmlClasses []string `json:"excludeHtmlClasses,omitempty"` + // ExcludeHtmlElements: Optional. List of HTML elements to exclude from the + // parsed content. + ExcludeHtmlElements []string `json:"excludeHtmlElements,omitempty"` + // ExcludeHtmlIds: Optional. List of HTML ids to exclude from the parsed + // content. + ExcludeHtmlIds []string `json:"excludeHtmlIds,omitempty"` // ForceSendFields is a list of field names (e.g. "EnableImageAnnotation") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -20216,6 +20661,10 @@ type GoogleCloudDiscoveryengineV1betaEngine struct { // "MEDIA" - The media industry vertical. // "HEALTHCARE_FHIR" - The healthcare FHIR vertical. IndustryVertical string `json:"industryVertical,omitempty"` + // MediaRecommendationEngineConfig: Configurations for the Media Engine. Only + // applicable on the data stores with solution_type + // SOLUTION_TYPE_RECOMMENDATION and IndustryVertical.MEDIA vertical. + MediaRecommendationEngineConfig *GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfig `json:"mediaRecommendationEngineConfig,omitempty"` // Name: Immutable. The fully qualified resource name of the engine. This field // must be a UTF-8 encoded string with a length limit of 1024 characters. // Format: @@ -20392,6 +20841,184 @@ func (s GoogleCloudDiscoveryengineV1betaEngineCommonConfig) MarshalJSON() ([]byt return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfig: +// Additional config specs for a Media Recommendation engine. +type GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfig struct { + // EngineFeaturesConfig: Optional. Additional engine features config. + EngineFeaturesConfig *GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigEngineFeaturesConfig `json:"engineFeaturesConfig,omitempty"` + // OptimizationObjective: The optimization objective. e.g., `cvr`. This field + // together with optimization_objective describe engine metadata to use to + // control engine training and serving. Currently supported values: `ctr`, + // `cvr`. If not specified, we choose default based on engine type. Default + // depends on type of recommendation: `recommended-for-you` => `ctr` + // `others-you-may-like` => `ctr` + OptimizationObjective string `json:"optimizationObjective,omitempty"` + // OptimizationObjectiveConfig: Name and value of the custom threshold for cvr + // optimization_objective. For target_field `watch-time`, target_field_value + // must be an integer value indicating the media progress time in seconds + // between (0, 86400] (excludes 0, includes 86400) (e.g., 90). For target_field + // `watch-percentage`, the target_field_value must be a valid float value + // between (0, 1.0] (excludes 0, includes 1.0) (e.g., 0.5). + OptimizationObjectiveConfig *GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig `json:"optimizationObjectiveConfig,omitempty"` + // TrainingState: The training state that the engine is in (e.g. `TRAINING` or + // `PAUSED`). Since part of the cost of running the service is frequency of + // training - this can be used to determine when to train engine in order to + // control cost. If not specified: the default value for `CreateEngine` method + // is `TRAINING`. The default value for `UpdateEngine` method is to keep the + // state the same as before. + // + // Possible values: + // "TRAINING_STATE_UNSPECIFIED" - Unspecified training state. + // "PAUSED" - The engine training is paused. + // "TRAINING" - The engine is training. + TrainingState string `json:"trainingState,omitempty"` + // Type: Required. The type of engine. e.g., `recommended-for-you`. This field + // together with optimization_objective describe engine metadata to use to + // control engine training and serving. Currently supported values: + // `recommended-for-you`, `others-you-may-like`, `more-like-this`, + // `most-popular-items`. + Type string `json:"type,omitempty"` + // ForceSendFields is a list of field names (e.g. "EngineFeaturesConfig") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "EngineFeaturesConfig") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigEngineFe +// aturesConfig: More feature configs of the selected engine type. +type GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigEngineFeaturesConfig struct { + // MostPopularConfig: Most popular engine feature config. + MostPopularConfig *GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigMostPopularFeatureConfig `json:"mostPopularConfig,omitempty"` + // RecommendedForYouConfig: Recommended for you engine feature config. + RecommendedForYouConfig *GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig `json:"recommendedForYouConfig,omitempty"` + // ForceSendFields is a list of field names (e.g. "MostPopularConfig") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "MostPopularConfig") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigEngineFeaturesConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigEngineFeaturesConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigMostPopu +// larFeatureConfig: Feature configurations that are required for creating a +// Most Popular engine. +type GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigMostPopularFeatureConfig struct { + // TimeWindowDays: The time window of which the engine is queried at training + // and prediction time. Positive integers only. The value translates to the + // last X days of events. Currently required for the `most-popular-items` + // engine. + TimeWindowDays int64 `json:"timeWindowDays,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "TimeWindowDays") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "TimeWindowDays") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigMostPopularFeatureConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigMostPopularFeatureConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigOptimiza +// tionObjectiveConfig: Custom threshold for `cvr` optimization_objective. +type GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig struct { + // TargetField: Required. The name of the field to target. Currently supported + // values: `watch-percentage`, `watch-time`. + TargetField string `json:"targetField,omitempty"` + // TargetFieldValueFloat: Required. The threshold to be applied to the target + // (e.g., 0.5). + TargetFieldValueFloat float64 `json:"targetFieldValueFloat,omitempty"` + // ForceSendFields is a list of field names (e.g. "TargetField") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "TargetField") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig + var s1 struct { + TargetFieldValueFloat gensupport.JSONFloat64 `json:"targetFieldValueFloat"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.TargetFieldValueFloat = float64(s1.TargetFieldValueFloat) + return nil +} + +// GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigRecommen +// dedForYouFeatureConfig: Additional feature configurations for creating a +// `recommended-for-you` engine. +type GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig struct { + // ContextEventType: The type of event with which the engine is queried at + // prediction time. If set to `generic`, only `view-item`, `media-play`,and + // `media-complete` will be used as `context-event` in engine training. If set + // to `view-home-page`, `view-home-page` will also be used as `context-events` + // in addition to `view-item`, `media-play`, and `media-complete`. Currently + // supported for the `recommended-for-you` engine. Currently supported values: + // `view-home-page`, `generic`. + ContextEventType string `json:"contextEventType,omitempty"` + // ForceSendFields is a list of field names (e.g. "ContextEventType") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ContextEventType") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig: Configurations for // a Search Engine. type GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig struct { @@ -36421,6 +37048,118 @@ func (c *ProjectsLocationsCollectionsEnginesConversationsPatchCall) Do(opts ...g return ret, nil } +type ProjectsLocationsCollectionsEnginesOperationsCancelCall struct { + s *Service + name string + googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest + 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 *ProjectsLocationsCollectionsEnginesOperationsService) Cancel(name string, googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest) *ProjectsLocationsCollectionsEnginesOperationsCancelCall { + c := &ProjectsLocationsCollectionsEnginesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlelongrunningcanceloperationrequest = googlelongrunningcanceloperationrequest + 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 *ProjectsLocationsCollectionsEnginesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesOperationsCancelCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsCollectionsEnginesOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesOperationsCancelCall { + 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 *ProjectsLocationsCollectionsEnginesOperationsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCollectionsEnginesOperationsCancelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlelongrunningcanceloperationrequest) + if err != nil { + return nil, err + } + 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, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "discoveryengine.projects.locations.collections.engines.operations.cancel", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "discoveryengine.projects.locations.collections.engines.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 *ProjectsLocationsCollectionsEnginesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "discoveryengine.projects.locations.collections.engines.operations.cancel", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type ProjectsLocationsCollectionsEnginesOperationsGetCall struct { s *Service name string diff --git a/discoveryengine/v1alpha/discoveryengine-api.json b/discoveryengine/v1alpha/discoveryengine-api.json index ac2f5f0ca82..c1193010ac4 100644 --- a/discoveryengine/v1alpha/discoveryengine-api.json +++ b/discoveryengine/v1alpha/discoveryengine-api.json @@ -9051,7 +9051,7 @@ } } }, - "revision": "20250410", + "revision": "20250419", "rootUrl": "https://discoveryengine.googleapis.com/", "schemas": { "ApiservingMediaRequestInfo": { @@ -10074,6 +10074,60 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1AnswerGenerationSpec": { + "description": "The specification for answer generation.", + "id": "GoogleCloudDiscoveryengineV1AnswerGenerationSpec", + "properties": { + "userDefinedClassifierSpec": { + "$ref": "GoogleCloudDiscoveryengineV1AnswerGenerationSpecUserDefinedClassifierSpec", + "description": "Optional. The specification for user specified classifier spec." + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1AnswerGenerationSpecUserDefinedClassifierSpec": { + "description": "The specification for user defined classifier.", + "id": "GoogleCloudDiscoveryengineV1AnswerGenerationSpecUserDefinedClassifierSpec", + "properties": { + "enableUserDefinedClassifier": { + "description": "Optional. Whether or not to enable and include user defined classifier.", + "type": "boolean" + }, + "modelId": { + "description": "Optional. The model id to be used for the user defined classifier.", + "type": "string" + }, + "preamble": { + "description": "Optional. The preamble to be used for the user defined classifier.", + "type": "string" + }, + "seed": { + "description": "Optional. The seed value to be used for the user defined classifier.", + "format": "int32", + "type": "integer" + }, + "taskMarker": { + "description": "Optional. The task marker to be used for the user defined classifier.", + "type": "string" + }, + "temperature": { + "description": "Optional. The temperature value to be used for the user defined classifier.", + "format": "double", + "type": "number" + }, + "topK": { + "description": "Optional. The top-k value to be used for the user defined classifier.", + "format": "int64", + "type": "string" + }, + "topP": { + "description": "Optional. The top-p value to be used for the user defined classifier.", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1BatchCreateTargetSiteMetadata": { "description": "Metadata related to the progress of the SiteSearchEngineService.BatchCreateTargetSites operation. This will be returned by the google.longrunning.Operation.metadata field.", "id": "GoogleCloudDiscoveryengineV1BatchCreateTargetSiteMetadata", @@ -10966,6 +11020,27 @@ "enableTableAnnotation": { "description": "Optional. If true, the LLM based annotation is added to the table during parsing.", "type": "boolean" + }, + "excludeHtmlClasses": { + "description": "Optional. List of HTML classes to exclude from the parsed content.", + "items": { + "type": "string" + }, + "type": "array" + }, + "excludeHtmlElements": { + "description": "Optional. List of HTML elements to exclude from the parsed content.", + "items": { + "type": "string" + }, + "type": "array" + }, + "excludeHtmlIds": { + "description": "Optional. List of HTML ids to exclude from the parsed content.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" @@ -11066,6 +11141,10 @@ ], "type": "string" }, + "mediaRecommendationEngineConfig": { + "$ref": "GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfig", + "description": "Configurations for the Media Engine. Only applicable on the data stores with solution_type SOLUTION_TYPE_RECOMMENDATION and IndustryVertical.MEDIA vertical." + }, "name": { "description": "Immutable. The fully qualified resource name of the engine. This field must be a UTF-8 encoded string with a length limit of 1024 characters. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` engine should be 1-63 characters, and valid characters are /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned.", "type": "string" @@ -11165,6 +11244,97 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfig": { + "description": "Additional config specs for a Media Recommendation engine.", + "id": "GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfig", + "properties": { + "engineFeaturesConfig": { + "$ref": "GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigEngineFeaturesConfig", + "description": "Optional. Additional engine features config." + }, + "optimizationObjective": { + "description": "The optimization objective. e.g., `cvr`. This field together with optimization_objective describe engine metadata to use to control engine training and serving. Currently supported values: `ctr`, `cvr`. If not specified, we choose default based on engine type. Default depends on type of recommendation: `recommended-for-you` =\u003e `ctr` `others-you-may-like` =\u003e `ctr`", + "type": "string" + }, + "optimizationObjectiveConfig": { + "$ref": "GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigOptimizationObjectiveConfig", + "description": "Name and value of the custom threshold for cvr optimization_objective. For target_field `watch-time`, target_field_value must be an integer value indicating the media progress time in seconds between (0, 86400] (excludes 0, includes 86400) (e.g., 90). For target_field `watch-percentage`, the target_field_value must be a valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g., 0.5)." + }, + "trainingState": { + "description": "The training state that the engine is in (e.g. `TRAINING` or `PAUSED`). Since part of the cost of running the service is frequency of training - this can be used to determine when to train engine in order to control cost. If not specified: the default value for `CreateEngine` method is `TRAINING`. The default value for `UpdateEngine` method is to keep the state the same as before.", + "enum": [ + "TRAINING_STATE_UNSPECIFIED", + "PAUSED", + "TRAINING" + ], + "enumDescriptions": [ + "Unspecified training state.", + "The engine training is paused.", + "The engine is training." + ], + "type": "string" + }, + "type": { + "description": "Required. The type of engine. e.g., `recommended-for-you`. This field together with optimization_objective describe engine metadata to use to control engine training and serving. Currently supported values: `recommended-for-you`, `others-you-may-like`, `more-like-this`, `most-popular-items`.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigEngineFeaturesConfig": { + "description": "More feature configs of the selected engine type.", + "id": "GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigEngineFeaturesConfig", + "properties": { + "mostPopularConfig": { + "$ref": "GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigMostPopularFeatureConfig", + "description": "Most popular engine feature config." + }, + "recommendedForYouConfig": { + "$ref": "GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig", + "description": "Recommended for you engine feature config." + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigMostPopularFeatureConfig": { + "description": "Feature configurations that are required for creating a Most Popular engine.", + "id": "GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigMostPopularFeatureConfig", + "properties": { + "timeWindowDays": { + "description": "The time window of which the engine is queried at training and prediction time. Positive integers only. The value translates to the last X days of events. Currently required for the `most-popular-items` engine.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigOptimizationObjectiveConfig": { + "description": "Custom threshold for `cvr` optimization_objective.", + "id": "GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigOptimizationObjectiveConfig", + "properties": { + "targetField": { + "description": "Required. The name of the field to target. Currently supported values: `watch-percentage`, `watch-time`.", + "type": "string" + }, + "targetFieldValueFloat": { + "description": "Required. The threshold to be applied to the target (e.g., 0.5).", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig": { + "description": "Additional feature configurations for creating a `recommended-for-you` engine.", + "id": "GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig", + "properties": { + "contextEventType": { + "description": "The type of event with which the engine is queried at prediction time. If set to `generic`, only `view-item`, `media-play`,and `media-complete` will be used as `context-event` in engine training. If set to `view-home-page`, `view-home-page` will also be used as `context-events` in addition to `view-item`, `media-play`, and `media-complete`. Currently supported for the `recommended-for-you` engine. Currently supported values: `view-home-page`, `generic`.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1EngineSearchEngineConfig": { "description": "Configurations for a Search Engine.", "id": "GoogleCloudDiscoveryengineV1EngineSearchEngineConfig", @@ -11890,6 +12060,10 @@ "description": "Configures metadata that is used to generate serving time results (e.g. search results or recommendation predictions). The ServingConfig is passed in the search and predict request and generates results.", "id": "GoogleCloudDiscoveryengineV1ServingConfig", "properties": { + "answerGenerationSpec": { + "$ref": "GoogleCloudDiscoveryengineV1AnswerGenerationSpec", + "description": "Optional. The specification for answer generation." + }, "boostControlIds": { "description": "Boost controls to use in serving path. All triggered boost controls will be applied. Boost controls must be in the same data store as the serving config. Maximum of 20 boost controls.", "items": { @@ -12417,6 +12591,13 @@ "$ref": "GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryRequestBoostSpec", "description": "Optional. Specification to boost suggestions matching the condition." }, + "experimentIds": { + "description": "Optional. Experiment ids for this request.", + "items": { + "type": "string" + }, + "type": "array" + }, "includeTailSuggestions": { "description": "Indicates if tail suggestions should be returned if there are no suggestions that match the full query. Even if set to true, if there are suggestions that match the full query, those are returned and no tail suggestions are returned.", "type": "boolean" @@ -13017,6 +13198,60 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaAnswerGenerationSpec": { + "description": "The specification for answer generation.", + "id": "GoogleCloudDiscoveryengineV1alphaAnswerGenerationSpec", + "properties": { + "userDefinedClassifierSpec": { + "$ref": "GoogleCloudDiscoveryengineV1alphaAnswerGenerationSpecUserDefinedClassifierSpec", + "description": "Optional. The specification for user specified classifier spec." + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1alphaAnswerGenerationSpecUserDefinedClassifierSpec": { + "description": "The specification for user defined classifier.", + "id": "GoogleCloudDiscoveryengineV1alphaAnswerGenerationSpecUserDefinedClassifierSpec", + "properties": { + "enableUserDefinedClassifier": { + "description": "Optional. Whether or not to enable and include user defined classifier.", + "type": "boolean" + }, + "modelId": { + "description": "Optional. The model id to be used for the user defined classifier.", + "type": "string" + }, + "preamble": { + "description": "Optional. The preamble to be used for the user defined classifier.", + "type": "string" + }, + "seed": { + "description": "Optional. The seed value to be used for the user defined classifier.", + "format": "int32", + "type": "integer" + }, + "taskMarker": { + "description": "Optional. The task marker to be used for the user defined classifier.", + "type": "string" + }, + "temperature": { + "description": "Optional. The temperature value to be used for the user defined classifier.", + "format": "double", + "type": "number" + }, + "topK": { + "description": "Optional. The top-k value to be used for the user defined classifier.", + "format": "int64", + "type": "string" + }, + "topP": { + "description": "Optional. The top-p value to be used for the user defined classifier.", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaAnswerGroundingSupport": { "description": "Grounding support for a claim in `answer_text`.", "id": "GoogleCloudDiscoveryengineV1alphaAnswerGroundingSupport", @@ -14464,6 +14699,11 @@ "description": "Indicates that this claim required grounding check. When the system decided this claim doesn't require attribution/grounding check, this field will be set to false. In that case, no grounding check was done for the claim and therefore citation_indices should not be returned.", "type": "boolean" }, + "score": { + "description": "Confidence score for the claim in the answer candidate, in the range of [0, 1]. This is set only when enable_claim_level_score is true.", + "format": "double", + "type": "number" + }, "startPos": { "description": "Position indicating the start of the claim in the answer candidate, measured in bytes. Note that this is not measured in characters and, therefore, must be rendered in the user interface keeping in mind that some characters may take more than one byte. For example, if the claim text contains non-ASCII characters, the start and end positions vary when measured in characters (programming-language-dependent) and when measured in bytes (programming-language-independent).", "format": "int32", @@ -14480,6 +14720,10 @@ "description": "The threshold (in [0,1]) used for determining whether a fact must be cited for a claim in the answer candidate. Choosing a higher threshold will lead to fewer but very strong citations, while choosing a lower threshold may lead to more but somewhat weaker citations. If unset, the threshold will default to 0.6.", "format": "double", "type": "number" + }, + "enableClaimLevelScore": { + "description": "The control flag that enables claim-level grounding score in the response.", + "type": "boolean" } }, "type": "object" @@ -15797,6 +16041,10 @@ "description": "Manages the connection to external data sources for all data stores grouped under a Collection. It's a singleton resource of Collection. The initialization is only supported through DataConnectorService.SetUpDataConnector method, which will create a new Collection and initialize its DataConnector.", "id": "GoogleCloudDiscoveryengineV1alphaDataConnector", "properties": { + "aclEnabled": { + "description": "Optional. Whether the connector will be created with an ACL config. Currently this field only affects Cloud Storage and BigQuery connectors.", + "type": "boolean" + }, "actionConfig": { "$ref": "GoogleCloudDiscoveryengineV1alphaActionConfig", "description": "Optional. Action configurations to make the connector support actions." @@ -15834,6 +16082,27 @@ "readOnly": true, "type": "array" }, + "connectorModes": { + "description": "Optional. The modes enabled for this connector. Default state is CONNECTOR_MODE_UNSPECIFIED.", + "items": { + "enum": [ + "CONNECTOR_MODE_UNSPECIFIED", + "DATA_INGESTION", + "ACTIONS", + "FEDERATED", + "EUA" + ], + "enumDescriptions": [ + "Connector mode unspecified.", + "Connector utilized for data ingestion.", + "Connector utilized for actions.", + "Connector utilized for federated search.", + "Connector utilized for End User Authentication." + ], + "type": "string" + }, + "type": "array" + }, "connectorType": { "description": "Output only. The type of connector. Each source can only map to one type. For example, salesforce, confluence and jira have THIRD_PARTY connector type. It is notmutable once set by system.", "enum": [ @@ -15880,6 +16149,10 @@ }, "type": "array" }, + "endUserConfig": { + "$ref": "GoogleCloudDiscoveryengineV1alphaDataConnectorEndUserConfig", + "description": "Optional. Any params and credentials used specifically for EUA connectors." + }, "entities": { "description": "List of entities from the connected data source to ingest.", "items": { @@ -16033,6 +16306,29 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaDataConnectorEndUserConfig": { + "description": "Any params and credentials used specifically for EUA connectors.", + "id": "GoogleCloudDiscoveryengineV1alphaDataConnectorEndUserConfig", + "properties": { + "additionalParams": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Optional. Any additional parameters needed for EUA.", + "type": "object" + }, + "authParams": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Optional. Any authentication parameters specific to EUA connectors.", + "type": "object" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaDataConnectorRealtimeSyncConfig": { "description": "The configuration for realtime sync to store additional params for realtime sync.", "id": "GoogleCloudDiscoveryengineV1alphaDataConnectorRealtimeSyncConfig", @@ -16620,7 +16916,7 @@ "id": "GoogleCloudDiscoveryengineV1alphaDocumentContent", "properties": { "mimeType": { - "description": "The MIME type of the content. Supported types: * `application/pdf` (PDF, only native PDFs are supported for now) * `text/html` (HTML) * `text/plain` (TXT) * `text/xml` (XML) * `application/json` (JSON) * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX) * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX) * `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet` (XLSX) * `application/vnd.ms-excel.sheet.macroenabled.12` (XLSM) The following types are supported only if layout parser is enabled in the data store: * `image/bmp` (BMP) * `image/gif` (GIF) * `image/jpeg` (JPEG) * `image/png` (PNG) * `image/tiff` (TIFF) See https://www.iana.org/assignments/media-types/media-types.xhtml.", + "description": "The MIME type of the content. Supported types: * `application/pdf` (PDF, only native PDFs are supported for now) * `text/html` (HTML) * `text/plain` (TXT) * `application/xml` or `text/xml` (XML) * `application/json` (JSON) * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX) * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX) * `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet` (XLSX) * `application/vnd.ms-excel.sheet.macroenabled.12` (XLSM) The following types are supported only if layout parser is enabled in the data store: * `image/bmp` (BMP) * `image/gif` (GIF) * `image/jpeg` (JPEG) * `image/png` (PNG) * `image/tiff` (TIFF) See https://www.iana.org/assignments/media-types/media-types.xhtml.", "type": "string" }, "rawBytes": { @@ -16788,6 +17084,27 @@ "enableTableAnnotation": { "description": "Optional. If true, the LLM based annotation is added to the table during parsing.", "type": "boolean" + }, + "excludeHtmlClasses": { + "description": "Optional. List of HTML classes to exclude from the parsed content.", + "items": { + "type": "string" + }, + "type": "array" + }, + "excludeHtmlElements": { + "description": "Optional. List of HTML elements to exclude from the parsed content.", + "items": { + "type": "string" + }, + "type": "array" + }, + "excludeHtmlIds": { + "description": "Optional. List of HTML ids to exclude from the parsed content.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" @@ -17036,6 +17353,10 @@ "description": "Additional config specs for a Media Recommendation engine.", "id": "GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig", "properties": { + "engineFeaturesConfig": { + "$ref": "GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigEngineFeaturesConfig", + "description": "Optional. Additional engine features config." + }, "optimizationObjective": { "description": "The optimization objective. e.g., `cvr`. This field together with optimization_objective describe engine metadata to use to control engine training and serving. Currently supported values: `ctr`, `cvr`. If not specified, we choose default based on engine type. Default depends on type of recommendation: `recommended-for-you` =\u003e `ctr` `others-you-may-like` =\u003e `ctr`", "type": "string" @@ -17065,6 +17386,33 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigEngineFeaturesConfig": { + "description": "More feature configs of the selected engine type.", + "id": "GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigEngineFeaturesConfig", + "properties": { + "mostPopularConfig": { + "$ref": "GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigMostPopularFeatureConfig", + "description": "Most popular engine feature config." + }, + "recommendedForYouConfig": { + "$ref": "GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig", + "description": "Recommended for you engine feature config." + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigMostPopularFeatureConfig": { + "description": "Feature configurations that are required for creating a Most Popular engine.", + "id": "GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigMostPopularFeatureConfig", + "properties": { + "timeWindowDays": { + "description": "The time window of which the engine is queried at training and prediction time. Positive integers only. The value translates to the last X days of events. Currently required for the `most-popular-items` engine.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig": { "description": "Custom threshold for `cvr` optimization_objective.", "id": "GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig", @@ -17081,6 +17429,17 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig": { + "description": "Additional feature configurations for creating a `recommended-for-you` engine.", + "id": "GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig", + "properties": { + "contextEventType": { + "description": "The type of event with which the engine is queried at prediction time. If set to `generic`, only `view-item`, `media-play`,and `media-complete` will be used as `context-event` in engine training. If set to `view-home-page`, `view-home-page` will also be used as `context-events` in addition to `view-item`, `media-play`, and `media-complete`. Currently supported for the `recommended-for-you` engine. Currently supported values: `view-home-page`, `generic`.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaEngineRecommendationMetadata": { "description": "Additional information of a recommendation engine.", "id": "GoogleCloudDiscoveryengineV1alphaEngineRecommendationMetadata", @@ -17363,6 +17722,10 @@ "description": "Text content of the fact chunk. Can be at most 10K characters long.", "type": "string" }, + "domain": { + "description": "The domain of the source.", + "type": "string" + }, "index": { "description": "The index of this chunk. Currently, only used for the streaming mode.", "format": "int32", @@ -17378,6 +17741,14 @@ }, "description": "More fine-grained information for the source reference.", "type": "object" + }, + "title": { + "description": "The title of the source.", + "type": "string" + }, + "uri": { + "description": "The URI of the source.", + "type": "string" } }, "type": "object" @@ -17662,6 +18033,10 @@ "description": "The app name of the associated Connector.", "type": "string" }, + "authorizationUri": { + "description": "The authorization uri for the data connector.", + "type": "string" + }, "clientId": { "description": "The client id of the associated Connector.", "type": "string" @@ -21886,6 +22261,10 @@ "description": "Configures metadata that is used to generate serving time results (e.g. search results or recommendation predictions). The ServingConfig is passed in the search and predict request and generates results.", "id": "GoogleCloudDiscoveryengineV1alphaServingConfig", "properties": { + "answerGenerationSpec": { + "$ref": "GoogleCloudDiscoveryengineV1alphaAnswerGenerationSpec", + "description": "Optional. The specification for answer generation." + }, "boostControlIds": { "description": "Boost controls to use in serving path. All triggered boost controls will be applied. Boost controls must be in the same data store as the serving config. Maximum of 20 boost controls.", "items": { @@ -23233,8 +23612,25 @@ "id": "GoogleCloudDiscoveryengineV1alphaWidgetConfigAssistantSettings", "properties": { "googleSearchGroundingEnabled": { - "description": "Whether or not the Google search grounding toggle is shown.", + "deprecated": true, + "description": "Whether or not the Google search grounding toggle is shown. Deprecated. Use web_grounding_type instead.", "type": "boolean" + }, + "webGroundingType": { + "description": "Optional. The type of web grounding to use.", + "enum": [ + "WEB_GROUNDING_TYPE_UNSPECIFIED", + "WEB_GROUNDING_TYPE_DISABLED", + "WEB_GROUNDING_TYPE_GOOGLE_SEARCH", + "WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH" + ], + "enumDescriptions": [ + "Default, unspecified setting. This is the same as disabled.", + "Web grounding is disabled.", + "Grounding with Google Search is enabled.", + "Grounding with Enterprise Web Search is enabled." + ], + "type": "string" } }, "type": "object" @@ -23519,6 +23915,10 @@ "description": "Whether or not to enable autocomplete.", "type": "boolean" }, + "enablePeopleSearch": { + "description": "Optional. If set to true, the widget will enable people search.", + "type": "boolean" + }, "enableQualityFeedback": { "description": "Turn on or off collecting the search result quality feedback from end users.", "type": "boolean" @@ -24616,6 +25016,27 @@ "enableTableAnnotation": { "description": "Optional. If true, the LLM based annotation is added to the table during parsing.", "type": "boolean" + }, + "excludeHtmlClasses": { + "description": "Optional. List of HTML classes to exclude from the parsed content.", + "items": { + "type": "string" + }, + "type": "array" + }, + "excludeHtmlElements": { + "description": "Optional. List of HTML elements to exclude from the parsed content.", + "items": { + "type": "string" + }, + "type": "array" + }, + "excludeHtmlIds": { + "description": "Optional. List of HTML ids to exclude from the parsed content.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" @@ -24716,6 +25137,10 @@ ], "type": "string" }, + "mediaRecommendationEngineConfig": { + "$ref": "GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfig", + "description": "Configurations for the Media Engine. Only applicable on the data stores with solution_type SOLUTION_TYPE_RECOMMENDATION and IndustryVertical.MEDIA vertical." + }, "name": { "description": "Immutable. The fully qualified resource name of the engine. This field must be a UTF-8 encoded string with a length limit of 1024 characters. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` engine should be 1-63 characters, and valid characters are /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned.", "type": "string" @@ -24815,6 +25240,97 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfig": { + "description": "Additional config specs for a Media Recommendation engine.", + "id": "GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfig", + "properties": { + "engineFeaturesConfig": { + "$ref": "GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigEngineFeaturesConfig", + "description": "Optional. Additional engine features config." + }, + "optimizationObjective": { + "description": "The optimization objective. e.g., `cvr`. This field together with optimization_objective describe engine metadata to use to control engine training and serving. Currently supported values: `ctr`, `cvr`. If not specified, we choose default based on engine type. Default depends on type of recommendation: `recommended-for-you` =\u003e `ctr` `others-you-may-like` =\u003e `ctr`", + "type": "string" + }, + "optimizationObjectiveConfig": { + "$ref": "GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig", + "description": "Name and value of the custom threshold for cvr optimization_objective. For target_field `watch-time`, target_field_value must be an integer value indicating the media progress time in seconds between (0, 86400] (excludes 0, includes 86400) (e.g., 90). For target_field `watch-percentage`, the target_field_value must be a valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g., 0.5)." + }, + "trainingState": { + "description": "The training state that the engine is in (e.g. `TRAINING` or `PAUSED`). Since part of the cost of running the service is frequency of training - this can be used to determine when to train engine in order to control cost. If not specified: the default value for `CreateEngine` method is `TRAINING`. The default value for `UpdateEngine` method is to keep the state the same as before.", + "enum": [ + "TRAINING_STATE_UNSPECIFIED", + "PAUSED", + "TRAINING" + ], + "enumDescriptions": [ + "Unspecified training state.", + "The engine training is paused.", + "The engine is training." + ], + "type": "string" + }, + "type": { + "description": "Required. The type of engine. e.g., `recommended-for-you`. This field together with optimization_objective describe engine metadata to use to control engine training and serving. Currently supported values: `recommended-for-you`, `others-you-may-like`, `more-like-this`, `most-popular-items`.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigEngineFeaturesConfig": { + "description": "More feature configs of the selected engine type.", + "id": "GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigEngineFeaturesConfig", + "properties": { + "mostPopularConfig": { + "$ref": "GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigMostPopularFeatureConfig", + "description": "Most popular engine feature config." + }, + "recommendedForYouConfig": { + "$ref": "GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig", + "description": "Recommended for you engine feature config." + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigMostPopularFeatureConfig": { + "description": "Feature configurations that are required for creating a Most Popular engine.", + "id": "GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigMostPopularFeatureConfig", + "properties": { + "timeWindowDays": { + "description": "The time window of which the engine is queried at training and prediction time. Positive integers only. The value translates to the last X days of events. Currently required for the `most-popular-items` engine.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig": { + "description": "Custom threshold for `cvr` optimization_objective.", + "id": "GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig", + "properties": { + "targetField": { + "description": "Required. The name of the field to target. Currently supported values: `watch-percentage`, `watch-time`.", + "type": "string" + }, + "targetFieldValueFloat": { + "description": "Required. The threshold to be applied to the target (e.g., 0.5).", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig": { + "description": "Additional feature configurations for creating a `recommended-for-you` engine.", + "id": "GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig", + "properties": { + "contextEventType": { + "description": "The type of event with which the engine is queried at prediction time. If set to `generic`, only `view-item`, `media-play`,and `media-complete` will be used as `context-event` in engine training. If set to `view-home-page`, `view-home-page` will also be used as `context-events` in addition to `view-item`, `media-play`, and `media-complete`. Currently supported for the `recommended-for-you` engine. Currently supported values: `view-home-page`, `generic`.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig": { "description": "Configurations for a Search Engine.", "id": "GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig", diff --git a/discoveryengine/v1alpha/discoveryengine-gen.go b/discoveryengine/v1alpha/discoveryengine-gen.go index 0c692d11bb6..a2023f7699a 100644 --- a/discoveryengine/v1alpha/discoveryengine-gen.go +++ b/discoveryengine/v1alpha/discoveryengine-gen.go @@ -2594,6 +2594,86 @@ func (s GoogleCloudDiscoveryengineV1AdvancedSiteSearchConfig) MarshalJSON() ([]b return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1AnswerGenerationSpec: The specification for +// answer generation. +type GoogleCloudDiscoveryengineV1AnswerGenerationSpec struct { + // UserDefinedClassifierSpec: Optional. The specification for user specified + // classifier spec. + UserDefinedClassifierSpec *GoogleCloudDiscoveryengineV1AnswerGenerationSpecUserDefinedClassifierSpec `json:"userDefinedClassifierSpec,omitempty"` + // ForceSendFields is a list of field names (e.g. "UserDefinedClassifierSpec") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "UserDefinedClassifierSpec") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1AnswerGenerationSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1AnswerGenerationSpec + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1AnswerGenerationSpecUserDefinedClassifierSpec: +// The specification for user defined classifier. +type GoogleCloudDiscoveryengineV1AnswerGenerationSpecUserDefinedClassifierSpec struct { + // EnableUserDefinedClassifier: Optional. Whether or not to enable and include + // user defined classifier. + EnableUserDefinedClassifier bool `json:"enableUserDefinedClassifier,omitempty"` + // ModelId: Optional. The model id to be used for the user defined classifier. + ModelId string `json:"modelId,omitempty"` + // Preamble: Optional. The preamble to be used for the user defined classifier. + Preamble string `json:"preamble,omitempty"` + // Seed: Optional. The seed value to be used for the user defined classifier. + Seed int64 `json:"seed,omitempty"` + // TaskMarker: Optional. The task marker to be used for the user defined + // classifier. + TaskMarker string `json:"taskMarker,omitempty"` + // Temperature: Optional. The temperature value to be used for the user defined + // classifier. + Temperature float64 `json:"temperature,omitempty"` + // TopK: Optional. The top-k value to be used for the user defined classifier. + TopK int64 `json:"topK,omitempty,string"` + // TopP: Optional. The top-p value to be used for the user defined classifier. + TopP float64 `json:"topP,omitempty"` + // ForceSendFields is a list of field names (e.g. + // "EnableUserDefinedClassifier") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "EnableUserDefinedClassifier") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1AnswerGenerationSpecUserDefinedClassifierSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1AnswerGenerationSpecUserDefinedClassifierSpec + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudDiscoveryengineV1AnswerGenerationSpecUserDefinedClassifierSpec) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDiscoveryengineV1AnswerGenerationSpecUserDefinedClassifierSpec + var s1 struct { + Temperature gensupport.JSONFloat64 `json:"temperature"` + TopP gensupport.JSONFloat64 `json:"topP"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Temperature = float64(s1.Temperature) + s.TopP = float64(s1.TopP) + return nil +} + // GoogleCloudDiscoveryengineV1BatchCreateTargetSiteMetadata: Metadata related // to the progress of the SiteSearchEngineService.BatchCreateTargetSites // operation. This will be returned by the @@ -3804,6 +3884,15 @@ type GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigLayoutPars // EnableTableAnnotation: Optional. If true, the LLM based annotation is added // to the table during parsing. EnableTableAnnotation bool `json:"enableTableAnnotation,omitempty"` + // ExcludeHtmlClasses: Optional. List of HTML classes to exclude from the + // parsed content. + ExcludeHtmlClasses []string `json:"excludeHtmlClasses,omitempty"` + // ExcludeHtmlElements: Optional. List of HTML elements to exclude from the + // parsed content. + ExcludeHtmlElements []string `json:"excludeHtmlElements,omitempty"` + // ExcludeHtmlIds: Optional. List of HTML ids to exclude from the parsed + // content. + ExcludeHtmlIds []string `json:"excludeHtmlIds,omitempty"` // ForceSendFields is a list of field names (e.g. "EnableImageAnnotation") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -3920,6 +4009,10 @@ type GoogleCloudDiscoveryengineV1Engine struct { // "MEDIA" - The media industry vertical. // "HEALTHCARE_FHIR" - The healthcare FHIR vertical. IndustryVertical string `json:"industryVertical,omitempty"` + // MediaRecommendationEngineConfig: Configurations for the Media Engine. Only + // applicable on the data stores with solution_type + // SOLUTION_TYPE_RECOMMENDATION and IndustryVertical.MEDIA vertical. + MediaRecommendationEngineConfig *GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfig `json:"mediaRecommendationEngineConfig,omitempty"` // Name: Immutable. The fully qualified resource name of the engine. This field // must be a UTF-8 encoded string with a length limit of 1024 characters. // Format: @@ -4096,6 +4189,184 @@ func (s GoogleCloudDiscoveryengineV1EngineCommonConfig) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfig: +// Additional config specs for a Media Recommendation engine. +type GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfig struct { + // EngineFeaturesConfig: Optional. Additional engine features config. + EngineFeaturesConfig *GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigEngineFeaturesConfig `json:"engineFeaturesConfig,omitempty"` + // OptimizationObjective: The optimization objective. e.g., `cvr`. This field + // together with optimization_objective describe engine metadata to use to + // control engine training and serving. Currently supported values: `ctr`, + // `cvr`. If not specified, we choose default based on engine type. Default + // depends on type of recommendation: `recommended-for-you` => `ctr` + // `others-you-may-like` => `ctr` + OptimizationObjective string `json:"optimizationObjective,omitempty"` + // OptimizationObjectiveConfig: Name and value of the custom threshold for cvr + // optimization_objective. For target_field `watch-time`, target_field_value + // must be an integer value indicating the media progress time in seconds + // between (0, 86400] (excludes 0, includes 86400) (e.g., 90). For target_field + // `watch-percentage`, the target_field_value must be a valid float value + // between (0, 1.0] (excludes 0, includes 1.0) (e.g., 0.5). + OptimizationObjectiveConfig *GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigOptimizationObjectiveConfig `json:"optimizationObjectiveConfig,omitempty"` + // TrainingState: The training state that the engine is in (e.g. `TRAINING` or + // `PAUSED`). Since part of the cost of running the service is frequency of + // training - this can be used to determine when to train engine in order to + // control cost. If not specified: the default value for `CreateEngine` method + // is `TRAINING`. The default value for `UpdateEngine` method is to keep the + // state the same as before. + // + // Possible values: + // "TRAINING_STATE_UNSPECIFIED" - Unspecified training state. + // "PAUSED" - The engine training is paused. + // "TRAINING" - The engine is training. + TrainingState string `json:"trainingState,omitempty"` + // Type: Required. The type of engine. e.g., `recommended-for-you`. This field + // together with optimization_objective describe engine metadata to use to + // control engine training and serving. Currently supported values: + // `recommended-for-you`, `others-you-may-like`, `more-like-this`, + // `most-popular-items`. + Type string `json:"type,omitempty"` + // ForceSendFields is a list of field names (e.g. "EngineFeaturesConfig") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "EngineFeaturesConfig") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigEngineFeatur +// esConfig: More feature configs of the selected engine type. +type GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigEngineFeaturesConfig struct { + // MostPopularConfig: Most popular engine feature config. + MostPopularConfig *GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigMostPopularFeatureConfig `json:"mostPopularConfig,omitempty"` + // RecommendedForYouConfig: Recommended for you engine feature config. + RecommendedForYouConfig *GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig `json:"recommendedForYouConfig,omitempty"` + // ForceSendFields is a list of field names (e.g. "MostPopularConfig") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "MostPopularConfig") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigEngineFeaturesConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigEngineFeaturesConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigMostPopularF +// eatureConfig: Feature configurations that are required for creating a Most +// Popular engine. +type GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigMostPopularFeatureConfig struct { + // TimeWindowDays: The time window of which the engine is queried at training + // and prediction time. Positive integers only. The value translates to the + // last X days of events. Currently required for the `most-popular-items` + // engine. + TimeWindowDays int64 `json:"timeWindowDays,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "TimeWindowDays") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "TimeWindowDays") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigMostPopularFeatureConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigMostPopularFeatureConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigOptimization +// ObjectiveConfig: Custom threshold for `cvr` optimization_objective. +type GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigOptimizationObjectiveConfig struct { + // TargetField: Required. The name of the field to target. Currently supported + // values: `watch-percentage`, `watch-time`. + TargetField string `json:"targetField,omitempty"` + // TargetFieldValueFloat: Required. The threshold to be applied to the target + // (e.g., 0.5). + TargetFieldValueFloat float64 `json:"targetFieldValueFloat,omitempty"` + // ForceSendFields is a list of field names (e.g. "TargetField") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "TargetField") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigOptimizationObjectiveConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigOptimizationObjectiveConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigOptimizationObjectiveConfig) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigOptimizationObjectiveConfig + var s1 struct { + TargetFieldValueFloat gensupport.JSONFloat64 `json:"targetFieldValueFloat"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.TargetFieldValueFloat = float64(s1.TargetFieldValueFloat) + return nil +} + +// GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigRecommendedF +// orYouFeatureConfig: Additional feature configurations for creating a +// `recommended-for-you` engine. +type GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig struct { + // ContextEventType: The type of event with which the engine is queried at + // prediction time. If set to `generic`, only `view-item`, `media-play`,and + // `media-complete` will be used as `context-event` in engine training. If set + // to `view-home-page`, `view-home-page` will also be used as `context-events` + // in addition to `view-item`, `media-play`, and `media-complete`. Currently + // supported for the `recommended-for-you` engine. Currently supported values: + // `view-home-page`, `generic`. + ContextEventType string `json:"contextEventType,omitempty"` + // ForceSendFields is a list of field names (e.g. "ContextEventType") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ContextEventType") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1EngineSearchEngineConfig: Configurations for a // Search Engine. type GoogleCloudDiscoveryengineV1EngineSearchEngineConfig struct { @@ -5113,6 +5384,8 @@ func (s GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpecMod // predictions). The ServingConfig is passed in the search and predict request // and generates results. type GoogleCloudDiscoveryengineV1ServingConfig struct { + // AnswerGenerationSpec: Optional. The specification for answer generation. + AnswerGenerationSpec *GoogleCloudDiscoveryengineV1AnswerGenerationSpec `json:"answerGenerationSpec,omitempty"` // BoostControlIds: Boost controls to use in serving path. All triggered boost // controls will be applied. Boost controls must be in the same data store as // the serving config. Maximum of 20 boost controls. @@ -5211,15 +5484,15 @@ type GoogleCloudDiscoveryengineV1ServingConfig struct { SynonymsControlIds []string `json:"synonymsControlIds,omitempty"` // UpdateTime: Output only. ServingConfig updated timestamp. UpdateTime string `json:"updateTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "BoostControlIds") to + // ForceSendFields is a list of field names (e.g. "AnswerGenerationSpec") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BoostControlIds") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See + // NullFields is a list of field names (e.g. "AnswerGenerationSpec") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -5789,6 +6062,8 @@ type GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryRequest struct { // BoostSpec: Optional. Specification to boost suggestions matching the // condition. BoostSpec *GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryRequestBoostSpec `json:"boostSpec,omitempty"` + // ExperimentIds: Optional. Experiment ids for this request. + ExperimentIds []string `json:"experimentIds,omitempty"` // IncludeTailSuggestions: Indicates if tail suggestions should be returned if // there are no suggestions that match the full query. Even if set to true, if // there are suggestions that match the full query, those are returned and no @@ -6546,6 +6821,86 @@ func (s GoogleCloudDiscoveryengineV1alphaAnswerCitationSource) MarshalJSON() ([] return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1alphaAnswerGenerationSpec: The specification for +// answer generation. +type GoogleCloudDiscoveryengineV1alphaAnswerGenerationSpec struct { + // UserDefinedClassifierSpec: Optional. The specification for user specified + // classifier spec. + UserDefinedClassifierSpec *GoogleCloudDiscoveryengineV1alphaAnswerGenerationSpecUserDefinedClassifierSpec `json:"userDefinedClassifierSpec,omitempty"` + // ForceSendFields is a list of field names (e.g. "UserDefinedClassifierSpec") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "UserDefinedClassifierSpec") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1alphaAnswerGenerationSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerGenerationSpec + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1alphaAnswerGenerationSpecUserDefinedClassifierSpe +// c: The specification for user defined classifier. +type GoogleCloudDiscoveryengineV1alphaAnswerGenerationSpecUserDefinedClassifierSpec struct { + // EnableUserDefinedClassifier: Optional. Whether or not to enable and include + // user defined classifier. + EnableUserDefinedClassifier bool `json:"enableUserDefinedClassifier,omitempty"` + // ModelId: Optional. The model id to be used for the user defined classifier. + ModelId string `json:"modelId,omitempty"` + // Preamble: Optional. The preamble to be used for the user defined classifier. + Preamble string `json:"preamble,omitempty"` + // Seed: Optional. The seed value to be used for the user defined classifier. + Seed int64 `json:"seed,omitempty"` + // TaskMarker: Optional. The task marker to be used for the user defined + // classifier. + TaskMarker string `json:"taskMarker,omitempty"` + // Temperature: Optional. The temperature value to be used for the user defined + // classifier. + Temperature float64 `json:"temperature,omitempty"` + // TopK: Optional. The top-k value to be used for the user defined classifier. + TopK int64 `json:"topK,omitempty,string"` + // TopP: Optional. The top-p value to be used for the user defined classifier. + TopP float64 `json:"topP,omitempty"` + // ForceSendFields is a list of field names (e.g. + // "EnableUserDefinedClassifier") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "EnableUserDefinedClassifier") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1alphaAnswerGenerationSpecUserDefinedClassifierSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerGenerationSpecUserDefinedClassifierSpec + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudDiscoveryengineV1alphaAnswerGenerationSpecUserDefinedClassifierSpec) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerGenerationSpecUserDefinedClassifierSpec + var s1 struct { + Temperature gensupport.JSONFloat64 `json:"temperature"` + TopP gensupport.JSONFloat64 `json:"topP"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Temperature = float64(s1.Temperature) + s.TopP = float64(s1.TopP) + return nil +} + // GoogleCloudDiscoveryengineV1alphaAnswerGroundingSupport: Grounding support // for a claim in `answer_text`. type GoogleCloudDiscoveryengineV1alphaAnswerGroundingSupport struct { @@ -8541,6 +8896,9 @@ type GoogleCloudDiscoveryengineV1alphaCheckGroundingResponseClaim struct { // check, this field will be set to false. In that case, no grounding check was // done for the claim and therefore citation_indices should not be returned. GroundingCheckRequired bool `json:"groundingCheckRequired,omitempty"` + // Score: Confidence score for the claim in the answer candidate, in the range + // of [0, 1]. This is set only when enable_claim_level_score is true. + Score float64 `json:"score,omitempty"` // StartPos: Position indicating the start of the claim in the answer // candidate, measured in bytes. Note that this is not measured in characters // and, therefore, must be rendered in the user interface keeping in mind that @@ -8567,6 +8925,20 @@ func (s GoogleCloudDiscoveryengineV1alphaCheckGroundingResponseClaim) MarshalJSO return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +func (s *GoogleCloudDiscoveryengineV1alphaCheckGroundingResponseClaim) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDiscoveryengineV1alphaCheckGroundingResponseClaim + 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 +} + // GoogleCloudDiscoveryengineV1alphaCheckGroundingSpec: Specification for the // grounding check. type GoogleCloudDiscoveryengineV1alphaCheckGroundingSpec struct { @@ -8576,6 +8948,9 @@ type GoogleCloudDiscoveryengineV1alphaCheckGroundingSpec struct { // lower threshold may lead to more but somewhat weaker citations. If unset, // the threshold will default to 0.6. CitationThreshold float64 `json:"citationThreshold,omitempty"` + // EnableClaimLevelScore: The control flag that enables claim-level grounding + // score in the response. + EnableClaimLevelScore bool `json:"enableClaimLevelScore,omitempty"` // ForceSendFields is a list of field names (e.g. "CitationThreshold") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -10295,6 +10670,10 @@ func (s GoogleCloudDiscoveryengineV1alphaCustomTuningModel) MarshalJSON() ([]byt // through DataConnectorService.SetUpDataConnector method, which will create a // new Collection and initialize its DataConnector. type GoogleCloudDiscoveryengineV1alphaDataConnector struct { + // AclEnabled: Optional. Whether the connector will be created with an ACL + // config. Currently this field only affects Cloud Storage and BigQuery + // connectors. + AclEnabled bool `json:"aclEnabled,omitempty"` // ActionConfig: Optional. Action configurations to make the connector support // actions. ActionConfig *GoogleCloudDiscoveryengineV1alphaActionConfig `json:"actionConfig,omitempty"` @@ -10315,6 +10694,16 @@ type GoogleCloudDiscoveryengineV1alphaDataConnector struct { // "ALLOWLIST_IN_SERVICE_ATTACHMENT" - Connector requires customer to // allowlist our project in their service attachment. BlockingReasons []string `json:"blockingReasons,omitempty"` + // ConnectorModes: Optional. The modes enabled for this connector. Default + // state is CONNECTOR_MODE_UNSPECIFIED. + // + // Possible values: + // "CONNECTOR_MODE_UNSPECIFIED" - Connector mode unspecified. + // "DATA_INGESTION" - Connector utilized for data ingestion. + // "ACTIONS" - Connector utilized for actions. + // "FEDERATED" - Connector utilized for federated search. + // "EUA" - Connector utilized for End User Authentication. + ConnectorModes []string `json:"connectorModes,omitempty"` // ConnectorType: Output only. The type of connector. Each source can only map // to one type. For example, salesforce, confluence and jira have THIRD_PARTY // connector type. It is notmutable once set by system. @@ -10344,6 +10733,9 @@ type GoogleCloudDiscoveryengineV1alphaDataConnector struct { // DestinationConfigs: Optional. Any target destinations used to connect to // third-party services. DestinationConfigs []*GoogleCloudDiscoveryengineV1alphaDestinationConfig `json:"destinationConfigs,omitempty"` + // EndUserConfig: Optional. Any params and credentials used specifically for + // EUA connectors. + EndUserConfig *GoogleCloudDiscoveryengineV1alphaDataConnectorEndUserConfig `json:"endUserConfig,omitempty"` // Entities: List of entities from the connected data source to ingest. Entities []*GoogleCloudDiscoveryengineV1alphaDataConnectorSourceEntity `json:"entities,omitempty"` // Errors: Output only. The errors from initialization or from the latest @@ -10476,13 +10868,13 @@ type GoogleCloudDiscoveryengineV1alphaDataConnector struct { // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ActionConfig") to + // ForceSendFields is a list of field names (e.g. "AclEnabled") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ActionConfig") to include in API + // NullFields is a list of field names (e.g. "AclEnabled") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -10494,6 +10886,32 @@ func (s GoogleCloudDiscoveryengineV1alphaDataConnector) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1alphaDataConnectorEndUserConfig: Any params and +// credentials used specifically for EUA connectors. +type GoogleCloudDiscoveryengineV1alphaDataConnectorEndUserConfig struct { + // AdditionalParams: Optional. Any additional parameters needed for EUA. + AdditionalParams googleapi.RawMessage `json:"additionalParams,omitempty"` + // AuthParams: Optional. Any authentication parameters specific to EUA + // connectors. + AuthParams googleapi.RawMessage `json:"authParams,omitempty"` + // ForceSendFields is a list of field names (e.g. "AdditionalParams") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AdditionalParams") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1alphaDataConnectorEndUserConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaDataConnectorEndUserConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1alphaDataConnectorRealtimeSyncConfig: The // configuration for realtime sync to store additional params for realtime // sync. @@ -11263,7 +11681,8 @@ func (s GoogleCloudDiscoveryengineV1alphaDocumentAclInfoAccessRestriction) Marsh type GoogleCloudDiscoveryengineV1alphaDocumentContent struct { // MimeType: The MIME type of the content. Supported types: * `application/pdf` // (PDF, only native PDFs are supported for now) * `text/html` (HTML) * - // `text/plain` (TXT) * `text/xml` (XML) * `application/json` (JSON) * + // `text/plain` (TXT) * `application/xml` or `text/xml` (XML) * + // `application/json` (JSON) * // `application/vnd.openxmlformats-officedocument.wordprocessingml.document` // (DOCX) * // `application/vnd.openxmlformats-officedocument.presentationml.presentation` @@ -11533,6 +11952,15 @@ type GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigLayou // EnableTableAnnotation: Optional. If true, the LLM based annotation is added // to the table during parsing. EnableTableAnnotation bool `json:"enableTableAnnotation,omitempty"` + // ExcludeHtmlClasses: Optional. List of HTML classes to exclude from the + // parsed content. + ExcludeHtmlClasses []string `json:"excludeHtmlClasses,omitempty"` + // ExcludeHtmlElements: Optional. List of HTML elements to exclude from the + // parsed content. + ExcludeHtmlElements []string `json:"excludeHtmlElements,omitempty"` + // ExcludeHtmlIds: Optional. List of HTML ids to exclude from the parsed + // content. + ExcludeHtmlIds []string `json:"excludeHtmlIds,omitempty"` // ForceSendFields is a list of field names (e.g. "EnableImageAnnotation") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -11909,6 +12337,8 @@ func (s GoogleCloudDiscoveryengineV1alphaEngineCommonConfig) MarshalJSON() ([]by // GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig: // Additional config specs for a Media Recommendation engine. type GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig struct { + // EngineFeaturesConfig: Optional. Additional engine features config. + EngineFeaturesConfig *GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigEngineFeaturesConfig `json:"engineFeaturesConfig,omitempty"` // OptimizationObjective: The optimization objective. e.g., `cvr`. This field // together with optimization_objective describe engine metadata to use to // control engine training and serving. Currently supported values: `ctr`, @@ -11941,15 +12371,15 @@ type GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig stru // `recommended-for-you`, `others-you-may-like`, `more-like-this`, // `most-popular-items`. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "OptimizationObjective") to + // ForceSendFields is a list of field names (e.g. "EngineFeaturesConfig") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "OptimizationObjective") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See + // NullFields is a list of field names (e.g. "EngineFeaturesConfig") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -11959,6 +12389,58 @@ func (s GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig) return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigEngineF +// eaturesConfig: More feature configs of the selected engine type. +type GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigEngineFeaturesConfig struct { + // MostPopularConfig: Most popular engine feature config. + MostPopularConfig *GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigMostPopularFeatureConfig `json:"mostPopularConfig,omitempty"` + // RecommendedForYouConfig: Recommended for you engine feature config. + RecommendedForYouConfig *GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig `json:"recommendedForYouConfig,omitempty"` + // ForceSendFields is a list of field names (e.g. "MostPopularConfig") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "MostPopularConfig") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigEngineFeaturesConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigEngineFeaturesConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigMostPop +// ularFeatureConfig: Feature configurations that are required for creating a +// Most Popular engine. +type GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigMostPopularFeatureConfig struct { + // TimeWindowDays: The time window of which the engine is queried at training + // and prediction time. Positive integers only. The value translates to the + // last X days of events. Currently required for the `most-popular-items` + // engine. + TimeWindowDays int64 `json:"timeWindowDays,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "TimeWindowDays") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "TimeWindowDays") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigMostPopularFeatureConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigMostPopularFeatureConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimiz // ationObjectiveConfig: Custom threshold for `cvr` optimization_objective. type GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig struct { @@ -12000,6 +12482,36 @@ func (s *GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigO return nil } +// GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigRecomme +// ndedForYouFeatureConfig: Additional feature configurations for creating a +// `recommended-for-you` engine. +type GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig struct { + // ContextEventType: The type of event with which the engine is queried at + // prediction time. If set to `generic`, only `view-item`, `media-play`,and + // `media-complete` will be used as `context-event` in engine training. If set + // to `view-home-page`, `view-home-page` will also be used as `context-events` + // in addition to `view-item`, `media-play`, and `media-complete`. Currently + // supported for the `recommended-for-you` engine. Currently supported values: + // `view-home-page`, `generic`. + ContextEventType string `json:"contextEventType,omitempty"` + // ForceSendFields is a list of field names (e.g. "ContextEventType") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ContextEventType") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1alphaEngineRecommendationMetadata: Additional // information of a recommendation engine. type GoogleCloudDiscoveryengineV1alphaEngineRecommendationMetadata struct { @@ -12370,6 +12882,8 @@ type GoogleCloudDiscoveryengineV1alphaFactChunk struct { // ChunkText: Text content of the fact chunk. Can be at most 10K characters // long. ChunkText string `json:"chunkText,omitempty"` + // Domain: The domain of the source. + Domain string `json:"domain,omitempty"` // Index: The index of this chunk. Currently, only used for the streaming mode. Index int64 `json:"index,omitempty"` // Source: Source from which this fact chunk was retrieved. If it was retrieved @@ -12378,6 +12892,10 @@ type GoogleCloudDiscoveryengineV1alphaFactChunk struct { Source string `json:"source,omitempty"` // SourceMetadata: More fine-grained information for the source reference. SourceMetadata map[string]string `json:"sourceMetadata,omitempty"` + // Title: The title of the source. + Title string `json:"title,omitempty"` + // Uri: The URI of the source. + Uri string `json:"uri,omitempty"` // ForceSendFields is a list of field names (e.g. "ChunkText") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -12776,6 +13294,8 @@ func (s GoogleCloudDiscoveryengineV1alphaGcsSource) MarshalJSON() ([]byte, error type GoogleCloudDiscoveryengineV1alphaGetConnectorSecretResponse struct { // App: The app name of the associated Connector. App string `json:"app,omitempty"` + // AuthorizationUri: The authorization uri for the data connector. + AuthorizationUri string `json:"authorizationUri,omitempty"` // ClientId: The client id of the associated Connector. ClientId string `json:"clientId,omitempty"` // Instance: The instance name of the associated Connector. @@ -19051,6 +19571,8 @@ func (s GoogleCloudDiscoveryengineV1alphaSearchResponseSummarySummaryWithMetadat // predictions). The ServingConfig is passed in the search and predict request // and generates results. type GoogleCloudDiscoveryengineV1alphaServingConfig struct { + // AnswerGenerationSpec: Optional. The specification for answer generation. + AnswerGenerationSpec *GoogleCloudDiscoveryengineV1alphaAnswerGenerationSpec `json:"answerGenerationSpec,omitempty"` // BoostControlIds: Boost controls to use in serving path. All triggered boost // controls will be applied. Boost controls must be in the same data store as // the serving config. Maximum of 20 boost controls. @@ -19171,15 +19693,15 @@ type GoogleCloudDiscoveryengineV1alphaServingConfig struct { // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "BoostControlIds") to + // ForceSendFields is a list of field names (e.g. "AnswerGenerationSpec") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BoostControlIds") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See + // NullFields is a list of field names (e.g. "AnswerGenerationSpec") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -20738,8 +21260,19 @@ func (s GoogleCloudDiscoveryengineV1alphaWidgetConfigAccessSettings) MarshalJSON // the assistant settings of the widget. type GoogleCloudDiscoveryengineV1alphaWidgetConfigAssistantSettings struct { // GoogleSearchGroundingEnabled: Whether or not the Google search grounding - // toggle is shown. + // toggle is shown. Deprecated. Use web_grounding_type instead. GoogleSearchGroundingEnabled bool `json:"googleSearchGroundingEnabled,omitempty"` + // WebGroundingType: Optional. The type of web grounding to use. + // + // Possible values: + // "WEB_GROUNDING_TYPE_UNSPECIFIED" - Default, unspecified setting. This is + // the same as disabled. + // "WEB_GROUNDING_TYPE_DISABLED" - Web grounding is disabled. + // "WEB_GROUNDING_TYPE_GOOGLE_SEARCH" - Grounding with Google Search is + // enabled. + // "WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH" - Grounding with Enterprise Web + // Search is enabled. + WebGroundingType string `json:"webGroundingType,omitempty"` // ForceSendFields is a list of field names (e.g. // "GoogleSearchGroundingEnabled") to unconditionally include in API requests. // By default, fields with empty or default values are omitted from API @@ -21109,6 +21642,9 @@ type GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettings struct { DisableUserEventsCollection bool `json:"disableUserEventsCollection,omitempty"` // EnableAutocomplete: Whether or not to enable autocomplete. EnableAutocomplete bool `json:"enableAutocomplete,omitempty"` + // EnablePeopleSearch: Optional. If set to true, the widget will enable people + // search. + EnablePeopleSearch bool `json:"enablePeopleSearch,omitempty"` // EnableQualityFeedback: Turn on or off collecting the search result quality // feedback from end users. EnableQualityFeedback bool `json:"enableQualityFeedback,omitempty"` @@ -22545,6 +23081,15 @@ type GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigLayout // EnableTableAnnotation: Optional. If true, the LLM based annotation is added // to the table during parsing. EnableTableAnnotation bool `json:"enableTableAnnotation,omitempty"` + // ExcludeHtmlClasses: Optional. List of HTML classes to exclude from the + // parsed content. + ExcludeHtmlClasses []string `json:"excludeHtmlClasses,omitempty"` + // ExcludeHtmlElements: Optional. List of HTML elements to exclude from the + // parsed content. + ExcludeHtmlElements []string `json:"excludeHtmlElements,omitempty"` + // ExcludeHtmlIds: Optional. List of HTML ids to exclude from the parsed + // content. + ExcludeHtmlIds []string `json:"excludeHtmlIds,omitempty"` // ForceSendFields is a list of field names (e.g. "EnableImageAnnotation") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -22661,6 +23206,10 @@ type GoogleCloudDiscoveryengineV1betaEngine struct { // "MEDIA" - The media industry vertical. // "HEALTHCARE_FHIR" - The healthcare FHIR vertical. IndustryVertical string `json:"industryVertical,omitempty"` + // MediaRecommendationEngineConfig: Configurations for the Media Engine. Only + // applicable on the data stores with solution_type + // SOLUTION_TYPE_RECOMMENDATION and IndustryVertical.MEDIA vertical. + MediaRecommendationEngineConfig *GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfig `json:"mediaRecommendationEngineConfig,omitempty"` // Name: Immutable. The fully qualified resource name of the engine. This field // must be a UTF-8 encoded string with a length limit of 1024 characters. // Format: @@ -22837,6 +23386,184 @@ func (s GoogleCloudDiscoveryengineV1betaEngineCommonConfig) MarshalJSON() ([]byt return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfig: +// Additional config specs for a Media Recommendation engine. +type GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfig struct { + // EngineFeaturesConfig: Optional. Additional engine features config. + EngineFeaturesConfig *GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigEngineFeaturesConfig `json:"engineFeaturesConfig,omitempty"` + // OptimizationObjective: The optimization objective. e.g., `cvr`. This field + // together with optimization_objective describe engine metadata to use to + // control engine training and serving. Currently supported values: `ctr`, + // `cvr`. If not specified, we choose default based on engine type. Default + // depends on type of recommendation: `recommended-for-you` => `ctr` + // `others-you-may-like` => `ctr` + OptimizationObjective string `json:"optimizationObjective,omitempty"` + // OptimizationObjectiveConfig: Name and value of the custom threshold for cvr + // optimization_objective. For target_field `watch-time`, target_field_value + // must be an integer value indicating the media progress time in seconds + // between (0, 86400] (excludes 0, includes 86400) (e.g., 90). For target_field + // `watch-percentage`, the target_field_value must be a valid float value + // between (0, 1.0] (excludes 0, includes 1.0) (e.g., 0.5). + OptimizationObjectiveConfig *GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig `json:"optimizationObjectiveConfig,omitempty"` + // TrainingState: The training state that the engine is in (e.g. `TRAINING` or + // `PAUSED`). Since part of the cost of running the service is frequency of + // training - this can be used to determine when to train engine in order to + // control cost. If not specified: the default value for `CreateEngine` method + // is `TRAINING`. The default value for `UpdateEngine` method is to keep the + // state the same as before. + // + // Possible values: + // "TRAINING_STATE_UNSPECIFIED" - Unspecified training state. + // "PAUSED" - The engine training is paused. + // "TRAINING" - The engine is training. + TrainingState string `json:"trainingState,omitempty"` + // Type: Required. The type of engine. e.g., `recommended-for-you`. This field + // together with optimization_objective describe engine metadata to use to + // control engine training and serving. Currently supported values: + // `recommended-for-you`, `others-you-may-like`, `more-like-this`, + // `most-popular-items`. + Type string `json:"type,omitempty"` + // ForceSendFields is a list of field names (e.g. "EngineFeaturesConfig") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "EngineFeaturesConfig") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigEngineFe +// aturesConfig: More feature configs of the selected engine type. +type GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigEngineFeaturesConfig struct { + // MostPopularConfig: Most popular engine feature config. + MostPopularConfig *GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigMostPopularFeatureConfig `json:"mostPopularConfig,omitempty"` + // RecommendedForYouConfig: Recommended for you engine feature config. + RecommendedForYouConfig *GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig `json:"recommendedForYouConfig,omitempty"` + // ForceSendFields is a list of field names (e.g. "MostPopularConfig") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "MostPopularConfig") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigEngineFeaturesConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigEngineFeaturesConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigMostPopu +// larFeatureConfig: Feature configurations that are required for creating a +// Most Popular engine. +type GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigMostPopularFeatureConfig struct { + // TimeWindowDays: The time window of which the engine is queried at training + // and prediction time. Positive integers only. The value translates to the + // last X days of events. Currently required for the `most-popular-items` + // engine. + TimeWindowDays int64 `json:"timeWindowDays,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "TimeWindowDays") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "TimeWindowDays") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigMostPopularFeatureConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigMostPopularFeatureConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigOptimiza +// tionObjectiveConfig: Custom threshold for `cvr` optimization_objective. +type GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig struct { + // TargetField: Required. The name of the field to target. Currently supported + // values: `watch-percentage`, `watch-time`. + TargetField string `json:"targetField,omitempty"` + // TargetFieldValueFloat: Required. The threshold to be applied to the target + // (e.g., 0.5). + TargetFieldValueFloat float64 `json:"targetFieldValueFloat,omitempty"` + // ForceSendFields is a list of field names (e.g. "TargetField") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "TargetField") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig + var s1 struct { + TargetFieldValueFloat gensupport.JSONFloat64 `json:"targetFieldValueFloat"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.TargetFieldValueFloat = float64(s1.TargetFieldValueFloat) + return nil +} + +// GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigRecommen +// dedForYouFeatureConfig: Additional feature configurations for creating a +// `recommended-for-you` engine. +type GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig struct { + // ContextEventType: The type of event with which the engine is queried at + // prediction time. If set to `generic`, only `view-item`, `media-play`,and + // `media-complete` will be used as `context-event` in engine training. If set + // to `view-home-page`, `view-home-page` will also be used as `context-events` + // in addition to `view-item`, `media-play`, and `media-complete`. Currently + // supported for the `recommended-for-you` engine. Currently supported values: + // `view-home-page`, `generic`. + ContextEventType string `json:"contextEventType,omitempty"` + // ForceSendFields is a list of field names (e.g. "ContextEventType") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ContextEventType") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig: Configurations for // a Search Engine. type GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig struct { diff --git a/discoveryengine/v1beta/discoveryengine-api.json b/discoveryengine/v1beta/discoveryengine-api.json index d965f0959b4..e49b170e871 100644 --- a/discoveryengine/v1beta/discoveryengine-api.json +++ b/discoveryengine/v1beta/discoveryengine-api.json @@ -7925,7 +7925,7 @@ } } }, - "revision": "20250410", + "revision": "20250419", "rootUrl": "https://discoveryengine.googleapis.com/", "schemas": { "GoogleApiDistribution": { @@ -8356,6 +8356,60 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1AnswerGenerationSpec": { + "description": "The specification for answer generation.", + "id": "GoogleCloudDiscoveryengineV1AnswerGenerationSpec", + "properties": { + "userDefinedClassifierSpec": { + "$ref": "GoogleCloudDiscoveryengineV1AnswerGenerationSpecUserDefinedClassifierSpec", + "description": "Optional. The specification for user specified classifier spec." + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1AnswerGenerationSpecUserDefinedClassifierSpec": { + "description": "The specification for user defined classifier.", + "id": "GoogleCloudDiscoveryengineV1AnswerGenerationSpecUserDefinedClassifierSpec", + "properties": { + "enableUserDefinedClassifier": { + "description": "Optional. Whether or not to enable and include user defined classifier.", + "type": "boolean" + }, + "modelId": { + "description": "Optional. The model id to be used for the user defined classifier.", + "type": "string" + }, + "preamble": { + "description": "Optional. The preamble to be used for the user defined classifier.", + "type": "string" + }, + "seed": { + "description": "Optional. The seed value to be used for the user defined classifier.", + "format": "int32", + "type": "integer" + }, + "taskMarker": { + "description": "Optional. The task marker to be used for the user defined classifier.", + "type": "string" + }, + "temperature": { + "description": "Optional. The temperature value to be used for the user defined classifier.", + "format": "double", + "type": "number" + }, + "topK": { + "description": "Optional. The top-k value to be used for the user defined classifier.", + "format": "int64", + "type": "string" + }, + "topP": { + "description": "Optional. The top-p value to be used for the user defined classifier.", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1BatchCreateTargetSiteMetadata": { "description": "Metadata related to the progress of the SiteSearchEngineService.BatchCreateTargetSites operation. This will be returned by the google.longrunning.Operation.metadata field.", "id": "GoogleCloudDiscoveryengineV1BatchCreateTargetSiteMetadata", @@ -9248,6 +9302,27 @@ "enableTableAnnotation": { "description": "Optional. If true, the LLM based annotation is added to the table during parsing.", "type": "boolean" + }, + "excludeHtmlClasses": { + "description": "Optional. List of HTML classes to exclude from the parsed content.", + "items": { + "type": "string" + }, + "type": "array" + }, + "excludeHtmlElements": { + "description": "Optional. List of HTML elements to exclude from the parsed content.", + "items": { + "type": "string" + }, + "type": "array" + }, + "excludeHtmlIds": { + "description": "Optional. List of HTML ids to exclude from the parsed content.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" @@ -9348,6 +9423,10 @@ ], "type": "string" }, + "mediaRecommendationEngineConfig": { + "$ref": "GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfig", + "description": "Configurations for the Media Engine. Only applicable on the data stores with solution_type SOLUTION_TYPE_RECOMMENDATION and IndustryVertical.MEDIA vertical." + }, "name": { "description": "Immutable. The fully qualified resource name of the engine. This field must be a UTF-8 encoded string with a length limit of 1024 characters. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` engine should be 1-63 characters, and valid characters are /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned.", "type": "string" @@ -9447,6 +9526,97 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfig": { + "description": "Additional config specs for a Media Recommendation engine.", + "id": "GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfig", + "properties": { + "engineFeaturesConfig": { + "$ref": "GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigEngineFeaturesConfig", + "description": "Optional. Additional engine features config." + }, + "optimizationObjective": { + "description": "The optimization objective. e.g., `cvr`. This field together with optimization_objective describe engine metadata to use to control engine training and serving. Currently supported values: `ctr`, `cvr`. If not specified, we choose default based on engine type. Default depends on type of recommendation: `recommended-for-you` =\u003e `ctr` `others-you-may-like` =\u003e `ctr`", + "type": "string" + }, + "optimizationObjectiveConfig": { + "$ref": "GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigOptimizationObjectiveConfig", + "description": "Name and value of the custom threshold for cvr optimization_objective. For target_field `watch-time`, target_field_value must be an integer value indicating the media progress time in seconds between (0, 86400] (excludes 0, includes 86400) (e.g., 90). For target_field `watch-percentage`, the target_field_value must be a valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g., 0.5)." + }, + "trainingState": { + "description": "The training state that the engine is in (e.g. `TRAINING` or `PAUSED`). Since part of the cost of running the service is frequency of training - this can be used to determine when to train engine in order to control cost. If not specified: the default value for `CreateEngine` method is `TRAINING`. The default value for `UpdateEngine` method is to keep the state the same as before.", + "enum": [ + "TRAINING_STATE_UNSPECIFIED", + "PAUSED", + "TRAINING" + ], + "enumDescriptions": [ + "Unspecified training state.", + "The engine training is paused.", + "The engine is training." + ], + "type": "string" + }, + "type": { + "description": "Required. The type of engine. e.g., `recommended-for-you`. This field together with optimization_objective describe engine metadata to use to control engine training and serving. Currently supported values: `recommended-for-you`, `others-you-may-like`, `more-like-this`, `most-popular-items`.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigEngineFeaturesConfig": { + "description": "More feature configs of the selected engine type.", + "id": "GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigEngineFeaturesConfig", + "properties": { + "mostPopularConfig": { + "$ref": "GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigMostPopularFeatureConfig", + "description": "Most popular engine feature config." + }, + "recommendedForYouConfig": { + "$ref": "GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig", + "description": "Recommended for you engine feature config." + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigMostPopularFeatureConfig": { + "description": "Feature configurations that are required for creating a Most Popular engine.", + "id": "GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigMostPopularFeatureConfig", + "properties": { + "timeWindowDays": { + "description": "The time window of which the engine is queried at training and prediction time. Positive integers only. The value translates to the last X days of events. Currently required for the `most-popular-items` engine.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigOptimizationObjectiveConfig": { + "description": "Custom threshold for `cvr` optimization_objective.", + "id": "GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigOptimizationObjectiveConfig", + "properties": { + "targetField": { + "description": "Required. The name of the field to target. Currently supported values: `watch-percentage`, `watch-time`.", + "type": "string" + }, + "targetFieldValueFloat": { + "description": "Required. The threshold to be applied to the target (e.g., 0.5).", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig": { + "description": "Additional feature configurations for creating a `recommended-for-you` engine.", + "id": "GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig", + "properties": { + "contextEventType": { + "description": "The type of event with which the engine is queried at prediction time. If set to `generic`, only `view-item`, `media-play`,and `media-complete` will be used as `context-event` in engine training. If set to `view-home-page`, `view-home-page` will also be used as `context-events` in addition to `view-item`, `media-play`, and `media-complete`. Currently supported for the `recommended-for-you` engine. Currently supported values: `view-home-page`, `generic`.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1EngineSearchEngineConfig": { "description": "Configurations for a Search Engine.", "id": "GoogleCloudDiscoveryengineV1EngineSearchEngineConfig", @@ -10172,6 +10342,10 @@ "description": "Configures metadata that is used to generate serving time results (e.g. search results or recommendation predictions). The ServingConfig is passed in the search and predict request and generates results.", "id": "GoogleCloudDiscoveryengineV1ServingConfig", "properties": { + "answerGenerationSpec": { + "$ref": "GoogleCloudDiscoveryengineV1AnswerGenerationSpec", + "description": "Optional. The specification for answer generation." + }, "boostControlIds": { "description": "Boost controls to use in serving path. All triggered boost controls will be applied. Boost controls must be in the same data store as the serving config. Maximum of 20 boost controls.", "items": { @@ -12148,6 +12322,10 @@ "description": "Manages the connection to external data sources for all data stores grouped under a Collection. It's a singleton resource of Collection. The initialization is only supported through DataConnectorService.SetUpDataConnector method, which will create a new Collection and initialize its DataConnector.", "id": "GoogleCloudDiscoveryengineV1alphaDataConnector", "properties": { + "aclEnabled": { + "description": "Optional. Whether the connector will be created with an ACL config. Currently this field only affects Cloud Storage and BigQuery connectors.", + "type": "boolean" + }, "actionConfig": { "$ref": "GoogleCloudDiscoveryengineV1alphaActionConfig", "description": "Optional. Action configurations to make the connector support actions." @@ -12185,6 +12363,27 @@ "readOnly": true, "type": "array" }, + "connectorModes": { + "description": "Optional. The modes enabled for this connector. Default state is CONNECTOR_MODE_UNSPECIFIED.", + "items": { + "enum": [ + "CONNECTOR_MODE_UNSPECIFIED", + "DATA_INGESTION", + "ACTIONS", + "FEDERATED", + "EUA" + ], + "enumDescriptions": [ + "Connector mode unspecified.", + "Connector utilized for data ingestion.", + "Connector utilized for actions.", + "Connector utilized for federated search.", + "Connector utilized for End User Authentication." + ], + "type": "string" + }, + "type": "array" + }, "connectorType": { "description": "Output only. The type of connector. Each source can only map to one type. For example, salesforce, confluence and jira have THIRD_PARTY connector type. It is notmutable once set by system.", "enum": [ @@ -12231,6 +12430,10 @@ }, "type": "array" }, + "endUserConfig": { + "$ref": "GoogleCloudDiscoveryengineV1alphaDataConnectorEndUserConfig", + "description": "Optional. Any params and credentials used specifically for EUA connectors." + }, "entities": { "description": "List of entities from the connected data source to ingest.", "items": { @@ -12384,6 +12587,29 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaDataConnectorEndUserConfig": { + "description": "Any params and credentials used specifically for EUA connectors.", + "id": "GoogleCloudDiscoveryengineV1alphaDataConnectorEndUserConfig", + "properties": { + "additionalParams": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Optional. Any additional parameters needed for EUA.", + "type": "object" + }, + "authParams": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Optional. Any authentication parameters specific to EUA connectors.", + "type": "object" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaDataConnectorRealtimeSyncConfig": { "description": "The configuration for realtime sync to store additional params for realtime sync.", "id": "GoogleCloudDiscoveryengineV1alphaDataConnectorRealtimeSyncConfig", @@ -12954,6 +13180,27 @@ "enableTableAnnotation": { "description": "Optional. If true, the LLM based annotation is added to the table during parsing.", "type": "boolean" + }, + "excludeHtmlClasses": { + "description": "Optional. List of HTML classes to exclude from the parsed content.", + "items": { + "type": "string" + }, + "type": "array" + }, + "excludeHtmlElements": { + "description": "Optional. List of HTML elements to exclude from the parsed content.", + "items": { + "type": "string" + }, + "type": "array" + }, + "excludeHtmlIds": { + "description": "Optional. List of HTML ids to exclude from the parsed content.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" @@ -13170,6 +13417,10 @@ "description": "Additional config specs for a Media Recommendation engine.", "id": "GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig", "properties": { + "engineFeaturesConfig": { + "$ref": "GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigEngineFeaturesConfig", + "description": "Optional. Additional engine features config." + }, "optimizationObjective": { "description": "The optimization objective. e.g., `cvr`. This field together with optimization_objective describe engine metadata to use to control engine training and serving. Currently supported values: `ctr`, `cvr`. If not specified, we choose default based on engine type. Default depends on type of recommendation: `recommended-for-you` =\u003e `ctr` `others-you-may-like` =\u003e `ctr`", "type": "string" @@ -13199,6 +13450,33 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigEngineFeaturesConfig": { + "description": "More feature configs of the selected engine type.", + "id": "GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigEngineFeaturesConfig", + "properties": { + "mostPopularConfig": { + "$ref": "GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigMostPopularFeatureConfig", + "description": "Most popular engine feature config." + }, + "recommendedForYouConfig": { + "$ref": "GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig", + "description": "Recommended for you engine feature config." + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigMostPopularFeatureConfig": { + "description": "Feature configurations that are required for creating a Most Popular engine.", + "id": "GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigMostPopularFeatureConfig", + "properties": { + "timeWindowDays": { + "description": "The time window of which the engine is queried at training and prediction time. Positive integers only. The value translates to the last X days of events. Currently required for the `most-popular-items` engine.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig": { "description": "Custom threshold for `cvr` optimization_objective.", "id": "GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig", @@ -13215,6 +13493,17 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig": { + "description": "Additional feature configurations for creating a `recommended-for-you` engine.", + "id": "GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig", + "properties": { + "contextEventType": { + "description": "The type of event with which the engine is queried at prediction time. If set to `generic`, only `view-item`, `media-play`,and `media-complete` will be used as `context-event` in engine training. If set to `view-home-page`, `view-home-page` will also be used as `context-events` in addition to `view-item`, `media-play`, and `media-complete`. Currently supported for the `recommended-for-you` engine. Currently supported values: `view-home-page`, `generic`.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaEngineRecommendationMetadata": { "description": "Additional information of a recommendation engine.", "id": "GoogleCloudDiscoveryengineV1alphaEngineRecommendationMetadata", @@ -16102,6 +16391,13 @@ "$ref": "GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryRequestBoostSpec", "description": "Optional. Specification to boost suggestions matching the condition." }, + "experimentIds": { + "description": "Optional. Experiment ids for this request.", + "items": { + "type": "string" + }, + "type": "array" + }, "includeTailSuggestions": { "description": "Indicates if tail suggestions should be returned if there are no suggestions that match the full query. Even if set to true, if there are suggestions that match the full query, those are returned and no tail suggestions are returned.", "type": "boolean" @@ -16659,6 +16955,60 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1betaAnswerGenerationSpec": { + "description": "The specification for answer generation.", + "id": "GoogleCloudDiscoveryengineV1betaAnswerGenerationSpec", + "properties": { + "userDefinedClassifierSpec": { + "$ref": "GoogleCloudDiscoveryengineV1betaAnswerGenerationSpecUserDefinedClassifierSpec", + "description": "Optional. The specification for user specified classifier spec." + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1betaAnswerGenerationSpecUserDefinedClassifierSpec": { + "description": "The specification for user defined classifier.", + "id": "GoogleCloudDiscoveryengineV1betaAnswerGenerationSpecUserDefinedClassifierSpec", + "properties": { + "enableUserDefinedClassifier": { + "description": "Optional. Whether or not to enable and include user defined classifier.", + "type": "boolean" + }, + "modelId": { + "description": "Optional. The model id to be used for the user defined classifier.", + "type": "string" + }, + "preamble": { + "description": "Optional. The preamble to be used for the user defined classifier.", + "type": "string" + }, + "seed": { + "description": "Optional. The seed value to be used for the user defined classifier.", + "format": "int32", + "type": "integer" + }, + "taskMarker": { + "description": "Optional. The task marker to be used for the user defined classifier.", + "type": "string" + }, + "temperature": { + "description": "Optional. The temperature value to be used for the user defined classifier.", + "format": "double", + "type": "number" + }, + "topK": { + "description": "Optional. The top-k value to be used for the user defined classifier.", + "format": "int64", + "type": "string" + }, + "topP": { + "description": "Optional. The top-p value to be used for the user defined classifier.", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1betaAnswerGroundingSupport": { "description": "Grounding support for a claim in `answer_text`.", "id": "GoogleCloudDiscoveryengineV1betaAnswerGroundingSupport", @@ -18078,6 +18428,11 @@ "description": "Indicates that this claim required grounding check. When the system decided this claim doesn't require attribution/grounding check, this field will be set to false. In that case, no grounding check was done for the claim and therefore citation_indices should not be returned.", "type": "boolean" }, + "score": { + "description": "Confidence score for the claim in the answer candidate, in the range of [0, 1]. This is set only when enable_claim_level_score is true.", + "format": "double", + "type": "number" + }, "startPos": { "description": "Position indicating the start of the claim in the answer candidate, measured in bytes. Note that this is not measured in characters and, therefore, must be rendered in the user interface keeping in mind that some characters may take more than one byte. For example, if the claim text contains non-ASCII characters, the start and end positions vary when measured in characters (programming-language-dependent) and when measured in bytes (programming-language-independent).", "format": "int32", @@ -18094,6 +18449,10 @@ "description": "The threshold (in [0,1]) used for determining whether a fact must be cited for a claim in the answer candidate. Choosing a higher threshold will lead to fewer but very strong citations, while choosing a lower threshold may lead to more but somewhat weaker citations. If unset, the threshold will default to 0.6.", "format": "double", "type": "number" + }, + "enableClaimLevelScore": { + "description": "The control flag that enables claim-level grounding score in the response.", + "type": "boolean" } }, "type": "object" @@ -19517,7 +19876,7 @@ "id": "GoogleCloudDiscoveryengineV1betaDocumentContent", "properties": { "mimeType": { - "description": "The MIME type of the content. Supported types: * `application/pdf` (PDF, only native PDFs are supported for now) * `text/html` (HTML) * `text/plain` (TXT) * `text/xml` (XML) * `application/json` (JSON) * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX) * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX) * `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet` (XLSX) * `application/vnd.ms-excel.sheet.macroenabled.12` (XLSM) The following types are supported only if layout parser is enabled in the data store: * `image/bmp` (BMP) * `image/gif` (GIF) * `image/jpeg` (JPEG) * `image/png` (PNG) * `image/tiff` (TIFF) See https://www.iana.org/assignments/media-types/media-types.xhtml.", + "description": "The MIME type of the content. Supported types: * `application/pdf` (PDF, only native PDFs are supported for now) * `text/html` (HTML) * `text/plain` (TXT) * `application/xml` or `text/xml` (XML) * `application/json` (JSON) * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX) * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX) * `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet` (XLSX) * `application/vnd.ms-excel.sheet.macroenabled.12` (XLSM) The following types are supported only if layout parser is enabled in the data store: * `image/bmp` (BMP) * `image/gif` (GIF) * `image/jpeg` (JPEG) * `image/png` (PNG) * `image/tiff` (TIFF) See https://www.iana.org/assignments/media-types/media-types.xhtml.", "type": "string" }, "rawBytes": { @@ -19685,6 +20044,27 @@ "enableTableAnnotation": { "description": "Optional. If true, the LLM based annotation is added to the table during parsing.", "type": "boolean" + }, + "excludeHtmlClasses": { + "description": "Optional. List of HTML classes to exclude from the parsed content.", + "items": { + "type": "string" + }, + "type": "array" + }, + "excludeHtmlElements": { + "description": "Optional. List of HTML elements to exclude from the parsed content.", + "items": { + "type": "string" + }, + "type": "array" + }, + "excludeHtmlIds": { + "description": "Optional. List of HTML ids to exclude from the parsed content.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" @@ -19817,6 +20197,10 @@ ], "type": "string" }, + "mediaRecommendationEngineConfig": { + "$ref": "GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfig", + "description": "Configurations for the Media Engine. Only applicable on the data stores with solution_type SOLUTION_TYPE_RECOMMENDATION and IndustryVertical.MEDIA vertical." + }, "name": { "description": "Immutable. The fully qualified resource name of the engine. This field must be a UTF-8 encoded string with a length limit of 1024 characters. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` engine should be 1-63 characters, and valid characters are /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned.", "type": "string" @@ -19916,6 +20300,97 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfig": { + "description": "Additional config specs for a Media Recommendation engine.", + "id": "GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfig", + "properties": { + "engineFeaturesConfig": { + "$ref": "GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigEngineFeaturesConfig", + "description": "Optional. Additional engine features config." + }, + "optimizationObjective": { + "description": "The optimization objective. e.g., `cvr`. This field together with optimization_objective describe engine metadata to use to control engine training and serving. Currently supported values: `ctr`, `cvr`. If not specified, we choose default based on engine type. Default depends on type of recommendation: `recommended-for-you` =\u003e `ctr` `others-you-may-like` =\u003e `ctr`", + "type": "string" + }, + "optimizationObjectiveConfig": { + "$ref": "GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig", + "description": "Name and value of the custom threshold for cvr optimization_objective. For target_field `watch-time`, target_field_value must be an integer value indicating the media progress time in seconds between (0, 86400] (excludes 0, includes 86400) (e.g., 90). For target_field `watch-percentage`, the target_field_value must be a valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g., 0.5)." + }, + "trainingState": { + "description": "The training state that the engine is in (e.g. `TRAINING` or `PAUSED`). Since part of the cost of running the service is frequency of training - this can be used to determine when to train engine in order to control cost. If not specified: the default value for `CreateEngine` method is `TRAINING`. The default value for `UpdateEngine` method is to keep the state the same as before.", + "enum": [ + "TRAINING_STATE_UNSPECIFIED", + "PAUSED", + "TRAINING" + ], + "enumDescriptions": [ + "Unspecified training state.", + "The engine training is paused.", + "The engine is training." + ], + "type": "string" + }, + "type": { + "description": "Required. The type of engine. e.g., `recommended-for-you`. This field together with optimization_objective describe engine metadata to use to control engine training and serving. Currently supported values: `recommended-for-you`, `others-you-may-like`, `more-like-this`, `most-popular-items`.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigEngineFeaturesConfig": { + "description": "More feature configs of the selected engine type.", + "id": "GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigEngineFeaturesConfig", + "properties": { + "mostPopularConfig": { + "$ref": "GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigMostPopularFeatureConfig", + "description": "Most popular engine feature config." + }, + "recommendedForYouConfig": { + "$ref": "GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig", + "description": "Recommended for you engine feature config." + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigMostPopularFeatureConfig": { + "description": "Feature configurations that are required for creating a Most Popular engine.", + "id": "GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigMostPopularFeatureConfig", + "properties": { + "timeWindowDays": { + "description": "The time window of which the engine is queried at training and prediction time. Positive integers only. The value translates to the last X days of events. Currently required for the `most-popular-items` engine.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig": { + "description": "Custom threshold for `cvr` optimization_objective.", + "id": "GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig", + "properties": { + "targetField": { + "description": "Required. The name of the field to target. Currently supported values: `watch-percentage`, `watch-time`.", + "type": "string" + }, + "targetFieldValueFloat": { + "description": "Required. The threshold to be applied to the target (e.g., 0.5).", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig": { + "description": "Additional feature configurations for creating a `recommended-for-you` engine.", + "id": "GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig", + "properties": { + "contextEventType": { + "description": "The type of event with which the engine is queried at prediction time. If set to `generic`, only `view-item`, `media-play`,and `media-complete` will be used as `context-event` in engine training. If set to `view-home-page`, `view-home-page` will also be used as `context-events` in addition to `view-item`, `media-play`, and `media-complete`. Currently supported for the `recommended-for-you` engine. Currently supported values: `view-home-page`, `generic`.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig": { "description": "Configurations for a Search Engine.", "id": "GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig", @@ -20050,6 +20525,10 @@ "description": "Text content of the fact chunk. Can be at most 10K characters long.", "type": "string" }, + "domain": { + "description": "The domain of the source.", + "type": "string" + }, "index": { "description": "The index of this chunk. Currently, only used for the streaming mode.", "format": "int32", @@ -20065,6 +20544,14 @@ }, "description": "More fine-grained information for the source reference.", "type": "object" + }, + "title": { + "description": "The title of the source.", + "type": "string" + }, + "uri": { + "description": "The URI of the source.", + "type": "string" } }, "type": "object" @@ -23797,6 +24284,10 @@ "description": "Configures metadata that is used to generate serving time results (e.g. search results or recommendation predictions). The ServingConfig is passed in the search and predict request and generates results.", "id": "GoogleCloudDiscoveryengineV1betaServingConfig", "properties": { + "answerGenerationSpec": { + "$ref": "GoogleCloudDiscoveryengineV1betaAnswerGenerationSpec", + "description": "Optional. The specification for answer generation." + }, "boostControlIds": { "description": "Boost controls to use in serving path. All triggered boost controls will be applied. Boost controls must be in the same data store as the serving config. Maximum of 20 boost controls.", "items": { diff --git a/discoveryengine/v1beta/discoveryengine-gen.go b/discoveryengine/v1beta/discoveryengine-gen.go index 37ea2c8f939..ac59ac61ec2 100644 --- a/discoveryengine/v1beta/discoveryengine-gen.go +++ b/discoveryengine/v1beta/discoveryengine-gen.go @@ -1779,6 +1779,86 @@ func (s GoogleCloudDiscoveryengineV1AdvancedSiteSearchConfig) MarshalJSON() ([]b return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1AnswerGenerationSpec: The specification for +// answer generation. +type GoogleCloudDiscoveryengineV1AnswerGenerationSpec struct { + // UserDefinedClassifierSpec: Optional. The specification for user specified + // classifier spec. + UserDefinedClassifierSpec *GoogleCloudDiscoveryengineV1AnswerGenerationSpecUserDefinedClassifierSpec `json:"userDefinedClassifierSpec,omitempty"` + // ForceSendFields is a list of field names (e.g. "UserDefinedClassifierSpec") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "UserDefinedClassifierSpec") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1AnswerGenerationSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1AnswerGenerationSpec + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1AnswerGenerationSpecUserDefinedClassifierSpec: +// The specification for user defined classifier. +type GoogleCloudDiscoveryengineV1AnswerGenerationSpecUserDefinedClassifierSpec struct { + // EnableUserDefinedClassifier: Optional. Whether or not to enable and include + // user defined classifier. + EnableUserDefinedClassifier bool `json:"enableUserDefinedClassifier,omitempty"` + // ModelId: Optional. The model id to be used for the user defined classifier. + ModelId string `json:"modelId,omitempty"` + // Preamble: Optional. The preamble to be used for the user defined classifier. + Preamble string `json:"preamble,omitempty"` + // Seed: Optional. The seed value to be used for the user defined classifier. + Seed int64 `json:"seed,omitempty"` + // TaskMarker: Optional. The task marker to be used for the user defined + // classifier. + TaskMarker string `json:"taskMarker,omitempty"` + // Temperature: Optional. The temperature value to be used for the user defined + // classifier. + Temperature float64 `json:"temperature,omitempty"` + // TopK: Optional. The top-k value to be used for the user defined classifier. + TopK int64 `json:"topK,omitempty,string"` + // TopP: Optional. The top-p value to be used for the user defined classifier. + TopP float64 `json:"topP,omitempty"` + // ForceSendFields is a list of field names (e.g. + // "EnableUserDefinedClassifier") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "EnableUserDefinedClassifier") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1AnswerGenerationSpecUserDefinedClassifierSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1AnswerGenerationSpecUserDefinedClassifierSpec + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudDiscoveryengineV1AnswerGenerationSpecUserDefinedClassifierSpec) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDiscoveryengineV1AnswerGenerationSpecUserDefinedClassifierSpec + var s1 struct { + Temperature gensupport.JSONFloat64 `json:"temperature"` + TopP gensupport.JSONFloat64 `json:"topP"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Temperature = float64(s1.Temperature) + s.TopP = float64(s1.TopP) + return nil +} + // GoogleCloudDiscoveryengineV1BatchCreateTargetSiteMetadata: Metadata related // to the progress of the SiteSearchEngineService.BatchCreateTargetSites // operation. This will be returned by the @@ -2989,6 +3069,15 @@ type GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigLayoutPars // EnableTableAnnotation: Optional. If true, the LLM based annotation is added // to the table during parsing. EnableTableAnnotation bool `json:"enableTableAnnotation,omitempty"` + // ExcludeHtmlClasses: Optional. List of HTML classes to exclude from the + // parsed content. + ExcludeHtmlClasses []string `json:"excludeHtmlClasses,omitempty"` + // ExcludeHtmlElements: Optional. List of HTML elements to exclude from the + // parsed content. + ExcludeHtmlElements []string `json:"excludeHtmlElements,omitempty"` + // ExcludeHtmlIds: Optional. List of HTML ids to exclude from the parsed + // content. + ExcludeHtmlIds []string `json:"excludeHtmlIds,omitempty"` // ForceSendFields is a list of field names (e.g. "EnableImageAnnotation") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -3105,6 +3194,10 @@ type GoogleCloudDiscoveryengineV1Engine struct { // "MEDIA" - The media industry vertical. // "HEALTHCARE_FHIR" - The healthcare FHIR vertical. IndustryVertical string `json:"industryVertical,omitempty"` + // MediaRecommendationEngineConfig: Configurations for the Media Engine. Only + // applicable on the data stores with solution_type + // SOLUTION_TYPE_RECOMMENDATION and IndustryVertical.MEDIA vertical. + MediaRecommendationEngineConfig *GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfig `json:"mediaRecommendationEngineConfig,omitempty"` // Name: Immutable. The fully qualified resource name of the engine. This field // must be a UTF-8 encoded string with a length limit of 1024 characters. // Format: @@ -3281,6 +3374,184 @@ func (s GoogleCloudDiscoveryengineV1EngineCommonConfig) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfig: +// Additional config specs for a Media Recommendation engine. +type GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfig struct { + // EngineFeaturesConfig: Optional. Additional engine features config. + EngineFeaturesConfig *GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigEngineFeaturesConfig `json:"engineFeaturesConfig,omitempty"` + // OptimizationObjective: The optimization objective. e.g., `cvr`. This field + // together with optimization_objective describe engine metadata to use to + // control engine training and serving. Currently supported values: `ctr`, + // `cvr`. If not specified, we choose default based on engine type. Default + // depends on type of recommendation: `recommended-for-you` => `ctr` + // `others-you-may-like` => `ctr` + OptimizationObjective string `json:"optimizationObjective,omitempty"` + // OptimizationObjectiveConfig: Name and value of the custom threshold for cvr + // optimization_objective. For target_field `watch-time`, target_field_value + // must be an integer value indicating the media progress time in seconds + // between (0, 86400] (excludes 0, includes 86400) (e.g., 90). For target_field + // `watch-percentage`, the target_field_value must be a valid float value + // between (0, 1.0] (excludes 0, includes 1.0) (e.g., 0.5). + OptimizationObjectiveConfig *GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigOptimizationObjectiveConfig `json:"optimizationObjectiveConfig,omitempty"` + // TrainingState: The training state that the engine is in (e.g. `TRAINING` or + // `PAUSED`). Since part of the cost of running the service is frequency of + // training - this can be used to determine when to train engine in order to + // control cost. If not specified: the default value for `CreateEngine` method + // is `TRAINING`. The default value for `UpdateEngine` method is to keep the + // state the same as before. + // + // Possible values: + // "TRAINING_STATE_UNSPECIFIED" - Unspecified training state. + // "PAUSED" - The engine training is paused. + // "TRAINING" - The engine is training. + TrainingState string `json:"trainingState,omitempty"` + // Type: Required. The type of engine. e.g., `recommended-for-you`. This field + // together with optimization_objective describe engine metadata to use to + // control engine training and serving. Currently supported values: + // `recommended-for-you`, `others-you-may-like`, `more-like-this`, + // `most-popular-items`. + Type string `json:"type,omitempty"` + // ForceSendFields is a list of field names (e.g. "EngineFeaturesConfig") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "EngineFeaturesConfig") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigEngineFeatur +// esConfig: More feature configs of the selected engine type. +type GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigEngineFeaturesConfig struct { + // MostPopularConfig: Most popular engine feature config. + MostPopularConfig *GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigMostPopularFeatureConfig `json:"mostPopularConfig,omitempty"` + // RecommendedForYouConfig: Recommended for you engine feature config. + RecommendedForYouConfig *GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig `json:"recommendedForYouConfig,omitempty"` + // ForceSendFields is a list of field names (e.g. "MostPopularConfig") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "MostPopularConfig") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigEngineFeaturesConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigEngineFeaturesConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigMostPopularF +// eatureConfig: Feature configurations that are required for creating a Most +// Popular engine. +type GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigMostPopularFeatureConfig struct { + // TimeWindowDays: The time window of which the engine is queried at training + // and prediction time. Positive integers only. The value translates to the + // last X days of events. Currently required for the `most-popular-items` + // engine. + TimeWindowDays int64 `json:"timeWindowDays,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "TimeWindowDays") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "TimeWindowDays") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigMostPopularFeatureConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigMostPopularFeatureConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigOptimization +// ObjectiveConfig: Custom threshold for `cvr` optimization_objective. +type GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigOptimizationObjectiveConfig struct { + // TargetField: Required. The name of the field to target. Currently supported + // values: `watch-percentage`, `watch-time`. + TargetField string `json:"targetField,omitempty"` + // TargetFieldValueFloat: Required. The threshold to be applied to the target + // (e.g., 0.5). + TargetFieldValueFloat float64 `json:"targetFieldValueFloat,omitempty"` + // ForceSendFields is a list of field names (e.g. "TargetField") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "TargetField") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigOptimizationObjectiveConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigOptimizationObjectiveConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigOptimizationObjectiveConfig) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigOptimizationObjectiveConfig + var s1 struct { + TargetFieldValueFloat gensupport.JSONFloat64 `json:"targetFieldValueFloat"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.TargetFieldValueFloat = float64(s1.TargetFieldValueFloat) + return nil +} + +// GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigRecommendedF +// orYouFeatureConfig: Additional feature configurations for creating a +// `recommended-for-you` engine. +type GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig struct { + // ContextEventType: The type of event with which the engine is queried at + // prediction time. If set to `generic`, only `view-item`, `media-play`,and + // `media-complete` will be used as `context-event` in engine training. If set + // to `view-home-page`, `view-home-page` will also be used as `context-events` + // in addition to `view-item`, `media-play`, and `media-complete`. Currently + // supported for the `recommended-for-you` engine. Currently supported values: + // `view-home-page`, `generic`. + ContextEventType string `json:"contextEventType,omitempty"` + // ForceSendFields is a list of field names (e.g. "ContextEventType") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ContextEventType") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1EngineSearchEngineConfig: Configurations for a // Search Engine. type GoogleCloudDiscoveryengineV1EngineSearchEngineConfig struct { @@ -4298,6 +4569,8 @@ func (s GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpecMod // predictions). The ServingConfig is passed in the search and predict request // and generates results. type GoogleCloudDiscoveryengineV1ServingConfig struct { + // AnswerGenerationSpec: Optional. The specification for answer generation. + AnswerGenerationSpec *GoogleCloudDiscoveryengineV1AnswerGenerationSpec `json:"answerGenerationSpec,omitempty"` // BoostControlIds: Boost controls to use in serving path. All triggered boost // controls will be applied. Boost controls must be in the same data store as // the serving config. Maximum of 20 boost controls. @@ -4396,15 +4669,15 @@ type GoogleCloudDiscoveryengineV1ServingConfig struct { SynonymsControlIds []string `json:"synonymsControlIds,omitempty"` // UpdateTime: Output only. ServingConfig updated timestamp. UpdateTime string `json:"updateTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "BoostControlIds") to + // ForceSendFields is a list of field names (e.g. "AnswerGenerationSpec") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BoostControlIds") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See + // NullFields is a list of field names (e.g. "AnswerGenerationSpec") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -6769,6 +7042,10 @@ func (s GoogleCloudDiscoveryengineV1alphaCustomFineTuningSpec) MarshalJSON() ([] // through DataConnectorService.SetUpDataConnector method, which will create a // new Collection and initialize its DataConnector. type GoogleCloudDiscoveryengineV1alphaDataConnector struct { + // AclEnabled: Optional. Whether the connector will be created with an ACL + // config. Currently this field only affects Cloud Storage and BigQuery + // connectors. + AclEnabled bool `json:"aclEnabled,omitempty"` // ActionConfig: Optional. Action configurations to make the connector support // actions. ActionConfig *GoogleCloudDiscoveryengineV1alphaActionConfig `json:"actionConfig,omitempty"` @@ -6789,6 +7066,16 @@ type GoogleCloudDiscoveryengineV1alphaDataConnector struct { // "ALLOWLIST_IN_SERVICE_ATTACHMENT" - Connector requires customer to // allowlist our project in their service attachment. BlockingReasons []string `json:"blockingReasons,omitempty"` + // ConnectorModes: Optional. The modes enabled for this connector. Default + // state is CONNECTOR_MODE_UNSPECIFIED. + // + // Possible values: + // "CONNECTOR_MODE_UNSPECIFIED" - Connector mode unspecified. + // "DATA_INGESTION" - Connector utilized for data ingestion. + // "ACTIONS" - Connector utilized for actions. + // "FEDERATED" - Connector utilized for federated search. + // "EUA" - Connector utilized for End User Authentication. + ConnectorModes []string `json:"connectorModes,omitempty"` // ConnectorType: Output only. The type of connector. Each source can only map // to one type. For example, salesforce, confluence and jira have THIRD_PARTY // connector type. It is notmutable once set by system. @@ -6818,6 +7105,9 @@ type GoogleCloudDiscoveryengineV1alphaDataConnector struct { // DestinationConfigs: Optional. Any target destinations used to connect to // third-party services. DestinationConfigs []*GoogleCloudDiscoveryengineV1alphaDestinationConfig `json:"destinationConfigs,omitempty"` + // EndUserConfig: Optional. Any params and credentials used specifically for + // EUA connectors. + EndUserConfig *GoogleCloudDiscoveryengineV1alphaDataConnectorEndUserConfig `json:"endUserConfig,omitempty"` // Entities: List of entities from the connected data source to ingest. Entities []*GoogleCloudDiscoveryengineV1alphaDataConnectorSourceEntity `json:"entities,omitempty"` // Errors: Output only. The errors from initialization or from the latest @@ -6947,13 +7237,13 @@ type GoogleCloudDiscoveryengineV1alphaDataConnector struct { SyncMode string `json:"syncMode,omitempty"` // UpdateTime: Output only. Timestamp the DataConnector was last updated. UpdateTime string `json:"updateTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActionConfig") to + // ForceSendFields is a list of field names (e.g. "AclEnabled") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ActionConfig") to include in API + // NullFields is a list of field names (e.g. "AclEnabled") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -6965,6 +7255,32 @@ func (s GoogleCloudDiscoveryengineV1alphaDataConnector) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1alphaDataConnectorEndUserConfig: Any params and +// credentials used specifically for EUA connectors. +type GoogleCloudDiscoveryengineV1alphaDataConnectorEndUserConfig struct { + // AdditionalParams: Optional. Any additional parameters needed for EUA. + AdditionalParams googleapi.RawMessage `json:"additionalParams,omitempty"` + // AuthParams: Optional. Any authentication parameters specific to EUA + // connectors. + AuthParams googleapi.RawMessage `json:"authParams,omitempty"` + // ForceSendFields is a list of field names (e.g. "AdditionalParams") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AdditionalParams") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1alphaDataConnectorEndUserConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaDataConnectorEndUserConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1alphaDataConnectorRealtimeSyncConfig: The // configuration for realtime sync to store additional params for realtime // sync. @@ -7736,6 +8052,15 @@ type GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigLayou // EnableTableAnnotation: Optional. If true, the LLM based annotation is added // to the table during parsing. EnableTableAnnotation bool `json:"enableTableAnnotation,omitempty"` + // ExcludeHtmlClasses: Optional. List of HTML classes to exclude from the + // parsed content. + ExcludeHtmlClasses []string `json:"excludeHtmlClasses,omitempty"` + // ExcludeHtmlElements: Optional. List of HTML elements to exclude from the + // parsed content. + ExcludeHtmlElements []string `json:"excludeHtmlElements,omitempty"` + // ExcludeHtmlIds: Optional. List of HTML ids to exclude from the parsed + // content. + ExcludeHtmlIds []string `json:"excludeHtmlIds,omitempty"` // ForceSendFields is a list of field names (e.g. "EnableImageAnnotation") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -8042,6 +8367,8 @@ func (s GoogleCloudDiscoveryengineV1alphaEngineCommonConfig) MarshalJSON() ([]by // GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig: // Additional config specs for a Media Recommendation engine. type GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig struct { + // EngineFeaturesConfig: Optional. Additional engine features config. + EngineFeaturesConfig *GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigEngineFeaturesConfig `json:"engineFeaturesConfig,omitempty"` // OptimizationObjective: The optimization objective. e.g., `cvr`. This field // together with optimization_objective describe engine metadata to use to // control engine training and serving. Currently supported values: `ctr`, @@ -8074,15 +8401,15 @@ type GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig stru // `recommended-for-you`, `others-you-may-like`, `more-like-this`, // `most-popular-items`. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "OptimizationObjective") to + // ForceSendFields is a list of field names (e.g. "EngineFeaturesConfig") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "OptimizationObjective") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See + // NullFields is a list of field names (e.g. "EngineFeaturesConfig") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -8092,6 +8419,58 @@ func (s GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig) return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigEngineF +// eaturesConfig: More feature configs of the selected engine type. +type GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigEngineFeaturesConfig struct { + // MostPopularConfig: Most popular engine feature config. + MostPopularConfig *GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigMostPopularFeatureConfig `json:"mostPopularConfig,omitempty"` + // RecommendedForYouConfig: Recommended for you engine feature config. + RecommendedForYouConfig *GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig `json:"recommendedForYouConfig,omitempty"` + // ForceSendFields is a list of field names (e.g. "MostPopularConfig") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "MostPopularConfig") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigEngineFeaturesConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigEngineFeaturesConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigMostPop +// ularFeatureConfig: Feature configurations that are required for creating a +// Most Popular engine. +type GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigMostPopularFeatureConfig struct { + // TimeWindowDays: The time window of which the engine is queried at training + // and prediction time. Positive integers only. The value translates to the + // last X days of events. Currently required for the `most-popular-items` + // engine. + TimeWindowDays int64 `json:"timeWindowDays,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "TimeWindowDays") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "TimeWindowDays") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigMostPopularFeatureConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigMostPopularFeatureConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimiz // ationObjectiveConfig: Custom threshold for `cvr` optimization_objective. type GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig struct { @@ -8133,6 +8512,36 @@ func (s *GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigO return nil } +// GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigRecomme +// ndedForYouFeatureConfig: Additional feature configurations for creating a +// `recommended-for-you` engine. +type GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig struct { + // ContextEventType: The type of event with which the engine is queried at + // prediction time. If set to `generic`, only `view-item`, `media-play`,and + // `media-complete` will be used as `context-event` in engine training. If set + // to `view-home-page`, `view-home-page` will also be used as `context-events` + // in addition to `view-item`, `media-play`, and `media-complete`. Currently + // supported for the `recommended-for-you` engine. Currently supported values: + // `view-home-page`, `generic`. + ContextEventType string `json:"contextEventType,omitempty"` + // ForceSendFields is a list of field names (e.g. "ContextEventType") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ContextEventType") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1alphaEngineRecommendationMetadata: Additional // information of a recommendation engine. type GoogleCloudDiscoveryengineV1alphaEngineRecommendationMetadata struct { @@ -12143,6 +12552,8 @@ type GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryRequest struct { // BoostSpec: Optional. Specification to boost suggestions matching the // condition. BoostSpec *GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryRequestBoostSpec `json:"boostSpec,omitempty"` + // ExperimentIds: Optional. Experiment ids for this request. + ExperimentIds []string `json:"experimentIds,omitempty"` // IncludeTailSuggestions: Indicates if tail suggestions should be returned if // there are no suggestions that match the full query. Even if set to true, if // there are suggestions that match the full query, those are returned and no @@ -12843,6 +13254,86 @@ func (s GoogleCloudDiscoveryengineV1betaAnswerCitationSource) MarshalJSON() ([]b return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1betaAnswerGenerationSpec: The specification for +// answer generation. +type GoogleCloudDiscoveryengineV1betaAnswerGenerationSpec struct { + // UserDefinedClassifierSpec: Optional. The specification for user specified + // classifier spec. + UserDefinedClassifierSpec *GoogleCloudDiscoveryengineV1betaAnswerGenerationSpecUserDefinedClassifierSpec `json:"userDefinedClassifierSpec,omitempty"` + // ForceSendFields is a list of field names (e.g. "UserDefinedClassifierSpec") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "UserDefinedClassifierSpec") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1betaAnswerGenerationSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaAnswerGenerationSpec + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1betaAnswerGenerationSpecUserDefinedClassifierSpec +// : The specification for user defined classifier. +type GoogleCloudDiscoveryengineV1betaAnswerGenerationSpecUserDefinedClassifierSpec struct { + // EnableUserDefinedClassifier: Optional. Whether or not to enable and include + // user defined classifier. + EnableUserDefinedClassifier bool `json:"enableUserDefinedClassifier,omitempty"` + // ModelId: Optional. The model id to be used for the user defined classifier. + ModelId string `json:"modelId,omitempty"` + // Preamble: Optional. The preamble to be used for the user defined classifier. + Preamble string `json:"preamble,omitempty"` + // Seed: Optional. The seed value to be used for the user defined classifier. + Seed int64 `json:"seed,omitempty"` + // TaskMarker: Optional. The task marker to be used for the user defined + // classifier. + TaskMarker string `json:"taskMarker,omitempty"` + // Temperature: Optional. The temperature value to be used for the user defined + // classifier. + Temperature float64 `json:"temperature,omitempty"` + // TopK: Optional. The top-k value to be used for the user defined classifier. + TopK int64 `json:"topK,omitempty,string"` + // TopP: Optional. The top-p value to be used for the user defined classifier. + TopP float64 `json:"topP,omitempty"` + // ForceSendFields is a list of field names (e.g. + // "EnableUserDefinedClassifier") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "EnableUserDefinedClassifier") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1betaAnswerGenerationSpecUserDefinedClassifierSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaAnswerGenerationSpecUserDefinedClassifierSpec + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudDiscoveryengineV1betaAnswerGenerationSpecUserDefinedClassifierSpec) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDiscoveryengineV1betaAnswerGenerationSpecUserDefinedClassifierSpec + var s1 struct { + Temperature gensupport.JSONFloat64 `json:"temperature"` + TopP gensupport.JSONFloat64 `json:"topP"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Temperature = float64(s1.Temperature) + s.TopP = float64(s1.TopP) + return nil +} + // GoogleCloudDiscoveryengineV1betaAnswerGroundingSupport: Grounding support // for a claim in `answer_text`. type GoogleCloudDiscoveryengineV1betaAnswerGroundingSupport struct { @@ -14807,6 +15298,9 @@ type GoogleCloudDiscoveryengineV1betaCheckGroundingResponseClaim struct { // check, this field will be set to false. In that case, no grounding check was // done for the claim and therefore citation_indices should not be returned. GroundingCheckRequired bool `json:"groundingCheckRequired,omitempty"` + // Score: Confidence score for the claim in the answer candidate, in the range + // of [0, 1]. This is set only when enable_claim_level_score is true. + Score float64 `json:"score,omitempty"` // StartPos: Position indicating the start of the claim in the answer // candidate, measured in bytes. Note that this is not measured in characters // and, therefore, must be rendered in the user interface keeping in mind that @@ -14833,6 +15327,20 @@ func (s GoogleCloudDiscoveryengineV1betaCheckGroundingResponseClaim) MarshalJSON return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +func (s *GoogleCloudDiscoveryengineV1betaCheckGroundingResponseClaim) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDiscoveryengineV1betaCheckGroundingResponseClaim + 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 +} + // GoogleCloudDiscoveryengineV1betaCheckGroundingSpec: Specification for the // grounding check. type GoogleCloudDiscoveryengineV1betaCheckGroundingSpec struct { @@ -14842,6 +15350,9 @@ type GoogleCloudDiscoveryengineV1betaCheckGroundingSpec struct { // lower threshold may lead to more but somewhat weaker citations. If unset, // the threshold will default to 0.6. CitationThreshold float64 `json:"citationThreshold,omitempty"` + // EnableClaimLevelScore: The control flag that enables claim-level grounding + // score in the response. + EnableClaimLevelScore bool `json:"enableClaimLevelScore,omitempty"` // ForceSendFields is a list of field names (e.g. "CitationThreshold") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -16743,7 +17254,8 @@ func (s GoogleCloudDiscoveryengineV1betaDocumentAclInfoAccessRestriction) Marsha type GoogleCloudDiscoveryengineV1betaDocumentContent struct { // MimeType: The MIME type of the content. Supported types: * `application/pdf` // (PDF, only native PDFs are supported for now) * `text/html` (HTML) * - // `text/plain` (TXT) * `text/xml` (XML) * `application/json` (JSON) * + // `text/plain` (TXT) * `application/xml` or `text/xml` (XML) * + // `application/json` (JSON) * // `application/vnd.openxmlformats-officedocument.wordprocessingml.document` // (DOCX) * // `application/vnd.openxmlformats-officedocument.presentationml.presentation` @@ -17010,6 +17522,15 @@ type GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigLayout // EnableTableAnnotation: Optional. If true, the LLM based annotation is added // to the table during parsing. EnableTableAnnotation bool `json:"enableTableAnnotation,omitempty"` + // ExcludeHtmlClasses: Optional. List of HTML classes to exclude from the + // parsed content. + ExcludeHtmlClasses []string `json:"excludeHtmlClasses,omitempty"` + // ExcludeHtmlElements: Optional. List of HTML elements to exclude from the + // parsed content. + ExcludeHtmlElements []string `json:"excludeHtmlElements,omitempty"` + // ExcludeHtmlIds: Optional. List of HTML ids to exclude from the parsed + // content. + ExcludeHtmlIds []string `json:"excludeHtmlIds,omitempty"` // ForceSendFields is a list of field names (e.g. "EnableImageAnnotation") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -17193,6 +17714,10 @@ type GoogleCloudDiscoveryengineV1betaEngine struct { // "MEDIA" - The media industry vertical. // "HEALTHCARE_FHIR" - The healthcare FHIR vertical. IndustryVertical string `json:"industryVertical,omitempty"` + // MediaRecommendationEngineConfig: Configurations for the Media Engine. Only + // applicable on the data stores with solution_type + // SOLUTION_TYPE_RECOMMENDATION and IndustryVertical.MEDIA vertical. + MediaRecommendationEngineConfig *GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfig `json:"mediaRecommendationEngineConfig,omitempty"` // Name: Immutable. The fully qualified resource name of the engine. This field // must be a UTF-8 encoded string with a length limit of 1024 characters. // Format: @@ -17372,6 +17897,184 @@ func (s GoogleCloudDiscoveryengineV1betaEngineCommonConfig) MarshalJSON() ([]byt return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfig: +// Additional config specs for a Media Recommendation engine. +type GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfig struct { + // EngineFeaturesConfig: Optional. Additional engine features config. + EngineFeaturesConfig *GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigEngineFeaturesConfig `json:"engineFeaturesConfig,omitempty"` + // OptimizationObjective: The optimization objective. e.g., `cvr`. This field + // together with optimization_objective describe engine metadata to use to + // control engine training and serving. Currently supported values: `ctr`, + // `cvr`. If not specified, we choose default based on engine type. Default + // depends on type of recommendation: `recommended-for-you` => `ctr` + // `others-you-may-like` => `ctr` + OptimizationObjective string `json:"optimizationObjective,omitempty"` + // OptimizationObjectiveConfig: Name and value of the custom threshold for cvr + // optimization_objective. For target_field `watch-time`, target_field_value + // must be an integer value indicating the media progress time in seconds + // between (0, 86400] (excludes 0, includes 86400) (e.g., 90). For target_field + // `watch-percentage`, the target_field_value must be a valid float value + // between (0, 1.0] (excludes 0, includes 1.0) (e.g., 0.5). + OptimizationObjectiveConfig *GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig `json:"optimizationObjectiveConfig,omitempty"` + // TrainingState: The training state that the engine is in (e.g. `TRAINING` or + // `PAUSED`). Since part of the cost of running the service is frequency of + // training - this can be used to determine when to train engine in order to + // control cost. If not specified: the default value for `CreateEngine` method + // is `TRAINING`. The default value for `UpdateEngine` method is to keep the + // state the same as before. + // + // Possible values: + // "TRAINING_STATE_UNSPECIFIED" - Unspecified training state. + // "PAUSED" - The engine training is paused. + // "TRAINING" - The engine is training. + TrainingState string `json:"trainingState,omitempty"` + // Type: Required. The type of engine. e.g., `recommended-for-you`. This field + // together with optimization_objective describe engine metadata to use to + // control engine training and serving. Currently supported values: + // `recommended-for-you`, `others-you-may-like`, `more-like-this`, + // `most-popular-items`. + Type string `json:"type,omitempty"` + // ForceSendFields is a list of field names (e.g. "EngineFeaturesConfig") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "EngineFeaturesConfig") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigEngineFe +// aturesConfig: More feature configs of the selected engine type. +type GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigEngineFeaturesConfig struct { + // MostPopularConfig: Most popular engine feature config. + MostPopularConfig *GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigMostPopularFeatureConfig `json:"mostPopularConfig,omitempty"` + // RecommendedForYouConfig: Recommended for you engine feature config. + RecommendedForYouConfig *GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig `json:"recommendedForYouConfig,omitempty"` + // ForceSendFields is a list of field names (e.g. "MostPopularConfig") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "MostPopularConfig") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigEngineFeaturesConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigEngineFeaturesConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigMostPopu +// larFeatureConfig: Feature configurations that are required for creating a +// Most Popular engine. +type GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigMostPopularFeatureConfig struct { + // TimeWindowDays: The time window of which the engine is queried at training + // and prediction time. Positive integers only. The value translates to the + // last X days of events. Currently required for the `most-popular-items` + // engine. + TimeWindowDays int64 `json:"timeWindowDays,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "TimeWindowDays") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "TimeWindowDays") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigMostPopularFeatureConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigMostPopularFeatureConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigOptimiza +// tionObjectiveConfig: Custom threshold for `cvr` optimization_objective. +type GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig struct { + // TargetField: Required. The name of the field to target. Currently supported + // values: `watch-percentage`, `watch-time`. + TargetField string `json:"targetField,omitempty"` + // TargetFieldValueFloat: Required. The threshold to be applied to the target + // (e.g., 0.5). + TargetFieldValueFloat float64 `json:"targetFieldValueFloat,omitempty"` + // ForceSendFields is a list of field names (e.g. "TargetField") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "TargetField") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig + var s1 struct { + TargetFieldValueFloat gensupport.JSONFloat64 `json:"targetFieldValueFloat"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.TargetFieldValueFloat = float64(s1.TargetFieldValueFloat) + return nil +} + +// GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigRecommen +// dedForYouFeatureConfig: Additional feature configurations for creating a +// `recommended-for-you` engine. +type GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig struct { + // ContextEventType: The type of event with which the engine is queried at + // prediction time. If set to `generic`, only `view-item`, `media-play`,and + // `media-complete` will be used as `context-event` in engine training. If set + // to `view-home-page`, `view-home-page` will also be used as `context-events` + // in addition to `view-item`, `media-play`, and `media-complete`. Currently + // supported for the `recommended-for-you` engine. Currently supported values: + // `view-home-page`, `generic`. + ContextEventType string `json:"contextEventType,omitempty"` + // ForceSendFields is a list of field names (e.g. "ContextEventType") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ContextEventType") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig: Configurations for // a Search Engine. type GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig struct { @@ -17525,6 +18228,8 @@ type GoogleCloudDiscoveryengineV1betaFactChunk struct { // ChunkText: Text content of the fact chunk. Can be at most 10K characters // long. ChunkText string `json:"chunkText,omitempty"` + // Domain: The domain of the source. + Domain string `json:"domain,omitempty"` // Index: The index of this chunk. Currently, only used for the streaming mode. Index int64 `json:"index,omitempty"` // Source: Source from which this fact chunk was retrieved. If it was retrieved @@ -17533,6 +18238,10 @@ type GoogleCloudDiscoveryengineV1betaFactChunk struct { Source string `json:"source,omitempty"` // SourceMetadata: More fine-grained information for the source reference. SourceMetadata map[string]string `json:"sourceMetadata,omitempty"` + // Title: The title of the source. + Title string `json:"title,omitempty"` + // Uri: The URI of the source. + Uri string `json:"uri,omitempty"` // ForceSendFields is a list of field names (e.g. "ChunkText") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -23186,6 +23895,8 @@ func (s GoogleCloudDiscoveryengineV1betaSearchResponseSummarySummaryWithMetadata // predictions). The ServingConfig is passed in the search and predict request // and generates results. type GoogleCloudDiscoveryengineV1betaServingConfig struct { + // AnswerGenerationSpec: Optional. The specification for answer generation. + AnswerGenerationSpec *GoogleCloudDiscoveryengineV1betaAnswerGenerationSpec `json:"answerGenerationSpec,omitempty"` // BoostControlIds: Boost controls to use in serving path. All triggered boost // controls will be applied. Boost controls must be in the same data store as // the serving config. Maximum of 20 boost controls. @@ -23300,15 +24011,15 @@ type GoogleCloudDiscoveryengineV1betaServingConfig struct { // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "BoostControlIds") to + // ForceSendFields is a list of field names (e.g. "AnswerGenerationSpec") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BoostControlIds") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See + // NullFields is a list of field names (e.g. "AnswerGenerationSpec") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } diff --git a/firebaseml/v2beta/firebaseml-api.json b/firebaseml/v2beta/firebaseml-api.json index 7834a1900fe..e3c7f9f4efd 100644 --- a/firebaseml/v2beta/firebaseml-api.json +++ b/firebaseml/v2beta/firebaseml-api.json @@ -206,7 +206,7 @@ } } }, - "revision": "20250416", + "revision": "20250420", "rootUrl": "https://firebaseml.googleapis.com/", "schemas": { "Date": { @@ -1724,6 +1724,13 @@ "description": "Optional. Default value of the data.", "type": "any" }, + "defs": { + "additionalProperties": { + "$ref": "GoogleCloudAiplatformV1beta1Schema" + }, + "description": "Optional. A map of definitions for use by `ref` Only allowed at the root of the schema.", + "type": "object" + }, "description": { "description": "Optional. The description of the data.", "type": "string" @@ -1809,6 +1816,10 @@ }, "type": "array" }, + "ref": { + "description": "Optional. Allows indirect references between schema nodes. The value should be a valid reference to a child of the root `defs`. For example, the following schema defines a reference to a schema node named \"Pet\": type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the \"pet\" property is a reference to the schema node named \"Pet\". See details in https://json-schema.org/understanding-json-schema/structuring", + "type": "string" + }, "required": { "description": "Optional. Required properties of Type.OBJECT.", "items": { @@ -1829,7 +1840,8 @@ "INTEGER", "BOOLEAN", "ARRAY", - "OBJECT" + "OBJECT", + "NULL" ], "enumDescriptions": [ "Not specified, should not be used.", @@ -1838,7 +1850,8 @@ "OpenAPI integer type", "OpenAPI boolean type", "OpenAPI array type", - "OpenAPI object type" + "OpenAPI object type", + "Null type" ], "type": "string" } diff --git a/firebaseml/v2beta/firebaseml-gen.go b/firebaseml/v2beta/firebaseml-gen.go index 66f3e08b87c..d0f906d29ed 100644 --- a/firebaseml/v2beta/firebaseml-gen.go +++ b/firebaseml/v2beta/firebaseml-gen.go @@ -2090,6 +2090,9 @@ type GoogleCloudAiplatformV1beta1Schema struct { AnyOf []*GoogleCloudAiplatformV1beta1Schema `json:"anyOf,omitempty"` // Default: Optional. Default value of the data. Default interface{} `json:"default,omitempty"` + // Defs: Optional. A map of definitions for use by `ref` Only allowed at the + // root of the schema. + Defs map[string]GoogleCloudAiplatformV1beta1Schema `json:"defs,omitempty"` // Description: Optional. The description of the data. Description string `json:"description,omitempty"` // Enum: Optional. Possible values of the element of primitive type with enum @@ -2136,6 +2139,14 @@ type GoogleCloudAiplatformV1beta1Schema struct { // PropertyOrdering: Optional. The order of the properties. Not a standard // field in open api spec. Only used to support the order of the properties. PropertyOrdering []string `json:"propertyOrdering,omitempty"` + // Ref: Optional. Allows indirect references between schema nodes. The value + // should be a valid reference to a child of the root `defs`. For example, the + // following schema defines a reference to a schema node named "Pet": type: + // object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: + // name: type: string The value of the "pet" property is a reference to the + // schema node named "Pet". See details in + // https://json-schema.org/understanding-json-schema/structuring + Ref string `json:"ref,omitempty"` // Required: Optional. Required properties of Type.OBJECT. Required []string `json:"required,omitempty"` // Title: Optional. The title of the Schema. @@ -2150,6 +2161,7 @@ type GoogleCloudAiplatformV1beta1Schema struct { // "BOOLEAN" - OpenAPI boolean type // "ARRAY" - OpenAPI array type // "OBJECT" - OpenAPI object type + // "NULL" - Null type Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "AnyOf") to unconditionally // include in API requests. By default, fields with empty or default values are diff --git a/forms/v1/forms-api.json b/forms/v1/forms-api.json index 9ad5863aeb5..19cd6984e88 100644 --- a/forms/v1/forms-api.json +++ b/forms/v1/forms-api.json @@ -458,7 +458,7 @@ } } }, - "revision": "20250325", + "revision": "20250415", "rootUrl": "https://forms.googleapis.com/", "schemas": { "Answer": { @@ -835,7 +835,7 @@ "readOnly": true }, "responderUri": { - "description": "Output only. The form URI to share with responders. This opens a page that allows the user to submit responses but not edit the questions. For forms that have `publish_settings` value set, this will be the published form URI.", + "description": "Output only. The form URI to share with responders. This opens a page that allows the user to submit responses but not edit the questions. For forms that have `publish_settings` value set, this is the published form URI.", "readOnly": true, "type": "string" }, diff --git a/forms/v1/forms-gen.go b/forms/v1/forms-gen.go index 33d3d9af6e7..66821c55d13 100644 --- a/forms/v1/forms-gen.go +++ b/forms/v1/forms-gen.go @@ -712,8 +712,8 @@ type Form struct { PublishSettings *PublishSettings `json:"publishSettings,omitempty"` // ResponderUri: Output only. The form URI to share with responders. This opens // a page that allows the user to submit responses but not edit the questions. - // For forms that have `publish_settings` value set, this will be the published - // form URI. + // For forms that have `publish_settings` value set, this is the published form + // URI. ResponderUri string `json:"responderUri,omitempty"` // RevisionId: Output only. The revision ID of the form. Used in the // WriteControl in update requests to identify the revision on which the diff --git a/language/v1/language-api.json b/language/v1/language-api.json index 2520bbd9869..000c0b4c5e1 100644 --- a/language/v1/language-api.json +++ b/language/v1/language-api.json @@ -246,7 +246,7 @@ } } }, - "revision": "20250406", + "revision": "20250420", "rootUrl": "https://language.googleapis.com/", "schemas": { "AnalyzeEntitiesRequest": { @@ -1433,6 +1433,7 @@ "UNKNOWN_GPU_TYPE", "NVIDIA_TESLA_A100", "NVIDIA_A100_80GB", + "NVIDIA_B200", "NVIDIA_TESLA_K80", "NVIDIA_L4", "NVIDIA_TESLA_P100", @@ -1440,6 +1441,7 @@ "NVIDIA_TESLA_T4", "NVIDIA_TESLA_V100", "NVIDIA_H100_80GB", + "NVIDIA_H100_MEGA_80GB", "NVIDIA_H200_141GB" ], "enumDescriptions": [ @@ -1453,6 +1455,8 @@ "", "", "", + "", + "", "" ], "type": "string" diff --git a/language/v1/language-gen.go b/language/v1/language-gen.go index 90dc283af6c..43bdc3a05f0 100644 --- a/language/v1/language-gen.go +++ b/language/v1/language-gen.go @@ -1364,6 +1364,7 @@ type GpuMetric struct { // "UNKNOWN_GPU_TYPE" // "NVIDIA_TESLA_A100" // "NVIDIA_A100_80GB" + // "NVIDIA_B200" // "NVIDIA_TESLA_K80" // "NVIDIA_L4" // "NVIDIA_TESLA_P100" @@ -1371,6 +1372,7 @@ type GpuMetric struct { // "NVIDIA_TESLA_T4" // "NVIDIA_TESLA_V100" // "NVIDIA_H100_80GB" + // "NVIDIA_H100_MEGA_80GB" // "NVIDIA_H200_141GB" GpuType string `json:"gpuType,omitempty"` // MachineSpec: Required. Machine spec, e.g. N1_STANDARD_4. diff --git a/language/v1beta2/language-api.json b/language/v1beta2/language-api.json index eed11df898f..41a77fafd11 100644 --- a/language/v1beta2/language-api.json +++ b/language/v1beta2/language-api.json @@ -246,7 +246,7 @@ } } }, - "revision": "20250406", + "revision": "20250420", "rootUrl": "https://language.googleapis.com/", "schemas": { "AnalyzeEntitiesRequest": { @@ -1451,6 +1451,7 @@ "UNKNOWN_GPU_TYPE", "NVIDIA_TESLA_A100", "NVIDIA_A100_80GB", + "NVIDIA_B200", "NVIDIA_TESLA_K80", "NVIDIA_L4", "NVIDIA_TESLA_P100", @@ -1458,6 +1459,7 @@ "NVIDIA_TESLA_T4", "NVIDIA_TESLA_V100", "NVIDIA_H100_80GB", + "NVIDIA_H100_MEGA_80GB", "NVIDIA_H200_141GB" ], "enumDescriptions": [ @@ -1471,6 +1473,8 @@ "", "", "", + "", + "", "" ], "type": "string" diff --git a/language/v1beta2/language-gen.go b/language/v1beta2/language-gen.go index b978aabb0eb..31a3390bdaf 100644 --- a/language/v1beta2/language-gen.go +++ b/language/v1beta2/language-gen.go @@ -1378,6 +1378,7 @@ type GpuMetric struct { // "UNKNOWN_GPU_TYPE" // "NVIDIA_TESLA_A100" // "NVIDIA_A100_80GB" + // "NVIDIA_B200" // "NVIDIA_TESLA_K80" // "NVIDIA_L4" // "NVIDIA_TESLA_P100" @@ -1385,6 +1386,7 @@ type GpuMetric struct { // "NVIDIA_TESLA_T4" // "NVIDIA_TESLA_V100" // "NVIDIA_H100_80GB" + // "NVIDIA_H100_MEGA_80GB" // "NVIDIA_H200_141GB" GpuType string `json:"gpuType,omitempty"` // MachineSpec: Required. Machine spec, e.g. N1_STANDARD_4. diff --git a/language/v2/language-api.json b/language/v2/language-api.json index 08bfc2f2a2a..859f8d226c9 100644 --- a/language/v2/language-api.json +++ b/language/v2/language-api.json @@ -208,7 +208,7 @@ } } }, - "revision": "20250406", + "revision": "20250420", "rootUrl": "https://language.googleapis.com/", "schemas": { "AnalyzeEntitiesRequest": { @@ -1072,6 +1072,7 @@ "UNKNOWN_GPU_TYPE", "NVIDIA_TESLA_A100", "NVIDIA_A100_80GB", + "NVIDIA_B200", "NVIDIA_TESLA_K80", "NVIDIA_L4", "NVIDIA_TESLA_P100", @@ -1079,6 +1080,7 @@ "NVIDIA_TESLA_T4", "NVIDIA_TESLA_V100", "NVIDIA_H100_80GB", + "NVIDIA_H100_MEGA_80GB", "NVIDIA_H200_141GB" ], "enumDescriptions": [ @@ -1092,6 +1094,8 @@ "", "", "", + "", + "", "" ], "type": "string" diff --git a/language/v2/language-gen.go b/language/v2/language-gen.go index 4024388c4ac..bc4ff36d865 100644 --- a/language/v2/language-gen.go +++ b/language/v2/language-gen.go @@ -1058,6 +1058,7 @@ type GpuMetric struct { // "UNKNOWN_GPU_TYPE" // "NVIDIA_TESLA_A100" // "NVIDIA_A100_80GB" + // "NVIDIA_B200" // "NVIDIA_TESLA_K80" // "NVIDIA_L4" // "NVIDIA_TESLA_P100" @@ -1065,6 +1066,7 @@ type GpuMetric struct { // "NVIDIA_TESLA_T4" // "NVIDIA_TESLA_V100" // "NVIDIA_H100_80GB" + // "NVIDIA_H100_MEGA_80GB" // "NVIDIA_H200_141GB" GpuType string `json:"gpuType,omitempty"` // MachineSpec: Required. Machine spec, e.g. N1_STANDARD_4. diff --git a/licensing/v1/licensing-api.json b/licensing/v1/licensing-api.json index 34b7f69f2a9..5805ab76fd1 100644 --- a/licensing/v1/licensing-api.json +++ b/licensing/v1/licensing-api.json @@ -13,7 +13,7 @@ "batchPath": "batch", "description": "The Google Enterprise License Manager API lets you manage Google Workspace and related licenses for all users of a customer that you manage.", "discoveryVersion": "v1", - "documentationLink": "https://developers.google.com/admin-sdk/licensing/", + "documentationLink": "https://developers.google.com/workspace/admin/licensing/", "fullyEncodeReservedExpansion": true, "icons": { "x16": "http://www.google.com/images/icons/product/search-16.gif", @@ -400,7 +400,7 @@ } } }, - "revision": "20220430", + "revision": "20250419", "rootUrl": "https://licensing.googleapis.com/", "schemas": { "Empty": { diff --git a/licensing/v1/licensing-gen.go b/licensing/v1/licensing-gen.go index 175ffaa47a3..cb2614050a4 100644 --- a/licensing/v1/licensing-gen.go +++ b/licensing/v1/licensing-gen.go @@ -6,7 +6,7 @@ // Package licensing provides access to the Enterprise License Manager API. // -// For product documentation, see: https://developers.google.com/admin-sdk/licensing/ +// For product documentation, see: https://developers.google.com/workspace/admin/licensing/ // // # Library status // diff --git a/merchantapi/accounts_v1beta/merchantapi-api.json b/merchantapi/accounts_v1beta/merchantapi-api.json index 32b953f33f6..80c89b4c138 100644 --- a/merchantapi/accounts_v1beta/merchantapi-api.json +++ b/merchantapi/accounts_v1beta/merchantapi-api.json @@ -233,7 +233,7 @@ "type": "string" }, "provider": { - "description": "Required. The aggregation service provider. Format: `providers/{providerId}`", + "description": "Required. The aggregation service provider. Format: `accounts/{providerId}`", "location": "path", "pattern": "^accounts/[^/]+$", "required": true, @@ -1386,7 +1386,7 @@ "accept": { "description": "Accepts a `TermsOfService`. Executing this method requires admin access.", "flatPath": "accounts/v1beta/termsOfService/{termsOfServiceId}:accept", - "httpMethod": "GET", + "httpMethod": "POST", "id": "merchantapi.termsOfService.accept", "parameterOrder": [ "name" @@ -1412,7 +1412,7 @@ }, "path": "accounts/v1beta/{+name}:accept", "response": { - "$ref": "Empty" + "$ref": "AcceptTermsOfServiceResponse" }, "scopes": [ "https://www.googleapis.com/auth/content" @@ -1480,9 +1480,20 @@ } } }, - "revision": "20250416", + "revision": "20250421", "rootUrl": "https://merchantapi.googleapis.com/", "schemas": { + "AcceptTermsOfServiceResponse": { + "description": "Response message for the `AcceptTermsOfService` method.", + "id": "AcceptTermsOfServiceResponse", + "properties": { + "termsOfServiceAgreementState": { + "$ref": "TermsOfServiceAgreementState", + "description": "The agreement state after accepting the ToS." + } + }, + "type": "object" + }, "Accepted": { "description": "Describes the accepted terms of service.", "id": "Accepted", diff --git a/merchantapi/accounts_v1beta/merchantapi-gen.go b/merchantapi/accounts_v1beta/merchantapi-gen.go index 798c799a7b9..e885d12b4ff 100644 --- a/merchantapi/accounts_v1beta/merchantapi-gen.go +++ b/merchantapi/accounts_v1beta/merchantapi-gen.go @@ -330,6 +330,32 @@ type TermsOfServiceService struct { s *APIService } +// AcceptTermsOfServiceResponse: Response message for the +// `AcceptTermsOfService` method. +type AcceptTermsOfServiceResponse struct { + // TermsOfServiceAgreementState: The agreement state after accepting the ToS. + TermsOfServiceAgreementState *TermsOfServiceAgreementState `json:"termsOfServiceAgreementState,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. + // "TermsOfServiceAgreementState") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "TermsOfServiceAgreementState") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AcceptTermsOfServiceResponse) MarshalJSON() ([]byte, error) { + type NoMethod AcceptTermsOfServiceResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Accepted: Describes the accepted terms of service. type Accepted struct { // AcceptedBy: The account where the acceptance was recorded. This can be the @@ -3944,7 +3970,7 @@ type AccountsListSubaccountsCall struct { // service(type="ACCOUNT_AGGREGATION"))` // // - provider: The aggregation service provider. Format: -// `providers/{providerId}`. +// `accounts/{providerId}`. func (r *AccountsService) ListSubaccounts(provider string) *AccountsListSubaccountsCall { c := &AccountsListSubaccountsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.provider = provider @@ -8292,12 +8318,11 @@ func (c *AccountsUsersPatchCall) Do(opts ...googleapi.CallOption) (*User, error) } type TermsOfServiceAcceptCall struct { - s *APIService - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header + s *APIService + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } // Accept: Accepts a `TermsOfService`. Executing this method requires admin @@ -8335,14 +8360,6 @@ func (c *TermsOfServiceAcceptCall) Fields(s ...googleapi.Field) *TermsOfServiceA 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 *TermsOfServiceAcceptCall) IfNoneMatch(entityTag string) *TermsOfServiceAcceptCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. func (c *TermsOfServiceAcceptCall) Context(ctx context.Context) *TermsOfServiceAcceptCall { c.ctx_ = ctx @@ -8360,14 +8377,11 @@ func (c *TermsOfServiceAcceptCall) Header() http.Header { func (c *TermsOfServiceAcceptCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/v1beta/{+name}:accept") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + req, err := http.NewRequest("POST", urls, nil) if err != nil { return nil, err } @@ -8381,10 +8395,11 @@ func (c *TermsOfServiceAcceptCall) doRequest(alt string) (*http.Response, error) // Do executes the "merchantapi.termsOfService.accept" call. // Any non-2xx status code is an error. Response headers are in either -// *Empty.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 *TermsOfServiceAcceptCall) Do(opts ...googleapi.CallOption) (*Empty, error) { +// *AcceptTermsOfServiceResponse.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 *TermsOfServiceAcceptCall) Do(opts ...googleapi.CallOption) (*AcceptTermsOfServiceResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8403,7 +8418,7 @@ func (c *TermsOfServiceAcceptCall) Do(opts ...googleapi.CallOption) (*Empty, err if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Empty{ + ret := &AcceptTermsOfServiceResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, diff --git a/reseller/v1/reseller-api.json b/reseller/v1/reseller-api.json index 639c68fbeec..841186913ff 100644 --- a/reseller/v1/reseller-api.json +++ b/reseller/v1/reseller-api.json @@ -111,7 +111,7 @@ "customers": { "methods": { "get": { - "description": "Gets a customer account. Use this operation to see a customer account already in your reseller management, or to see the minimal account information for an existing customer that you do not manage. For more information about the API response for existing customers, see [retrieving a customer account](/admin-sdk/reseller/v1/how-tos/manage_customers#get_customer).", + "description": "Gets a customer account. Use this operation to see a customer account already in your reseller management, or to see the minimal account information for an existing customer that you do not manage. For more information about the API response for existing customers, see [retrieving a customer account](https://developers.google.com/workspace/admin/reseller/v1/how-tos/manage_customers#get_customer).", "flatPath": "apps/reseller/v1/customers/{customerId}", "httpMethod": "GET", "id": "reseller.customers.get", @@ -136,7 +136,7 @@ ] }, "insert": { - "description": "Orders a new customer's account. Before ordering a new customer account, establish whether the customer account already exists using the [`customers.get`](/admin-sdk/reseller/v1/reference/customers/get) If the customer account exists as a direct Google account or as a resold customer account from another reseller, use the `customerAuthToken\\` as described in [order a resold account for an existing customer](/admin-sdk/reseller/v1/how-tos/manage_customers#create_existing_customer). For more information about ordering a new customer account, see [order a new customer account](/admin-sdk/reseller/v1/how-tos/manage_customers#create_customer). After creating a new customer account, you must provision a user as an administrator. The customer's administrator is required to sign in to the Admin console and sign the G Suite via Reseller agreement to activate the account. Resellers are prohibited from signing the G Suite via Reseller agreement on the customer's behalf. For more information, see [order a new customer account](/admin-sdk/reseller/v1/how-tos/manage_customers#tos).", + "description": "Orders a new customer's account. Before ordering a new customer account, establish whether the customer account already exists using the [`customers.get`](https://developers.google.com/workspace/admin/reseller/v1/reference/customers/get) If the customer account exists as a direct Google account or as a resold customer account from another reseller, use the `customerAuthToken\\` as described in [order a resold account for an existing customer](https://developers.google.com/workspace/admin/reseller/v1/how-tos/manage_customers#create_existing_customer). For more information about ordering a new customer account, see [order a new customer account](https://developers.google.com/workspace/admin/reseller/v1/how-tos/manage_customers#create_customer). After creating a new customer account, you must provision a user as an administrator. The customer's administrator is required to sign in to the Admin console and sign the G Suite via Reseller agreement to activate the account. Resellers are prohibited from signing the G Suite via Reseller agreement on the customer's behalf. For more information, see [order a new customer account](https://developers.google.com/workspace/admin/reseller/v1/how-tos/manage_customers#tos).", "flatPath": "apps/reseller/v1/customers", "httpMethod": "POST", "id": "reseller.customers.insert", @@ -187,7 +187,7 @@ ] }, "update": { - "description": "Updates a customer account's settings. You cannot update `customerType` via the Reseller API, but a `\"team\"` customer can verify their domain and become `customerType = \"domain\"`. For more information, see [update a customer's settings](/admin-sdk/reseller/v1/how-tos/manage_customers#update_customer).", + "description": "Updates a customer account's settings. You cannot update `customerType` via the Reseller API, but a `\"team\"` customer can verify their domain and become `customerType = \"domain\"`. For more information, see [update a customer's settings](https://developers.google.com/workspace/admin/reseller/v1/how-tos/manage_customers#update_customer).", "flatPath": "apps/reseller/v1/customers/{customerId}", "httpMethod": "PUT", "id": "reseller.customers.update", @@ -311,7 +311,7 @@ ] }, "changePlan": { - "description": "Updates a subscription plan. Use this method to update a plan for a 30-day trial or a flexible plan subscription to an annual commitment plan with monthly or yearly payments. How a plan is updated differs depending on the plan and the products. For more information, see the description in [manage subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#update_subscription_plan).", + "description": "Updates a subscription plan. Use this method to update a plan for a 30-day trial or a flexible plan subscription to an annual commitment plan with monthly or yearly payments. How a plan is updated differs depending on the plan and the products. For more information, see the description in [manage subscriptions](https://developers.google.com/workspace/admin/reseller/v1/how-tos/manage_subscriptions#update_subscription_plan).", "flatPath": "apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changePlan", "httpMethod": "POST", "id": "reseller.subscriptions.changePlan", @@ -345,7 +345,7 @@ ] }, "changeRenewalSettings": { - "description": "Updates a user license's renewal settings. This is applicable for accounts with annual commitment plans only. For more information, see the description in [manage subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#update_renewal).", + "description": "Updates a user license's renewal settings. This is applicable for accounts with annual commitment plans only. For more information, see the description in [manage subscriptions](https://developers.google.com/workspace/admin/reseller/v1/how-tos/manage_subscriptions#update_renewal).", "flatPath": "apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changeRenewalSettings", "httpMethod": "POST", "id": "reseller.subscriptions.changeRenewalSettings", @@ -379,7 +379,7 @@ ] }, "changeSeats": { - "description": "Updates a subscription's user license settings. For more information about updating an annual commitment plan or a flexible plan subscription’s licenses, see [Manage Subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#update_subscription_seat).", + "description": "Updates a subscription's user license settings. For more information about updating an annual commitment plan or a flexible plan subscription’s licenses, see [Manage Subscriptions](https://developers.google.com/workspace/admin/reseller/v1/how-tos/manage_subscriptions#update_subscription_seat).", "flatPath": "apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changeSeats", "httpMethod": "POST", "id": "reseller.subscriptions.changeSeats", @@ -458,7 +458,7 @@ ] }, "get": { - "description": "Gets a specific subscription. The `subscriptionId` can be found using the [Retrieve all reseller subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#get_all_subscriptions) method. For more information about retrieving a specific subscription, see the information descrived in [manage subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#get_subscription).", + "description": "Gets a specific subscription. The `subscriptionId` can be found using the [Retrieve all reseller subscriptions](https://developers.google.com/workspace/admin/reseller/v1/how-tos/manage_subscriptions#get_all_subscriptions) method. For more information about retrieving a specific subscription, see the information descrived in [manage subscriptions](https://developers.google.com/workspace/admin/reseller/v1/how-tos/manage_subscriptions#get_subscription).", "flatPath": "apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}", "httpMethod": "GET", "id": "reseller.subscriptions.get", @@ -490,7 +490,7 @@ ] }, "insert": { - "description": "Creates or transfer a subscription. Create a subscription for a customer's account that you ordered using the [Order a new customer account](/admin-sdk/reseller/v1/reference/customers/insert.html) method. For more information about creating a subscription for different payment plans, see [manage subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#create_subscription).\\ If you did not order the customer's account using the customer insert method, use the customer's `customerAuthToken` when creating a subscription for that customer. If transferring a G Suite subscription with an associated Google Drive or Google Vault subscription, use the [batch operation](/admin-sdk/reseller/v1/how-tos/batch.html) to transfer all of these subscriptions. For more information, see how to [transfer subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#transfer_a_subscription).", + "description": "Creates or transfer a subscription. Create a subscription for a customer's account that you ordered using the [Order a new customer account](https://developers.google.com/workspace/admin/reseller/v1/reference/customers/insert.html) method. For more information about creating a subscription for different payment plans, see [manage subscriptions](https://developers.google.com/workspace/admin/reseller/v1/how-tos/manage_subscriptions#create_subscription).\\ If you did not order the customer's account using the customer insert method, use the customer's `customerAuthToken` when creating a subscription for that customer. If transferring a G Suite subscription with an associated Google Drive or Google Vault subscription, use the [batch operation](https://developers.google.com/workspace/admin/reseller/v1/how-tos/batch.html) to transfer all of these subscriptions. For more information, see how to [transfer subscriptions](https://developers.google.com/workspace/admin/reseller/v1/how-tos/manage_subscriptions#transfer_a_subscription).", "flatPath": "apps/reseller/v1/customers/{customerId}/subscriptions", "httpMethod": "POST", "id": "reseller.subscriptions.insert", @@ -542,7 +542,7 @@ ] }, "list": { - "description": "Lists of subscriptions managed by the reseller. The list can be all subscriptions, all of a customer's subscriptions, or all of a customer's transferable subscriptions. Optionally, this method can filter the response by a `customerNamePrefix`. For more information, see [manage subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions).", + "description": "Lists of subscriptions managed by the reseller. The list can be all subscriptions, all of a customer's subscriptions, or all of a customer's transferable subscriptions. Optionally, this method can filter the response by a `customerNamePrefix`. For more information, see [manage subscriptions](https://developers.google.com/workspace/admin/reseller/v1/how-tos/manage_subscriptions).", "flatPath": "apps/reseller/v1/subscriptions", "httpMethod": "GET", "id": "reseller.subscriptions.list", @@ -587,7 +587,7 @@ ] }, "startPaidService": { - "description": "Immediately move a 30-day free trial subscription to a paid service subscription. This method is only applicable if a payment plan has already been set up for the 30-day trial subscription. For more information, see [manage subscriptions](/admin-sdk/reseller/v1/how-tos/manage_subscriptions#paid_service).", + "description": "Immediately move a 30-day free trial subscription to a paid service subscription. This method is only applicable if a payment plan has already been set up for the 30-day trial subscription. For more information, see [manage subscriptions](https://developers.google.com/workspace/admin/reseller/v1/how-tos/manage_subscriptions#paid_service).", "flatPath": "apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/startPaidService", "httpMethod": "POST", "id": "reseller.subscriptions.startPaidService", @@ -651,7 +651,7 @@ } } }, - "revision": "20230611", + "revision": "20250419", "rootUrl": "https://reseller.googleapis.com/", "schemas": { "Address": { @@ -854,7 +854,7 @@ "type": "string" }, "licensedNumberOfSeats": { - "description": "Read-only field containing the current number of users that are assigned a license for the product defined in `skuId`. This field's value is equivalent to the numerical count of users returned by the Enterprise License Manager API method: [`listForProductAndSku`](/admin-sdk/licensing/v1/reference/licenseAssignments/listForProductAndSku).", + "description": "Read-only field containing the current number of users that are assigned a license for the product defined in `skuId`. This field's value is equivalent to the numerical count of users returned by the Enterprise License Manager API method: [`listForProductAndSku`](https://developers.google.com/workspace/admin/licensing/v1/reference/licenseAssignments/listForProductAndSku).", "format": "int32", "type": "integer" }, diff --git a/reseller/v1/reseller-gen.go b/reseller/v1/reseller-gen.go index 7067732b63c..065d5639b98 100644 --- a/reseller/v1/reseller-gen.go +++ b/reseller/v1/reseller-gen.go @@ -475,7 +475,7 @@ type Seats struct { // users that are assigned a license for the product defined in `skuId`. This // field's value is equivalent to the numerical count of users returned by the // Enterprise License Manager API method: `listForProductAndSku` - // (/admin-sdk/licensing/v1/reference/licenseAssignments/listForProductAndSku). + // (https://developers.google.com/workspace/admin/licensing/v1/reference/licenseAssignments/listForProductAndSku). LicensedNumberOfSeats int64 `json:"licensedNumberOfSeats,omitempty"` // MaximumNumberOfSeats: This is a required property and is exclusive to // subscriptions with `FLEXIBLE` or `TRIAL` plans. This property sets the @@ -801,7 +801,7 @@ type CustomersGetCall struct { // information for an existing customer that you do not manage. For more // information about the API response for existing customers, see retrieving a // customer account -// (/admin-sdk/reseller/v1/how-tos/manage_customers#get_customer). +// (https://developers.google.com/workspace/admin/reseller/v1/how-tos/manage_customers#get_customer). // // - customerId: This can be either the customer's primary domain name or the // customer's unique identifier. If the domain name for a customer changes, @@ -916,20 +916,22 @@ type CustomersInsertCall struct { // Insert: Orders a new customer's account. Before ordering a new customer // account, establish whether the customer account already exists using the -// `customers.get` (/admin-sdk/reseller/v1/reference/customers/get) If the -// customer account exists as a direct Google account or as a resold customer -// account from another reseller, use the `customerAuthToken\` as described in -// order a resold account for an existing customer -// (/admin-sdk/reseller/v1/how-tos/manage_customers#create_existing_customer). +// `customers.get` +// (https://developers.google.com/workspace/admin/reseller/v1/reference/customers/get) +// If the customer account exists as a direct Google account or as a resold +// customer account from another reseller, use the `customerAuthToken\` as +// described in order a resold account for an existing customer +// (https://developers.google.com/workspace/admin/reseller/v1/how-tos/manage_customers#create_existing_customer). // For more information about ordering a new customer account, see order a new // customer account -// (/admin-sdk/reseller/v1/how-tos/manage_customers#create_customer). After -// creating a new customer account, you must provision a user as an +// (https://developers.google.com/workspace/admin/reseller/v1/how-tos/manage_customers#create_customer). +// After creating a new customer account, you must provision a user as an // administrator. The customer's administrator is required to sign in to the // Admin console and sign the G Suite via Reseller agreement to activate the // account. Resellers are prohibited from signing the G Suite via Reseller // agreement on the customer's behalf. For more information, see order a new -// customer account (/admin-sdk/reseller/v1/how-tos/manage_customers#tos). +// customer account +// (https://developers.google.com/workspace/admin/reseller/v1/how-tos/manage_customers#tos). func (r *CustomersService) Insert(customer *Customer) *CustomersInsertCall { c := &CustomersInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.customer = customer @@ -1153,7 +1155,7 @@ type CustomersUpdateCall struct { // `customerType` via the Reseller API, but a "team" customer can verify // their domain and become `customerType = "domain". For more information, see // update a customer's settings -// (/admin-sdk/reseller/v1/how-tos/manage_customers#update_customer). +// (https://developers.google.com/workspace/admin/reseller/v1/how-tos/manage_customers#update_customer). // // - customerId: This can be either the customer's primary domain name or the // customer's unique identifier. If the domain name for a customer changes, @@ -1682,8 +1684,7 @@ type SubscriptionsChangePlanCall struct { // plan with monthly or yearly payments. How a plan is updated differs // depending on the plan and the products. For more information, see the // description in manage subscriptions -// (/admin-sdk/reseller/v1/how-tos/manage_subscriptions#update_subscription_plan -// ). +// (https://developers.google.com/workspace/admin/reseller/v1/how-tos/manage_subscriptions#update_subscription_plan). // // - customerId: This can be either the customer's primary domain name or the // customer's unique identifier. If the domain name for a customer changes, @@ -1802,7 +1803,7 @@ type SubscriptionsChangeRenewalSettingsCall struct { // ChangeRenewalSettings: Updates a user license's renewal settings. This is // applicable for accounts with annual commitment plans only. For more // information, see the description in manage subscriptions -// (/admin-sdk/reseller/v1/how-tos/manage_subscriptions#update_renewal). +// (https://developers.google.com/workspace/admin/reseller/v1/how-tos/manage_subscriptions#update_renewal). // // - customerId: This can be either the customer's primary domain name or the // customer's unique identifier. If the domain name for a customer changes, @@ -1921,8 +1922,7 @@ type SubscriptionsChangeSeatsCall struct { // ChangeSeats: Updates a subscription's user license settings. For more // information about updating an annual commitment plan or a flexible plan // subscription’s licenses, see Manage Subscriptions -// (/admin-sdk/reseller/v1/how-tos/manage_subscriptions#update_subscription_seat -// ). +// (https://developers.google.com/workspace/admin/reseller/v1/how-tos/manage_subscriptions#update_subscription_seat). // // - customerId: This can be either the customer's primary domain name or the // customer's unique identifier. If the domain name for a customer changes, @@ -2129,10 +2129,10 @@ type SubscriptionsGetCall struct { // Get: Gets a specific subscription. The `subscriptionId` can be found using // the Retrieve all reseller subscriptions -// (/admin-sdk/reseller/v1/how-tos/manage_subscriptions#get_all_subscriptions) +// (https://developers.google.com/workspace/admin/reseller/v1/how-tos/manage_subscriptions#get_all_subscriptions) // method. For more information about retrieving a specific subscription, see // the information descrived in manage subscriptions -// (/admin-sdk/reseller/v1/how-tos/manage_subscriptions#get_subscription). +// (https://developers.google.com/workspace/admin/reseller/v1/how-tos/manage_subscriptions#get_subscription). // // - customerId: This can be either the customer's primary domain name or the // customer's unique identifier. If the domain name for a customer changes, @@ -2255,18 +2255,18 @@ type SubscriptionsInsertCall struct { // Insert: Creates or transfer a subscription. Create a subscription for a // customer's account that you ordered using the Order a new customer account -// (/admin-sdk/reseller/v1/reference/customers/insert.html) method. For more -// information about creating a subscription for different payment plans, see -// manage subscriptions -// (/admin-sdk/reseller/v1/how-tos/manage_subscriptions#create_subscription).\ +// (https://developers.google.com/workspace/admin/reseller/v1/reference/customers/insert.html) +// method. For more information about creating a subscription for different +// payment plans, see manage subscriptions +// (https://developers.google.com/workspace/admin/reseller/v1/how-tos/manage_subscriptions#create_subscription).\ // If you did not order the customer's account using the customer insert // method, use the customer's `customerAuthToken` when creating a subscription // for that customer. If transferring a G Suite subscription with an associated // Google Drive or Google Vault subscription, use the batch operation -// (/admin-sdk/reseller/v1/how-tos/batch.html) to transfer all of these -// subscriptions. For more information, see how to transfer subscriptions -// (/admin-sdk/reseller/v1/how-tos/manage_subscriptions#transfer_a_subscription) -// . +// (https://developers.google.com/workspace/admin/reseller/v1/how-tos/batch.html) +// to transfer all of these subscriptions. For more information, see how to +// transfer subscriptions +// (https://developers.google.com/workspace/admin/reseller/v1/how-tos/manage_subscriptions#transfer_a_subscription). // // - customerId: This can be either the customer's primary domain name or the // customer's unique identifier. If the domain name for a customer changes, @@ -2419,7 +2419,7 @@ type SubscriptionsListCall struct { // subscriptions, all of a customer's subscriptions, or all of a customer's // transferable subscriptions. Optionally, this method can filter the response // by a `customerNamePrefix`. For more information, see manage subscriptions -// (/admin-sdk/reseller/v1/how-tos/manage_subscriptions). +// (https://developers.google.com/workspace/admin/reseller/v1/how-tos/manage_subscriptions). func (r *SubscriptionsService) List() *SubscriptionsListCall { c := &SubscriptionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} return c @@ -2597,7 +2597,7 @@ type SubscriptionsStartPaidServiceCall struct { // paid service subscription. This method is only applicable if a payment plan // has already been set up for the 30-day trial subscription. For more // information, see manage subscriptions -// (/admin-sdk/reseller/v1/how-tos/manage_subscriptions#paid_service). +// (https://developers.google.com/workspace/admin/reseller/v1/how-tos/manage_subscriptions#paid_service). // // - customerId: This can be either the customer's primary domain name or the // customer's unique identifier. If the domain name for a customer changes, diff --git a/serviceusage/v1beta1/serviceusage-api.json b/serviceusage/v1beta1/serviceusage-api.json index 193876a944d..aa24b133834 100644 --- a/serviceusage/v1beta1/serviceusage-api.json +++ b/serviceusage/v1beta1/serviceusage-api.json @@ -381,7 +381,7 @@ ], "parameters": { "name": { - "description": "The resource name of the quota limit. An example name would be: `projects/123/services/serviceusage.googleapis.com/quotas/metrics/serviceusage.googleapis.com%2Fmutate_requests`", + "description": "The resource name of the quota. An example name would be: `projects/123/services/serviceusage.googleapis.com/consumerQuotaMetrics/serviceusage.googleapis.com%2Fmutate_requests`", "location": "path", "pattern": "^[^/]+/[^/]+/services/[^/]+/consumerQuotaMetrics/[^/]+$", "required": true, @@ -964,7 +964,7 @@ } } }, - "revision": "20250313", + "revision": "20250417", "rootUrl": "https://serviceusage.googleapis.com/", "schemas": { "AddEnableRulesMetadata": { diff --git a/serviceusage/v1beta1/serviceusage-gen.go b/serviceusage/v1beta1/serviceusage-gen.go index 9c332ab5c0b..224b6e13c9a 100644 --- a/serviceusage/v1beta1/serviceusage-gen.go +++ b/serviceusage/v1beta1/serviceusage-gen.go @@ -6200,9 +6200,9 @@ type ServicesConsumerQuotaMetricsGetCall struct { // Get: Retrieves a summary of quota information for a specific quota metric // -// - name: The resource name of the quota limit. An example name would be: -// `projects/123/services/serviceusage.googleapis.com/quotas/metrics/serviceus -// age.googleapis.com%2Fmutate_requests`. +// - name: The resource name of the quota. An example name would be: +// `projects/123/services/serviceusage.googleapis.com/consumerQuotaMetrics/ser +// viceusage.googleapis.com%2Fmutate_requests`. func (r *ServicesConsumerQuotaMetricsService) Get(name string) *ServicesConsumerQuotaMetricsGetCall { c := &ServicesConsumerQuotaMetricsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name diff --git a/sheets/v4/sheets-api.json b/sheets/v4/sheets-api.json index 2a9fcd1ed7d..fe67e2998e4 100644 --- a/sheets/v4/sheets-api.json +++ b/sheets/v4/sheets-api.json @@ -177,6 +177,11 @@ "spreadsheetId" ], "parameters": { + "excludeTablesInBandedRanges": { + "description": "True if tables should be excluded in the banded ranges. False if not set.", + "location": "query", + "type": "boolean" + }, "includeGridData": { "description": "True if grid data should be returned. This parameter is ignored if a field mask was set in the request.", "location": "query", @@ -870,7 +875,7 @@ } } }, - "revision": "20250401", + "revision": "20250415", "rootUrl": "https://sheets.googleapis.com/", "schemas": { "AddBandingRequest": { @@ -1094,6 +1099,17 @@ }, "type": "object" }, + "AddTableRequest": { + "description": "Adds a new table to the spreadsheet.", + "id": "AddTableRequest", + "properties": { + "table": { + "$ref": "Table", + "description": "Required. The table to add." + } + }, + "type": "object" + }, "AppendCellsRequest": { "description": "Adds new cells after the last row with data in a sheet, inserting new rows into the sheet if necessary.", "id": "AppendCellsRequest", @@ -1114,6 +1130,10 @@ "description": "The sheet ID to append the data to.", "format": "int32", "type": "integer" + }, + "tableId": { + "description": "The ID of the table to append data to. The data will be only appended to the table body. This field also takes precedence over the `sheet_id` field.", + "type": "string" } }, "type": "object" @@ -1605,6 +1625,10 @@ "$ref": "SortSpec" }, "type": "array" + }, + "tableId": { + "description": "The table this filter is backed by, if any. When writing, only one of range or table_id may be set.", + "type": "string" } }, "type": "object" @@ -4065,6 +4089,17 @@ }, "type": "object" }, + "DeleteTableRequest": { + "description": "Removes the table with the given ID from the spreadsheet.", + "id": "DeleteTableRequest", + "properties": { + "tableId": { + "description": "The ID of the table to delete.", + "type": "string" + } + }, + "type": "object" + }, "DeveloperMetadata": { "description": "Developer metadata associated with a location or object in a spreadsheet. Developer metadata may be used to associate arbitrary data with various parts of a spreadsheet and will remain associated at those locations as they move around and the spreadsheet is edited. For example, if developer metadata is associated with row 5 and another row is then subsequently inserted above row 5, that original metadata will still be associated with the row it was first associated with (what is now row 6). If the associated object is deleted its metadata is deleted too.", "id": "DeveloperMetadata", @@ -4592,12 +4627,12 @@ "type": "integer" }, "namedRangeId": { - "description": "The named range this filter view is backed by, if any. When writing, only one of range or named_range_id may be set.", + "description": "The named range this filter view is backed by, if any. When writing, only one of range or named_range_id or table_id may be set.", "type": "string" }, "range": { "$ref": "GridRange", - "description": "The range this filter view covers. When writing, only one of range or named_range_id may be set." + "description": "The range this filter view covers. When writing, only one of range or named_range_id or table_id may be set." }, "sortSpecs": { "description": "The sort order per column. Later specifications are used when values are equal in the earlier specifications.", @@ -4606,6 +4641,10 @@ }, "type": "array" }, + "tableId": { + "description": "The table this filter view is backed by, if any. When writing, only one of range or named_range_id or table_id may be set.", + "type": "string" + }, "title": { "description": "The name of the filter view.", "type": "string" @@ -4700,6 +4739,10 @@ }, "type": "array" }, + "excludeTablesInBandedRanges": { + "description": "True if tables should be excluded in the banded ranges. False if not set.", + "type": "boolean" + }, "includeGridData": { "description": "True if grid data should be returned. This parameter is ignored if a field mask was set in the request.", "type": "boolean" @@ -5885,7 +5928,7 @@ "description": "The users and groups with edit access to the protected range. This field is only visible to users with edit access to the protected range and the document. Editors are not supported with warning_only protection." }, "namedRangeId": { - "description": "The named range this protected range is backed by, if any. When writing, only one of range or named_range_id may be set.", + "description": "The named range this protected range is backed by, if any. When writing, only one of range or named_range_id or table_id may be set.", "type": "string" }, "protectedRangeId": { @@ -5895,12 +5938,16 @@ }, "range": { "$ref": "GridRange", - "description": "The range that is being protected. The range may be fully unbounded, in which case this is considered a protected sheet. When writing, only one of range or named_range_id may be set." + "description": "The range that is being protected. The range may be fully unbounded, in which case this is considered a protected sheet. When writing, only one of range or named_range_id or table_id may be set." }, "requestingUserCanEdit": { "description": "True if the user who requested this protected range can edit the protected area. This field is read-only.", "type": "boolean" }, + "tableId": { + "description": "The table this protected range is backed by, if any. When writing, only one of range or named_range_id or table_id may be set.", + "type": "string" + }, "unprotectedRanges": { "description": "The list of unprotected ranges within a protected sheet. Unprotected ranges are only supported on protected sheets.", "items": { @@ -6083,6 +6130,10 @@ "$ref": "AddSlicerRequest", "description": "Adds a slicer." }, + "addTable": { + "$ref": "AddTableRequest", + "description": "Adds a table." + }, "appendCells": { "$ref": "AppendCellsRequest", "description": "Appends cells after the last row with data in a sheet." @@ -6171,6 +6222,10 @@ "$ref": "DeleteSheetRequest", "description": "Deletes a sheet." }, + "deleteTable": { + "$ref": "DeleteTableRequest", + "description": "A request for deleting a table." + }, "duplicateFilterView": { "$ref": "DuplicateFilterViewRequest", "description": "Duplicates a filter view." @@ -6306,6 +6361,10 @@ "updateSpreadsheetProperties": { "$ref": "UpdateSpreadsheetPropertiesRequest", "description": "Updates the spreadsheet's properties." + }, + "updateTable": { + "$ref": "UpdateTableRequest", + "description": "Updates a table." } }, "type": "object" @@ -6641,6 +6700,13 @@ "$ref": "Slicer" }, "type": "array" + }, + "tables": { + "description": "The tables on this sheet.", + "items": { + "$ref": "Table" + }, + "type": "array" } }, "type": "object" @@ -7005,6 +7071,128 @@ }, "type": "object" }, + "Table": { + "description": "A table.", + "id": "Table", + "properties": { + "columnProperties": { + "description": "The table column properties.", + "items": { + "$ref": "TableColumnProperties" + }, + "type": "array" + }, + "name": { + "description": "The table name. This is unique to all tables in the same spreadsheet.", + "type": "string" + }, + "range": { + "$ref": "GridRange", + "description": "The table range." + }, + "rowsProperties": { + "$ref": "TableRowsProperties", + "description": "The table rows properties." + }, + "tableId": { + "description": "The id of the table.", + "type": "string" + } + }, + "type": "object" + }, + "TableColumnDataValidationRule": { + "description": "A data validation rule for a column in a table.", + "id": "TableColumnDataValidationRule", + "properties": { + "condition": { + "$ref": "BooleanCondition", + "description": "The condition that data in the cell must match. Valid only if the [BooleanCondition.type] is ONE_OF_LIST." + } + }, + "type": "object" + }, + "TableColumnProperties": { + "description": "The table column.", + "id": "TableColumnProperties", + "properties": { + "columnIndex": { + "description": "The 0-based column index. This index is relative to its position in the table and is not necessarily the same as the column index in the sheet.", + "format": "int32", + "type": "integer" + }, + "columnName": { + "description": "The column name.", + "type": "string" + }, + "columnType": { + "description": "The column type.", + "enum": [ + "COLUMN_TYPE_UNSPECIFIED", + "DOUBLE", + "CURRENCY", + "PERCENT", + "DATE", + "TIME", + "DATE_TIME", + "TEXT", + "BOOLEAN", + "DROPDOWN", + "FILES_CHIP", + "PEOPLE_CHIP", + "FINANCE_CHIP", + "PLACE_CHIP", + "RATINGS_CHIP" + ], + "enumDescriptions": [ + "An unspecified column type.", + "The number column type.", + "The currency column type.", + "The percent column type.", + "The date column type.", + "The time column type.", + "The date and time column type.", + "The text column type.", + "The boolean column type.", + "The dropdown column type.", + "The files chip column type", + "The people chip column type", + "The finance chip column type", + "The place chip column type", + "The ratings chip column type" + ], + "type": "string" + }, + "dataValidationRule": { + "$ref": "TableColumnDataValidationRule", + "description": "The column data validation rule. Only set for dropdown column type." + } + }, + "type": "object" + }, + "TableRowsProperties": { + "description": "The table row properties.", + "id": "TableRowsProperties", + "properties": { + "firstBandColorStyle": { + "$ref": "ColorStyle", + "description": "The first color that is alternating. If this field is set, the first banded row is filled with the specified color. Otherwise, the first banded row is filled with a default color." + }, + "footerColorStyle": { + "$ref": "ColorStyle", + "description": "The color of the last row. If this field is not set a footer is not added, the last row is filled with either first_band_color_style or second_band_color_style, depending on the color of the previous row. If updating an existing table without a footer to have a footer, the range will be expanded by 1 row. If updating an existing table with a footer and removing a footer, the range will be shrunk by 1 row." + }, + "headerColorStyle": { + "$ref": "ColorStyle", + "description": "The color of the header row. If this field is set, the header row is filled with the specified color. Otherwise, the header row is filled with a default color." + }, + "secondBandColorStyle": { + "$ref": "ColorStyle", + "description": "The second color that is alternating. If this field is set, the second banded row is filled with the specified color. Otherwise, the second banded row is filled with a default color." + } + }, + "type": "object" + }, "TextFormat": { "description": "The format of a run of text in a cell. Absent values indicate that the field isn't specified.", "id": "TextFormat", @@ -7756,6 +7944,22 @@ }, "type": "object" }, + "UpdateTableRequest": { + "description": "Updates a table in the spreadsheet.", + "id": "UpdateTableRequest", + "properties": { + "fields": { + "description": "Required. The fields that should be updated. At least one field must be specified. The root `table` is implied and should not be specified. A single `\"*\"` can be used as short-hand for listing every field.", + "format": "google-fieldmask", + "type": "string" + }, + "table": { + "$ref": "Table", + "description": "Required. The table to update." + } + }, + "type": "object" + }, "UpdateValuesByDataFilterResponse": { "description": "The response when updating a range of values by a data filter in a spreadsheet.", "id": "UpdateValuesByDataFilterResponse", diff --git a/sheets/v4/sheets-gen.go b/sheets/v4/sheets-gen.go index 041ebacf60c..bc917c538b1 100644 --- a/sheets/v4/sheets-gen.go +++ b/sheets/v4/sheets-gen.go @@ -680,6 +680,28 @@ func (s AddSlicerResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// AddTableRequest: Adds a new table to the spreadsheet. +type AddTableRequest struct { + // Table: Required. The table to add. + Table *Table `json:"table,omitempty"` + // ForceSendFields is a list of field names (e.g. "Table") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Table") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AddTableRequest) MarshalJSON() ([]byte, error) { + type NoMethod AddTableRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // AppendCellsRequest: Adds new cells after the last row with data in a sheet, // inserting new rows into the sheet if necessary. type AppendCellsRequest struct { @@ -691,6 +713,10 @@ type AppendCellsRequest struct { Rows []*RowData `json:"rows,omitempty"` // SheetId: The sheet ID to append the data to. SheetId int64 `json:"sheetId,omitempty"` + // TableId: The ID of the table to append data to. The data will be only + // appended to the table body. This field also takes precedence over the + // `sheet_id` field. + TableId string `json:"tableId,omitempty"` // ForceSendFields is a list of field names (e.g. "Fields") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See @@ -1237,6 +1263,9 @@ type BasicFilter struct { // SortSpecs: The sort order per column. Later specifications are used when // values are equal in the earlier specifications. SortSpecs []*SortSpec `json:"sortSpecs,omitempty"` + // TableId: The table this filter is backed by, if any. When writing, only one + // of range or table_id may be set. + TableId string `json:"tableId,omitempty"` // ForceSendFields is a list of field names (e.g. "Criteria") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -4566,6 +4595,29 @@ func (s DeleteSheetRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// DeleteTableRequest: Removes the table with the given ID from the +// spreadsheet. +type DeleteTableRequest struct { + // TableId: The ID of the table to delete. + TableId string `json:"tableId,omitempty"` + // ForceSendFields is a list of field names (e.g. "TableId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "TableId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s DeleteTableRequest) MarshalJSON() ([]byte, error) { + type NoMethod DeleteTableRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // DeveloperMetadata: Developer metadata associated with a location or object // in a spreadsheet. Developer metadata may be used to associate arbitrary data // with various parts of a spreadsheet and will remain associated at those @@ -5239,14 +5291,17 @@ type FilterView struct { // FilterViewId: The ID of the filter view. FilterViewId int64 `json:"filterViewId,omitempty"` // NamedRangeId: The named range this filter view is backed by, if any. When - // writing, only one of range or named_range_id may be set. + // writing, only one of range or named_range_id or table_id may be set. NamedRangeId string `json:"namedRangeId,omitempty"` // Range: The range this filter view covers. When writing, only one of range or - // named_range_id may be set. + // named_range_id or table_id may be set. Range *GridRange `json:"range,omitempty"` // SortSpecs: The sort order per column. Later specifications are used when // values are equal in the earlier specifications. SortSpecs []*SortSpec `json:"sortSpecs,omitempty"` + // TableId: The table this filter view is backed by, if any. When writing, only + // one of range or named_range_id or table_id may be set. + TableId string `json:"tableId,omitempty"` // Title: The name of the filter view. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "Criteria") to @@ -5352,6 +5407,9 @@ type GetSpreadsheetByDataFilterRequest struct { // DataFilters: The DataFilters used to select which ranges to retrieve from // the spreadsheet. DataFilters []*DataFilter `json:"dataFilters,omitempty"` + // ExcludeTablesInBandedRanges: True if tables should be excluded in the banded + // ranges. False if not set. + ExcludeTablesInBandedRanges bool `json:"excludeTablesInBandedRanges,omitempty"` // IncludeGridData: True if grid data should be returned. This parameter is // ignored if a field mask was set in the request. IncludeGridData bool `json:"includeGridData,omitempty"` @@ -6905,17 +6963,20 @@ type ProtectedRange struct { // the document. Editors are not supported with warning_only protection. Editors *Editors `json:"editors,omitempty"` // NamedRangeId: The named range this protected range is backed by, if any. - // When writing, only one of range or named_range_id may be set. + // When writing, only one of range or named_range_id or table_id may be set. NamedRangeId string `json:"namedRangeId,omitempty"` // ProtectedRangeId: The ID of the protected range. This field is read-only. ProtectedRangeId int64 `json:"protectedRangeId,omitempty"` // Range: The range that is being protected. The range may be fully unbounded, // in which case this is considered a protected sheet. When writing, only one - // of range or named_range_id may be set. + // of range or named_range_id or table_id may be set. Range *GridRange `json:"range,omitempty"` // RequestingUserCanEdit: True if the user who requested this protected range // can edit the protected area. This field is read-only. RequestingUserCanEdit bool `json:"requestingUserCanEdit,omitempty"` + // TableId: The table this protected range is backed by, if any. When writing, + // only one of range or named_range_id or table_id may be set. + TableId string `json:"tableId,omitempty"` // UnprotectedRanges: The list of unprotected ranges within a protected sheet. // Unprotected ranges are only supported on protected sheets. UnprotectedRanges []*GridRange `json:"unprotectedRanges,omitempty"` @@ -7156,6 +7217,8 @@ type Request struct { AddSheet *AddSheetRequest `json:"addSheet,omitempty"` // AddSlicer: Adds a slicer. AddSlicer *AddSlicerRequest `json:"addSlicer,omitempty"` + // AddTable: Adds a table. + AddTable *AddTableRequest `json:"addTable,omitempty"` // AppendCells: Appends cells after the last row with data in a sheet. AppendCells *AppendCellsRequest `json:"appendCells,omitempty"` // AppendDimension: Appends dimensions to the end of a sheet. @@ -7205,6 +7268,8 @@ type Request struct { DeleteRange *DeleteRangeRequest `json:"deleteRange,omitempty"` // DeleteSheet: Deletes a sheet. DeleteSheet *DeleteSheetRequest `json:"deleteSheet,omitempty"` + // DeleteTable: A request for deleting a table. + DeleteTable *DeleteTableRequest `json:"deleteTable,omitempty"` // DuplicateFilterView: Duplicates a filter view. DuplicateFilterView *DuplicateFilterViewRequest `json:"duplicateFilterView,omitempty"` // DuplicateSheet: Duplicates a sheet. @@ -7276,6 +7341,8 @@ type Request struct { UpdateSlicerSpec *UpdateSlicerSpecRequest `json:"updateSlicerSpec,omitempty"` // UpdateSpreadsheetProperties: Updates the spreadsheet's properties. UpdateSpreadsheetProperties *UpdateSpreadsheetPropertiesRequest `json:"updateSpreadsheetProperties,omitempty"` + // UpdateTable: Updates a table. + UpdateTable *UpdateTableRequest `json:"updateTable,omitempty"` // ForceSendFields is a list of field names (e.g. "AddBanding") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -7608,6 +7675,8 @@ type Sheet struct { RowGroups []*DimensionGroup `json:"rowGroups,omitempty"` // Slicers: The slicers on this sheet. Slicers []*Slicer `json:"slicers,omitempty"` + // Tables: The tables on this sheet. + Tables []*Table `json:"tables,omitempty"` // ForceSendFields is a list of field names (e.g. "BandedRanges") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -8003,6 +8072,147 @@ func (s SpreadsheetTheme) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// Table: A table. +type Table struct { + // ColumnProperties: The table column properties. + ColumnProperties []*TableColumnProperties `json:"columnProperties,omitempty"` + // Name: The table name. This is unique to all tables in the same spreadsheet. + Name string `json:"name,omitempty"` + // Range: The table range. + Range *GridRange `json:"range,omitempty"` + // RowsProperties: The table rows properties. + RowsProperties *TableRowsProperties `json:"rowsProperties,omitempty"` + // TableId: The id of the table. + TableId string `json:"tableId,omitempty"` + // ForceSendFields is a list of field names (e.g. "ColumnProperties") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ColumnProperties") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s Table) MarshalJSON() ([]byte, error) { + type NoMethod Table + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// TableColumnDataValidationRule: A data validation rule for a column in a +// table. +type TableColumnDataValidationRule struct { + // Condition: The condition that data in the cell must match. Valid only if the + // [BooleanCondition.type] is ONE_OF_LIST. + Condition *BooleanCondition `json:"condition,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 TableColumnDataValidationRule) MarshalJSON() ([]byte, error) { + type NoMethod TableColumnDataValidationRule + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// TableColumnProperties: The table column. +type TableColumnProperties struct { + // ColumnIndex: The 0-based column index. This index is relative to its + // position in the table and is not necessarily the same as the column index in + // the sheet. + ColumnIndex int64 `json:"columnIndex,omitempty"` + // ColumnName: The column name. + ColumnName string `json:"columnName,omitempty"` + // ColumnType: The column type. + // + // Possible values: + // "COLUMN_TYPE_UNSPECIFIED" - An unspecified column type. + // "DOUBLE" - The number column type. + // "CURRENCY" - The currency column type. + // "PERCENT" - The percent column type. + // "DATE" - The date column type. + // "TIME" - The time column type. + // "DATE_TIME" - The date and time column type. + // "TEXT" - The text column type. + // "BOOLEAN" - The boolean column type. + // "DROPDOWN" - The dropdown column type. + // "FILES_CHIP" - The files chip column type + // "PEOPLE_CHIP" - The people chip column type + // "FINANCE_CHIP" - The finance chip column type + // "PLACE_CHIP" - The place chip column type + // "RATINGS_CHIP" - The ratings chip column type + ColumnType string `json:"columnType,omitempty"` + // DataValidationRule: The column data validation rule. Only set for dropdown + // column type. + DataValidationRule *TableColumnDataValidationRule `json:"dataValidationRule,omitempty"` + // ForceSendFields is a list of field names (e.g. "ColumnIndex") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ColumnIndex") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s TableColumnProperties) MarshalJSON() ([]byte, error) { + type NoMethod TableColumnProperties + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// TableRowsProperties: The table row properties. +type TableRowsProperties struct { + // FirstBandColorStyle: The first color that is alternating. If this field is + // set, the first banded row is filled with the specified color. Otherwise, the + // first banded row is filled with a default color. + FirstBandColorStyle *ColorStyle `json:"firstBandColorStyle,omitempty"` + // FooterColorStyle: The color of the last row. If this field is not set a + // footer is not added, the last row is filled with either + // first_band_color_style or second_band_color_style, depending on the color of + // the previous row. If updating an existing table without a footer to have a + // footer, the range will be expanded by 1 row. If updating an existing table + // with a footer and removing a footer, the range will be shrunk by 1 row. + FooterColorStyle *ColorStyle `json:"footerColorStyle,omitempty"` + // HeaderColorStyle: The color of the header row. If this field is set, the + // header row is filled with the specified color. Otherwise, the header row is + // filled with a default color. + HeaderColorStyle *ColorStyle `json:"headerColorStyle,omitempty"` + // SecondBandColorStyle: The second color that is alternating. If this field is + // set, the second banded row is filled with the specified color. Otherwise, + // the second banded row is filled with a default color. + SecondBandColorStyle *ColorStyle `json:"secondBandColorStyle,omitempty"` + // ForceSendFields is a list of field names (e.g. "FirstBandColorStyle") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "FirstBandColorStyle") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s TableRowsProperties) MarshalJSON() ([]byte, error) { + type NoMethod TableRowsProperties + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // TextFormat: The format of a run of text in a cell. Absent values indicate // that the field isn't specified. type TextFormat struct { @@ -9065,6 +9275,32 @@ func (s UpdateSpreadsheetPropertiesRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// UpdateTableRequest: Updates a table in the spreadsheet. +type UpdateTableRequest struct { + // Fields: Required. The fields that should be updated. At least one field must + // be specified. The root `table` is implied and should not be specified. A + // single "*" can be used as short-hand for listing every field. + Fields string `json:"fields,omitempty"` + // Table: Required. The table to update. + Table *Table `json:"table,omitempty"` + // ForceSendFields is a list of field names (e.g. "Fields") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Fields") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s UpdateTableRequest) MarshalJSON() ([]byte, error) { + type NoMethod UpdateTableRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // UpdateValuesByDataFilterResponse: The response when updating a range of // values by a data filter in a spreadsheet. type UpdateValuesByDataFilterResponse struct { @@ -9609,6 +9845,14 @@ func (r *SpreadsheetsService) Get(spreadsheetId string) *SpreadsheetsGetCall { return c } +// ExcludeTablesInBandedRanges sets the optional parameter +// "excludeTablesInBandedRanges": True if tables should be excluded in the +// banded ranges. False if not set. +func (c *SpreadsheetsGetCall) ExcludeTablesInBandedRanges(excludeTablesInBandedRanges bool) *SpreadsheetsGetCall { + c.urlParams_.Set("excludeTablesInBandedRanges", fmt.Sprint(excludeTablesInBandedRanges)) + return c +} + // IncludeGridData sets the optional parameter "includeGridData": True if grid // data should be returned. This parameter is ignored if a field mask was set // in the request. diff --git a/vpcaccess/v1/vpcaccess-api.json b/vpcaccess/v1/vpcaccess-api.json index 041aaa44845..dcc72522b03 100644 --- a/vpcaccess/v1/vpcaccess-api.json +++ b/vpcaccess/v1/vpcaccess-api.json @@ -118,6 +118,12 @@ "name" ], "parameters": { + "extraLocationTypes": { + "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "location": "query", + "repeated": true, + "type": "string" + }, "filter": { "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", "location": "query", @@ -384,7 +390,7 @@ } } }, - "revision": "20240905", + "revision": "20250413", "rootUrl": "https://vpcaccess.googleapis.com/", "schemas": { "Connector": { diff --git a/vpcaccess/v1/vpcaccess-gen.go b/vpcaccess/v1/vpcaccess-gen.go index 8c997e12250..1ad3adfc9cf 100644 --- a/vpcaccess/v1/vpcaccess-gen.go +++ b/vpcaccess/v1/vpcaccess-gen.go @@ -603,6 +603,14 @@ func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall return c } +// ExtraLocationTypes sets the optional parameter "extraLocationTypes": A list +// of extra location types that should be used as conditions for controlling +// the visibility of the locations. +func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall { + c.urlParams_.SetMulti("extraLocationTypes", append([]string{}, extraLocationTypes...)) + return c +} + // Filter sets the optional parameter "filter": A filter to narrow down results // to a preferred subset. The filtering language accepts strings like // "displayName=tokyo", and is documented in more detail in AIP-160 diff --git a/vpcaccess/v1beta1/vpcaccess-api.json b/vpcaccess/v1beta1/vpcaccess-api.json index 257ea036fce..24bbcc66277 100644 --- a/vpcaccess/v1beta1/vpcaccess-api.json +++ b/vpcaccess/v1beta1/vpcaccess-api.json @@ -118,6 +118,12 @@ "name" ], "parameters": { + "extraLocationTypes": { + "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "location": "query", + "repeated": true, + "type": "string" + }, "filter": { "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", "location": "query", @@ -384,7 +390,7 @@ } } }, - "revision": "20240905", + "revision": "20250413", "rootUrl": "https://vpcaccess.googleapis.com/", "schemas": { "Connector": { diff --git a/vpcaccess/v1beta1/vpcaccess-gen.go b/vpcaccess/v1beta1/vpcaccess-gen.go index efc06ca40ee..f23fbab927a 100644 --- a/vpcaccess/v1beta1/vpcaccess-gen.go +++ b/vpcaccess/v1beta1/vpcaccess-gen.go @@ -607,6 +607,14 @@ func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall return c } +// ExtraLocationTypes sets the optional parameter "extraLocationTypes": A list +// of extra location types that should be used as conditions for controlling +// the visibility of the locations. +func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall { + c.urlParams_.SetMulti("extraLocationTypes", append([]string{}, extraLocationTypes...)) + return c +} + // Filter sets the optional parameter "filter": A filter to narrow down results // to a preferred subset. The filtering language accepts strings like // "displayName=tokyo", and is documented in more detail in AIP-160 From 677b602b6f3f072ebfac6c5791cc06d15720b136 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 24 Apr 2025 00:34:21 -0700 Subject: [PATCH 2/8] feat(all): auto-regenerate discovery clients (#3124) --- admin/datatransfer/v1/admin-api.json | 4 +- admin/datatransfer/v1/admin-gen.go | 5 +- admin/directory/v1/admin-api.json | 4 +- admin/directory/v1/admin-gen.go | 2 +- .../v1/blockchainnodeengine-api.json | 6 +- .../v1/blockchainnodeengine-gen.go | 8 +- classroom/v1/classroom-api.json | 34 +- classroom/v1/classroom-gen.go | 63 +- dialogflow/v2/dialogflow-api.json | 111 +- dialogflow/v2/dialogflow-gen.go | 132 +- dialogflow/v2beta1/dialogflow-api.json | 75 +- dialogflow/v2beta1/dialogflow-gen.go | 92 +- dialogflow/v3/dialogflow-api.json | 1961 +++++++- dialogflow/v3/dialogflow-gen.go | 4295 ++++++++++++++++- displayvideo/v3/displayvideo-api.json | 52 +- displayvideo/v3/displayvideo-gen.go | 87 +- drive/v2/drive-api.json | 11 +- drive/v2/drive-gen.go | 2 +- oracledatabase/v1/oracledatabase-api.json | 48 +- oracledatabase/v1/oracledatabase-gen.go | 32 +- redis/v1beta1/redis-api.json | 57 +- redis/v1beta1/redis-gen.go | 27 +- retail/v2/retail-api.json | 4 +- retail/v2/retail-gen.go | 5 + retail/v2alpha/retail-api.json | 4 +- retail/v2alpha/retail-gen.go | 5 + retail/v2beta/retail-api.json | 4 +- retail/v2beta/retail-gen.go | 5 + sqladmin/v1/sqladmin-api.json | 122 +- sqladmin/v1/sqladmin-gen.go | 111 +- sqladmin/v1beta4/sqladmin-api.json | 122 +- sqladmin/v1beta4/sqladmin-gen.go | 111 +- workspaceevents/v1/workspaceevents-api.json | 16 +- workspaceevents/v1/workspaceevents-gen.go | 46 +- youtube/v3/youtube-api.json | 3 +- 35 files changed, 6820 insertions(+), 846 deletions(-) diff --git a/admin/datatransfer/v1/admin-api.json b/admin/datatransfer/v1/admin-api.json index 0921bcaa391..0bedce6a69e 100644 --- a/admin/datatransfer/v1/admin-api.json +++ b/admin/datatransfer/v1/admin-api.json @@ -17,7 +17,7 @@ "canonicalName": "DataTransfer", "description": "Admin SDK lets administrators of enterprise domains to view and manage resources like user, groups etc. It also provides audit and usage reports of domain.", "discoveryVersion": "v1", - "documentationLink": "https://developers.google.com/admin-sdk/", + "documentationLink": "https://developers.google.com/workspace/admin/", "fullyEncodeReservedExpansion": true, "icons": { "x16": "http://www.google.com/images/icons/product/search-16.gif", @@ -272,7 +272,7 @@ } } }, - "revision": "20221109", + "revision": "20250421", "rootUrl": "https://admin.googleapis.com/", "schemas": { "Application": { diff --git a/admin/datatransfer/v1/admin-gen.go b/admin/datatransfer/v1/admin-gen.go index 739dc8aad63..85ebf2017be 100644 --- a/admin/datatransfer/v1/admin-gen.go +++ b/admin/datatransfer/v1/admin-gen.go @@ -6,7 +6,7 @@ // Package admin provides access to the Admin SDK API. // -// For product documentation, see: https://developers.google.com/admin-sdk/ +// For product documentation, see: https://developers.google.com/workspace/admin/ // // # Library status // @@ -129,9 +129,6 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err s := &Service{client: client, BasePath: basePath, logger: internaloption.GetLogger(opts)} s.Applications = NewApplicationsService(s) s.Transfers = NewTransfersService(s) - if err != nil { - return nil, err - } if endpoint != "" { s.BasePath = endpoint } diff --git a/admin/directory/v1/admin-api.json b/admin/directory/v1/admin-api.json index 51c0fd95340..6984748e7fd 100644 --- a/admin/directory/v1/admin-api.json +++ b/admin/directory/v1/admin-api.json @@ -98,7 +98,7 @@ "canonicalName": "directory", "description": "Admin SDK lets administrators of enterprise domains to view and manage resources like user, groups etc. It also provides audit and usage reports of domain.", "discoveryVersion": "v1", - "documentationLink": "https://developers.google.com/admin-sdk/", + "documentationLink": "https://developers.google.com/workspace/admin/", "fullyEncodeReservedExpansion": true, "icons": { "x16": "http://www.google.com/images/icons/product/search-16.gif", @@ -4671,7 +4671,7 @@ } } }, - "revision": "20250325", + "revision": "20250421", "rootUrl": "https://admin.googleapis.com/", "schemas": { "Alias": { diff --git a/admin/directory/v1/admin-gen.go b/admin/directory/v1/admin-gen.go index f012ff1b74d..9100429bb00 100644 --- a/admin/directory/v1/admin-gen.go +++ b/admin/directory/v1/admin-gen.go @@ -6,7 +6,7 @@ // Package admin provides access to the Admin SDK API. // -// For product documentation, see: https://developers.google.com/admin-sdk/ +// For product documentation, see: https://developers.google.com/workspace/admin/ // // # Library status // diff --git a/blockchainnodeengine/v1/blockchainnodeengine-api.json b/blockchainnodeengine/v1/blockchainnodeengine-api.json index b310e0d1873..5c5d3cbd55d 100644 --- a/blockchainnodeengine/v1/blockchainnodeengine-api.json +++ b/blockchainnodeengine/v1/blockchainnodeengine-api.json @@ -493,7 +493,7 @@ } } }, - "revision": "20250326", + "revision": "20250416", "rootUrl": "https://blockchainnodeengine.googleapis.com/", "schemas": { "BlockchainNode": { @@ -540,7 +540,8 @@ "type": "string" }, "privateServiceConnectEnabled": { - "description": "Optional. When true, the node is only accessible via Private Service Connect; no public endpoints are exposed. Otherwise, the node is only accessible via public endpoints. Warning: Private Service Connect enabled nodes may require a manual migration effort to remain compatible with future versions of the product. If this feature is enabled, you will be notified of these changes along with any required action to avoid disruption. See https://cloud.google.com/vpc/docs/private-service-connect.", + "deprecated": true, + "description": "Optional. When true, the node is only accessible via Private Service Connect; no public endpoints are exposed. Otherwise, the node is only accessible via public endpoints. Warning: These nodes are deprecated, please use public endpoints instead.", "type": "boolean" }, "state": { @@ -980,6 +981,7 @@ "type": "string" }, "managedValidatorClient": { + "deprecated": true, "description": "Immutable. When true, deploys a GCP-managed validator client alongside the beacon client.", "type": "boolean" }, diff --git a/blockchainnodeengine/v1/blockchainnodeengine-gen.go b/blockchainnodeengine/v1/blockchainnodeengine-gen.go index 4e075287403..92d1c8473bd 100644 --- a/blockchainnodeengine/v1/blockchainnodeengine-gen.go +++ b/blockchainnodeengine/v1/blockchainnodeengine-gen.go @@ -223,12 +223,8 @@ type BlockchainNode struct { Name string `json:"name,omitempty"` // PrivateServiceConnectEnabled: Optional. When true, the node is only // accessible via Private Service Connect; no public endpoints are exposed. - // Otherwise, the node is only accessible via public endpoints. Warning: - // Private Service Connect enabled nodes may require a manual migration effort - // to remain compatible with future versions of the product. If this feature is - // enabled, you will be notified of these changes along with any required - // action to avoid disruption. See - // https://cloud.google.com/vpc/docs/private-service-connect. + // Otherwise, the node is only accessible via public endpoints. Warning: These + // nodes are deprecated, please use public endpoints instead. PrivateServiceConnectEnabled bool `json:"privateServiceConnectEnabled,omitempty"` // State: Output only. A status representing the state of the node. // diff --git a/classroom/v1/classroom-api.json b/classroom/v1/classroom-api.json index 0fff18a08f9..b3d81d4c99e 100644 --- a/classroom/v1/classroom-api.json +++ b/classroom/v1/classroom-api.json @@ -82,7 +82,7 @@ "batchPath": "batch", "description": "Manages classes, rosters, and invitations in Google Classroom.", "discoveryVersion": "v1", - "documentationLink": "https://developers.google.com/classroom/", + "documentationLink": "https://developers.google.com/workspace/classroom/", "fullyEncodeReservedExpansion": true, "icons": { "x16": "http://www.google.com/images/icons/product/search-16.gif", @@ -388,7 +388,7 @@ ] }, "updateGradingPeriodSettings": { - "description": "Updates grading period settings of a course. Individual grading periods can be added, removed, or modified using this method. The requesting user and course owner must be eligible to modify Grading Periods. For details, see [licensing requirements](https://developers.google.com/classroom/grading-periods/manage-grading-periods#licensing_requirements). This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to modify the grading period settings in a course or for access errors: * UserIneligibleToUpdateGradingPeriodSettings * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course does not exist.", + "description": "Updates grading period settings of a course. Individual grading periods can be added, removed, or modified using this method. The requesting user and course owner must be eligible to modify Grading Periods. For details, see [licensing requirements](https://developers.google.com/workspace/classroom/grading-periods/manage-grading-periods#licensing_requirements). This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to modify the grading period settings in a course or for access errors: * UserIneligibleToUpdateGradingPeriodSettings * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course does not exist.", "flatPath": "v1/courses/{courseId}/gradingPeriodSettings", "httpMethod": "PATCH", "id": "classroom.courses.updateGradingPeriodSettings", @@ -613,7 +613,7 @@ ] }, "getAddOnContext": { - "description": "Gets metadata for Classroom add-ons in the context of a specific post. To maintain the integrity of its own data and permissions model, an add-on should call this to validate query parameters and the requesting user's role whenever the add-on is opened in an [iframe](https://developers.google.com/classroom/add-ons/get-started/iframes/iframes-overview). This method returns the following error codes: * `PERMISSION_DENIED` for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if one of the identified resources does not exist.", + "description": "Gets metadata for Classroom add-ons in the context of a specific post. To maintain the integrity of its own data and permissions model, an add-on should call this to validate query parameters and the requesting user's role whenever the add-on is opened in an [iframe](https://developers.google.com/workspace/classroom/add-ons/get-started/iframes/iframes-overview). This method returns the following error codes: * `PERMISSION_DENIED` for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if one of the identified resources does not exist.", "flatPath": "v1/courses/{courseId}/announcements/{itemId}/addOnContext", "httpMethod": "GET", "id": "classroom.courses.announcements.getAddOnContext", @@ -628,7 +628,7 @@ "type": "string" }, "attachmentId": { - "description": "Optional. The identifier of the attachment. This field is required for all requests except when the user is in the [Attachment Discovery iframe](https://developers.google.com/classroom/add-ons/get-started/iframes/attachment-discovery-iframe).", + "description": "Optional. The identifier of the attachment. This field is required for all requests except when the user is in the [Attachment Discovery iframe](https://developers.google.com/workspace/classroom/add-ons/get-started/iframes/attachment-discovery-iframe).", "location": "query", "type": "string" }, @@ -1131,7 +1131,7 @@ ] }, "getAddOnContext": { - "description": "Gets metadata for Classroom add-ons in the context of a specific post. To maintain the integrity of its own data and permissions model, an add-on should call this to validate query parameters and the requesting user's role whenever the add-on is opened in an [iframe](https://developers.google.com/classroom/add-ons/get-started/iframes/iframes-overview). This method returns the following error codes: * `PERMISSION_DENIED` for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if one of the identified resources does not exist.", + "description": "Gets metadata for Classroom add-ons in the context of a specific post. To maintain the integrity of its own data and permissions model, an add-on should call this to validate query parameters and the requesting user's role whenever the add-on is opened in an [iframe](https://developers.google.com/workspace/classroom/add-ons/get-started/iframes/iframes-overview). This method returns the following error codes: * `PERMISSION_DENIED` for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if one of the identified resources does not exist.", "flatPath": "v1/courses/{courseId}/courseWork/{itemId}/addOnContext", "httpMethod": "GET", "id": "classroom.courses.courseWork.getAddOnContext", @@ -1146,7 +1146,7 @@ "type": "string" }, "attachmentId": { - "description": "Optional. The identifier of the attachment. This field is required for all requests except when the user is in the [Attachment Discovery iframe](https://developers.google.com/classroom/add-ons/get-started/iframes/attachment-discovery-iframe).", + "description": "Optional. The identifier of the attachment. This field is required for all requests except when the user is in the [Attachment Discovery iframe](https://developers.google.com/workspace/classroom/add-ons/get-started/iframes/attachment-discovery-iframe).", "location": "query", "type": "string" }, @@ -1314,7 +1314,7 @@ ] }, "updateRubric": { - "description": "Updates a rubric. See google.classroom.v1.Rubric for details of which fields can be updated. Rubric update capabilities are [limited](/classroom/rubrics/limitations) once grading has started. The requesting user and course owner must have rubrics creation capabilities. For details, see [licensing requirements](https://developers.google.com/classroom/rubrics/limitations#license-requirements). This request must be made by the Google Cloud console of the [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to create the parent course work item. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting developer project didn't create the corresponding course work, if the user isn't permitted to make the requested modification to the rubric, or for access errors. This error code is also returned if grading has already started on the rubric. * `INVALID_ARGUMENT` if the request is malformed and for the following request error: * `RubricCriteriaInvalidFormat` * `NOT_FOUND` if the requested course, course work, or rubric doesn't exist or if the user doesn't have access to the corresponding course work. * `INTERNAL` if grading has already started on the rubric.", + "description": "Updates a rubric. See google.classroom.v1.Rubric for details of which fields can be updated. Rubric update capabilities are [limited](/classroom/rubrics/limitations) once grading has started. The requesting user and course owner must have rubrics creation capabilities. For details, see [licensing requirements](https://developers.google.com/workspace/classroom/rubrics/limitations#license-requirements). This request must be made by the Google Cloud console of the [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to create the parent course work item. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting developer project didn't create the corresponding course work, if the user isn't permitted to make the requested modification to the rubric, or for access errors. This error code is also returned if grading has already started on the rubric. * `INVALID_ARGUMENT` if the request is malformed and for the following request error: * `RubricCriteriaInvalidFormat` * `NOT_FOUND` if the requested course, course work, or rubric doesn't exist or if the user doesn't have access to the corresponding course work. * `INTERNAL` if grading has already started on the rubric.", "flatPath": "v1/courses/{courseId}/courseWork/{courseWorkId}/rubric", "httpMethod": "PATCH", "id": "classroom.courses.courseWork.updateRubric", @@ -1721,7 +1721,7 @@ "rubrics": { "methods": { "create": { - "description": "Creates a rubric. The requesting user and course owner must have rubrics creation capabilities. For details, see [licensing requirements](https://developers.google.com/classroom/rubrics/limitations#license-requirements). For further details, see [Rubrics structure and known limitations](/classroom/rubrics/limitations). This request must be made by the Google Cloud console of the [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to create the parent course work item. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user isn't permitted to create rubrics for course work in the requested course. * `INTERNAL` if the request has insufficient OAuth scopes. * `INVALID_ARGUMENT` if the request is malformed and for the following request error: * `RubricCriteriaInvalidFormat` * `NOT_FOUND` if the requested course or course work don't exist or the user doesn't have access to the course or course work. * `FAILED_PRECONDITION` for the following request error: * `AttachmentNotVisible`", + "description": "Creates a rubric. The requesting user and course owner must have rubrics creation capabilities. For details, see [licensing requirements](https://developers.google.com/workspace/classroom/rubrics/limitations#license-requirements). For further details, see [Rubrics structure and known limitations](/classroom/rubrics/limitations). This request must be made by the Google Cloud console of the [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to create the parent course work item. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user isn't permitted to create rubrics for course work in the requested course. * `INTERNAL` if the request has insufficient OAuth scopes. * `INVALID_ARGUMENT` if the request is malformed and for the following request error: * `RubricCriteriaInvalidFormat` * `NOT_FOUND` if the requested course or course work don't exist or the user doesn't have access to the course or course work. * `FAILED_PRECONDITION` for the following request error: * `AttachmentNotVisible`", "flatPath": "v1/courses/{courseId}/courseWork/{courseWorkId}/rubrics", "httpMethod": "POST", "id": "classroom.courses.courseWork.rubrics.create", @@ -1755,7 +1755,7 @@ ] }, "delete": { - "description": "Deletes a rubric. The requesting user and course owner must have rubrics creation capabilities. For details, see [licensing requirements](https://developers.google.com/classroom/rubrics/limitations#license-requirements). This request must be made by the Google Cloud console of the [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to create the corresponding rubric. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting developer project didn't create the corresponding rubric, or if the requesting user isn't permitted to delete the requested rubric. * `NOT_FOUND` if no rubric exists with the requested ID or the user does not have access to the course, course work, or rubric. * `INVALID_ARGUMENT` if grading has already started on the rubric.", + "description": "Deletes a rubric. The requesting user and course owner must have rubrics creation capabilities. For details, see [licensing requirements](https://developers.google.com/workspace/classroom/rubrics/limitations#license-requirements). This request must be made by the Google Cloud console of the [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to create the corresponding rubric. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting developer project didn't create the corresponding rubric, or if the requesting user isn't permitted to delete the requested rubric. * `NOT_FOUND` if no rubric exists with the requested ID or the user does not have access to the course, course work, or rubric. * `INVALID_ARGUMENT` if grading has already started on the rubric.", "flatPath": "v1/courses/{courseId}/courseWork/{courseWorkId}/rubrics/{id}", "httpMethod": "DELETE", "id": "classroom.courses.courseWork.rubrics.delete", @@ -1879,7 +1879,7 @@ ] }, "patch": { - "description": "Updates a rubric. See google.classroom.v1.Rubric for details of which fields can be updated. Rubric update capabilities are [limited](/classroom/rubrics/limitations) once grading has started. The requesting user and course owner must have rubrics creation capabilities. For details, see [licensing requirements](https://developers.google.com/classroom/rubrics/limitations#license-requirements). This request must be made by the Google Cloud console of the [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to create the parent course work item. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting developer project didn't create the corresponding course work, if the user isn't permitted to make the requested modification to the rubric, or for access errors. This error code is also returned if grading has already started on the rubric. * `INVALID_ARGUMENT` if the request is malformed and for the following request error: * `RubricCriteriaInvalidFormat` * `NOT_FOUND` if the requested course, course work, or rubric doesn't exist or if the user doesn't have access to the corresponding course work. * `INTERNAL` if grading has already started on the rubric.", + "description": "Updates a rubric. See google.classroom.v1.Rubric for details of which fields can be updated. Rubric update capabilities are [limited](/classroom/rubrics/limitations) once grading has started. The requesting user and course owner must have rubrics creation capabilities. For details, see [licensing requirements](https://developers.google.com/workspace/classroom/rubrics/limitations#license-requirements). This request must be made by the Google Cloud console of the [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to create the parent course work item. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting developer project didn't create the corresponding course work, if the user isn't permitted to make the requested modification to the rubric, or for access errors. This error code is also returned if grading has already started on the rubric. * `INVALID_ARGUMENT` if the request is malformed and for the following request error: * `RubricCriteriaInvalidFormat` * `NOT_FOUND` if the requested course, course work, or rubric doesn't exist or if the user doesn't have access to the corresponding course work. * `INTERNAL` if grading has already started on the rubric.", "flatPath": "v1/courses/{courseId}/courseWork/{courseWorkId}/rubrics/{id}", "httpMethod": "PATCH", "id": "classroom.courses.courseWork.rubrics.patch", @@ -2371,7 +2371,7 @@ ] }, "getAddOnContext": { - "description": "Gets metadata for Classroom add-ons in the context of a specific post. To maintain the integrity of its own data and permissions model, an add-on should call this to validate query parameters and the requesting user's role whenever the add-on is opened in an [iframe](https://developers.google.com/classroom/add-ons/get-started/iframes/iframes-overview). This method returns the following error codes: * `PERMISSION_DENIED` for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if one of the identified resources does not exist.", + "description": "Gets metadata for Classroom add-ons in the context of a specific post. To maintain the integrity of its own data and permissions model, an add-on should call this to validate query parameters and the requesting user's role whenever the add-on is opened in an [iframe](https://developers.google.com/workspace/classroom/add-ons/get-started/iframes/iframes-overview). This method returns the following error codes: * `PERMISSION_DENIED` for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if one of the identified resources does not exist.", "flatPath": "v1/courses/{courseId}/courseWorkMaterials/{itemId}/addOnContext", "httpMethod": "GET", "id": "classroom.courses.courseWorkMaterials.getAddOnContext", @@ -2386,7 +2386,7 @@ "type": "string" }, "attachmentId": { - "description": "Optional. The identifier of the attachment. This field is required for all requests except when the user is in the [Attachment Discovery iframe](https://developers.google.com/classroom/add-ons/get-started/iframes/attachment-discovery-iframe).", + "description": "Optional. The identifier of the attachment. This field is required for all requests except when the user is in the [Attachment Discovery iframe](https://developers.google.com/workspace/classroom/add-ons/get-started/iframes/attachment-discovery-iframe).", "location": "query", "type": "string" }, @@ -2773,7 +2773,7 @@ "posts": { "methods": { "getAddOnContext": { - "description": "Gets metadata for Classroom add-ons in the context of a specific post. To maintain the integrity of its own data and permissions model, an add-on should call this to validate query parameters and the requesting user's role whenever the add-on is opened in an [iframe](https://developers.google.com/classroom/add-ons/get-started/iframes/iframes-overview). This method returns the following error codes: * `PERMISSION_DENIED` for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if one of the identified resources does not exist.", + "description": "Gets metadata for Classroom add-ons in the context of a specific post. To maintain the integrity of its own data and permissions model, an add-on should call this to validate query parameters and the requesting user's role whenever the add-on is opened in an [iframe](https://developers.google.com/workspace/classroom/add-ons/get-started/iframes/iframes-overview). This method returns the following error codes: * `PERMISSION_DENIED` for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if one of the identified resources does not exist.", "flatPath": "v1/courses/{courseId}/posts/{postId}/addOnContext", "httpMethod": "GET", "id": "classroom.courses.posts.getAddOnContext", @@ -2788,7 +2788,7 @@ "type": "string" }, "attachmentId": { - "description": "Optional. The identifier of the attachment. This field is required for all requests except when the user is in the [Attachment Discovery iframe](https://developers.google.com/classroom/add-ons/get-started/iframes/attachment-discovery-iframe).", + "description": "Optional. The identifier of the attachment. This field is required for all requests except when the user is in the [Attachment Discovery iframe](https://developers.google.com/workspace/classroom/add-ons/get-started/iframes/attachment-discovery-iframe).", "location": "query", "type": "string" }, @@ -3178,7 +3178,7 @@ "students": { "methods": { "create": { - "description": "Adds a user as a student of a course. Domain administrators are permitted to [directly add](https://developers.google.com/classroom/guides/manage-users) users within their domain as students to courses within their domain. Students are permitted to add themselves to a course using an enrollment code. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to create students in this course or for access errors. * `NOT_FOUND` if the requested course ID does not exist. * `FAILED_PRECONDITION` if the requested user's account is disabled, for the following request errors: * CourseMemberLimitReached * CourseNotModifiable * UserGroupsMembershipLimitReached * InactiveCourseOwner * `ALREADY_EXISTS` if the user is already a student or teacher in the course.", + "description": "Adds a user as a student of a course. Domain administrators are permitted to [directly add](https://developers.google.com/workspace/classroom/guides/manage-users) users within their domain as students to courses within their domain. Students are permitted to add themselves to a course using an enrollment code. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to create students in this course or for access errors. * `NOT_FOUND` if the requested course ID does not exist. * `FAILED_PRECONDITION` if the requested user's account is disabled, for the following request errors: * CourseMemberLimitReached * CourseNotModifiable * UserGroupsMembershipLimitReached * InactiveCourseOwner * `ALREADY_EXISTS` if the user is already a student or teacher in the course.", "flatPath": "v1/courses/{courseId}/students", "httpMethod": "POST", "id": "classroom.courses.students.create", @@ -3319,7 +3319,7 @@ "teachers": { "methods": { "create": { - "description": "Creates a teacher of a course. Domain administrators are permitted to [directly add](https://developers.google.com/classroom/guides/manage-users) users within their domain as teachers to courses within their domain. Non-admin users should send an Invitation instead. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to create teachers in this course or for access errors. * `NOT_FOUND` if the requested course ID does not exist. * `FAILED_PRECONDITION` if the requested user's account is disabled, for the following request errors: * CourseMemberLimitReached * CourseNotModifiable * CourseTeacherLimitReached * UserGroupsMembershipLimitReached * InactiveCourseOwner * `ALREADY_EXISTS` if the user is already a teacher or student in the course.", + "description": "Creates a teacher of a course. Domain administrators are permitted to [directly add](https://developers.google.com/workspace/classroom/guides/manage-users) users within their domain as teachers to courses within their domain. Non-admin users should send an Invitation instead. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to create teachers in this course or for access errors. * `NOT_FOUND` if the requested course ID does not exist. * `FAILED_PRECONDITION` if the requested user's account is disabled, for the following request errors: * CourseMemberLimitReached * CourseNotModifiable * CourseTeacherLimitReached * UserGroupsMembershipLimitReached * InactiveCourseOwner * `ALREADY_EXISTS` if the user is already a teacher or student in the course.", "flatPath": "v1/courses/{courseId}/teachers", "httpMethod": "POST", "id": "classroom.courses.teachers.create", @@ -4107,7 +4107,7 @@ } } }, - "revision": "20250416", + "revision": "20250420", "rootUrl": "https://classroom.googleapis.com/", "schemas": { "AddOnAttachment": { diff --git a/classroom/v1/classroom-gen.go b/classroom/v1/classroom-gen.go index cb671e02642..e5b27ff72f2 100644 --- a/classroom/v1/classroom-gen.go +++ b/classroom/v1/classroom-gen.go @@ -6,7 +6,7 @@ // Package classroom provides access to the Google Classroom API. // -// For product documentation, see: https://developers.google.com/classroom/ +// For product documentation, see: https://developers.google.com/workspace/classroom/ // // # Library status // @@ -4184,7 +4184,7 @@ type CoursesUpdateGradingPeriodSettingsCall struct { // Individual grading periods can be added, removed, or modified using this // method. The requesting user and course owner must be eligible to modify // Grading Periods. For details, see licensing requirements -// (https://developers.google.com/classroom/grading-periods/manage-grading-periods#licensing_requirements). +// (https://developers.google.com/workspace/classroom/grading-periods/manage-grading-periods#licensing_requirements). // This method returns the following error codes: * `PERMISSION_DENIED` if the // requesting user is not permitted to modify the grading period settings in a // course or for access errors: * UserIneligibleToUpdateGradingPeriodSettings * @@ -5022,7 +5022,7 @@ type CoursesAnnouncementsGetAddOnContextCall struct { // specific post. To maintain the integrity of its own data and permissions // model, an add-on should call this to validate query parameters and the // requesting user's role whenever the add-on is opened in an iframe -// (https://developers.google.com/classroom/add-ons/get-started/iframes/iframes-overview). +// (https://developers.google.com/workspace/classroom/add-ons/get-started/iframes/iframes-overview). // This method returns the following error codes: * `PERMISSION_DENIED` for // access errors. * `INVALID_ARGUMENT` if the request is malformed. * // `NOT_FOUND` if one of the identified resources does not exist. @@ -5052,7 +5052,7 @@ func (c *CoursesAnnouncementsGetAddOnContextCall) AddOnToken(addOnToken string) // AttachmentId sets the optional parameter "attachmentId": The identifier of // the attachment. This field is required for all requests except when the user // is in the Attachment Discovery iframe -// (https://developers.google.com/classroom/add-ons/get-started/iframes/attachment-discovery-iframe). +// (https://developers.google.com/workspace/classroom/add-ons/get-started/iframes/attachment-discovery-iframe). func (c *CoursesAnnouncementsGetAddOnContextCall) AttachmentId(attachmentId string) *CoursesAnnouncementsGetAddOnContextCall { c.urlParams_.Set("attachmentId", attachmentId) return c @@ -6634,7 +6634,7 @@ type CoursesCourseWorkGetAddOnContextCall struct { // specific post. To maintain the integrity of its own data and permissions // model, an add-on should call this to validate query parameters and the // requesting user's role whenever the add-on is opened in an iframe -// (https://developers.google.com/classroom/add-ons/get-started/iframes/iframes-overview). +// (https://developers.google.com/workspace/classroom/add-ons/get-started/iframes/iframes-overview). // This method returns the following error codes: * `PERMISSION_DENIED` for // access errors. * `INVALID_ARGUMENT` if the request is malformed. * // `NOT_FOUND` if one of the identified resources does not exist. @@ -6664,7 +6664,7 @@ func (c *CoursesCourseWorkGetAddOnContextCall) AddOnToken(addOnToken string) *Co // AttachmentId sets the optional parameter "attachmentId": The identifier of // the attachment. This field is required for all requests except when the user // is in the Attachment Discovery iframe -// (https://developers.google.com/classroom/add-ons/get-started/iframes/attachment-discovery-iframe). +// (https://developers.google.com/workspace/classroom/add-ons/get-started/iframes/attachment-discovery-iframe). func (c *CoursesCourseWorkGetAddOnContextCall) AttachmentId(attachmentId string) *CoursesCourseWorkGetAddOnContextCall { c.urlParams_.Set("attachmentId", attachmentId) return c @@ -7224,7 +7224,7 @@ type CoursesCourseWorkUpdateRubricCall struct { // (/classroom/rubrics/limitations) once grading has started. The requesting // user and course owner must have rubrics creation capabilities. For details, // see licensing requirements -// (https://developers.google.com/classroom/rubrics/limitations#license-requirements). +// (https://developers.google.com/workspace/classroom/rubrics/limitations#license-requirements). // This request must be made by the Google Cloud console of the OAuth client ID // (https://support.google.com/cloud/answer/6158849) used to create the parent // course work item. This method returns the following error codes: * @@ -8329,7 +8329,7 @@ type CoursesCourseWorkRubricsCreateCall struct { // Create: Creates a rubric. The requesting user and course owner must have // rubrics creation capabilities. For details, see licensing requirements -// (https://developers.google.com/classroom/rubrics/limitations#license-requirements). +// (https://developers.google.com/workspace/classroom/rubrics/limitations#license-requirements). // For further details, see Rubrics structure and known limitations // (/classroom/rubrics/limitations). This request must be made by the Google // Cloud console of the OAuth client ID @@ -8450,7 +8450,7 @@ type CoursesCourseWorkRubricsDeleteCall struct { // Delete: Deletes a rubric. The requesting user and course owner must have // rubrics creation capabilities. For details, see licensing requirements -// (https://developers.google.com/classroom/rubrics/limitations#license-requirements). +// (https://developers.google.com/workspace/classroom/rubrics/limitations#license-requirements). // This request must be made by the Google Cloud console of the OAuth client ID // (https://support.google.com/cloud/answer/6158849) used to create the // corresponding rubric. This method returns the following error codes: * @@ -8846,7 +8846,7 @@ type CoursesCourseWorkRubricsPatchCall struct { // (/classroom/rubrics/limitations) once grading has started. The requesting // user and course owner must have rubrics creation capabilities. For details, // see licensing requirements -// (https://developers.google.com/classroom/rubrics/limitations#license-requirements). +// (https://developers.google.com/workspace/classroom/rubrics/limitations#license-requirements). // This request must be made by the Google Cloud console of the OAuth client ID // (https://support.google.com/cloud/answer/6158849) used to create the parent // course work item. This method returns the following error codes: * @@ -10293,7 +10293,7 @@ type CoursesCourseWorkMaterialsGetAddOnContextCall struct { // specific post. To maintain the integrity of its own data and permissions // model, an add-on should call this to validate query parameters and the // requesting user's role whenever the add-on is opened in an iframe -// (https://developers.google.com/classroom/add-ons/get-started/iframes/iframes-overview). +// (https://developers.google.com/workspace/classroom/add-ons/get-started/iframes/iframes-overview). // This method returns the following error codes: * `PERMISSION_DENIED` for // access errors. * `INVALID_ARGUMENT` if the request is malformed. * // `NOT_FOUND` if one of the identified resources does not exist. @@ -10323,7 +10323,7 @@ func (c *CoursesCourseWorkMaterialsGetAddOnContextCall) AddOnToken(addOnToken st // AttachmentId sets the optional parameter "attachmentId": The identifier of // the attachment. This field is required for all requests except when the user // is in the Attachment Discovery iframe -// (https://developers.google.com/classroom/add-ons/get-started/iframes/attachment-discovery-iframe). +// (https://developers.google.com/workspace/classroom/add-ons/get-started/iframes/attachment-discovery-iframe). func (c *CoursesCourseWorkMaterialsGetAddOnContextCall) AttachmentId(attachmentId string) *CoursesCourseWorkMaterialsGetAddOnContextCall { c.urlParams_.Set("attachmentId", attachmentId) return c @@ -11469,7 +11469,7 @@ type CoursesPostsGetAddOnContextCall struct { // specific post. To maintain the integrity of its own data and permissions // model, an add-on should call this to validate query parameters and the // requesting user's role whenever the add-on is opened in an iframe -// (https://developers.google.com/classroom/add-ons/get-started/iframes/iframes-overview). +// (https://developers.google.com/workspace/classroom/add-ons/get-started/iframes/iframes-overview). // This method returns the following error codes: * `PERMISSION_DENIED` for // access errors. * `INVALID_ARGUMENT` if the request is malformed. * // `NOT_FOUND` if one of the identified resources does not exist. @@ -11497,7 +11497,7 @@ func (c *CoursesPostsGetAddOnContextCall) AddOnToken(addOnToken string) *Courses // AttachmentId sets the optional parameter "attachmentId": The identifier of // the attachment. This field is required for all requests except when the user // is in the Attachment Discovery iframe -// (https://developers.google.com/classroom/add-ons/get-started/iframes/attachment-discovery-iframe). +// (https://developers.google.com/workspace/classroom/add-ons/get-started/iframes/attachment-discovery-iframe). func (c *CoursesPostsGetAddOnContextCall) AttachmentId(attachmentId string) *CoursesPostsGetAddOnContextCall { c.urlParams_.Set("attachmentId", attachmentId) return c @@ -12577,13 +12577,13 @@ type CoursesStudentsCreateCall struct { // Create: Adds a user as a student of a course. Domain administrators are // permitted to directly add -// (https://developers.google.com/classroom/guides/manage-users) users within -// their domain as students to courses within their domain. Students are -// permitted to add themselves to a course using an enrollment code. This -// method returns the following error codes: * `PERMISSION_DENIED` if the -// requesting user is not permitted to create students in this course or for -// access errors. * `NOT_FOUND` if the requested course ID does not exist. * -// `FAILED_PRECONDITION` if the requested user's account is disabled, for the +// (https://developers.google.com/workspace/classroom/guides/manage-users) +// users within their domain as students to courses within their domain. +// Students are permitted to add themselves to a course using an enrollment +// code. This method returns the following error codes: * `PERMISSION_DENIED` +// if the requesting user is not permitted to create students in this course or +// for access errors. * `NOT_FOUND` if the requested course ID does not exist. +// * `FAILED_PRECONDITION` if the requested user's account is disabled, for the // following request errors: * CourseMemberLimitReached * CourseNotModifiable * // UserGroupsMembershipLimitReached * InactiveCourseOwner * `ALREADY_EXISTS` if // the user is already a student or teacher in the course. @@ -13079,16 +13079,17 @@ type CoursesTeachersCreateCall struct { // Create: Creates a teacher of a course. Domain administrators are permitted // to directly add -// (https://developers.google.com/classroom/guides/manage-users) users within -// their domain as teachers to courses within their domain. Non-admin users -// should send an Invitation instead. This method returns the following error -// codes: * `PERMISSION_DENIED` if the requesting user is not permitted to -// create teachers in this course or for access errors. * `NOT_FOUND` if the -// requested course ID does not exist. * `FAILED_PRECONDITION` if the requested -// user's account is disabled, for the following request errors: * -// CourseMemberLimitReached * CourseNotModifiable * CourseTeacherLimitReached * -// UserGroupsMembershipLimitReached * InactiveCourseOwner * `ALREADY_EXISTS` if -// the user is already a teacher or student in the course. +// (https://developers.google.com/workspace/classroom/guides/manage-users) +// users within their domain as teachers to courses within their domain. +// Non-admin users should send an Invitation instead. This method returns the +// following error codes: * `PERMISSION_DENIED` if the requesting user is not +// permitted to create teachers in this course or for access errors. * +// `NOT_FOUND` if the requested course ID does not exist. * +// `FAILED_PRECONDITION` if the requested user's account is disabled, for the +// following request errors: * CourseMemberLimitReached * CourseNotModifiable * +// CourseTeacherLimitReached * UserGroupsMembershipLimitReached * +// InactiveCourseOwner * `ALREADY_EXISTS` if the user is already a teacher or +// student in the course. // // - courseId: Identifier of the course. This identifier can be either the // Classroom-assigned identifier or an alias. diff --git a/dialogflow/v2/dialogflow-api.json b/dialogflow/v2/dialogflow-api.json index ee740030323..ea49af87873 100644 --- a/dialogflow/v2/dialogflow-api.json +++ b/dialogflow/v2/dialogflow-api.json @@ -8805,7 +8805,7 @@ } } }, - "revision": "20250414", + "revision": "20250422", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -10177,6 +10177,10 @@ "text": { "$ref": "GoogleCloudDialogflowCxV3TextInput", "description": "The natural language text to be processed." + }, + "toolCallResult": { + "$ref": "GoogleCloudDialogflowCxV3ToolCallResult", + "description": "The results of a tool executed by the client." } }, "type": "object" @@ -10250,6 +10254,10 @@ "text": { "$ref": "GoogleCloudDialogflowCxV3ResponseMessageText", "description": "Returns a text response." + }, + "toolCall": { + "$ref": "GoogleCloudDialogflowCxV3ToolCall", + "description": "Returns the definition of a tool call that should be executed by the client." } }, "type": "object" @@ -10644,6 +10652,67 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3ToolCall": { + "description": "Represents a call of a specific tool's action with the specified inputs.", + "id": "GoogleCloudDialogflowCxV3ToolCall", + "properties": { + "action": { + "description": "Required. The name of the tool's action associated with this call.", + "type": "string" + }, + "inputParameters": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Optional. The action's input parameters.", + "type": "object" + }, + "tool": { + "description": "Required. The tool associated with this call. Format: `projects//locations//agents//tools/`.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3ToolCallResult": { + "description": "The result of calling a tool's action that has been executed by the client.", + "id": "GoogleCloudDialogflowCxV3ToolCallResult", + "properties": { + "action": { + "description": "Required. The name of the tool's action associated with this call.", + "type": "string" + }, + "error": { + "$ref": "GoogleCloudDialogflowCxV3ToolCallResultError", + "description": "The tool call's error." + }, + "outputParameters": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "The tool call's output parameters.", + "type": "object" + }, + "tool": { + "description": "Required. The tool associated with this call. Format: `projects//locations//agents//tools/`.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3ToolCallResultError": { + "description": "An error produced by the tool call.", + "id": "GoogleCloudDialogflowCxV3ToolCallResultError", + "properties": { + "message": { + "description": "Optional. The error message of the function.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3TransitionRoute": { "description": "A transition route specifies a intent that can be matched and/or a data condition that can be evaluated during a session. When a specified transition is matched, the following actions are taken in order: * If there is a `trigger_fulfillment` associated with the transition, it will be called. * If there is a `target_page` associated with the transition, the session will transition into the specified page. * If there is a `target_flow` associated with the transition, the session will transition into the specified flow.", "id": "GoogleCloudDialogflowCxV3TransitionRoute", @@ -15051,6 +15120,35 @@ }, "type": "object" }, + "GoogleCloudDialogflowV2CustomPronunciationParams": { + "description": "Pronunciation customization for a phrase.", + "id": "GoogleCloudDialogflowV2CustomPronunciationParams", + "properties": { + "phoneticEncoding": { + "description": "The phonetic encoding of the phrase.", + "enum": [ + "PHONETIC_ENCODING_UNSPECIFIED", + "PHONETIC_ENCODING_IPA", + "PHONETIC_ENCODING_X_SAMPA" + ], + "enumDescriptions": [ + "Not specified.", + "IPA, such as apple -\u003e ˈæpəl. https://en.wikipedia.org/wiki/International_Phonetic_Alphabet", + "X-SAMPA, such as apple -\u003e \"{p@l\". https://en.wikipedia.org/wiki/X-SAMPA" + ], + "type": "string" + }, + "phrase": { + "description": "The phrase to which the customization is applied. The phrase can be multiple words, such as proper nouns, but shouldn't span the length of the sentence.", + "type": "string" + }, + "pronunciation": { + "description": "The pronunciation of the phrase. This must be in the phonetic encoding specified above.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDialogflowV2DeleteConversationDatasetOperationMetadata": { "description": "Metadata for DeleteConversationDataset.", "id": "GoogleCloudDialogflowV2DeleteConversationDatasetOperationMetadata", @@ -16749,7 +16847,7 @@ "type": "boolean" }, "languageCode": { - "description": "Required. The language of the supplied audio. Dialogflow does not do translations. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) for a list of the currently supported language codes. Note that queries in the same session do not necessarily need to specify the same language.", + "description": "Required. The language of the supplied audio. Dialogflow does not do translations. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) for a list of the currently supported language codes. Note that queries in the same session do not necessarily need to specify the same language. If not set, the language is inferred from the ConversationProfile.stt_config.", "type": "string" }, "model": { @@ -19315,7 +19413,7 @@ "type": "boolean" }, "languageCode": { - "description": "The language of the supplied audio. Dialogflow does not do translations. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) for a list of the currently supported language codes. Note that queries in the same session do not necessarily need to specify the same language.", + "description": "The language of the supplied audio. Dialogflow does not do translations. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) for a list of the currently supported language codes. Note that queries in the same session do not necessarily need to specify the same language. If not specified, the default language configured at ConversationProfile is used.", "type": "string" }, "model": { @@ -19872,6 +19970,13 @@ "format": "double", "type": "number" }, + "pronunciations": { + "description": "Optional. The custom pronunciations for the synthesized audio.", + "items": { + "$ref": "GoogleCloudDialogflowV2CustomPronunciationParams" + }, + "type": "array" + }, "speakingRate": { "description": "Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal native speed supported by the specific voice. 2.0 is twice as fast, and 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any other values \u003c 0.25 or \u003e 4.0 will return an error.", "format": "double", diff --git a/dialogflow/v2/dialogflow-gen.go b/dialogflow/v2/dialogflow-gen.go index 0ad75a45685..fac239707e9 100644 --- a/dialogflow/v2/dialogflow-gen.go +++ b/dialogflow/v2/dialogflow-gen.go @@ -2957,6 +2957,8 @@ type GoogleCloudDialogflowCxV3QueryInput struct { LanguageCode string `json:"languageCode,omitempty"` // Text: The natural language text to be processed. Text *GoogleCloudDialogflowCxV3TextInput `json:"text,omitempty"` + // ToolCallResult: The results of a tool executed by the client. + ToolCallResult *GoogleCloudDialogflowCxV3ToolCallResult `json:"toolCallResult,omitempty"` // ForceSendFields is a list of field names (e.g. "Audio") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See @@ -3035,6 +3037,9 @@ type GoogleCloudDialogflowCxV3ResponseMessage struct { TelephonyTransferCall *GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall `json:"telephonyTransferCall,omitempty"` // Text: Returns a text response. Text *GoogleCloudDialogflowCxV3ResponseMessageText `json:"text,omitempty"` + // ToolCall: Returns the definition of a tool call that should be executed by + // the client. + ToolCall *GoogleCloudDialogflowCxV3ToolCall `json:"toolCall,omitempty"` // ForceSendFields is a list of field names (e.g. "Channel") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See @@ -3627,6 +3632,87 @@ func (s GoogleCloudDialogflowCxV3TextInput) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3ToolCall: Represents a call of a specific tool's +// action with the specified inputs. +type GoogleCloudDialogflowCxV3ToolCall struct { + // Action: Required. The name of the tool's action associated with this call. + Action string `json:"action,omitempty"` + // InputParameters: Optional. The action's input parameters. + InputParameters googleapi.RawMessage `json:"inputParameters,omitempty"` + // Tool: Required. The tool associated with this call. Format: + // `projects//locations//agents//tools/`. + Tool string `json:"tool,omitempty"` + // ForceSendFields is a list of field names (e.g. "Action") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Action") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3ToolCall) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3ToolCall + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3ToolCallResult: The result of calling a tool's +// action that has been executed by the client. +type GoogleCloudDialogflowCxV3ToolCallResult struct { + // Action: Required. The name of the tool's action associated with this call. + Action string `json:"action,omitempty"` + // Error: The tool call's error. + Error *GoogleCloudDialogflowCxV3ToolCallResultError `json:"error,omitempty"` + // OutputParameters: The tool call's output parameters. + OutputParameters googleapi.RawMessage `json:"outputParameters,omitempty"` + // Tool: Required. The tool associated with this call. Format: + // `projects//locations//agents//tools/`. + Tool string `json:"tool,omitempty"` + // ForceSendFields is a list of field names (e.g. "Action") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Action") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3ToolCallResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3ToolCallResult + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3ToolCallResultError: An error produced by the tool +// call. +type GoogleCloudDialogflowCxV3ToolCallResultError struct { + // Message: Optional. The error message of the function. + Message string `json:"message,omitempty"` + // ForceSendFields is a list of field names (e.g. "Message") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Message") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3ToolCallResultError) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3ToolCallResultError + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3TransitionRoute: A transition route specifies a // intent that can be matched and/or a data condition that can be evaluated // during a session. When a specified transition is matched, the following @@ -9552,6 +9638,43 @@ func (s GoogleCloudDialogflowV2CreateConversationModelOperationMetadata) Marshal return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowV2CustomPronunciationParams: Pronunciation +// customization for a phrase. +type GoogleCloudDialogflowV2CustomPronunciationParams struct { + // PhoneticEncoding: The phonetic encoding of the phrase. + // + // Possible values: + // "PHONETIC_ENCODING_UNSPECIFIED" - Not specified. + // "PHONETIC_ENCODING_IPA" - IPA, such as apple -> ˈæpəl. + // https://en.wikipedia.org/wiki/International_Phonetic_Alphabet + // "PHONETIC_ENCODING_X_SAMPA" - X-SAMPA, such as apple -> "{p@l". + // https://en.wikipedia.org/wiki/X-SAMPA + PhoneticEncoding string `json:"phoneticEncoding,omitempty"` + // Phrase: The phrase to which the customization is applied. The phrase can be + // multiple words, such as proper nouns, but shouldn't span the length of the + // sentence. + Phrase string `json:"phrase,omitempty"` + // Pronunciation: The pronunciation of the phrase. This must be in the phonetic + // encoding specified above. + Pronunciation string `json:"pronunciation,omitempty"` + // ForceSendFields is a list of field names (e.g. "PhoneticEncoding") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "PhoneticEncoding") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowV2CustomPronunciationParams) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowV2CustomPronunciationParams + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowV2DeleteConversationDatasetOperationMetadata: Metadata // for DeleteConversationDataset. type GoogleCloudDialogflowV2DeleteConversationDatasetOperationMetadata struct { @@ -12146,7 +12269,8 @@ type GoogleCloudDialogflowV2InputAudioConfig struct { // not do translations. See Language Support // (https://cloud.google.com/dialogflow/docs/reference/language) for a list of // the currently supported language codes. Note that queries in the same - // session do not necessarily need to specify the same language. + // session do not necessarily need to specify the same language. If not set, + // the language is inferred from the ConversationProfile.stt_config. LanguageCode string `json:"languageCode,omitempty"` // Model: Optional. Which Speech model to select for the given request. For // more information, see Speech models @@ -15782,7 +15906,8 @@ type GoogleCloudDialogflowV2SpeechToTextConfig struct { // translations. See Language Support // (https://cloud.google.com/dialogflow/docs/reference/language) for a list of // the currently supported language codes. Note that queries in the same - // session do not necessarily need to specify the same language. + // session do not necessarily need to specify the same language. If not + // specified, the default language configured at ConversationProfile is used. LanguageCode string `json:"languageCode,omitempty"` // Model: Which Speech model to select. Select the model best suited to your // domain to get best results. If a model is not explicitly specified, then @@ -16640,6 +16765,9 @@ type GoogleCloudDialogflowV2SynthesizeSpeechConfig struct { // increase 20 semitones from the original pitch. -20 means decrease 20 // semitones from the original pitch. Pitch float64 `json:"pitch,omitempty"` + // Pronunciations: Optional. The custom pronunciations for the synthesized + // audio. + Pronunciations []*GoogleCloudDialogflowV2CustomPronunciationParams `json:"pronunciations,omitempty"` // SpeakingRate: Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 // is the normal native speed supported by the specific voice. 2.0 is twice as // fast, and 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 diff --git a/dialogflow/v2beta1/dialogflow-api.json b/dialogflow/v2beta1/dialogflow-api.json index 5b0807c4bbb..91c9bbee924 100644 --- a/dialogflow/v2beta1/dialogflow-api.json +++ b/dialogflow/v2beta1/dialogflow-api.json @@ -8602,7 +8602,7 @@ } } }, - "revision": "20250414", + "revision": "20250422", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -9974,6 +9974,10 @@ "text": { "$ref": "GoogleCloudDialogflowCxV3TextInput", "description": "The natural language text to be processed." + }, + "toolCallResult": { + "$ref": "GoogleCloudDialogflowCxV3ToolCallResult", + "description": "The results of a tool executed by the client." } }, "type": "object" @@ -10047,6 +10051,10 @@ "text": { "$ref": "GoogleCloudDialogflowCxV3ResponseMessageText", "description": "Returns a text response." + }, + "toolCall": { + "$ref": "GoogleCloudDialogflowCxV3ToolCall", + "description": "Returns the definition of a tool call that should be executed by the client." } }, "type": "object" @@ -10441,6 +10449,67 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3ToolCall": { + "description": "Represents a call of a specific tool's action with the specified inputs.", + "id": "GoogleCloudDialogflowCxV3ToolCall", + "properties": { + "action": { + "description": "Required. The name of the tool's action associated with this call.", + "type": "string" + }, + "inputParameters": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Optional. The action's input parameters.", + "type": "object" + }, + "tool": { + "description": "Required. The tool associated with this call. Format: `projects//locations//agents//tools/`.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3ToolCallResult": { + "description": "The result of calling a tool's action that has been executed by the client.", + "id": "GoogleCloudDialogflowCxV3ToolCallResult", + "properties": { + "action": { + "description": "Required. The name of the tool's action associated with this call.", + "type": "string" + }, + "error": { + "$ref": "GoogleCloudDialogflowCxV3ToolCallResultError", + "description": "The tool call's error." + }, + "outputParameters": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "The tool call's output parameters.", + "type": "object" + }, + "tool": { + "description": "Required. The tool associated with this call. Format: `projects//locations//agents//tools/`.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3ToolCallResultError": { + "description": "An error produced by the tool call.", + "id": "GoogleCloudDialogflowCxV3ToolCallResultError", + "properties": { + "message": { + "description": "Optional. The error message of the function.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3TransitionRoute": { "description": "A transition route specifies a intent that can be matched and/or a data condition that can be evaluated during a session. When a specified transition is matched, the following actions are taken in order: * If there is a `trigger_fulfillment` associated with the transition, it will be called. * If there is a `target_page` associated with the transition, the session will transition into the specified page. * If there is a `target_flow` associated with the transition, the session will transition into the specified flow.", "id": "GoogleCloudDialogflowCxV3TransitionRoute", @@ -18976,7 +19045,7 @@ "type": "boolean" }, "languageCode": { - "description": "Required. The language of the supplied audio. Dialogflow does not do translations. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) for a list of the currently supported language codes. Note that queries in the same session do not necessarily need to specify the same language.", + "description": "Required. The language of the supplied audio. Dialogflow does not do translations. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) for a list of the currently supported language codes. Note that queries in the same session do not necessarily need to specify the same language. If not set, the language is inferred from the ConversationProfile.stt_config.", "type": "string" }, "model": { @@ -22032,7 +22101,7 @@ "type": "boolean" }, "languageCode": { - "description": "The language of the supplied audio. Dialogflow does not do translations. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) for a list of the currently supported language codes. Note that queries in the same session do not necessarily need to specify the same language.", + "description": "The language of the supplied audio. Dialogflow does not do translations. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) for a list of the currently supported language codes. Note that queries in the same session do not necessarily need to specify the same language. If not specified, the default language configured at ConversationProfile is used.", "type": "string" }, "model": { diff --git a/dialogflow/v2beta1/dialogflow-gen.go b/dialogflow/v2beta1/dialogflow-gen.go index 11d007a2b88..7f1ac6b509c 100644 --- a/dialogflow/v2beta1/dialogflow-gen.go +++ b/dialogflow/v2beta1/dialogflow-gen.go @@ -2921,6 +2921,8 @@ type GoogleCloudDialogflowCxV3QueryInput struct { LanguageCode string `json:"languageCode,omitempty"` // Text: The natural language text to be processed. Text *GoogleCloudDialogflowCxV3TextInput `json:"text,omitempty"` + // ToolCallResult: The results of a tool executed by the client. + ToolCallResult *GoogleCloudDialogflowCxV3ToolCallResult `json:"toolCallResult,omitempty"` // ForceSendFields is a list of field names (e.g. "Audio") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See @@ -2999,6 +3001,9 @@ type GoogleCloudDialogflowCxV3ResponseMessage struct { TelephonyTransferCall *GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall `json:"telephonyTransferCall,omitempty"` // Text: Returns a text response. Text *GoogleCloudDialogflowCxV3ResponseMessageText `json:"text,omitempty"` + // ToolCall: Returns the definition of a tool call that should be executed by + // the client. + ToolCall *GoogleCloudDialogflowCxV3ToolCall `json:"toolCall,omitempty"` // ForceSendFields is a list of field names (e.g. "Channel") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See @@ -3591,6 +3596,87 @@ func (s GoogleCloudDialogflowCxV3TextInput) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3ToolCall: Represents a call of a specific tool's +// action with the specified inputs. +type GoogleCloudDialogflowCxV3ToolCall struct { + // Action: Required. The name of the tool's action associated with this call. + Action string `json:"action,omitempty"` + // InputParameters: Optional. The action's input parameters. + InputParameters googleapi.RawMessage `json:"inputParameters,omitempty"` + // Tool: Required. The tool associated with this call. Format: + // `projects//locations//agents//tools/`. + Tool string `json:"tool,omitempty"` + // ForceSendFields is a list of field names (e.g. "Action") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Action") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3ToolCall) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3ToolCall + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3ToolCallResult: The result of calling a tool's +// action that has been executed by the client. +type GoogleCloudDialogflowCxV3ToolCallResult struct { + // Action: Required. The name of the tool's action associated with this call. + Action string `json:"action,omitempty"` + // Error: The tool call's error. + Error *GoogleCloudDialogflowCxV3ToolCallResultError `json:"error,omitempty"` + // OutputParameters: The tool call's output parameters. + OutputParameters googleapi.RawMessage `json:"outputParameters,omitempty"` + // Tool: Required. The tool associated with this call. Format: + // `projects//locations//agents//tools/`. + Tool string `json:"tool,omitempty"` + // ForceSendFields is a list of field names (e.g. "Action") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Action") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3ToolCallResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3ToolCallResult + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3ToolCallResultError: An error produced by the tool +// call. +type GoogleCloudDialogflowCxV3ToolCallResultError struct { + // Message: Optional. The error message of the function. + Message string `json:"message,omitempty"` + // ForceSendFields is a list of field names (e.g. "Message") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Message") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3ToolCallResultError) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3ToolCallResultError + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3TransitionRoute: A transition route specifies a // intent that can be matched and/or a data condition that can be evaluated // during a session. When a specified transition is matched, the following @@ -15442,7 +15528,8 @@ type GoogleCloudDialogflowV2beta1InputAudioConfig struct { // not do translations. See Language Support // (https://cloud.google.com/dialogflow/docs/reference/language) for a list of // the currently supported language codes. Note that queries in the same - // session do not necessarily need to specify the same language. + // session do not necessarily need to specify the same language. If not set, + // the language is inferred from the ConversationProfile.stt_config. LanguageCode string `json:"languageCode,omitempty"` // Model: Optional. Which Speech model to select for the given request. For // more information, see Speech models @@ -19750,7 +19837,8 @@ type GoogleCloudDialogflowV2beta1SpeechToTextConfig struct { // translations. See Language Support // (https://cloud.google.com/dialogflow/docs/reference/language) for a list of // the currently supported language codes. Note that queries in the same - // session do not necessarily need to specify the same language. + // session do not necessarily need to specify the same language. If not + // specified, the default language configured at ConversationProfile is used. LanguageCode string `json:"languageCode,omitempty"` // Model: Which Speech model to select. Select the model best suited to your // domain to get best results. If a model is not explicitly specified, then diff --git a/dialogflow/v3/dialogflow-api.json b/dialogflow/v3/dialogflow-api.json index 9004e095821..96d969de60c 100644 --- a/dialogflow/v3/dialogflow-api.json +++ b/dialogflow/v3/dialogflow-api.json @@ -3039,6 +3039,536 @@ } } }, + "playbooks": { + "methods": { + "create": { + "description": "Creates a playbook in a specified agent.", + "flatPath": "v3/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/playbooks", + "httpMethod": "POST", + "id": "dialogflow.projects.locations.agents.playbooks.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The agent to create a playbook for. Format: `projects//locations//agents/`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v3/{+parent}/playbooks", + "request": { + "$ref": "GoogleCloudDialogflowCxV3Playbook" + }, + "response": { + "$ref": "GoogleCloudDialogflowCxV3Playbook" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/dialogflow" + ] + }, + "delete": { + "description": "Deletes a specified playbook.", + "flatPath": "v3/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/playbooks/{playbooksId}", + "httpMethod": "DELETE", + "id": "dialogflow.projects.locations.agents.playbooks.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the playbook to delete. Format: `projects//locations//agents//playbooks/`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/playbooks/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v3/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/dialogflow" + ] + }, + "export": { + "description": "Exports the specified playbook to a binary file. Note that resources (e.g. examples, tools) that the playbook references will also be exported.", + "flatPath": "v3/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/playbooks/{playbooksId}:export", + "httpMethod": "POST", + "id": "dialogflow.projects.locations.agents.playbooks.export", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the playbook to export. Format: `projects//locations//agents//playbooks/`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/playbooks/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v3/{+name}:export", + "request": { + "$ref": "GoogleCloudDialogflowCxV3ExportPlaybookRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/dialogflow" + ] + }, + "get": { + "description": "Retrieves the specified Playbook.", + "flatPath": "v3/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/playbooks/{playbooksId}", + "httpMethod": "GET", + "id": "dialogflow.projects.locations.agents.playbooks.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the playbook. Format: `projects//locations//agents//playbooks/`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/playbooks/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v3/{+name}", + "response": { + "$ref": "GoogleCloudDialogflowCxV3Playbook" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/dialogflow" + ] + }, + "import": { + "description": "Imports the specified playbook to the specified agent from a binary file.", + "flatPath": "v3/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/playbooks:import", + "httpMethod": "POST", + "id": "dialogflow.projects.locations.agents.playbooks.import", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The agent to import the playbook into. Format: `projects//locations//agents/`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v3/{+parent}/playbooks:import", + "request": { + "$ref": "GoogleCloudDialogflowCxV3ImportPlaybookRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/dialogflow" + ] + }, + "list": { + "description": "Returns a list of playbooks in the specified agent.", + "flatPath": "v3/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/playbooks", + "httpMethod": "GET", + "id": "dialogflow.projects.locations.agents.playbooks.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "The maximum number of items to return in a single page. By default 100 and at most 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The next_page_token value returned from a previous list request.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The agent to list playbooks from. Format: `projects//locations//agents/`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v3/{+parent}/playbooks", + "response": { + "$ref": "GoogleCloudDialogflowCxV3ListPlaybooksResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/dialogflow" + ] + }, + "patch": { + "description": "Updates the specified Playbook.", + "flatPath": "v3/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/playbooks/{playbooksId}", + "httpMethod": "PATCH", + "id": "dialogflow.projects.locations.agents.playbooks.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The unique identifier of the playbook. Format: `projects//locations//agents//playbooks/`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/playbooks/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "The mask to control which fields get updated. If the mask is not present, all fields will be updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v3/{+name}", + "request": { + "$ref": "GoogleCloudDialogflowCxV3Playbook" + }, + "response": { + "$ref": "GoogleCloudDialogflowCxV3Playbook" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/dialogflow" + ] + } + }, + "resources": { + "examples": { + "methods": { + "create": { + "description": "Creates an example in the specified playbook.", + "flatPath": "v3/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/playbooks/{playbooksId}/examples", + "httpMethod": "POST", + "id": "dialogflow.projects.locations.agents.playbooks.examples.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The playbook to create an example for. Format: `projects//locations//agents//playbooks/`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/playbooks/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v3/{+parent}/examples", + "request": { + "$ref": "GoogleCloudDialogflowCxV3Example" + }, + "response": { + "$ref": "GoogleCloudDialogflowCxV3Example" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/dialogflow" + ] + }, + "delete": { + "description": "Deletes the specified example.", + "flatPath": "v3/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/playbooks/{playbooksId}/examples/{examplesId}", + "httpMethod": "DELETE", + "id": "dialogflow.projects.locations.agents.playbooks.examples.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the example to delete. Format: `projects//locations//agents//playbooks//examples/`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/playbooks/[^/]+/examples/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v3/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/dialogflow" + ] + }, + "get": { + "description": "Retrieves the specified example.", + "flatPath": "v3/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/playbooks/{playbooksId}/examples/{examplesId}", + "httpMethod": "GET", + "id": "dialogflow.projects.locations.agents.playbooks.examples.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the example. Format: `projects//locations//agents//playbooks//examples/`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/playbooks/[^/]+/examples/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v3/{+name}", + "response": { + "$ref": "GoogleCloudDialogflowCxV3Example" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/dialogflow" + ] + }, + "list": { + "description": "Returns a list of examples in the specified playbook.", + "flatPath": "v3/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/playbooks/{playbooksId}/examples", + "httpMethod": "GET", + "id": "dialogflow.projects.locations.agents.playbooks.examples.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "languageCode": { + "description": "Optional. The language to list examples for. If not specified, list all examples under the playbook. Note: languages must be enabled in the agent before they can be used.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. The next_page_token value returned from a previous list request.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The playbook to list the examples from. Format: `projects//locations//agents//playbooks/`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/playbooks/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v3/{+parent}/examples", + "response": { + "$ref": "GoogleCloudDialogflowCxV3ListExamplesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/dialogflow" + ] + }, + "patch": { + "description": "Update the specified example.", + "flatPath": "v3/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/playbooks/{playbooksId}/examples/{examplesId}", + "httpMethod": "PATCH", + "id": "dialogflow.projects.locations.agents.playbooks.examples.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The unique identifier of the playbook example. Format: `projects//locations//agents//playbooks//examples/`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/playbooks/[^/]+/examples/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. The mask to control which fields get updated. If the mask is not present, all fields will be updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v3/{+name}", + "request": { + "$ref": "GoogleCloudDialogflowCxV3Example" + }, + "response": { + "$ref": "GoogleCloudDialogflowCxV3Example" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/dialogflow" + ] + } + } + }, + "versions": { + "methods": { + "create": { + "description": "Creates a version for the specified Playbook.", + "flatPath": "v3/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/playbooks/{playbooksId}/versions", + "httpMethod": "POST", + "id": "dialogflow.projects.locations.agents.playbooks.versions.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The playbook to create a version for. Format: `projects//locations//agents//playbooks/`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/playbooks/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v3/{+parent}/versions", + "request": { + "$ref": "GoogleCloudDialogflowCxV3PlaybookVersion" + }, + "response": { + "$ref": "GoogleCloudDialogflowCxV3PlaybookVersion" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/dialogflow" + ] + }, + "delete": { + "description": "Deletes the specified version of the Playbook.", + "flatPath": "v3/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/playbooks/{playbooksId}/versions/{versionsId}", + "httpMethod": "DELETE", + "id": "dialogflow.projects.locations.agents.playbooks.versions.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the playbook version to delete. Format: `projects//locations//agents//playbooks//versions/`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/playbooks/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v3/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/dialogflow" + ] + }, + "get": { + "description": "Retrieves the specified version of the Playbook.", + "flatPath": "v3/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/playbooks/{playbooksId}/versions/{versionsId}", + "httpMethod": "GET", + "id": "dialogflow.projects.locations.agents.playbooks.versions.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the playbook version. Format: `projects//locations//agents//playbooks//versions/`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/playbooks/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v3/{+name}", + "response": { + "$ref": "GoogleCloudDialogflowCxV3PlaybookVersion" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/dialogflow" + ] + }, + "list": { + "description": "Lists versions for the specified Playbook.", + "flatPath": "v3/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/playbooks/{playbooksId}/versions", + "httpMethod": "GET", + "id": "dialogflow.projects.locations.agents.playbooks.versions.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. The next_page_token value returned from a previous list request.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The playbook to list versions for. Format: `projects//locations//agents//playbooks/`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/playbooks/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v3/{+parent}/versions", + "response": { + "$ref": "GoogleCloudDialogflowCxV3ListPlaybookVersionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/dialogflow" + ] + }, + "restore": { + "description": "Retrieves the specified version of the Playbook and stores it as the current playbook draft, returning the playbook with resources updated.", + "flatPath": "v3/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/playbooks/{playbooksId}/versions/{versionsId}:restore", + "httpMethod": "POST", + "id": "dialogflow.projects.locations.agents.playbooks.versions.restore", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the playbook version. Format: `projects//locations//agents//playbooks//versions/`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/playbooks/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v3/{+name}:restore", + "request": { + "$ref": "GoogleCloudDialogflowCxV3RestorePlaybookVersionRequest" + }, + "response": { + "$ref": "GoogleCloudDialogflowCxV3RestorePlaybookVersionResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/dialogflow" + ] + } + } + } + } + }, "sessions": { "methods": { "detectIntent": { @@ -3755,6 +4285,168 @@ } } }, + "tools": { + "methods": { + "create": { + "description": "Creates a Tool in the specified agent.", + "flatPath": "v3/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/tools", + "httpMethod": "POST", + "id": "dialogflow.projects.locations.agents.tools.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The agent to create a Tool for. Format: `projects//locations//agents/`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v3/{+parent}/tools", + "request": { + "$ref": "GoogleCloudDialogflowCxV3Tool" + }, + "response": { + "$ref": "GoogleCloudDialogflowCxV3Tool" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/dialogflow" + ] + }, + "delete": { + "description": "Deletes a specified Tool.", + "flatPath": "v3/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/tools/{toolsId}", + "httpMethod": "DELETE", + "id": "dialogflow.projects.locations.agents.tools.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "force": { + "description": "This field has no effect for Tools not being used. For Tools that are used: * If `force` is set to false, an error will be returned with message indicating the referenced resources. * If `force` is set to true, Dialogflow will remove the tool, as well as any references to the tool.", + "location": "query", + "type": "boolean" + }, + "name": { + "description": "Required. The name of the Tool to be deleted. Format: `projects//locations//agents//tools/`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/tools/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v3/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/dialogflow" + ] + }, + "get": { + "description": "Retrieves the specified Tool.", + "flatPath": "v3/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/tools/{toolsId}", + "httpMethod": "GET", + "id": "dialogflow.projects.locations.agents.tools.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the Tool. Format: `projects//locations//agents//tools/`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/tools/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v3/{+name}", + "response": { + "$ref": "GoogleCloudDialogflowCxV3Tool" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/dialogflow" + ] + }, + "list": { + "description": "Returns a list of Tools in the specified agent.", + "flatPath": "v3/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/tools", + "httpMethod": "GET", + "id": "dialogflow.projects.locations.agents.tools.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "The maximum number of items to return in a single page. By default 100 and at most 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The next_page_token value returned from a previous list request.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The agent to list the Tools from. Format: `projects//locations//agents/`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v3/{+parent}/tools", + "response": { + "$ref": "GoogleCloudDialogflowCxV3ListToolsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/dialogflow" + ] + }, + "patch": { + "description": "Update the specified Tool.", + "flatPath": "v3/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/tools/{toolsId}", + "httpMethod": "PATCH", + "id": "dialogflow.projects.locations.agents.tools.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The unique identifier of the Tool. Format: `projects//locations//agents//tools/`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/tools/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "The mask to control which fields get updated. If the mask is not present, all fields will be updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v3/{+name}", + "request": { + "$ref": "GoogleCloudDialogflowCxV3Tool" + }, + "response": { + "$ref": "GoogleCloudDialogflowCxV3Tool" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/dialogflow" + ] + } + } + }, "transitionRouteGroups": { "methods": { "create": { @@ -4459,9 +5151,36 @@ } } }, - "revision": "20250414", + "revision": "20250422", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { + "GoogleCloudDialogflowCxV3Action": { + "description": "Action performed by end user or Dialogflow agent in the conversation.", + "id": "GoogleCloudDialogflowCxV3Action", + "properties": { + "agentUtterance": { + "$ref": "GoogleCloudDialogflowCxV3AgentUtterance", + "description": "Optional. Action performed by the agent as a message." + }, + "flowInvocation": { + "$ref": "GoogleCloudDialogflowCxV3FlowInvocation", + "description": "Optional. Action performed on behalf of the agent by invoking a CX flow." + }, + "playbookInvocation": { + "$ref": "GoogleCloudDialogflowCxV3PlaybookInvocation", + "description": "Optional. Action performed on behalf of the agent by invoking a child playbook." + }, + "toolUse": { + "$ref": "GoogleCloudDialogflowCxV3ToolUse", + "description": "Optional. Action performed on behalf of the agent by calling a plugin tool." + }, + "userUtterance": { + "$ref": "GoogleCloudDialogflowCxV3UserUtterance", + "description": "Optional. Agent obtained a message from the customer." + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3AdvancedSettings": { "description": "Hierarchical advanced settings for agent/flow/page/fulfillment/parameter. Settings exposed at lower level overrides the settings exposed at higher level. Overriding occurs at the sub-setting level. For example, the playback_interruption_settings at fulfillment level only overrides the playback_interruption_settings at the agent level, leaving other settings at the agent level unchanged. DTMF settings does not override each other. DTMF settings set at different levels define DTMF detections running in parallel. Hierarchy: Agent-\u003eFlow-\u003ePage-\u003eFulfillment/Parameter.", "id": "GoogleCloudDialogflowCxV3AdvancedSettings", @@ -4646,7 +5365,11 @@ "description": "Speech recognition related settings." }, "startFlow": { - "description": "Immutable. Name of the start flow in this agent. A start flow will be automatically created when the agent is created, and can only be deleted by deleting the agent. Format: `projects//locations//agents//flows/`.", + "description": "Name of the start flow in this agent. A start flow will be automatically created when the agent is created, and can only be deleted by deleting the agent. Format: `projects//locations//agents//flows/`. Currently only the default start flow with id \"00000000-0000-0000-0000-000000000000\" is allowed.", + "type": "string" + }, + "startPlaybook": { + "description": "Name of the start playbook in this agent. A start playbook will be automatically created when the agent is created, and can only be deleted by deleting the agent. Format: `projects//locations//agents//playbooks/`. Currently only the default playbook with id \"00000000-0000-0000-0000-000000000000\" is allowed.", "type": "string" }, "supportedLanguageCodes": { @@ -4764,6 +5487,17 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3AgentUtterance": { + "description": "AgentUtterance represents one message sent by the agent.", + "id": "GoogleCloudDialogflowCxV3AgentUtterance", + "properties": { + "text": { + "description": "Required. Message content in text.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3AgentValidationResult": { "description": "The response message for Agents.GetAgentValidationResult.", "id": "GoogleCloudDialogflowCxV3AgentValidationResult", @@ -5956,6 +6690,82 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3Example": { + "description": "Example represents a sample execution of the playbook in the conversation. An example consists of a list of ordered actions performed by end user or Dialogflow agent according the playbook instructions to fulfill the task.", + "id": "GoogleCloudDialogflowCxV3Example", + "properties": { + "actions": { + "description": "Required. The ordered list of actions performed by the end user and the Dialogflow agent.", + "items": { + "$ref": "GoogleCloudDialogflowCxV3Action" + }, + "type": "array" + }, + "conversationState": { + "description": "Required. Example's output state.", + "enum": [ + "OUTPUT_STATE_UNSPECIFIED", + "OUTPUT_STATE_OK", + "OUTPUT_STATE_CANCELLED", + "OUTPUT_STATE_FAILED", + "OUTPUT_STATE_ESCALATED", + "OUTPUT_STATE_PENDING" + ], + "enumDescriptions": [ + "Unspecified output.", + "Succeeded.", + "Cancelled.", + "Failed.", + "Escalated.", + "Pending." + ], + "type": "string" + }, + "createTime": { + "description": "Output only. The timestamp of initial example creation.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "Optional. The high level concise description of the example. The max number of characters is 200.", + "type": "string" + }, + "displayName": { + "description": "Required. The display name of the example.", + "type": "string" + }, + "languageCode": { + "description": "Optional. The language code of the example. If not specified, the agent's default language is used. Note: languages must be enabled in the agent before they can be used. Note: example's language code is not currently used in dialogflow agents.", + "type": "string" + }, + "name": { + "description": "The unique identifier of the playbook example. Format: `projects//locations//agents//playbooks//examples/`.", + "type": "string" + }, + "playbookInput": { + "$ref": "GoogleCloudDialogflowCxV3PlaybookInput", + "description": "Optional. The input to the playbook in the example." + }, + "playbookOutput": { + "$ref": "GoogleCloudDialogflowCxV3PlaybookOutput", + "description": "Optional. The output of the playbook in the example." + }, + "tokenCount": { + "description": "Output only. Estimated number of tokes current example takes when sent to the LLM.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Output only. Last time the example was updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3Experiment": { "description": "Represents an experiment in an environment.", "id": "GoogleCloudDialogflowCxV3Experiment", @@ -6409,6 +7219,31 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3ExportPlaybookRequest": { + "description": "The request message for Playbooks.ExportPlaybook.", + "id": "GoogleCloudDialogflowCxV3ExportPlaybookRequest", + "properties": { + "dataFormat": { + "description": "Optional. The data format of the exported agent. If not specified, `BLOB` is assumed.", + "enum": [ + "DATA_FORMAT_UNSPECIFIED", + "BLOB", + "JSON" + ], + "enumDescriptions": [ + "Unspecified format.", + "Flow content will be exported as raw bytes.", + "Flow content will be exported in JSON format." + ], + "type": "string" + }, + "playbookUri": { + "description": "Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to export the playbook to. The format of this URI must be `gs:///`. If left unspecified, the serialized playbook is returned inline. Dialogflow performs a write operation for the Cloud Storage object on the caller's behalf, so your request authentication must have write permissions for the object. For more information, see [Dialogflow access control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3ExportTestCasesMetadata": { "description": "Metadata returned for the TestCases.ExportTestCases long running operation. This message currently has no fields.", "id": "GoogleCloudDialogflowCxV3ExportTestCasesMetadata", @@ -6565,6 +7400,42 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3FlowInvocation": { + "description": "Stores metadata of the invocation of a CX flow.", + "id": "GoogleCloudDialogflowCxV3FlowInvocation", + "properties": { + "displayName": { + "description": "Output only. The display name of the flow.", + "readOnly": true, + "type": "string" + }, + "flow": { + "description": "Required. The unique identifier of the flow. Format: `projects//locations//agents//flows/`.", + "type": "string" + }, + "flowState": { + "description": "Required. Flow invocation's output state.", + "enum": [ + "OUTPUT_STATE_UNSPECIFIED", + "OUTPUT_STATE_OK", + "OUTPUT_STATE_CANCELLED", + "OUTPUT_STATE_FAILED", + "OUTPUT_STATE_ESCALATED", + "OUTPUT_STATE_PENDING" + ], + "enumDescriptions": [ + "Unspecified output.", + "Succeeded.", + "Cancelled.", + "Failed.", + "Escalated.", + "Pending." + ], + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3FlowMultiLanguageSettings": { "description": "Settings for multi-lingual agents.", "id": "GoogleCloudDialogflowCxV3FlowMultiLanguageSettings", @@ -6861,6 +7732,10 @@ "description": "Language for this settings.", "type": "string" }, + "llmModelSettings": { + "$ref": "GoogleCloudDialogflowCxV3LlmModelSettings", + "description": "LLM model settings." + }, "name": { "description": "Format: `projects//locations//agents//generativeSettings`.", "type": "string" @@ -6944,6 +7819,10 @@ "description": "Required. The human-readable name of the generator, unique within the agent. The prompt contains pre-defined parameters such as $conversation, $last-user-utterance, etc. populated by Dialogflow. It can also contain custom placeholders which will be resolved during fulfillment.", "type": "string" }, + "llmModelSettings": { + "$ref": "GoogleCloudDialogflowCxV3LlmModelSettings", + "description": "The LLM model settings." + }, "modelParameter": { "$ref": "GoogleCloudDialogflowCxV3GeneratorModelParameter", "description": "Parameters passed to the LLM to configure its behavior." @@ -7228,6 +8107,26 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3ImportPlaybookRequest": { + "description": "The request message for Playbooks.ImportPlaybook.", + "id": "GoogleCloudDialogflowCxV3ImportPlaybookRequest", + "properties": { + "importStrategy": { + "$ref": "GoogleCloudDialogflowCxV3PlaybookImportStrategy", + "description": "Optional. Specifies the import strategy used when resolving resource conflicts." + }, + "playbookContent": { + "description": "Uncompressed raw byte content for playbook.", + "format": "byte", + "type": "string" + }, + "playbookUri": { + "description": "[Dialogflow access control] (https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3ImportTestCasesMetadata": { "description": "Metadata returned for the TestCases.ImportTestCases long running operation.", "id": "GoogleCloudDialogflowCxV3ImportTestCasesMetadata", @@ -7692,6 +8591,24 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3ListExamplesResponse": { + "description": "The response message for Examples.ListExamples.", + "id": "GoogleCloudDialogflowCxV3ListExamplesResponse", + "properties": { + "examples": { + "description": "The list of examples. There will be a maximum number of items returned based on the page_size field in the request.", + "items": { + "$ref": "GoogleCloudDialogflowCxV3Example" + }, + "type": "array" + }, + "nextPageToken": { + "description": "Token to retrieve the next page of results, or empty if there are no more results in the list.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3ListExperimentsResponse": { "description": "The response message for Experiments.ListExperiments.", "id": "GoogleCloudDialogflowCxV3ListExperimentsResponse", @@ -7782,6 +8699,42 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3ListPlaybookVersionsResponse": { + "description": "The response message for Playbooks.ListPlaybookVersions.", + "id": "GoogleCloudDialogflowCxV3ListPlaybookVersionsResponse", + "properties": { + "nextPageToken": { + "description": "Token to retrieve the next page of results, or empty if there are no more results in the list.", + "type": "string" + }, + "playbookVersions": { + "description": "The list of playbook version. There will be a maximum number of items returned based on the page_size field in the request.", + "items": { + "$ref": "GoogleCloudDialogflowCxV3PlaybookVersion" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3ListPlaybooksResponse": { + "description": "The response message for Playbooks.ListPlaybooks.", + "id": "GoogleCloudDialogflowCxV3ListPlaybooksResponse", + "properties": { + "nextPageToken": { + "description": "Token to retrieve the next page of results, or empty if there are no more results in the list.", + "type": "string" + }, + "playbooks": { + "description": "The list of playbooks. There will be a maximum number of items returned based on the page_size field in the request.", + "items": { + "$ref": "GoogleCloudDialogflowCxV3Playbook" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3ListSecuritySettingsResponse": { "description": "The response message for SecuritySettings.ListSecuritySettings.", "id": "GoogleCloudDialogflowCxV3ListSecuritySettingsResponse", @@ -7854,6 +8807,24 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3ListToolsResponse": { + "description": "The response message for Tools.ListTools.", + "id": "GoogleCloudDialogflowCxV3ListToolsResponse", + "properties": { + "nextPageToken": { + "description": "Token to retrieve the next page of results, or empty if there are no more results in the list.", + "type": "string" + }, + "tools": { + "description": "The list of Tools. There will be a maximum number of items returned based on the page_size field in the request.", + "items": { + "$ref": "GoogleCloudDialogflowCxV3Tool" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse": { "description": "The response message for TransitionRouteGroups.ListTransitionRouteGroups.", "id": "GoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse", @@ -7908,6 +8879,21 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3LlmModelSettings": { + "description": "Settings for LLM models.", + "id": "GoogleCloudDialogflowCxV3LlmModelSettings", + "properties": { + "model": { + "description": "The selected LLM model.", + "type": "string" + }, + "promptText": { + "description": "The custom prompt to use.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3LoadVersionRequest": { "description": "The request message for Versions.LoadVersion.", "id": "GoogleCloudDialogflowCxV3LoadVersionRequest", @@ -8265,6 +9251,277 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3Playbook": { + "description": "Playbook is the basic building block to instruct the LLM how to execute a certain task. A playbook consists of a goal to accomplish, an optional list of step by step instructions (the step instruction may refers to name of the custom or default plugin tools to use) to perform the task, a list of contextual input data to be passed in at the beginning of the invoked, and a list of output parameters to store the playbook result.", + "id": "GoogleCloudDialogflowCxV3Playbook", + "properties": { + "createTime": { + "description": "Output only. The timestamp of initial playbook creation.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "displayName": { + "description": "Required. The human-readable name of the playbook, unique within an agent.", + "type": "string" + }, + "goal": { + "description": "Required. High level description of the goal the playbook intend to accomplish. A goal should be concise since it's visible to other playbooks that may reference this playbook.", + "type": "string" + }, + "instruction": { + "$ref": "GoogleCloudDialogflowCxV3PlaybookInstruction", + "description": "Instruction to accomplish target goal." + }, + "llmModelSettings": { + "$ref": "GoogleCloudDialogflowCxV3LlmModelSettings", + "description": "Optional. Llm model settings for the playbook." + }, + "name": { + "description": "The unique identifier of the playbook. Format: `projects//locations//agents//playbooks/`.", + "type": "string" + }, + "referencedFlows": { + "description": "Output only. The resource name of flows referenced by the current playbook in the instructions.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, + "referencedPlaybooks": { + "description": "Output only. The resource name of other playbooks referenced by the current playbook in the instructions.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, + "referencedTools": { + "description": "Optional. The resource name of tools referenced by the current playbook in the instructions. If not provided explicitly, they are will be implied using the tool being referenced in goal and steps.", + "items": { + "type": "string" + }, + "type": "array" + }, + "tokenCount": { + "description": "Output only. Estimated number of tokes current playbook takes when sent to the LLM.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Output only. Last time the playbook version was updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3PlaybookImportStrategy": { + "description": "The playbook import strategy used for resource conflict resolution associated with an ImportPlaybookRequest.", + "id": "GoogleCloudDialogflowCxV3PlaybookImportStrategy", + "properties": { + "mainPlaybookImportStrategy": { + "description": "Optional. Specifies the import strategy used when resolving conflicts with the main playbook. If not specified, 'CREATE_NEW' is assumed.", + "enum": [ + "IMPORT_STRATEGY_UNSPECIFIED", + "IMPORT_STRATEGY_CREATE_NEW", + "IMPORT_STRATEGY_REPLACE", + "IMPORT_STRATEGY_KEEP", + "IMPORT_STRATEGY_MERGE", + "IMPORT_STRATEGY_THROW_ERROR" + ], + "enumDescriptions": [ + "Unspecified. Treated as 'CREATE_NEW'.", + "Create a new resource with a numeric suffix appended to the end of the existing display name.", + "Replace existing resource with incoming resource in the content to be imported.", + "Keep existing resource and discard incoming resource in the content to be imported.", + "Combine existing and incoming resources when a conflict is encountered.", + "Throw error if a conflict is encountered." + ], + "type": "string" + }, + "nestedResourceImportStrategy": { + "description": "Optional. Specifies the import strategy used when resolving referenced playbook/flow conflicts. If not specified, 'CREATE_NEW' is assumed.", + "enum": [ + "IMPORT_STRATEGY_UNSPECIFIED", + "IMPORT_STRATEGY_CREATE_NEW", + "IMPORT_STRATEGY_REPLACE", + "IMPORT_STRATEGY_KEEP", + "IMPORT_STRATEGY_MERGE", + "IMPORT_STRATEGY_THROW_ERROR" + ], + "enumDescriptions": [ + "Unspecified. Treated as 'CREATE_NEW'.", + "Create a new resource with a numeric suffix appended to the end of the existing display name.", + "Replace existing resource with incoming resource in the content to be imported.", + "Keep existing resource and discard incoming resource in the content to be imported.", + "Combine existing and incoming resources when a conflict is encountered.", + "Throw error if a conflict is encountered." + ], + "type": "string" + }, + "toolImportStrategy": { + "description": "Optional. Specifies the import strategy used when resolving tool conflicts. If not specified, 'CREATE_NEW' is assumed. This will be applied after the main playbook and nested resource import strategies, meaning if the playbook that references the tool is skipped, the tool will also be skipped.", + "enum": [ + "IMPORT_STRATEGY_UNSPECIFIED", + "IMPORT_STRATEGY_CREATE_NEW", + "IMPORT_STRATEGY_REPLACE", + "IMPORT_STRATEGY_KEEP", + "IMPORT_STRATEGY_MERGE", + "IMPORT_STRATEGY_THROW_ERROR" + ], + "enumDescriptions": [ + "Unspecified. Treated as 'CREATE_NEW'.", + "Create a new resource with a numeric suffix appended to the end of the existing display name.", + "Replace existing resource with incoming resource in the content to be imported.", + "Keep existing resource and discard incoming resource in the content to be imported.", + "Combine existing and incoming resources when a conflict is encountered.", + "Throw error if a conflict is encountered." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3PlaybookInput": { + "description": "Input of the playbook.", + "id": "GoogleCloudDialogflowCxV3PlaybookInput", + "properties": { + "precedingConversationSummary": { + "description": "Optional. Summary string of the preceding conversation for the child playbook invocation.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3PlaybookInstruction": { + "description": "Message of the Instruction of the playbook.", + "id": "GoogleCloudDialogflowCxV3PlaybookInstruction", + "properties": { + "guidelines": { + "description": "General guidelines for the playbook. These are unstructured instructions that are not directly part of the goal, e.g. \"Always be polite\". It's valid for this text to be long and used instead of steps altogether.", + "type": "string" + }, + "steps": { + "description": "Ordered list of step by step execution instructions to accomplish target goal.", + "items": { + "$ref": "GoogleCloudDialogflowCxV3PlaybookStep" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3PlaybookInvocation": { + "description": "Stores metadata of the invocation of a child playbook.", + "id": "GoogleCloudDialogflowCxV3PlaybookInvocation", + "properties": { + "displayName": { + "description": "Output only. The display name of the playbook.", + "readOnly": true, + "type": "string" + }, + "playbook": { + "description": "Required. The unique identifier of the playbook. Format: `projects//locations//agents//playbooks/`.", + "type": "string" + }, + "playbookInput": { + "$ref": "GoogleCloudDialogflowCxV3PlaybookInput", + "description": "Optional. Input of the child playbook invocation." + }, + "playbookOutput": { + "$ref": "GoogleCloudDialogflowCxV3PlaybookOutput", + "description": "Optional. Output of the child playbook invocation." + }, + "playbookState": { + "description": "Required. Playbook invocation's output state.", + "enum": [ + "OUTPUT_STATE_UNSPECIFIED", + "OUTPUT_STATE_OK", + "OUTPUT_STATE_CANCELLED", + "OUTPUT_STATE_FAILED", + "OUTPUT_STATE_ESCALATED", + "OUTPUT_STATE_PENDING" + ], + "enumDescriptions": [ + "Unspecified output.", + "Succeeded.", + "Cancelled.", + "Failed.", + "Escalated.", + "Pending." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3PlaybookOutput": { + "description": "Output of the playbook.", + "id": "GoogleCloudDialogflowCxV3PlaybookOutput", + "properties": { + "executionSummary": { + "description": "Optional. Summary string of the execution result of the child playbook.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3PlaybookStep": { + "description": "Message of single step execution.", + "id": "GoogleCloudDialogflowCxV3PlaybookStep", + "properties": { + "steps": { + "description": "Sub-processing needed to execute the current step.", + "items": { + "$ref": "GoogleCloudDialogflowCxV3PlaybookStep" + }, + "type": "array" + }, + "text": { + "description": "Step instruction in text format.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3PlaybookVersion": { + "description": "Playbook version is a snapshot of the playbook at certain timestamp.", + "id": "GoogleCloudDialogflowCxV3PlaybookVersion", + "properties": { + "description": { + "description": "Optional. The description of the playbook version.", + "type": "string" + }, + "examples": { + "description": "Output only. Snapshot of the examples belonging to the playbook when the playbook version is created.", + "items": { + "$ref": "GoogleCloudDialogflowCxV3Example" + }, + "readOnly": true, + "type": "array" + }, + "name": { + "description": "The unique identifier of the playbook version. Format: `projects//locations//agents//playbooks//versions/`.", + "type": "string" + }, + "playbook": { + "$ref": "GoogleCloudDialogflowCxV3Playbook", + "description": "Output only. Snapshot of the playbook when the playbook version is created.", + "readOnly": true + }, + "updateTime": { + "description": "Output only. Last time the playbook version was created or modified.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3QueryInput": { "description": "Represents the query input. It can contain one of: 1. A conversational query in the form of text. 2. An intent query that specifies which intent to trigger. 3. Natural language speech audio to be processed. 4. An event to be triggered. 5. DTMF digits to invoke an intent and fill in parameter value. 6. The results of a tool executed by the client.", "id": "GoogleCloudDialogflowCxV3QueryInput", @@ -8292,6 +9549,10 @@ "text": { "$ref": "GoogleCloudDialogflowCxV3TextInput", "description": "The natural language text to be processed." + }, + "toolCallResult": { + "$ref": "GoogleCloudDialogflowCxV3ToolCallResult", + "description": "The results of a tool executed by the client." } }, "type": "object" @@ -8312,6 +9573,10 @@ "description": "The unique identifier of the page to override the current page in the session. Format: `projects//locations//agents//flows//pages/`. If `current_page` is specified, the previous state of the session will be ignored by Dialogflow, including the previous page and the previous session parameters. In most cases, current_page and parameters should be configured together to direct a session to a specific state.", "type": "string" }, + "currentPlaybook": { + "description": "Optional. The unique identifier of the playbook to start or continue the session with. If `current_playbook` is specified, the previous state of the session will be ignored by Dialogflow. Format: `projects//locations//agents//playbooks/`.", + "type": "string" + }, "disableWebhook": { "description": "Whether to disable webhook calls for this request.", "type": "boolean" @@ -8335,6 +9600,10 @@ "$ref": "GoogleTypeLatLng", "description": "The geo location of this conversational query." }, + "llmModelSettings": { + "$ref": "GoogleCloudDialogflowCxV3LlmModelSettings", + "description": "Optional. Use the specified LLM model settings for processing the request." + }, "parameters": { "additionalProperties": { "description": "Properties of the object.", @@ -8577,6 +9846,10 @@ "text": { "$ref": "GoogleCloudDialogflowCxV3ResponseMessageText", "description": "Returns a text response." + }, + "toolCall": { + "$ref": "GoogleCloudDialogflowCxV3ToolCall", + "description": "Returns the definition of a tool call that should be executed by the client." } }, "type": "object" @@ -8758,13 +10031,30 @@ }, "type": "object" }, - "GoogleCloudDialogflowCxV3RestoreAgentRequestGitSource": { - "description": "Settings for restoring from a git branch", - "id": "GoogleCloudDialogflowCxV3RestoreAgentRequestGitSource", + "GoogleCloudDialogflowCxV3RestoreAgentRequestGitSource": { + "description": "Settings for restoring from a git branch", + "id": "GoogleCloudDialogflowCxV3RestoreAgentRequestGitSource", + "properties": { + "trackingBranch": { + "description": "tracking branch for the git pull", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3RestorePlaybookVersionRequest": { + "description": "The request message for Playbooks.RestorePlaybookVersion.", + "id": "GoogleCloudDialogflowCxV3RestorePlaybookVersionRequest", + "properties": {}, + "type": "object" + }, + "GoogleCloudDialogflowCxV3RestorePlaybookVersionResponse": { + "description": "The response message for Playbooks.RestorePlaybookVersion.", + "id": "GoogleCloudDialogflowCxV3RestorePlaybookVersionResponse", "properties": { - "trackingBranch": { - "description": "tracking branch for the git pull", - "type": "string" + "playbook": { + "$ref": "GoogleCloudDialogflowCxV3Playbook", + "description": "The updated playbook." } }, "type": "object" @@ -8902,6 +10192,20 @@ "$ref": "GoogleCloudDialogflowCxV3SafetySettingsPhrase" }, "type": "array" + }, + "defaultBannedPhraseMatchStrategy": { + "description": "Optional. Default phrase match strategy for banned phrases.", + "enum": [ + "PHRASE_MATCH_STRATEGY_UNSPECIFIED", + "PARTIAL_MATCH", + "WORD_MATCH" + ], + "enumDescriptions": [ + "Unspecified, defaults to PARTIAL_MATCH.", + "Text that contains the phrase as a substring will be matched, e.g. \"foo\" will match \"afoobar\".", + "Text that contains the tokenized words of the phrase will be matched, e.g. \"foo\" will match \"a foo bar\" and \"foo bar\", but not \"foobar\"." + ], + "type": "string" } }, "type": "object" @@ -9232,193 +10536,581 @@ "readOnly": true, "type": "string" }, - "displayName": { - "description": "Required. The human-readable name of the test case, unique within the agent. Limit of 200 characters.", + "displayName": { + "description": "Required. The human-readable name of the test case, unique within the agent. Limit of 200 characters.", + "type": "string" + }, + "lastTestResult": { + "$ref": "GoogleCloudDialogflowCxV3TestCaseResult", + "description": "The latest test result." + }, + "name": { + "description": "The unique identifier of the test case. TestCases.CreateTestCase will populate the name automatically. Otherwise use format: `projects//locations//agents//testCases/`.", + "type": "string" + }, + "notes": { + "description": "Additional freeform notes about the test case. Limit of 400 characters.", + "type": "string" + }, + "tags": { + "description": "Tags are short descriptions that users may apply to test cases for organizational and filtering purposes. Each tag should start with \"#\" and has a limit of 30 characters.", + "items": { + "type": "string" + }, + "type": "array" + }, + "testCaseConversationTurns": { + "description": "The conversation turns uttered when the test case was created, in chronological order. These include the canonical set of agent utterances that should occur when the agent is working properly.", + "items": { + "$ref": "GoogleCloudDialogflowCxV3ConversationTurn" + }, + "type": "array" + }, + "testConfig": { + "$ref": "GoogleCloudDialogflowCxV3TestConfig", + "description": "Config for the test case." + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3TestCaseError": { + "description": "Error info for importing a test.", + "id": "GoogleCloudDialogflowCxV3TestCaseError", + "properties": { + "status": { + "$ref": "GoogleRpcStatus", + "description": "The status associated with the test case." + }, + "testCase": { + "$ref": "GoogleCloudDialogflowCxV3TestCase", + "description": "The test case." + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3TestCaseResult": { + "description": "Represents a result from running a test case in an agent environment.", + "id": "GoogleCloudDialogflowCxV3TestCaseResult", + "properties": { + "conversationTurns": { + "description": "The conversation turns uttered during the test case replay in chronological order.", + "items": { + "$ref": "GoogleCloudDialogflowCxV3ConversationTurn" + }, + "type": "array" + }, + "environment": { + "description": "Environment where the test was run. If not set, it indicates the draft environment.", + "type": "string" + }, + "name": { + "description": "The resource name for the test case result. Format: `projects//locations//agents//testCases//results/`.", + "type": "string" + }, + "testResult": { + "description": "Whether the test case passed in the agent environment.", + "enum": [ + "TEST_RESULT_UNSPECIFIED", + "PASSED", + "FAILED" + ], + "enumDescriptions": [ + "Not specified. Should never be used.", + "The test passed.", + "The test did not pass." + ], + "type": "string" + }, + "testTime": { + "description": "The time that the test was run.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3TestConfig": { + "description": "Represents configurations for a test case.", + "id": "GoogleCloudDialogflowCxV3TestConfig", + "properties": { + "flow": { + "description": "Flow name to start the test case with. Format: `projects//locations//agents//flows/`. Only one of `flow` and `page` should be set to indicate the starting point of the test case. If neither is set, the test case will start with start page on the default start flow.", + "type": "string" + }, + "page": { + "description": "The page to start the test case with. Format: `projects//locations//agents//flows//pages/`. Only one of `flow` and `page` should be set to indicate the starting point of the test case. If neither is set, the test case will start with start page on the default start flow.", + "type": "string" + }, + "trackingParameters": { + "description": "Session parameters to be compared when calculating differences.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3TestError": { + "description": "Error info for running a test.", + "id": "GoogleCloudDialogflowCxV3TestError", + "properties": { + "status": { + "$ref": "GoogleRpcStatus", + "description": "The status associated with the test." + }, + "testCase": { + "description": "The test case resource name.", + "type": "string" + }, + "testTime": { + "description": "The timestamp when the test was completed.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3TestRunDifference": { + "description": "The description of differences between original and replayed agent output.", + "id": "GoogleCloudDialogflowCxV3TestRunDifference", + "properties": { + "description": { + "description": "A human readable description of the diff, showing the actual output vs expected output.", + "type": "string" + }, + "type": { + "description": "The type of diff.", + "enum": [ + "DIFF_TYPE_UNSPECIFIED", + "INTENT", + "PAGE", + "PARAMETERS", + "UTTERANCE", + "FLOW" + ], + "enumDescriptions": [ + "Should never be used.", + "The intent.", + "The page.", + "The parameters.", + "The message utterance.", + "The flow." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3TextInput": { + "description": "Represents the natural language text to be processed.", + "id": "GoogleCloudDialogflowCxV3TextInput", + "properties": { + "text": { + "description": "Required. The UTF-8 encoded natural language text to be processed.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3TextToSpeechSettings": { + "description": "Settings related to speech synthesizing.", + "id": "GoogleCloudDialogflowCxV3TextToSpeechSettings", + "properties": { + "synthesizeSpeechConfigs": { + "additionalProperties": { + "$ref": "GoogleCloudDialogflowCxV3SynthesizeSpeechConfig" + }, + "description": "Configuration of how speech should be synthesized, mapping from language (https://cloud.google.com/dialogflow/cx/docs/reference/language) to SynthesizeSpeechConfig. These settings affect: - The [phone gateway](https://cloud.google.com/dialogflow/cx/docs/concept/integration/phone-gateway) synthesize configuration set via Agent.text_to_speech_settings. - How speech is synthesized when invoking session APIs. Agent.text_to_speech_settings only applies if OutputAudioConfig.synthesize_speech_config is not specified.", + "type": "object" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3Tool": { + "description": "A tool provides a list of actions which are available to the Playbook to attain its goal. A Tool consists of a description of the tool's usage and a specification of the tool which contains the schema and authentication information.", + "id": "GoogleCloudDialogflowCxV3Tool", + "properties": { + "dataStoreSpec": { + "$ref": "GoogleCloudDialogflowCxV3ToolDataStoreTool", + "description": "Data store search tool specification." + }, + "description": { + "description": "Required. High level description of the Tool and its usage.", + "type": "string" + }, + "displayName": { + "description": "Required. The human-readable name of the Tool, unique within an agent.", + "type": "string" + }, + "functionSpec": { + "$ref": "GoogleCloudDialogflowCxV3ToolFunctionTool", + "description": "Client side executed function specification." + }, + "name": { + "description": "The unique identifier of the Tool. Format: `projects//locations//agents//tools/`.", + "type": "string" + }, + "openApiSpec": { + "$ref": "GoogleCloudDialogflowCxV3ToolOpenApiTool", + "description": "OpenAPI specification of the Tool." + }, + "toolType": { + "description": "Output only. The tool type.", + "enum": [ + "TOOL_TYPE_UNSPECIFIED", + "CUSTOMIZED_TOOL", + "BUILTIN_TOOL" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "Customer provided tool.", + "First party built-in tool created by Dialogflow which cannot be modified." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3ToolAuthentication": { + "description": "Authentication information required for API calls", + "id": "GoogleCloudDialogflowCxV3ToolAuthentication", + "properties": { + "apiKeyConfig": { + "$ref": "GoogleCloudDialogflowCxV3ToolAuthenticationApiKeyConfig", + "description": "Config for API key auth." + }, + "bearerTokenConfig": { + "$ref": "GoogleCloudDialogflowCxV3ToolAuthenticationBearerTokenConfig", + "description": "Config for bearer token auth." + }, + "oauthConfig": { + "$ref": "GoogleCloudDialogflowCxV3ToolAuthenticationOAuthConfig", + "description": "Config for OAuth." + }, + "serviceAgentAuthConfig": { + "$ref": "GoogleCloudDialogflowCxV3ToolAuthenticationServiceAgentAuthConfig", + "description": "Config for [Diglogflow service agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent) auth." + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3ToolAuthenticationApiKeyConfig": { + "description": "Config for authentication with API key.", + "id": "GoogleCloudDialogflowCxV3ToolAuthenticationApiKeyConfig", + "properties": { + "apiKey": { + "description": "Optional. The API key. If the `secret_version_for_api_key` field is set, this field will be ignored.", + "type": "string" + }, + "keyName": { + "description": "Required. The parameter name or the header name of the API key. E.g., If the API request is \"https://example.com/act?X-Api-Key=\", \"X-Api-Key\" would be the parameter name.", + "type": "string" + }, + "requestLocation": { + "description": "Required. Key location in the request.", + "enum": [ + "REQUEST_LOCATION_UNSPECIFIED", + "HEADER", + "QUERY_STRING" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "Represents the key in http header.", + "Represents the key in query string." + ], + "type": "string" + }, + "secretVersionForApiKey": { + "description": "Optional. The name of the SecretManager secret version resource storing the API key. If this field is set, the `api_key` field will be ignored. Format: `projects/{project}/secrets/{secret}/versions/{version}`", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3ToolAuthenticationBearerTokenConfig": { + "description": "Config for authentication using bearer token.", + "id": "GoogleCloudDialogflowCxV3ToolAuthenticationBearerTokenConfig", + "properties": { + "secretVersionForToken": { + "description": "Optional. The name of the SecretManager secret version resource storing the Bearer token. If this field is set, the `token` field will be ignored. Format: `projects/{project}/secrets/{secret}/versions/{version}`", + "type": "string" + }, + "token": { + "description": "Optional. The text token appended to the text `Bearer` to the request Authorization header. [Session parameters reference](https://cloud.google.com/dialogflow/cx/docs/concept/parameter#session-ref) can be used to pass the token dynamically, e.g. `$session.params.parameter-id`.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3ToolAuthenticationOAuthConfig": { + "description": "Config for authentication with OAuth.", + "id": "GoogleCloudDialogflowCxV3ToolAuthenticationOAuthConfig", + "properties": { + "clientId": { + "description": "Required. The client ID from the OAuth provider.", "type": "string" }, - "lastTestResult": { - "$ref": "GoogleCloudDialogflowCxV3TestCaseResult", - "description": "The latest test result." - }, - "name": { - "description": "The unique identifier of the test case. TestCases.CreateTestCase will populate the name automatically. Otherwise use format: `projects//locations//agents//testCases/`.", + "clientSecret": { + "description": "Optional. The client secret from the OAuth provider. If the `secret_version_for_client_secret` field is set, this field will be ignored.", "type": "string" }, - "notes": { - "description": "Additional freeform notes about the test case. Limit of 400 characters.", + "oauthGrantType": { + "description": "Required. OAuth grant types.", + "enum": [ + "OAUTH_GRANT_TYPE_UNSPECIFIED", + "CLIENT_CREDENTIAL" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "Represents the [client credential flow](https://oauth.net/2/grant-types/client-credentials)." + ], "type": "string" }, - "tags": { - "description": "Tags are short descriptions that users may apply to test cases for organizational and filtering purposes. Each tag should start with \"#\" and has a limit of 30 characters.", + "scopes": { + "description": "Optional. The OAuth scopes to grant.", "items": { "type": "string" }, "type": "array" }, - "testCaseConversationTurns": { - "description": "The conversation turns uttered when the test case was created, in chronological order. These include the canonical set of agent utterances that should occur when the agent is working properly.", - "items": { - "$ref": "GoogleCloudDialogflowCxV3ConversationTurn" - }, - "type": "array" + "secretVersionForClientSecret": { + "description": "Optional. The name of the SecretManager secret version resource storing the client secret. If this field is set, the `client_secret` field will be ignored. Format: `projects/{project}/secrets/{secret}/versions/{version}`", + "type": "string" }, - "testConfig": { - "$ref": "GoogleCloudDialogflowCxV3TestConfig", - "description": "Config for the test case." + "tokenEndpoint": { + "description": "Required. The token endpoint in the OAuth provider to exchange for an access token.", + "type": "string" } }, "type": "object" }, - "GoogleCloudDialogflowCxV3TestCaseError": { - "description": "Error info for importing a test.", - "id": "GoogleCloudDialogflowCxV3TestCaseError", + "GoogleCloudDialogflowCxV3ToolAuthenticationServiceAgentAuthConfig": { + "description": "Config for auth using [Diglogflow service agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).", + "id": "GoogleCloudDialogflowCxV3ToolAuthenticationServiceAgentAuthConfig", "properties": { - "status": { - "$ref": "GoogleRpcStatus", - "description": "The status associated with the test case." - }, - "testCase": { - "$ref": "GoogleCloudDialogflowCxV3TestCase", - "description": "The test case." + "serviceAgentAuth": { + "description": "Optional. Indicate the auth token type generated from the [Diglogflow service agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent). The generated token is sent in the Authorization header.", + "enum": [ + "SERVICE_AGENT_AUTH_UNSPECIFIED", + "ID_TOKEN", + "ACCESS_TOKEN" + ], + "enumDescriptions": [ + "Service agent auth type unspecified. Default to ID_TOKEN.", + "Use [ID token](https://cloud.google.com/docs/authentication/token-types#id) generated from service agent. This can be used to access Cloud Function and Cloud Run after you grant Invoker role to `service-@gcp-sa-dialogflow.iam.gserviceaccount.com`.", + "Use [access token](https://cloud.google.com/docs/authentication/token-types#access) generated from service agent. This can be used to access other Google Cloud APIs after you grant required roles to `service-@gcp-sa-dialogflow.iam.gserviceaccount.com`." + ], + "type": "string" } }, "type": "object" }, - "GoogleCloudDialogflowCxV3TestCaseResult": { - "description": "Represents a result from running a test case in an agent environment.", - "id": "GoogleCloudDialogflowCxV3TestCaseResult", + "GoogleCloudDialogflowCxV3ToolCall": { + "description": "Represents a call of a specific tool's action with the specified inputs.", + "id": "GoogleCloudDialogflowCxV3ToolCall", "properties": { - "conversationTurns": { - "description": "The conversation turns uttered during the test case replay in chronological order.", - "items": { - "$ref": "GoogleCloudDialogflowCxV3ConversationTurn" + "action": { + "description": "Required. The name of the tool's action associated with this call.", + "type": "string" + }, + "inputParameters": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" }, - "type": "array" + "description": "Optional. The action's input parameters.", + "type": "object" }, - "environment": { - "description": "Environment where the test was run. If not set, it indicates the draft environment.", + "tool": { + "description": "Required. The tool associated with this call. Format: `projects//locations//agents//tools/`.", "type": "string" - }, - "name": { - "description": "The resource name for the test case result. Format: `projects//locations//agents//testCases//results/`.", + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3ToolCallResult": { + "description": "The result of calling a tool's action that has been executed by the client.", + "id": "GoogleCloudDialogflowCxV3ToolCallResult", + "properties": { + "action": { + "description": "Required. The name of the tool's action associated with this call.", "type": "string" }, - "testResult": { - "description": "Whether the test case passed in the agent environment.", - "enum": [ - "TEST_RESULT_UNSPECIFIED", - "PASSED", - "FAILED" - ], - "enumDescriptions": [ - "Not specified. Should never be used.", - "The test passed.", - "The test did not pass." - ], - "type": "string" + "error": { + "$ref": "GoogleCloudDialogflowCxV3ToolCallResultError", + "description": "The tool call's error." }, - "testTime": { - "description": "The time that the test was run.", - "format": "google-datetime", + "outputParameters": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "The tool call's output parameters.", + "type": "object" + }, + "tool": { + "description": "Required. The tool associated with this call. Format: `projects//locations//agents//tools/`.", "type": "string" } }, "type": "object" }, - "GoogleCloudDialogflowCxV3TestConfig": { - "description": "Represents configurations for a test case.", - "id": "GoogleCloudDialogflowCxV3TestConfig", + "GoogleCloudDialogflowCxV3ToolCallResultError": { + "description": "An error produced by the tool call.", + "id": "GoogleCloudDialogflowCxV3ToolCallResultError", "properties": { - "flow": { - "description": "Flow name to start the test case with. Format: `projects//locations//agents//flows/`. Only one of `flow` and `page` should be set to indicate the starting point of the test case. If neither is set, the test case will start with start page on the default start flow.", - "type": "string" - }, - "page": { - "description": "The page to start the test case with. Format: `projects//locations//agents//flows//pages/`. Only one of `flow` and `page` should be set to indicate the starting point of the test case. If neither is set, the test case will start with start page on the default start flow.", + "message": { + "description": "Optional. The error message of the function.", "type": "string" - }, - "trackingParameters": { - "description": "Session parameters to be compared when calculating differences.", + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3ToolDataStoreTool": { + "description": "A DataStoreTool is a way to provide specifications needed to search a list of data stores.", + "id": "GoogleCloudDialogflowCxV3ToolDataStoreTool", + "properties": { + "dataStoreConnections": { + "description": "Required. List of data stores to search.", "items": { - "type": "string" + "$ref": "GoogleCloudDialogflowCxV3DataStoreConnection" }, "type": "array" + }, + "fallbackPrompt": { + "$ref": "GoogleCloudDialogflowCxV3ToolDataStoreToolFallbackPrompt", + "description": "Required. Fallback prompt configurations to use." } }, "type": "object" }, - "GoogleCloudDialogflowCxV3TestError": { - "description": "Error info for running a test.", - "id": "GoogleCloudDialogflowCxV3TestError", + "GoogleCloudDialogflowCxV3ToolDataStoreToolFallbackPrompt": { + "description": "A FallbackPrompt is a way to provide specifications for the Data Store fallback prompt when generating responses.", + "id": "GoogleCloudDialogflowCxV3ToolDataStoreToolFallbackPrompt", + "properties": {}, + "type": "object" + }, + "GoogleCloudDialogflowCxV3ToolFunctionTool": { + "description": "A Function tool describes the functions to be invoked on the client side.", + "id": "GoogleCloudDialogflowCxV3ToolFunctionTool", "properties": { - "status": { - "$ref": "GoogleRpcStatus", - "description": "The status associated with the test." - }, - "testCase": { - "description": "The test case resource name.", - "type": "string" + "inputSchema": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Optional. The JSON schema is encapsulated in a google.protobuf.Struct to describe the input of the function. This input is a JSON object that contains the function's parameters as properties of the object.", + "type": "object" }, - "testTime": { - "description": "The timestamp when the test was completed.", - "format": "google-datetime", - "type": "string" + "outputSchema": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Optional. The JSON schema is encapsulated in a google.protobuf.Struct to describe the output of the function. This output is a JSON object that contains the function's parameters as properties of the object.", + "type": "object" } }, "type": "object" }, - "GoogleCloudDialogflowCxV3TestRunDifference": { - "description": "The description of differences between original and replayed agent output.", - "id": "GoogleCloudDialogflowCxV3TestRunDifference", + "GoogleCloudDialogflowCxV3ToolOpenApiTool": { + "description": "An OpenAPI tool is a way to provide the Tool specifications in the Open API schema format.", + "id": "GoogleCloudDialogflowCxV3ToolOpenApiTool", "properties": { - "description": { - "description": "A human readable description of the diff, showing the actual output vs expected output.", + "authentication": { + "$ref": "GoogleCloudDialogflowCxV3ToolAuthentication", + "description": "Optional. Authentication information required by the API." + }, + "serviceDirectoryConfig": { + "$ref": "GoogleCloudDialogflowCxV3ToolServiceDirectoryConfig", + "description": "Optional. Service Directory configuration." + }, + "textSchema": { + "description": "Required. The OpenAPI schema specified as a text.", "type": "string" }, - "type": { - "description": "The type of diff.", - "enum": [ - "DIFF_TYPE_UNSPECIFIED", - "INTENT", - "PAGE", - "PARAMETERS", - "UTTERANCE", - "FLOW" - ], - "enumDescriptions": [ - "Should never be used.", - "The intent.", - "The page.", - "The parameters.", - "The message utterance.", - "The flow." - ], + "tlsConfig": { + "$ref": "GoogleCloudDialogflowCxV3ToolTLSConfig", + "description": "Optional. TLS configuration for the HTTPS verification." + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3ToolServiceDirectoryConfig": { + "description": "Configuration for tools using Service Directory.", + "id": "GoogleCloudDialogflowCxV3ToolServiceDirectoryConfig", + "properties": { + "service": { + "description": "Required. The name of [Service Directory](https://cloud.google.com/service-directory) service. Format: `projects//locations//namespaces//services/`. `LocationID` of the service directory must be the same as the location of the agent.", "type": "string" } }, "type": "object" }, - "GoogleCloudDialogflowCxV3TextInput": { - "description": "Represents the natural language text to be processed.", - "id": "GoogleCloudDialogflowCxV3TextInput", + "GoogleCloudDialogflowCxV3ToolTLSConfig": { + "description": "The TLS configuration.", + "id": "GoogleCloudDialogflowCxV3ToolTLSConfig", "properties": { - "text": { - "description": "Required. The UTF-8 encoded natural language text to be processed.", + "caCerts": { + "description": "Required. Specifies a list of allowed custom CA certificates for HTTPS verification.", + "items": { + "$ref": "GoogleCloudDialogflowCxV3ToolTLSConfigCACert" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3ToolTLSConfigCACert": { + "description": "The CA certificate.", + "id": "GoogleCloudDialogflowCxV3ToolTLSConfigCACert", + "properties": { + "cert": { + "description": "Required. The allowed custom CA certificates (in DER format) for HTTPS verification. This overrides the default SSL trust store. If this is empty or unspecified, Dialogflow will use Google's default trust store to verify certificates. N.B. Make sure the HTTPS server certificates are signed with \"subject alt name\". For instance a certificate can be self-signed using the following command: ``` openssl x509 -req -days 200 -in example.com.csr \\ -signkey example.com.key \\ -out example.com.crt \\ -extfile \u003c(printf \"\\nsubjectAltName='DNS:www.example.com'\") ```", + "format": "byte", + "type": "string" + }, + "displayName": { + "description": "Required. The name of the allowed custom CA certificates. This can be used to disambiguate the custom CA certificates.", "type": "string" } }, "type": "object" }, - "GoogleCloudDialogflowCxV3TextToSpeechSettings": { - "description": "Settings related to speech synthesizing.", - "id": "GoogleCloudDialogflowCxV3TextToSpeechSettings", + "GoogleCloudDialogflowCxV3ToolUse": { + "description": "Stores metadata of the invocation of an action supported by a tool.", + "id": "GoogleCloudDialogflowCxV3ToolUse", "properties": { - "synthesizeSpeechConfigs": { + "action": { + "description": "Optional. Name of the action to be called during the tool use.", + "type": "string" + }, + "displayName": { + "description": "Output only. The display name of the tool.", + "readOnly": true, + "type": "string" + }, + "inputActionParameters": { "additionalProperties": { - "$ref": "GoogleCloudDialogflowCxV3SynthesizeSpeechConfig" + "description": "Properties of the object.", + "type": "any" }, - "description": "Configuration of how speech should be synthesized, mapping from language (https://cloud.google.com/dialogflow/cx/docs/reference/language) to SynthesizeSpeechConfig. These settings affect: - The [phone gateway](https://cloud.google.com/dialogflow/cx/docs/concept/integration/phone-gateway) synthesize configuration set via Agent.text_to_speech_settings. - How speech is synthesized when invoking session APIs. Agent.text_to_speech_settings only applies if OutputAudioConfig.synthesize_speech_config is not specified.", + "description": "Optional. A list of input parameters for the action.", "type": "object" + }, + "outputActionParameters": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Optional. A list of output parameters generated by the action.", + "type": "object" + }, + "tool": { + "description": "Required. The tool that should be used. Format: `projects//locations//agents//tools/`.", + "type": "string" } }, "type": "object" @@ -9675,6 +11367,17 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3UserUtterance": { + "description": "UserUtterance represents one message sent by the customer.", + "id": "GoogleCloudDialogflowCxV3UserUtterance", + "properties": { + "text": { + "description": "Required. Message content in text.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3ValidateAgentRequest": { "description": "The request message for Agents.ValidateAgent.", "id": "GoogleCloudDialogflowCxV3ValidateAgentRequest", diff --git a/dialogflow/v3/dialogflow-gen.go b/dialogflow/v3/dialogflow-gen.go index 7a69fb7dbef..fc4d6dd943c 100644 --- a/dialogflow/v3/dialogflow-gen.go +++ b/dialogflow/v3/dialogflow-gen.go @@ -206,8 +206,10 @@ func NewProjectsLocationsAgentsService(s *Service) *ProjectsLocationsAgentsServi rs.Flows = NewProjectsLocationsAgentsFlowsService(s) rs.Generators = NewProjectsLocationsAgentsGeneratorsService(s) rs.Intents = NewProjectsLocationsAgentsIntentsService(s) + rs.Playbooks = NewProjectsLocationsAgentsPlaybooksService(s) rs.Sessions = NewProjectsLocationsAgentsSessionsService(s) rs.TestCases = NewProjectsLocationsAgentsTestCasesService(s) + rs.Tools = NewProjectsLocationsAgentsToolsService(s) rs.TransitionRouteGroups = NewProjectsLocationsAgentsTransitionRouteGroupsService(s) rs.Webhooks = NewProjectsLocationsAgentsWebhooksService(s) return rs @@ -228,10 +230,14 @@ type ProjectsLocationsAgentsService struct { Intents *ProjectsLocationsAgentsIntentsService + Playbooks *ProjectsLocationsAgentsPlaybooksService + Sessions *ProjectsLocationsAgentsSessionsService TestCases *ProjectsLocationsAgentsTestCasesService + Tools *ProjectsLocationsAgentsToolsService + TransitionRouteGroups *ProjectsLocationsAgentsTransitionRouteGroupsService Webhooks *ProjectsLocationsAgentsWebhooksService @@ -387,6 +393,39 @@ type ProjectsLocationsAgentsIntentsService struct { s *Service } +func NewProjectsLocationsAgentsPlaybooksService(s *Service) *ProjectsLocationsAgentsPlaybooksService { + rs := &ProjectsLocationsAgentsPlaybooksService{s: s} + rs.Examples = NewProjectsLocationsAgentsPlaybooksExamplesService(s) + rs.Versions = NewProjectsLocationsAgentsPlaybooksVersionsService(s) + return rs +} + +type ProjectsLocationsAgentsPlaybooksService struct { + s *Service + + Examples *ProjectsLocationsAgentsPlaybooksExamplesService + + Versions *ProjectsLocationsAgentsPlaybooksVersionsService +} + +func NewProjectsLocationsAgentsPlaybooksExamplesService(s *Service) *ProjectsLocationsAgentsPlaybooksExamplesService { + rs := &ProjectsLocationsAgentsPlaybooksExamplesService{s: s} + return rs +} + +type ProjectsLocationsAgentsPlaybooksExamplesService struct { + s *Service +} + +func NewProjectsLocationsAgentsPlaybooksVersionsService(s *Service) *ProjectsLocationsAgentsPlaybooksVersionsService { + rs := &ProjectsLocationsAgentsPlaybooksVersionsService{s: s} + return rs +} + +type ProjectsLocationsAgentsPlaybooksVersionsService struct { + s *Service +} + func NewProjectsLocationsAgentsSessionsService(s *Service) *ProjectsLocationsAgentsSessionsService { rs := &ProjectsLocationsAgentsSessionsService{s: s} rs.EntityTypes = NewProjectsLocationsAgentsSessionsEntityTypesService(s) @@ -429,6 +468,15 @@ type ProjectsLocationsAgentsTestCasesResultsService struct { s *Service } +func NewProjectsLocationsAgentsToolsService(s *Service) *ProjectsLocationsAgentsToolsService { + rs := &ProjectsLocationsAgentsToolsService{s: s} + return rs +} + +type ProjectsLocationsAgentsToolsService struct { + s *Service +} + func NewProjectsLocationsAgentsTransitionRouteGroupsService(s *Service) *ProjectsLocationsAgentsTransitionRouteGroupsService { rs := &ProjectsLocationsAgentsTransitionRouteGroupsService{s: s} return rs @@ -474,6 +522,40 @@ type ProjectsOperationsService struct { s *Service } +// GoogleCloudDialogflowCxV3Action: Action performed by end user or Dialogflow +// agent in the conversation. +type GoogleCloudDialogflowCxV3Action struct { + // AgentUtterance: Optional. Action performed by the agent as a message. + AgentUtterance *GoogleCloudDialogflowCxV3AgentUtterance `json:"agentUtterance,omitempty"` + // FlowInvocation: Optional. Action performed on behalf of the agent by + // invoking a CX flow. + FlowInvocation *GoogleCloudDialogflowCxV3FlowInvocation `json:"flowInvocation,omitempty"` + // PlaybookInvocation: Optional. Action performed on behalf of the agent by + // invoking a child playbook. + PlaybookInvocation *GoogleCloudDialogflowCxV3PlaybookInvocation `json:"playbookInvocation,omitempty"` + // ToolUse: Optional. Action performed on behalf of the agent by calling a + // plugin tool. + ToolUse *GoogleCloudDialogflowCxV3ToolUse `json:"toolUse,omitempty"` + // UserUtterance: Optional. Agent obtained a message from the customer. + UserUtterance *GoogleCloudDialogflowCxV3UserUtterance `json:"userUtterance,omitempty"` + // ForceSendFields is a list of field names (e.g. "AgentUtterance") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AgentUtterance") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3Action) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3Action + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3AdvancedSettings: Hierarchical advanced settings // for agent/flow/page/fulfillment/parameter. Settings exposed at lower level // overrides the settings exposed at higher level. Overriding occurs at the @@ -685,11 +767,18 @@ type GoogleCloudDialogflowCxV3Agent struct { SecuritySettings string `json:"securitySettings,omitempty"` // SpeechToTextSettings: Speech recognition related settings. SpeechToTextSettings *GoogleCloudDialogflowCxV3SpeechToTextSettings `json:"speechToTextSettings,omitempty"` - // StartFlow: Immutable. Name of the start flow in this agent. A start flow + // StartFlow: Name of the start flow in this agent. A start flow will be + // automatically created when the agent is created, and can only be deleted by + // deleting the agent. Format: `projects//locations//agents//flows/`. Currently + // only the default start flow with id "00000000-0000-0000-0000-000000000000" + // is allowed. + StartFlow string `json:"startFlow,omitempty"` + // StartPlaybook: Name of the start playbook in this agent. A start playbook // will be automatically created when the agent is created, and can only be // deleted by deleting the agent. Format: - // `projects//locations//agents//flows/`. - StartFlow string `json:"startFlow,omitempty"` + // `projects//locations//agents//playbooks/`. Currently only the default + // playbook with id "00000000-0000-0000-0000-000000000000" is allowed. + StartPlaybook string `json:"startPlaybook,omitempty"` // SupportedLanguageCodes: The list of all languages supported by the agent // (except for the `default_language_code`). SupportedLanguageCodes []string `json:"supportedLanguageCodes,omitempty"` @@ -885,6 +974,29 @@ func (s GoogleCloudDialogflowCxV3AgentPersonalizationSettings) MarshalJSON() ([] return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3AgentUtterance: AgentUtterance represents one +// message sent by the agent. +type GoogleCloudDialogflowCxV3AgentUtterance struct { + // Text: Required. Message content in text. + Text string `json:"text,omitempty"` + // ForceSendFields is a list of field names (e.g. "Text") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Text") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3AgentUtterance) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3AgentUtterance + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3AgentValidationResult: The response message for // Agents.GetAgentValidationResult. type GoogleCloudDialogflowCxV3AgentValidationResult struct { @@ -2578,6 +2690,69 @@ func (s GoogleCloudDialogflowCxV3EventInput) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3Example: Example represents a sample execution of +// the playbook in the conversation. An example consists of a list of ordered +// actions performed by end user or Dialogflow agent according the playbook +// instructions to fulfill the task. +type GoogleCloudDialogflowCxV3Example struct { + // Actions: Required. The ordered list of actions performed by the end user and + // the Dialogflow agent. + Actions []*GoogleCloudDialogflowCxV3Action `json:"actions,omitempty"` + // ConversationState: Required. Example's output state. + // + // Possible values: + // "OUTPUT_STATE_UNSPECIFIED" - Unspecified output. + // "OUTPUT_STATE_OK" - Succeeded. + // "OUTPUT_STATE_CANCELLED" - Cancelled. + // "OUTPUT_STATE_FAILED" - Failed. + // "OUTPUT_STATE_ESCALATED" - Escalated. + // "OUTPUT_STATE_PENDING" - Pending. + ConversationState string `json:"conversationState,omitempty"` + // CreateTime: Output only. The timestamp of initial example creation. + CreateTime string `json:"createTime,omitempty"` + // Description: Optional. The high level concise description of the example. + // The max number of characters is 200. + Description string `json:"description,omitempty"` + // DisplayName: Required. The display name of the example. + DisplayName string `json:"displayName,omitempty"` + // LanguageCode: Optional. The language code of the example. If not specified, + // the agent's default language is used. Note: languages must be enabled in the + // agent before they can be used. Note: example's language code is not + // currently used in dialogflow agents. + LanguageCode string `json:"languageCode,omitempty"` + // Name: The unique identifier of the playbook example. Format: + // `projects//locations//agents//playbooks//examples/`. + Name string `json:"name,omitempty"` + // PlaybookInput: Optional. The input to the playbook in the example. + PlaybookInput *GoogleCloudDialogflowCxV3PlaybookInput `json:"playbookInput,omitempty"` + // PlaybookOutput: Optional. The output of the playbook in the example. + PlaybookOutput *GoogleCloudDialogflowCxV3PlaybookOutput `json:"playbookOutput,omitempty"` + // TokenCount: Output only. Estimated number of tokes current example takes + // when sent to the LLM. + TokenCount int64 `json:"tokenCount,omitempty,string"` + // UpdateTime: Output only. Last time the example was 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. "Actions") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Actions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3Example) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3Example + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3Experiment: Represents an experiment in an // environment. type GoogleCloudDialogflowCxV3Experiment struct { @@ -3174,6 +3349,44 @@ func (s GoogleCloudDialogflowCxV3ExportIntentsResponse) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3ExportPlaybookRequest: The request message for +// Playbooks.ExportPlaybook. +type GoogleCloudDialogflowCxV3ExportPlaybookRequest struct { + // DataFormat: Optional. The data format of the exported agent. If not + // specified, `BLOB` is assumed. + // + // Possible values: + // "DATA_FORMAT_UNSPECIFIED" - Unspecified format. + // "BLOB" - Flow content will be exported as raw bytes. + // "JSON" - Flow content will be exported in JSON format. + DataFormat string `json:"dataFormat,omitempty"` + // PlaybookUri: Optional. The Google Cloud Storage + // (https://cloud.google.com/storage/docs/) URI to export the playbook to. The + // format of this URI must be `gs:///`. If left unspecified, the serialized + // playbook is returned inline. Dialogflow performs a write operation for the + // Cloud Storage object on the caller's behalf, so your request authentication + // must have write permissions for the object. For more information, see + // Dialogflow access control + // (https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage). + PlaybookUri string `json:"playbookUri,omitempty"` + // ForceSendFields is a list of field names (e.g. "DataFormat") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DataFormat") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3ExportPlaybookRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3ExportPlaybookRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3ExportTestCasesMetadata: Metadata returned for the // TestCases.ExportTestCases long running operation. This message currently has // no fields. @@ -3397,6 +3610,42 @@ func (s GoogleCloudDialogflowCxV3FlowImportStrategy) MarshalJSON() ([]byte, erro return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3FlowInvocation: Stores metadata of the invocation +// of a CX flow. +type GoogleCloudDialogflowCxV3FlowInvocation struct { + // DisplayName: Output only. The display name of the flow. + DisplayName string `json:"displayName,omitempty"` + // Flow: Required. The unique identifier of the flow. Format: + // `projects//locations//agents//flows/`. + Flow string `json:"flow,omitempty"` + // FlowState: Required. Flow invocation's output state. + // + // Possible values: + // "OUTPUT_STATE_UNSPECIFIED" - Unspecified output. + // "OUTPUT_STATE_OK" - Succeeded. + // "OUTPUT_STATE_CANCELLED" - Cancelled. + // "OUTPUT_STATE_FAILED" - Failed. + // "OUTPUT_STATE_ESCALATED" - Escalated. + // "OUTPUT_STATE_PENDING" - Pending. + FlowState string `json:"flowState,omitempty"` + // ForceSendFields is a list of field names (e.g. "DisplayName") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3FlowInvocation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3FlowInvocation + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3FlowMultiLanguageSettings: Settings for // multi-lingual agents. type GoogleCloudDialogflowCxV3FlowMultiLanguageSettings struct { @@ -3848,6 +4097,8 @@ type GoogleCloudDialogflowCxV3GenerativeSettings struct { KnowledgeConnectorSettings *GoogleCloudDialogflowCxV3GenerativeSettingsKnowledgeConnectorSettings `json:"knowledgeConnectorSettings,omitempty"` // LanguageCode: Language for this settings. LanguageCode string `json:"languageCode,omitempty"` + // LlmModelSettings: LLM model settings. + LlmModelSettings *GoogleCloudDialogflowCxV3LlmModelSettings `json:"llmModelSettings,omitempty"` // Name: Format: `projects//locations//agents//generativeSettings`. Name string `json:"name,omitempty"` @@ -3978,6 +4229,8 @@ type GoogleCloudDialogflowCxV3Generator struct { // $conversation, $last-user-utterance, etc. populated by Dialogflow. It can // also contain custom placeholders which will be resolved during fulfillment. DisplayName string `json:"displayName,omitempty"` + // LlmModelSettings: The LLM model settings. + LlmModelSettings *GoogleCloudDialogflowCxV3LlmModelSettings `json:"llmModelSettings,omitempty"` // ModelParameter: Parameters passed to the LLM to configure its behavior. ModelParameter *GoogleCloudDialogflowCxV3GeneratorModelParameter `json:"modelParameter,omitempty"` // Name: The unique identifier of the generator. Must be set for the @@ -4375,6 +4628,35 @@ func (s GoogleCloudDialogflowCxV3ImportIntentsResponseConflictingResources) Mars return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3ImportPlaybookRequest: The request message for +// Playbooks.ImportPlaybook. +type GoogleCloudDialogflowCxV3ImportPlaybookRequest struct { + // ImportStrategy: Optional. Specifies the import strategy used when resolving + // resource conflicts. + ImportStrategy *GoogleCloudDialogflowCxV3PlaybookImportStrategy `json:"importStrategy,omitempty"` + // PlaybookContent: Uncompressed raw byte content for playbook. + PlaybookContent string `json:"playbookContent,omitempty"` + // PlaybookUri: [Dialogflow access control] + // (https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage). + PlaybookUri string `json:"playbookUri,omitempty"` + // ForceSendFields is a list of field names (e.g. "ImportStrategy") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ImportStrategy") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3ImportPlaybookRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3ImportPlaybookRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3ImportTestCasesMetadata: Metadata returned for the // TestCases.ImportTestCases long running operation. type GoogleCloudDialogflowCxV3ImportTestCasesMetadata struct { @@ -5126,6 +5408,36 @@ func (s GoogleCloudDialogflowCxV3ListEnvironmentsResponse) MarshalJSON() ([]byte return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3ListExamplesResponse: The response message for +// Examples.ListExamples. +type GoogleCloudDialogflowCxV3ListExamplesResponse struct { + // Examples: The list of examples. There will be a maximum number of items + // returned based on the page_size field in the request. + Examples []*GoogleCloudDialogflowCxV3Example `json:"examples,omitempty"` + // NextPageToken: Token to retrieve the next page of results, or empty if there + // are no more results in the list. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Examples") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Examples") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3ListExamplesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3ListExamplesResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3ListExperimentsResponse: The response message for // Experiments.ListExperiments. type GoogleCloudDialogflowCxV3ListExperimentsResponse struct { @@ -5278,6 +5590,66 @@ func (s GoogleCloudDialogflowCxV3ListPagesResponse) MarshalJSON() ([]byte, error return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3ListPlaybookVersionsResponse: The response message +// for Playbooks.ListPlaybookVersions. +type GoogleCloudDialogflowCxV3ListPlaybookVersionsResponse struct { + // NextPageToken: Token to retrieve the next page of results, or empty if there + // are no more results in the list. + NextPageToken string `json:"nextPageToken,omitempty"` + // PlaybookVersions: The list of playbook version. There will be a maximum + // number of items returned based on the page_size field in the request. + PlaybookVersions []*GoogleCloudDialogflowCxV3PlaybookVersion `json:"playbookVersions,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 GoogleCloudDialogflowCxV3ListPlaybookVersionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3ListPlaybookVersionsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3ListPlaybooksResponse: The response message for +// Playbooks.ListPlaybooks. +type GoogleCloudDialogflowCxV3ListPlaybooksResponse struct { + // NextPageToken: Token to retrieve the next page of results, or empty if there + // are no more results in the list. + NextPageToken string `json:"nextPageToken,omitempty"` + // Playbooks: The list of playbooks. There will be a maximum number of items + // returned based on the page_size field in the request. + Playbooks []*GoogleCloudDialogflowCxV3Playbook `json:"playbooks,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 GoogleCloudDialogflowCxV3ListPlaybooksResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3ListPlaybooksResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3ListSecuritySettingsResponse: The response message // for SecuritySettings.ListSecuritySettings. type GoogleCloudDialogflowCxV3ListSecuritySettingsResponse struct { @@ -5397,6 +5769,36 @@ func (s GoogleCloudDialogflowCxV3ListTestCasesResponse) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3ListToolsResponse: The response message for +// Tools.ListTools. +type GoogleCloudDialogflowCxV3ListToolsResponse struct { + // NextPageToken: Token to retrieve the next page of results, or empty if there + // are no more results in the list. + NextPageToken string `json:"nextPageToken,omitempty"` + // Tools: The list of Tools. There will be a maximum number of items returned + // based on the page_size field in the request. + Tools []*GoogleCloudDialogflowCxV3Tool `json:"tools,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 GoogleCloudDialogflowCxV3ListToolsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3ListToolsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse: The response // message for TransitionRouteGroups.ListTransitionRouteGroups. type GoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse struct { @@ -5491,6 +5893,30 @@ func (s GoogleCloudDialogflowCxV3ListWebhooksResponse) MarshalJSON() ([]byte, er return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3LlmModelSettings: Settings for LLM models. +type GoogleCloudDialogflowCxV3LlmModelSettings struct { + // Model: The selected LLM model. + Model string `json:"model,omitempty"` + // PromptText: The custom prompt to use. + PromptText string `json:"promptText,omitempty"` + // ForceSendFields is a list of field names (e.g. "Model") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Model") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3LlmModelSettings) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3LlmModelSettings + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3LoadVersionRequest: The request message for // Versions.LoadVersion. type GoogleCloudDialogflowCxV3LoadVersionRequest struct { @@ -6018,6 +6444,315 @@ func (s GoogleCloudDialogflowCxV3Phrase) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3Playbook: Playbook is the basic building block to +// instruct the LLM how to execute a certain task. A playbook consists of a +// goal to accomplish, an optional list of step by step instructions (the step +// instruction may refers to name of the custom or default plugin tools to use) +// to perform the task, a list of contextual input data to be passed in at the +// beginning of the invoked, and a list of output parameters to store the +// playbook result. +type GoogleCloudDialogflowCxV3Playbook struct { + // CreateTime: Output only. The timestamp of initial playbook creation. + CreateTime string `json:"createTime,omitempty"` + // DisplayName: Required. The human-readable name of the playbook, unique + // within an agent. + DisplayName string `json:"displayName,omitempty"` + // Goal: Required. High level description of the goal the playbook intend to + // accomplish. A goal should be concise since it's visible to other playbooks + // that may reference this playbook. + Goal string `json:"goal,omitempty"` + // Instruction: Instruction to accomplish target goal. + Instruction *GoogleCloudDialogflowCxV3PlaybookInstruction `json:"instruction,omitempty"` + // LlmModelSettings: Optional. Llm model settings for the playbook. + LlmModelSettings *GoogleCloudDialogflowCxV3LlmModelSettings `json:"llmModelSettings,omitempty"` + // Name: The unique identifier of the playbook. Format: + // `projects//locations//agents//playbooks/`. + Name string `json:"name,omitempty"` + // ReferencedFlows: Output only. The resource name of flows referenced by the + // current playbook in the instructions. + ReferencedFlows []string `json:"referencedFlows,omitempty"` + // ReferencedPlaybooks: Output only. The resource name of other playbooks + // referenced by the current playbook in the instructions. + ReferencedPlaybooks []string `json:"referencedPlaybooks,omitempty"` + // ReferencedTools: Optional. The resource name of tools referenced by the + // current playbook in the instructions. If not provided explicitly, they are + // will be implied using the tool being referenced in goal and steps. + ReferencedTools []string `json:"referencedTools,omitempty"` + // TokenCount: Output only. Estimated number of tokes current playbook takes + // when sent to the LLM. + TokenCount int64 `json:"tokenCount,omitempty,string"` + // UpdateTime: Output only. Last time the playbook version was 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 GoogleCloudDialogflowCxV3Playbook) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3Playbook + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3PlaybookImportStrategy: The playbook import +// strategy used for resource conflict resolution associated with an +// ImportPlaybookRequest. +type GoogleCloudDialogflowCxV3PlaybookImportStrategy struct { + // MainPlaybookImportStrategy: Optional. Specifies the import strategy used + // when resolving conflicts with the main playbook. If not specified, + // 'CREATE_NEW' is assumed. + // + // Possible values: + // "IMPORT_STRATEGY_UNSPECIFIED" - Unspecified. Treated as 'CREATE_NEW'. + // "IMPORT_STRATEGY_CREATE_NEW" - Create a new resource with a numeric suffix + // appended to the end of the existing display name. + // "IMPORT_STRATEGY_REPLACE" - Replace existing resource with incoming + // resource in the content to be imported. + // "IMPORT_STRATEGY_KEEP" - Keep existing resource and discard incoming + // resource in the content to be imported. + // "IMPORT_STRATEGY_MERGE" - Combine existing and incoming resources when a + // conflict is encountered. + // "IMPORT_STRATEGY_THROW_ERROR" - Throw error if a conflict is encountered. + MainPlaybookImportStrategy string `json:"mainPlaybookImportStrategy,omitempty"` + // NestedResourceImportStrategy: Optional. Specifies the import strategy used + // when resolving referenced playbook/flow conflicts. If not specified, + // 'CREATE_NEW' is assumed. + // + // Possible values: + // "IMPORT_STRATEGY_UNSPECIFIED" - Unspecified. Treated as 'CREATE_NEW'. + // "IMPORT_STRATEGY_CREATE_NEW" - Create a new resource with a numeric suffix + // appended to the end of the existing display name. + // "IMPORT_STRATEGY_REPLACE" - Replace existing resource with incoming + // resource in the content to be imported. + // "IMPORT_STRATEGY_KEEP" - Keep existing resource and discard incoming + // resource in the content to be imported. + // "IMPORT_STRATEGY_MERGE" - Combine existing and incoming resources when a + // conflict is encountered. + // "IMPORT_STRATEGY_THROW_ERROR" - Throw error if a conflict is encountered. + NestedResourceImportStrategy string `json:"nestedResourceImportStrategy,omitempty"` + // ToolImportStrategy: Optional. Specifies the import strategy used when + // resolving tool conflicts. If not specified, 'CREATE_NEW' is assumed. This + // will be applied after the main playbook and nested resource import + // strategies, meaning if the playbook that references the tool is skipped, the + // tool will also be skipped. + // + // Possible values: + // "IMPORT_STRATEGY_UNSPECIFIED" - Unspecified. Treated as 'CREATE_NEW'. + // "IMPORT_STRATEGY_CREATE_NEW" - Create a new resource with a numeric suffix + // appended to the end of the existing display name. + // "IMPORT_STRATEGY_REPLACE" - Replace existing resource with incoming + // resource in the content to be imported. + // "IMPORT_STRATEGY_KEEP" - Keep existing resource and discard incoming + // resource in the content to be imported. + // "IMPORT_STRATEGY_MERGE" - Combine existing and incoming resources when a + // conflict is encountered. + // "IMPORT_STRATEGY_THROW_ERROR" - Throw error if a conflict is encountered. + ToolImportStrategy string `json:"toolImportStrategy,omitempty"` + // ForceSendFields is a list of field names (e.g. "MainPlaybookImportStrategy") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "MainPlaybookImportStrategy") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3PlaybookImportStrategy) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3PlaybookImportStrategy + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3PlaybookInput: Input of the playbook. +type GoogleCloudDialogflowCxV3PlaybookInput struct { + // PrecedingConversationSummary: Optional. Summary string of the preceding + // conversation for the child playbook invocation. + PrecedingConversationSummary string `json:"precedingConversationSummary,omitempty"` + // ForceSendFields is a list of field names (e.g. + // "PrecedingConversationSummary") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "PrecedingConversationSummary") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3PlaybookInput) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3PlaybookInput + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3PlaybookInstruction: Message of the Instruction of +// the playbook. +type GoogleCloudDialogflowCxV3PlaybookInstruction struct { + // Guidelines: General guidelines for the playbook. These are unstructured + // instructions that are not directly part of the goal, e.g. "Always be + // polite". It's valid for this text to be long and used instead of steps + // altogether. + Guidelines string `json:"guidelines,omitempty"` + // Steps: Ordered list of step by step execution instructions to accomplish + // target goal. + Steps []*GoogleCloudDialogflowCxV3PlaybookStep `json:"steps,omitempty"` + // ForceSendFields is a list of field names (e.g. "Guidelines") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Guidelines") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3PlaybookInstruction) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3PlaybookInstruction + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3PlaybookInvocation: Stores metadata of the +// invocation of a child playbook. +type GoogleCloudDialogflowCxV3PlaybookInvocation struct { + // DisplayName: Output only. The display name of the playbook. + DisplayName string `json:"displayName,omitempty"` + // Playbook: Required. The unique identifier of the playbook. Format: + // `projects//locations//agents//playbooks/`. + Playbook string `json:"playbook,omitempty"` + // PlaybookInput: Optional. Input of the child playbook invocation. + PlaybookInput *GoogleCloudDialogflowCxV3PlaybookInput `json:"playbookInput,omitempty"` + // PlaybookOutput: Optional. Output of the child playbook invocation. + PlaybookOutput *GoogleCloudDialogflowCxV3PlaybookOutput `json:"playbookOutput,omitempty"` + // PlaybookState: Required. Playbook invocation's output state. + // + // Possible values: + // "OUTPUT_STATE_UNSPECIFIED" - Unspecified output. + // "OUTPUT_STATE_OK" - Succeeded. + // "OUTPUT_STATE_CANCELLED" - Cancelled. + // "OUTPUT_STATE_FAILED" - Failed. + // "OUTPUT_STATE_ESCALATED" - Escalated. + // "OUTPUT_STATE_PENDING" - Pending. + PlaybookState string `json:"playbookState,omitempty"` + // ForceSendFields is a list of field names (e.g. "DisplayName") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3PlaybookInvocation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3PlaybookInvocation + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3PlaybookOutput: Output of the playbook. +type GoogleCloudDialogflowCxV3PlaybookOutput struct { + // ExecutionSummary: Optional. Summary string of the execution result of the + // child playbook. + ExecutionSummary string `json:"executionSummary,omitempty"` + // ForceSendFields is a list of field names (e.g. "ExecutionSummary") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ExecutionSummary") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3PlaybookOutput) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3PlaybookOutput + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3PlaybookStep: Message of single step execution. +type GoogleCloudDialogflowCxV3PlaybookStep struct { + // Steps: Sub-processing needed to execute the current step. + Steps []*GoogleCloudDialogflowCxV3PlaybookStep `json:"steps,omitempty"` + // Text: Step instruction in text format. + Text string `json:"text,omitempty"` + // ForceSendFields is a list of field names (e.g. "Steps") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Steps") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3PlaybookStep) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3PlaybookStep + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3PlaybookVersion: Playbook version is a snapshot of +// the playbook at certain timestamp. +type GoogleCloudDialogflowCxV3PlaybookVersion struct { + // Description: Optional. The description of the playbook version. + Description string `json:"description,omitempty"` + // Examples: Output only. Snapshot of the examples belonging to the playbook + // when the playbook version is created. + Examples []*GoogleCloudDialogflowCxV3Example `json:"examples,omitempty"` + // Name: The unique identifier of the playbook version. Format: + // `projects//locations//agents//playbooks//versions/`. + Name string `json:"name,omitempty"` + // Playbook: Output only. Snapshot of the playbook when the playbook version is + // created. + Playbook *GoogleCloudDialogflowCxV3Playbook `json:"playbook,omitempty"` + // UpdateTime: Output only. Last time the playbook version was created or + // modified. + 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. "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 GoogleCloudDialogflowCxV3PlaybookVersion) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3PlaybookVersion + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3QueryInput: Represents the query input. It can // contain one of: 1. A conversational query in the form of text. 2. An intent // query that specifies which intent to trigger. 3. Natural language speech @@ -6040,6 +6775,8 @@ type GoogleCloudDialogflowCxV3QueryInput struct { LanguageCode string `json:"languageCode,omitempty"` // Text: The natural language text to be processed. Text *GoogleCloudDialogflowCxV3TextInput `json:"text,omitempty"` + // ToolCallResult: The results of a tool executed by the client. + ToolCallResult *GoogleCloudDialogflowCxV3ToolCallResult `json:"toolCallResult,omitempty"` // ForceSendFields is a list of field names (e.g. "Audio") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See @@ -6077,6 +6814,11 @@ type GoogleCloudDialogflowCxV3QueryParameters struct { // parameters. In most cases, current_page and parameters should be configured // together to direct a session to a specific state. CurrentPage string `json:"currentPage,omitempty"` + // CurrentPlaybook: Optional. The unique identifier of the playbook to start or + // continue the session with. If `current_playbook` is specified, the previous + // state of the session will be ignored by Dialogflow. Format: + // `projects//locations//agents//playbooks/`. + CurrentPlaybook string `json:"currentPlaybook,omitempty"` // DisableWebhook: Whether to disable webhook calls for this request. DisableWebhook bool `json:"disableWebhook,omitempty"` // EndUserMetadata: Optional. Information about the end-user to improve the @@ -6094,6 +6836,9 @@ type GoogleCloudDialogflowCxV3QueryParameters struct { FlowVersions []string `json:"flowVersions,omitempty"` // GeoLocation: The geo location of this conversational query. GeoLocation *GoogleTypeLatLng `json:"geoLocation,omitempty"` + // LlmModelSettings: Optional. Use the specified LLM model settings for + // processing the request. + LlmModelSettings *GoogleCloudDialogflowCxV3LlmModelSettings `json:"llmModelSettings,omitempty"` // Parameters: Additional parameters to be put into session parameters. To // remove a parameter from the session, clients should explicitly set the // parameter value to null. You can reference the session parameters in the @@ -6370,6 +7115,9 @@ type GoogleCloudDialogflowCxV3ResponseMessage struct { TelephonyTransferCall *GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall `json:"telephonyTransferCall,omitempty"` // Text: Returns a text response. Text *GoogleCloudDialogflowCxV3ResponseMessageText `json:"text,omitempty"` + // ToolCall: Returns the definition of a tool call that should be executed by + // the client. + ToolCall *GoogleCloudDialogflowCxV3ToolCall `json:"toolCall,omitempty"` // ForceSendFields is a list of field names (e.g. "Channel") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See @@ -6695,6 +7443,37 @@ func (s GoogleCloudDialogflowCxV3RestoreAgentRequestGitSource) MarshalJSON() ([] return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3RestorePlaybookVersionRequest: The request message +// for Playbooks.RestorePlaybookVersion. +type GoogleCloudDialogflowCxV3RestorePlaybookVersionRequest struct { +} + +// GoogleCloudDialogflowCxV3RestorePlaybookVersionResponse: The response +// message for Playbooks.RestorePlaybookVersion. +type GoogleCloudDialogflowCxV3RestorePlaybookVersionResponse struct { + // Playbook: The updated playbook. + Playbook *GoogleCloudDialogflowCxV3Playbook `json:"playbook,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Playbook") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Playbook") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3RestorePlaybookVersionResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3RestorePlaybookVersionResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3RolloutConfig: The configuration for auto rollout. type GoogleCloudDialogflowCxV3RolloutConfig struct { // FailureCondition: The conditions that are used to evaluate the failure of a @@ -6893,6 +7672,18 @@ func (s GoogleCloudDialogflowCxV3RunTestCaseResponse) MarshalJSON() ([]byte, err type GoogleCloudDialogflowCxV3SafetySettings struct { // BannedPhrases: Banned phrases for generated text. BannedPhrases []*GoogleCloudDialogflowCxV3SafetySettingsPhrase `json:"bannedPhrases,omitempty"` + // DefaultBannedPhraseMatchStrategy: Optional. Default phrase match strategy + // for banned phrases. + // + // Possible values: + // "PHRASE_MATCH_STRATEGY_UNSPECIFIED" - Unspecified, defaults to + // PARTIAL_MATCH. + // "PARTIAL_MATCH" - Text that contains the phrase as a substring will be + // matched, e.g. "foo" will match "afoobar". + // "WORD_MATCH" - Text that contains the tokenized words of the phrase will + // be matched, e.g. "foo" will match "a foo bar" and "foo bar", but not + // "foobar". + DefaultBannedPhraseMatchStrategy string `json:"defaultBannedPhraseMatchStrategy,omitempty"` // ForceSendFields is a list of field names (e.g. "BannedPhrases") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -7672,329 +8463,850 @@ func (s GoogleCloudDialogflowCxV3TextToSpeechSettings) MarshalJSON() ([]byte, er return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowCxV3TrainFlowRequest: The request message for -// Flows.TrainFlow. -type GoogleCloudDialogflowCxV3TrainFlowRequest struct { -} +// GoogleCloudDialogflowCxV3Tool: A tool provides a list of actions which are +// available to the Playbook to attain its goal. A Tool consists of a +// description of the tool's usage and a specification of the tool which +// contains the schema and authentication information. +type GoogleCloudDialogflowCxV3Tool struct { + // DataStoreSpec: Data store search tool specification. + DataStoreSpec *GoogleCloudDialogflowCxV3ToolDataStoreTool `json:"dataStoreSpec,omitempty"` + // Description: Required. High level description of the Tool and its usage. + Description string `json:"description,omitempty"` + // DisplayName: Required. The human-readable name of the Tool, unique within an + // agent. + DisplayName string `json:"displayName,omitempty"` + // FunctionSpec: Client side executed function specification. + FunctionSpec *GoogleCloudDialogflowCxV3ToolFunctionTool `json:"functionSpec,omitempty"` + // Name: The unique identifier of the Tool. Format: + // `projects//locations//agents//tools/`. + Name string `json:"name,omitempty"` + // OpenApiSpec: OpenAPI specification of the Tool. + OpenApiSpec *GoogleCloudDialogflowCxV3ToolOpenApiTool `json:"openApiSpec,omitempty"` + // ToolType: Output only. The tool type. + // + // Possible values: + // "TOOL_TYPE_UNSPECIFIED" - Default value. This value is unused. + // "CUSTOMIZED_TOOL" - Customer provided tool. + // "BUILTIN_TOOL" - First party built-in tool created by Dialogflow which + // cannot be modified. + ToolType string `json:"toolType,omitempty"` -// GoogleCloudDialogflowCxV3TransitionCoverage: Transition coverage represents -// the percentage of all possible page transitions (page-level transition -// routes and event handlers, excluding transition route groups) present within -// any of a parent's test cases. -type GoogleCloudDialogflowCxV3TransitionCoverage struct { - // CoverageScore: The percent of transitions in the agent that are covered. - CoverageScore float64 `json:"coverageScore,omitempty"` - // Transitions: The list of Transitions present in the agent. - Transitions []*GoogleCloudDialogflowCxV3TransitionCoverageTransition `json:"transitions,omitempty"` - // ForceSendFields is a list of field names (e.g. "CoverageScore") to + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "DataStoreSpec") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CoverageScore") to include in API + // NullFields is a list of field names (e.g. "DataStoreSpec") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s GoogleCloudDialogflowCxV3TransitionCoverage) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDialogflowCxV3TransitionCoverage +func (s GoogleCloudDialogflowCxV3Tool) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3Tool return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -func (s *GoogleCloudDialogflowCxV3TransitionCoverage) UnmarshalJSON(data []byte) error { - type NoMethod GoogleCloudDialogflowCxV3TransitionCoverage - var s1 struct { - CoverageScore gensupport.JSONFloat64 `json:"coverageScore"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.CoverageScore = float64(s1.CoverageScore) - return nil -} - -// GoogleCloudDialogflowCxV3TransitionCoverageTransition: A transition in a -// page. -type GoogleCloudDialogflowCxV3TransitionCoverageTransition struct { - // Covered: Whether the transition is covered by at least one of the agent's - // test cases. - Covered bool `json:"covered,omitempty"` - // EventHandler: Event handler. - EventHandler *GoogleCloudDialogflowCxV3EventHandler `json:"eventHandler,omitempty"` - // Index: The index of a transition in the transition list. Starting from 0. - Index int64 `json:"index,omitempty"` - // Source: The start node of a transition. - Source *GoogleCloudDialogflowCxV3TransitionCoverageTransitionNode `json:"source,omitempty"` - // Target: The end node of a transition. - Target *GoogleCloudDialogflowCxV3TransitionCoverageTransitionNode `json:"target,omitempty"` - // TransitionRoute: Intent route or condition route. - TransitionRoute *GoogleCloudDialogflowCxV3TransitionRoute `json:"transitionRoute,omitempty"` - // ForceSendFields is a list of field names (e.g. "Covered") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See +// GoogleCloudDialogflowCxV3ToolAuthentication: Authentication information +// required for API calls +type GoogleCloudDialogflowCxV3ToolAuthentication struct { + // ApiKeyConfig: Config for API key auth. + ApiKeyConfig *GoogleCloudDialogflowCxV3ToolAuthenticationApiKeyConfig `json:"apiKeyConfig,omitempty"` + // BearerTokenConfig: Config for bearer token auth. + BearerTokenConfig *GoogleCloudDialogflowCxV3ToolAuthenticationBearerTokenConfig `json:"bearerTokenConfig,omitempty"` + // OauthConfig: Config for OAuth. + OauthConfig *GoogleCloudDialogflowCxV3ToolAuthenticationOAuthConfig `json:"oauthConfig,omitempty"` + // ServiceAgentAuthConfig: Config for Diglogflow service agent + // (https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent) + // auth. + ServiceAgentAuthConfig *GoogleCloudDialogflowCxV3ToolAuthenticationServiceAgentAuthConfig `json:"serviceAgentAuthConfig,omitempty"` + // ForceSendFields is a list of field names (e.g. "ApiKeyConfig") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Covered") to include in API + // NullFields is a list of field names (e.g. "ApiKeyConfig") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s GoogleCloudDialogflowCxV3TransitionCoverageTransition) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDialogflowCxV3TransitionCoverageTransition +func (s GoogleCloudDialogflowCxV3ToolAuthentication) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3ToolAuthentication return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowCxV3TransitionCoverageTransitionNode: The source or -// target of a transition. -type GoogleCloudDialogflowCxV3TransitionCoverageTransitionNode struct { - // Flow: Indicates a transition to a Flow. Only some fields such as name and - // displayname will be set. - Flow *GoogleCloudDialogflowCxV3Flow `json:"flow,omitempty"` - // Page: Indicates a transition to a Page. Only some fields such as name and - // displayname will be set. - Page *GoogleCloudDialogflowCxV3Page `json:"page,omitempty"` - // ForceSendFields is a list of field names (e.g. "Flow") to unconditionally +// GoogleCloudDialogflowCxV3ToolAuthenticationApiKeyConfig: Config for +// authentication with API key. +type GoogleCloudDialogflowCxV3ToolAuthenticationApiKeyConfig struct { + // ApiKey: Optional. The API key. If the `secret_version_for_api_key` field is + // set, this field will be ignored. + ApiKey string `json:"apiKey,omitempty"` + // KeyName: Required. The parameter name or the header name of the API key. + // E.g., If the API request is "https://example.com/act?X-Api-Key=", + // "X-Api-Key" would be the parameter name. + KeyName string `json:"keyName,omitempty"` + // RequestLocation: Required. Key location in the request. + // + // Possible values: + // "REQUEST_LOCATION_UNSPECIFIED" - Default value. This value is unused. + // "HEADER" - Represents the key in http header. + // "QUERY_STRING" - Represents the key in query string. + RequestLocation string `json:"requestLocation,omitempty"` + // SecretVersionForApiKey: Optional. The name of the SecretManager secret + // version resource storing the API key. If this field is set, the `api_key` + // field will be ignored. Format: + // `projects/{project}/secrets/{secret}/versions/{version}` + SecretVersionForApiKey string `json:"secretVersionForApiKey,omitempty"` + // ForceSendFields is a list of field names (e.g. "ApiKey") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Flow") to include in API requests - // with the JSON null value. By default, fields with empty values are omitted - // from API requests. See + // NullFields is a list of field names (e.g. "ApiKey") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s GoogleCloudDialogflowCxV3TransitionCoverageTransitionNode) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDialogflowCxV3TransitionCoverageTransitionNode +func (s GoogleCloudDialogflowCxV3ToolAuthenticationApiKeyConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3ToolAuthenticationApiKeyConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowCxV3TransitionRoute: A transition route specifies a -// intent that can be matched and/or a data condition that can be evaluated -// during a session. When a specified transition is matched, the following -// actions are taken in order: * If there is a `trigger_fulfillment` associated -// with the transition, it will be called. * If there is a `target_page` -// associated with the transition, the session will transition into the -// specified page. * If there is a `target_flow` associated with the -// transition, the session will transition into the specified flow. -type GoogleCloudDialogflowCxV3TransitionRoute struct { - // Condition: The condition to evaluate against form parameters or session - // parameters. See the conditions reference - // (https://cloud.google.com/dialogflow/cx/docs/reference/condition). At least - // one of `intent` or `condition` must be specified. When both `intent` and - // `condition` are specified, the transition can only happen when both are - // fulfilled. - Condition string `json:"condition,omitempty"` - // Description: Optional. The description of the transition route. The maximum - // length is 500 characters. - Description string `json:"description,omitempty"` - // Intent: The unique identifier of an Intent. Format: - // `projects//locations//agents//intents/`. Indicates that the transition can - // only happen when the given intent is matched. At least one of `intent` or - // `condition` must be specified. When both `intent` and `condition` are - // specified, the transition can only happen when both are fulfilled. - Intent string `json:"intent,omitempty"` - // Name: Output only. The unique identifier of this transition route. - Name string `json:"name,omitempty"` - // TargetFlow: The target flow to transition to. Format: - // `projects//locations//agents//flows/`. - TargetFlow string `json:"targetFlow,omitempty"` - // TargetPage: The target page to transition to. Format: - // `projects//locations//agents//flows//pages/`. - TargetPage string `json:"targetPage,omitempty"` - // TriggerFulfillment: The fulfillment to call when the condition is satisfied. - // At least one of `trigger_fulfillment` and `target` must be specified. When - // both are defined, `trigger_fulfillment` is executed first. - TriggerFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"triggerFulfillment,omitempty"` - // ForceSendFields is a list of field names (e.g. "Condition") to +// GoogleCloudDialogflowCxV3ToolAuthenticationBearerTokenConfig: Config for +// authentication using bearer token. +type GoogleCloudDialogflowCxV3ToolAuthenticationBearerTokenConfig struct { + // SecretVersionForToken: Optional. The name of the SecretManager secret + // version resource storing the Bearer token. If this field is set, the `token` + // field will be ignored. Format: + // `projects/{project}/secrets/{secret}/versions/{version}` + SecretVersionForToken string `json:"secretVersionForToken,omitempty"` + // Token: Optional. The text token appended to the text `Bearer` to the request + // Authorization header. Session parameters reference + // (https://cloud.google.com/dialogflow/cx/docs/concept/parameter#session-ref) + // can be used to pass the token dynamically, e.g. + // `$session.params.parameter-id`. + Token string `json:"token,omitempty"` + // ForceSendFields is a list of field names (e.g. "SecretVersionForToken") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://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 + // NullFields is a list of field names (e.g. "SecretVersionForToken") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s GoogleCloudDialogflowCxV3TransitionRoute) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDialogflowCxV3TransitionRoute +func (s GoogleCloudDialogflowCxV3ToolAuthenticationBearerTokenConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3ToolAuthenticationBearerTokenConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowCxV3TransitionRouteGroup: A TransitionRouteGroup -// represents a group of `TransitionRoutes` to be used by a Page. -type GoogleCloudDialogflowCxV3TransitionRouteGroup struct { - // DisplayName: Required. The human-readable name of the transition route - // group, unique within the flow. The display name can be no longer than 30 - // characters. - DisplayName string `json:"displayName,omitempty"` - // Name: The unique identifier of the transition route group. - // TransitionRouteGroups.CreateTransitionRouteGroup populates the name - // automatically. Format: - // `projects//locations//agents//flows//transitionRouteGroups/` . - Name string `json:"name,omitempty"` - // TransitionRoutes: Transition routes associated with the - // TransitionRouteGroup. - TransitionRoutes []*GoogleCloudDialogflowCxV3TransitionRoute `json:"transitionRoutes,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to +// GoogleCloudDialogflowCxV3ToolAuthenticationOAuthConfig: Config for +// authentication with OAuth. +type GoogleCloudDialogflowCxV3ToolAuthenticationOAuthConfig struct { + // ClientId: Required. The client ID from the OAuth provider. + ClientId string `json:"clientId,omitempty"` + // ClientSecret: Optional. The client secret from the OAuth provider. If the + // `secret_version_for_client_secret` field is set, this field will be ignored. + ClientSecret string `json:"clientSecret,omitempty"` + // OauthGrantType: Required. OAuth grant types. + // + // Possible values: + // "OAUTH_GRANT_TYPE_UNSPECIFIED" - Default value. This value is unused. + // "CLIENT_CREDENTIAL" - Represents the [client credential + // flow](https://oauth.net/2/grant-types/client-credentials). + OauthGrantType string `json:"oauthGrantType,omitempty"` + // Scopes: Optional. The OAuth scopes to grant. + Scopes []string `json:"scopes,omitempty"` + // SecretVersionForClientSecret: Optional. The name of the SecretManager secret + // version resource storing the client secret. If this field is set, the + // `client_secret` field will be ignored. Format: + // `projects/{project}/secrets/{secret}/versions/{version}` + SecretVersionForClientSecret string `json:"secretVersionForClientSecret,omitempty"` + // TokenEndpoint: Required. The token endpoint in the OAuth provider to + // exchange for an access token. + TokenEndpoint string `json:"tokenEndpoint,omitempty"` + // ForceSendFields is a list of field names (e.g. "ClientId") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DisplayName") to include in API + // NullFields is a list of field names (e.g. "ClientId") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s GoogleCloudDialogflowCxV3TransitionRouteGroup) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDialogflowCxV3TransitionRouteGroup +func (s GoogleCloudDialogflowCxV3ToolAuthenticationOAuthConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3ToolAuthenticationOAuthConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowCxV3TransitionRouteGroupCoverage: Transition route -// group coverage represents the percentage of all possible transition routes -// present within any of a parent's test cases. The results are grouped by the -// transition route group. -type GoogleCloudDialogflowCxV3TransitionRouteGroupCoverage struct { - // CoverageScore: The percent of transition routes in all the transition route - // groups that are covered. - CoverageScore float64 `json:"coverageScore,omitempty"` - // Coverages: Transition route group coverages. - Coverages []*GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage `json:"coverages,omitempty"` - // ForceSendFields is a list of field names (e.g. "CoverageScore") to +// GoogleCloudDialogflowCxV3ToolAuthenticationServiceAgentAuthConfig: Config +// for auth using Diglogflow service agent +// (https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent). +type GoogleCloudDialogflowCxV3ToolAuthenticationServiceAgentAuthConfig struct { + // ServiceAgentAuth: Optional. Indicate the auth token type generated from the + // Diglogflow service agent + // (https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent). + // The generated token is sent in the Authorization header. + // + // Possible values: + // "SERVICE_AGENT_AUTH_UNSPECIFIED" - Service agent auth type unspecified. + // Default to ID_TOKEN. + // "ID_TOKEN" - Use [ID + // token](https://cloud.google.com/docs/authentication/token-types#id) + // generated from service agent. This can be used to access Cloud Function and + // Cloud Run after you grant Invoker role to + // `service-@gcp-sa-dialogflow.iam.gserviceaccount.com`. + // "ACCESS_TOKEN" - Use [access + // token](https://cloud.google.com/docs/authentication/token-types#access) + // generated from service agent. This can be used to access other Google Cloud + // APIs after you grant required roles to + // `service-@gcp-sa-dialogflow.iam.gserviceaccount.com`. + ServiceAgentAuth string `json:"serviceAgentAuth,omitempty"` + // ForceSendFields is a list of field names (e.g. "ServiceAgentAuth") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CoverageScore") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "ServiceAgentAuth") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s GoogleCloudDialogflowCxV3TransitionRouteGroupCoverage) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDialogflowCxV3TransitionRouteGroupCoverage +func (s GoogleCloudDialogflowCxV3ToolAuthenticationServiceAgentAuthConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3ToolAuthenticationServiceAgentAuthConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -func (s *GoogleCloudDialogflowCxV3TransitionRouteGroupCoverage) UnmarshalJSON(data []byte) error { - type NoMethod GoogleCloudDialogflowCxV3TransitionRouteGroupCoverage - var s1 struct { - CoverageScore gensupport.JSONFloat64 `json:"coverageScore"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.CoverageScore = float64(s1.CoverageScore) - return nil -} - -// GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage: Coverage -// result message for one transition route group. -type GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage struct { - // CoverageScore: The percent of transition routes in the transition route - // group that are covered. - CoverageScore float64 `json:"coverageScore,omitempty"` - // RouteGroup: Transition route group metadata. Only name and displayName will - // be set. - RouteGroup *GoogleCloudDialogflowCxV3TransitionRouteGroup `json:"routeGroup,omitempty"` - // Transitions: The list of transition routes and coverage in the transition - // route group. - Transitions []*GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition `json:"transitions,omitempty"` - // ForceSendFields is a list of field names (e.g. "CoverageScore") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See +// GoogleCloudDialogflowCxV3ToolCall: Represents a call of a specific tool's +// action with the specified inputs. +type GoogleCloudDialogflowCxV3ToolCall struct { + // Action: Required. The name of the tool's action associated with this call. + Action string `json:"action,omitempty"` + // InputParameters: Optional. The action's input parameters. + InputParameters googleapi.RawMessage `json:"inputParameters,omitempty"` + // Tool: Required. The tool associated with this call. Format: + // `projects//locations//agents//tools/`. + Tool string `json:"tool,omitempty"` + // ForceSendFields is a list of field names (e.g. "Action") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CoverageScore") to include in API + // NullFields is a list of field names (e.g. "Action") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage +func (s GoogleCloudDialogflowCxV3ToolCall) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3ToolCall return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -func (s *GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage) UnmarshalJSON(data []byte) error { - type NoMethod GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage - var s1 struct { - CoverageScore gensupport.JSONFloat64 `json:"coverageScore"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.CoverageScore = float64(s1.CoverageScore) - return nil +// GoogleCloudDialogflowCxV3ToolCallResult: The result of calling a tool's +// action that has been executed by the client. +type GoogleCloudDialogflowCxV3ToolCallResult struct { + // Action: Required. The name of the tool's action associated with this call. + Action string `json:"action,omitempty"` + // Error: The tool call's error. + Error *GoogleCloudDialogflowCxV3ToolCallResultError `json:"error,omitempty"` + // OutputParameters: The tool call's output parameters. + OutputParameters googleapi.RawMessage `json:"outputParameters,omitempty"` + // Tool: Required. The tool associated with this call. Format: + // `projects//locations//agents//tools/`. + Tool string `json:"tool,omitempty"` + // ForceSendFields is a list of field names (e.g. "Action") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Action") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` } -// GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition: A -// transition coverage in a transition route group. -type GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition struct { - // Covered: Whether the transition route is covered by at least one of the - // agent's test cases. - Covered bool `json:"covered,omitempty"` - // TransitionRoute: Intent route or condition route. - TransitionRoute *GoogleCloudDialogflowCxV3TransitionRoute `json:"transitionRoute,omitempty"` - // ForceSendFields is a list of field names (e.g. "Covered") to unconditionally +func (s GoogleCloudDialogflowCxV3ToolCallResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3ToolCallResult + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3ToolCallResultError: An error produced by the tool +// call. +type GoogleCloudDialogflowCxV3ToolCallResultError struct { + // Message: Optional. The error message of the function. + Message string `json:"message,omitempty"` + // ForceSendFields is a list of field names (e.g. "Message") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Covered") to include in API + // NullFields is a list of field names (e.g. "Message") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition +func (s GoogleCloudDialogflowCxV3ToolCallResultError) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3ToolCallResultError return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowCxV3TurnSignals: Collection of all signals that were -// extracted for a single turn of the conversation. -type GoogleCloudDialogflowCxV3TurnSignals struct { - // AgentEscalated: Whether agent responded with LiveAgentHandoff fulfillment. - AgentEscalated bool `json:"agentEscalated,omitempty"` - // DtmfUsed: Whether user was using DTMF input. - DtmfUsed bool `json:"dtmfUsed,omitempty"` - // FailureReasons: Failure reasons of the turn. - // - // Possible values: - // "FAILURE_REASON_UNSPECIFIED" - Failure reason is not assigned. - // "FAILED_INTENT" - Whether NLU failed to recognize user intent. - // "FAILED_WEBHOOK" - Whether webhook failed during the turn. +// GoogleCloudDialogflowCxV3ToolDataStoreTool: A DataStoreTool is a way to +// provide specifications needed to search a list of data stores. +type GoogleCloudDialogflowCxV3ToolDataStoreTool struct { + // DataStoreConnections: Required. List of data stores to search. + DataStoreConnections []*GoogleCloudDialogflowCxV3DataStoreConnection `json:"dataStoreConnections,omitempty"` + // FallbackPrompt: Required. Fallback prompt configurations to use. + FallbackPrompt *GoogleCloudDialogflowCxV3ToolDataStoreToolFallbackPrompt `json:"fallbackPrompt,omitempty"` + // ForceSendFields is a list of field names (e.g. "DataStoreConnections") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DataStoreConnections") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3ToolDataStoreTool) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3ToolDataStoreTool + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3ToolDataStoreToolFallbackPrompt: A FallbackPrompt +// is a way to provide specifications for the Data Store fallback prompt when +// generating responses. +type GoogleCloudDialogflowCxV3ToolDataStoreToolFallbackPrompt struct { +} + +// GoogleCloudDialogflowCxV3ToolFunctionTool: A Function tool describes the +// functions to be invoked on the client side. +type GoogleCloudDialogflowCxV3ToolFunctionTool struct { + // InputSchema: Optional. The JSON schema is encapsulated in a + // google.protobuf.Struct to describe the input of the function. This input is + // a JSON object that contains the function's parameters as properties of the + // object. + InputSchema googleapi.RawMessage `json:"inputSchema,omitempty"` + // OutputSchema: Optional. The JSON schema is encapsulated in a + // google.protobuf.Struct to describe the output of the function. This output + // is a JSON object that contains the function's parameters as properties of + // the object. + OutputSchema googleapi.RawMessage `json:"outputSchema,omitempty"` + // ForceSendFields is a list of field names (e.g. "InputSchema") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "InputSchema") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3ToolFunctionTool) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3ToolFunctionTool + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3ToolOpenApiTool: An OpenAPI tool is a way to +// provide the Tool specifications in the Open API schema format. +type GoogleCloudDialogflowCxV3ToolOpenApiTool struct { + // Authentication: Optional. Authentication information required by the API. + Authentication *GoogleCloudDialogflowCxV3ToolAuthentication `json:"authentication,omitempty"` + // ServiceDirectoryConfig: Optional. Service Directory configuration. + ServiceDirectoryConfig *GoogleCloudDialogflowCxV3ToolServiceDirectoryConfig `json:"serviceDirectoryConfig,omitempty"` + // TextSchema: Required. The OpenAPI schema specified as a text. + TextSchema string `json:"textSchema,omitempty"` + // TlsConfig: Optional. TLS configuration for the HTTPS verification. + TlsConfig *GoogleCloudDialogflowCxV3ToolTLSConfig `json:"tlsConfig,omitempty"` + // ForceSendFields is a list of field names (e.g. "Authentication") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Authentication") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3ToolOpenApiTool) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3ToolOpenApiTool + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3ToolServiceDirectoryConfig: Configuration for tools +// using Service Directory. +type GoogleCloudDialogflowCxV3ToolServiceDirectoryConfig struct { + // Service: Required. The name of Service Directory + // (https://cloud.google.com/service-directory) service. Format: + // `projects//locations//namespaces//services/`. `LocationID` of the service + // directory must be the same as the location of the agent. + Service string `json:"service,omitempty"` + // ForceSendFields is a list of field names (e.g. "Service") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Service") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3ToolServiceDirectoryConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3ToolServiceDirectoryConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3ToolTLSConfig: The TLS configuration. +type GoogleCloudDialogflowCxV3ToolTLSConfig struct { + // CaCerts: Required. Specifies a list of allowed custom CA certificates for + // HTTPS verification. + CaCerts []*GoogleCloudDialogflowCxV3ToolTLSConfigCACert `json:"caCerts,omitempty"` + // ForceSendFields is a list of field names (e.g. "CaCerts") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CaCerts") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3ToolTLSConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3ToolTLSConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3ToolTLSConfigCACert: The CA certificate. +type GoogleCloudDialogflowCxV3ToolTLSConfigCACert struct { + // Cert: Required. The allowed custom CA certificates (in DER format) for HTTPS + // verification. This overrides the default SSL trust store. If this is empty + // or unspecified, Dialogflow will use Google's default trust store to verify + // certificates. N.B. Make sure the HTTPS server certificates are signed with + // "subject alt name". For instance a certificate can be self-signed using the + // following command: ``` openssl x509 -req -days 200 -in example.com.csr \ + // -signkey example.com.key \ -out example.com.crt \ -extfile <(printf + // "\nsubjectAltName='DNS:www.example.com'") ``` + Cert string `json:"cert,omitempty"` + // DisplayName: Required. The name of the allowed custom CA certificates. This + // can be used to disambiguate the custom CA certificates. + DisplayName string `json:"displayName,omitempty"` + // ForceSendFields is a list of field names (e.g. "Cert") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Cert") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3ToolTLSConfigCACert) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3ToolTLSConfigCACert + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3ToolUse: Stores metadata of the invocation of an +// action supported by a tool. +type GoogleCloudDialogflowCxV3ToolUse struct { + // Action: Optional. Name of the action to be called during the tool use. + Action string `json:"action,omitempty"` + // DisplayName: Output only. The display name of the tool. + DisplayName string `json:"displayName,omitempty"` + // InputActionParameters: Optional. A list of input parameters for the action. + InputActionParameters googleapi.RawMessage `json:"inputActionParameters,omitempty"` + // OutputActionParameters: Optional. A list of output parameters generated by + // the action. + OutputActionParameters googleapi.RawMessage `json:"outputActionParameters,omitempty"` + // Tool: Required. The tool that should be used. Format: + // `projects//locations//agents//tools/`. + Tool string `json:"tool,omitempty"` + // ForceSendFields is a list of field names (e.g. "Action") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Action") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3ToolUse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3ToolUse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3TrainFlowRequest: The request message for +// Flows.TrainFlow. +type GoogleCloudDialogflowCxV3TrainFlowRequest struct { +} + +// GoogleCloudDialogflowCxV3TransitionCoverage: Transition coverage represents +// the percentage of all possible page transitions (page-level transition +// routes and event handlers, excluding transition route groups) present within +// any of a parent's test cases. +type GoogleCloudDialogflowCxV3TransitionCoverage struct { + // CoverageScore: The percent of transitions in the agent that are covered. + CoverageScore float64 `json:"coverageScore,omitempty"` + // Transitions: The list of Transitions present in the agent. + Transitions []*GoogleCloudDialogflowCxV3TransitionCoverageTransition `json:"transitions,omitempty"` + // ForceSendFields is a list of field names (e.g. "CoverageScore") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CoverageScore") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3TransitionCoverage) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3TransitionCoverage + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudDialogflowCxV3TransitionCoverage) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDialogflowCxV3TransitionCoverage + var s1 struct { + CoverageScore gensupport.JSONFloat64 `json:"coverageScore"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.CoverageScore = float64(s1.CoverageScore) + return nil +} + +// GoogleCloudDialogflowCxV3TransitionCoverageTransition: A transition in a +// page. +type GoogleCloudDialogflowCxV3TransitionCoverageTransition struct { + // Covered: Whether the transition is covered by at least one of the agent's + // test cases. + Covered bool `json:"covered,omitempty"` + // EventHandler: Event handler. + EventHandler *GoogleCloudDialogflowCxV3EventHandler `json:"eventHandler,omitempty"` + // Index: The index of a transition in the transition list. Starting from 0. + Index int64 `json:"index,omitempty"` + // Source: The start node of a transition. + Source *GoogleCloudDialogflowCxV3TransitionCoverageTransitionNode `json:"source,omitempty"` + // Target: The end node of a transition. + Target *GoogleCloudDialogflowCxV3TransitionCoverageTransitionNode `json:"target,omitempty"` + // TransitionRoute: Intent route or condition route. + TransitionRoute *GoogleCloudDialogflowCxV3TransitionRoute `json:"transitionRoute,omitempty"` + // ForceSendFields is a list of field names (e.g. "Covered") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Covered") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3TransitionCoverageTransition) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3TransitionCoverageTransition + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3TransitionCoverageTransitionNode: The source or +// target of a transition. +type GoogleCloudDialogflowCxV3TransitionCoverageTransitionNode struct { + // Flow: Indicates a transition to a Flow. Only some fields such as name and + // displayname will be set. + Flow *GoogleCloudDialogflowCxV3Flow `json:"flow,omitempty"` + // Page: Indicates a transition to a Page. Only some fields such as name and + // displayname will be set. + Page *GoogleCloudDialogflowCxV3Page `json:"page,omitempty"` + // ForceSendFields is a list of field names (e.g. "Flow") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Flow") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3TransitionCoverageTransitionNode) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3TransitionCoverageTransitionNode + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3TransitionRoute: A transition route specifies a +// intent that can be matched and/or a data condition that can be evaluated +// during a session. When a specified transition is matched, the following +// actions are taken in order: * If there is a `trigger_fulfillment` associated +// with the transition, it will be called. * If there is a `target_page` +// associated with the transition, the session will transition into the +// specified page. * If there is a `target_flow` associated with the +// transition, the session will transition into the specified flow. +type GoogleCloudDialogflowCxV3TransitionRoute struct { + // Condition: The condition to evaluate against form parameters or session + // parameters. See the conditions reference + // (https://cloud.google.com/dialogflow/cx/docs/reference/condition). At least + // one of `intent` or `condition` must be specified. When both `intent` and + // `condition` are specified, the transition can only happen when both are + // fulfilled. + Condition string `json:"condition,omitempty"` + // Description: Optional. The description of the transition route. The maximum + // length is 500 characters. + Description string `json:"description,omitempty"` + // Intent: The unique identifier of an Intent. Format: + // `projects//locations//agents//intents/`. Indicates that the transition can + // only happen when the given intent is matched. At least one of `intent` or + // `condition` must be specified. When both `intent` and `condition` are + // specified, the transition can only happen when both are fulfilled. + Intent string `json:"intent,omitempty"` + // Name: Output only. The unique identifier of this transition route. + Name string `json:"name,omitempty"` + // TargetFlow: The target flow to transition to. Format: + // `projects//locations//agents//flows/`. + TargetFlow string `json:"targetFlow,omitempty"` + // TargetPage: The target page to transition to. Format: + // `projects//locations//agents//flows//pages/`. + TargetPage string `json:"targetPage,omitempty"` + // TriggerFulfillment: The fulfillment to call when the condition is satisfied. + // At least one of `trigger_fulfillment` and `target` must be specified. When + // both are defined, `trigger_fulfillment` is executed first. + TriggerFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"triggerFulfillment,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 GoogleCloudDialogflowCxV3TransitionRoute) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3TransitionRoute + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3TransitionRouteGroup: A TransitionRouteGroup +// represents a group of `TransitionRoutes` to be used by a Page. +type GoogleCloudDialogflowCxV3TransitionRouteGroup struct { + // DisplayName: Required. The human-readable name of the transition route + // group, unique within the flow. The display name can be no longer than 30 + // characters. + DisplayName string `json:"displayName,omitempty"` + // Name: The unique identifier of the transition route group. + // TransitionRouteGroups.CreateTransitionRouteGroup populates the name + // automatically. Format: + // `projects//locations//agents//flows//transitionRouteGroups/` . + Name string `json:"name,omitempty"` + // TransitionRoutes: Transition routes associated with the + // TransitionRouteGroup. + TransitionRoutes []*GoogleCloudDialogflowCxV3TransitionRoute `json:"transitionRoutes,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "DisplayName") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3TransitionRouteGroup) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3TransitionRouteGroup + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3TransitionRouteGroupCoverage: Transition route +// group coverage represents the percentage of all possible transition routes +// present within any of a parent's test cases. The results are grouped by the +// transition route group. +type GoogleCloudDialogflowCxV3TransitionRouteGroupCoverage struct { + // CoverageScore: The percent of transition routes in all the transition route + // groups that are covered. + CoverageScore float64 `json:"coverageScore,omitempty"` + // Coverages: Transition route group coverages. + Coverages []*GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage `json:"coverages,omitempty"` + // ForceSendFields is a list of field names (e.g. "CoverageScore") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CoverageScore") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3TransitionRouteGroupCoverage) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3TransitionRouteGroupCoverage + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudDialogflowCxV3TransitionRouteGroupCoverage) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDialogflowCxV3TransitionRouteGroupCoverage + var s1 struct { + CoverageScore gensupport.JSONFloat64 `json:"coverageScore"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.CoverageScore = float64(s1.CoverageScore) + return nil +} + +// GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage: Coverage +// result message for one transition route group. +type GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage struct { + // CoverageScore: The percent of transition routes in the transition route + // group that are covered. + CoverageScore float64 `json:"coverageScore,omitempty"` + // RouteGroup: Transition route group metadata. Only name and displayName will + // be set. + RouteGroup *GoogleCloudDialogflowCxV3TransitionRouteGroup `json:"routeGroup,omitempty"` + // Transitions: The list of transition routes and coverage in the transition + // route group. + Transitions []*GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition `json:"transitions,omitempty"` + // ForceSendFields is a list of field names (e.g. "CoverageScore") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CoverageScore") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage + var s1 struct { + CoverageScore gensupport.JSONFloat64 `json:"coverageScore"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.CoverageScore = float64(s1.CoverageScore) + return nil +} + +// GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition: A +// transition coverage in a transition route group. +type GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition struct { + // Covered: Whether the transition route is covered by at least one of the + // agent's test cases. + Covered bool `json:"covered,omitempty"` + // TransitionRoute: Intent route or condition route. + TransitionRoute *GoogleCloudDialogflowCxV3TransitionRoute `json:"transitionRoute,omitempty"` + // ForceSendFields is a list of field names (e.g. "Covered") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Covered") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3TurnSignals: Collection of all signals that were +// extracted for a single turn of the conversation. +type GoogleCloudDialogflowCxV3TurnSignals struct { + // AgentEscalated: Whether agent responded with LiveAgentHandoff fulfillment. + AgentEscalated bool `json:"agentEscalated,omitempty"` + // DtmfUsed: Whether user was using DTMF input. + DtmfUsed bool `json:"dtmfUsed,omitempty"` + // FailureReasons: Failure reasons of the turn. + // + // Possible values: + // "FAILURE_REASON_UNSPECIFIED" - Failure reason is not assigned. + // "FAILED_INTENT" - Whether NLU failed to recognize user intent. + // "FAILED_WEBHOOK" - Whether webhook failed during the turn. FailureReasons []string `json:"failureReasons,omitempty"` // NoMatch: Whether NLU predicted NO_MATCH. NoMatch bool `json:"noMatch,omitempty"` @@ -8047,6 +9359,29 @@ func (s *GoogleCloudDialogflowCxV3TurnSignals) UnmarshalJSON(data []byte) error return nil } +// GoogleCloudDialogflowCxV3UserUtterance: UserUtterance represents one message +// sent by the customer. +type GoogleCloudDialogflowCxV3UserUtterance struct { + // Text: Required. Message content in text. + Text string `json:"text,omitempty"` + // ForceSendFields is a list of field names (e.g. "Text") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Text") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3UserUtterance) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3UserUtterance + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3ValidateAgentRequest: The request message for // Agents.ValidateAgent. type GoogleCloudDialogflowCxV3ValidateAgentRequest struct { @@ -30796,6 +32131,1941 @@ func (c *ProjectsLocationsAgentsIntentsPatchCall) Do(opts ...googleapi.CallOptio return ret, nil } +type ProjectsLocationsAgentsPlaybooksCreateCall struct { + s *Service + parent string + googleclouddialogflowcxv3playbook *GoogleCloudDialogflowCxV3Playbook + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a playbook in a specified agent. +// +// - parent: The agent to create a playbook for. Format: +// `projects//locations//agents/`. +func (r *ProjectsLocationsAgentsPlaybooksService) Create(parent string, googleclouddialogflowcxv3playbook *GoogleCloudDialogflowCxV3Playbook) *ProjectsLocationsAgentsPlaybooksCreateCall { + c := &ProjectsLocationsAgentsPlaybooksCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleclouddialogflowcxv3playbook = googleclouddialogflowcxv3playbook + 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 *ProjectsLocationsAgentsPlaybooksCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsPlaybooksCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAgentsPlaybooksCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsPlaybooksCreateCall { + 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 *ProjectsLocationsAgentsPlaybooksCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAgentsPlaybooksCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googleclouddialogflowcxv3playbook) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/playbooks") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.playbooks.create", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dialogflow.projects.locations.agents.playbooks.create" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudDialogflowCxV3Playbook.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 *ProjectsLocationsAgentsPlaybooksCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3Playbook, 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 := &GoogleCloudDialogflowCxV3Playbook{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.playbooks.create", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsAgentsPlaybooksDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a specified playbook. +// +// - name: The name of the playbook to delete. Format: +// `projects//locations//agents//playbooks/`. +func (r *ProjectsLocationsAgentsPlaybooksService) Delete(name string) *ProjectsLocationsAgentsPlaybooksDeleteCall { + c := &ProjectsLocationsAgentsPlaybooksDeleteCall{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 *ProjectsLocationsAgentsPlaybooksDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsPlaybooksDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAgentsPlaybooksDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsPlaybooksDeleteCall { + 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 *ProjectsLocationsAgentsPlaybooksDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAgentsPlaybooksDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.playbooks.delete", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dialogflow.projects.locations.agents.playbooks.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 *ProjectsLocationsAgentsPlaybooksDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.playbooks.delete", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsAgentsPlaybooksExportCall struct { + s *Service + name string + googleclouddialogflowcxv3exportplaybookrequest *GoogleCloudDialogflowCxV3ExportPlaybookRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Export: Exports the specified playbook to a binary file. Note that resources +// (e.g. examples, tools) that the playbook references will also be exported. +// +// - name: The name of the playbook to export. Format: +// `projects//locations//agents//playbooks/`. +func (r *ProjectsLocationsAgentsPlaybooksService) Export(name string, googleclouddialogflowcxv3exportplaybookrequest *GoogleCloudDialogflowCxV3ExportPlaybookRequest) *ProjectsLocationsAgentsPlaybooksExportCall { + c := &ProjectsLocationsAgentsPlaybooksExportCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googleclouddialogflowcxv3exportplaybookrequest = googleclouddialogflowcxv3exportplaybookrequest + 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 *ProjectsLocationsAgentsPlaybooksExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsPlaybooksExportCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAgentsPlaybooksExportCall) Context(ctx context.Context) *ProjectsLocationsAgentsPlaybooksExportCall { + 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 *ProjectsLocationsAgentsPlaybooksExportCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAgentsPlaybooksExportCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googleclouddialogflowcxv3exportplaybookrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}:export") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.playbooks.export", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dialogflow.projects.locations.agents.playbooks.export" 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 *ProjectsLocationsAgentsPlaybooksExportCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.playbooks.export", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsAgentsPlaybooksGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Retrieves the specified Playbook. +// +// - name: The name of the playbook. Format: +// `projects//locations//agents//playbooks/`. +func (r *ProjectsLocationsAgentsPlaybooksService) Get(name string) *ProjectsLocationsAgentsPlaybooksGetCall { + c := &ProjectsLocationsAgentsPlaybooksGetCall{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 *ProjectsLocationsAgentsPlaybooksGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsPlaybooksGetCall { + 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 *ProjectsLocationsAgentsPlaybooksGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsPlaybooksGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAgentsPlaybooksGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsPlaybooksGetCall { + 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 *ProjectsLocationsAgentsPlaybooksGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAgentsPlaybooksGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.playbooks.get", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dialogflow.projects.locations.agents.playbooks.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudDialogflowCxV3Playbook.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 *ProjectsLocationsAgentsPlaybooksGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3Playbook, 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 := &GoogleCloudDialogflowCxV3Playbook{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.playbooks.get", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsAgentsPlaybooksImportCall struct { + s *Service + parent string + googleclouddialogflowcxv3importplaybookrequest *GoogleCloudDialogflowCxV3ImportPlaybookRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Import: Imports the specified playbook to the specified agent from a binary +// file. +// +// - parent: The agent to import the playbook into. Format: +// `projects//locations//agents/`. +func (r *ProjectsLocationsAgentsPlaybooksService) Import(parent string, googleclouddialogflowcxv3importplaybookrequest *GoogleCloudDialogflowCxV3ImportPlaybookRequest) *ProjectsLocationsAgentsPlaybooksImportCall { + c := &ProjectsLocationsAgentsPlaybooksImportCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleclouddialogflowcxv3importplaybookrequest = googleclouddialogflowcxv3importplaybookrequest + 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 *ProjectsLocationsAgentsPlaybooksImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsPlaybooksImportCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAgentsPlaybooksImportCall) Context(ctx context.Context) *ProjectsLocationsAgentsPlaybooksImportCall { + 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 *ProjectsLocationsAgentsPlaybooksImportCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAgentsPlaybooksImportCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googleclouddialogflowcxv3importplaybookrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/playbooks:import") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.playbooks.import", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dialogflow.projects.locations.agents.playbooks.import" 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 *ProjectsLocationsAgentsPlaybooksImportCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.playbooks.import", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsAgentsPlaybooksListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Returns a list of playbooks in the specified agent. +// +// - parent: The agent to list playbooks from. Format: +// `projects//locations//agents/`. +func (r *ProjectsLocationsAgentsPlaybooksService) List(parent string) *ProjectsLocationsAgentsPlaybooksListCall { + c := &ProjectsLocationsAgentsPlaybooksListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of items +// to return in a single page. By default 100 and at most 1000. +func (c *ProjectsLocationsAgentsPlaybooksListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsPlaybooksListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The next_page_token value +// returned from a previous list request. +func (c *ProjectsLocationsAgentsPlaybooksListCall) PageToken(pageToken string) *ProjectsLocationsAgentsPlaybooksListCall { + 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 *ProjectsLocationsAgentsPlaybooksListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsPlaybooksListCall { + 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 *ProjectsLocationsAgentsPlaybooksListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsPlaybooksListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAgentsPlaybooksListCall) Context(ctx context.Context) *ProjectsLocationsAgentsPlaybooksListCall { + 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 *ProjectsLocationsAgentsPlaybooksListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAgentsPlaybooksListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/playbooks") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.playbooks.list", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dialogflow.projects.locations.agents.playbooks.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudDialogflowCxV3ListPlaybooksResponse.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 *ProjectsLocationsAgentsPlaybooksListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3ListPlaybooksResponse, 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 := &GoogleCloudDialogflowCxV3ListPlaybooksResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.playbooks.list", "response", internallog.HTTPResponse(res, b)) + 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 *ProjectsLocationsAgentsPlaybooksListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3ListPlaybooksResponse) 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 ProjectsLocationsAgentsPlaybooksPatchCall struct { + s *Service + nameid string + googleclouddialogflowcxv3playbook *GoogleCloudDialogflowCxV3Playbook + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates the specified Playbook. +// +// - name: The unique identifier of the playbook. Format: +// `projects//locations//agents//playbooks/`. +func (r *ProjectsLocationsAgentsPlaybooksService) Patch(nameid string, googleclouddialogflowcxv3playbook *GoogleCloudDialogflowCxV3Playbook) *ProjectsLocationsAgentsPlaybooksPatchCall { + c := &ProjectsLocationsAgentsPlaybooksPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.nameid = nameid + c.googleclouddialogflowcxv3playbook = googleclouddialogflowcxv3playbook + return c +} + +// UpdateMask sets the optional parameter "updateMask": The mask to control +// which fields get updated. If the mask is not present, all fields will be +// updated. +func (c *ProjectsLocationsAgentsPlaybooksPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsPlaybooksPatchCall { + 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 *ProjectsLocationsAgentsPlaybooksPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsPlaybooksPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAgentsPlaybooksPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsPlaybooksPatchCall { + 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 *ProjectsLocationsAgentsPlaybooksPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAgentsPlaybooksPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googleclouddialogflowcxv3playbook) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.nameid, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.playbooks.patch", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dialogflow.projects.locations.agents.playbooks.patch" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudDialogflowCxV3Playbook.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 *ProjectsLocationsAgentsPlaybooksPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3Playbook, 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 := &GoogleCloudDialogflowCxV3Playbook{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.playbooks.patch", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsAgentsPlaybooksExamplesCreateCall struct { + s *Service + parent string + googleclouddialogflowcxv3example *GoogleCloudDialogflowCxV3Example + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates an example in the specified playbook. +// +// - parent: The playbook to create an example for. Format: +// `projects//locations//agents//playbooks/`. +func (r *ProjectsLocationsAgentsPlaybooksExamplesService) Create(parent string, googleclouddialogflowcxv3example *GoogleCloudDialogflowCxV3Example) *ProjectsLocationsAgentsPlaybooksExamplesCreateCall { + c := &ProjectsLocationsAgentsPlaybooksExamplesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleclouddialogflowcxv3example = googleclouddialogflowcxv3example + 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 *ProjectsLocationsAgentsPlaybooksExamplesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsPlaybooksExamplesCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAgentsPlaybooksExamplesCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsPlaybooksExamplesCreateCall { + 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 *ProjectsLocationsAgentsPlaybooksExamplesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAgentsPlaybooksExamplesCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googleclouddialogflowcxv3example) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/examples") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.playbooks.examples.create", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dialogflow.projects.locations.agents.playbooks.examples.create" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudDialogflowCxV3Example.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 *ProjectsLocationsAgentsPlaybooksExamplesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3Example, 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 := &GoogleCloudDialogflowCxV3Example{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.playbooks.examples.create", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsAgentsPlaybooksExamplesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes the specified example. +// +// - name: The name of the example to delete. Format: +// `projects//locations//agents//playbooks//examples/`. +func (r *ProjectsLocationsAgentsPlaybooksExamplesService) Delete(name string) *ProjectsLocationsAgentsPlaybooksExamplesDeleteCall { + c := &ProjectsLocationsAgentsPlaybooksExamplesDeleteCall{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 *ProjectsLocationsAgentsPlaybooksExamplesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsPlaybooksExamplesDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAgentsPlaybooksExamplesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsPlaybooksExamplesDeleteCall { + 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 *ProjectsLocationsAgentsPlaybooksExamplesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAgentsPlaybooksExamplesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.playbooks.examples.delete", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dialogflow.projects.locations.agents.playbooks.examples.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 *ProjectsLocationsAgentsPlaybooksExamplesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.playbooks.examples.delete", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsAgentsPlaybooksExamplesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Retrieves the specified example. +// +// - name: The name of the example. Format: +// `projects//locations//agents//playbooks//examples/`. +func (r *ProjectsLocationsAgentsPlaybooksExamplesService) Get(name string) *ProjectsLocationsAgentsPlaybooksExamplesGetCall { + c := &ProjectsLocationsAgentsPlaybooksExamplesGetCall{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 *ProjectsLocationsAgentsPlaybooksExamplesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsPlaybooksExamplesGetCall { + 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 *ProjectsLocationsAgentsPlaybooksExamplesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsPlaybooksExamplesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAgentsPlaybooksExamplesGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsPlaybooksExamplesGetCall { + 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 *ProjectsLocationsAgentsPlaybooksExamplesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAgentsPlaybooksExamplesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.playbooks.examples.get", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dialogflow.projects.locations.agents.playbooks.examples.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudDialogflowCxV3Example.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 *ProjectsLocationsAgentsPlaybooksExamplesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3Example, 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 := &GoogleCloudDialogflowCxV3Example{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.playbooks.examples.get", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsAgentsPlaybooksExamplesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Returns a list of examples in the specified playbook. +// +// - parent: The playbook to list the examples from. Format: +// `projects//locations//agents//playbooks/`. +func (r *ProjectsLocationsAgentsPlaybooksExamplesService) List(parent string) *ProjectsLocationsAgentsPlaybooksExamplesListCall { + c := &ProjectsLocationsAgentsPlaybooksExamplesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// LanguageCode sets the optional parameter "languageCode": The language to +// list examples for. If not specified, list all examples under the playbook. +// Note: languages must be enabled in the agent before they can be used. +func (c *ProjectsLocationsAgentsPlaybooksExamplesListCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsPlaybooksExamplesListCall { + c.urlParams_.Set("languageCode", languageCode) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of items +// to return in a single page. By default 100 and at most 1000. +func (c *ProjectsLocationsAgentsPlaybooksExamplesListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsPlaybooksExamplesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The next_page_token value +// returned from a previous list request. +func (c *ProjectsLocationsAgentsPlaybooksExamplesListCall) PageToken(pageToken string) *ProjectsLocationsAgentsPlaybooksExamplesListCall { + 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 *ProjectsLocationsAgentsPlaybooksExamplesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsPlaybooksExamplesListCall { + 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 *ProjectsLocationsAgentsPlaybooksExamplesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsPlaybooksExamplesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAgentsPlaybooksExamplesListCall) Context(ctx context.Context) *ProjectsLocationsAgentsPlaybooksExamplesListCall { + 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 *ProjectsLocationsAgentsPlaybooksExamplesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAgentsPlaybooksExamplesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/examples") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.playbooks.examples.list", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dialogflow.projects.locations.agents.playbooks.examples.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudDialogflowCxV3ListExamplesResponse.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 *ProjectsLocationsAgentsPlaybooksExamplesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3ListExamplesResponse, 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 := &GoogleCloudDialogflowCxV3ListExamplesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.playbooks.examples.list", "response", internallog.HTTPResponse(res, b)) + 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 *ProjectsLocationsAgentsPlaybooksExamplesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3ListExamplesResponse) 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 ProjectsLocationsAgentsPlaybooksExamplesPatchCall struct { + s *Service + nameid string + googleclouddialogflowcxv3example *GoogleCloudDialogflowCxV3Example + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Update the specified example. +// +// - name: The unique identifier of the playbook example. Format: +// `projects//locations//agents//playbooks//examples/`. +func (r *ProjectsLocationsAgentsPlaybooksExamplesService) Patch(nameid string, googleclouddialogflowcxv3example *GoogleCloudDialogflowCxV3Example) *ProjectsLocationsAgentsPlaybooksExamplesPatchCall { + c := &ProjectsLocationsAgentsPlaybooksExamplesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.nameid = nameid + c.googleclouddialogflowcxv3example = googleclouddialogflowcxv3example + return c +} + +// UpdateMask sets the optional parameter "updateMask": The mask to control +// which fields get updated. If the mask is not present, all fields will be +// updated. +func (c *ProjectsLocationsAgentsPlaybooksExamplesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsPlaybooksExamplesPatchCall { + 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 *ProjectsLocationsAgentsPlaybooksExamplesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsPlaybooksExamplesPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAgentsPlaybooksExamplesPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsPlaybooksExamplesPatchCall { + 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 *ProjectsLocationsAgentsPlaybooksExamplesPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAgentsPlaybooksExamplesPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googleclouddialogflowcxv3example) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.nameid, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.playbooks.examples.patch", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dialogflow.projects.locations.agents.playbooks.examples.patch" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudDialogflowCxV3Example.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 *ProjectsLocationsAgentsPlaybooksExamplesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3Example, 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 := &GoogleCloudDialogflowCxV3Example{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.playbooks.examples.patch", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsAgentsPlaybooksVersionsCreateCall struct { + s *Service + parent string + googleclouddialogflowcxv3playbookversion *GoogleCloudDialogflowCxV3PlaybookVersion + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a version for the specified Playbook. +// +// - parent: The playbook to create a version for. Format: +// `projects//locations//agents//playbooks/`. +func (r *ProjectsLocationsAgentsPlaybooksVersionsService) Create(parent string, googleclouddialogflowcxv3playbookversion *GoogleCloudDialogflowCxV3PlaybookVersion) *ProjectsLocationsAgentsPlaybooksVersionsCreateCall { + c := &ProjectsLocationsAgentsPlaybooksVersionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleclouddialogflowcxv3playbookversion = googleclouddialogflowcxv3playbookversion + 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 *ProjectsLocationsAgentsPlaybooksVersionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsPlaybooksVersionsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAgentsPlaybooksVersionsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsPlaybooksVersionsCreateCall { + 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 *ProjectsLocationsAgentsPlaybooksVersionsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAgentsPlaybooksVersionsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googleclouddialogflowcxv3playbookversion) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/versions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.playbooks.versions.create", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dialogflow.projects.locations.agents.playbooks.versions.create" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudDialogflowCxV3PlaybookVersion.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 *ProjectsLocationsAgentsPlaybooksVersionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3PlaybookVersion, 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 := &GoogleCloudDialogflowCxV3PlaybookVersion{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.playbooks.versions.create", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsAgentsPlaybooksVersionsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes the specified version of the Playbook. +// +// - name: The name of the playbook version to delete. Format: +// `projects//locations//agents//playbooks//versions/`. +func (r *ProjectsLocationsAgentsPlaybooksVersionsService) Delete(name string) *ProjectsLocationsAgentsPlaybooksVersionsDeleteCall { + c := &ProjectsLocationsAgentsPlaybooksVersionsDeleteCall{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 *ProjectsLocationsAgentsPlaybooksVersionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsPlaybooksVersionsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAgentsPlaybooksVersionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsPlaybooksVersionsDeleteCall { + 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 *ProjectsLocationsAgentsPlaybooksVersionsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAgentsPlaybooksVersionsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.playbooks.versions.delete", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dialogflow.projects.locations.agents.playbooks.versions.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 *ProjectsLocationsAgentsPlaybooksVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.playbooks.versions.delete", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsAgentsPlaybooksVersionsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Retrieves the specified version of the Playbook. +// +// - name: The name of the playbook version. Format: +// `projects//locations//agents//playbooks//versions/`. +func (r *ProjectsLocationsAgentsPlaybooksVersionsService) Get(name string) *ProjectsLocationsAgentsPlaybooksVersionsGetCall { + c := &ProjectsLocationsAgentsPlaybooksVersionsGetCall{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 *ProjectsLocationsAgentsPlaybooksVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsPlaybooksVersionsGetCall { + 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 *ProjectsLocationsAgentsPlaybooksVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsPlaybooksVersionsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAgentsPlaybooksVersionsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsPlaybooksVersionsGetCall { + 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 *ProjectsLocationsAgentsPlaybooksVersionsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAgentsPlaybooksVersionsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.playbooks.versions.get", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dialogflow.projects.locations.agents.playbooks.versions.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudDialogflowCxV3PlaybookVersion.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 *ProjectsLocationsAgentsPlaybooksVersionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3PlaybookVersion, 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 := &GoogleCloudDialogflowCxV3PlaybookVersion{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.playbooks.versions.get", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsAgentsPlaybooksVersionsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists versions for the specified Playbook. +// +// - parent: The playbook to list versions for. Format: +// `projects//locations//agents//playbooks/`. +func (r *ProjectsLocationsAgentsPlaybooksVersionsService) List(parent string) *ProjectsLocationsAgentsPlaybooksVersionsListCall { + c := &ProjectsLocationsAgentsPlaybooksVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of items +// to return in a single page. By default 100 and at most 1000. +func (c *ProjectsLocationsAgentsPlaybooksVersionsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsPlaybooksVersionsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The next_page_token value +// returned from a previous list request. +func (c *ProjectsLocationsAgentsPlaybooksVersionsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsPlaybooksVersionsListCall { + 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 *ProjectsLocationsAgentsPlaybooksVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsPlaybooksVersionsListCall { + 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 *ProjectsLocationsAgentsPlaybooksVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsPlaybooksVersionsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAgentsPlaybooksVersionsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsPlaybooksVersionsListCall { + 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 *ProjectsLocationsAgentsPlaybooksVersionsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAgentsPlaybooksVersionsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/versions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.playbooks.versions.list", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dialogflow.projects.locations.agents.playbooks.versions.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudDialogflowCxV3ListPlaybookVersionsResponse.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 *ProjectsLocationsAgentsPlaybooksVersionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3ListPlaybookVersionsResponse, 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 := &GoogleCloudDialogflowCxV3ListPlaybookVersionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.playbooks.versions.list", "response", internallog.HTTPResponse(res, b)) + 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 *ProjectsLocationsAgentsPlaybooksVersionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3ListPlaybookVersionsResponse) 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 ProjectsLocationsAgentsPlaybooksVersionsRestoreCall struct { + s *Service + name string + googleclouddialogflowcxv3restoreplaybookversionrequest *GoogleCloudDialogflowCxV3RestorePlaybookVersionRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Restore: Retrieves the specified version of the Playbook and stores it as +// the current playbook draft, returning the playbook with resources updated. +// +// - name: The name of the playbook version. Format: +// `projects//locations//agents//playbooks//versions/`. +func (r *ProjectsLocationsAgentsPlaybooksVersionsService) Restore(name string, googleclouddialogflowcxv3restoreplaybookversionrequest *GoogleCloudDialogflowCxV3RestorePlaybookVersionRequest) *ProjectsLocationsAgentsPlaybooksVersionsRestoreCall { + c := &ProjectsLocationsAgentsPlaybooksVersionsRestoreCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googleclouddialogflowcxv3restoreplaybookversionrequest = googleclouddialogflowcxv3restoreplaybookversionrequest + 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 *ProjectsLocationsAgentsPlaybooksVersionsRestoreCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsPlaybooksVersionsRestoreCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAgentsPlaybooksVersionsRestoreCall) Context(ctx context.Context) *ProjectsLocationsAgentsPlaybooksVersionsRestoreCall { + 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 *ProjectsLocationsAgentsPlaybooksVersionsRestoreCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAgentsPlaybooksVersionsRestoreCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googleclouddialogflowcxv3restoreplaybookversionrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}:restore") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.playbooks.versions.restore", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dialogflow.projects.locations.agents.playbooks.versions.restore" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudDialogflowCxV3RestorePlaybookVersionResponse.ServerResponse.Heade +// r or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsAgentsPlaybooksVersionsRestoreCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3RestorePlaybookVersionResponse, 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 := &GoogleCloudDialogflowCxV3RestorePlaybookVersionResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.playbooks.versions.restore", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type ProjectsLocationsAgentsSessionsDetectIntentCall struct { s *Service sessionid string @@ -33391,6 +36661,589 @@ func (c *ProjectsLocationsAgentsTestCasesResultsListCall) Pages(ctx context.Cont } } +type ProjectsLocationsAgentsToolsCreateCall struct { + s *Service + parent string + googleclouddialogflowcxv3tool *GoogleCloudDialogflowCxV3Tool + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a Tool in the specified agent. +// +// - parent: The agent to create a Tool for. Format: +// `projects//locations//agents/`. +func (r *ProjectsLocationsAgentsToolsService) Create(parent string, googleclouddialogflowcxv3tool *GoogleCloudDialogflowCxV3Tool) *ProjectsLocationsAgentsToolsCreateCall { + c := &ProjectsLocationsAgentsToolsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleclouddialogflowcxv3tool = googleclouddialogflowcxv3tool + 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 *ProjectsLocationsAgentsToolsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsToolsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAgentsToolsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsToolsCreateCall { + 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 *ProjectsLocationsAgentsToolsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAgentsToolsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googleclouddialogflowcxv3tool) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/tools") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.tools.create", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dialogflow.projects.locations.agents.tools.create" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudDialogflowCxV3Tool.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 *ProjectsLocationsAgentsToolsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3Tool, 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 := &GoogleCloudDialogflowCxV3Tool{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.tools.create", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsAgentsToolsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a specified Tool. +// +// - name: The name of the Tool to be deleted. Format: +// `projects//locations//agents//tools/`. +func (r *ProjectsLocationsAgentsToolsService) Delete(name string) *ProjectsLocationsAgentsToolsDeleteCall { + c := &ProjectsLocationsAgentsToolsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Force sets the optional parameter "force": This field has no effect for +// Tools not being used. For Tools that are used: * If `force` is set to false, +// an error will be returned with message indicating the referenced resources. +// * If `force` is set to true, Dialogflow will remove the tool, as well as any +// references to the tool. +func (c *ProjectsLocationsAgentsToolsDeleteCall) Force(force bool) *ProjectsLocationsAgentsToolsDeleteCall { + 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 *ProjectsLocationsAgentsToolsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsToolsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAgentsToolsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsToolsDeleteCall { + 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 *ProjectsLocationsAgentsToolsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAgentsToolsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.tools.delete", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dialogflow.projects.locations.agents.tools.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 *ProjectsLocationsAgentsToolsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.tools.delete", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsAgentsToolsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Retrieves the specified Tool. +// +// - name: The name of the Tool. Format: `projects//locations//agents//tools/`. +func (r *ProjectsLocationsAgentsToolsService) Get(name string) *ProjectsLocationsAgentsToolsGetCall { + c := &ProjectsLocationsAgentsToolsGetCall{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 *ProjectsLocationsAgentsToolsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsToolsGetCall { + 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 *ProjectsLocationsAgentsToolsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsToolsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAgentsToolsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsToolsGetCall { + 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 *ProjectsLocationsAgentsToolsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAgentsToolsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.tools.get", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dialogflow.projects.locations.agents.tools.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudDialogflowCxV3Tool.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 *ProjectsLocationsAgentsToolsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3Tool, 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 := &GoogleCloudDialogflowCxV3Tool{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.tools.get", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsAgentsToolsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Returns a list of Tools in the specified agent. +// +// - parent: The agent to list the Tools from. Format: +// `projects//locations//agents/`. +func (r *ProjectsLocationsAgentsToolsService) List(parent string) *ProjectsLocationsAgentsToolsListCall { + c := &ProjectsLocationsAgentsToolsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of items +// to return in a single page. By default 100 and at most 1000. +func (c *ProjectsLocationsAgentsToolsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsToolsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The next_page_token value +// returned from a previous list request. +func (c *ProjectsLocationsAgentsToolsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsToolsListCall { + 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 *ProjectsLocationsAgentsToolsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsToolsListCall { + 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 *ProjectsLocationsAgentsToolsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsToolsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAgentsToolsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsToolsListCall { + 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 *ProjectsLocationsAgentsToolsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAgentsToolsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/tools") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.tools.list", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dialogflow.projects.locations.agents.tools.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudDialogflowCxV3ListToolsResponse.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 *ProjectsLocationsAgentsToolsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3ListToolsResponse, 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 := &GoogleCloudDialogflowCxV3ListToolsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.tools.list", "response", internallog.HTTPResponse(res, b)) + 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 *ProjectsLocationsAgentsToolsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3ListToolsResponse) 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 ProjectsLocationsAgentsToolsPatchCall struct { + s *Service + nameid string + googleclouddialogflowcxv3tool *GoogleCloudDialogflowCxV3Tool + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Update the specified Tool. +// +// - name: The unique identifier of the Tool. Format: +// `projects//locations//agents//tools/`. +func (r *ProjectsLocationsAgentsToolsService) Patch(nameid string, googleclouddialogflowcxv3tool *GoogleCloudDialogflowCxV3Tool) *ProjectsLocationsAgentsToolsPatchCall { + c := &ProjectsLocationsAgentsToolsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.nameid = nameid + c.googleclouddialogflowcxv3tool = googleclouddialogflowcxv3tool + return c +} + +// UpdateMask sets the optional parameter "updateMask": The mask to control +// which fields get updated. If the mask is not present, all fields will be +// updated. +func (c *ProjectsLocationsAgentsToolsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsToolsPatchCall { + 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 *ProjectsLocationsAgentsToolsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsToolsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAgentsToolsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsToolsPatchCall { + 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 *ProjectsLocationsAgentsToolsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAgentsToolsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googleclouddialogflowcxv3tool) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.nameid, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.tools.patch", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dialogflow.projects.locations.agents.tools.patch" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudDialogflowCxV3Tool.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 *ProjectsLocationsAgentsToolsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3Tool, 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 := &GoogleCloudDialogflowCxV3Tool{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.tools.patch", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type ProjectsLocationsAgentsTransitionRouteGroupsCreateCall struct { s *Service parent string diff --git a/displayvideo/v3/displayvideo-api.json b/displayvideo/v3/displayvideo-api.json index 437e7c82d54..c165e0ce880 100644 --- a/displayvideo/v3/displayvideo-api.json +++ b/displayvideo/v3/displayvideo-api.json @@ -5700,7 +5700,7 @@ ] }, "patch": { - "description": "Updates an existing custom bidding algorithm. Returns the updated custom bidding algorithm if successful. *Warning*: Starting **April 1, 2025**, requests updating custom bidding algorithms that are assigned to line items will return an error. [Read more about this announced change](/display-video/api/deprecations#features.custom_bidding_floodlight).", + "description": "Updates an existing custom bidding algorithm. Returns the updated custom bidding algorithm if successful. Requests updating a custom bidding algorithm assigned to a line item will return an error.", "flatPath": "v3/customBiddingAlgorithms/{customBiddingAlgorithmsId}", "httpMethod": "PATCH", "id": "displayvideo.customBiddingAlgorithms.patch", @@ -5815,7 +5815,7 @@ "rules": { "methods": { "create": { - "description": "Creates a new rules resource. Returns the newly created rules resource if successful. *Warning*: Starting **April 1, 2025**, requests updating custom bidding algorithms that are assigned to line items will return an error. [Read more about this announced change](/display-video/api/deprecations#features.custom_bidding_floodlight).", + "description": "Creates a new rules resource. Returns the newly created rules resource if successful. Requests creating a custom bidding rules resource under an algorithm assigned to a line item will return an error.", "flatPath": "v3/customBiddingAlgorithms/{customBiddingAlgorithmsId}/rules", "httpMethod": "POST", "id": "displayvideo.customBiddingAlgorithms.rules.create", @@ -5961,7 +5961,7 @@ "scripts": { "methods": { "create": { - "description": "Creates a new custom bidding script. Returns the newly created script if successful. *Warning*: Starting **April 1, 2025**, requests updating custom bidding algorithms that are assigned to line items will return an error. [Read more about this announced change](/display-video/api/deprecations#features.custom_bidding_floodlight).", + "description": "Creates a new custom bidding script. Returns the newly created script if successful. Requests creating a custom bidding script under an algorithm assigned to a line item will return an error.", "flatPath": "v3/customBiddingAlgorithms/{customBiddingAlgorithmsId}/scripts", "httpMethod": "POST", "id": "displayvideo.customBiddingAlgorithms.scripts.create", @@ -8602,7 +8602,7 @@ "sdfdownloadtasks": { "methods": { "create": { - "description": "Creates an SDF Download Task. Returns an Operation. An SDF Download Task is a long-running, asynchronous operation. The metadata type of this operation is SdfDownloadTaskMetadata. If the request is successful, the response type of the operation is SdfDownloadTask. The response will not include the download files, which must be retrieved with media.download. The state of operation can be retrieved with sdfdownloadtask.operations.get. Any errors can be found in the error.message. Note that error.details is expected to be empty.", + "description": "Creates an SDF Download Task. Returns an Operation. An SDF Download Task is a long-running, asynchronous operation. The metadata type of this operation is SdfDownloadTaskMetadata. If the request is successful, the response type of the operation is SdfDownloadTask. The response will not include the download files, which must be retrieved with media.download. The state of operation can be retrieved with `sdfdownloadtasks.operations.get`. Any errors can be found in the error.message. Note that error.details is expected to be empty.", "flatPath": "v3/sdfdownloadtasks", "httpMethod": "POST", "id": "displayvideo.sdfdownloadtasks.create", @@ -9268,7 +9268,7 @@ } } }, - "revision": "20250410", + "revision": "20250417", "rootUrl": "https://displayvideo.googleapis.com/", "schemas": { "ActiveViewVideoViewabilityMetricConfig": { @@ -10368,6 +10368,8 @@ "EXCHANGE_TOPON_GBID", "EXCHANGE_NETFLIX", "EXCHANGE_CORE", + "EXCHANGE_COMMERCE_GRID", + "EXCHANGE_SPOTIFY", "EXCHANGE_TUBI" ], "enumDescriptions": [ @@ -10455,6 +10457,8 @@ "TopOn.", "Netflix.", "Core.", + "Commerce Grid.", + "Spotify.", "Tubi." ], "type": "string" @@ -13153,7 +13157,7 @@ "id": "ConversionCountingConfig", "properties": { "floodlightActivityConfigs": { - "description": "The Floodlight activity configs used to track conversions. The number of conversions counted is the sum of all of the conversions counted by all of the Floodlight activity IDs specified in this field. *Warning*: Starting **April 1, 2025**, this field will no longer be writable while a custom bidding algorithm is assigned to the line item. If you set this field and assign a custom bidding algorithm in the same request, the floodlight activities must match the ones used by the custom bidding algorithm. [Read more about this announced change](/display-video/api/deprecations#features.custom_bidding_floodlight).", + "description": "The Floodlight activity configs used to track conversions. The number of conversions counted is the sum of all of the conversions counted by all of the Floodlight activity IDs specified in this field. This field can't be updated if a custom bidding algorithm is assigned to the line item. If you set this field and assign a custom bidding algorithm in the same request, the floodlight activities must match the ones used by the custom bidding algorithm.", "items": { "$ref": "TrackingFloodlightActivityConfig" }, @@ -15308,6 +15312,8 @@ "EXCHANGE_TOPON_GBID", "EXCHANGE_NETFLIX", "EXCHANGE_CORE", + "EXCHANGE_COMMERCE_GRID", + "EXCHANGE_SPOTIFY", "EXCHANGE_TUBI" ], "enumDescriptions": [ @@ -15395,6 +15401,8 @@ "TopOn.", "Netflix.", "Core.", + "Commerce Grid.", + "Spotify.", "Tubi." ], "type": "string" @@ -15507,6 +15515,8 @@ "EXCHANGE_TOPON_GBID", "EXCHANGE_NETFLIX", "EXCHANGE_CORE", + "EXCHANGE_COMMERCE_GRID", + "EXCHANGE_SPOTIFY", "EXCHANGE_TUBI" ], "enumDescriptions": [ @@ -15594,6 +15604,8 @@ "TopOn.", "Netflix.", "Core.", + "Commerce Grid.", + "Spotify.", "Tubi." ], "type": "string" @@ -15707,6 +15719,8 @@ "EXCHANGE_TOPON_GBID", "EXCHANGE_NETFLIX", "EXCHANGE_CORE", + "EXCHANGE_COMMERCE_GRID", + "EXCHANGE_SPOTIFY", "EXCHANGE_TUBI" ], "enumDescriptions": [ @@ -15794,6 +15808,8 @@ "TopOn.", "Netflix.", "Core.", + "Commerce Grid.", + "Spotify.", "Tubi." ], "type": "string" @@ -15908,6 +15924,8 @@ "EXCHANGE_TOPON_GBID", "EXCHANGE_NETFLIX", "EXCHANGE_CORE", + "EXCHANGE_COMMERCE_GRID", + "EXCHANGE_SPOTIFY", "EXCHANGE_TUBI" ], "enumDescriptions": [ @@ -15995,6 +16013,8 @@ "TopOn.", "Netflix.", "Core.", + "Commerce Grid.", + "Spotify.", "Tubi." ], "readOnly": true, @@ -16173,7 +16193,7 @@ "type": "string" }, "membershipDurationDays": { - "description": "The duration in days that an entry remains in the audience after the qualifying event. If the audience has no expiration, set the value of this field to 10000. Otherwise, the set value must be greater than 0 and less than or equal to 540. Only applicable to first party audiences. This field is required if one of the following audience_type is used: * `CUSTOMER_MATCH_CONTACT_INFO` * `CUSTOMER_MATCH_DEVICE_ID` *Warning*: Starting on **April 7, 2025**, audiences will no longer be able to have infinite membership duration. This field will no longer accept the value 10000 and all audiences with membership durations greater than 540 days will be updated to a membership duration of 540 days. [Read more about this announced change](/display-video/api/deprecations#features.audience_duration).", + "description": "The duration in days that an entry remains in the audience after the qualifying event. The set value must be greater than 0 and less than or equal to 540. Only applicable to first party audiences. This field is required if one of the following audience_type is used: * `CUSTOMER_MATCH_CONTACT_INFO` * `CUSTOMER_MATCH_DEVICE_ID`", "format": "int64", "type": "string" }, @@ -17005,6 +17025,8 @@ "EXCHANGE_TOPON_GBID", "EXCHANGE_NETFLIX", "EXCHANGE_CORE", + "EXCHANGE_COMMERCE_GRID", + "EXCHANGE_SPOTIFY", "EXCHANGE_TUBI" ], "enumDescriptions": [ @@ -17092,6 +17114,8 @@ "TopOn.", "Netflix.", "Core.", + "Commerce Grid.", + "Spotify.", "Tubi." ], "type": "string" @@ -17944,6 +17968,8 @@ "EXCHANGE_TOPON_GBID", "EXCHANGE_NETFLIX", "EXCHANGE_CORE", + "EXCHANGE_COMMERCE_GRID", + "EXCHANGE_SPOTIFY", "EXCHANGE_TUBI" ], "enumDescriptions": [ @@ -18031,6 +18057,8 @@ "TopOn.", "Netflix.", "Core.", + "Commerce Grid.", + "Spotify.", "Tubi." ], "type": "string" @@ -18594,7 +18622,7 @@ }, "conversionCounting": { "$ref": "ConversionCountingConfig", - "description": "The conversion tracking setting of the line item. *Warning*: Starting **April 1, 2025**, the floodlight_activity_configs field will no longer be writable while a custom bidding algorithm is assigned to the line item. If you set this field and assign a custom bidding algorithm in the same request, the floodlight activities must match the ones used by the custom bidding algorithm. [Read more about this announced change](/display-video/api/deprecations#features.custom_bidding_floodlight)." + "description": "The conversion tracking setting of the line item." }, "creativeIds": { "description": "The IDs of the creatives associated with the line item.", @@ -19633,7 +19661,7 @@ "id": "MaximizeSpendBidStrategy", "properties": { "customBiddingAlgorithmId": { - "description": "The ID of the Custom Bidding Algorithm used by this strategy. Only applicable when performance_goal_type is set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`. *Warning*: Starting **April 1, 2025**, assigning a custom bidding algorithm that uses floodlight activities not identified in floodlightActivityConfigs will return an error. [Read more about this announced change](/display-video/api/deprecations#features.custom_bidding_floodlight).", + "description": "The ID of the Custom Bidding Algorithm used by this strategy. Only applicable when performance_goal_type is set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`. Assigning a custom bidding algorithm that uses floodlight activities not identified in floodlightActivityConfigs will return an error.", "format": "int64", "type": "string" }, @@ -20652,7 +20680,7 @@ "id": "PerformanceGoalBidStrategy", "properties": { "customBiddingAlgorithmId": { - "description": "The ID of the Custom Bidding Algorithm used by this strategy. Only applicable when performance_goal_type is set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`. *Warning*: Starting **April 1, 2025**, assigning a custom bidding algorithm that uses floodlight activities not identified in floodlightActivityConfigs will return an error. [Read more about this announced change](/display-video/api/deprecations#features.custom_bidding_floodlight).", + "description": "The ID of the Custom Bidding Algorithm used by this strategy. Only applicable when performance_goal_type is set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`. Assigning a custom bidding algorithm that uses floodlight activities not identified in floodlightActivityConfigs will return an error.", "format": "int64", "type": "string" }, @@ -21256,7 +21284,7 @@ "type": "object" }, "SdfDownloadTask": { - "description": "Type for the response returned by [SdfDownloadTaskService.CreateSdfDownloadTask].", + "description": "Type for the response returned by SdfDownloadTaskService.CreateSdfDownloadTask.", "id": "SdfDownloadTask", "properties": { "resourceName": { @@ -21267,7 +21295,7 @@ "type": "object" }, "SdfDownloadTaskMetadata": { - "description": "Type for the metadata returned by [SdfDownloadTaskService.CreateSdfDownloadTask].", + "description": "Type for the metadata returned by SdfDownloadTaskService.CreateSdfDownloadTask.", "id": "SdfDownloadTaskMetadata", "properties": { "createTime": { diff --git a/displayvideo/v3/displayvideo-gen.go b/displayvideo/v3/displayvideo-gen.go index f3acf0274d7..ad801a32a80 100644 --- a/displayvideo/v3/displayvideo-gen.go +++ b/displayvideo/v3/displayvideo-gen.go @@ -1872,6 +1872,8 @@ type AlgorithmRulesComparisonValue struct { // "EXCHANGE_TOPON_GBID" - TopOn. // "EXCHANGE_NETFLIX" - Netflix. // "EXCHANGE_CORE" - Core. + // "EXCHANGE_COMMERCE_GRID" - Commerce Grid. + // "EXCHANGE_SPOTIFY" - Spotify. // "EXCHANGE_TUBI" - Tubi. ExchangeValue string `json:"exchangeValue,omitempty"` // Int64Value: Integer value. @@ -5476,12 +5478,10 @@ type ConversionCountingConfig struct { // FloodlightActivityConfigs: The Floodlight activity configs used to track // conversions. The number of conversions counted is the sum of all of the // conversions counted by all of the Floodlight activity IDs specified in this - // field. *Warning*: Starting **April 1, 2025**, this field will no longer be - // writable while a custom bidding algorithm is assigned to the line item. If - // you set this field and assign a custom bidding algorithm in the same - // request, the floodlight activities must match the ones used by the custom - // bidding algorithm. Read more about this announced change - // (/display-video/api/deprecations#features.custom_bidding_floodlight). + // field. This field can't be updated if a custom bidding algorithm is assigned + // to the line item. If you set this field and assign a custom bidding + // algorithm in the same request, the floodlight activities must match the ones + // used by the custom bidding algorithm. FloodlightActivityConfigs []*TrackingFloodlightActivityConfig `json:"floodlightActivityConfigs,omitempty"` // PostViewCountPercentageMillis: The percentage of post-view conversions to // count, in millis (1/1000 of a percent). Must be between 0 and 100000 @@ -7970,6 +7970,8 @@ type ExchangeAssignedTargetingOptionDetails struct { // "EXCHANGE_TOPON_GBID" - TopOn. // "EXCHANGE_NETFLIX" - Netflix. // "EXCHANGE_CORE" - Core. + // "EXCHANGE_COMMERCE_GRID" - Commerce Grid. + // "EXCHANGE_SPOTIFY" - Spotify. // "EXCHANGE_TUBI" - Tubi. Exchange string `json:"exchange,omitempty"` // ForceSendFields is a list of field names (e.g. "Exchange") to @@ -8105,6 +8107,8 @@ type ExchangeConfigEnabledExchange struct { // "EXCHANGE_TOPON_GBID" - TopOn. // "EXCHANGE_NETFLIX" - Netflix. // "EXCHANGE_CORE" - Core. + // "EXCHANGE_COMMERCE_GRID" - Commerce Grid. + // "EXCHANGE_SPOTIFY" - Spotify. // "EXCHANGE_TUBI" - Tubi. Exchange string `json:"exchange,omitempty"` // GoogleAdManagerAgencyId: Output only. Agency ID of Google Ad Manager. The @@ -8224,6 +8228,8 @@ type ExchangeReviewStatus struct { // "EXCHANGE_TOPON_GBID" - TopOn. // "EXCHANGE_NETFLIX" - Netflix. // "EXCHANGE_CORE" - Core. + // "EXCHANGE_COMMERCE_GRID" - Commerce Grid. + // "EXCHANGE_SPOTIFY" - Spotify. // "EXCHANGE_TUBI" - Tubi. Exchange string `json:"exchange,omitempty"` // Status: Status of the exchange review. @@ -8346,6 +8352,8 @@ type ExchangeTargetingOptionDetails struct { // "EXCHANGE_TOPON_GBID" - TopOn. // "EXCHANGE_NETFLIX" - Netflix. // "EXCHANGE_CORE" - Core. + // "EXCHANGE_COMMERCE_GRID" - Commerce Grid. + // "EXCHANGE_SPOTIFY" - Spotify. // "EXCHANGE_TUBI" - Tubi. Exchange string `json:"exchange,omitempty"` // ForceSendFields is a list of field names (e.g. "Exchange") to @@ -8504,17 +8512,10 @@ type FirstAndThirdPartyAudience struct { // Only returned in GET request. GmailAudienceSize int64 `json:"gmailAudienceSize,omitempty,string"` // MembershipDurationDays: The duration in days that an entry remains in the - // audience after the qualifying event. If the audience has no expiration, set - // the value of this field to 10000. Otherwise, the set value must be greater - // than 0 and less than or equal to 540. Only applicable to first party - // audiences. This field is required if one of the following audience_type is - // used: * `CUSTOMER_MATCH_CONTACT_INFO` * `CUSTOMER_MATCH_DEVICE_ID` - // *Warning*: Starting on **April 7, 2025**, audiences will no longer be able - // to have infinite membership duration. This field will no longer accept the - // value 10000 and all audiences with membership durations greater than 540 - // days will be updated to a membership duration of 540 days. Read more about - // this announced change - // (/display-video/api/deprecations#features.audience_duration). + // audience after the qualifying event. The set value must be greater than 0 + // and less than or equal to 540. Only applicable to first party audiences. + // This field is required if one of the following audience_type is used: * + // `CUSTOMER_MATCH_CONTACT_INFO` * `CUSTOMER_MATCH_DEVICE_ID` MembershipDurationDays int64 `json:"membershipDurationDays,omitempty,string"` // MobileDeviceIdList: Input only. A list of mobile device IDs to define the // initial audience members. Only applicable to audience_type @@ -9410,6 +9411,8 @@ type GuaranteedOrder struct { // "EXCHANGE_TOPON_GBID" - TopOn. // "EXCHANGE_NETFLIX" - Netflix. // "EXCHANGE_CORE" - Core. + // "EXCHANGE_COMMERCE_GRID" - Commerce Grid. + // "EXCHANGE_SPOTIFY" - Spotify. // "EXCHANGE_TUBI" - Tubi. Exchange string `json:"exchange,omitempty"` // GuaranteedOrderId: Output only. The unique identifier of the guaranteed @@ -10217,6 +10220,8 @@ type InventorySource struct { // "EXCHANGE_TOPON_GBID" - TopOn. // "EXCHANGE_NETFLIX" - Netflix. // "EXCHANGE_CORE" - Core. + // "EXCHANGE_COMMERCE_GRID" - Commerce Grid. + // "EXCHANGE_SPOTIFY" - Spotify. // "EXCHANGE_TUBI" - Tubi. Exchange string `json:"exchange,omitempty"` // GuaranteedOrderId: Immutable. The ID of the guaranteed order that this @@ -10898,12 +10903,6 @@ type LineItem struct { // belongs to. CampaignId int64 `json:"campaignId,omitempty,string"` // ConversionCounting: The conversion tracking setting of the line item. - // *Warning*: Starting **April 1, 2025**, the floodlight_activity_configs field - // will no longer be writable while a custom bidding algorithm is assigned to - // the line item. If you set this field and assign a custom bidding algorithm - // in the same request, the floodlight activities must match the ones used by - // the custom bidding algorithm. Read more about this announced change - // (/display-video/api/deprecations#features.custom_bidding_floodlight). ConversionCounting *ConversionCountingConfig `json:"conversionCounting,omitempty"` // CreativeIds: The IDs of the creatives associated with the line item. CreativeIds googleapi.Int64s `json:"creativeIds,omitempty"` @@ -12426,11 +12425,9 @@ func (s MastheadAd) MarshalJSON() ([]byte, error) { type MaximizeSpendBidStrategy struct { // CustomBiddingAlgorithmId: The ID of the Custom Bidding Algorithm used by // this strategy. Only applicable when performance_goal_type is set to - // `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`. *Warning*: Starting - // **April 1, 2025**, assigning a custom bidding algorithm that uses floodlight - // activities not identified in floodlightActivityConfigs will return an error. - // Read more about this announced change - // (/display-video/api/deprecations#features.custom_bidding_floodlight). + // `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`. Assigning a custom + // bidding algorithm that uses floodlight activities not identified in + // floodlightActivityConfigs will return an error. CustomBiddingAlgorithmId int64 `json:"customBiddingAlgorithmId,omitempty,string"` // MaxAverageCpmBidAmountMicros: The maximum average CPM that may be bid, in // micros of the advertiser's currency. Must be greater than or equal to a @@ -13714,11 +13711,9 @@ func (s PerformanceGoal) MarshalJSON() ([]byte, error) { type PerformanceGoalBidStrategy struct { // CustomBiddingAlgorithmId: The ID of the Custom Bidding Algorithm used by // this strategy. Only applicable when performance_goal_type is set to - // `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`. *Warning*: Starting - // **April 1, 2025**, assigning a custom bidding algorithm that uses floodlight - // activities not identified in floodlightActivityConfigs will return an error. - // Read more about this announced change - // (/display-video/api/deprecations#features.custom_bidding_floodlight). + // `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`. Assigning a custom + // bidding algorithm that uses floodlight activities not identified in + // floodlightActivityConfigs will return an error. CustomBiddingAlgorithmId int64 `json:"customBiddingAlgorithmId,omitempty,string"` // MaxAverageCpmBidAmountMicros: The maximum average CPM that may be bid, in // micros of the advertiser's currency. Must be greater than or equal to a @@ -14484,7 +14479,7 @@ func (s SdfConfig) MarshalJSON() ([]byte, error) { } // SdfDownloadTask: Type for the response returned by -// [SdfDownloadTaskService.CreateSdfDownloadTask]. +// SdfDownloadTaskService.CreateSdfDownloadTask. type SdfDownloadTask struct { // ResourceName: A resource name to be used in media.download to Download the // prepared files. Resource names have the format @@ -14511,7 +14506,7 @@ func (s SdfDownloadTask) MarshalJSON() ([]byte, error) { } // SdfDownloadTaskMetadata: Type for the metadata returned by -// [SdfDownloadTaskService.CreateSdfDownloadTask]. +// SdfDownloadTaskService.CreateSdfDownloadTask. type SdfDownloadTaskMetadata struct { // CreateTime: The time when the operation was created. CreateTime string `json:"createTime,omitempty"` @@ -28709,10 +28704,8 @@ type CustomBiddingAlgorithmsPatchCall struct { } // Patch: Updates an existing custom bidding algorithm. Returns the updated -// custom bidding algorithm if successful. *Warning*: Starting **April 1, -// 2025**, requests updating custom bidding algorithms that are assigned to -// line items will return an error. Read more about this announced change -// (/display-video/api/deprecations#features.custom_bidding_floodlight). +// custom bidding algorithm if successful. Requests updating a custom bidding +// algorithm assigned to a line item will return an error. // // - customBiddingAlgorithmId: Output only. The unique ID of the custom bidding // algorithm. Assigned by the system. @@ -29082,10 +29075,8 @@ type CustomBiddingAlgorithmsRulesCreateCall struct { } // Create: Creates a new rules resource. Returns the newly created rules -// resource if successful. *Warning*: Starting **April 1, 2025**, requests -// updating custom bidding algorithms that are assigned to line items will -// return an error. Read more about this announced change -// (/display-video/api/deprecations#features.custom_bidding_floodlight). +// resource if successful. Requests creating a custom bidding rules resource +// under an algorithm assigned to a line item will return an error. // // - customBiddingAlgorithmId: The ID of the custom bidding algorithm that owns // the rules resource. @@ -29509,10 +29500,8 @@ type CustomBiddingAlgorithmsScriptsCreateCall struct { } // Create: Creates a new custom bidding script. Returns the newly created -// script if successful. *Warning*: Starting **April 1, 2025**, requests -// updating custom bidding algorithms that are assigned to line items will -// return an error. Read more about this announced change -// (/display-video/api/deprecations#features.custom_bidding_floodlight). +// script if successful. Requests creating a custom bidding script under an +// algorithm assigned to a line item will return an error. // // - customBiddingAlgorithmId: The ID of the custom bidding algorithm that owns // the script. @@ -36577,8 +36566,8 @@ type SdfdownloadtasksCreateCall struct { // operation is SdfDownloadTaskMetadata. If the request is successful, the // response type of the operation is SdfDownloadTask. The response will not // include the download files, which must be retrieved with media.download. The -// state of operation can be retrieved with sdfdownloadtask.operations.get. Any -// errors can be found in the error.message. Note that error.details is +// state of operation can be retrieved with `sdfdownloadtasks.operations.get`. +// Any errors can be found in the error.message. Note that error.details is // expected to be empty. func (r *SdfdownloadtasksService) Create(createsdfdownloadtaskrequest *CreateSdfDownloadTaskRequest) *SdfdownloadtasksCreateCall { c := &SdfdownloadtasksCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} diff --git a/drive/v2/drive-api.json b/drive/v2/drive-api.json index 6b39abdc94c..b75c0eb3ae7 100644 --- a/drive/v2/drive-api.json +++ b/drive/v2/drive-api.json @@ -3887,7 +3887,7 @@ } } }, - "revision": "20250329", + "revision": "20250419", "rootUrl": "https://www.googleapis.com/", "schemas": { "About": { @@ -6743,33 +6743,40 @@ "properties": { "displayName": { "description": "Output only. A plain text displayable name for this user.", + "readOnly": true, "type": "string" }, "emailAddress": { "description": "Output only. The email address of the user.", + "readOnly": true, "type": "string" }, "isAuthenticatedUser": { "description": "Output only. Whether this user is the same as the authenticated user for whom the request was made.", + "readOnly": true, "type": "boolean" }, "kind": { "default": "drive#user", "description": "Output only. This is always `drive#user`.", + "readOnly": true, "type": "string" }, "permissionId": { "description": "Output only. The user's ID as visible in the permissions collection.", + "readOnly": true, "type": "string" }, "picture": { "description": "Output only. The user's profile picture.", "properties": { "url": { - "description": "Output Only. A URL that points to a profile picture of this user.", + "description": "Output only. A URL that points to a profile picture of this user.", + "readOnly": true, "type": "string" } }, + "readOnly": true, "type": "object" } }, diff --git a/drive/v2/drive-gen.go b/drive/v2/drive-gen.go index 43018357fd0..a870c706b28 100644 --- a/drive/v2/drive-gen.go +++ b/drive/v2/drive-gen.go @@ -3491,7 +3491,7 @@ func (s User) MarshalJSON() ([]byte, error) { // UserPicture: Output only. The user's profile picture. type UserPicture struct { - // Url: Output Only. A URL that points to a profile picture of this user. + // Url: Output only. A URL that points to a profile picture of this user. Url string `json:"url,omitempty"` // ForceSendFields is a list of field names (e.g. "Url") to unconditionally // include in API requests. By default, fields with empty or default values are diff --git a/oracledatabase/v1/oracledatabase-api.json b/oracledatabase/v1/oracledatabase-api.json index a04ce90a815..ea8344cef68 100644 --- a/oracledatabase/v1/oracledatabase-api.json +++ b/oracledatabase/v1/oracledatabase-api.json @@ -1237,7 +1237,7 @@ } } }, - "revision": "20250409", + "revision": "20250416", "rootUrl": "https://oracledatabase.googleapis.com/", "schemas": { "AllConnectionStrings": { @@ -2393,6 +2393,21 @@ "format": "int32", "type": "integer" }, + "computeModel": { + "description": "Output only. The compute model of the Exadata Infrastructure.", + "enum": [ + "COMPUTE_MODEL_UNSPECIFIED", + "COMPUTE_MODEL_ECPU", + "COMPUTE_MODEL_OCPU" + ], + "enumDescriptions": [ + "Unspecified compute model.", + "Abstract measure of compute resources. ECPUs are based on the number of cores elastically allocated from a pool of compute and storage servers.", + "Physical measure of compute resources. OCPUs are based on the physical core of a processor." + ], + "readOnly": true, + "type": "string" + }, "cpuCount": { "description": "Output only. The number of enabled CPU cores.", "format": "int32", @@ -2412,6 +2427,11 @@ "readOnly": true, "type": "number" }, + "databaseServerType": { + "description": "Output only. The database server type of the Exadata Infrastructure.", + "readOnly": true, + "type": "string" + }, "dbNodeStorageSizeGb": { "description": "Output only. The local node storage allocated in GBs.", "format": "int32", @@ -2528,6 +2548,11 @@ "format": "int32", "type": "integer" }, + "storageServerType": { + "description": "Output only. The storage server type of the Exadata Infrastructure.", + "readOnly": true, + "type": "string" + }, "storageServerVersion": { "description": "Output only. The software version of the storage servers (cells) in the Exadata Infrastructure.", "readOnly": true, @@ -2546,11 +2571,11 @@ "id": "CloudVmCluster", "properties": { "backupSubnetCidr": { - "description": "Required. CIDR range of the backup subnet.", + "description": "Optional. CIDR range of the backup subnet.", "type": "string" }, "cidr": { - "description": "Required. Network settings. CIDR to use for cluster IP allocation.", + "description": "Optional. Network settings. CIDR to use for cluster IP allocation.", "type": "string" }, "createTime": { @@ -2584,7 +2609,7 @@ "type": "string" }, "network": { - "description": "Required. The name of the VPC network. Format: projects/{project}/global/networks/{network}", + "description": "Optional. The name of the VPC network. Format: projects/{project}/global/networks/{network}", "type": "string" }, "properties": { @@ -2607,6 +2632,21 @@ "readOnly": true, "type": "string" }, + "computeModel": { + "description": "Output only. The compute model of the VM Cluster.", + "enum": [ + "COMPUTE_MODEL_UNSPECIFIED", + "COMPUTE_MODEL_ECPU", + "COMPUTE_MODEL_OCPU" + ], + "enumDescriptions": [ + "Unspecified compute model.", + "Abstract measure of compute resources. ECPUs are based on the number of cores elastically allocated from a pool of compute and storage servers.", + "Physical measure of compute resources. OCPUs are based on the physical core of a processor." + ], + "readOnly": true, + "type": "string" + }, "cpuCoreCount": { "description": "Required. Number of enabled CPU cores.", "format": "int32", diff --git a/oracledatabase/v1/oracledatabase-gen.go b/oracledatabase/v1/oracledatabase-gen.go index 7dd179fdfa4..7999ac430fa 100644 --- a/oracledatabase/v1/oracledatabase-gen.go +++ b/oracledatabase/v1/oracledatabase-gen.go @@ -1263,12 +1263,25 @@ type CloudExadataInfrastructureProperties struct { // ComputeCount: Optional. The number of compute servers for the Exadata // Infrastructure. ComputeCount int64 `json:"computeCount,omitempty"` + // ComputeModel: Output only. The compute model of the Exadata Infrastructure. + // + // Possible values: + // "COMPUTE_MODEL_UNSPECIFIED" - Unspecified compute model. + // "COMPUTE_MODEL_ECPU" - Abstract measure of compute resources. ECPUs are + // based on the number of cores elastically allocated from a pool of compute + // and storage servers. + // "COMPUTE_MODEL_OCPU" - Physical measure of compute resources. OCPUs are + // based on the physical core of a processor. + ComputeModel string `json:"computeModel,omitempty"` // CpuCount: Output only. The number of enabled CPU cores. CpuCount int64 `json:"cpuCount,omitempty"` // CustomerContacts: Optional. The list of customer contacts. CustomerContacts []*CustomerContact `json:"customerContacts,omitempty"` // DataStorageSizeTb: Output only. Size, in terabytes, of the DATA disk group. DataStorageSizeTb float64 `json:"dataStorageSizeTb,omitempty"` + // DatabaseServerType: Output only. The database server type of the Exadata + // Infrastructure. + DatabaseServerType string `json:"databaseServerType,omitempty"` // DbNodeStorageSizeGb: Output only. The local node storage allocated in GBs. DbNodeStorageSizeGb int64 `json:"dbNodeStorageSizeGb,omitempty"` // DbServerVersion: Output only. The software version of the database servers @@ -1326,6 +1339,9 @@ type CloudExadataInfrastructureProperties struct { // StorageCount: Optional. The number of Cloud Exadata storage servers for the // Exadata Infrastructure. StorageCount int64 `json:"storageCount,omitempty"` + // StorageServerType: Output only. The storage server type of the Exadata + // Infrastructure. + StorageServerType string `json:"storageServerType,omitempty"` // StorageServerVersion: Output only. The software version of the storage // servers (cells) in the Exadata Infrastructure. StorageServerVersion string `json:"storageServerVersion,omitempty"` @@ -1369,9 +1385,9 @@ func (s *CloudExadataInfrastructureProperties) UnmarshalJSON(data []byte) error // CloudVmCluster: Details of the Cloud VM Cluster resource. // https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/CloudVmCluster/ type CloudVmCluster struct { - // BackupSubnetCidr: Required. CIDR range of the backup subnet. + // BackupSubnetCidr: Optional. CIDR range of the backup subnet. BackupSubnetCidr string `json:"backupSubnetCidr,omitempty"` - // Cidr: Required. Network settings. CIDR to use for cluster IP allocation. + // Cidr: Optional. Network settings. CIDR to use for cluster IP allocation. Cidr string `json:"cidr,omitempty"` // CreateTime: Output only. The date and time that the VM cluster was created. CreateTime string `json:"createTime,omitempty"` @@ -1391,7 +1407,7 @@ type CloudVmCluster struct { // Name: Identifier. The name of the VM Cluster resource with the format: // projects/{project}/locations/{region}/cloudVmClusters/{cloud_vm_cluster} Name string `json:"name,omitempty"` - // Network: Required. The name of the VPC network. Format: + // Network: Optional. The name of the VPC network. Format: // projects/{project}/global/networks/{network} Network string `json:"network,omitempty"` // Properties: Optional. Various properties of the VM Cluster. @@ -1424,6 +1440,16 @@ type CloudVmClusterProperties struct { ClusterName string `json:"clusterName,omitempty"` // CompartmentId: Output only. Compartment ID of cluster. CompartmentId string `json:"compartmentId,omitempty"` + // ComputeModel: Output only. The compute model of the VM Cluster. + // + // Possible values: + // "COMPUTE_MODEL_UNSPECIFIED" - Unspecified compute model. + // "COMPUTE_MODEL_ECPU" - Abstract measure of compute resources. ECPUs are + // based on the number of cores elastically allocated from a pool of compute + // and storage servers. + // "COMPUTE_MODEL_OCPU" - Physical measure of compute resources. OCPUs are + // based on the physical core of a processor. + ComputeModel string `json:"computeModel,omitempty"` // CpuCoreCount: Required. Number of enabled CPU cores. CpuCoreCount int64 `json:"cpuCoreCount,omitempty"` // DataStorageSizeTb: Optional. The data disk group size to be allocated in diff --git a/redis/v1beta1/redis-api.json b/redis/v1beta1/redis-api.json index 634fb693e54..27fb9a4c9ca 100644 --- a/redis/v1beta1/redis-api.json +++ b/redis/v1beta1/redis-api.json @@ -1073,7 +1073,7 @@ } } }, - "revision": "20250320", + "revision": "20250418", "rootUrl": "https://redis.googleapis.com/", "schemas": { "AOFConfig": { @@ -2132,7 +2132,13 @@ "SIGNAL_TYPE_NO_DELETION_PROTECTION", "SIGNAL_TYPE_INEFFICIENT_QUERY", "SIGNAL_TYPE_READ_INTENSIVE_WORKLOAD", - "SIGNAL_TYPE_MEMORY_LIMIT" + "SIGNAL_TYPE_MEMORY_LIMIT", + "SIGNAL_TYPE_MAX_SERVER_MEMORY", + "SIGNAL_TYPE_LARGE_ROWS", + "SIGNAL_TYPE_HIGH_WRITE_PRESSURE", + "SIGNAL_TYPE_HIGH_READ_PRESSURE", + "SIGNAL_TYPE_ENCRYPTION_ORG_POLICY_NOT_SATISFIED", + "SIGNAL_TYPE_LOCATION_ORG_POLICY_NOT_SATISFIED" ], "enumDeprecated": [ false, @@ -2224,6 +2230,12 @@ false, false, false, + false, + false, + false, + false, + false, + false, false ], "enumDescriptions": [ @@ -2316,7 +2328,13 @@ "Deletion Protection Disabled for the resource", "Indicates that the instance has inefficient queries detected.", "Indicates that the instance has read intensive workload.", - "Indicates that the instance is nearing memory limit." + "Indicates that the instance is nearing memory limit.", + "Indicates that the instance's max server memory is configured higher than the recommended value.", + "Indicates that the database has large rows beyond the recommended limit.", + "Heavy write pressure on the database rows.", + "Heavy read pressure on the database rows.", + "Encryption org policy not satisfied.", + "Location org policy not satisfied." ], "type": "string" }, @@ -2727,7 +2745,13 @@ "SIGNAL_TYPE_NO_DELETION_PROTECTION", "SIGNAL_TYPE_INEFFICIENT_QUERY", "SIGNAL_TYPE_READ_INTENSIVE_WORKLOAD", - "SIGNAL_TYPE_MEMORY_LIMIT" + "SIGNAL_TYPE_MEMORY_LIMIT", + "SIGNAL_TYPE_MAX_SERVER_MEMORY", + "SIGNAL_TYPE_LARGE_ROWS", + "SIGNAL_TYPE_HIGH_WRITE_PRESSURE", + "SIGNAL_TYPE_HIGH_READ_PRESSURE", + "SIGNAL_TYPE_ENCRYPTION_ORG_POLICY_NOT_SATISFIED", + "SIGNAL_TYPE_LOCATION_ORG_POLICY_NOT_SATISFIED" ], "enumDeprecated": [ false, @@ -2819,6 +2843,12 @@ false, false, false, + false, + false, + false, + false, + false, + false, false ], "enumDescriptions": [ @@ -2911,7 +2941,13 @@ "Deletion Protection Disabled for the resource", "Indicates that the instance has inefficient queries detected.", "Indicates that the instance has read intensive workload.", - "Indicates that the instance is nearing memory limit." + "Indicates that the instance is nearing memory limit.", + "Indicates that the instance's max server memory is configured higher than the recommended value.", + "Indicates that the database has large rows beyond the recommended limit.", + "Heavy write pressure on the database rows.", + "Heavy read pressure on the database rows.", + "Encryption org policy not satisfied.", + "Location org policy not satisfied." ], "type": "string" } @@ -4176,8 +4212,9 @@ "ON_PREM", "PRODUCT_TYPE_MEMORYSTORE", "PRODUCT_TYPE_BIGTABLE", - "PRODUCT_TYPE_OTHER", - "PRODUCT_TYPE_FIRESTORE" + "PRODUCT_TYPE_FIRESTORE", + "PRODUCT_TYPE_COMPUTE_ENGINE", + "PRODUCT_TYPE_OTHER" ], "enumDeprecated": [ false, @@ -4191,6 +4228,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -4204,8 +4242,9 @@ "On premises database product.", "Memorystore product area in GCP", "Bigtable product area in GCP", - "Other refers to rest of other product type. This is to be when product type is known, but it is not present in this enum.", - "Firestore product area in GCP." + "Firestore product area in GCP.", + "Compute Engine self managed databases", + "Other refers to rest of other product type. This is to be when product type is known, but it is not present in this enum." ], "type": "string" }, diff --git a/redis/v1beta1/redis-gen.go b/redis/v1beta1/redis-gen.go index 8d9cb0ece24..2ebce037397 100644 --- a/redis/v1beta1/redis-gen.go +++ b/redis/v1beta1/redis-gen.go @@ -1404,6 +1404,18 @@ type DatabaseResourceHealthSignalData struct { // read intensive workload. // "SIGNAL_TYPE_MEMORY_LIMIT" - Indicates that the instance is nearing memory // limit. + // "SIGNAL_TYPE_MAX_SERVER_MEMORY" - Indicates that the instance's max server + // memory is configured higher than the recommended value. + // "SIGNAL_TYPE_LARGE_ROWS" - Indicates that the database has large rows + // beyond the recommended limit. + // "SIGNAL_TYPE_HIGH_WRITE_PRESSURE" - Heavy write pressure on the database + // rows. + // "SIGNAL_TYPE_HIGH_READ_PRESSURE" - Heavy read pressure on the database + // rows. + // "SIGNAL_TYPE_ENCRYPTION_ORG_POLICY_NOT_SATISFIED" - Encryption org policy + // not satisfied. + // "SIGNAL_TYPE_LOCATION_ORG_POLICY_NOT_SATISFIED" - Location org policy not + // satisfied. SignalType string `json:"signalType,omitempty"` // Possible values: // "STATE_UNSPECIFIED" - Unspecified state. @@ -1871,6 +1883,18 @@ type DatabaseResourceRecommendationSignalData struct { // read intensive workload. // "SIGNAL_TYPE_MEMORY_LIMIT" - Indicates that the instance is nearing memory // limit. + // "SIGNAL_TYPE_MAX_SERVER_MEMORY" - Indicates that the instance's max server + // memory is configured higher than the recommended value. + // "SIGNAL_TYPE_LARGE_ROWS" - Indicates that the database has large rows + // beyond the recommended limit. + // "SIGNAL_TYPE_HIGH_WRITE_PRESSURE" - Heavy write pressure on the database + // rows. + // "SIGNAL_TYPE_HIGH_READ_PRESSURE" - Heavy read pressure on the database + // rows. + // "SIGNAL_TYPE_ENCRYPTION_ORG_POLICY_NOT_SATISFIED" - Encryption org policy + // not satisfied. + // "SIGNAL_TYPE_LOCATION_ORG_POLICY_NOT_SATISFIED" - Location org policy not + // satisfied. SignalType string `json:"signalType,omitempty"` // ForceSendFields is a list of field names (e.g. "AdditionalMetadata") to // unconditionally include in API requests. By default, fields with empty or @@ -3347,9 +3371,10 @@ type Product struct { // "ON_PREM" - On premises database product. // "PRODUCT_TYPE_MEMORYSTORE" - Memorystore product area in GCP // "PRODUCT_TYPE_BIGTABLE" - Bigtable product area in GCP + // "PRODUCT_TYPE_FIRESTORE" - Firestore product area in GCP. + // "PRODUCT_TYPE_COMPUTE_ENGINE" - Compute Engine self managed databases // "PRODUCT_TYPE_OTHER" - Other refers to rest of other product type. This is // to be when product type is known, but it is not present in this enum. - // "PRODUCT_TYPE_FIRESTORE" - Firestore product area in GCP. Type string `json:"type,omitempty"` // Version: Version of the underlying database engine. Example values: For // MySQL, it could be "8.0", "5.7" etc.. For Postgres, it could be "14", "15" diff --git a/retail/v2/retail-api.json b/retail/v2/retail-api.json index 5132b5a8548..4f106067261 100644 --- a/retail/v2/retail-api.json +++ b/retail/v2/retail-api.json @@ -2223,7 +2223,7 @@ } } }, - "revision": "20250327", + "revision": "20250417", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -3778,7 +3778,7 @@ "type": "object" }, "availability": { - "description": "Optional. The availability of the Product at this place_id. Default to Availability.IN_STOCK. For primary products with variants set the availability of the primary as Availability.OUT_OF_STOCK and set the true availability at the variant level. This way the primary product will be considered \"in stock\" as long as it has at least one variant in stock. For primary products with no variants set the true availability at the primary level. Corresponding properties: Google Merchant Center property [availability](https://support.google.com/merchants/answer/6324448). Schema.org property [Offer.availability](https://schema.org/availability).", + "description": "Optional. The availability of the Product at this place_id. Default to Availability.IN_STOCK. For primary products with variants set the availability of the primary as Availability.OUT_OF_STOCK and set the true availability at the variant level. This way the primary product will be considered \"in stock\" as long as it has at least one variant in stock. For primary products with no variants set the true availability at the primary level. Corresponding properties: Google Merchant Center property [availability](https://support.google.com/merchants/answer/6324448). Schema.org property [Offer.availability](https://schema.org/availability). This field is currently only used by the Recommendations API. For Search, please make use of fulfillment_types or custom attributes for similar behaviour. See [here]( https://cloud.google.com/retail/docs/local-inventory-updates#local-inventory-update-methods) for more details.", "enum": [ "AVAILABILITY_UNSPECIFIED", "IN_STOCK", diff --git a/retail/v2/retail-gen.go b/retail/v2/retail-gen.go index 86818caf340..edf24d7eee4 100644 --- a/retail/v2/retail-gen.go +++ b/retail/v2/retail-gen.go @@ -2795,6 +2795,11 @@ type GoogleCloudRetailV2LocalInventory struct { // level. Corresponding properties: Google Merchant Center property // availability (https://support.google.com/merchants/answer/6324448). // Schema.org property Offer.availability (https://schema.org/availability). + // This field is currently only used by the Recommendations API. For Search, + // please make use of fulfillment_types or custom attributes for similar + // behaviour. See here ( + // https://cloud.google.com/retail/docs/local-inventory-updates#local-inventory-update-methods) + // for more details. // // Possible values: // "AVAILABILITY_UNSPECIFIED" - Default product availability. Default to diff --git a/retail/v2alpha/retail-api.json b/retail/v2alpha/retail-api.json index 84599aa8ee9..66b757f4323 100644 --- a/retail/v2alpha/retail-api.json +++ b/retail/v2alpha/retail-api.json @@ -2800,7 +2800,7 @@ } } }, - "revision": "20250327", + "revision": "20250417", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -5578,7 +5578,7 @@ "type": "object" }, "availability": { - "description": "Optional. The availability of the Product at this place_id. Default to Availability.IN_STOCK. For primary products with variants set the availability of the primary as Availability.OUT_OF_STOCK and set the true availability at the variant level. This way the primary product will be considered \"in stock\" as long as it has at least one variant in stock. For primary products with no variants set the true availability at the primary level. Corresponding properties: Google Merchant Center property [availability](https://support.google.com/merchants/answer/6324448). Schema.org property [Offer.availability](https://schema.org/availability).", + "description": "Optional. The availability of the Product at this place_id. Default to Availability.IN_STOCK. For primary products with variants set the availability of the primary as Availability.OUT_OF_STOCK and set the true availability at the variant level. This way the primary product will be considered \"in stock\" as long as it has at least one variant in stock. For primary products with no variants set the true availability at the primary level. Corresponding properties: Google Merchant Center property [availability](https://support.google.com/merchants/answer/6324448). Schema.org property [Offer.availability](https://schema.org/availability). This field is currently only used by the Recommendations API. For Search, please make use of fulfillment_types or custom attributes for similar behaviour. See [here]( https://cloud.google.com/retail/docs/local-inventory-updates#local-inventory-update-methods) for more details.", "enum": [ "AVAILABILITY_UNSPECIFIED", "IN_STOCK", diff --git a/retail/v2alpha/retail-gen.go b/retail/v2alpha/retail-gen.go index 71f8c891486..d5f6352e7bd 100644 --- a/retail/v2alpha/retail-gen.go +++ b/retail/v2alpha/retail-gen.go @@ -4678,6 +4678,11 @@ type GoogleCloudRetailV2alphaLocalInventory struct { // level. Corresponding properties: Google Merchant Center property // availability (https://support.google.com/merchants/answer/6324448). // Schema.org property Offer.availability (https://schema.org/availability). + // This field is currently only used by the Recommendations API. For Search, + // please make use of fulfillment_types or custom attributes for similar + // behaviour. See here ( + // https://cloud.google.com/retail/docs/local-inventory-updates#local-inventory-update-methods) + // for more details. // // Possible values: // "AVAILABILITY_UNSPECIFIED" - Default product availability. Default to diff --git a/retail/v2beta/retail-api.json b/retail/v2beta/retail-api.json index 857d32edba6..964f15bddff 100644 --- a/retail/v2beta/retail-api.json +++ b/retail/v2beta/retail-api.json @@ -2368,7 +2368,7 @@ } } }, - "revision": "20250327", + "revision": "20250417", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -5511,7 +5511,7 @@ "type": "object" }, "availability": { - "description": "Optional. The availability of the Product at this place_id. Default to Availability.IN_STOCK. For primary products with variants set the availability of the primary as Availability.OUT_OF_STOCK and set the true availability at the variant level. This way the primary product will be considered \"in stock\" as long as it has at least one variant in stock. For primary products with no variants set the true availability at the primary level. Corresponding properties: Google Merchant Center property [availability](https://support.google.com/merchants/answer/6324448). Schema.org property [Offer.availability](https://schema.org/availability).", + "description": "Optional. The availability of the Product at this place_id. Default to Availability.IN_STOCK. For primary products with variants set the availability of the primary as Availability.OUT_OF_STOCK and set the true availability at the variant level. This way the primary product will be considered \"in stock\" as long as it has at least one variant in stock. For primary products with no variants set the true availability at the primary level. Corresponding properties: Google Merchant Center property [availability](https://support.google.com/merchants/answer/6324448). Schema.org property [Offer.availability](https://schema.org/availability). This field is currently only used by the Recommendations API. For Search, please make use of fulfillment_types or custom attributes for similar behaviour. See [here]( https://cloud.google.com/retail/docs/local-inventory-updates#local-inventory-update-methods) for more details.", "enum": [ "AVAILABILITY_UNSPECIFIED", "IN_STOCK", diff --git a/retail/v2beta/retail-gen.go b/retail/v2beta/retail-gen.go index ef588bed261..a0d55d9dcd4 100644 --- a/retail/v2beta/retail-gen.go +++ b/retail/v2beta/retail-gen.go @@ -5094,6 +5094,11 @@ type GoogleCloudRetailV2betaLocalInventory struct { // level. Corresponding properties: Google Merchant Center property // availability (https://support.google.com/merchants/answer/6324448). // Schema.org property Offer.availability (https://schema.org/availability). + // This field is currently only used by the Recommendations API. For Search, + // please make use of fulfillment_types or custom attributes for similar + // behaviour. See here ( + // https://cloud.google.com/retail/docs/local-inventory-updates#local-inventory-update-methods) + // for more details. // // Possible values: // "AVAILABILITY_UNSPECIFIED" - Default product availability. Default to diff --git a/sqladmin/v1/sqladmin-api.json b/sqladmin/v1/sqladmin-api.json index d54b0ee0494..96d6c1e3684 100644 --- a/sqladmin/v1/sqladmin-api.json +++ b/sqladmin/v1/sqladmin-api.json @@ -2565,7 +2565,7 @@ } } }, - "revision": "20250310", + "revision": "20250412", "rootUrl": "https://sqladmin.googleapis.com/", "schemas": { "AclEntry": { @@ -2710,7 +2710,7 @@ "type": "string" }, "databaseVersion": { - "description": "Output only. The database version of the instance of when this backup was made.", + "description": "Output only. The database version of the instance of at the time this backup was made.", "enum": [ "SQL_DATABASE_VERSION_UNSPECIFIED", "MYSQL_5_1", @@ -2731,7 +2731,6 @@ "MYSQL_8_0_35", "MYSQL_8_0_36", "MYSQL_8_0_37", - "MYSQL_8_0_38", "MYSQL_8_0_39", "MYSQL_8_0_40", "MYSQL_8_0_41", @@ -2804,7 +2803,6 @@ false, false, false, - false, false ], "enumDescriptions": [ @@ -2827,7 +2825,6 @@ "The database major version is MySQL 8.0 and the minor version is 35.", "The database major version is MySQL 8.0 and the minor version is 36.", "The database major version is MySQL 8.0 and the minor version is 37.", - "The database major version is MySQL 8.0 and the minor version is 38.", "The database major version is MySQL 8.0 and the minor version is 39.", "The database major version is MySQL 8.0 and the minor version is 40.", "The database major version is MySQL 8.0 and the minor version is 41.", @@ -3137,7 +3134,7 @@ "type": "string" }, "databaseVersion": { - "description": "Output only. The instance database version when this backup was made.", + "description": "Output only. The instance database version at the time this backup was made.", "enum": [ "SQL_DATABASE_VERSION_UNSPECIFIED", "MYSQL_5_1", @@ -3158,7 +3155,6 @@ "MYSQL_8_0_35", "MYSQL_8_0_36", "MYSQL_8_0_37", - "MYSQL_8_0_38", "MYSQL_8_0_39", "MYSQL_8_0_40", "MYSQL_8_0_41", @@ -3231,7 +3227,6 @@ false, false, false, - false, false ], "enumDescriptions": [ @@ -3254,7 +3249,6 @@ "The database major version is MySQL 8.0 and the minor version is 35.", "The database major version is MySQL 8.0 and the minor version is 36.", "The database major version is MySQL 8.0 and the minor version is 37.", - "The database major version is MySQL 8.0 and the minor version is 38.", "The database major version is MySQL 8.0 and the minor version is 39.", "The database major version is MySQL 8.0 and the minor version is 40.", "The database major version is MySQL 8.0 and the minor version is 41.", @@ -3488,16 +3482,16 @@ "type": "object" }, "ConnectPoolNodeConfig": { - "description": "Details of a single node of a read pool.", + "description": "Details of a single read pool node of a read pool.", "id": "ConnectPoolNodeConfig", "properties": { "dnsName": { - "description": "Output only. The DNS name of the node.", + "description": "Output only. The DNS name of the read pool node.", "readOnly": true, "type": "string" }, "dnsNames": { - "description": "Output only. The list of DNS names used by this node.", + "description": "Output only. The list of DNS names used by this read pool node.", "items": { "$ref": "DnsNameMapping" }, @@ -3505,7 +3499,7 @@ "type": "array" }, "ipAddresses": { - "description": "Output only. Mappings containing IP addresses that can be used to connect to the node.", + "description": "Output only. Mappings containing IP addresses that can be used to connect to the read pool node.", "items": { "$ref": "IpMapping" }, @@ -3513,7 +3507,7 @@ "type": "array" }, "name": { - "description": "Output only. The name of the node. Doesn't include the project ID.", + "description": "Output only. The name of the read pool node. Doesn't include the project ID.", "readOnly": true, "type": "string" } @@ -3575,7 +3569,6 @@ "MYSQL_8_0_35", "MYSQL_8_0_36", "MYSQL_8_0_37", - "MYSQL_8_0_38", "MYSQL_8_0_39", "MYSQL_8_0_40", "MYSQL_8_0_41", @@ -3648,7 +3641,6 @@ false, false, false, - false, false ], "enumDescriptions": [ @@ -3671,7 +3663,6 @@ "The database major version is MySQL 8.0 and the minor version is 35.", "The database major version is MySQL 8.0 and the minor version is 36.", "The database major version is MySQL 8.0 and the minor version is 37.", - "The database major version is MySQL 8.0 and the minor version is 38.", "The database major version is MySQL 8.0 and the minor version is 39.", "The database major version is MySQL 8.0 and the minor version is 40.", "The database major version is MySQL 8.0 and the minor version is 41.", @@ -3725,12 +3716,12 @@ "type": "string" }, "nodeCount": { - "description": "The number of nodes in a read pool.", + "description": "The number of read pool nodes in a read pool.", "format": "int32", "type": "integer" }, "nodes": { - "description": "Output only. Entries containing information about each node of the read pool.", + "description": "Output only. Entries containing information about each read pool node of the read pool.", "items": { "$ref": "ConnectPoolNodeConfig" }, @@ -3772,18 +3763,6 @@ "description": "The managed connection pooling configuration.", "id": "ConnectionPoolConfig", "properties": { - "clientConnectionIdleTimeout": { - "deprecated": true, - "description": "Client idle timeout.", - "format": "google-duration", - "type": "string" - }, - "connPoolSize": { - "deprecated": true, - "description": "Managed connection pool size.", - "format": "int32", - "type": "integer" - }, "connectionPoolingEnabled": { "description": "Whether managed connection pooling is enabled.", "type": "boolean" @@ -3794,39 +3773,6 @@ "$ref": "ConnectionPoolFlags" }, "type": "array" - }, - "maxClientConnections": { - "deprecated": true, - "description": "Maximum number of client connections in connection pool.", - "format": "int32", - "type": "integer" - }, - "poolMode": { - "deprecated": true, - "description": "The managed connection pool mode for the instance.", - "enum": [ - "POOL_MODE_UNSPECIFIED", - "SESSION", - "TRANSACTION" - ], - "enumDescriptions": [ - "The pool mode is unknown.", - "The session mode for managed connection pooling.", - "The transaction(default) mode for managed connection pooling." - ], - "type": "string" - }, - "queryWaitTimeout": { - "deprecated": true, - "description": "Query wait timeout.", - "format": "google-duration", - "type": "string" - }, - "serverConnectionIdleTimeout": { - "deprecated": true, - "description": "Server idle timeout.", - "format": "google-duration", - "type": "string" } }, "type": "object" @@ -3991,7 +3937,6 @@ "MYSQL_8_0_35", "MYSQL_8_0_36", "MYSQL_8_0_37", - "MYSQL_8_0_38", "MYSQL_8_0_39", "MYSQL_8_0_40", "MYSQL_8_0_41", @@ -4064,7 +4009,6 @@ false, false, false, - false, false ], "enumDescriptions": [ @@ -4087,7 +4031,6 @@ "The database major version is MySQL 8.0 and the minor version is 35.", "The database major version is MySQL 8.0 and the minor version is 36.", "The database major version is MySQL 8.0 and the minor version is 37.", - "The database major version is MySQL 8.0 and the minor version is 38.", "The database major version is MySQL 8.0 and the minor version is 39.", "The database major version is MySQL 8.0 and the minor version is 40.", "The database major version is MySQL 8.0 and the minor version is 41.", @@ -4182,7 +4125,7 @@ "A regular Cloud SQL instance that is not replicating from a primary instance.", "An instance running on the customer's premises that is not managed by Cloud SQL.", "A Cloud SQL instance acting as a read-replica.", - "CloudSQL read pool." + "A Cloud SQL read pool." ], "type": "string" }, @@ -4221,12 +4164,12 @@ "type": "string" }, "nodeCount": { - "description": "The number of nodes in a read pool.", + "description": "The number of read pool nodes in a read pool.", "format": "int32", "type": "integer" }, "nodes": { - "description": "Output only. Entries containing information about each node of the read pool.", + "description": "Output only. Entries containing information about each read pool node of the read pool.", "items": { "$ref": "PoolNodeConfig" }, @@ -4722,7 +4665,7 @@ "type": "string" }, "offload": { - "description": "Option for export offload.", + "description": "Whether to perform a serverless export.", "type": "boolean" }, "sqlExportOptions": { @@ -4747,7 +4690,7 @@ "description": "Options for exporting from a Cloud SQL for PostgreSQL instance.", "properties": { "clean": { - "description": "Optional. Use this option to include DROP SQL statements. These statements are used to delete database objects before running the import operation.", + "description": "Optional. Use this option to include DROP \u003cobject\u003e SQL statements. Use these statements to delete database objects before running the import operation.", "type": "boolean" }, "ifExists": { @@ -4874,7 +4817,6 @@ "MYSQL_8_0_35", "MYSQL_8_0_36", "MYSQL_8_0_37", - "MYSQL_8_0_38", "MYSQL_8_0_39", "MYSQL_8_0_40", "MYSQL_8_0_41", @@ -4947,7 +4889,6 @@ false, false, false, - false, false ], "enumDescriptions": [ @@ -4970,7 +4911,6 @@ "The database major version is MySQL 8.0 and the minor version is 35.", "The database major version is MySQL 8.0 and the minor version is 36.", "The database major version is MySQL 8.0 and the minor version is 37.", - "The database major version is MySQL 8.0 and the minor version is 38.", "The database major version is MySQL 8.0 and the minor version is 39.", "The database major version is MySQL 8.0 and the minor version is 40.", "The database major version is MySQL 8.0 and the minor version is 41.", @@ -6183,7 +6123,7 @@ "Deprecated: ADVANCED_BACKUP is deprecated. Use ENHANCED_BACKUP instead.", "Changes the BackupTier of a Cloud SQL instance.", "Creates a backup for an Enhanced BackupTier Cloud SQL instance.", - "Repairs entire read pool or specified nodes in the read pool.", + "Repairs entire read pool or specified read pool nodes in the read pool.", "Creates a Cloud SQL read pool instance." ], "type": "string" @@ -6414,16 +6354,16 @@ "type": "object" }, "PoolNodeConfig": { - "description": "Details of a single node of a read pool.", + "description": "Details of a single read pool node of a read pool.", "id": "PoolNodeConfig", "properties": { "dnsName": { - "description": "Output only. The DNS name of the node.", + "description": "Output only. The DNS name of the read pool node.", "readOnly": true, "type": "string" }, "dnsNames": { - "description": "Output only. The list of DNS names used by this node.", + "description": "Output only. The list of DNS names used by this read pool node.", "items": { "$ref": "DnsNameMapping" }, @@ -6431,12 +6371,12 @@ "type": "array" }, "gceZone": { - "description": "Output only. The serving zone of the node.", + "description": "Output only. The zone of the read pool node.", "readOnly": true, "type": "string" }, "ipAddresses": { - "description": "Output only. Mappings containing IP addresses that can be used to connect to the node.", + "description": "Output only. Mappings containing IP addresses that can be used to connect to the read pool node.", "items": { "$ref": "IpMapping" }, @@ -6444,12 +6384,12 @@ "type": "array" }, "name": { - "description": "Output only. The name of the node, to be used for retrieving metrics and logs for the node.", + "description": "Output only. The name of the read pool node, to be used for retrieving metrics and logs.", "readOnly": true, "type": "string" }, "state": { - "description": "Output only. The current state of the node.", + "description": "Output only. The current state of the read pool node.", "enum": [ "SQL_INSTANCE_STATE_UNSPECIFIED", "RUNNABLE", @@ -6849,7 +6789,7 @@ "type": "boolean" }, "enableGoogleMlIntegration": { - "description": "Optional. When this parameter is set to true, Cloud SQL instances can connect to Vertex AI to pass requests for real-time predictions and insights to the AI. The default value is false. This applies only to Cloud SQL for PostgreSQL instances.", + "description": "Optional. When this parameter is set to true, Cloud SQL instances can connect to Vertex AI to pass requests for real-time predictions and insights to the AI. The default value is false. This applies only to Cloud SQL for MySQL and Cloud SQL for PostgreSQL instances.", "type": "boolean" }, "insightsConfig": { @@ -7695,6 +7635,20 @@ "description": "Optional. The host from which the user can connect. For `insert` operations, host defaults to an empty string. For `update` operations, host is specified as part of the request URL. The host name cannot be updated after insertion. For a MySQL instance, it's required; for a PostgreSQL or SQL Server instance, it's optional.", "type": "string" }, + "iamStatus": { + "description": "Indicates if user is active for IAM Authentication.", + "enum": [ + "IAM_STATUS_UNSPECIFIED", + "INACTIVE", + "ACTIVE" + ], + "enumDescriptions": [ + "The default value for users that are not of type CLOUD_IAM_GROUP. Only CLOUD_IAM_GROUP users will be inactive/active. Will not display any value in UI.", + "User is not available for IAM Authentication.", + "User is available for IAM Authentication." + ], + "type": "string" + }, "instance": { "description": "The name of the Cloud SQL instance. This does not include the project ID. Can be omitted for `update` because it is already specified on the URL.", "type": "string" diff --git a/sqladmin/v1/sqladmin-gen.go b/sqladmin/v1/sqladmin-gen.go index 95ff60d7e87..577c6d1746a 100644 --- a/sqladmin/v1/sqladmin-gen.go +++ b/sqladmin/v1/sqladmin-gen.go @@ -471,8 +471,8 @@ type Backup struct { // BackupRun: Output only. The mapping to backup run resource used for IAM // validations. BackupRun string `json:"backupRun,omitempty"` - // DatabaseVersion: Output only. The database version of the instance of when - // this backup was made. + // DatabaseVersion: Output only. The database version of the instance of at the + // time this backup was made. // // Possible values: // "SQL_DATABASE_VERSION_UNSPECIFIED" - This is an unknown database version. @@ -507,8 +507,6 @@ type Backup struct { // version is 36. // "MYSQL_8_0_37" - The database major version is MySQL 8.0 and the minor // version is 37. - // "MYSQL_8_0_38" - The database major version is MySQL 8.0 and the minor - // version is 38. // "MYSQL_8_0_39" - The database major version is MySQL 8.0 and the minor // version is 39. // "MYSQL_8_0_40" - The database major version is MySQL 8.0 and the minor @@ -797,8 +795,8 @@ type BackupRun struct { // "SNAPSHOT" - Snapshot-based backups. // "PHYSICAL" - Physical backups. BackupKind string `json:"backupKind,omitempty"` - // DatabaseVersion: Output only. The instance database version when this backup - // was made. + // DatabaseVersion: Output only. The instance database version at the time this + // backup was made. // // Possible values: // "SQL_DATABASE_VERSION_UNSPECIFIED" - This is an unknown database version. @@ -833,8 +831,6 @@ type BackupRun struct { // version is 36. // "MYSQL_8_0_37" - The database major version is MySQL 8.0 and the minor // version is 37. - // "MYSQL_8_0_38" - The database major version is MySQL 8.0 and the minor - // version is 38. // "MYSQL_8_0_39" - The database major version is MySQL 8.0 and the minor // version is 39. // "MYSQL_8_0_40" - The database major version is MySQL 8.0 and the minor @@ -1076,16 +1072,17 @@ func (s CloneContext) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ConnectPoolNodeConfig: Details of a single node of a read pool. +// ConnectPoolNodeConfig: Details of a single read pool node of a read pool. type ConnectPoolNodeConfig struct { - // DnsName: Output only. The DNS name of the node. + // DnsName: Output only. The DNS name of the read pool node. DnsName string `json:"dnsName,omitempty"` - // DnsNames: Output only. The list of DNS names used by this node. + // DnsNames: Output only. The list of DNS names used by this read pool node. DnsNames []*DnsNameMapping `json:"dnsNames,omitempty"` // IpAddresses: Output only. Mappings containing IP addresses that can be used - // to connect to the node. + // to connect to the read pool node. IpAddresses []*IpMapping `json:"ipAddresses,omitempty"` - // Name: Output only. The name of the node. Doesn't include the project ID. + // Name: Output only. The name of the read pool node. Doesn't include the + // project ID. Name string `json:"name,omitempty"` // ForceSendFields is a list of field names (e.g. "DnsName") to unconditionally // include in API requests. By default, fields with empty or default values are @@ -1165,8 +1162,6 @@ type ConnectSettings struct { // version is 36. // "MYSQL_8_0_37" - The database major version is MySQL 8.0 and the minor // version is 37. - // "MYSQL_8_0_38" - The database major version is MySQL 8.0 and the minor - // version is 38. // "MYSQL_8_0_39" - The database major version is MySQL 8.0 and the minor // version is 39. // "MYSQL_8_0_40" - The database major version is MySQL 8.0 and the minor @@ -1215,10 +1210,10 @@ type ConnectSettings struct { IpAddresses []*IpMapping `json:"ipAddresses,omitempty"` // Kind: This is always `sql#connectSettings`. Kind string `json:"kind,omitempty"` - // NodeCount: The number of nodes in a read pool. + // NodeCount: The number of read pool nodes in a read pool. NodeCount int64 `json:"nodeCount,omitempty"` - // Nodes: Output only. Entries containing information about each node of the - // read pool. + // Nodes: Output only. Entries containing information about each read pool node + // of the read pool. Nodes []*ConnectPoolNodeConfig `json:"nodes,omitempty"` // PscEnabled: Whether PSC connectivity is enabled for this instance. PscEnabled bool `json:"pscEnabled,omitempty"` @@ -1260,36 +1255,17 @@ func (s ConnectSettings) MarshalJSON() ([]byte, error) { // ConnectionPoolConfig: The managed connection pooling configuration. type ConnectionPoolConfig struct { - // ClientConnectionIdleTimeout: Client idle timeout. - ClientConnectionIdleTimeout string `json:"clientConnectionIdleTimeout,omitempty"` - // ConnPoolSize: Managed connection pool size. - ConnPoolSize int64 `json:"connPoolSize,omitempty"` // ConnectionPoolingEnabled: Whether managed connection pooling is enabled. ConnectionPoolingEnabled bool `json:"connectionPoolingEnabled,omitempty"` // Flags: Optional. List of connection pool configuration flags Flags []*ConnectionPoolFlags `json:"flags,omitempty"` - // MaxClientConnections: Maximum number of client connections in connection - // pool. - MaxClientConnections int64 `json:"maxClientConnections,omitempty"` - // PoolMode: The managed connection pool mode for the instance. - // - // Possible values: - // "POOL_MODE_UNSPECIFIED" - The pool mode is unknown. - // "SESSION" - The session mode for managed connection pooling. - // "TRANSACTION" - The transaction(default) mode for managed connection - // pooling. - PoolMode string `json:"poolMode,omitempty"` - // QueryWaitTimeout: Query wait timeout. - QueryWaitTimeout string `json:"queryWaitTimeout,omitempty"` - // ServerConnectionIdleTimeout: Server idle timeout. - ServerConnectionIdleTimeout string `json:"serverConnectionIdleTimeout,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "ClientConnectionIdleTimeout") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields - // for more details. + // ForceSendFields is a list of field names (e.g. "ConnectionPoolingEnabled") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ClientConnectionIdleTimeout") to + // NullFields is a list of field names (e.g. "ConnectionPoolingEnabled") to // include in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -1494,8 +1470,6 @@ type DatabaseInstance struct { // version is 36. // "MYSQL_8_0_37" - The database major version is MySQL 8.0 and the minor // version is 37. - // "MYSQL_8_0_38" - The database major version is MySQL 8.0 and the minor - // version is 38. // "MYSQL_8_0_39" - The database major version is MySQL 8.0 and the minor // version is 39. // "MYSQL_8_0_40" - The database major version is MySQL 8.0 and the minor @@ -1571,7 +1545,7 @@ type DatabaseInstance struct { // "ON_PREMISES_INSTANCE" - An instance running on the customer's premises // that is not managed by Cloud SQL. // "READ_REPLICA_INSTANCE" - A Cloud SQL instance acting as a read-replica. - // "READ_POOL_INSTANCE" - CloudSQL read pool. + // "READ_POOL_INSTANCE" - A Cloud SQL read pool. InstanceType string `json:"instanceType,omitempty"` // IpAddresses: The assigned IP addresses for the instance. IpAddresses []*IpMapping `json:"ipAddresses,omitempty"` @@ -1589,10 +1563,10 @@ type DatabaseInstance struct { MaxDiskSize int64 `json:"maxDiskSize,omitempty,string"` // Name: Name of the Cloud SQL instance. This does not include the project ID. Name string `json:"name,omitempty"` - // NodeCount: The number of nodes in a read pool. + // NodeCount: The number of read pool nodes in a read pool. NodeCount int64 `json:"nodeCount,omitempty"` - // Nodes: Output only. Entries containing information about each node of the - // read pool. + // Nodes: Output only. Entries containing information about each read pool node + // of the read pool. Nodes []*PoolNodeConfig `json:"nodes,omitempty"` // OnPremisesConfiguration: Configuration specific to on-premises instances. OnPremisesConfiguration *OnPremisesConfiguration `json:"onPremisesConfiguration,omitempty"` @@ -2071,7 +2045,7 @@ type ExportContext struct { FileType string `json:"fileType,omitempty"` // Kind: This is always `sql#exportContext`. Kind string `json:"kind,omitempty"` - // Offload: Option for export offload. + // Offload: Whether to perform a serverless export. Offload bool `json:"offload,omitempty"` // SqlExportOptions: Options for exporting data as SQL statements. SqlExportOptions *ExportContextSqlExportOptions `json:"sqlExportOptions,omitempty"` @@ -2254,8 +2228,8 @@ func (s ExportContextSqlExportOptionsMysqlExportOptions) MarshalJSON() ([]byte, // ExportContextSqlExportOptionsPostgresExportOptions: Options for exporting // from a Cloud SQL for PostgreSQL instance. type ExportContextSqlExportOptionsPostgresExportOptions struct { - // Clean: Optional. Use this option to include DROP SQL statements. These - // statements are used to delete database objects before running the import + // Clean: Optional. Use this option to include DROP SQL statements. + // Use these statements to delete database objects before running the import // operation. Clean bool `json:"clean,omitempty"` // IfExists: Optional. Option to include an IF EXISTS SQL statement with each @@ -2410,8 +2384,6 @@ type Flag struct { // version is 36. // "MYSQL_8_0_37" - The database major version is MySQL 8.0 and the minor // version is 37. - // "MYSQL_8_0_38" - The database major version is MySQL 8.0 and the minor - // version is 38. // "MYSQL_8_0_39" - The database major version is MySQL 8.0 and the minor // version is 39. // "MYSQL_8_0_40" - The database major version is MySQL 8.0 and the minor @@ -3870,8 +3842,8 @@ type Operation struct { // "MANAGE_BACKUP" - Changes the BackupTier of a Cloud SQL instance. // "ENHANCED_BACKUP" - Creates a backup for an Enhanced BackupTier Cloud SQL // instance. - // "REPAIR_READ_POOL" - Repairs entire read pool or specified nodes in the - // read pool. + // "REPAIR_READ_POOL" - Repairs entire read pool or specified read pool nodes + // in the read pool. // "CREATE_READ_POOL" - Creates a Cloud SQL read pool instance. OperationType string `json:"operationType,omitempty"` // SelfLink: The URI of this resource. @@ -4127,21 +4099,21 @@ func (s PerformDiskShrinkContext) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PoolNodeConfig: Details of a single node of a read pool. +// PoolNodeConfig: Details of a single read pool node of a read pool. type PoolNodeConfig struct { - // DnsName: Output only. The DNS name of the node. + // DnsName: Output only. The DNS name of the read pool node. DnsName string `json:"dnsName,omitempty"` - // DnsNames: Output only. The list of DNS names used by this node. + // DnsNames: Output only. The list of DNS names used by this read pool node. DnsNames []*DnsNameMapping `json:"dnsNames,omitempty"` - // GceZone: Output only. The serving zone of the node. + // GceZone: Output only. The zone of the read pool node. GceZone string `json:"gceZone,omitempty"` // IpAddresses: Output only. Mappings containing IP addresses that can be used - // to connect to the node. + // to connect to the read pool node. IpAddresses []*IpMapping `json:"ipAddresses,omitempty"` - // Name: Output only. The name of the node, to be used for retrieving metrics - // and logs for the node. + // Name: Output only. The name of the read pool node, to be used for retrieving + // metrics and logs. Name string `json:"name,omitempty"` - // State: Output only. The current state of the node. + // State: Output only. The current state of the read pool node. // // Possible values: // "SQL_INSTANCE_STATE_UNSPECIFIED" - The state of the instance is unknown. @@ -4577,7 +4549,7 @@ type Settings struct { // EnableGoogleMlIntegration: Optional. When this parameter is set to true, // Cloud SQL instances can connect to Vertex AI to pass requests for real-time // predictions and insights to the AI. The default value is false. This applies - // only to Cloud SQL for PostgreSQL instances. + // only to Cloud SQL for MySQL and Cloud SQL for PostgreSQL instances. EnableGoogleMlIntegration bool `json:"enableGoogleMlIntegration,omitempty"` // InsightsConfig: Insights configuration, for now relevant only for Postgres. InsightsConfig *InsightsConfig `json:"insightsConfig,omitempty"` @@ -5617,6 +5589,15 @@ type User struct { // after insertion. For a MySQL instance, it's required; for a PostgreSQL or // SQL Server instance, it's optional. Host string `json:"host,omitempty"` + // IamStatus: Indicates if user is active for IAM Authentication. + // + // Possible values: + // "IAM_STATUS_UNSPECIFIED" - The default value for users that are not of + // type CLOUD_IAM_GROUP. Only CLOUD_IAM_GROUP users will be inactive/active. + // Will not display any value in UI. + // "INACTIVE" - User is not available for IAM Authentication. + // "ACTIVE" - User is available for IAM Authentication. + IamStatus string `json:"iamStatus,omitempty"` // Instance: The name of the Cloud SQL instance. This does not include the // project ID. Can be omitted for `update` because it is already specified on // the URL. diff --git a/sqladmin/v1beta4/sqladmin-api.json b/sqladmin/v1beta4/sqladmin-api.json index 5aa3b2c52be..b1ab6548585 100644 --- a/sqladmin/v1beta4/sqladmin-api.json +++ b/sqladmin/v1beta4/sqladmin-api.json @@ -2565,7 +2565,7 @@ } } }, - "revision": "20250310", + "revision": "20250412", "rootUrl": "https://sqladmin.googleapis.com/", "schemas": { "AclEntry": { @@ -2710,7 +2710,7 @@ "type": "string" }, "databaseVersion": { - "description": "Output only. The database version of the instance of when this backup was made.", + "description": "Output only. The database version of the instance of at the time this backup was made.", "enum": [ "SQL_DATABASE_VERSION_UNSPECIFIED", "MYSQL_5_1", @@ -2731,7 +2731,6 @@ "MYSQL_8_0_35", "MYSQL_8_0_36", "MYSQL_8_0_37", - "MYSQL_8_0_38", "MYSQL_8_0_39", "MYSQL_8_0_40", "MYSQL_8_0_41", @@ -2804,7 +2803,6 @@ false, false, false, - false, false ], "enumDescriptions": [ @@ -2827,7 +2825,6 @@ "The database major version is MySQL 8.0 and the minor version is 35.", "The database major version is MySQL 8.0 and the minor version is 36.", "The database major version is MySQL 8.0 and the minor version is 37.", - "The database major version is MySQL 8.0 and the minor version is 38.", "The database major version is MySQL 8.0 and the minor version is 39.", "The database major version is MySQL 8.0 and the minor version is 40.", "The database major version is MySQL 8.0 and the minor version is 41.", @@ -3137,7 +3134,7 @@ "type": "string" }, "databaseVersion": { - "description": "Output only. The instance database version when this backup was made.", + "description": "Output only. The instance database version at the time this backup was made.", "enum": [ "SQL_DATABASE_VERSION_UNSPECIFIED", "MYSQL_5_1", @@ -3158,7 +3155,6 @@ "MYSQL_8_0_35", "MYSQL_8_0_36", "MYSQL_8_0_37", - "MYSQL_8_0_38", "MYSQL_8_0_39", "MYSQL_8_0_40", "MYSQL_8_0_41", @@ -3231,7 +3227,6 @@ false, false, false, - false, false ], "enumDescriptions": [ @@ -3254,7 +3249,6 @@ "The database major version is MySQL 8.0 and the minor version is 35.", "The database major version is MySQL 8.0 and the minor version is 36.", "The database major version is MySQL 8.0 and the minor version is 37.", - "The database major version is MySQL 8.0 and the minor version is 38.", "The database major version is MySQL 8.0 and the minor version is 39.", "The database major version is MySQL 8.0 and the minor version is 40.", "The database major version is MySQL 8.0 and the minor version is 41.", @@ -3488,16 +3482,16 @@ "type": "object" }, "ConnectPoolNodeConfig": { - "description": "Details of a single node of a read pool.", + "description": "Details of a single read pool node of a read pool.", "id": "ConnectPoolNodeConfig", "properties": { "dnsName": { - "description": "Output only. The DNS name of the node.", + "description": "Output only. The DNS name of the read pool node.", "readOnly": true, "type": "string" }, "dnsNames": { - "description": "Output only. The list of DNS names used by this instance.", + "description": "Output only. The list of DNS names used by this read pool node.", "items": { "$ref": "DnsNameMapping" }, @@ -3505,7 +3499,7 @@ "type": "array" }, "ipAddresses": { - "description": "Output only. Mappings containing IP addresses that can be used to connect to the node.", + "description": "Output only. Mappings containing IP addresses that can be used to connect to the read pool node.", "items": { "$ref": "IpMapping" }, @@ -3513,7 +3507,7 @@ "type": "array" }, "name": { - "description": "Output only. The name of the node. Doesn't include the project ID.", + "description": "Output only. The name of the read pool node. Doesn't include the project ID.", "readOnly": true, "type": "string" } @@ -3575,7 +3569,6 @@ "MYSQL_8_0_35", "MYSQL_8_0_36", "MYSQL_8_0_37", - "MYSQL_8_0_38", "MYSQL_8_0_39", "MYSQL_8_0_40", "MYSQL_8_0_41", @@ -3648,7 +3641,6 @@ false, false, false, - false, false ], "enumDescriptions": [ @@ -3671,7 +3663,6 @@ "The database major version is MySQL 8.0 and the minor version is 35.", "The database major version is MySQL 8.0 and the minor version is 36.", "The database major version is MySQL 8.0 and the minor version is 37.", - "The database major version is MySQL 8.0 and the minor version is 38.", "The database major version is MySQL 8.0 and the minor version is 39.", "The database major version is MySQL 8.0 and the minor version is 40.", "The database major version is MySQL 8.0 and the minor version is 41.", @@ -3725,12 +3716,12 @@ "type": "string" }, "nodeCount": { - "description": "The number of nodes in a read pool.", + "description": "The number of read pool nodes in a read pool.", "format": "int32", "type": "integer" }, "nodes": { - "description": "Output only. Entries containing information about each node of the read pool.", + "description": "Output only. Entries containing information about each read pool node of the read pool.", "items": { "$ref": "ConnectPoolNodeConfig" }, @@ -3772,18 +3763,6 @@ "description": "The managed connection pooling configuration.", "id": "ConnectionPoolConfig", "properties": { - "clientConnectionIdleTimeout": { - "deprecated": true, - "description": "Client idle timeout.", - "format": "google-duration", - "type": "string" - }, - "connPoolSize": { - "deprecated": true, - "description": "Managed connection pool size.", - "format": "int32", - "type": "integer" - }, "connectionPoolingEnabled": { "description": "Whether managed connection pooling is enabled.", "type": "boolean" @@ -3794,39 +3773,6 @@ "$ref": "ConnectionPoolFlags" }, "type": "array" - }, - "maxClientConnections": { - "deprecated": true, - "description": "Maximum number of client connections in connection pool.", - "format": "int32", - "type": "integer" - }, - "poolMode": { - "deprecated": true, - "description": "The managed connection pool mode for the instance.", - "enum": [ - "POOL_MODE_UNSPECIFIED", - "SESSION", - "TRANSACTION" - ], - "enumDescriptions": [ - "The pool mode is unknown.", - "The session mode for managed connection pooling.", - "The transaction(default) mode for managed connection pooling." - ], - "type": "string" - }, - "queryWaitTimeout": { - "deprecated": true, - "description": "Query wait timeout.", - "format": "google-duration", - "type": "string" - }, - "serverConnectionIdleTimeout": { - "deprecated": true, - "description": "Server idle timeout.", - "format": "google-duration", - "type": "string" } }, "type": "object" @@ -3991,7 +3937,6 @@ "MYSQL_8_0_35", "MYSQL_8_0_36", "MYSQL_8_0_37", - "MYSQL_8_0_38", "MYSQL_8_0_39", "MYSQL_8_0_40", "MYSQL_8_0_41", @@ -4064,7 +4009,6 @@ false, false, false, - false, false ], "enumDescriptions": [ @@ -4087,7 +4031,6 @@ "The database major version is MySQL 8.0 and the minor version is 35.", "The database major version is MySQL 8.0 and the minor version is 36.", "The database major version is MySQL 8.0 and the minor version is 37.", - "The database major version is MySQL 8.0 and the minor version is 38.", "The database major version is MySQL 8.0 and the minor version is 39.", "The database major version is MySQL 8.0 and the minor version is 40.", "The database major version is MySQL 8.0 and the minor version is 41.", @@ -4182,7 +4125,7 @@ "A regular Cloud SQL instance that is not replicating from a primary instance.", "An instance running on the customer's premises that is not managed by Cloud SQL.", "A Cloud SQL instance acting as a read-replica.", - "CloudSQL read pool." + "A Cloud SQL read pool." ], "type": "string" }, @@ -4221,12 +4164,12 @@ "type": "string" }, "nodeCount": { - "description": "The number of nodes in a read pool.", + "description": "The number of read pool nodes in a read pool.", "format": "int32", "type": "integer" }, "nodes": { - "description": "Output only. Entries containing information about each node of the read pool.", + "description": "Output only. Entries containing information about each read pool node of the read pool.", "items": { "$ref": "PoolNodeConfig" }, @@ -4723,7 +4666,7 @@ "type": "string" }, "offload": { - "description": "Option for export offload.", + "description": "Whether to perform a serverless export.", "type": "boolean" }, "sqlExportOptions": { @@ -4748,7 +4691,7 @@ "description": "Options for exporting from a Cloud SQL for PostgreSQL instance.", "properties": { "clean": { - "description": "Optional. Use this option to include DROP SQL statements. These statements are used to delete database objects before running the import operation.", + "description": "Optional. Use this option to include DROP \u003cobject\u003e SQL statements. Use these statements to delete database objects before running the import operation.", "type": "boolean" }, "ifExists": { @@ -4875,7 +4818,6 @@ "MYSQL_8_0_35", "MYSQL_8_0_36", "MYSQL_8_0_37", - "MYSQL_8_0_38", "MYSQL_8_0_39", "MYSQL_8_0_40", "MYSQL_8_0_41", @@ -4948,7 +4890,6 @@ false, false, false, - false, false ], "enumDescriptions": [ @@ -4971,7 +4912,6 @@ "The database major version is MySQL 8.0 and the minor version is 35.", "The database major version is MySQL 8.0 and the minor version is 36.", "The database major version is MySQL 8.0 and the minor version is 37.", - "The database major version is MySQL 8.0 and the minor version is 38.", "The database major version is MySQL 8.0 and the minor version is 39.", "The database major version is MySQL 8.0 and the minor version is 40.", "The database major version is MySQL 8.0 and the minor version is 41.", @@ -6184,7 +6124,7 @@ "Deprecated: ADVANCED_BACKUP is deprecated. Use ENHANCED_BACKUP instead.", "Changes the BackupTier of a Cloud SQL instance.", "Creates a backup for an Enhanced BackupTier Cloud SQL instance.", - "Repairs entire read pool or specified nodes in the read pool.", + "Repairs entire read pool or specified read pool nodes in the read pool.", "Creates a Cloud SQL read pool instance." ], "type": "string" @@ -6415,16 +6355,16 @@ "type": "object" }, "PoolNodeConfig": { - "description": "Details of a single node of a read pool.", + "description": "Details of a single read pool node of a read pool.", "id": "PoolNodeConfig", "properties": { "dnsName": { - "description": "Output only. The DNS name of the node.", + "description": "Output only. The DNS name of the read pool node.", "readOnly": true, "type": "string" }, "dnsNames": { - "description": "Output only. The list of DNS names used by this node.", + "description": "Output only. The list of DNS names used by this read pool node.", "items": { "$ref": "DnsNameMapping" }, @@ -6432,12 +6372,12 @@ "type": "array" }, "gceZone": { - "description": "Output only. The serving zone of the node.", + "description": "Output only. The zone of the read pool node.", "readOnly": true, "type": "string" }, "ipAddresses": { - "description": "Output only. Mappings containing IP addresses that can be used to connect to the node.", + "description": "Output only. Mappings containing IP addresses that can be used to connect to the read pool node.", "items": { "$ref": "IpMapping" }, @@ -6445,12 +6385,12 @@ "type": "array" }, "name": { - "description": "Output only. The name of the node, to be used for retrieving metrics and logs for the node.", + "description": "Output only. The name of the read pool node, to be used for retrieving metrics and logs.", "readOnly": true, "type": "string" }, "state": { - "description": "Output only. The current state of the node.", + "description": "Output only. The current state of the read pool node.", "enum": [ "SQL_INSTANCE_STATE_UNSPECIFIED", "RUNNABLE", @@ -6850,7 +6790,7 @@ "type": "boolean" }, "enableGoogleMlIntegration": { - "description": "Optional. When this parameter is set to true, Cloud SQL instances can connect to Vertex AI to pass requests for real-time predictions and insights to the AI. The default value is false. This applies only to Cloud SQL for PostgreSQL instances.", + "description": "Optional. When this parameter is set to true, Cloud SQL instances can connect to Vertex AI to pass requests for real-time predictions and insights to the AI. The default value is false. This applies only to Cloud SQL for MySQL and Cloud SQL for PostgreSQL instances.", "type": "boolean" }, "insightsConfig": { @@ -7694,6 +7634,20 @@ "description": "Optional. The host from which the user can connect. For `insert` operations, host defaults to an empty string. For `update` operations, host is specified as part of the request URL. The host name cannot be updated after insertion. For a MySQL instance, it's required; for a PostgreSQL or SQL Server instance, it's optional.", "type": "string" }, + "iamStatus": { + "description": "Indicates if user is active for IAM Authentication.", + "enum": [ + "IAM_STATUS_UNSPECIFIED", + "INACTIVE", + "ACTIVE" + ], + "enumDescriptions": [ + "The default value for users that are not of type CLOUD_IAM_GROUP. Only CLOUD_IAM_GROUP users will be inactive/active. Will not display any value in UI.", + "User is not available for IAM Authentication.", + "User is available for IAM Authentication." + ], + "type": "string" + }, "instance": { "description": "The name of the Cloud SQL instance. This does not include the project ID. Can be omitted for *update* because it is already specified on the URL.", "type": "string" diff --git a/sqladmin/v1beta4/sqladmin-gen.go b/sqladmin/v1beta4/sqladmin-gen.go index 1f4553d0f05..817ad267343 100644 --- a/sqladmin/v1beta4/sqladmin-gen.go +++ b/sqladmin/v1beta4/sqladmin-gen.go @@ -471,8 +471,8 @@ type Backup struct { // BackupRun: Output only. The mapping to backup run resource used for IAM // validations. BackupRun string `json:"backupRun,omitempty"` - // DatabaseVersion: Output only. The database version of the instance of when - // this backup was made. + // DatabaseVersion: Output only. The database version of the instance of at the + // time this backup was made. // // Possible values: // "SQL_DATABASE_VERSION_UNSPECIFIED" - This is an unknown database version. @@ -507,8 +507,6 @@ type Backup struct { // version is 36. // "MYSQL_8_0_37" - The database major version is MySQL 8.0 and the minor // version is 37. - // "MYSQL_8_0_38" - The database major version is MySQL 8.0 and the minor - // version is 38. // "MYSQL_8_0_39" - The database major version is MySQL 8.0 and the minor // version is 39. // "MYSQL_8_0_40" - The database major version is MySQL 8.0 and the minor @@ -796,8 +794,8 @@ type BackupRun struct { // "SNAPSHOT" - Snapshot-based backups. // "PHYSICAL" - Physical backups. BackupKind string `json:"backupKind,omitempty"` - // DatabaseVersion: Output only. The instance database version when this backup - // was made. + // DatabaseVersion: Output only. The instance database version at the time this + // backup was made. // // Possible values: // "SQL_DATABASE_VERSION_UNSPECIFIED" - This is an unknown database version. @@ -832,8 +830,6 @@ type BackupRun struct { // version is 36. // "MYSQL_8_0_37" - The database major version is MySQL 8.0 and the minor // version is 37. - // "MYSQL_8_0_38" - The database major version is MySQL 8.0 and the minor - // version is 38. // "MYSQL_8_0_39" - The database major version is MySQL 8.0 and the minor // version is 39. // "MYSQL_8_0_40" - The database major version is MySQL 8.0 and the minor @@ -1075,16 +1071,17 @@ func (s CloneContext) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ConnectPoolNodeConfig: Details of a single node of a read pool. +// ConnectPoolNodeConfig: Details of a single read pool node of a read pool. type ConnectPoolNodeConfig struct { - // DnsName: Output only. The DNS name of the node. + // DnsName: Output only. The DNS name of the read pool node. DnsName string `json:"dnsName,omitempty"` - // DnsNames: Output only. The list of DNS names used by this instance. + // DnsNames: Output only. The list of DNS names used by this read pool node. DnsNames []*DnsNameMapping `json:"dnsNames,omitempty"` // IpAddresses: Output only. Mappings containing IP addresses that can be used - // to connect to the node. + // to connect to the read pool node. IpAddresses []*IpMapping `json:"ipAddresses,omitempty"` - // Name: Output only. The name of the node. Doesn't include the project ID. + // Name: Output only. The name of the read pool node. Doesn't include the + // project ID. Name string `json:"name,omitempty"` // ForceSendFields is a list of field names (e.g. "DnsName") to unconditionally // include in API requests. By default, fields with empty or default values are @@ -1164,8 +1161,6 @@ type ConnectSettings struct { // version is 36. // "MYSQL_8_0_37" - The database major version is MySQL 8.0 and the minor // version is 37. - // "MYSQL_8_0_38" - The database major version is MySQL 8.0 and the minor - // version is 38. // "MYSQL_8_0_39" - The database major version is MySQL 8.0 and the minor // version is 39. // "MYSQL_8_0_40" - The database major version is MySQL 8.0 and the minor @@ -1214,10 +1209,10 @@ type ConnectSettings struct { IpAddresses []*IpMapping `json:"ipAddresses,omitempty"` // Kind: This is always `sql#connectSettings`. Kind string `json:"kind,omitempty"` - // NodeCount: The number of nodes in a read pool. + // NodeCount: The number of read pool nodes in a read pool. NodeCount int64 `json:"nodeCount,omitempty"` - // Nodes: Output only. Entries containing information about each node of the - // read pool. + // Nodes: Output only. Entries containing information about each read pool node + // of the read pool. Nodes []*ConnectPoolNodeConfig `json:"nodes,omitempty"` // PscEnabled: Whether PSC connectivity is enabled for this instance. PscEnabled bool `json:"pscEnabled,omitempty"` @@ -1260,36 +1255,17 @@ func (s ConnectSettings) MarshalJSON() ([]byte, error) { // ConnectionPoolConfig: The managed connection pooling configuration. type ConnectionPoolConfig struct { - // ClientConnectionIdleTimeout: Client idle timeout. - ClientConnectionIdleTimeout string `json:"clientConnectionIdleTimeout,omitempty"` - // ConnPoolSize: Managed connection pool size. - ConnPoolSize int64 `json:"connPoolSize,omitempty"` // ConnectionPoolingEnabled: Whether managed connection pooling is enabled. ConnectionPoolingEnabled bool `json:"connectionPoolingEnabled,omitempty"` // Flags: Optional. List of connection pool configuration flags Flags []*ConnectionPoolFlags `json:"flags,omitempty"` - // MaxClientConnections: Maximum number of client connections in connection - // pool. - MaxClientConnections int64 `json:"maxClientConnections,omitempty"` - // PoolMode: The managed connection pool mode for the instance. - // - // Possible values: - // "POOL_MODE_UNSPECIFIED" - The pool mode is unknown. - // "SESSION" - The session mode for managed connection pooling. - // "TRANSACTION" - The transaction(default) mode for managed connection - // pooling. - PoolMode string `json:"poolMode,omitempty"` - // QueryWaitTimeout: Query wait timeout. - QueryWaitTimeout string `json:"queryWaitTimeout,omitempty"` - // ServerConnectionIdleTimeout: Server idle timeout. - ServerConnectionIdleTimeout string `json:"serverConnectionIdleTimeout,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "ClientConnectionIdleTimeout") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields - // for more details. + // ForceSendFields is a list of field names (e.g. "ConnectionPoolingEnabled") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ClientConnectionIdleTimeout") to + // NullFields is a list of field names (e.g. "ConnectionPoolingEnabled") to // include in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -1494,8 +1470,6 @@ type DatabaseInstance struct { // version is 36. // "MYSQL_8_0_37" - The database major version is MySQL 8.0 and the minor // version is 37. - // "MYSQL_8_0_38" - The database major version is MySQL 8.0 and the minor - // version is 38. // "MYSQL_8_0_39" - The database major version is MySQL 8.0 and the minor // version is 39. // "MYSQL_8_0_40" - The database major version is MySQL 8.0 and the minor @@ -1571,7 +1545,7 @@ type DatabaseInstance struct { // "ON_PREMISES_INSTANCE" - An instance running on the customer's premises // that is not managed by Cloud SQL. // "READ_REPLICA_INSTANCE" - A Cloud SQL instance acting as a read-replica. - // "READ_POOL_INSTANCE" - CloudSQL read pool. + // "READ_POOL_INSTANCE" - A Cloud SQL read pool. InstanceType string `json:"instanceType,omitempty"` // IpAddresses: The assigned IP addresses for the instance. IpAddresses []*IpMapping `json:"ipAddresses,omitempty"` @@ -1589,10 +1563,10 @@ type DatabaseInstance struct { MaxDiskSize int64 `json:"maxDiskSize,omitempty,string"` // Name: Name of the Cloud SQL instance. This does not include the project ID. Name string `json:"name,omitempty"` - // NodeCount: The number of nodes in a read pool. + // NodeCount: The number of read pool nodes in a read pool. NodeCount int64 `json:"nodeCount,omitempty"` - // Nodes: Output only. Entries containing information about each node of the - // read pool. + // Nodes: Output only. Entries containing information about each read pool node + // of the read pool. Nodes []*PoolNodeConfig `json:"nodes,omitempty"` // OnPremisesConfiguration: Configuration specific to on-premises instances. OnPremisesConfiguration *OnPremisesConfiguration `json:"onPremisesConfiguration,omitempty"` @@ -2073,7 +2047,7 @@ type ExportContext struct { FileType string `json:"fileType,omitempty"` // Kind: This is always `sql#exportContext`. Kind string `json:"kind,omitempty"` - // Offload: Option for export offload. + // Offload: Whether to perform a serverless export. Offload bool `json:"offload,omitempty"` // SqlExportOptions: Options for exporting data as SQL statements. SqlExportOptions *ExportContextSqlExportOptions `json:"sqlExportOptions,omitempty"` @@ -2256,8 +2230,8 @@ func (s ExportContextSqlExportOptionsMysqlExportOptions) MarshalJSON() ([]byte, // ExportContextSqlExportOptionsPostgresExportOptions: Options for exporting // from a Cloud SQL for PostgreSQL instance. type ExportContextSqlExportOptionsPostgresExportOptions struct { - // Clean: Optional. Use this option to include DROP SQL statements. These - // statements are used to delete database objects before running the import + // Clean: Optional. Use this option to include DROP SQL statements. + // Use these statements to delete database objects before running the import // operation. Clean bool `json:"clean,omitempty"` // IfExists: Optional. Option to include an IF EXISTS SQL statement with each @@ -2412,8 +2386,6 @@ type Flag struct { // version is 36. // "MYSQL_8_0_37" - The database major version is MySQL 8.0 and the minor // version is 37. - // "MYSQL_8_0_38" - The database major version is MySQL 8.0 and the minor - // version is 38. // "MYSQL_8_0_39" - The database major version is MySQL 8.0 and the minor // version is 39. // "MYSQL_8_0_40" - The database major version is MySQL 8.0 and the minor @@ -3877,8 +3849,8 @@ type Operation struct { // "MANAGE_BACKUP" - Changes the BackupTier of a Cloud SQL instance. // "ENHANCED_BACKUP" - Creates a backup for an Enhanced BackupTier Cloud SQL // instance. - // "REPAIR_READ_POOL" - Repairs entire read pool or specified nodes in the - // read pool. + // "REPAIR_READ_POOL" - Repairs entire read pool or specified read pool nodes + // in the read pool. // "CREATE_READ_POOL" - Creates a Cloud SQL read pool instance. OperationType string `json:"operationType,omitempty"` // SelfLink: The URI of this resource. @@ -4134,21 +4106,21 @@ func (s PerformDiskShrinkContext) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PoolNodeConfig: Details of a single node of a read pool. +// PoolNodeConfig: Details of a single read pool node of a read pool. type PoolNodeConfig struct { - // DnsName: Output only. The DNS name of the node. + // DnsName: Output only. The DNS name of the read pool node. DnsName string `json:"dnsName,omitempty"` - // DnsNames: Output only. The list of DNS names used by this node. + // DnsNames: Output only. The list of DNS names used by this read pool node. DnsNames []*DnsNameMapping `json:"dnsNames,omitempty"` - // GceZone: Output only. The serving zone of the node. + // GceZone: Output only. The zone of the read pool node. GceZone string `json:"gceZone,omitempty"` // IpAddresses: Output only. Mappings containing IP addresses that can be used - // to connect to the node. + // to connect to the read pool node. IpAddresses []*IpMapping `json:"ipAddresses,omitempty"` - // Name: Output only. The name of the node, to be used for retrieving metrics - // and logs for the node. + // Name: Output only. The name of the read pool node, to be used for retrieving + // metrics and logs. Name string `json:"name,omitempty"` - // State: Output only. The current state of the node. + // State: Output only. The current state of the read pool node. // // Possible values: // "SQL_INSTANCE_STATE_UNSPECIFIED" - The state of the instance is unknown. @@ -4584,7 +4556,7 @@ type Settings struct { // EnableGoogleMlIntegration: Optional. When this parameter is set to true, // Cloud SQL instances can connect to Vertex AI to pass requests for real-time // predictions and insights to the AI. The default value is false. This applies - // only to Cloud SQL for PostgreSQL instances. + // only to Cloud SQL for MySQL and Cloud SQL for PostgreSQL instances. EnableGoogleMlIntegration bool `json:"enableGoogleMlIntegration,omitempty"` // InsightsConfig: Insights configuration, for now relevant only for Postgres. InsightsConfig *InsightsConfig `json:"insightsConfig,omitempty"` @@ -5620,6 +5592,15 @@ type User struct { // after insertion. For a MySQL instance, it's required; for a PostgreSQL or // SQL Server instance, it's optional. Host string `json:"host,omitempty"` + // IamStatus: Indicates if user is active for IAM Authentication. + // + // Possible values: + // "IAM_STATUS_UNSPECIFIED" - The default value for users that are not of + // type CLOUD_IAM_GROUP. Only CLOUD_IAM_GROUP users will be inactive/active. + // Will not display any value in UI. + // "INACTIVE" - User is not available for IAM Authentication. + // "ACTIVE" - User is available for IAM Authentication. + IamStatus string `json:"iamStatus,omitempty"` // Instance: The name of the Cloud SQL instance. This does not include the // project ID. Can be omitted for *update* because it is already specified on // the URL. diff --git a/workspaceevents/v1/workspaceevents-api.json b/workspaceevents/v1/workspaceevents-api.json index e10219a967c..c4ccf5fc54b 100644 --- a/workspaceevents/v1/workspaceevents-api.json +++ b/workspaceevents/v1/workspaceevents-api.json @@ -197,7 +197,7 @@ "subscriptions": { "methods": { "create": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview): Creates a Google Workspace subscription. To learn how to use this method, see [Create a Google Workspace subscription](https://developers.google.com/workspace/events/guides/create-subscription).", + "description": "Creates a Google Workspace subscription. To learn how to use this method, see [Create a Google Workspace subscription](https://developers.google.com/workspace/events/guides/create-subscription). ", "flatPath": "v1/subscriptions", "httpMethod": "POST", "id": "workspaceevents.subscriptions.create", @@ -235,7 +235,7 @@ ] }, "delete": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview): Deletes a Google Workspace subscription. To learn how to use this method, see [Delete a Google Workspace subscription](https://developers.google.com/workspace/events/guides/delete-subscription).", + "description": "Deletes a Google Workspace subscription. To learn how to use this method, see [Delete a Google Workspace subscription](https://developers.google.com/workspace/events/guides/delete-subscription).", "flatPath": "v1/subscriptions/{subscriptionsId}", "httpMethod": "DELETE", "id": "workspaceevents.subscriptions.delete", @@ -290,7 +290,7 @@ ] }, "get": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview): Gets details about a Google Workspace subscription. To learn how to use this method, see [Get details about a Google Workspace subscription](https://developers.google.com/workspace/events/guides/get-subscription).", + "description": "Gets details about a Google Workspace subscription. To learn how to use this method, see [Get details about a Google Workspace subscription](https://developers.google.com/workspace/events/guides/get-subscription).", "flatPath": "v1/subscriptions/{subscriptionsId}", "httpMethod": "GET", "id": "workspaceevents.subscriptions.get", @@ -330,7 +330,7 @@ ] }, "list": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview): Lists Google Workspace subscriptions. To learn how to use this method, see [List Google Workspace subscriptions](https://developers.google.com/workspace/events/guides/list-subscriptions).", + "description": "Lists Google Workspace subscriptions. To learn how to use this method, see [List Google Workspace subscriptions](https://developers.google.com/workspace/events/guides/list-subscriptions).", "flatPath": "v1/subscriptions", "httpMethod": "GET", "id": "workspaceevents.subscriptions.list", @@ -377,7 +377,7 @@ ] }, "patch": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview): Updates or renews a Google Workspace subscription. To learn how to use this method, see [Update or renew a Google Workspace subscription](https://developers.google.com/workspace/events/guides/update-subscription).", + "description": "Updates or renews a Google Workspace subscription. To learn how to use this method, see [Update or renew a Google Workspace subscription](https://developers.google.com/workspace/events/guides/update-subscription).", "flatPath": "v1/subscriptions/{subscriptionsId}", "httpMethod": "PATCH", "id": "workspaceevents.subscriptions.patch", @@ -430,7 +430,7 @@ ] }, "reactivate": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview): Reactivates a suspended Google Workspace subscription. This method resets your subscription's `State` field to `ACTIVE`. Before you use this method, you must fix the error that suspended the subscription. This method will ignore or reject any subscription that isn't currently in a suspended state. To learn how to use this method, see [Reactivate a Google Workspace subscription](https://developers.google.com/workspace/events/guides/reactivate-subscription).", + "description": "Reactivates a suspended Google Workspace subscription. This method resets your subscription's `State` field to `ACTIVE`. Before you use this method, you must fix the error that suspended the subscription. This method will ignore or reject any subscription that isn't currently in a suspended state. To learn how to use this method, see [Reactivate a Google Workspace subscription](https://developers.google.com/workspace/events/guides/reactivate-subscription).", "flatPath": "v1/subscriptions/{subscriptionsId}:reactivate", "httpMethod": "POST", "id": "workspaceevents.subscriptions.reactivate", @@ -474,7 +474,7 @@ } } }, - "revision": "20250225", + "revision": "20250420", "rootUrl": "https://workspaceevents.googleapis.com/", "schemas": { "ListSubscriptionsResponse": { @@ -591,7 +591,7 @@ "type": "object" }, "Subscription": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview). A subscription to receive events about a Google Workspace resource. To learn more about subscriptions, see the [Google Workspace Events API overview](https://developers.google.com/workspace/events).", + "description": "A subscription to receive events about a Google Workspace resource. To learn more about subscriptions, see the [Google Workspace Events API overview](https://developers.google.com/workspace/events).", "id": "Subscription", "properties": { "authority": { diff --git a/workspaceevents/v1/workspaceevents-gen.go b/workspaceevents/v1/workspaceevents-gen.go index 31abedff876..0d6a42e9d06 100644 --- a/workspaceevents/v1/workspaceevents-gen.go +++ b/workspaceevents/v1/workspaceevents-gen.go @@ -423,11 +423,9 @@ func (s Status) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Subscription: Developer Preview -// (https://developers.google.com/workspace/preview). A subscription to receive -// events about a Google Workspace resource. To learn more about subscriptions, -// see the Google Workspace Events API overview -// (https://developers.google.com/workspace/events). +// Subscription: A subscription to receive events about a Google Workspace +// resource. To learn more about subscriptions, see the Google Workspace Events +// API overview (https://developers.google.com/workspace/events). type Subscription struct { // Authority: Output only. The user who authorized the creation of the // subscription. Format: `users/{user}` For Google Workspace users, the @@ -661,9 +659,8 @@ type SubscriptionsCreateCall struct { header_ http.Header } -// Create: Developer Preview (https://developers.google.com/workspace/preview): -// Creates a Google Workspace subscription. To learn how to use this method, -// see Create a Google Workspace subscription +// Create: Creates a Google Workspace subscription. To learn how to use this +// method, see Create a Google Workspace subscription // (https://developers.google.com/workspace/events/guides/create-subscription). func (r *SubscriptionsService) Create(subscription *Subscription) *SubscriptionsCreateCall { c := &SubscriptionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -767,9 +764,8 @@ type SubscriptionsDeleteCall struct { header_ http.Header } -// Delete: Developer Preview (https://developers.google.com/workspace/preview): -// Deletes a Google Workspace subscription. To learn how to use this method, -// see Delete a Google Workspace subscription +// Delete: Deletes a Google Workspace subscription. To learn how to use this +// method, see Delete a Google Workspace subscription // (https://developers.google.com/workspace/events/guides/delete-subscription). // // - name: Resource name of the subscription to delete. Format: @@ -892,9 +888,8 @@ type SubscriptionsGetCall struct { header_ http.Header } -// Get: Developer Preview (https://developers.google.com/workspace/preview): -// Gets details about a Google Workspace subscription. To learn how to use this -// method, see Get details about a Google Workspace subscription +// Get: Gets details about a Google Workspace subscription. To learn how to use +// this method, see Get details about a Google Workspace subscription // (https://developers.google.com/workspace/events/guides/get-subscription). // // - name: Resource name of the subscription. Format: @@ -1004,9 +999,8 @@ type SubscriptionsListCall struct { header_ http.Header } -// List: Developer Preview (https://developers.google.com/workspace/preview): -// Lists Google Workspace subscriptions. To learn how to use this method, see -// List Google Workspace subscriptions +// List: Lists Google Workspace subscriptions. To learn how to use this method, +// see List Google Workspace subscriptions // (https://developers.google.com/workspace/events/guides/list-subscriptions). func (r *SubscriptionsService) List() *SubscriptionsListCall { c := &SubscriptionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -1172,9 +1166,8 @@ type SubscriptionsPatchCall struct { header_ http.Header } -// Patch: Developer Preview (https://developers.google.com/workspace/preview): -// Updates or renews a Google Workspace subscription. To learn how to use this -// method, see Update or renew a Google Workspace subscription +// Patch: Updates or renews a Google Workspace subscription. To learn how to +// use this method, see Update or renew a Google Workspace subscription // (https://developers.google.com/workspace/events/guides/update-subscription). // // - name: Identifier. Resource name of the subscription. Format: @@ -1298,13 +1291,12 @@ type SubscriptionsReactivateCall struct { header_ http.Header } -// Reactivate: Developer Preview -// (https://developers.google.com/workspace/preview): Reactivates a suspended -// Google Workspace subscription. This method resets your subscription's -// `State` field to `ACTIVE`. Before you use this method, you must fix the -// error that suspended the subscription. This method will ignore or reject any -// subscription that isn't currently in a suspended state. To learn how to use -// this method, see Reactivate a Google Workspace subscription +// Reactivate: Reactivates a suspended Google Workspace subscription. This +// method resets your subscription's `State` field to `ACTIVE`. Before you use +// this method, you must fix the error that suspended the subscription. This +// method will ignore or reject any subscription that isn't currently in a +// suspended state. To learn how to use this method, see Reactivate a Google +// Workspace subscription // (https://developers.google.com/workspace/events/guides/reactivate-subscription). // // - name: Resource name of the subscription. Format: diff --git a/youtube/v3/youtube-api.json b/youtube/v3/youtube-api.json index 94d83a73a07..b8c6797bbaf 100644 --- a/youtube/v3/youtube-api.json +++ b/youtube/v3/youtube-api.json @@ -185,6 +185,7 @@ "type": "integer" }, "mine": { + "deprecated": true, "location": "query", "type": "boolean" }, @@ -4105,7 +4106,7 @@ } } }, - "revision": "20250331", + "revision": "20250422", "rootUrl": "https://youtube.googleapis.com/", "schemas": { "AbuseReport": { From 8ccf1f08977c7843d093bba21d391b082e206a75 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 25 Apr 2025 00:34:25 -0700 Subject: [PATCH 3/8] feat(all): auto-regenerate discovery clients (#3125) --- admin/reports/v1/admin-api.json | 4 +- admin/reports/v1/admin-gen.go | 2 +- dataflow/v1b3/dataflow-api.json | 6 +- dataflow/v1b3/dataflow-gen.go | 9 +- dataform/v1beta1/dataform-api.json | 230 +++++++++++++- dataform/v1beta1/dataform-gen.go | 297 +++++++++++++++++- datamigration/v1/datamigration-api.json | 18 +- datamigration/v1/datamigration-gen.go | 8 + displayvideo/v2/displayvideo-api.json | 44 ++- displayvideo/v2/displayvideo-gen.go | 64 ++-- gkebackup/v1/gkebackup-api.json | 4 +- gkebackup/v1/gkebackup-gen.go | 2 +- gkehub/v1beta/gkehub-api.json | 6 +- gkehub/v1beta/gkehub-gen.go | 5 +- meet/v2/meet-api.json | 4 +- meet/v2/meet-gen.go | 4 +- .../accounts_v1beta/merchantapi-api.json | 4 +- .../accounts_v1beta/merchantapi-gen.go | 7 +- .../v1beta1/networkmanagement-api.json | 17 +- .../v1beta1/networkmanagement-gen.go | 10 +- observability/v1/observability-api.json | 4 +- observability/v1/observability-gen.go | 4 +- orgpolicy/v2/orgpolicy-api.json | 6 +- orgpolicy/v2/orgpolicy-gen.go | 4 + redis/v1/redis-api.json | 57 +++- redis/v1/redis-gen.go | 27 +- storage/v1/storage-api.json | 9 +- 27 files changed, 761 insertions(+), 95 deletions(-) diff --git a/admin/reports/v1/admin-api.json b/admin/reports/v1/admin-api.json index 117905eb247..1b5569577dc 100644 --- a/admin/reports/v1/admin-api.json +++ b/admin/reports/v1/admin-api.json @@ -17,7 +17,7 @@ "canonicalName": "reports", "description": "Admin SDK lets administrators of enterprise domains to view and manage resources like user, groups etc. It also provides audit and usage reports of domain.", "discoveryVersion": "v1", - "documentationLink": "https://developers.google.com/admin-sdk/", + "documentationLink": "https://developers.google.com/workspace/admin/", "fullyEncodeReservedExpansion": true, "icons": { "x16": "http://www.google.com/images/icons/product/search-16.gif", @@ -628,7 +628,7 @@ } } }, - "revision": "20250331", + "revision": "20250421", "rootUrl": "https://admin.googleapis.com/", "schemas": { "Activities": { diff --git a/admin/reports/v1/admin-gen.go b/admin/reports/v1/admin-gen.go index e16776d0f1b..a17e09a0a3e 100644 --- a/admin/reports/v1/admin-gen.go +++ b/admin/reports/v1/admin-gen.go @@ -6,7 +6,7 @@ // Package admin provides access to the Admin SDK API. // -// For product documentation, see: https://developers.google.com/admin-sdk/ +// For product documentation, see: https://developers.google.com/workspace/admin/ // // # Library status // diff --git a/dataflow/v1b3/dataflow-api.json b/dataflow/v1b3/dataflow-api.json index 489ff783f7d..32eb60c6a30 100644 --- a/dataflow/v1b3/dataflow-api.json +++ b/dataflow/v1b3/dataflow-api.json @@ -2208,7 +2208,7 @@ } } }, - "revision": "20250310", + "revision": "20250421", "rootUrl": "https://dataflow.googleapis.com/", "schemas": { "ApproximateProgress": { @@ -4763,6 +4763,10 @@ "description": "Describes the state of a metric.", "id": "MetricUpdate", "properties": { + "boundedTrie": { + "description": "Worker-computed aggregate value for the \"Trie\" aggregation kind. The only possible value type is a BoundedTrieNode. Introduced this field to avoid breaking older SDKs when Dataflow service starts to populate the `bounded_trie` field.", + "type": "any" + }, "cumulative": { "description": "True if this metric is reported as the total cumulative aggregate value accumulated since the worker started working on this WorkItem. By default this is false, indicating that this metric is reported as a delta that is not associated with any WorkItem.", "type": "boolean" diff --git a/dataflow/v1b3/dataflow-gen.go b/dataflow/v1b3/dataflow-gen.go index d035176814c..ba6496cfd0c 100644 --- a/dataflow/v1b3/dataflow-gen.go +++ b/dataflow/v1b3/dataflow-gen.go @@ -3628,6 +3628,11 @@ func (s MetricStructuredName) MarshalJSON() ([]byte, error) { // MetricUpdate: Describes the state of a metric. type MetricUpdate struct { + // BoundedTrie: Worker-computed aggregate value for the "Trie" aggregation + // kind. The only possible value type is a BoundedTrieNode. Introduced this + // field to avoid breaking older SDKs when Dataflow service starts to populate + // the `bounded_trie` field. + BoundedTrie interface{} `json:"boundedTrie,omitempty"` // Cumulative: True if this metric is reported as the total cumulative // aggregate value accumulated since the worker started working on this // WorkItem. By default this is false, indicating that this metric is reported @@ -3676,13 +3681,13 @@ type MetricUpdate struct { // workers are reporting work progress; it will be filled in responses from the // metrics API. UpdateTime string `json:"updateTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "Cumulative") to + // ForceSendFields is a list of field names (e.g. "BoundedTrie") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Cumulative") to include in API + // NullFields is a list of field names (e.g. "BoundedTrie") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. diff --git a/dataform/v1beta1/dataform-api.json b/dataform/v1beta1/dataform-api.json index f6800c82db7..fb92dd796b8 100644 --- a/dataform/v1beta1/dataform-api.json +++ b/dataform/v1beta1/dataform-api.json @@ -492,7 +492,7 @@ ] }, "list": { - "description": "Lists Repositories in a given project and location.", + "description": "Lists Repositories in a given project and location. **Note:** *This method can return repositories not shown in the [Dataform UI](https://console.cloud.google.com/bigquery/dataform)*.", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories", "httpMethod": "GET", "id": "dataform.projects.locations.repositories.list", @@ -2147,9 +2147,84 @@ } } }, - "revision": "20250323", + "revision": "20250420", "rootUrl": "https://dataform.googleapis.com/", "schemas": { + "ActionErrorTable": { + "description": "Error table information, used to write error data into a BigQuery table.", + "id": "ActionErrorTable", + "properties": { + "retentionDays": { + "description": "Error table partition expiration in days. Only positive values are allowed.", + "format": "int32", + "type": "integer" + }, + "target": { + "$ref": "Target", + "description": "Error Table target." + } + }, + "type": "object" + }, + "ActionIncrementalLoadMode": { + "description": "Load definition for incremental load modes", + "id": "ActionIncrementalLoadMode", + "properties": { + "column": { + "description": "Column name for incremental load modes", + "type": "string" + } + }, + "type": "object" + }, + "ActionLoadConfig": { + "description": "Simplified load configuration for actions", + "id": "ActionLoadConfig", + "properties": { + "append": { + "$ref": "ActionSimpleLoadMode", + "description": "Append into destination table" + }, + "maximum": { + "$ref": "ActionIncrementalLoadMode", + "description": "Insert records where the value exceeds the previous maximum value for a column in the destination table" + }, + "replace": { + "$ref": "ActionSimpleLoadMode", + "description": "Replace destination table" + }, + "unique": { + "$ref": "ActionIncrementalLoadMode", + "description": "Insert records where the value of a column is not already present in the destination table" + } + }, + "type": "object" + }, + "ActionSimpleLoadMode": { + "description": "Simple load definition", + "id": "ActionSimpleLoadMode", + "properties": {}, + "type": "object" + }, + "ActionSqlDefinition": { + "description": "Definition of a SQL Data Preparation", + "id": "ActionSqlDefinition", + "properties": { + "errorTable": { + "$ref": "ActionErrorTable", + "description": "Error table configuration," + }, + "loadConfig": { + "$ref": "ActionLoadConfig", + "description": "Load configuration." + }, + "query": { + "description": "The SQL query representing the data preparation steps. Formatted as a Pipe SQL query statement.", + "type": "string" + } + }, + "type": "object" + }, "Assertion": { "description": "Represents an assertion upon a SQL query which is required return zero rows.", "id": "Assertion", @@ -2246,6 +2321,10 @@ "description": "Optional. The default schema (BigQuery dataset ID) for assertions.", "type": "string" }, + "builtinAssertionNamePrefix": { + "description": "Optional. The prefix to prepend to built-in assertion names.", + "type": "string" + }, "databaseSuffix": { "description": "Optional. The suffix that should be appended to all database (Google Cloud project ID) names.", "type": "string" @@ -2525,6 +2604,10 @@ "$ref": "Target", "description": "The action's identifier if the project had been compiled without any overrides configured. Unique within the compilation result." }, + "dataPreparation": { + "$ref": "DataPreparation", + "description": "The data preparation executed by this action." + }, "declaration": { "$ref": "Declaration", "description": "The declaration declared by this action." @@ -2606,6 +2689,65 @@ }, "type": "object" }, + "DataPreparation": { + "description": "Defines a compiled Data Preparation entity", + "id": "DataPreparation", + "properties": { + "contentsSql": { + "$ref": "SqlDefinition", + "description": "SQL definition for a Data Preparation. Contains a SQL query and additional context information." + }, + "contentsYaml": { + "description": "The data preparation definition, stored as a YAML string.", + "type": "string" + }, + "dependencyTargets": { + "description": "A list of actions that this action depends on.", + "items": { + "$ref": "Target" + }, + "type": "array" + }, + "disabled": { + "description": "Whether this action is disabled (i.e. should not be run).", + "type": "boolean" + }, + "tags": { + "description": "Arbitrary, user-defined tags on this action.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "DataPreparationAction": { + "description": "Represents a workflow action that will run a Data Preparation.", + "id": "DataPreparationAction", + "properties": { + "contentsSql": { + "$ref": "ActionSqlDefinition", + "description": "SQL definition for a Data Preparation. Contains a SQL query and additional context information." + }, + "contentsYaml": { + "description": "Output only. YAML representing the contents of the data preparation. Can be used to show the customer what the input was to their workflow.", + "readOnly": true, + "type": "string" + }, + "generatedSql": { + "description": "Output only. The generated BigQuery SQL script that will be executed. For reference only.", + "readOnly": true, + "type": "string" + }, + "jobId": { + "description": "Output only. The ID of the BigQuery job that executed the SQL in sql_script. Only set once the job has started to run.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "Declaration": { "description": "Represents a relation which is not managed by Dataform but which may be referenced by Dataform actions.", "id": "Declaration", @@ -2655,6 +2797,22 @@ "properties": {}, "type": "object" }, + "ErrorTable": { + "description": "Error table information, used to write error data into a BigQuery table.", + "id": "ErrorTable", + "properties": { + "retentionDays": { + "description": "Error table partition expiration in days. Only positive values are allowed.", + "format": "int32", + "type": "integer" + }, + "target": { + "$ref": "Target", + "description": "Error Table target." + } + }, + "type": "object" + }, "Expr": { "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": "Expr", @@ -2819,6 +2977,17 @@ }, "type": "object" }, + "IncrementalLoadMode": { + "description": "Load definition for incremental load modes", + "id": "IncrementalLoadMode", + "properties": { + "column": { + "description": "Column name for incremental load modes", + "type": "string" + } + }, + "type": "object" + }, "IncrementalTableConfig": { "description": "Contains settings for relations of type `INCREMENTAL_TABLE`.", "id": "IncrementalTableConfig", @@ -3093,6 +3262,29 @@ }, "type": "object" }, + "LoadConfig": { + "description": "Simplified load configuration for actions", + "id": "LoadConfig", + "properties": { + "append": { + "$ref": "SimpleLoadMode", + "description": "Append into destination table" + }, + "maximum": { + "$ref": "IncrementalLoadMode", + "description": "Insert records where the value exceeds the previous maximum value for a column in the destination table" + }, + "replace": { + "$ref": "SimpleLoadMode", + "description": "Replace destination table" + }, + "unique": { + "$ref": "IncrementalLoadMode", + "description": "Insert records where the value of a column is not already present in the destination table" + } + }, + "type": "object" + }, "Location": { "description": "A resource that represents a Google Cloud location.", "id": "Location", @@ -3860,6 +4052,31 @@ }, "type": "object" }, + "SimpleLoadMode": { + "description": "Simple load definition", + "id": "SimpleLoadMode", + "properties": {}, + "type": "object" + }, + "SqlDefinition": { + "description": "Definition of a SQL Data Preparation", + "id": "SqlDefinition", + "properties": { + "errorTable": { + "$ref": "ErrorTable", + "description": "Error table configuration," + }, + "load": { + "$ref": "LoadConfig", + "description": "Load configuration." + }, + "query": { + "description": "The SQL query representing the data preparation steps. Formatted as a Pipe SQL query statement.", + "type": "string" + } + }, + "type": "object" + }, "SshAuthenticationConfig": { "description": "Configures fields for performing SSH authentication.", "id": "SshAuthenticationConfig", @@ -3993,6 +4210,10 @@ "description": "Optional. Optional schedule (in cron format) for automatic execution of this workflow config.", "type": "string" }, + "disabled": { + "description": "Optional. Disables automatic creation of workflow invocations.", + "type": "boolean" + }, "internalMetadata": { "description": "Output only. All the metadata information that is used internally to serve the resource. For example: timestamps, flags, status fields, etc. The format of this field is a JSON string.", "readOnly": true, @@ -4110,6 +4331,11 @@ "description": "Output only. The action's identifier if the project had been compiled without any overrides configured. Unique within the compilation result.", "readOnly": true }, + "dataPreparationAction": { + "$ref": "DataPreparationAction", + "description": "Output only. The workflow action's data preparation action details.", + "readOnly": true + }, "failureReason": { "description": "Output only. If and only if action's state is FAILED a failure reason is set.", "readOnly": true, diff --git a/dataform/v1beta1/dataform-gen.go b/dataform/v1beta1/dataform-gen.go index d8ed8f73be6..4e8d2a2d027 100644 --- a/dataform/v1beta1/dataform-gen.go +++ b/dataform/v1beta1/dataform-gen.go @@ -257,6 +257,115 @@ type ProjectsLocationsRepositoriesWorkspacesService struct { s *Service } +// ActionErrorTable: Error table information, used to write error data into a +// BigQuery table. +type ActionErrorTable struct { + // RetentionDays: Error table partition expiration in days. Only positive + // values are allowed. + RetentionDays int64 `json:"retentionDays,omitempty"` + // Target: Error Table target. + Target *Target `json:"target,omitempty"` + // ForceSendFields is a list of field names (e.g. "RetentionDays") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "RetentionDays") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ActionErrorTable) MarshalJSON() ([]byte, error) { + type NoMethod ActionErrorTable + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ActionIncrementalLoadMode: Load definition for incremental load modes +type ActionIncrementalLoadMode struct { + // Column: Column name for incremental load modes + Column string `json:"column,omitempty"` + // ForceSendFields is a list of field names (e.g. "Column") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Column") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ActionIncrementalLoadMode) MarshalJSON() ([]byte, error) { + type NoMethod ActionIncrementalLoadMode + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ActionLoadConfig: Simplified load configuration for actions +type ActionLoadConfig struct { + // Append: Append into destination table + Append *ActionSimpleLoadMode `json:"append,omitempty"` + // Maximum: Insert records where the value exceeds the previous maximum value + // for a column in the destination table + Maximum *ActionIncrementalLoadMode `json:"maximum,omitempty"` + // Replace: Replace destination table + Replace *ActionSimpleLoadMode `json:"replace,omitempty"` + // Unique: Insert records where the value of a column is not already present in + // the destination table + Unique *ActionIncrementalLoadMode `json:"unique,omitempty"` + // ForceSendFields is a list of field names (e.g. "Append") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Append") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ActionLoadConfig) MarshalJSON() ([]byte, error) { + type NoMethod ActionLoadConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ActionSimpleLoadMode: Simple load definition +type ActionSimpleLoadMode struct { +} + +// ActionSqlDefinition: Definition of a SQL Data Preparation +type ActionSqlDefinition struct { + // ErrorTable: Error table configuration, + ErrorTable *ActionErrorTable `json:"errorTable,omitempty"` + // LoadConfig: Load configuration. + LoadConfig *ActionLoadConfig `json:"loadConfig,omitempty"` + // Query: The SQL query representing the data preparation steps. Formatted as a + // Pipe SQL query statement. + Query string `json:"query,omitempty"` + // ForceSendFields is a list of field names (e.g. "ErrorTable") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ErrorTable") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ActionSqlDefinition) MarshalJSON() ([]byte, error) { + type NoMethod ActionSqlDefinition + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Assertion: Represents an assertion upon a SQL query which is required return // zero rows. type Assertion struct { @@ -435,6 +544,9 @@ type CodeCompilationConfig struct { // AssertionSchema: Optional. The default schema (BigQuery dataset ID) for // assertions. AssertionSchema string `json:"assertionSchema,omitempty"` + // BuiltinAssertionNamePrefix: Optional. The prefix to prepend to built-in + // assertion names. + BuiltinAssertionNamePrefix string `json:"builtinAssertionNamePrefix,omitempty"` // DatabaseSuffix: Optional. The suffix that should be appended to all database // (Google Cloud project ID) names. DatabaseSuffix string `json:"databaseSuffix,omitempty"` @@ -765,6 +877,8 @@ type CompilationResultAction struct { // CanonicalTarget: The action's identifier if the project had been compiled // without any overrides configured. Unique within the compilation result. CanonicalTarget *Target `json:"canonicalTarget,omitempty"` + // DataPreparation: The data preparation executed by this action. + DataPreparation *DataPreparation `json:"dataPreparation,omitempty"` // Declaration: The declaration declared by this action. Declaration *Declaration `json:"declaration,omitempty"` // FilePath: The full path including filename in which this action is located, @@ -886,6 +1000,71 @@ func (s DataEncryptionState) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// DataPreparation: Defines a compiled Data Preparation entity +type DataPreparation struct { + // ContentsSql: SQL definition for a Data Preparation. Contains a SQL query and + // additional context information. + ContentsSql *SqlDefinition `json:"contentsSql,omitempty"` + // ContentsYaml: The data preparation definition, stored as a YAML string. + ContentsYaml string `json:"contentsYaml,omitempty"` + // DependencyTargets: A list of actions that this action depends on. + DependencyTargets []*Target `json:"dependencyTargets,omitempty"` + // Disabled: Whether this action is disabled (i.e. should not be run). + Disabled bool `json:"disabled,omitempty"` + // Tags: Arbitrary, user-defined tags on this action. + Tags []string `json:"tags,omitempty"` + // ForceSendFields is a list of field names (e.g. "ContentsSql") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ContentsSql") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s DataPreparation) MarshalJSON() ([]byte, error) { + type NoMethod DataPreparation + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// DataPreparationAction: Represents a workflow action that will run a Data +// Preparation. +type DataPreparationAction struct { + // ContentsSql: SQL definition for a Data Preparation. Contains a SQL query and + // additional context information. + ContentsSql *ActionSqlDefinition `json:"contentsSql,omitempty"` + // ContentsYaml: Output only. YAML representing the contents of the data + // preparation. Can be used to show the customer what the input was to their + // workflow. + ContentsYaml string `json:"contentsYaml,omitempty"` + // GeneratedSql: Output only. The generated BigQuery SQL script that will be + // executed. For reference only. + GeneratedSql string `json:"generatedSql,omitempty"` + // JobId: Output only. The ID of the BigQuery job that executed the SQL in + // sql_script. Only set once the job has started to run. + JobId string `json:"jobId,omitempty"` + // ForceSendFields is a list of field names (e.g. "ContentsSql") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ContentsSql") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s DataPreparationAction) MarshalJSON() ([]byte, error) { + type NoMethod DataPreparationAction + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Declaration: Represents a relation which is not managed by Dataform but // which may be referenced by Dataform actions. type Declaration struct { @@ -971,6 +1150,32 @@ type Empty struct { googleapi.ServerResponse `json:"-"` } +// ErrorTable: Error table information, used to write error data into a +// BigQuery table. +type ErrorTable struct { + // RetentionDays: Error table partition expiration in days. Only positive + // values are allowed. + RetentionDays int64 `json:"retentionDays,omitempty"` + // Target: Error Table target. + Target *Target `json:"target,omitempty"` + // ForceSendFields is a list of field names (e.g. "RetentionDays") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "RetentionDays") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ErrorTable) MarshalJSON() ([]byte, error) { + type NoMethod ErrorTable + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Expr: 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 @@ -1245,6 +1450,28 @@ func (s GitRemoteSettings) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// IncrementalLoadMode: Load definition for incremental load modes +type IncrementalLoadMode struct { + // Column: Column name for incremental load modes + Column string `json:"column,omitempty"` + // ForceSendFields is a list of field names (e.g. "Column") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Column") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s IncrementalLoadMode) MarshalJSON() ([]byte, error) { + type NoMethod IncrementalLoadMode + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // IncrementalTableConfig: Contains settings for relations of type // `INCREMENTAL_TABLE`. type IncrementalTableConfig struct { @@ -1576,6 +1803,36 @@ func (s ListWorkspacesResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// LoadConfig: Simplified load configuration for actions +type LoadConfig struct { + // Append: Append into destination table + Append *SimpleLoadMode `json:"append,omitempty"` + // Maximum: Insert records where the value exceeds the previous maximum value + // for a column in the destination table + Maximum *IncrementalLoadMode `json:"maximum,omitempty"` + // Replace: Replace destination table + Replace *SimpleLoadMode `json:"replace,omitempty"` + // Unique: Insert records where the value of a column is not already present in + // the destination table + Unique *IncrementalLoadMode `json:"unique,omitempty"` + // ForceSendFields is a list of field names (e.g. "Append") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Append") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LoadConfig) MarshalJSON() ([]byte, error) { + type NoMethod LoadConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Location: A resource that represents a Google Cloud location. type Location struct { // DisplayName: The friendly name for this location, typically a nearby city @@ -2621,6 +2878,37 @@ func (s SetIamPolicyRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// SimpleLoadMode: Simple load definition +type SimpleLoadMode struct { +} + +// SqlDefinition: Definition of a SQL Data Preparation +type SqlDefinition struct { + // ErrorTable: Error table configuration, + ErrorTable *ErrorTable `json:"errorTable,omitempty"` + // Load: Load configuration. + Load *LoadConfig `json:"load,omitempty"` + // Query: The SQL query representing the data preparation steps. Formatted as a + // Pipe SQL query statement. + Query string `json:"query,omitempty"` + // ForceSendFields is a list of field names (e.g. "ErrorTable") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ErrorTable") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SqlDefinition) MarshalJSON() ([]byte, error) { + type NoMethod SqlDefinition + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // SshAuthenticationConfig: Configures fields for performing SSH // authentication. type SshAuthenticationConfig struct { @@ -2804,6 +3092,8 @@ type WorkflowConfig struct { // CronSchedule: Optional. Optional schedule (in cron format) for automatic // execution of this workflow config. CronSchedule string `json:"cronSchedule,omitempty"` + // Disabled: Optional. Disables automatic creation of workflow invocations. + Disabled bool `json:"disabled,omitempty"` // InternalMetadata: Output only. All the metadata information that is used // internally to serve the resource. For example: timestamps, flags, status // fields, etc. The format of this field is a JSON string. @@ -2918,6 +3208,9 @@ type WorkflowInvocationAction struct { // been compiled without any overrides configured. Unique within the // compilation result. CanonicalTarget *Target `json:"canonicalTarget,omitempty"` + // DataPreparationAction: Output only. The workflow action's data preparation + // action details. + DataPreparationAction *DataPreparationAction `json:"dataPreparationAction,omitempty"` // FailureReason: Output only. If and only if action's state is FAILED a // failure reason is set. FailureReason string `json:"failureReason,omitempty"` @@ -4523,7 +4816,9 @@ type ProjectsLocationsRepositoriesListCall struct { header_ http.Header } -// List: Lists Repositories in a given project and location. +// List: Lists Repositories in a given project and location. **Note:** *This +// method can return repositories not shown in the Dataform UI +// (https://console.cloud.google.com/bigquery/dataform)*. // // - parent: The location in which to list repositories. Must be in the format // `projects/*/locations/*`. diff --git a/datamigration/v1/datamigration-api.json b/datamigration/v1/datamigration-api.json index 088ff12046f..9de7e2751ab 100644 --- a/datamigration/v1/datamigration-api.json +++ b/datamigration/v1/datamigration-api.json @@ -2340,7 +2340,7 @@ } } }, - "revision": "20250409", + "revision": "20250416", "rootUrl": "https://datamigration.googleapis.com/", "schemas": { "AlloyDbConnectionProfile": { @@ -6229,15 +6229,27 @@ "description": "Optional. The database name. This will be required only if the object uses a database name as part of its unique identifier.", "type": "string" }, + "schema": { + "description": "Optional. The schema name. This will be required only if the object uses a schema name as part of its unique identifier.", + "type": "string" + }, + "table": { + "description": "Optional. The table name. This will be required only if the object is a level below database or schema.", + "type": "string" + }, "type": { "description": "Required. The type of the migration job object.", "enum": [ "MIGRATION_JOB_OBJECT_TYPE_UNSPECIFIED", - "DATABASE" + "DATABASE", + "SCHEMA", + "TABLE" ], "enumDescriptions": [ "The type of the migration job object is unknown.", - "The migration job object is a database." + "The migration job object is a database.", + "The migration job object is a schema.", + "The migration job object is a table." ], "type": "string" } diff --git a/datamigration/v1/datamigration-gen.go b/datamigration/v1/datamigration-gen.go index 262f728425f..7e14078d9ee 100644 --- a/datamigration/v1/datamigration-gen.go +++ b/datamigration/v1/datamigration-gen.go @@ -4597,12 +4597,20 @@ type SourceObjectIdentifier struct { // Database: Optional. The database name. This will be required only if the // object uses a database name as part of its unique identifier. Database string `json:"database,omitempty"` + // Schema: Optional. The schema name. This will be required only if the object + // uses a schema name as part of its unique identifier. + Schema string `json:"schema,omitempty"` + // Table: Optional. The table name. This will be required only if the object is + // a level below database or schema. + Table string `json:"table,omitempty"` // Type: Required. The type of the migration job object. // // Possible values: // "MIGRATION_JOB_OBJECT_TYPE_UNSPECIFIED" - The type of the migration job // object is unknown. // "DATABASE" - The migration job object is a database. + // "SCHEMA" - The migration job object is a schema. + // "TABLE" - The migration job object is a table. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Database") to // unconditionally include in API requests. By default, fields with empty or diff --git a/displayvideo/v2/displayvideo-api.json b/displayvideo/v2/displayvideo-api.json index b88a4a23299..364366368c8 100644 --- a/displayvideo/v2/displayvideo-api.json +++ b/displayvideo/v2/displayvideo-api.json @@ -4832,7 +4832,7 @@ ] }, "patch": { - "description": "Updates an existing custom bidding algorithm. Returns the updated custom bidding algorithm if successful. *Warning*: Starting **April 1, 2025**, requests updating custom bidding algorithms that are assigned to line items will return an error. [Read more about this announced change](/display-video/api/deprecations#features.custom_bidding_floodlight).", + "description": "Updates an existing custom bidding algorithm. Returns the updated custom bidding algorithm if successful. Requests updating a custom bidding algorithm assigned to a line item will return an error.", "flatPath": "v2/customBiddingAlgorithms/{customBiddingAlgorithmsId}", "httpMethod": "PATCH", "id": "displayvideo.customBiddingAlgorithms.patch", @@ -4909,7 +4909,7 @@ "scripts": { "methods": { "create": { - "description": "Creates a new custom bidding script. Returns the newly created script if successful. *Warning*: Starting **April 1, 2025**, requests updating custom bidding algorithms that are assigned to line items will return an error. [Read more about this announced change](/display-video/api/deprecations#features.custom_bidding_floodlight).", + "description": "Creates a new custom bidding script. Returns the newly created script if successful. Requests creating a custom bidding script under an algorithm assigned to a line item will return an error.", "flatPath": "v2/customBiddingAlgorithms/{customBiddingAlgorithmsId}/scripts", "httpMethod": "POST", "id": "displayvideo.customBiddingAlgorithms.scripts.create", @@ -7350,7 +7350,7 @@ "sdfdownloadtasks": { "methods": { "create": { - "description": "Creates an SDF Download Task. Returns an Operation. An SDF Download Task is a long-running, asynchronous operation. The metadata type of this operation is SdfDownloadTaskMetadata. If the request is successful, the response type of the operation is SdfDownloadTask. The response will not include the download files, which must be retrieved with media.download. The state of operation can be retrieved with sdfdownloadtask.operations.get. Any errors can be found in the error.message. Note that error.details is expected to be empty.", + "description": "Creates an SDF Download Task. Returns an Operation. An SDF Download Task is a long-running, asynchronous operation. The metadata type of this operation is SdfDownloadTaskMetadata. If the request is successful, the response type of the operation is SdfDownloadTask. The response will not include the download files, which must be retrieved with media.download. The state of operation can be retrieved with `sdfdownloadtasks.operations.get`. Any errors can be found in the error.message. Note that error.details is expected to be empty.", "flatPath": "v2/sdfdownloadtasks", "httpMethod": "POST", "id": "displayvideo.sdfdownloadtasks.create", @@ -8010,7 +8010,7 @@ } } }, - "revision": "20250410", + "revision": "20250417", "rootUrl": "https://displayvideo.googleapis.com/", "schemas": { "ActivateManualTriggerRequest": { @@ -10736,7 +10736,7 @@ "id": "ConversionCountingConfig", "properties": { "floodlightActivityConfigs": { - "description": "The Floodlight activity configs used to track conversions. The number of conversions counted is the sum of all of the conversions counted by all of the Floodlight activity IDs specified in this field. *Warning*: Starting **April 1, 2025**, this field will no longer be writable while a custom bidding algorithm is assigned to the line item. If you set this field and assign a custom bidding algorithm in the same request, the floodlight activities must match the ones used by the custom bidding algorithm. [Read more about this announced change](/display-video/api/deprecations#features.custom_bidding_floodlight).", + "description": "The Floodlight activity configs used to track conversions. The number of conversions counted is the sum of all of the conversions counted by all of the Floodlight activity IDs specified in this field. This field can't be updated if a custom bidding algorithm is assigned to the line item. If you set this field and assign a custom bidding algorithm in the same request, the floodlight activities must match the ones used by the custom bidding algorithm.", "items": { "$ref": "TrackingFloodlightActivityConfig" }, @@ -12695,6 +12695,8 @@ "EXCHANGE_TOPON_GBID", "EXCHANGE_NETFLIX", "EXCHANGE_CORE", + "EXCHANGE_COMMERCE_GRID", + "EXCHANGE_SPOTIFY", "EXCHANGE_TUBI" ], "enumDescriptions": [ @@ -12782,6 +12784,8 @@ "TopOn.", "Netflix.", "Core.", + "Commerce Grid.", + "Spotify.", "Tubi." ], "type": "string" @@ -12894,6 +12898,8 @@ "EXCHANGE_TOPON_GBID", "EXCHANGE_NETFLIX", "EXCHANGE_CORE", + "EXCHANGE_COMMERCE_GRID", + "EXCHANGE_SPOTIFY", "EXCHANGE_TUBI" ], "enumDescriptions": [ @@ -12981,6 +12987,8 @@ "TopOn.", "Netflix.", "Core.", + "Commerce Grid.", + "Spotify.", "Tubi." ], "type": "string" @@ -13094,6 +13102,8 @@ "EXCHANGE_TOPON_GBID", "EXCHANGE_NETFLIX", "EXCHANGE_CORE", + "EXCHANGE_COMMERCE_GRID", + "EXCHANGE_SPOTIFY", "EXCHANGE_TUBI" ], "enumDescriptions": [ @@ -13181,6 +13191,8 @@ "TopOn.", "Netflix.", "Core.", + "Commerce Grid.", + "Spotify.", "Tubi." ], "type": "string" @@ -13295,6 +13307,8 @@ "EXCHANGE_TOPON_GBID", "EXCHANGE_NETFLIX", "EXCHANGE_CORE", + "EXCHANGE_COMMERCE_GRID", + "EXCHANGE_SPOTIFY", "EXCHANGE_TUBI" ], "enumDescriptions": [ @@ -13382,6 +13396,8 @@ "TopOn.", "Netflix.", "Core.", + "Commerce Grid.", + "Spotify.", "Tubi." ], "readOnly": true, @@ -14139,6 +14155,8 @@ "EXCHANGE_TOPON_GBID", "EXCHANGE_NETFLIX", "EXCHANGE_CORE", + "EXCHANGE_COMMERCE_GRID", + "EXCHANGE_SPOTIFY", "EXCHANGE_TUBI" ], "enumDescriptions": [ @@ -14226,6 +14244,8 @@ "TopOn.", "Netflix.", "Core.", + "Commerce Grid.", + "Spotify.", "Tubi." ], "type": "string" @@ -15056,6 +15076,8 @@ "EXCHANGE_TOPON_GBID", "EXCHANGE_NETFLIX", "EXCHANGE_CORE", + "EXCHANGE_COMMERCE_GRID", + "EXCHANGE_SPOTIFY", "EXCHANGE_TUBI" ], "enumDescriptions": [ @@ -15143,6 +15165,8 @@ "TopOn.", "Netflix.", "Core.", + "Commerce Grid.", + "Spotify.", "Tubi." ], "type": "string" @@ -15630,7 +15654,7 @@ }, "conversionCounting": { "$ref": "ConversionCountingConfig", - "description": "The conversion tracking setting of the line item. *Warning*: Starting **April 1, 2025**, the floodlight_activity_configs field will no longer be writable while a custom bidding algorithm is assigned to the line item. If you set this field and assign a custom bidding algorithm in the same request, the floodlight activities must match the ones used by the custom bidding algorithm. [Read more about this announced change](/display-video/api/deprecations#features.custom_bidding_floodlight)." + "description": "The conversion tracking setting of the line item." }, "creativeIds": { "description": "The IDs of the creatives associated with the line item.", @@ -16672,7 +16696,7 @@ "id": "MaximizeSpendBidStrategy", "properties": { "customBiddingAlgorithmId": { - "description": "The ID of the Custom Bidding Algorithm used by this strategy. Only applicable when performance_goal_type is set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`. *Warning*: Starting **April 1, 2025**, assigning a custom bidding algorithm that uses floodlight activities not identified in floodlightActivityConfigs will return an error. [Read more about this announced change](/display-video/api/deprecations#features.custom_bidding_floodlight).", + "description": "The ID of the Custom Bidding Algorithm used by this strategy. Only applicable when performance_goal_type is set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`. Assigning a custom bidding algorithm that uses floodlight activities not identified in floodlightActivityConfigs will return an error.", "format": "int64", "type": "string" }, @@ -17618,7 +17642,7 @@ "id": "PerformanceGoalBidStrategy", "properties": { "customBiddingAlgorithmId": { - "description": "The ID of the Custom Bidding Algorithm used by this strategy. Only applicable when performance_goal_type is set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`. *Warning*: Starting **April 1, 2025**, assigning a custom bidding algorithm that uses floodlight activities not identified in floodlightActivityConfigs will return an error. [Read more about this announced change](/display-video/api/deprecations#features.custom_bidding_floodlight).", + "description": "The ID of the Custom Bidding Algorithm used by this strategy. Only applicable when performance_goal_type is set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`. Assigning a custom bidding algorithm that uses floodlight activities not identified in floodlightActivityConfigs will return an error.", "format": "int64", "type": "string" }, @@ -18222,7 +18246,7 @@ "type": "object" }, "SdfDownloadTask": { - "description": "Type for the response returned by [SdfDownloadTaskService.CreateSdfDownloadTask].", + "description": "Type for the response returned by SdfDownloadTaskService.CreateSdfDownloadTask.", "id": "SdfDownloadTask", "properties": { "resourceName": { @@ -18233,7 +18257,7 @@ "type": "object" }, "SdfDownloadTaskMetadata": { - "description": "Type for the metadata returned by [SdfDownloadTaskService.CreateSdfDownloadTask].", + "description": "Type for the metadata returned by SdfDownloadTaskService.CreateSdfDownloadTask.", "id": "SdfDownloadTaskMetadata", "properties": { "createTime": { diff --git a/displayvideo/v2/displayvideo-gen.go b/displayvideo/v2/displayvideo-gen.go index fe97bc2a60f..b9fbb5935ab 100644 --- a/displayvideo/v2/displayvideo-gen.go +++ b/displayvideo/v2/displayvideo-gen.go @@ -4287,12 +4287,10 @@ type ConversionCountingConfig struct { // FloodlightActivityConfigs: The Floodlight activity configs used to track // conversions. The number of conversions counted is the sum of all of the // conversions counted by all of the Floodlight activity IDs specified in this - // field. *Warning*: Starting **April 1, 2025**, this field will no longer be - // writable while a custom bidding algorithm is assigned to the line item. If - // you set this field and assign a custom bidding algorithm in the same - // request, the floodlight activities must match the ones used by the custom - // bidding algorithm. Read more about this announced change - // (/display-video/api/deprecations#features.custom_bidding_floodlight). + // field. This field can't be updated if a custom bidding algorithm is assigned + // to the line item. If you set this field and assign a custom bidding + // algorithm in the same request, the floodlight activities must match the ones + // used by the custom bidding algorithm. FloodlightActivityConfigs []*TrackingFloodlightActivityConfig `json:"floodlightActivityConfigs,omitempty"` // PostViewCountPercentageMillis: The percentage of post-view conversions to // count, in millis (1/1000 of a percent). Must be between 0 and 100000 @@ -6548,6 +6546,8 @@ type ExchangeAssignedTargetingOptionDetails struct { // "EXCHANGE_TOPON_GBID" - TopOn. // "EXCHANGE_NETFLIX" - Netflix. // "EXCHANGE_CORE" - Core. + // "EXCHANGE_COMMERCE_GRID" - Commerce Grid. + // "EXCHANGE_SPOTIFY" - Spotify. // "EXCHANGE_TUBI" - Tubi. Exchange string `json:"exchange,omitempty"` // ForceSendFields is a list of field names (e.g. "Exchange") to @@ -6683,6 +6683,8 @@ type ExchangeConfigEnabledExchange struct { // "EXCHANGE_TOPON_GBID" - TopOn. // "EXCHANGE_NETFLIX" - Netflix. // "EXCHANGE_CORE" - Core. + // "EXCHANGE_COMMERCE_GRID" - Commerce Grid. + // "EXCHANGE_SPOTIFY" - Spotify. // "EXCHANGE_TUBI" - Tubi. Exchange string `json:"exchange,omitempty"` // GoogleAdManagerAgencyId: Output only. Agency ID of Google Ad Manager. The @@ -6802,6 +6804,8 @@ type ExchangeReviewStatus struct { // "EXCHANGE_TOPON_GBID" - TopOn. // "EXCHANGE_NETFLIX" - Netflix. // "EXCHANGE_CORE" - Core. + // "EXCHANGE_COMMERCE_GRID" - Commerce Grid. + // "EXCHANGE_SPOTIFY" - Spotify. // "EXCHANGE_TUBI" - Tubi. Exchange string `json:"exchange,omitempty"` // Status: Status of the exchange review. @@ -6924,6 +6928,8 @@ type ExchangeTargetingOptionDetails struct { // "EXCHANGE_TOPON_GBID" - TopOn. // "EXCHANGE_NETFLIX" - Netflix. // "EXCHANGE_CORE" - Core. + // "EXCHANGE_COMMERCE_GRID" - Commerce Grid. + // "EXCHANGE_SPOTIFY" - Spotify. // "EXCHANGE_TUBI" - Tubi. Exchange string `json:"exchange,omitempty"` // ForceSendFields is a list of field names (e.g. "Exchange") to @@ -7755,6 +7761,8 @@ type GuaranteedOrder struct { // "EXCHANGE_TOPON_GBID" - TopOn. // "EXCHANGE_NETFLIX" - Netflix. // "EXCHANGE_CORE" - Core. + // "EXCHANGE_COMMERCE_GRID" - Commerce Grid. + // "EXCHANGE_SPOTIFY" - Spotify. // "EXCHANGE_TUBI" - Tubi. Exchange string `json:"exchange,omitempty"` // GuaranteedOrderId: Output only. The unique identifier of the guaranteed @@ -8544,6 +8552,8 @@ type InventorySource struct { // "EXCHANGE_TOPON_GBID" - TopOn. // "EXCHANGE_NETFLIX" - Netflix. // "EXCHANGE_CORE" - Core. + // "EXCHANGE_COMMERCE_GRID" - Commerce Grid. + // "EXCHANGE_SPOTIFY" - Spotify. // "EXCHANGE_TUBI" - Tubi. Exchange string `json:"exchange,omitempty"` // GuaranteedOrderId: Immutable. The ID of the guaranteed order that this @@ -9147,12 +9157,6 @@ type LineItem struct { // belongs to. CampaignId int64 `json:"campaignId,omitempty,string"` // ConversionCounting: The conversion tracking setting of the line item. - // *Warning*: Starting **April 1, 2025**, the floodlight_activity_configs field - // will no longer be writable while a custom bidding algorithm is assigned to - // the line item. If you set this field and assign a custom bidding algorithm - // in the same request, the floodlight activities must match the ones used by - // the custom bidding algorithm. Read more about this announced change - // (/display-video/api/deprecations#features.custom_bidding_floodlight). ConversionCounting *ConversionCountingConfig `json:"conversionCounting,omitempty"` // CreativeIds: The IDs of the creatives associated with the line item. CreativeIds googleapi.Int64s `json:"creativeIds,omitempty"` @@ -10639,11 +10643,9 @@ func (s MastheadAd) MarshalJSON() ([]byte, error) { type MaximizeSpendBidStrategy struct { // CustomBiddingAlgorithmId: The ID of the Custom Bidding Algorithm used by // this strategy. Only applicable when performance_goal_type is set to - // `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`. *Warning*: Starting - // **April 1, 2025**, assigning a custom bidding algorithm that uses floodlight - // activities not identified in floodlightActivityConfigs will return an error. - // Read more about this announced change - // (/display-video/api/deprecations#features.custom_bidding_floodlight). + // `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`. Assigning a custom + // bidding algorithm that uses floodlight activities not identified in + // floodlightActivityConfigs will return an error. CustomBiddingAlgorithmId int64 `json:"customBiddingAlgorithmId,omitempty,string"` // MaxAverageCpmBidAmountMicros: The maximum average CPM that may be bid, in // micros of the advertiser's currency. Must be greater than or equal to a @@ -11869,11 +11871,9 @@ func (s PerformanceGoal) MarshalJSON() ([]byte, error) { type PerformanceGoalBidStrategy struct { // CustomBiddingAlgorithmId: The ID of the Custom Bidding Algorithm used by // this strategy. Only applicable when performance_goal_type is set to - // `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`. *Warning*: Starting - // **April 1, 2025**, assigning a custom bidding algorithm that uses floodlight - // activities not identified in floodlightActivityConfigs will return an error. - // Read more about this announced change - // (/display-video/api/deprecations#features.custom_bidding_floodlight). + // `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`. Assigning a custom + // bidding algorithm that uses floodlight activities not identified in + // floodlightActivityConfigs will return an error. CustomBiddingAlgorithmId int64 `json:"customBiddingAlgorithmId,omitempty,string"` // MaxAverageCpmBidAmountMicros: The maximum average CPM that may be bid, in // micros of the advertiser's currency. Must be greater than or equal to a @@ -12639,7 +12639,7 @@ func (s SdfConfig) MarshalJSON() ([]byte, error) { } // SdfDownloadTask: Type for the response returned by -// [SdfDownloadTaskService.CreateSdfDownloadTask]. +// SdfDownloadTaskService.CreateSdfDownloadTask. type SdfDownloadTask struct { // ResourceName: A resource name to be used in media.download to Download the // prepared files. Resource names have the format @@ -12666,7 +12666,7 @@ func (s SdfDownloadTask) MarshalJSON() ([]byte, error) { } // SdfDownloadTaskMetadata: Type for the metadata returned by -// [SdfDownloadTaskService.CreateSdfDownloadTask]. +// SdfDownloadTaskService.CreateSdfDownloadTask. type SdfDownloadTaskMetadata struct { // CreateTime: The time when the operation was created. CreateTime string `json:"createTime,omitempty"` @@ -26480,10 +26480,8 @@ type CustomBiddingAlgorithmsPatchCall struct { } // Patch: Updates an existing custom bidding algorithm. Returns the updated -// custom bidding algorithm if successful. *Warning*: Starting **April 1, -// 2025**, requests updating custom bidding algorithms that are assigned to -// line items will return an error. Read more about this announced change -// (/display-video/api/deprecations#features.custom_bidding_floodlight). +// custom bidding algorithm if successful. Requests updating a custom bidding +// algorithm assigned to a line item will return an error. // // - customBiddingAlgorithmId: Output only. The unique ID of the custom bidding // algorithm. Assigned by the system. @@ -26725,10 +26723,8 @@ type CustomBiddingAlgorithmsScriptsCreateCall struct { } // Create: Creates a new custom bidding script. Returns the newly created -// script if successful. *Warning*: Starting **April 1, 2025**, requests -// updating custom bidding algorithms that are assigned to line items will -// return an error. Read more about this announced change -// (/display-video/api/deprecations#features.custom_bidding_floodlight). +// script if successful. Requests creating a custom bidding script under an +// algorithm assigned to a line item will return an error. // // - customBiddingAlgorithmId: The ID of the custom bidding algorithm that owns // the script. @@ -33143,8 +33139,8 @@ type SdfdownloadtasksCreateCall struct { // operation is SdfDownloadTaskMetadata. If the request is successful, the // response type of the operation is SdfDownloadTask. The response will not // include the download files, which must be retrieved with media.download. The -// state of operation can be retrieved with sdfdownloadtask.operations.get. Any -// errors can be found in the error.message. Note that error.details is +// state of operation can be retrieved with `sdfdownloadtasks.operations.get`. +// Any errors can be found in the error.message. Note that error.details is // expected to be empty. func (r *SdfdownloadtasksService) Create(createsdfdownloadtaskrequest *CreateSdfDownloadTaskRequest) *SdfdownloadtasksCreateCall { c := &SdfdownloadtasksCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} diff --git a/gkebackup/v1/gkebackup-api.json b/gkebackup/v1/gkebackup-api.json index f6f278976f9..63096f97ca0 100644 --- a/gkebackup/v1/gkebackup-api.json +++ b/gkebackup/v1/gkebackup-api.json @@ -2227,7 +2227,7 @@ } } }, - "revision": "20250326", + "revision": "20250414", "rootUrl": "https://gkebackup.googleapis.com/", "schemas": { "AuditConfig": { @@ -3614,7 +3614,7 @@ "type": "string" }, "description": { - "description": "User specified descriptive string for this Restore.", + "description": "Optional. User specified descriptive string for this Restore.", "type": "string" }, "etag": { diff --git a/gkebackup/v1/gkebackup-gen.go b/gkebackup/v1/gkebackup-gen.go index 079dd6a4aa1..75f624d2bd4 100644 --- a/gkebackup/v1/gkebackup-gen.go +++ b/gkebackup/v1/gkebackup-gen.go @@ -2121,7 +2121,7 @@ type Restore struct { // CreateTime: Output only. The timestamp when this Restore resource was // created. CreateTime string `json:"createTime,omitempty"` - // Description: User specified descriptive string for this Restore. + // Description: Optional. User specified descriptive string for this Restore. Description string `json:"description,omitempty"` // Etag: Output only. `etag` is used for optimistic concurrency control as a // way to help prevent simultaneous updates of a restore from overwriting each diff --git a/gkehub/v1beta/gkehub-api.json b/gkehub/v1beta/gkehub-api.json index ac2eedd73c0..e9a67870e38 100644 --- a/gkehub/v1beta/gkehub-api.json +++ b/gkehub/v1beta/gkehub-api.json @@ -2117,7 +2117,7 @@ } } }, - "revision": "20250415", + "revision": "20250421", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AppDevExperienceFeatureSpec": { @@ -6371,7 +6371,7 @@ "type": "object" }, "ServiceMeshCondition": { - "description": "Condition being reported. TODO b/395151419: Remove this message once the membership-level conditions field uses the common Condition message.", + "description": "Condition being reported.", "id": "ServiceMeshCondition", "properties": { "code": { @@ -6641,7 +6641,7 @@ "id": "ServiceMeshMembershipState", "properties": { "conditions": { - "description": "Output only. List of conditions reported for this membership. TODO b/395151419: Use the common Condition message.", + "description": "Output only. List of conditions reported for this membership.", "items": { "$ref": "ServiceMeshCondition" }, diff --git a/gkehub/v1beta/gkehub-gen.go b/gkehub/v1beta/gkehub-gen.go index 89c261c6183..a65371d748d 100644 --- a/gkehub/v1beta/gkehub-gen.go +++ b/gkehub/v1beta/gkehub-gen.go @@ -5647,9 +5647,7 @@ func (s SecurityPostureConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ServiceMeshCondition: Condition being reported. TODO b/395151419: Remove -// this message once the membership-level conditions field uses the common -// Condition message. +// ServiceMeshCondition: Condition being reported. type ServiceMeshCondition struct { // Code: Unique identifier of the condition which describes the condition // recognizable to the user. @@ -5888,7 +5886,6 @@ func (s ServiceMeshMembershipSpec) MarshalJSON() ([]byte, error) { // as analyzed by the Service Mesh Hub Controller. type ServiceMeshMembershipState struct { // Conditions: Output only. List of conditions reported for this membership. - // TODO b/395151419: Use the common Condition message. Conditions []*ServiceMeshCondition `json:"conditions,omitempty"` // ControlPlaneManagement: Output only. Status of control plane management ControlPlaneManagement *ServiceMeshControlPlaneManagement `json:"controlPlaneManagement,omitempty"` diff --git a/meet/v2/meet-api.json b/meet/v2/meet-api.json index a46f1473598..42b9961a065 100644 --- a/meet/v2/meet-api.json +++ b/meet/v2/meet-api.json @@ -638,7 +638,7 @@ } } }, - "revision": "20250415", + "revision": "20250421", "rootUrl": "https://meet.googleapis.com/", "schemas": { "ActiveConference": { @@ -1096,7 +1096,7 @@ "type": "object" }, "SmartNotesConfig": { - "description": "Configuration related to smart notes in a meeting space. More details about smart notes https://support.google.com/meet/answer/14754931?hl=en.", + "description": "Configuration related to smart notes in a meeting space. For more information about smart notes, see [\"Take notes for me\" in Google Meet](https://support.google.com/meet/answer/14754931).", "id": "SmartNotesConfig", "properties": { "autoSmartNotesGeneration": { diff --git a/meet/v2/meet-gen.go b/meet/v2/meet-gen.go index 33dee92fea5..abfad0eb99d 100644 --- a/meet/v2/meet-gen.go +++ b/meet/v2/meet-gen.go @@ -870,8 +870,8 @@ func (s SignedinUser) MarshalJSON() ([]byte, error) { } // SmartNotesConfig: Configuration related to smart notes in a meeting space. -// More details about smart notes -// https://support.google.com/meet/answer/14754931?hl=en. +// For more information about smart notes, see "Take notes for me" in Google +// Meet (https://support.google.com/meet/answer/14754931). type SmartNotesConfig struct { // AutoSmartNotesGeneration: Defines whether to automatically generate a // summary and recap of the meeting for all invitees in the organization when diff --git a/merchantapi/accounts_v1beta/merchantapi-api.json b/merchantapi/accounts_v1beta/merchantapi-api.json index 80c89b4c138..1b8390d96e7 100644 --- a/merchantapi/accounts_v1beta/merchantapi-api.json +++ b/merchantapi/accounts_v1beta/merchantapi-api.json @@ -721,7 +721,7 @@ "issues": { "methods": { "list": { - "description": "Lists all account issues of a Merchant Center account.", + "description": "Lists all account issues of a Merchant Center account. When called on a multi-client account, this method only returns issues belonging to that account, not its sub-accounts. To retrieve issues for sub-accounts, you must first call the accounts.listSubaccounts method to obtain a list of sub-accounts, and then call `accounts.issues.list` for each sub-account individually.", "flatPath": "accounts/v1beta/accounts/{accountsId}/issues", "httpMethod": "GET", "id": "merchantapi.accounts.issues.list", @@ -1480,7 +1480,7 @@ } } }, - "revision": "20250421", + "revision": "20250422", "rootUrl": "https://merchantapi.googleapis.com/", "schemas": { "AcceptTermsOfServiceResponse": { diff --git a/merchantapi/accounts_v1beta/merchantapi-gen.go b/merchantapi/accounts_v1beta/merchantapi-gen.go index e885d12b4ff..18459d4e3c3 100644 --- a/merchantapi/accounts_v1beta/merchantapi-gen.go +++ b/merchantapi/accounts_v1beta/merchantapi-gen.go @@ -5808,7 +5808,12 @@ type AccountsIssuesListCall struct { header_ http.Header } -// List: Lists all account issues of a Merchant Center account. +// List: Lists all account issues of a Merchant Center account. When called on +// a multi-client account, this method only returns issues belonging to that +// account, not its sub-accounts. To retrieve issues for sub-accounts, you must +// first call the accounts.listSubaccounts method to obtain a list of +// sub-accounts, and then call `accounts.issues.list` for each sub-account +// individually. // // - parent: The parent, which owns this collection of issues. Format: // `accounts/{account}`. diff --git a/networkmanagement/v1beta1/networkmanagement-api.json b/networkmanagement/v1beta1/networkmanagement-api.json index cfe518ebe01..d121d852cd0 100644 --- a/networkmanagement/v1beta1/networkmanagement-api.json +++ b/networkmanagement/v1beta1/networkmanagement-api.json @@ -973,7 +973,7 @@ } } }, - "revision": "20250409", + "revision": "20250416", "rootUrl": "https://networkmanagement.googleapis.com/", "schemas": { "AbortInfo": { @@ -1012,6 +1012,7 @@ "FIREWALL_CONFIG_NOT_FOUND", "ROUTE_CONFIG_NOT_FOUND", "GOOGLE_MANAGED_SERVICE_AMBIGUOUS_PSC_ENDPOINT", + "GOOGLE_MANAGED_SERVICE_AMBIGUOUS_ENDPOINT", "SOURCE_PSC_CLOUD_SQL_UNSUPPORTED", "SOURCE_REDIS_CLUSTER_UNSUPPORTED", "SOURCE_REDIS_INSTANCE_UNSUPPORTED", @@ -1058,6 +1059,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -1089,7 +1091,8 @@ "Aborted because expected network configuration was missing.", "Aborted because expected firewall configuration was missing.", "Aborted because expected route configuration was missing.", - "Aborted because a PSC endpoint selection for the Google-managed service is ambiguous (several PSC endpoints satisfy test input).", + "Aborted because PSC endpoint selection for the Google-managed service is ambiguous (several PSC endpoints satisfy test input).", + "Aborted because endpoint selection for the Google-managed service is ambiguous (several endpoints satisfy test input).", "Aborted because tests with a PSC-based Cloud SQL instance as a source are not supported.", "Aborted because tests with a Redis Cluster as a source are not supported.", "Aborted because tests with a Redis Instance as a source are not supported.", @@ -1599,7 +1602,8 @@ "PSC_PORT_MAPPING_PORT_MISMATCH", "PSC_PORT_MAPPING_WITHOUT_PSC_CONNECTION_UNSUPPORTED", "UNSUPPORTED_ROUTE_MATCHED_FOR_NAT64_DESTINATION", - "TRAFFIC_FROM_HYBRID_ENDPOINT_TO_INTERNET_DISALLOWED" + "TRAFFIC_FROM_HYBRID_ENDPOINT_TO_INTERNET_DISALLOWED", + "NO_MATCHING_NAT64_GATEWAY" ], "enumDescriptions": [ "Cause is unspecified.", @@ -1690,7 +1694,8 @@ "Packet is sent to the PSC port mapping service, but its destination port does not match any port mapping rules.", "Sending packets directly to the PSC port mapping service without going through the PSC connection is not supported.", "Packet with destination IP address within the reserved NAT64 range is dropped due to matching a route of an unsupported type.", - "Packet could be dropped because hybrid endpoint like a VPN gateway or Interconnect is not allowed to send traffic to the Internet." + "Packet could be dropped because hybrid endpoint like a VPN gateway or Interconnect is not allowed to send traffic to the Internet.", + "Packet with destination IP address within the reserved NAT64 range is dropped due to no matching NAT gateway in the subnet." ], "type": "string" }, @@ -2216,6 +2221,10 @@ "description": "URI of the PSC network attachment the NIC is attached to (if relevant).", "type": "string" }, + "running": { + "description": "Indicates whether the Compute Engine instance is running.", + "type": "boolean" + }, "serviceAccount": { "deprecated": true, "description": "Service account authorized for the instance.", diff --git a/networkmanagement/v1beta1/networkmanagement-gen.go b/networkmanagement/v1beta1/networkmanagement-gen.go index 60f3b89803b..2c3a215f4ba 100644 --- a/networkmanagement/v1beta1/networkmanagement-gen.go +++ b/networkmanagement/v1beta1/networkmanagement-gen.go @@ -337,9 +337,12 @@ type AbortInfo struct { // configuration was missing. // "ROUTE_CONFIG_NOT_FOUND" - Aborted because expected route configuration // was missing. - // "GOOGLE_MANAGED_SERVICE_AMBIGUOUS_PSC_ENDPOINT" - Aborted because a PSC + // "GOOGLE_MANAGED_SERVICE_AMBIGUOUS_PSC_ENDPOINT" - Aborted because PSC // endpoint selection for the Google-managed service is ambiguous (several PSC // endpoints satisfy test input). + // "GOOGLE_MANAGED_SERVICE_AMBIGUOUS_ENDPOINT" - Aborted because endpoint + // selection for the Google-managed service is ambiguous (several endpoints + // satisfy test input). // "SOURCE_PSC_CLOUD_SQL_UNSUPPORTED" - Aborted because tests with a // PSC-based Cloud SQL instance as a source are not supported. // "SOURCE_REDIS_CLUSTER_UNSUPPORTED" - Aborted because tests with a Redis @@ -1160,6 +1163,9 @@ type DropInfo struct { // "TRAFFIC_FROM_HYBRID_ENDPOINT_TO_INTERNET_DISALLOWED" - Packet could be // dropped because hybrid endpoint like a VPN gateway or Interconnect is not // allowed to send traffic to the Internet. + // "NO_MATCHING_NAT64_GATEWAY" - Packet with destination IP address within + // the reserved NAT64 range is dropped due to no matching NAT gateway in the + // subnet. Cause string `json:"cause,omitempty"` // DestinationIp: Destination IP address of the dropped packet (if relevant). DestinationIp string `json:"destinationIp,omitempty"` @@ -1704,6 +1710,8 @@ type InstanceInfo struct { // PscNetworkAttachmentUri: URI of the PSC network attachment the NIC is // attached to (if relevant). PscNetworkAttachmentUri string `json:"pscNetworkAttachmentUri,omitempty"` + // Running: Indicates whether the Compute Engine instance is running. + Running bool `json:"running,omitempty"` // ServiceAccount: Service account authorized for the instance. ServiceAccount string `json:"serviceAccount,omitempty"` // Uri: URI of a Compute Engine instance. diff --git a/observability/v1/observability-api.json b/observability/v1/observability-api.json index bf9ba5427ab..f30e38ef403 100644 --- a/observability/v1/observability-api.json +++ b/observability/v1/observability-api.json @@ -350,7 +350,7 @@ "type": "string" }, "updateMask": { - "description": "Optional. Field mask is used to specify the fields to be overwritten in the Scope resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields present in the request will be overwritten.", + "description": "Optional. Field mask is used to specify the fields to be overwritten in the Scope resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field is overwritten when it is in the mask. If the user does not provide a mask, then all fields present in the request are overwritten.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -374,7 +374,7 @@ } } }, - "revision": "20250320", + "revision": "20250417", "rootUrl": "https://observability.googleapis.com/", "schemas": { "CancelOperationRequest": { diff --git a/observability/v1/observability-gen.go b/observability/v1/observability-gen.go index b611b0c5eb1..a8e66124759 100644 --- a/observability/v1/observability-gen.go +++ b/observability/v1/observability-gen.go @@ -1343,8 +1343,8 @@ func (r *ProjectsLocationsScopesService) Patch(name string, scope *Scope) *Proje // UpdateMask sets the optional parameter "updateMask": Field mask is used to // specify the fields to be overwritten in the Scope resource by the update. // The fields specified in the update_mask are relative to the resource, not -// the full request. A field will be overwritten if it is in the mask. If the -// user does not provide a mask then all fields present in the request will be +// the full request. A field is overwritten when it is in the mask. If the user +// does not provide a mask, then all fields present in the request are // overwritten. func (c *ProjectsLocationsScopesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsScopesPatchCall { c.urlParams_.Set("updateMask", updateMask) diff --git a/orgpolicy/v2/orgpolicy-api.json b/orgpolicy/v2/orgpolicy-api.json index 6ff13b85908..5f113ce3a00 100644 --- a/orgpolicy/v2/orgpolicy-api.json +++ b/orgpolicy/v2/orgpolicy-api.json @@ -930,7 +930,7 @@ } } }, - "revision": "20250117", + "revision": "20250418", "rootUrl": "https://orgpolicy.googleapis.com/", "schemas": { "GoogleCloudOrgpolicyV2AlternatePolicySpec": { @@ -978,6 +978,10 @@ "description": "The human readable name. Mutable.", "type": "string" }, + "equivalentConstraint": { + "description": "Managed constraint and canned constraint sometimes can have equivalents. This field is used to store the equivalent constraint name.", + "type": "string" + }, "listConstraint": { "$ref": "GoogleCloudOrgpolicyV2ConstraintListConstraint", "description": "Defines this constraint as being a list constraint." diff --git a/orgpolicy/v2/orgpolicy-gen.go b/orgpolicy/v2/orgpolicy-gen.go index dfbd783d66d..9cbc62088cb 100644 --- a/orgpolicy/v2/orgpolicy-gen.go +++ b/orgpolicy/v2/orgpolicy-gen.go @@ -330,6 +330,10 @@ type GoogleCloudOrgpolicyV2Constraint struct { Description string `json:"description,omitempty"` // DisplayName: The human readable name. Mutable. DisplayName string `json:"displayName,omitempty"` + // EquivalentConstraint: Managed constraint and canned constraint sometimes can + // have equivalents. This field is used to store the equivalent constraint + // name. + EquivalentConstraint string `json:"equivalentConstraint,omitempty"` // ListConstraint: Defines this constraint as being a list constraint. ListConstraint *GoogleCloudOrgpolicyV2ConstraintListConstraint `json:"listConstraint,omitempty"` // Name: Immutable. The resource name of the constraint. Must be in one of the diff --git a/redis/v1/redis-api.json b/redis/v1/redis-api.json index ea5c0f14b53..573f9789607 100644 --- a/redis/v1/redis-api.json +++ b/redis/v1/redis-api.json @@ -1073,7 +1073,7 @@ } } }, - "revision": "20250320", + "revision": "20250418", "rootUrl": "https://redis.googleapis.com/", "schemas": { "AOFConfig": { @@ -2132,7 +2132,13 @@ "SIGNAL_TYPE_NO_DELETION_PROTECTION", "SIGNAL_TYPE_INEFFICIENT_QUERY", "SIGNAL_TYPE_READ_INTENSIVE_WORKLOAD", - "SIGNAL_TYPE_MEMORY_LIMIT" + "SIGNAL_TYPE_MEMORY_LIMIT", + "SIGNAL_TYPE_MAX_SERVER_MEMORY", + "SIGNAL_TYPE_LARGE_ROWS", + "SIGNAL_TYPE_HIGH_WRITE_PRESSURE", + "SIGNAL_TYPE_HIGH_READ_PRESSURE", + "SIGNAL_TYPE_ENCRYPTION_ORG_POLICY_NOT_SATISFIED", + "SIGNAL_TYPE_LOCATION_ORG_POLICY_NOT_SATISFIED" ], "enumDeprecated": [ false, @@ -2224,6 +2230,12 @@ false, false, false, + false, + false, + false, + false, + false, + false, false ], "enumDescriptions": [ @@ -2316,7 +2328,13 @@ "Deletion Protection Disabled for the resource", "Indicates that the instance has inefficient queries detected.", "Indicates that the instance has read intensive workload.", - "Indicates that the instance is nearing memory limit." + "Indicates that the instance is nearing memory limit.", + "Indicates that the instance's max server memory is configured higher than the recommended value.", + "Indicates that the database has large rows beyond the recommended limit.", + "Heavy write pressure on the database rows.", + "Heavy read pressure on the database rows.", + "Encryption org policy not satisfied.", + "Location org policy not satisfied." ], "type": "string" }, @@ -2727,7 +2745,13 @@ "SIGNAL_TYPE_NO_DELETION_PROTECTION", "SIGNAL_TYPE_INEFFICIENT_QUERY", "SIGNAL_TYPE_READ_INTENSIVE_WORKLOAD", - "SIGNAL_TYPE_MEMORY_LIMIT" + "SIGNAL_TYPE_MEMORY_LIMIT", + "SIGNAL_TYPE_MAX_SERVER_MEMORY", + "SIGNAL_TYPE_LARGE_ROWS", + "SIGNAL_TYPE_HIGH_WRITE_PRESSURE", + "SIGNAL_TYPE_HIGH_READ_PRESSURE", + "SIGNAL_TYPE_ENCRYPTION_ORG_POLICY_NOT_SATISFIED", + "SIGNAL_TYPE_LOCATION_ORG_POLICY_NOT_SATISFIED" ], "enumDeprecated": [ false, @@ -2819,6 +2843,12 @@ false, false, false, + false, + false, + false, + false, + false, + false, false ], "enumDescriptions": [ @@ -2911,7 +2941,13 @@ "Deletion Protection Disabled for the resource", "Indicates that the instance has inefficient queries detected.", "Indicates that the instance has read intensive workload.", - "Indicates that the instance is nearing memory limit." + "Indicates that the instance is nearing memory limit.", + "Indicates that the instance's max server memory is configured higher than the recommended value.", + "Indicates that the database has large rows beyond the recommended limit.", + "Heavy write pressure on the database rows.", + "Heavy read pressure on the database rows.", + "Encryption org policy not satisfied.", + "Location org policy not satisfied." ], "type": "string" } @@ -4169,8 +4205,9 @@ "ON_PREM", "PRODUCT_TYPE_MEMORYSTORE", "PRODUCT_TYPE_BIGTABLE", - "PRODUCT_TYPE_OTHER", - "PRODUCT_TYPE_FIRESTORE" + "PRODUCT_TYPE_FIRESTORE", + "PRODUCT_TYPE_COMPUTE_ENGINE", + "PRODUCT_TYPE_OTHER" ], "enumDeprecated": [ false, @@ -4184,6 +4221,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -4197,8 +4235,9 @@ "On premises database product.", "Memorystore product area in GCP", "Bigtable product area in GCP", - "Other refers to rest of other product type. This is to be when product type is known, but it is not present in this enum.", - "Firestore product area in GCP." + "Firestore product area in GCP.", + "Compute Engine self managed databases", + "Other refers to rest of other product type. This is to be when product type is known, but it is not present in this enum." ], "type": "string" }, diff --git a/redis/v1/redis-gen.go b/redis/v1/redis-gen.go index 91a6f1059c7..d1a882fc579 100644 --- a/redis/v1/redis-gen.go +++ b/redis/v1/redis-gen.go @@ -1404,6 +1404,18 @@ type DatabaseResourceHealthSignalData struct { // read intensive workload. // "SIGNAL_TYPE_MEMORY_LIMIT" - Indicates that the instance is nearing memory // limit. + // "SIGNAL_TYPE_MAX_SERVER_MEMORY" - Indicates that the instance's max server + // memory is configured higher than the recommended value. + // "SIGNAL_TYPE_LARGE_ROWS" - Indicates that the database has large rows + // beyond the recommended limit. + // "SIGNAL_TYPE_HIGH_WRITE_PRESSURE" - Heavy write pressure on the database + // rows. + // "SIGNAL_TYPE_HIGH_READ_PRESSURE" - Heavy read pressure on the database + // rows. + // "SIGNAL_TYPE_ENCRYPTION_ORG_POLICY_NOT_SATISFIED" - Encryption org policy + // not satisfied. + // "SIGNAL_TYPE_LOCATION_ORG_POLICY_NOT_SATISFIED" - Location org policy not + // satisfied. SignalType string `json:"signalType,omitempty"` // Possible values: // "STATE_UNSPECIFIED" - Unspecified state. @@ -1871,6 +1883,18 @@ type DatabaseResourceRecommendationSignalData struct { // read intensive workload. // "SIGNAL_TYPE_MEMORY_LIMIT" - Indicates that the instance is nearing memory // limit. + // "SIGNAL_TYPE_MAX_SERVER_MEMORY" - Indicates that the instance's max server + // memory is configured higher than the recommended value. + // "SIGNAL_TYPE_LARGE_ROWS" - Indicates that the database has large rows + // beyond the recommended limit. + // "SIGNAL_TYPE_HIGH_WRITE_PRESSURE" - Heavy write pressure on the database + // rows. + // "SIGNAL_TYPE_HIGH_READ_PRESSURE" - Heavy read pressure on the database + // rows. + // "SIGNAL_TYPE_ENCRYPTION_ORG_POLICY_NOT_SATISFIED" - Encryption org policy + // not satisfied. + // "SIGNAL_TYPE_LOCATION_ORG_POLICY_NOT_SATISFIED" - Location org policy not + // satisfied. SignalType string `json:"signalType,omitempty"` // ForceSendFields is a list of field names (e.g. "AdditionalMetadata") to // unconditionally include in API requests. By default, fields with empty or @@ -3343,9 +3367,10 @@ type Product struct { // "ON_PREM" - On premises database product. // "PRODUCT_TYPE_MEMORYSTORE" - Memorystore product area in GCP // "PRODUCT_TYPE_BIGTABLE" - Bigtable product area in GCP + // "PRODUCT_TYPE_FIRESTORE" - Firestore product area in GCP. + // "PRODUCT_TYPE_COMPUTE_ENGINE" - Compute Engine self managed databases // "PRODUCT_TYPE_OTHER" - Other refers to rest of other product type. This is // to be when product type is known, but it is not present in this enum. - // "PRODUCT_TYPE_FIRESTORE" - Firestore product area in GCP. Type string `json:"type,omitempty"` // Version: Version of the underlying database engine. Example values: For // MySQL, it could be "8.0", "5.7" etc.. For Postgres, it could be "14", "15" diff --git a/storage/v1/storage-api.json b/storage/v1/storage-api.json index 0e8840571d7..33a68664780 100644 --- a/storage/v1/storage-api.json +++ b/storage/v1/storage-api.json @@ -52,6 +52,11 @@ "endpointUrl": "https://storage.asia-northeast2.rep.googleapis.com/", "location": "asia-northeast2" }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://storage.asia-northeast3.rep.googleapis.com/", + "location": "asia-northeast3" + }, { "description": "Regional Endpoint", "endpointUrl": "https://storage.asia-south1.rep.googleapis.com/", @@ -233,7 +238,7 @@ "location": "northamerica-northeast1" } ], - "etag": "\"3138323537363430373936393234303439393430\"", + "etag": "\"36333136333838383435323333303139303231\"", "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" @@ -4504,7 +4509,7 @@ } } }, - "revision": "20250416", + "revision": "20250420", "rootUrl": "https://storage.googleapis.com/", "schemas": { "AdvanceRelocateBucketOperationRequest": { From 405935174a0a7c9734c8e6b0dce487c481a7927e Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sat, 26 Apr 2025 00:38:24 -0700 Subject: [PATCH 4/8] feat(all): auto-regenerate discovery clients (#3126) --- admin/reports/v1/admin-api.json | 10 +- apigee/v1/apigee-api.json | 4 +- apigee/v1/apigee-gen.go | 2 +- dialogflow/v3beta1/dialogflow-api.json | 83 +++++- dialogflow/v3beta1/dialogflow-gen.go | 97 ++++++- displayvideo/v2/displayvideo-api.json | 14 +- displayvideo/v2/displayvideo-gen.go | 17 +- displayvideo/v3/displayvideo-api.json | 151 ++++++++++- displayvideo/v3/displayvideo-gen.go | 155 +++++++++-- displayvideo/v4/displayvideo-api.json | 201 +++++++++++++-- displayvideo/v4/displayvideo-gen.go | 242 +++++++++++++----- documentai/v1/documentai-api.json | 18 +- documentai/v1/documentai-gen.go | 9 + documentai/v1beta3/documentai-api.json | 147 ++++++++++- documentai/v1beta3/documentai-gen.go | 206 ++++++++++++++- firebaseml/v2beta/firebaseml-api.json | 6 +- firebaseml/v2beta/firebaseml-gen.go | 15 +- .../v1/networkmanagement-api.json | 17 +- networkmanagement/v1/networkmanagement-gen.go | 10 +- parallelstore/v1/parallelstore-api.json | 14 +- parallelstore/v1/parallelstore-gen.go | 34 +-- parallelstore/v1beta/parallelstore-api.json | 14 +- parallelstore/v1beta/parallelstore-gen.go | 34 +-- tpu/v2alpha1/tpu-api.json | 17 +- tpu/v2alpha1/tpu-gen.go | 13 + 25 files changed, 1299 insertions(+), 231 deletions(-) diff --git a/admin/reports/v1/admin-api.json b/admin/reports/v1/admin-api.json index 1b5569577dc..6e7447a4024 100644 --- a/admin/reports/v1/admin-api.json +++ b/admin/reports/v1/admin-api.json @@ -150,8 +150,7 @@ "chrome", "data_studio", "keep", - "vault", - "gemini_for_workspace" + "vault" ], "enumDescriptions": [ "The Google Workspace Access Transparency activity reports return information about different types of Access Transparency activity events.", @@ -175,11 +174,10 @@ "The Chrome activity reports return information about Chrome browser and Chrome OS events.", "The Data Studio activity reports return information about various types of Data Studio activity events.", "The Keep application's activity reports return information about various Google Keep activity events. The Keep activity report is only available for Google Workspace Business and Enterprise customers.", - "The Vault activity reports return information about various types of Vault activity events.", - "The Gemini for Workspace app's activity reports return information about various types of Gemini activity events." + "The Vault activity reports return information about various types of Vault activity events." ], "location": "path", - "pattern": "(access_transparency)|(admin)|(calendar)|(chat)|(chrome)|(context_aware_access)|(data_studio)|(drive)|(gcp)|(gplus)|(groups)|(groups_enterprise)|(jamboard)|(keep)|(login)|(meet)|(mobile)|(rules)|(saml)|(token)|(user_accounts)|(vault)|(gemini_for_workspace)", + "pattern": "(access_transparency)|(admin)|(calendar)|(chat)|(chrome)|(context_aware_access)|(data_studio)|(drive)|(gcp)|(gplus)|(groups)|(groups_enterprise)|(jamboard)|(keep)|(login)|(meet)|(mobile)|(rules)|(saml)|(token)|(user_accounts)|(vault)", "required": true, "type": "string" }, @@ -628,7 +626,7 @@ } } }, - "revision": "20250421", + "revision": "20250424", "rootUrl": "https://admin.googleapis.com/", "schemas": { "Activities": { diff --git a/apigee/v1/apigee-api.json b/apigee/v1/apigee-api.json index 269f557c25b..72b7caa40dd 100644 --- a/apigee/v1/apigee-api.json +++ b/apigee/v1/apigee-api.json @@ -11063,7 +11063,7 @@ } } }, - "revision": "20250414", + "revision": "20250421", "rootUrl": "https://apigee.googleapis.com/", "schemas": { "EdgeConfigstoreBundleBadBundle": { @@ -11942,7 +11942,7 @@ "type": "boolean" }, "expiresAt": { - "description": "Output only. Time at which the API Security add-on expires in in milliseconds since epoch. If unspecified, the add-on will never expire.", + "description": "Output only. Time at which the API Security add-on expires in milliseconds since epoch. If unspecified, the add-on will never expire.", "format": "int64", "readOnly": true, "type": "string" diff --git a/apigee/v1/apigee-gen.go b/apigee/v1/apigee-gen.go index aaa2fb0c799..c8ae1118b44 100644 --- a/apigee/v1/apigee-gen.go +++ b/apigee/v1/apigee-gen.go @@ -2361,7 +2361,7 @@ func (s GoogleCloudApigeeV1ApiProxyRevision) MarshalJSON() ([]byte, error) { type GoogleCloudApigeeV1ApiSecurityConfig struct { // Enabled: Flag that specifies whether the API security add-on is enabled. Enabled bool `json:"enabled,omitempty"` - // ExpiresAt: Output only. Time at which the API Security add-on expires in in + // ExpiresAt: Output only. Time at which the API Security add-on expires in // milliseconds since epoch. If unspecified, the add-on will never expire. ExpiresAt int64 `json:"expiresAt,omitempty,string"` // ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally diff --git a/dialogflow/v3beta1/dialogflow-api.json b/dialogflow/v3beta1/dialogflow-api.json index d932c47e6ce..63cac0a8c0e 100644 --- a/dialogflow/v3beta1/dialogflow-api.json +++ b/dialogflow/v3beta1/dialogflow-api.json @@ -5436,7 +5436,7 @@ } } }, - "revision": "20250414", + "revision": "20250422", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -6808,6 +6808,10 @@ "text": { "$ref": "GoogleCloudDialogflowCxV3TextInput", "description": "The natural language text to be processed." + }, + "toolCallResult": { + "$ref": "GoogleCloudDialogflowCxV3ToolCallResult", + "description": "The results of a tool executed by the client." } }, "type": "object" @@ -6881,6 +6885,10 @@ "text": { "$ref": "GoogleCloudDialogflowCxV3ResponseMessageText", "description": "Returns a text response." + }, + "toolCall": { + "$ref": "GoogleCloudDialogflowCxV3ToolCall", + "description": "Returns the definition of a tool call that should be executed by the client." } }, "type": "object" @@ -7275,6 +7283,67 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3ToolCall": { + "description": "Represents a call of a specific tool's action with the specified inputs.", + "id": "GoogleCloudDialogflowCxV3ToolCall", + "properties": { + "action": { + "description": "Required. The name of the tool's action associated with this call.", + "type": "string" + }, + "inputParameters": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Optional. The action's input parameters.", + "type": "object" + }, + "tool": { + "description": "Required. The tool associated with this call. Format: `projects//locations//agents//tools/`.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3ToolCallResult": { + "description": "The result of calling a tool's action that has been executed by the client.", + "id": "GoogleCloudDialogflowCxV3ToolCallResult", + "properties": { + "action": { + "description": "Required. The name of the tool's action associated with this call.", + "type": "string" + }, + "error": { + "$ref": "GoogleCloudDialogflowCxV3ToolCallResultError", + "description": "The tool call's error." + }, + "outputParameters": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "The tool call's output parameters.", + "type": "object" + }, + "tool": { + "description": "Required. The tool associated with this call. Format: `projects//locations//agents//tools/`.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3ToolCallResultError": { + "description": "An error produced by the tool call.", + "id": "GoogleCloudDialogflowCxV3ToolCallResultError", + "properties": { + "message": { + "description": "Optional. The error message of the function.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3TransitionRoute": { "description": "A transition route specifies a intent that can be matched and/or a data condition that can be evaluated during a session. When a specified transition is matched, the following actions are taken in order: * If there is a `trigger_fulfillment` associated with the transition, it will be called. * If there is a `target_page` associated with the transition, the session will transition into the specified page. * If there is a `target_flow` associated with the transition, the session will transition into the specified flow.", "id": "GoogleCloudDialogflowCxV3TransitionRoute", @@ -9943,9 +10012,9 @@ }, "type": "object" }, - "GoogleCloudDialogflowCxV3beta1Exception": { + "GoogleCloudDialogflowCxV3beta1ExceptionDetail": { "description": "Exception thrown during the execution of an action.", - "id": "GoogleCloudDialogflowCxV3beta1Exception", + "id": "GoogleCloudDialogflowCxV3beta1ExceptionDetail", "properties": { "errorMessage": { "description": "Optional. The error message.", @@ -10491,13 +10560,11 @@ "description": "Optional. The data format of the exported tools. If not specified, `BLOB` is assumed.", "enum": [ "DATA_FORMAT_UNSPECIFIED", - "BLOB", - "JSON" + "BLOB" ], "enumDescriptions": [ "Unspecified format. Treated as `BLOB`.", - "Tools will be exported as raw bytes.", - "Tools will be exported in JSON format." + "Tools will be exported as raw bytes." ], "type": "string" }, @@ -14195,7 +14262,7 @@ "id": "GoogleCloudDialogflowCxV3beta1Status", "properties": { "exception": { - "$ref": "GoogleCloudDialogflowCxV3beta1Exception", + "$ref": "GoogleCloudDialogflowCxV3beta1ExceptionDetail", "description": "Optional. The exception thrown during the execution of the action." } }, diff --git a/dialogflow/v3beta1/dialogflow-gen.go b/dialogflow/v3beta1/dialogflow-gen.go index 4237d89b756..c12f0028509 100644 --- a/dialogflow/v3beta1/dialogflow-gen.go +++ b/dialogflow/v3beta1/dialogflow-gen.go @@ -2573,6 +2573,8 @@ type GoogleCloudDialogflowCxV3QueryInput struct { LanguageCode string `json:"languageCode,omitempty"` // Text: The natural language text to be processed. Text *GoogleCloudDialogflowCxV3TextInput `json:"text,omitempty"` + // ToolCallResult: The results of a tool executed by the client. + ToolCallResult *GoogleCloudDialogflowCxV3ToolCallResult `json:"toolCallResult,omitempty"` // ForceSendFields is a list of field names (e.g. "Audio") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See @@ -2651,6 +2653,9 @@ type GoogleCloudDialogflowCxV3ResponseMessage struct { TelephonyTransferCall *GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall `json:"telephonyTransferCall,omitempty"` // Text: Returns a text response. Text *GoogleCloudDialogflowCxV3ResponseMessageText `json:"text,omitempty"` + // ToolCall: Returns the definition of a tool call that should be executed by + // the client. + ToolCall *GoogleCloudDialogflowCxV3ToolCall `json:"toolCall,omitempty"` // ForceSendFields is a list of field names (e.g. "Channel") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See @@ -3243,6 +3248,87 @@ func (s GoogleCloudDialogflowCxV3TextInput) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3ToolCall: Represents a call of a specific tool's +// action with the specified inputs. +type GoogleCloudDialogflowCxV3ToolCall struct { + // Action: Required. The name of the tool's action associated with this call. + Action string `json:"action,omitempty"` + // InputParameters: Optional. The action's input parameters. + InputParameters googleapi.RawMessage `json:"inputParameters,omitempty"` + // Tool: Required. The tool associated with this call. Format: + // `projects//locations//agents//tools/`. + Tool string `json:"tool,omitempty"` + // ForceSendFields is a list of field names (e.g. "Action") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Action") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3ToolCall) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3ToolCall + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3ToolCallResult: The result of calling a tool's +// action that has been executed by the client. +type GoogleCloudDialogflowCxV3ToolCallResult struct { + // Action: Required. The name of the tool's action associated with this call. + Action string `json:"action,omitempty"` + // Error: The tool call's error. + Error *GoogleCloudDialogflowCxV3ToolCallResultError `json:"error,omitempty"` + // OutputParameters: The tool call's output parameters. + OutputParameters googleapi.RawMessage `json:"outputParameters,omitempty"` + // Tool: Required. The tool associated with this call. Format: + // `projects//locations//agents//tools/`. + Tool string `json:"tool,omitempty"` + // ForceSendFields is a list of field names (e.g. "Action") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Action") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3ToolCallResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3ToolCallResult + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3ToolCallResultError: An error produced by the tool +// call. +type GoogleCloudDialogflowCxV3ToolCallResultError struct { + // Message: Optional. The error message of the function. + Message string `json:"message,omitempty"` + // ForceSendFields is a list of field names (e.g. "Message") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Message") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3ToolCallResultError) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3ToolCallResultError + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3TransitionRoute: A transition route specifies a // intent that can be matched and/or a data condition that can be evaluated // during a session. When a specified transition is matched, the following @@ -6724,9 +6810,9 @@ func (s GoogleCloudDialogflowCxV3beta1Example) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowCxV3beta1Exception: Exception thrown during the +// GoogleCloudDialogflowCxV3beta1ExceptionDetail: Exception thrown during the // execution of an action. -type GoogleCloudDialogflowCxV3beta1Exception struct { +type GoogleCloudDialogflowCxV3beta1ExceptionDetail struct { // ErrorMessage: Optional. The error message. ErrorMessage string `json:"errorMessage,omitempty"` // ForceSendFields is a list of field names (e.g. "ErrorMessage") to @@ -6742,8 +6828,8 @@ type GoogleCloudDialogflowCxV3beta1Exception struct { NullFields []string `json:"-"` } -func (s GoogleCloudDialogflowCxV3beta1Exception) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDialogflowCxV3beta1Exception +func (s GoogleCloudDialogflowCxV3beta1ExceptionDetail) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1ExceptionDetail return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } @@ -7466,7 +7552,6 @@ type GoogleCloudDialogflowCxV3beta1ExportToolsRequest struct { // Possible values: // "DATA_FORMAT_UNSPECIFIED" - Unspecified format. Treated as `BLOB`. // "BLOB" - Tools will be exported as raw bytes. - // "JSON" - Tools will be exported in JSON format. DataFormat string `json:"dataFormat,omitempty"` // Tools: Required. The name of the tools to export. Format: // `projects//locations//agents//tools/`. @@ -12712,7 +12797,7 @@ type GoogleCloudDialogflowCxV3beta1StartExperimentRequest struct { type GoogleCloudDialogflowCxV3beta1Status struct { // Exception: Optional. The exception thrown during the execution of the // action. - Exception *GoogleCloudDialogflowCxV3beta1Exception `json:"exception,omitempty"` + Exception *GoogleCloudDialogflowCxV3beta1ExceptionDetail `json:"exception,omitempty"` // ForceSendFields is a list of field names (e.g. "Exception") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See diff --git a/displayvideo/v2/displayvideo-api.json b/displayvideo/v2/displayvideo-api.json index 364366368c8..494f1fad087 100644 --- a/displayvideo/v2/displayvideo-api.json +++ b/displayvideo/v2/displayvideo-api.json @@ -8010,7 +8010,7 @@ } } }, - "revision": "20250417", + "revision": "20250424", "rootUrl": "https://displayvideo.googleapis.com/", "schemas": { "ActivateManualTriggerRequest": { @@ -8164,11 +8164,11 @@ "type": "object" }, "Adloox": { - "description": "Details of Adloox brand safety settings.", + "description": "Details of Scope3 (previously known as Adloox) brand safety settings.", "id": "Adloox", "properties": { "excludedAdlooxCategories": { - "description": "Adloox categories to exclude.", + "description": "Scope3 categories to exclude.", "items": { "enum": [ "ADLOOX_UNSPECIFIED", @@ -8182,7 +8182,7 @@ "FRAUD" ], "enumDescriptions": [ - "Default value when a Adloox category is not specified or is unknown in this version.", + "Default value when a Scope3 category is not specified or is unknown in this version.", "Adult content (hard).", "Adult content (soft).", "Illegal content.", @@ -17443,8 +17443,8 @@ ], "enumDescriptions": [ "Type value is not specified or is unknown in this version.", - "The cost is charged for using Adloox. Billed by the partner.", - "The cost is charged for using Adloox Pre-Bid. Billed through DV360.", + "The cost is charged for using Scope3 (previously known as Adloox). Billed by the partner.", + "The cost is charged for using Scope3 (previously known as Adloox) Pre-Bid. Billed through DV360.", "The cost is charged for using AdSafe. Billed by the partner.", "The cost is charged for using AdExpose. Billed by the partner.", "The cost is charged for using Aggregate Knowledge. Billed by the partner.", @@ -19034,7 +19034,7 @@ "properties": { "adloox": { "$ref": "Adloox", - "description": "Third party brand verifier -- Adloox." + "description": "Third party brand verifier -- Scope3 (previously known as Adloox)." }, "doubleVerify": { "$ref": "DoubleVerify", diff --git a/displayvideo/v2/displayvideo-gen.go b/displayvideo/v2/displayvideo-gen.go index b9fbb5935ab..a6e5cc03252 100644 --- a/displayvideo/v2/displayvideo-gen.go +++ b/displayvideo/v2/displayvideo-gen.go @@ -826,12 +826,13 @@ func (s AdUrl) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Adloox: Details of Adloox brand safety settings. +// Adloox: Details of Scope3 (previously known as Adloox) brand safety +// settings. type Adloox struct { - // ExcludedAdlooxCategories: Adloox categories to exclude. + // ExcludedAdlooxCategories: Scope3 categories to exclude. // // Possible values: - // "ADLOOX_UNSPECIFIED" - Default value when a Adloox category is not + // "ADLOOX_UNSPECIFIED" - Default value when a Scope3 category is not // specified or is unknown in this version. // "ADULT_CONTENT_HARD" - Adult content (hard). // "ADULT_CONTENT_SOFT" - Adult content (soft). @@ -11578,10 +11579,10 @@ type PartnerCost struct { // Possible values: // "PARTNER_COST_TYPE_UNSPECIFIED" - Type value is not specified or is // unknown in this version. - // "PARTNER_COST_TYPE_ADLOOX" - The cost is charged for using Adloox. Billed - // by the partner. - // "PARTNER_COST_TYPE_ADLOOX_PREBID" - The cost is charged for using Adloox - // Pre-Bid. Billed through DV360. + // "PARTNER_COST_TYPE_ADLOOX" - The cost is charged for using Scope3 + // (previously known as Adloox). Billed by the partner. + // "PARTNER_COST_TYPE_ADLOOX_PREBID" - The cost is charged for using Scope3 + // (previously known as Adloox) Pre-Bid. Billed through DV360. // "PARTNER_COST_TYPE_ADSAFE" - The cost is charged for using AdSafe. Billed // by the partner. // "PARTNER_COST_TYPE_ADXPOSE" - The cost is charged for using AdExpose. @@ -13524,7 +13525,7 @@ func (s ThirdPartyVendorConfig) MarshalJSON() ([]byte, error) { // field of an AssignedTargetingOption when targeting_type is // `TARGETING_TYPE_THIRD_PARTY_VERIFIER`. type ThirdPartyVerifierAssignedTargetingOptionDetails struct { - // Adloox: Third party brand verifier -- Adloox. + // Adloox: Third party brand verifier -- Scope3 (previously known as Adloox). Adloox *Adloox `json:"adloox,omitempty"` // DoubleVerify: Third party brand verifier -- DoubleVerify. DoubleVerify *DoubleVerify `json:"doubleVerify,omitempty"` diff --git a/displayvideo/v3/displayvideo-api.json b/displayvideo/v3/displayvideo-api.json index c165e0ce880..90f204547b9 100644 --- a/displayvideo/v3/displayvideo-api.json +++ b/displayvideo/v3/displayvideo-api.json @@ -9268,7 +9268,7 @@ } } }, - "revision": "20250417", + "revision": "20250424", "rootUrl": "https://displayvideo.googleapis.com/", "schemas": { "ActiveViewVideoViewabilityMetricConfig": { @@ -9609,7 +9609,7 @@ "type": "object" }, "Adloox": { - "description": "Details of Adloox brand safety settings.", + "description": "Details of Scope3 (previously known as Adloox) brand safety settings.", "id": "Adloox", "properties": { "adultExplicitSexualContent": { @@ -9723,7 +9723,7 @@ "type": "string" }, "excludedAdlooxCategories": { - "description": "Adloox categories to exclude.", + "description": "Scope3 categories to exclude.", "items": { "enum": [ "ADLOOX_UNSPECIFIED", @@ -9737,7 +9737,7 @@ "FRAUD" ], "enumDescriptions": [ - "Default value when a Adloox category is not specified or is unknown in this version.", + "Default value when a Scope3 category is not specified or is unknown in this version.", "Adult content (hard).", "Adult content (soft).", "Illegal content.", @@ -9752,14 +9752,14 @@ "type": "array" }, "excludedFraudIvtMfaCategories": { - "description": "Optional. Adloox's fraud IVT MFA categories to exclude.", + "description": "Optional. Scope3's fraud IVT MFA categories to exclude.", "items": { "enum": [ "FRAUD_IVT_MFA_CATEGORY_UNSPECIFIED", "FRAUD_IVT_MFA" ], "enumDescriptions": [ - "Default value when a Adloox Fraud, IVT, MFA category is not specified or is unknown in this version.", + "Default value when a Scope3 Fraud, IVT, MFA category is not specified or is unknown in this version.", "FRAUD, IVT, MFA." ], "type": "string" @@ -10215,9 +10215,18 @@ "description": "Rule-based algorithm.", "id": "AlgorithmRules", "properties": { + "attributionModelId": { + "description": "Attribution model for the algorithm.", + "format": "int64", + "type": "string" + }, "impressionSignalRuleset": { "$ref": "AlgorithmRulesRuleset", "description": "Rules for the impression signals." + }, + "postImpressionSignalRuleset": { + "$ref": "AlgorithmRulesRuleset", + "description": "Rules for the post-impression signals." } }, "type": "object" @@ -10487,6 +10496,70 @@ "stringValue": { "description": "String value.", "type": "string" + }, + "videoPlayerSizeValue": { + "description": "Video player size value.", + "enum": [ + "VIDEO_PLAYER_SIZE_UNSPECIFIED", + "VIDEO_PLAYER_SIZE_SMALL", + "VIDEO_PLAYER_SIZE_LARGE", + "VIDEO_PLAYER_SIZE_HD", + "VIDEO_PLAYER_SIZE_UNKNOWN" + ], + "enumDescriptions": [ + "Video player size is not specified in this version. This enum is a place holder for a default value and does not represent a real video player size.", + "The dimensions of the video player are less than 400×300 (desktop), or up to 20% of screen covered (mobile).", + "The dimensions of the video player are between 400x300 and 1280x720 pixels (desktop), or 20% to 90% of the screen covered (mobile).", + "The dimensions of the video player are 1280×720 or greater (desktop), or over 90% of the screen covered (mobile).", + "The dimensions of the video player are unknown." + ], + "type": "string" + } + }, + "type": "object" + }, + "AlgorithmRulesFloodlightActivityConversionSignal": { + "description": "The rule to score impressions based on Floodlight conversion events.", + "id": "AlgorithmRulesFloodlightActivityConversionSignal", + "properties": { + "conversionCounting": { + "description": "Required. The type of conversions to be used in impression value computation, for example, post-click conversions.", + "enum": [ + "CONVERSION_COUNTING_UNSPECIFIED", + "ALL_CONVERSIONS", + "POST_CLICK", + "POST_VIEW" + ], + "enumDescriptions": [ + "The action is not specified.", + "All conversions.", + "Post-click conversions.", + "Post-view conversions." + ], + "type": "string" + }, + "countingMethod": { + "description": "Required. The way to acquire value from the floodlight activity, for example, count of the conversion.", + "enum": [ + "COUNTING_METHOD_UNSPECIFIED", + "CONVERSIONS_COUNT", + "SALES_QUANTITY", + "SALES_VALUE", + "UNIQUE_COUNT" + ], + "enumDescriptions": [ + "The action is not specified.", + "The count of conversions associated with the conversion activity.", + "The number of sales items associated with the conversion activity.", + "The sales revenue associated with the conversion activity.", + "The count of unique conversions associated with the conversion activity. Only one conversion can be counted per impression." + ], + "type": "string" + }, + "floodlightActivityId": { + "description": "Required. Id of the floodlight activity.", + "format": "int64", + "type": "string" } }, "type": "object" @@ -10566,6 +10639,40 @@ "description": "Signal used to evaluate rules.", "id": "AlgorithmRulesSignal", "properties": { + "activeViewSignal": { + "description": "Signal based on active views.", + "enum": [ + "ACTIVE_VIEW_SIGNAL_UNSPECIFIED", + "ACTIVE_VIEW_VIEWED", + "AUDIBLE", + "VIDEO_COMPLETED", + "TIME_ON_SCREEN", + "VIDEO_PLAYER_SIZE", + "COMPLETED_IN_VIEW_AUDIBLE" + ], + "enumDescriptions": [ + "Unknown signal.", + "Whether Active View detects that your ad has been viewed. Value is stored in the boolValue field of the comparison value.", + "Whether Active View detects that your ad was audible. Value is stored in the boolValue field of the comparison value.", + "Whether the video was completed. Value is stored in the boolValue field of the comparison value.", + "The time the ad was on screen in seconds. Value is stored in the int64Value field of the comparison value.", + "The size of the video player displaying the ad. Value is stored in the videoPlayerSizeValue field of the comparison value.", + "Whether the ad was completed in view and audible. Value is stored in the boolValue field of the comparison value." + ], + "type": "string" + }, + "clickSignal": { + "description": "Signal based on clicks.", + "enum": [ + "CLICK_SIGNAL_UNSPECIFIED", + "CLICK" + ], + "enumDescriptions": [ + "Unknown signal.", + "Whether the ad was clicked. Value is stored in the boolValue field of the comparison value." + ], + "type": "string" + }, "impressionSignal": { "description": "Signal based on impressions.", "enum": [ @@ -10640,6 +10747,32 @@ "description": "Adjusted value of the signal used for rule evaluation.", "id": "AlgorithmRulesSignalValue", "properties": { + "activeViewSignal": { + "description": "Signal based on active views. Only `TIME_ON_SCREEN` is supported.", + "enum": [ + "ACTIVE_VIEW_SIGNAL_UNSPECIFIED", + "ACTIVE_VIEW_VIEWED", + "AUDIBLE", + "VIDEO_COMPLETED", + "TIME_ON_SCREEN", + "VIDEO_PLAYER_SIZE", + "COMPLETED_IN_VIEW_AUDIBLE" + ], + "enumDescriptions": [ + "Unknown signal.", + "Whether Active View detects that your ad has been viewed. Value is stored in the boolValue field of the comparison value.", + "Whether Active View detects that your ad was audible. Value is stored in the boolValue field of the comparison value.", + "Whether the video was completed. Value is stored in the boolValue field of the comparison value.", + "The time the ad was on screen in seconds. Value is stored in the int64Value field of the comparison value.", + "The size of the video player displaying the ad. Value is stored in the videoPlayerSizeValue field of the comparison value.", + "Whether the ad was completed in view and audible. Value is stored in the boolValue field of the comparison value." + ], + "type": "string" + }, + "floodlightActivityConversionSignal": { + "$ref": "AlgorithmRulesFloodlightActivityConversionSignal", + "description": "Signal based on floodlight conversion events." + }, "number": { "description": "Value to use as result.", "format": "double", @@ -20480,8 +20613,8 @@ ], "enumDescriptions": [ "Type value is not specified or is unknown in this version.", - "The cost is charged for using Adloox. Billed by the partner.", - "The cost is charged for using Adloox Pre-Bid. Billed through DV360.", + "The cost is charged for using Scope3 (previously known as Adloox). Billed by the partner.", + "The cost is charged for using Scope3 (previously known as Adloox) Pre-Bid. Billed through DV360.", "The cost is charged for using AdSafe. Billed by the partner.", "The cost is charged for using AdExpose. Billed by the partner.", "The cost is charged for using Aggregate Knowledge. Billed by the partner.", @@ -22105,7 +22238,7 @@ "properties": { "adloox": { "$ref": "Adloox", - "description": "Third party brand verifier -- Adloox." + "description": "Third party brand verifier -- Scope3 (previously known as Adloox)." }, "doubleVerify": { "$ref": "DoubleVerify", diff --git a/displayvideo/v3/displayvideo-gen.go b/displayvideo/v3/displayvideo-gen.go index ad801a32a80..59ee88e75ec 100644 --- a/displayvideo/v3/displayvideo-gen.go +++ b/displayvideo/v3/displayvideo-gen.go @@ -1068,7 +1068,8 @@ func (s AdUrl) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Adloox: Details of Adloox brand safety settings. +// Adloox: Details of Scope3 (previously known as Adloox) brand safety +// settings. type Adloox struct { // AdultExplicitSexualContent: Optional. Adult and Explicit Sexual Content GARM // (https://wfanet.org/leadership/garm/about-garm) risk ranges to exclude. @@ -1149,10 +1150,10 @@ type Adloox struct { // "DISPLAY_IAB_VIEWABILITY_75" - 75%+ in view (IAB display viewability // standard). DisplayIabViewability string `json:"displayIabViewability,omitempty"` - // ExcludedAdlooxCategories: Adloox categories to exclude. + // ExcludedAdlooxCategories: Scope3 categories to exclude. // // Possible values: - // "ADLOOX_UNSPECIFIED" - Default value when a Adloox category is not + // "ADLOOX_UNSPECIFIED" - Default value when a Scope3 category is not // specified or is unknown in this version. // "ADULT_CONTENT_HARD" - Adult content (hard). // "ADULT_CONTENT_SOFT" - Adult content (soft). @@ -1163,11 +1164,11 @@ type Adloox struct { // "LOW_VIEWABILITY_DOMAINS" - Low viewability domains. // "FRAUD" - Fraud. ExcludedAdlooxCategories []string `json:"excludedAdlooxCategories,omitempty"` - // ExcludedFraudIvtMfaCategories: Optional. Adloox's fraud IVT MFA categories + // ExcludedFraudIvtMfaCategories: Optional. Scope3's fraud IVT MFA categories // to exclude. // // Possible values: - // "FRAUD_IVT_MFA_CATEGORY_UNSPECIFIED" - Default value when a Adloox Fraud, + // "FRAUD_IVT_MFA_CATEGORY_UNSPECIFIED" - Default value when a Scope3 Fraud, // IVT, MFA category is not specified or is unknown in this version. // "FRAUD_IVT_MFA" - FRAUD, IVT, MFA. ExcludedFraudIvtMfaCategories []string `json:"excludedFraudIvtMfaCategories,omitempty"` @@ -1721,17 +1722,21 @@ func (s AgeRangeTargetingOptionDetails) MarshalJSON() ([]byte, error) { // AlgorithmRules: Rule-based algorithm. type AlgorithmRules struct { + // AttributionModelId: Attribution model for the algorithm. + AttributionModelId int64 `json:"attributionModelId,omitempty,string"` // ImpressionSignalRuleset: Rules for the impression signals. ImpressionSignalRuleset *AlgorithmRulesRuleset `json:"impressionSignalRuleset,omitempty"` - // ForceSendFields is a list of field names (e.g. "ImpressionSignalRuleset") to + // PostImpressionSignalRuleset: Rules for the post-impression signals. + PostImpressionSignalRuleset *AlgorithmRulesRuleset `json:"postImpressionSignalRuleset,omitempty"` + // ForceSendFields is a list of field names (e.g. "AttributionModelId") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ImpressionSignalRuleset") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See + // NullFields is a list of field names (e.g. "AttributionModelId") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -1890,6 +1895,22 @@ type AlgorithmRulesComparisonValue struct { OnScreenPositionValue string `json:"onScreenPositionValue,omitempty"` // StringValue: String value. StringValue string `json:"stringValue,omitempty"` + // VideoPlayerSizeValue: Video player size value. + // + // Possible values: + // "VIDEO_PLAYER_SIZE_UNSPECIFIED" - Video player size is not specified in + // this version. This enum is a place holder for a default value and does not + // represent a real video player size. + // "VIDEO_PLAYER_SIZE_SMALL" - The dimensions of the video player are less + // than 400×300 (desktop), or up to 20% of screen covered (mobile). + // "VIDEO_PLAYER_SIZE_LARGE" - The dimensions of the video player are between + // 400x300 and 1280x720 pixels (desktop), or 20% to 90% of the screen covered + // (mobile). + // "VIDEO_PLAYER_SIZE_HD" - The dimensions of the video player are 1280×720 + // or greater (desktop), or over 90% of the screen covered (mobile). + // "VIDEO_PLAYER_SIZE_UNKNOWN" - The dimensions of the video player are + // unknown. + VideoPlayerSizeValue string `json:"videoPlayerSizeValue,omitempty"` // ForceSendFields is a list of field names (e.g. "BoolValue") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -1922,6 +1943,51 @@ func (s *AlgorithmRulesComparisonValue) UnmarshalJSON(data []byte) error { return nil } +// AlgorithmRulesFloodlightActivityConversionSignal: The rule to score +// impressions based on Floodlight conversion events. +type AlgorithmRulesFloodlightActivityConversionSignal struct { + // ConversionCounting: Required. The type of conversions to be used in + // impression value computation, for example, post-click conversions. + // + // Possible values: + // "CONVERSION_COUNTING_UNSPECIFIED" - The action is not specified. + // "ALL_CONVERSIONS" - All conversions. + // "POST_CLICK" - Post-click conversions. + // "POST_VIEW" - Post-view conversions. + ConversionCounting string `json:"conversionCounting,omitempty"` + // CountingMethod: Required. The way to acquire value from the floodlight + // activity, for example, count of the conversion. + // + // Possible values: + // "COUNTING_METHOD_UNSPECIFIED" - The action is not specified. + // "CONVERSIONS_COUNT" - The count of conversions associated with the + // conversion activity. + // "SALES_QUANTITY" - The number of sales items associated with the + // conversion activity. + // "SALES_VALUE" - The sales revenue associated with the conversion activity. + // "UNIQUE_COUNT" - The count of unique conversions associated with the + // conversion activity. Only one conversion can be counted per impression. + CountingMethod string `json:"countingMethod,omitempty"` + // FloodlightActivityId: Required. Id of the floodlight activity. + FloodlightActivityId int64 `json:"floodlightActivityId,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "ConversionCounting") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ConversionCounting") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AlgorithmRulesFloodlightActivityConversionSignal) MarshalJSON() ([]byte, error) { + type NoMethod AlgorithmRulesFloodlightActivityConversionSignal + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // AlgorithmRulesRule: Set of conditions. The return value of the rule is // either: * The return value for single met condition or * The defined default // return value if no conditions are met. @@ -2027,6 +2093,30 @@ func (s *AlgorithmRulesRuleset) UnmarshalJSON(data []byte) error { // AlgorithmRulesSignal: Signal used to evaluate rules. type AlgorithmRulesSignal struct { + // ActiveViewSignal: Signal based on active views. + // + // Possible values: + // "ACTIVE_VIEW_SIGNAL_UNSPECIFIED" - Unknown signal. + // "ACTIVE_VIEW_VIEWED" - Whether Active View detects that your ad has been + // viewed. Value is stored in the boolValue field of the comparison value. + // "AUDIBLE" - Whether Active View detects that your ad was audible. Value is + // stored in the boolValue field of the comparison value. + // "VIDEO_COMPLETED" - Whether the video was completed. Value is stored in + // the boolValue field of the comparison value. + // "TIME_ON_SCREEN" - The time the ad was on screen in seconds. Value is + // stored in the int64Value field of the comparison value. + // "VIDEO_PLAYER_SIZE" - The size of the video player displaying the ad. + // Value is stored in the videoPlayerSizeValue field of the comparison value. + // "COMPLETED_IN_VIEW_AUDIBLE" - Whether the ad was completed in view and + // audible. Value is stored in the boolValue field of the comparison value. + ActiveViewSignal string `json:"activeViewSignal,omitempty"` + // ClickSignal: Signal based on clicks. + // + // Possible values: + // "CLICK_SIGNAL_UNSPECIFIED" - Unknown signal. + // "CLICK" - Whether the ad was clicked. Value is stored in the boolValue + // field of the comparison value. + ClickSignal string `json:"clickSignal,omitempty"` // ImpressionSignal: Signal based on impressions. // // Possible values: @@ -2055,13 +2145,13 @@ type AlgorithmRulesSignal struct { // "CREATIVE_DIMENSION" - Creative height and width in pixels. Value is // stored in the creativeDimensionValue field of the comparison value. ImpressionSignal string `json:"impressionSignal,omitempty"` - // ForceSendFields is a list of field names (e.g. "ImpressionSignal") to + // ForceSendFields is a list of field names (e.g. "ActiveViewSignal") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ImpressionSignal") to include in + // NullFields is a list of field names (e.g. "ActiveViewSignal") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -2118,17 +2208,38 @@ func (s AlgorithmRulesSignalComparison) MarshalJSON() ([]byte, error) { // AlgorithmRulesSignalValue: Adjusted value of the signal used for rule // evaluation. type AlgorithmRulesSignalValue struct { + // ActiveViewSignal: Signal based on active views. Only `TIME_ON_SCREEN` is + // supported. + // + // Possible values: + // "ACTIVE_VIEW_SIGNAL_UNSPECIFIED" - Unknown signal. + // "ACTIVE_VIEW_VIEWED" - Whether Active View detects that your ad has been + // viewed. Value is stored in the boolValue field of the comparison value. + // "AUDIBLE" - Whether Active View detects that your ad was audible. Value is + // stored in the boolValue field of the comparison value. + // "VIDEO_COMPLETED" - Whether the video was completed. Value is stored in + // the boolValue field of the comparison value. + // "TIME_ON_SCREEN" - The time the ad was on screen in seconds. Value is + // stored in the int64Value field of the comparison value. + // "VIDEO_PLAYER_SIZE" - The size of the video player displaying the ad. + // Value is stored in the videoPlayerSizeValue field of the comparison value. + // "COMPLETED_IN_VIEW_AUDIBLE" - Whether the ad was completed in view and + // audible. Value is stored in the boolValue field of the comparison value. + ActiveViewSignal string `json:"activeViewSignal,omitempty"` + // FloodlightActivityConversionSignal: Signal based on floodlight conversion + // events. + FloodlightActivityConversionSignal *AlgorithmRulesFloodlightActivityConversionSignal `json:"floodlightActivityConversionSignal,omitempty"` // Number: Value to use as result. Number float64 `json:"number,omitempty"` - // ForceSendFields is a list of field names (e.g. "Number") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See + // ForceSendFields is a list of field names (e.g. "ActiveViewSignal") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Number") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "ActiveViewSignal") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -13416,10 +13527,10 @@ type PartnerCost struct { // Possible values: // "PARTNER_COST_TYPE_UNSPECIFIED" - Type value is not specified or is // unknown in this version. - // "PARTNER_COST_TYPE_ADLOOX" - The cost is charged for using Adloox. Billed - // by the partner. - // "PARTNER_COST_TYPE_ADLOOX_PREBID" - The cost is charged for using Adloox - // Pre-Bid. Billed through DV360. + // "PARTNER_COST_TYPE_ADLOOX" - The cost is charged for using Scope3 + // (previously known as Adloox). Billed by the partner. + // "PARTNER_COST_TYPE_ADLOOX_PREBID" - The cost is charged for using Scope3 + // (previously known as Adloox) Pre-Bid. Billed through DV360. // "PARTNER_COST_TYPE_ADSAFE" - The cost is charged for using AdSafe. Billed // by the partner. // "PARTNER_COST_TYPE_ADXPOSE" - The cost is charged for using AdExpose. @@ -15407,7 +15518,7 @@ func (s ThirdPartyVendorConfig) MarshalJSON() ([]byte, error) { // field of an AssignedTargetingOption when targeting_type is // `TARGETING_TYPE_THIRD_PARTY_VERIFIER`. type ThirdPartyVerifierAssignedTargetingOptionDetails struct { - // Adloox: Third party brand verifier -- Adloox. + // Adloox: Third party brand verifier -- Scope3 (previously known as Adloox). Adloox *Adloox `json:"adloox,omitempty"` // DoubleVerify: Third party brand verifier -- DoubleVerify. DoubleVerify *DoubleVerify `json:"doubleVerify,omitempty"` diff --git a/displayvideo/v4/displayvideo-api.json b/displayvideo/v4/displayvideo-api.json index 5690678ec56..e59f2e4de3d 100644 --- a/displayvideo/v4/displayvideo-api.json +++ b/displayvideo/v4/displayvideo-api.json @@ -4617,7 +4617,7 @@ ] }, "patch": { - "description": "Updates an existing custom bidding algorithm. Returns the updated custom bidding algorithm if successful. *Warning*: Starting **April 1, 2025**, requests updating custom bidding algorithms that are assigned to line items will return an error. [Read more about this announced change](/display-video/api/deprecations#features.custom_bidding_floodlight).", + "description": "Updates an existing custom bidding algorithm. Returns the updated custom bidding algorithm if successful. Requests updating a custom bidding algorithm assigned to a line item will return an error.", "flatPath": "v4/customBiddingAlgorithms/{customBiddingAlgorithmsId}", "httpMethod": "PATCH", "id": "displayvideo.customBiddingAlgorithms.patch", @@ -4732,7 +4732,7 @@ "rules": { "methods": { "create": { - "description": "Creates a new rules resource. Returns the newly created rules resource if successful. *Warning*: Starting **April 1, 2025**, requests updating custom bidding algorithms that are assigned to line items will return an error. [Read more about this announced change](/display-video/api/deprecations#features.custom_bidding_floodlight).", + "description": "Creates a new rules resource. Returns the newly created rules resource if successful. Requests creating a custom bidding rules resource under an algorithm assigned to a line item will return an error.", "flatPath": "v4/customBiddingAlgorithms/{customBiddingAlgorithmsId}/rules", "httpMethod": "POST", "id": "displayvideo.customBiddingAlgorithms.rules.create", @@ -4878,7 +4878,7 @@ "scripts": { "methods": { "create": { - "description": "Creates a new custom bidding script. Returns the newly created script if successful. *Warning*: Starting **April 1, 2025**, requests updating custom bidding algorithms that are assigned to line items will return an error. [Read more about this announced change](/display-video/api/deprecations#features.custom_bidding_floodlight).", + "description": "Creates a new custom bidding script. Returns the newly created script if successful. Requests creating a custom bidding script under an algorithm assigned to a line item will return an error.", "flatPath": "v4/customBiddingAlgorithms/{customBiddingAlgorithmsId}/scripts", "httpMethod": "POST", "id": "displayvideo.customBiddingAlgorithms.scripts.create", @@ -7519,7 +7519,7 @@ "sdfdownloadtasks": { "methods": { "create": { - "description": "Creates an SDF Download Task. Returns an Operation. An SDF Download Task is a long-running, asynchronous operation. The metadata type of this operation is SdfDownloadTaskMetadata. If the request is successful, the response type of the operation is SdfDownloadTask. The response will not include the download files, which must be retrieved with media.download. The state of operation can be retrieved with sdfdownloadtask.operations.get. Any errors can be found in the error.message. Note that error.details is expected to be empty.", + "description": "Creates an SDF Download Task. Returns an Operation. An SDF Download Task is a long-running, asynchronous operation. The metadata type of this operation is SdfDownloadTaskMetadata. If the request is successful, the response type of the operation is SdfDownloadTask. The response will not include the download files, which must be retrieved with media.download. The state of operation can be retrieved with `sdfdownloadtasks.operations.get`. Any errors can be found in the error.message. Note that error.details is expected to be empty.", "flatPath": "v4/sdfdownloadtasks", "httpMethod": "POST", "id": "displayvideo.sdfdownloadtasks.create", @@ -8219,7 +8219,7 @@ } } }, - "revision": "20250410", + "revision": "20250424", "rootUrl": "https://displayvideo.googleapis.com/", "schemas": { "ActiveViewVideoViewabilityMetricConfig": { @@ -8560,7 +8560,7 @@ "type": "object" }, "Adloox": { - "description": "Details of Adloox brand safety settings.", + "description": "Details of Scope3 (previously known as Adloox) brand safety settings.", "id": "Adloox", "properties": { "adultExplicitSexualContent": { @@ -8674,7 +8674,7 @@ "type": "string" }, "excludedAdlooxCategories": { - "description": "Adloox categories to exclude.", + "description": "Scope3 categories to exclude.", "items": { "enum": [ "ADLOOX_UNSPECIFIED", @@ -8688,7 +8688,7 @@ "FRAUD" ], "enumDescriptions": [ - "Default value when a Adloox category is not specified or is unknown in this version.", + "Default value when a Scope3 category is not specified or is unknown in this version.", "Adult content (hard).", "Adult content (soft).", "Illegal content.", @@ -8703,14 +8703,14 @@ "type": "array" }, "excludedFraudIvtMfaCategories": { - "description": "Optional. Adloox's fraud IVT MFA categories to exclude.", + "description": "Optional. Scope3's fraud IVT MFA categories to exclude.", "items": { "enum": [ "FRAUD_IVT_MFA_CATEGORY_UNSPECIFIED", "FRAUD_IVT_MFA" ], "enumDescriptions": [ - "Default value when a Adloox Fraud, IVT, MFA category is not specified or is unknown in this version.", + "Default value when a Scope3 Fraud, IVT, MFA category is not specified or is unknown in this version.", "FRAUD, IVT, MFA." ], "type": "string" @@ -9166,9 +9166,18 @@ "description": "Rule-based algorithm.", "id": "AlgorithmRules", "properties": { + "attributionModelId": { + "description": "Attribution model for the algorithm.", + "format": "int64", + "type": "string" + }, "impressionSignalRuleset": { "$ref": "AlgorithmRulesRuleset", "description": "Rules for the impression signals." + }, + "postImpressionSignalRuleset": { + "$ref": "AlgorithmRulesRuleset", + "description": "Rules for the post-impression signals." } }, "type": "object" @@ -9319,6 +9328,8 @@ "EXCHANGE_TOPON_GBID", "EXCHANGE_NETFLIX", "EXCHANGE_CORE", + "EXCHANGE_COMMERCE_GRID", + "EXCHANGE_SPOTIFY", "EXCHANGE_TUBI" ], "enumDescriptions": [ @@ -9406,6 +9417,8 @@ "TopOn.", "Netflix.", "Core.", + "Commerce Grid.", + "Spotify.", "Tubi." ], "type": "string" @@ -9434,6 +9447,70 @@ "stringValue": { "description": "String value.", "type": "string" + }, + "videoPlayerSizeValue": { + "description": "Video player size value.", + "enum": [ + "VIDEO_PLAYER_SIZE_UNSPECIFIED", + "VIDEO_PLAYER_SIZE_SMALL", + "VIDEO_PLAYER_SIZE_LARGE", + "VIDEO_PLAYER_SIZE_HD", + "VIDEO_PLAYER_SIZE_UNKNOWN" + ], + "enumDescriptions": [ + "Video player size is not specified in this version. This enum is a place holder for a default value and does not represent a real video player size.", + "The dimensions of the video player are less than 400×300 (desktop), or up to 20% of screen covered (mobile).", + "The dimensions of the video player are between 400x300 and 1280x720 pixels (desktop), or 20% to 90% of the screen covered (mobile).", + "The dimensions of the video player are 1280×720 or greater (desktop), or over 90% of the screen covered (mobile).", + "The dimensions of the video player are unknown." + ], + "type": "string" + } + }, + "type": "object" + }, + "AlgorithmRulesFloodlightActivityConversionSignal": { + "description": "The rule to score impressions based on Floodlight conversion events.", + "id": "AlgorithmRulesFloodlightActivityConversionSignal", + "properties": { + "conversionCounting": { + "description": "Required. The type of conversions to be used in impression value computation, for example, post-click conversions.", + "enum": [ + "CONVERSION_COUNTING_UNSPECIFIED", + "ALL_CONVERSIONS", + "POST_CLICK", + "POST_VIEW" + ], + "enumDescriptions": [ + "The action is not specified.", + "All conversions.", + "Post-click conversions.", + "Post-view conversions." + ], + "type": "string" + }, + "countingMethod": { + "description": "Required. The way to acquire value from the floodlight activity, for example, count of the conversion.", + "enum": [ + "COUNTING_METHOD_UNSPECIFIED", + "CONVERSIONS_COUNT", + "SALES_QUANTITY", + "SALES_VALUE", + "UNIQUE_COUNT" + ], + "enumDescriptions": [ + "The action is not specified.", + "The count of conversions associated with the conversion activity.", + "The number of sales items associated with the conversion activity.", + "The sales revenue associated with the conversion activity.", + "The count of unique conversions associated with the conversion activity. Only one conversion can be counted per impression." + ], + "type": "string" + }, + "floodlightActivityId": { + "description": "Required. Id of the floodlight activity.", + "format": "int64", + "type": "string" } }, "type": "object" @@ -9513,6 +9590,40 @@ "description": "Signal used to evaluate rules.", "id": "AlgorithmRulesSignal", "properties": { + "activeViewSignal": { + "description": "Signal based on active views.", + "enum": [ + "ACTIVE_VIEW_SIGNAL_UNSPECIFIED", + "ACTIVE_VIEW_VIEWED", + "AUDIBLE", + "VIDEO_COMPLETED", + "TIME_ON_SCREEN", + "VIDEO_PLAYER_SIZE", + "COMPLETED_IN_VIEW_AUDIBLE" + ], + "enumDescriptions": [ + "Unknown signal.", + "Whether Active View detects that your ad has been viewed. Value is stored in the boolValue field of the comparison value.", + "Whether Active View detects that your ad was audible. Value is stored in the boolValue field of the comparison value.", + "Whether the video was completed. Value is stored in the boolValue field of the comparison value.", + "The time the ad was on screen in seconds. Value is stored in the int64Value field of the comparison value.", + "The size of the video player displaying the ad. Value is stored in the videoPlayerSizeValue field of the comparison value.", + "Whether the ad was completed in view and audible. Value is stored in the boolValue field of the comparison value." + ], + "type": "string" + }, + "clickSignal": { + "description": "Signal based on clicks.", + "enum": [ + "CLICK_SIGNAL_UNSPECIFIED", + "CLICK" + ], + "enumDescriptions": [ + "Unknown signal.", + "Whether the ad was clicked. Value is stored in the boolValue field of the comparison value." + ], + "type": "string" + }, "impressionSignal": { "description": "Signal based on impressions.", "enum": [ @@ -9587,6 +9698,32 @@ "description": "Adjusted value of the signal used for rule evaluation.", "id": "AlgorithmRulesSignalValue", "properties": { + "activeViewSignal": { + "description": "Signal based on active views. Only `TIME_ON_SCREEN` is supported.", + "enum": [ + "ACTIVE_VIEW_SIGNAL_UNSPECIFIED", + "ACTIVE_VIEW_VIEWED", + "AUDIBLE", + "VIDEO_COMPLETED", + "TIME_ON_SCREEN", + "VIDEO_PLAYER_SIZE", + "COMPLETED_IN_VIEW_AUDIBLE" + ], + "enumDescriptions": [ + "Unknown signal.", + "Whether Active View detects that your ad has been viewed. Value is stored in the boolValue field of the comparison value.", + "Whether Active View detects that your ad was audible. Value is stored in the boolValue field of the comparison value.", + "Whether the video was completed. Value is stored in the boolValue field of the comparison value.", + "The time the ad was on screen in seconds. Value is stored in the int64Value field of the comparison value.", + "The size of the video player displaying the ad. Value is stored in the videoPlayerSizeValue field of the comparison value.", + "Whether the ad was completed in view and audible. Value is stored in the boolValue field of the comparison value." + ], + "type": "string" + }, + "floodlightActivityConversionSignal": { + "$ref": "AlgorithmRulesFloodlightActivityConversionSignal", + "description": "Signal based on floodlight conversion events." + }, "number": { "description": "Value to use as result.", "format": "double", @@ -12070,7 +12207,7 @@ "id": "ConversionCountingConfig", "properties": { "floodlightActivityConfigs": { - "description": "The Floodlight activity configs used to track conversions. The number of conversions counted is the sum of all of the conversions counted by all of the Floodlight activity IDs specified in this field. *Warning*: Starting **April 1, 2025**, this field will no longer be writable while a custom bidding algorithm is assigned to the line item. If you set this field and assign a custom bidding algorithm in the same request, the floodlight activities must match the ones used by the custom bidding algorithm. [Read more about this announced change](/display-video/api/deprecations#features.custom_bidding_floodlight).", + "description": "The Floodlight activity configs used to track conversions. The number of conversions counted is the sum of all of the conversions counted by all of the Floodlight activity IDs specified in this field. This field can't be updated if a custom bidding algorithm is assigned to the line item. If you set this field and assign a custom bidding algorithm in the same request, the floodlight activities must match the ones used by the custom bidding algorithm.", "items": { "$ref": "TrackingFloodlightActivityConfig" }, @@ -14214,6 +14351,8 @@ "EXCHANGE_TOPON_GBID", "EXCHANGE_NETFLIX", "EXCHANGE_CORE", + "EXCHANGE_COMMERCE_GRID", + "EXCHANGE_SPOTIFY", "EXCHANGE_TUBI" ], "enumDescriptions": [ @@ -14301,6 +14440,8 @@ "TopOn.", "Netflix.", "Core.", + "Commerce Grid.", + "Spotify.", "Tubi." ], "type": "string" @@ -14413,6 +14554,8 @@ "EXCHANGE_TOPON_GBID", "EXCHANGE_NETFLIX", "EXCHANGE_CORE", + "EXCHANGE_COMMERCE_GRID", + "EXCHANGE_SPOTIFY", "EXCHANGE_TUBI" ], "enumDescriptions": [ @@ -14500,6 +14643,8 @@ "TopOn.", "Netflix.", "Core.", + "Commerce Grid.", + "Spotify.", "Tubi." ], "type": "string" @@ -14613,6 +14758,8 @@ "EXCHANGE_TOPON_GBID", "EXCHANGE_NETFLIX", "EXCHANGE_CORE", + "EXCHANGE_COMMERCE_GRID", + "EXCHANGE_SPOTIFY", "EXCHANGE_TUBI" ], "enumDescriptions": [ @@ -14700,6 +14847,8 @@ "TopOn.", "Netflix.", "Core.", + "Commerce Grid.", + "Spotify.", "Tubi." ], "type": "string" @@ -14814,6 +14963,8 @@ "EXCHANGE_TOPON_GBID", "EXCHANGE_NETFLIX", "EXCHANGE_CORE", + "EXCHANGE_COMMERCE_GRID", + "EXCHANGE_SPOTIFY", "EXCHANGE_TUBI" ], "enumDescriptions": [ @@ -14901,6 +15052,8 @@ "TopOn.", "Netflix.", "Core.", + "Commerce Grid.", + "Spotify.", "Tubi." ], "readOnly": true, @@ -15088,7 +15241,7 @@ "type": "string" }, "membershipDurationDays": { - "description": "Output only. The duration in days that an entry remains in the audience after the qualifying event. If the audience has no expiration, set the value of this field to 10000. Otherwise, the set value must be greater than 0 and less than or equal to 540. Only applicable to first party audiences. This field is required if one of the following audience_type is used: * `CUSTOMER_MATCH_CONTACT_INFO` * `CUSTOMER_MATCH_DEVICE_ID` *Warning*: Starting on **April 7, 2025**, audiences will no longer be able to have infinite membership duration. This field will no longer accept the value 10000 and all audiences with membership durations greater than 540 days will be updated to a membership duration of 540 days. [Read more about this announced change](/display-video/api/deprecations#features.audience_duration).", + "description": "Output only. The duration in days that an entry remains in the audience after the qualifying event. The set value must be greater than 0 and less than or equal to 540. Only applicable to first party audiences. This field is required if one of the following audience_type is used: * `CUSTOMER_MATCH_CONTACT_INFO` * `CUSTOMER_MATCH_DEVICE_ID`", "format": "int64", "readOnly": true, "type": "string" @@ -15921,6 +16074,8 @@ "EXCHANGE_TOPON_GBID", "EXCHANGE_NETFLIX", "EXCHANGE_CORE", + "EXCHANGE_COMMERCE_GRID", + "EXCHANGE_SPOTIFY", "EXCHANGE_TUBI" ], "enumDescriptions": [ @@ -16008,6 +16163,8 @@ "TopOn.", "Netflix.", "Core.", + "Commerce Grid.", + "Spotify.", "Tubi." ], "type": "string" @@ -16860,6 +17017,8 @@ "EXCHANGE_TOPON_GBID", "EXCHANGE_NETFLIX", "EXCHANGE_CORE", + "EXCHANGE_COMMERCE_GRID", + "EXCHANGE_SPOTIFY", "EXCHANGE_TUBI" ], "enumDescriptions": [ @@ -16947,6 +17106,8 @@ "TopOn.", "Netflix.", "Core.", + "Commerce Grid.", + "Spotify.", "Tubi." ], "type": "string" @@ -17510,7 +17671,7 @@ }, "conversionCounting": { "$ref": "ConversionCountingConfig", - "description": "The conversion tracking setting of the line item. *Warning*: Starting **April 1, 2025**, the floodlight_activity_configs field will no longer be writable while a custom bidding algorithm is assigned to the line item. If you set this field and assign a custom bidding algorithm in the same request, the floodlight activities must match the ones used by the custom bidding algorithm. [Read more about this announced change](/display-video/api/deprecations#features.custom_bidding_floodlight)." + "description": "The conversion tracking setting of the line item." }, "creativeIds": { "description": "The IDs of the creatives associated with the line item.", @@ -18514,7 +18675,7 @@ "id": "MaximizeSpendBidStrategy", "properties": { "customBiddingAlgorithmId": { - "description": "The ID of the Custom Bidding Algorithm used by this strategy. Only applicable when performance_goal_type is set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`. *Warning*: Starting **April 1, 2025**, assigning a custom bidding algorithm that uses floodlight activities not identified in floodlightActivityConfigs will return an error. [Read more about this announced change](/display-video/api/deprecations#features.custom_bidding_floodlight).", + "description": "The ID of the Custom Bidding Algorithm used by this strategy. Only applicable when performance_goal_type is set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`. Assigning a custom bidding algorithm that uses floodlight activities not identified in floodlightActivityConfigs will return an error.", "format": "int64", "type": "string" }, @@ -19299,8 +19460,8 @@ ], "enumDescriptions": [ "Type value is not specified or is unknown in this version.", - "The cost is charged for using Adloox. Billed by the partner.", - "The cost is charged for using Adloox Pre-Bid. Billed through DV360.", + "The cost is charged for using Scope3 (previously known as Adloox). Billed by the partner.", + "The cost is charged for using Scope3 (previously known as Adloox) Pre-Bid. Billed through DV360.", "The cost is charged for using AdSafe. Billed by the partner.", "The cost is charged for using AdExpose. Billed by the partner.", "The cost is charged for using Aggregate Knowledge. Billed by the partner.", @@ -19498,7 +19659,7 @@ "id": "PerformanceGoalBidStrategy", "properties": { "customBiddingAlgorithmId": { - "description": "The ID of the Custom Bidding Algorithm used by this strategy. Only applicable when performance_goal_type is set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`. *Warning*: Starting **April 1, 2025**, assigning a custom bidding algorithm that uses floodlight activities not identified in floodlightActivityConfigs will return an error. [Read more about this announced change](/display-video/api/deprecations#features.custom_bidding_floodlight).", + "description": "The ID of the Custom Bidding Algorithm used by this strategy. Only applicable when performance_goal_type is set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`. Assigning a custom bidding algorithm that uses floodlight activities not identified in floodlightActivityConfigs will return an error.", "format": "int64", "type": "string" }, @@ -20067,7 +20228,7 @@ "type": "object" }, "SdfDownloadTask": { - "description": "Type for the response returned by [SdfDownloadTaskService.CreateSdfDownloadTask].", + "description": "Type for the response returned by SdfDownloadTaskService.CreateSdfDownloadTask.", "id": "SdfDownloadTask", "properties": { "resourceName": { @@ -20078,7 +20239,7 @@ "type": "object" }, "SdfDownloadTaskMetadata": { - "description": "Type for the metadata returned by [SdfDownloadTaskService.CreateSdfDownloadTask].", + "description": "Type for the metadata returned by SdfDownloadTaskService.CreateSdfDownloadTask.", "id": "SdfDownloadTaskMetadata", "properties": { "createTime": { @@ -20888,7 +21049,7 @@ "properties": { "adloox": { "$ref": "Adloox", - "description": "Third party brand verifier -- Adloox." + "description": "Third party brand verifier -- Scope3 (previously known as Adloox)." }, "doubleVerify": { "$ref": "DoubleVerify", diff --git a/displayvideo/v4/displayvideo-gen.go b/displayvideo/v4/displayvideo-gen.go index d0aa66cb401..d0d455b5f4b 100644 --- a/displayvideo/v4/displayvideo-gen.go +++ b/displayvideo/v4/displayvideo-gen.go @@ -1044,7 +1044,8 @@ func (s AdUrl) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Adloox: Details of Adloox brand safety settings. +// Adloox: Details of Scope3 (previously known as Adloox) brand safety +// settings. type Adloox struct { // AdultExplicitSexualContent: Optional. Adult and Explicit Sexual Content GARM // (https://wfanet.org/leadership/garm/about-garm) risk ranges to exclude. @@ -1125,10 +1126,10 @@ type Adloox struct { // "DISPLAY_IAB_VIEWABILITY_75" - 75%+ in view (IAB display viewability // standard). DisplayIabViewability string `json:"displayIabViewability,omitempty"` - // ExcludedAdlooxCategories: Adloox categories to exclude. + // ExcludedAdlooxCategories: Scope3 categories to exclude. // // Possible values: - // "ADLOOX_UNSPECIFIED" - Default value when a Adloox category is not + // "ADLOOX_UNSPECIFIED" - Default value when a Scope3 category is not // specified or is unknown in this version. // "ADULT_CONTENT_HARD" - Adult content (hard). // "ADULT_CONTENT_SOFT" - Adult content (soft). @@ -1139,11 +1140,11 @@ type Adloox struct { // "LOW_VIEWABILITY_DOMAINS" - Low viewability domains. // "FRAUD" - Fraud. ExcludedAdlooxCategories []string `json:"excludedAdlooxCategories,omitempty"` - // ExcludedFraudIvtMfaCategories: Optional. Adloox's fraud IVT MFA categories + // ExcludedFraudIvtMfaCategories: Optional. Scope3's fraud IVT MFA categories // to exclude. // // Possible values: - // "FRAUD_IVT_MFA_CATEGORY_UNSPECIFIED" - Default value when a Adloox Fraud, + // "FRAUD_IVT_MFA_CATEGORY_UNSPECIFIED" - Default value when a Scope3 Fraud, // IVT, MFA category is not specified or is unknown in this version. // "FRAUD_IVT_MFA" - FRAUD, IVT, MFA. ExcludedFraudIvtMfaCategories []string `json:"excludedFraudIvtMfaCategories,omitempty"` @@ -1697,17 +1698,21 @@ func (s AgeRangeTargetingOptionDetails) MarshalJSON() ([]byte, error) { // AlgorithmRules: Rule-based algorithm. type AlgorithmRules struct { + // AttributionModelId: Attribution model for the algorithm. + AttributionModelId int64 `json:"attributionModelId,omitempty,string"` // ImpressionSignalRuleset: Rules for the impression signals. ImpressionSignalRuleset *AlgorithmRulesRuleset `json:"impressionSignalRuleset,omitempty"` - // ForceSendFields is a list of field names (e.g. "ImpressionSignalRuleset") to + // PostImpressionSignalRuleset: Rules for the post-impression signals. + PostImpressionSignalRuleset *AlgorithmRulesRuleset `json:"postImpressionSignalRuleset,omitempty"` + // ForceSendFields is a list of field names (e.g. "AttributionModelId") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ImpressionSignalRuleset") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See + // NullFields is a list of field names (e.g. "AttributionModelId") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -1848,6 +1853,8 @@ type AlgorithmRulesComparisonValue struct { // "EXCHANGE_TOPON_GBID" - TopOn. // "EXCHANGE_NETFLIX" - Netflix. // "EXCHANGE_CORE" - Core. + // "EXCHANGE_COMMERCE_GRID" - Commerce Grid. + // "EXCHANGE_SPOTIFY" - Spotify. // "EXCHANGE_TUBI" - Tubi. ExchangeValue string `json:"exchangeValue,omitempty"` // Int64Value: Integer value. @@ -1864,6 +1871,22 @@ type AlgorithmRulesComparisonValue struct { OnScreenPositionValue string `json:"onScreenPositionValue,omitempty"` // StringValue: String value. StringValue string `json:"stringValue,omitempty"` + // VideoPlayerSizeValue: Video player size value. + // + // Possible values: + // "VIDEO_PLAYER_SIZE_UNSPECIFIED" - Video player size is not specified in + // this version. This enum is a place holder for a default value and does not + // represent a real video player size. + // "VIDEO_PLAYER_SIZE_SMALL" - The dimensions of the video player are less + // than 400×300 (desktop), or up to 20% of screen covered (mobile). + // "VIDEO_PLAYER_SIZE_LARGE" - The dimensions of the video player are between + // 400x300 and 1280x720 pixels (desktop), or 20% to 90% of the screen covered + // (mobile). + // "VIDEO_PLAYER_SIZE_HD" - The dimensions of the video player are 1280×720 + // or greater (desktop), or over 90% of the screen covered (mobile). + // "VIDEO_PLAYER_SIZE_UNKNOWN" - The dimensions of the video player are + // unknown. + VideoPlayerSizeValue string `json:"videoPlayerSizeValue,omitempty"` // ForceSendFields is a list of field names (e.g. "BoolValue") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -1896,6 +1919,51 @@ func (s *AlgorithmRulesComparisonValue) UnmarshalJSON(data []byte) error { return nil } +// AlgorithmRulesFloodlightActivityConversionSignal: The rule to score +// impressions based on Floodlight conversion events. +type AlgorithmRulesFloodlightActivityConversionSignal struct { + // ConversionCounting: Required. The type of conversions to be used in + // impression value computation, for example, post-click conversions. + // + // Possible values: + // "CONVERSION_COUNTING_UNSPECIFIED" - The action is not specified. + // "ALL_CONVERSIONS" - All conversions. + // "POST_CLICK" - Post-click conversions. + // "POST_VIEW" - Post-view conversions. + ConversionCounting string `json:"conversionCounting,omitempty"` + // CountingMethod: Required. The way to acquire value from the floodlight + // activity, for example, count of the conversion. + // + // Possible values: + // "COUNTING_METHOD_UNSPECIFIED" - The action is not specified. + // "CONVERSIONS_COUNT" - The count of conversions associated with the + // conversion activity. + // "SALES_QUANTITY" - The number of sales items associated with the + // conversion activity. + // "SALES_VALUE" - The sales revenue associated with the conversion activity. + // "UNIQUE_COUNT" - The count of unique conversions associated with the + // conversion activity. Only one conversion can be counted per impression. + CountingMethod string `json:"countingMethod,omitempty"` + // FloodlightActivityId: Required. Id of the floodlight activity. + FloodlightActivityId int64 `json:"floodlightActivityId,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "ConversionCounting") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ConversionCounting") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AlgorithmRulesFloodlightActivityConversionSignal) MarshalJSON() ([]byte, error) { + type NoMethod AlgorithmRulesFloodlightActivityConversionSignal + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // AlgorithmRulesRule: Set of conditions. The return value of the rule is // either: * The return value for single met condition or * The defined default // return value if no conditions are met. @@ -2001,6 +2069,30 @@ func (s *AlgorithmRulesRuleset) UnmarshalJSON(data []byte) error { // AlgorithmRulesSignal: Signal used to evaluate rules. type AlgorithmRulesSignal struct { + // ActiveViewSignal: Signal based on active views. + // + // Possible values: + // "ACTIVE_VIEW_SIGNAL_UNSPECIFIED" - Unknown signal. + // "ACTIVE_VIEW_VIEWED" - Whether Active View detects that your ad has been + // viewed. Value is stored in the boolValue field of the comparison value. + // "AUDIBLE" - Whether Active View detects that your ad was audible. Value is + // stored in the boolValue field of the comparison value. + // "VIDEO_COMPLETED" - Whether the video was completed. Value is stored in + // the boolValue field of the comparison value. + // "TIME_ON_SCREEN" - The time the ad was on screen in seconds. Value is + // stored in the int64Value field of the comparison value. + // "VIDEO_PLAYER_SIZE" - The size of the video player displaying the ad. + // Value is stored in the videoPlayerSizeValue field of the comparison value. + // "COMPLETED_IN_VIEW_AUDIBLE" - Whether the ad was completed in view and + // audible. Value is stored in the boolValue field of the comparison value. + ActiveViewSignal string `json:"activeViewSignal,omitempty"` + // ClickSignal: Signal based on clicks. + // + // Possible values: + // "CLICK_SIGNAL_UNSPECIFIED" - Unknown signal. + // "CLICK" - Whether the ad was clicked. Value is stored in the boolValue + // field of the comparison value. + ClickSignal string `json:"clickSignal,omitempty"` // ImpressionSignal: Signal based on impressions. // // Possible values: @@ -2029,13 +2121,13 @@ type AlgorithmRulesSignal struct { // "CREATIVE_DIMENSION" - Creative height and width in pixels. Value is // stored in the creativeDimensionValue field of the comparison value. ImpressionSignal string `json:"impressionSignal,omitempty"` - // ForceSendFields is a list of field names (e.g. "ImpressionSignal") to + // ForceSendFields is a list of field names (e.g. "ActiveViewSignal") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ImpressionSignal") to include in + // NullFields is a list of field names (e.g. "ActiveViewSignal") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -2092,17 +2184,38 @@ func (s AlgorithmRulesSignalComparison) MarshalJSON() ([]byte, error) { // AlgorithmRulesSignalValue: Adjusted value of the signal used for rule // evaluation. type AlgorithmRulesSignalValue struct { + // ActiveViewSignal: Signal based on active views. Only `TIME_ON_SCREEN` is + // supported. + // + // Possible values: + // "ACTIVE_VIEW_SIGNAL_UNSPECIFIED" - Unknown signal. + // "ACTIVE_VIEW_VIEWED" - Whether Active View detects that your ad has been + // viewed. Value is stored in the boolValue field of the comparison value. + // "AUDIBLE" - Whether Active View detects that your ad was audible. Value is + // stored in the boolValue field of the comparison value. + // "VIDEO_COMPLETED" - Whether the video was completed. Value is stored in + // the boolValue field of the comparison value. + // "TIME_ON_SCREEN" - The time the ad was on screen in seconds. Value is + // stored in the int64Value field of the comparison value. + // "VIDEO_PLAYER_SIZE" - The size of the video player displaying the ad. + // Value is stored in the videoPlayerSizeValue field of the comparison value. + // "COMPLETED_IN_VIEW_AUDIBLE" - Whether the ad was completed in view and + // audible. Value is stored in the boolValue field of the comparison value. + ActiveViewSignal string `json:"activeViewSignal,omitempty"` + // FloodlightActivityConversionSignal: Signal based on floodlight conversion + // events. + FloodlightActivityConversionSignal *AlgorithmRulesFloodlightActivityConversionSignal `json:"floodlightActivityConversionSignal,omitempty"` // Number: Value to use as result. Number float64 `json:"number,omitempty"` - // ForceSendFields is a list of field names (e.g. "Number") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See + // ForceSendFields is a list of field names (e.g. "ActiveViewSignal") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Number") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "ActiveViewSignal") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -5392,12 +5505,10 @@ type ConversionCountingConfig struct { // FloodlightActivityConfigs: The Floodlight activity configs used to track // conversions. The number of conversions counted is the sum of all of the // conversions counted by all of the Floodlight activity IDs specified in this - // field. *Warning*: Starting **April 1, 2025**, this field will no longer be - // writable while a custom bidding algorithm is assigned to the line item. If - // you set this field and assign a custom bidding algorithm in the same - // request, the floodlight activities must match the ones used by the custom - // bidding algorithm. Read more about this announced change - // (/display-video/api/deprecations#features.custom_bidding_floodlight). + // field. This field can't be updated if a custom bidding algorithm is assigned + // to the line item. If you set this field and assign a custom bidding + // algorithm in the same request, the floodlight activities must match the ones + // used by the custom bidding algorithm. FloodlightActivityConfigs []*TrackingFloodlightActivityConfig `json:"floodlightActivityConfigs,omitempty"` // PostViewCountPercentageMillis: The percentage of post-view conversions to // count, in millis (1/1000 of a percent). Must be between 0 and 100000 @@ -7881,6 +7992,8 @@ type ExchangeAssignedTargetingOptionDetails struct { // "EXCHANGE_TOPON_GBID" - TopOn. // "EXCHANGE_NETFLIX" - Netflix. // "EXCHANGE_CORE" - Core. + // "EXCHANGE_COMMERCE_GRID" - Commerce Grid. + // "EXCHANGE_SPOTIFY" - Spotify. // "EXCHANGE_TUBI" - Tubi. Exchange string `json:"exchange,omitempty"` // ForceSendFields is a list of field names (e.g. "Exchange") to @@ -8016,6 +8129,8 @@ type ExchangeConfigEnabledExchange struct { // "EXCHANGE_TOPON_GBID" - TopOn. // "EXCHANGE_NETFLIX" - Netflix. // "EXCHANGE_CORE" - Core. + // "EXCHANGE_COMMERCE_GRID" - Commerce Grid. + // "EXCHANGE_SPOTIFY" - Spotify. // "EXCHANGE_TUBI" - Tubi. Exchange string `json:"exchange,omitempty"` // GoogleAdManagerAgencyId: Output only. Agency ID of Google Ad Manager. The @@ -8135,6 +8250,8 @@ type ExchangeReviewStatus struct { // "EXCHANGE_TOPON_GBID" - TopOn. // "EXCHANGE_NETFLIX" - Netflix. // "EXCHANGE_CORE" - Core. + // "EXCHANGE_COMMERCE_GRID" - Commerce Grid. + // "EXCHANGE_SPOTIFY" - Spotify. // "EXCHANGE_TUBI" - Tubi. Exchange string `json:"exchange,omitempty"` // Status: Status of the exchange review. @@ -8257,6 +8374,8 @@ type ExchangeTargetingOptionDetails struct { // "EXCHANGE_TOPON_GBID" - TopOn. // "EXCHANGE_NETFLIX" - Netflix. // "EXCHANGE_CORE" - Core. + // "EXCHANGE_COMMERCE_GRID" - Commerce Grid. + // "EXCHANGE_SPOTIFY" - Spotify. // "EXCHANGE_TUBI" - Tubi. Exchange string `json:"exchange,omitempty"` // ForceSendFields is a list of field names (e.g. "Exchange") to @@ -8416,17 +8535,10 @@ type FirstPartyAndPartnerAudience struct { // Only returned in GET request. GmailAudienceSize int64 `json:"gmailAudienceSize,omitempty,string"` // MembershipDurationDays: Output only. The duration in days that an entry - // remains in the audience after the qualifying event. If the audience has no - // expiration, set the value of this field to 10000. Otherwise, the set value - // must be greater than 0 and less than or equal to 540. Only applicable to - // first party audiences. This field is required if one of the following - // audience_type is used: * `CUSTOMER_MATCH_CONTACT_INFO` * - // `CUSTOMER_MATCH_DEVICE_ID` *Warning*: Starting on **April 7, 2025**, - // audiences will no longer be able to have infinite membership duration. This - // field will no longer accept the value 10000 and all audiences with - // membership durations greater than 540 days will be updated to a membership - // duration of 540 days. Read more about this announced change - // (/display-video/api/deprecations#features.audience_duration). + // remains in the audience after the qualifying event. The set value must be + // greater than 0 and less than or equal to 540. Only applicable to first party + // audiences. This field is required if one of the following audience_type is + // used: * `CUSTOMER_MATCH_CONTACT_INFO` * `CUSTOMER_MATCH_DEVICE_ID` MembershipDurationDays int64 `json:"membershipDurationDays,omitempty,string"` // MobileDeviceIdList: Input only. A list of mobile device IDs to define the // initial audience members. Only applicable to audience_type @@ -9324,6 +9436,8 @@ type GuaranteedOrder struct { // "EXCHANGE_TOPON_GBID" - TopOn. // "EXCHANGE_NETFLIX" - Netflix. // "EXCHANGE_CORE" - Core. + // "EXCHANGE_COMMERCE_GRID" - Commerce Grid. + // "EXCHANGE_SPOTIFY" - Spotify. // "EXCHANGE_TUBI" - Tubi. Exchange string `json:"exchange,omitempty"` // GuaranteedOrderId: Output only. The unique identifier of the guaranteed @@ -10131,6 +10245,8 @@ type InventorySource struct { // "EXCHANGE_TOPON_GBID" - TopOn. // "EXCHANGE_NETFLIX" - Netflix. // "EXCHANGE_CORE" - Core. + // "EXCHANGE_COMMERCE_GRID" - Commerce Grid. + // "EXCHANGE_SPOTIFY" - Spotify. // "EXCHANGE_TUBI" - Tubi. Exchange string `json:"exchange,omitempty"` // GuaranteedOrderId: Immutable. The ID of the guaranteed order that this @@ -10812,12 +10928,6 @@ type LineItem struct { // belongs to. CampaignId int64 `json:"campaignId,omitempty,string"` // ConversionCounting: The conversion tracking setting of the line item. - // *Warning*: Starting **April 1, 2025**, the floodlight_activity_configs field - // will no longer be writable while a custom bidding algorithm is assigned to - // the line item. If you set this field and assign a custom bidding algorithm - // in the same request, the floodlight activities must match the ones used by - // the custom bidding algorithm. Read more about this announced change - // (/display-video/api/deprecations#features.custom_bidding_floodlight). ConversionCounting *ConversionCountingConfig `json:"conversionCounting,omitempty"` // CreativeIds: The IDs of the creatives associated with the line item. CreativeIds googleapi.Int64s `json:"creativeIds,omitempty"` @@ -12276,11 +12386,9 @@ func (s MastheadAd) MarshalJSON() ([]byte, error) { type MaximizeSpendBidStrategy struct { // CustomBiddingAlgorithmId: The ID of the Custom Bidding Algorithm used by // this strategy. Only applicable when performance_goal_type is set to - // `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`. *Warning*: Starting - // **April 1, 2025**, assigning a custom bidding algorithm that uses floodlight - // activities not identified in floodlightActivityConfigs will return an error. - // Read more about this announced change - // (/display-video/api/deprecations#features.custom_bidding_floodlight). + // `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`. Assigning a custom + // bidding algorithm that uses floodlight activities not identified in + // floodlightActivityConfigs will return an error. CustomBiddingAlgorithmId int64 `json:"customBiddingAlgorithmId,omitempty,string"` // MaxAverageCpmBidAmountMicros: The maximum average CPM that may be bid, in // micros of the advertiser's currency. Must be greater than or equal to a @@ -13269,10 +13377,10 @@ type PartnerCost struct { // Possible values: // "PARTNER_COST_TYPE_UNSPECIFIED" - Type value is not specified or is // unknown in this version. - // "PARTNER_COST_TYPE_ADLOOX" - The cost is charged for using Adloox. Billed - // by the partner. - // "PARTNER_COST_TYPE_ADLOOX_PREBID" - The cost is charged for using Adloox - // Pre-Bid. Billed through DV360. + // "PARTNER_COST_TYPE_ADLOOX" - The cost is charged for using Scope3 + // (previously known as Adloox). Billed by the partner. + // "PARTNER_COST_TYPE_ADLOOX_PREBID" - The cost is charged for using Scope3 + // (previously known as Adloox) Pre-Bid. Billed through DV360. // "PARTNER_COST_TYPE_ADSAFE" - The cost is charged for using AdSafe. Billed // by the partner. // "PARTNER_COST_TYPE_ADXPOSE" - The cost is charged for using AdExpose. @@ -13562,11 +13670,9 @@ func (s PerformanceGoal) MarshalJSON() ([]byte, error) { type PerformanceGoalBidStrategy struct { // CustomBiddingAlgorithmId: The ID of the Custom Bidding Algorithm used by // this strategy. Only applicable when performance_goal_type is set to - // `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`. *Warning*: Starting - // **April 1, 2025**, assigning a custom bidding algorithm that uses floodlight - // activities not identified in floodlightActivityConfigs will return an error. - // Read more about this announced change - // (/display-video/api/deprecations#features.custom_bidding_floodlight). + // `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`. Assigning a custom + // bidding algorithm that uses floodlight activities not identified in + // floodlightActivityConfigs will return an error. CustomBiddingAlgorithmId int64 `json:"customBiddingAlgorithmId,omitempty,string"` // MaxAverageCpmBidAmountMicros: The maximum average CPM that may be bid, in // micros of the advertiser's currency. Must be greater than or equal to a @@ -14299,7 +14405,7 @@ func (s SdfConfig) MarshalJSON() ([]byte, error) { } // SdfDownloadTask: Type for the response returned by -// [SdfDownloadTaskService.CreateSdfDownloadTask]. +// SdfDownloadTaskService.CreateSdfDownloadTask. type SdfDownloadTask struct { // ResourceName: A resource name to be used in media.download to Download the // prepared files. Resource names have the format @@ -14326,7 +14432,7 @@ func (s SdfDownloadTask) MarshalJSON() ([]byte, error) { } // SdfDownloadTaskMetadata: Type for the metadata returned by -// [SdfDownloadTaskService.CreateSdfDownloadTask]. +// SdfDownloadTaskService.CreateSdfDownloadTask. type SdfDownloadTaskMetadata struct { // CreateTime: The time when the operation was created. CreateTime string `json:"createTime,omitempty"` @@ -15227,7 +15333,7 @@ func (s ThirdPartyVendorConfig) MarshalJSON() ([]byte, error) { // field of an AssignedTargetingOption when targeting_type is // `TARGETING_TYPE_THIRD_PARTY_VERIFIER`. type ThirdPartyVerifierAssignedTargetingOptionDetails struct { - // Adloox: Third party brand verifier -- Adloox. + // Adloox: Third party brand verifier -- Scope3 (previously known as Adloox). Adloox *Adloox `json:"adloox,omitempty"` // DoubleVerify: Third party brand verifier -- DoubleVerify. DoubleVerify *DoubleVerify `json:"doubleVerify,omitempty"` @@ -27191,10 +27297,8 @@ type CustomBiddingAlgorithmsPatchCall struct { } // Patch: Updates an existing custom bidding algorithm. Returns the updated -// custom bidding algorithm if successful. *Warning*: Starting **April 1, -// 2025**, requests updating custom bidding algorithms that are assigned to -// line items will return an error. Read more about this announced change -// (/display-video/api/deprecations#features.custom_bidding_floodlight). +// custom bidding algorithm if successful. Requests updating a custom bidding +// algorithm assigned to a line item will return an error. // // - customBiddingAlgorithmId: Output only. The unique ID of the custom bidding // algorithm. Assigned by the system. @@ -27564,10 +27668,8 @@ type CustomBiddingAlgorithmsRulesCreateCall struct { } // Create: Creates a new rules resource. Returns the newly created rules -// resource if successful. *Warning*: Starting **April 1, 2025**, requests -// updating custom bidding algorithms that are assigned to line items will -// return an error. Read more about this announced change -// (/display-video/api/deprecations#features.custom_bidding_floodlight). +// resource if successful. Requests creating a custom bidding rules resource +// under an algorithm assigned to a line item will return an error. // // - customBiddingAlgorithmId: The ID of the custom bidding algorithm that owns // the rules resource. @@ -27991,10 +28093,8 @@ type CustomBiddingAlgorithmsScriptsCreateCall struct { } // Create: Creates a new custom bidding script. Returns the newly created -// script if successful. *Warning*: Starting **April 1, 2025**, requests -// updating custom bidding algorithms that are assigned to line items will -// return an error. Read more about this announced change -// (/display-video/api/deprecations#features.custom_bidding_floodlight). +// script if successful. Requests creating a custom bidding script under an +// algorithm assigned to a line item will return an error. // // - customBiddingAlgorithmId: The ID of the custom bidding algorithm that owns // the script. @@ -35059,8 +35159,8 @@ type SdfdownloadtasksCreateCall struct { // operation is SdfDownloadTaskMetadata. If the request is successful, the // response type of the operation is SdfDownloadTask. The response will not // include the download files, which must be retrieved with media.download. The -// state of operation can be retrieved with sdfdownloadtask.operations.get. Any -// errors can be found in the error.message. Note that error.details is +// state of operation can be retrieved with `sdfdownloadtasks.operations.get`. +// Any errors can be found in the error.message. Note that error.details is // expected to be empty. func (r *SdfdownloadtasksService) Create(createsdfdownloadtaskrequest *CreateSdfDownloadTaskRequest) *SdfdownloadtasksCreateCall { c := &SdfdownloadtasksCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} diff --git a/documentai/v1/documentai-api.json b/documentai/v1/documentai-api.json index c1400ed2154..551649e9144 100644 --- a/documentai/v1/documentai-api.json +++ b/documentai/v1/documentai-api.json @@ -1048,7 +1048,7 @@ } } }, - "revision": "20250416", + "revision": "20250421", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata": { @@ -3682,6 +3682,22 @@ "description": "User defined name for the property.", "type": "string" }, + "groundingConfig": { + "description": "Grounding config of the entity type.", + "enum": [ + "GROUNDING_CONFIG_UNSPECIFIED", + "STRICT", + "RELAXED", + "NO_GROUNDING" + ], + "enumDescriptions": [ + "Unspecified grounding config. It defaults to `STRICT` grounding.", + "Strict grounding.", + "Relaxed grounding.", + "Allow no grounding." + ], + "type": "string" + }, "name": { "description": "The name of the property. Follows the same guidelines as the EntityType name.", "type": "string" diff --git a/documentai/v1/documentai-gen.go b/documentai/v1/documentai-gen.go index 9bb3d9a15f5..bba8ad6de51 100644 --- a/documentai/v1/documentai-gen.go +++ b/documentai/v1/documentai-gen.go @@ -3679,6 +3679,15 @@ func (s GoogleCloudDocumentaiV1DocumentSchemaEntityTypeEnumValues) MarshalJSON() type GoogleCloudDocumentaiV1DocumentSchemaEntityTypeProperty struct { // DisplayName: User defined name for the property. DisplayName string `json:"displayName,omitempty"` + // GroundingConfig: Grounding config of the entity type. + // + // Possible values: + // "GROUNDING_CONFIG_UNSPECIFIED" - Unspecified grounding config. It defaults + // to `STRICT` grounding. + // "STRICT" - Strict grounding. + // "RELAXED" - Relaxed grounding. + // "NO_GROUNDING" - Allow no grounding. + GroundingConfig string `json:"groundingConfig,omitempty"` // Name: The name of the property. Follows the same guidelines as the // EntityType name. Name string `json:"name,omitempty"` diff --git a/documentai/v1beta3/documentai-api.json b/documentai/v1beta3/documentai-api.json index 370569ad55b..eee0a852528 100644 --- a/documentai/v1beta3/documentai-api.json +++ b/documentai/v1beta3/documentai-api.json @@ -1290,7 +1290,7 @@ } } }, - "revision": "20250416", + "revision": "20250421", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata": { @@ -3108,6 +3108,13 @@ "description": "Document represents the canonical document resource in Document AI. It is an interchange format that provides insights into documents and allows for collaboration between users and Document AI to iterate and optimize for quality.", "id": "GoogleCloudDocumentaiV1beta3Document", "properties": { + "blobAssets": { + "description": "Optional. The blob assets in this document. This is used to store the content of the inline blobs in this document, e.g. image bytes, such that it can be referenced by other fields in the document via asset id.", + "items": { + "$ref": "GoogleCloudDocumentaiV1beta3DocumentBlobAsset" + }, + "type": "array" + }, "chunkedDocument": { "$ref": "GoogleCloudDocumentaiV1beta3DocumentChunkedDocument", "description": "Document chunked based on chunking config." @@ -3191,6 +3198,37 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1beta3DocumentAnnotations": { + "description": "Represents the annotation of a block or a chunk.", + "id": "GoogleCloudDocumentaiV1beta3DocumentAnnotations", + "properties": { + "description": { + "description": "The description of the content with this annotation.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3DocumentBlobAsset": { + "description": "Represents a blob asset. It's used to store the content of the inline blob in this document, e.g. image bytes, such that it can be referenced by other fields in the document via asset id.", + "id": "GoogleCloudDocumentaiV1beta3DocumentBlobAsset", + "properties": { + "assetId": { + "description": "Optional. The id of the blob asset.", + "type": "string" + }, + "content": { + "description": "Optional. The content of the blob asset, e.g. image bytes.", + "format": "byte", + "type": "string" + }, + "mimeType": { + "description": "The mime type of the blob asset. An IANA published [media type (MIME type)](https://www.iana.org/assignments/media-types/media-types.xhtml).", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1beta3DocumentChunkedDocument": { "description": "Represents the chunks that the document is divided into.", "id": "GoogleCloudDocumentaiV1beta3DocumentChunkedDocument", @@ -3209,6 +3247,13 @@ "description": "Represents a chunk.", "id": "GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunk", "properties": { + "chunkFields": { + "description": "Chunk fields inside this chunk.", + "items": { + "$ref": "GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkField" + }, + "type": "array" + }, "chunkId": { "description": "ID of the chunk.", "type": "string" @@ -3245,6 +3290,21 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkField": { + "description": "The chunk field in the chunk. A chunk field could be one of the various types (e.g. image, table) supported.", + "id": "GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkField", + "properties": { + "imageChunkField": { + "$ref": "GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkImageChunkField", + "description": "The image chunk field in the chunk." + }, + "tableChunkField": { + "$ref": "GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkTableChunkField", + "description": "The table chunk field in the chunk." + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageFooter": { "description": "Represents the page footer associated with the chunk.", "id": "GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageFooter", @@ -3292,6 +3352,40 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkImageChunkField": { + "description": "The image chunk field in the chunk.", + "id": "GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkImageChunkField", + "properties": { + "annotations": { + "$ref": "GoogleCloudDocumentaiV1beta3DocumentAnnotations", + "description": "Annotation of the image chunk field." + }, + "blobAssetId": { + "description": "Optional. Asset id of the inline image. If set, find the image content in the blob_assets field.", + "type": "string" + }, + "dataUri": { + "description": "Optional. Data uri of the image. It is composed of four parts: a prefix (data:), a MIME type indicating the type of data, an optional base64 token if non-textual, and the data itself: data:,", + "type": "string" + }, + "gcsUri": { + "description": "Optional. Google Cloud Storage uri of the image.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkTableChunkField": { + "description": "The table chunk field in the chunk.", + "id": "GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkTableChunkField", + "properties": { + "annotations": { + "$ref": "GoogleCloudDocumentaiV1beta3DocumentAnnotations", + "description": "Annotation of the table chunk field." + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1beta3DocumentDocumentLayout": { "description": "Represents the parsed layout of a document as a collection of blocks that the document is divided into.", "id": "GoogleCloudDocumentaiV1beta3DocumentDocumentLayout", @@ -3318,6 +3412,10 @@ "$ref": "GoogleCloudDocumentaiV1beta3BoundingPoly", "description": "Identifies the bounding box for the block." }, + "imageBlock": { + "$ref": "GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutImageBlock", + "description": "Block consisting of image content." + }, "listBlock": { "$ref": "GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock", "description": "Block consisting of list content/structure." @@ -3337,6 +3435,37 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutImageBlock": { + "description": "Represents an image type block.", + "id": "GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutImageBlock", + "properties": { + "annotations": { + "$ref": "GoogleCloudDocumentaiV1beta3DocumentAnnotations", + "description": "Annotation of the image block." + }, + "blobAssetId": { + "description": "Optional. Asset id of the inline image. If set, find the image content in the blob_assets field.", + "type": "string" + }, + "dataUri": { + "description": "Optional. Data uri of the image. It is composed of four parts: a prefix (data:), a MIME type indicating the type of data, an optional base64 token if non-textual, and the data itself: data:,", + "type": "string" + }, + "gcsUri": { + "description": "Optional. Google Cloud Storage uri of the image.", + "type": "string" + }, + "imageText": { + "description": "Text extracted from the image using OCR or alt text describing the image.", + "type": "string" + }, + "mimeType": { + "description": "Mime type of the image. An IANA published [media type (MIME type)] (https://www.iana.org/assignments/media-types/media-types.xhtml).", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock": { "description": "Represents a list type block.", "id": "GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock", @@ -4677,6 +4806,22 @@ "description": "User defined name for the property.", "type": "string" }, + "groundingConfig": { + "description": "Grounding config of the entity type.", + "enum": [ + "GROUNDING_CONFIG_UNSPECIFIED", + "STRICT", + "RELAXED", + "NO_GROUNDING" + ], + "enumDescriptions": [ + "Unspecified grounding config. It defaults to `STRICT` grounding.", + "Strict grounding.", + "Relaxed grounding.", + "Allow no grounding." + ], + "type": "string" + }, "name": { "description": "The name of the property. Follows the same guidelines as the EntityType name.", "type": "string" diff --git a/documentai/v1beta3/documentai-gen.go b/documentai/v1beta3/documentai-gen.go index 84eaa1d98b1..d09199baf79 100644 --- a/documentai/v1beta3/documentai-gen.go +++ b/documentai/v1beta3/documentai-gen.go @@ -2784,6 +2784,10 @@ type GoogleCloudDocumentaiV1beta3DisableProcessorResponse struct { // insights into documents and allows for collaboration between users and // Document AI to iterate and optimize for quality. type GoogleCloudDocumentaiV1beta3Document struct { + // BlobAssets: Optional. The blob assets in this document. This is used to + // store the content of the inline blobs in this document, e.g. image bytes, + // such that it can be referenced by other fields in the document via asset id. + BlobAssets []*GoogleCloudDocumentaiV1beta3DocumentBlobAsset `json:"blobAssets,omitempty"` // ChunkedDocument: Document chunked based on chunking config. ChunkedDocument *GoogleCloudDocumentaiV1beta3DocumentChunkedDocument `json:"chunkedDocument,omitempty"` // Content: Optional. Inline document content, represented as a stream of @@ -2826,15 +2830,15 @@ type GoogleCloudDocumentaiV1beta3Document struct { // information, refer to Google Cloud Storage Request URIs // (https://cloud.google.com/storage/docs/reference-uris). Uri string `json:"uri,omitempty"` - // ForceSendFields is a list of field names (e.g. "ChunkedDocument") to + // ForceSendFields is a list of field names (e.g. "BlobAssets") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ChunkedDocument") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See + // NullFields is a list of field names (e.g. "BlobAssets") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -2844,6 +2848,60 @@ func (s GoogleCloudDocumentaiV1beta3Document) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDocumentaiV1beta3DocumentAnnotations: Represents the annotation +// of a block or a chunk. +type GoogleCloudDocumentaiV1beta3DocumentAnnotations struct { + // Description: The description of the content with this annotation. + Description string `json:"description,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 GoogleCloudDocumentaiV1beta3DocumentAnnotations) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1beta3DocumentAnnotations + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiV1beta3DocumentBlobAsset: Represents a blob asset. It's +// used to store the content of the inline blob in this document, e.g. image +// bytes, such that it can be referenced by other fields in the document via +// asset id. +type GoogleCloudDocumentaiV1beta3DocumentBlobAsset struct { + // AssetId: Optional. The id of the blob asset. + AssetId string `json:"assetId,omitempty"` + // Content: Optional. The content of the blob asset, e.g. image bytes. + Content string `json:"content,omitempty"` + // MimeType: The mime type of the blob asset. An IANA published media type + // (MIME type) + // (https://www.iana.org/assignments/media-types/media-types.xhtml). + MimeType string `json:"mimeType,omitempty"` + // ForceSendFields is a list of field names (e.g. "AssetId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AssetId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDocumentaiV1beta3DocumentBlobAsset) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1beta3DocumentBlobAsset + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDocumentaiV1beta3DocumentChunkedDocument: Represents the chunks // that the document is divided into. type GoogleCloudDocumentaiV1beta3DocumentChunkedDocument struct { @@ -2870,6 +2928,8 @@ func (s GoogleCloudDocumentaiV1beta3DocumentChunkedDocument) MarshalJSON() ([]by // GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunk: Represents a // chunk. type GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunk struct { + // ChunkFields: Chunk fields inside this chunk. + ChunkFields []*GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkField `json:"chunkFields,omitempty"` // ChunkId: ID of the chunk. ChunkId string `json:"chunkId,omitempty"` // Content: Text content of the chunk. @@ -2882,13 +2942,13 @@ type GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunk struct { PageSpan *GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageSpan `json:"pageSpan,omitempty"` // SourceBlockIds: Unused. SourceBlockIds []string `json:"sourceBlockIds,omitempty"` - // ForceSendFields is a list of field names (e.g. "ChunkId") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See + // ForceSendFields is a list of field names (e.g. "ChunkFields") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ChunkId") to include in API + // NullFields is a list of field names (e.g. "ChunkFields") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -2900,6 +2960,32 @@ func (s GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunk) MarshalJSON() return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkField: The +// chunk field in the chunk. A chunk field could be one of the various types +// (e.g. image, table) supported. +type GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkField struct { + // ImageChunkField: The image chunk field in the chunk. + ImageChunkField *GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkImageChunkField `json:"imageChunkField,omitempty"` + // TableChunkField: The table chunk field in the chunk. + TableChunkField *GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkTableChunkField `json:"tableChunkField,omitempty"` + // ForceSendFields is a list of field names (e.g. "ImageChunkField") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ImageChunkField") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkField) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkField + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageFooter: // Represents the page footer associated with the chunk. type GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageFooter struct { @@ -2975,6 +3061,61 @@ func (s GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageSpan) M return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkImageChunkField: The +// image chunk field in the chunk. +type GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkImageChunkField struct { + // Annotations: Annotation of the image chunk field. + Annotations *GoogleCloudDocumentaiV1beta3DocumentAnnotations `json:"annotations,omitempty"` + // BlobAssetId: Optional. Asset id of the inline image. If set, find the image + // content in the blob_assets field. + BlobAssetId string `json:"blobAssetId,omitempty"` + // DataUri: Optional. Data uri of the image. It is composed of four parts: a + // prefix (data:), a MIME type indicating the type of data, an optional base64 + // token if non-textual, and the data itself: data:, + DataUri string `json:"dataUri,omitempty"` + // GcsUri: Optional. Google Cloud Storage uri of the image. + GcsUri string `json:"gcsUri,omitempty"` + // ForceSendFields is a list of field names (e.g. "Annotations") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Annotations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkImageChunkField) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkImageChunkField + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkTableChunkField: The +// table chunk field in the chunk. +type GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkTableChunkField struct { + // Annotations: Annotation of the table chunk field. + Annotations *GoogleCloudDocumentaiV1beta3DocumentAnnotations `json:"annotations,omitempty"` + // ForceSendFields is a list of field names (e.g. "Annotations") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Annotations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkTableChunkField) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkTableChunkField + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDocumentaiV1beta3DocumentDocumentLayout: Represents the parsed // layout of a document as a collection of blocks that the document is divided // into. @@ -3007,6 +3148,8 @@ type GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlock struc BlockId string `json:"blockId,omitempty"` // BoundingBox: Identifies the bounding box for the block. BoundingBox *GoogleCloudDocumentaiV1beta3BoundingPoly `json:"boundingBox,omitempty"` + // ImageBlock: Block consisting of image content. + ImageBlock *GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutImageBlock `json:"imageBlock,omitempty"` // ListBlock: Block consisting of list content/structure. ListBlock *GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock `json:"listBlock,omitempty"` // PageSpan: Page span of the block. @@ -3033,6 +3176,44 @@ func (s GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlock) M return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutIm +// ageBlock: Represents an image type block. +type GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutImageBlock struct { + // Annotations: Annotation of the image block. + Annotations *GoogleCloudDocumentaiV1beta3DocumentAnnotations `json:"annotations,omitempty"` + // BlobAssetId: Optional. Asset id of the inline image. If set, find the image + // content in the blob_assets field. + BlobAssetId string `json:"blobAssetId,omitempty"` + // DataUri: Optional. Data uri of the image. It is composed of four parts: a + // prefix (data:), a MIME type indicating the type of data, an optional base64 + // token if non-textual, and the data itself: data:, + DataUri string `json:"dataUri,omitempty"` + // GcsUri: Optional. Google Cloud Storage uri of the image. + GcsUri string `json:"gcsUri,omitempty"` + // ImageText: Text extracted from the image using OCR or alt text describing + // the image. + ImageText string `json:"imageText,omitempty"` + // MimeType: Mime type of the image. An IANA published [media type (MIME type)] + // (https://www.iana.org/assignments/media-types/media-types.xhtml). + MimeType string `json:"mimeType,omitempty"` + // ForceSendFields is a list of field names (e.g. "Annotations") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Annotations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutImageBlock) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutImageBlock + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutLi // stBlock: Represents a list type block. type GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock struct { @@ -4676,6 +4857,15 @@ type GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeProperty struct { Description string `json:"description,omitempty"` // DisplayName: User defined name for the property. DisplayName string `json:"displayName,omitempty"` + // GroundingConfig: Grounding config of the entity type. + // + // Possible values: + // "GROUNDING_CONFIG_UNSPECIFIED" - Unspecified grounding config. It defaults + // to `STRICT` grounding. + // "STRICT" - Strict grounding. + // "RELAXED" - Relaxed grounding. + // "NO_GROUNDING" - Allow no grounding. + GroundingConfig string `json:"groundingConfig,omitempty"` // Name: The name of the property. Follows the same guidelines as the // EntityType name. Name string `json:"name,omitempty"` diff --git a/firebaseml/v2beta/firebaseml-api.json b/firebaseml/v2beta/firebaseml-api.json index e3c7f9f4efd..f757a7ee5b0 100644 --- a/firebaseml/v2beta/firebaseml-api.json +++ b/firebaseml/v2beta/firebaseml-api.json @@ -206,7 +206,7 @@ } } }, - "revision": "20250420", + "revision": "20250423", "rootUrl": "https://firebaseml.googleapis.com/", "schemas": { "Date": { @@ -1713,6 +1713,10 @@ "description": "Schema is used to define the format of input/output data. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema-object). More fields may be added in the future as needed.", "id": "GoogleCloudAiplatformV1beta1Schema", "properties": { + "additionalProperties": { + "description": "Optional. Can either be a boolean or an object; controls the presence of additional properties.", + "type": "any" + }, "anyOf": { "description": "Optional. The value should be validated against any (one or more) of the subschemas in the list.", "items": { diff --git a/firebaseml/v2beta/firebaseml-gen.go b/firebaseml/v2beta/firebaseml-gen.go index d0f906d29ed..769fe957eb5 100644 --- a/firebaseml/v2beta/firebaseml-gen.go +++ b/firebaseml/v2beta/firebaseml-gen.go @@ -2085,6 +2085,9 @@ func (s GoogleCloudAiplatformV1beta1SafetySetting) MarshalJSON() ([]byte, error) // object (https://spec.openapis.org/oas/v3.0.3#schema-object). More fields may // be added in the future as needed. type GoogleCloudAiplatformV1beta1Schema struct { + // AdditionalProperties: Optional. Can either be a boolean or an object; + // controls the presence of additional properties. + AdditionalProperties interface{} `json:"additionalProperties,omitempty"` // AnyOf: Optional. The value should be validated against any (one or more) of // the subschemas in the list. AnyOf []*GoogleCloudAiplatformV1beta1Schema `json:"anyOf,omitempty"` @@ -2163,15 +2166,15 @@ type GoogleCloudAiplatformV1beta1Schema struct { // "OBJECT" - OpenAPI object type // "NULL" - Null type Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "AnyOf") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See + // ForceSendFields is a list of field names (e.g. "AdditionalProperties") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AnyOf") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "AdditionalProperties") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } diff --git a/networkmanagement/v1/networkmanagement-api.json b/networkmanagement/v1/networkmanagement-api.json index 18c79c5d9b9..f5bfc7cb83e 100644 --- a/networkmanagement/v1/networkmanagement-api.json +++ b/networkmanagement/v1/networkmanagement-api.json @@ -764,7 +764,7 @@ } } }, - "revision": "20250409", + "revision": "20250416", "rootUrl": "https://networkmanagement.googleapis.com/", "schemas": { "AbortInfo": { @@ -803,6 +803,7 @@ "FIREWALL_CONFIG_NOT_FOUND", "ROUTE_CONFIG_NOT_FOUND", "GOOGLE_MANAGED_SERVICE_AMBIGUOUS_PSC_ENDPOINT", + "GOOGLE_MANAGED_SERVICE_AMBIGUOUS_ENDPOINT", "SOURCE_PSC_CLOUD_SQL_UNSUPPORTED", "SOURCE_REDIS_CLUSTER_UNSUPPORTED", "SOURCE_REDIS_INSTANCE_UNSUPPORTED", @@ -849,6 +850,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -880,7 +882,8 @@ "Aborted because expected network configuration was missing.", "Aborted because expected firewall configuration was missing.", "Aborted because expected route configuration was missing.", - "Aborted because a PSC endpoint selection for the Google-managed service is ambiguous (several PSC endpoints satisfy test input).", + "Aborted because PSC endpoint selection for the Google-managed service is ambiguous (several PSC endpoints satisfy test input).", + "Aborted because endpoint selection for the Google-managed service is ambiguous (several endpoints satisfy test input).", "Aborted because tests with a PSC-based Cloud SQL instance as a source are not supported.", "Aborted because tests with a Redis Cluster as a source are not supported.", "Aborted because tests with a Redis Instance as a source are not supported.", @@ -1390,7 +1393,8 @@ "PSC_PORT_MAPPING_PORT_MISMATCH", "PSC_PORT_MAPPING_WITHOUT_PSC_CONNECTION_UNSUPPORTED", "UNSUPPORTED_ROUTE_MATCHED_FOR_NAT64_DESTINATION", - "TRAFFIC_FROM_HYBRID_ENDPOINT_TO_INTERNET_DISALLOWED" + "TRAFFIC_FROM_HYBRID_ENDPOINT_TO_INTERNET_DISALLOWED", + "NO_MATCHING_NAT64_GATEWAY" ], "enumDescriptions": [ "Cause is unspecified.", @@ -1481,7 +1485,8 @@ "Packet is sent to the PSC port mapping service, but its destination port does not match any port mapping rules.", "Sending packets directly to the PSC port mapping service without going through the PSC connection is not supported.", "Packet with destination IP address within the reserved NAT64 range is dropped due to matching a route of an unsupported type.", - "Packet could be dropped because hybrid endpoint like a VPN gateway or Interconnect is not allowed to send traffic to the Internet." + "Packet could be dropped because hybrid endpoint like a VPN gateway or Interconnect is not allowed to send traffic to the Internet.", + "Packet with destination IP address within the reserved NAT64 range is dropped due to no matching NAT gateway in the subnet." ], "type": "string" }, @@ -2003,6 +2008,10 @@ "description": "URI of the PSC network attachment the NIC is attached to (if relevant).", "type": "string" }, + "running": { + "description": "Indicates whether the Compute Engine instance is running.", + "type": "boolean" + }, "serviceAccount": { "deprecated": true, "description": "Service account authorized for the instance.", diff --git a/networkmanagement/v1/networkmanagement-gen.go b/networkmanagement/v1/networkmanagement-gen.go index d5eb9d78538..56d7958058e 100644 --- a/networkmanagement/v1/networkmanagement-gen.go +++ b/networkmanagement/v1/networkmanagement-gen.go @@ -289,9 +289,12 @@ type AbortInfo struct { // configuration was missing. // "ROUTE_CONFIG_NOT_FOUND" - Aborted because expected route configuration // was missing. - // "GOOGLE_MANAGED_SERVICE_AMBIGUOUS_PSC_ENDPOINT" - Aborted because a PSC + // "GOOGLE_MANAGED_SERVICE_AMBIGUOUS_PSC_ENDPOINT" - Aborted because PSC // endpoint selection for the Google-managed service is ambiguous (several PSC // endpoints satisfy test input). + // "GOOGLE_MANAGED_SERVICE_AMBIGUOUS_ENDPOINT" - Aborted because endpoint + // selection for the Google-managed service is ambiguous (several endpoints + // satisfy test input). // "SOURCE_PSC_CLOUD_SQL_UNSUPPORTED" - Aborted because tests with a // PSC-based Cloud SQL instance as a source are not supported. // "SOURCE_REDIS_CLUSTER_UNSUPPORTED" - Aborted because tests with a Redis @@ -1112,6 +1115,9 @@ type DropInfo struct { // "TRAFFIC_FROM_HYBRID_ENDPOINT_TO_INTERNET_DISALLOWED" - Packet could be // dropped because hybrid endpoint like a VPN gateway or Interconnect is not // allowed to send traffic to the Internet. + // "NO_MATCHING_NAT64_GATEWAY" - Packet with destination IP address within + // the reserved NAT64 range is dropped due to no matching NAT gateway in the + // subnet. Cause string `json:"cause,omitempty"` // DestinationIp: Destination IP address of the dropped packet (if relevant). DestinationIp string `json:"destinationIp,omitempty"` @@ -1654,6 +1660,8 @@ type InstanceInfo struct { // PscNetworkAttachmentUri: URI of the PSC network attachment the NIC is // attached to (if relevant). PscNetworkAttachmentUri string `json:"pscNetworkAttachmentUri,omitempty"` + // Running: Indicates whether the Compute Engine instance is running. + Running bool `json:"running,omitempty"` // ServiceAccount: Service account authorized for the instance. ServiceAccount string `json:"serviceAccount,omitempty"` // Uri: URI of a Compute Engine instance. diff --git a/parallelstore/v1/parallelstore-api.json b/parallelstore/v1/parallelstore-api.json index d0999b4f2e4..ab947cce4c9 100644 --- a/parallelstore/v1/parallelstore-api.json +++ b/parallelstore/v1/parallelstore-api.json @@ -207,7 +207,7 @@ "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 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 t he 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).", + "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).", "location": "query", "type": "string" } @@ -240,7 +240,7 @@ "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 will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and t he 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).", + "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 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, 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).", "location": "query", "type": "string" } @@ -397,7 +397,7 @@ "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 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 t he 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).", + "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).", "location": "query", "type": "string" }, @@ -549,7 +549,7 @@ } } }, - "revision": "20250326", + "revision": "20250416", "rootUrl": "https://parallelstore.googleapis.com/", "schemas": { "CancelOperationRequest": { @@ -593,7 +593,7 @@ "description": "Optional. The metadata options for the export data." }, "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 t he 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).", + "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" }, "serviceAccount": { @@ -626,7 +626,7 @@ "description": "Optional. The transfer metadata options for the import data." }, "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 t he 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).", + "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" }, "serviceAccount": { @@ -665,7 +665,7 @@ }, "daosVersion": { "deprecated": true, - "description": "Output only. Deprecated 'daos_version' field. Output only. The version of DAOS software running in the instance.", + "description": "Output only. Deprecated: The version of DAOS software running in the instance.", "readOnly": true, "type": "string" }, diff --git a/parallelstore/v1/parallelstore-gen.go b/parallelstore/v1/parallelstore-gen.go index 70ba47a4cc9..3d4447cc7fa 100644 --- a/parallelstore/v1/parallelstore-gen.go +++ b/parallelstore/v1/parallelstore-gen.go @@ -260,12 +260,12 @@ type ExportDataRequest struct { // 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 t he 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 + // 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"` // ServiceAccount: Optional. User-specified Service Account (SA) credentials to @@ -318,12 +318,12 @@ type ImportDataRequest struct { // 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 t he 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 + // 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"` // ServiceAccount: Optional. User-specified service account credentials to be @@ -366,8 +366,8 @@ type Instance struct { CapacityGib int64 `json:"capacityGib,omitempty,string"` // CreateTime: Output only. The time when the instance was created. CreateTime string `json:"createTime,omitempty"` - // DaosVersion: Output only. Deprecated 'daos_version' field. Output only. The - // version of DAOS software running in the instance. + // DaosVersion: Output only. Deprecated: The version of DAOS software running + // in the instance. DaosVersion string `json:"daosVersion,omitempty"` // DeploymentType: Optional. Immutable. The deployment type of the instance. // Allowed values are: * `SCRATCH`: the instance is a scratch instance. * @@ -1142,7 +1142,7 @@ func (c *ProjectsLocationsInstancesCreateCall) InstanceId(instanceId string) *Pr // 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 t he request times out. If you make the request again +// 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 @@ -1259,7 +1259,7 @@ func (r *ProjectsLocationsInstancesService) Delete(name string) *ProjectsLocatio // 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 after // the first request. For example, consider a situation where you make an -// initial request and t he request times out. If you make the request again +// 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 @@ -1853,7 +1853,7 @@ func (r *ProjectsLocationsInstancesService) Patch(name string, instance *Instanc // 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 t he request times out. If you make the request again +// 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 diff --git a/parallelstore/v1beta/parallelstore-api.json b/parallelstore/v1beta/parallelstore-api.json index d1192198842..a610cf2672b 100644 --- a/parallelstore/v1beta/parallelstore-api.json +++ b/parallelstore/v1beta/parallelstore-api.json @@ -207,7 +207,7 @@ "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 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 t he 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).", + "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).", "location": "query", "type": "string" } @@ -240,7 +240,7 @@ "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 will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and t he 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).", + "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 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, 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).", "location": "query", "type": "string" } @@ -397,7 +397,7 @@ "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 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 t he 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).", + "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).", "location": "query", "type": "string" }, @@ -546,7 +546,7 @@ } } }, - "revision": "20250326", + "revision": "20250416", "rootUrl": "https://parallelstore.googleapis.com/", "schemas": { "DestinationGcsBucket": { @@ -584,7 +584,7 @@ "description": "Optional. The metadata options for the export data." }, "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 t he 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).", + "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" }, "serviceAccount": { @@ -617,7 +617,7 @@ "description": "Optional. The transfer metadata options for the import data." }, "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 t he 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).", + "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" }, "serviceAccount": { @@ -656,7 +656,7 @@ }, "daosVersion": { "deprecated": true, - "description": "Output only. Deprecated 'daos_version' field. Output only. The version of DAOS software running in the instance.", + "description": "Output only. Deprecated: The version of DAOS software running in the instance.", "readOnly": true, "type": "string" }, diff --git a/parallelstore/v1beta/parallelstore-gen.go b/parallelstore/v1beta/parallelstore-gen.go index 92cbb5b68db..426b34a4299 100644 --- a/parallelstore/v1beta/parallelstore-gen.go +++ b/parallelstore/v1beta/parallelstore-gen.go @@ -256,12 +256,12 @@ type ExportDataRequest struct { // 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 t he 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 + // 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"` // ServiceAccount: Optional. User-specified Service Account (SA) credentials to @@ -314,12 +314,12 @@ type ImportDataRequest struct { // 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 t he 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 + // 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"` // ServiceAccount: Optional. User-specified service account credentials to be @@ -362,8 +362,8 @@ type Instance struct { CapacityGib int64 `json:"capacityGib,omitempty,string"` // CreateTime: Output only. The time when the instance was created. CreateTime string `json:"createTime,omitempty"` - // DaosVersion: Output only. Deprecated 'daos_version' field. Output only. The - // version of DAOS software running in the instance. + // DaosVersion: Output only. Deprecated: The version of DAOS software running + // in the instance. DaosVersion string `json:"daosVersion,omitempty"` // DeploymentType: Optional. Immutable. The deployment type of the instance. // Allowed values are: * `SCRATCH`: the instance is a scratch instance. * @@ -1138,7 +1138,7 @@ func (c *ProjectsLocationsInstancesCreateCall) InstanceId(instanceId string) *Pr // 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 t he request times out. If you make the request again +// 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 @@ -1255,7 +1255,7 @@ func (r *ProjectsLocationsInstancesService) Delete(name string) *ProjectsLocatio // 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 after // the first request. For example, consider a situation where you make an -// initial request and t he request times out. If you make the request again +// 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 @@ -1849,7 +1849,7 @@ func (r *ProjectsLocationsInstancesService) Patch(name string, instance *Instanc // 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 t he request times out. If you make the request again +// 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 diff --git a/tpu/v2alpha1/tpu-api.json b/tpu/v2alpha1/tpu-api.json index 3a67f5571d7..e4772aa0dbc 100644 --- a/tpu/v2alpha1/tpu-api.json +++ b/tpu/v2alpha1/tpu-api.json @@ -1027,7 +1027,7 @@ } } }, - "revision": "20250410", + "revision": "20250423", "rootUrl": "https://tpu.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -1155,10 +1155,25 @@ "$ref": "CustomerEncryptionKey", "description": "Optional. Customer encryption key for boot disk." }, + "diskSizeGb": { + "description": "Optional. Size of the boot disk in GB. It must be larger than or equal to the size of the image.", + "format": "int64", + "type": "string" + }, "enableConfidentialCompute": { "description": "Optional. Whether the boot disk will be created with confidential compute mode.", "type": "boolean" }, + "provisionedIops": { + "description": "Optional. Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle. To learn more about IOPS, see [Provisioning persistent disk performance](https://cloud.google.com/compute/docs/disks/performance#provisioned-iops).", + "format": "int64", + "type": "string" + }, + "provisionedThroughput": { + "description": "Optional. Indicates how much throughput to provision for the disk. This sets the number of throughput MB per second that the disk can handle.", + "format": "int64", + "type": "string" + }, "sourceImage": { "description": "Optional. Image from which boot disk is to be created. If not specified, the default image for the runtime version will be used. Example: `projects/$PROJECT_ID/global/images/$IMAGE_NAME`.", "type": "string" diff --git a/tpu/v2alpha1/tpu-gen.go b/tpu/v2alpha1/tpu-gen.go index 497c5c4746e..8f8ef300850 100644 --- a/tpu/v2alpha1/tpu-gen.go +++ b/tpu/v2alpha1/tpu-gen.go @@ -383,9 +383,22 @@ type BestEffort struct { type BootDiskConfig struct { // CustomerEncryptionKey: Optional. Customer encryption key for boot disk. CustomerEncryptionKey *CustomerEncryptionKey `json:"customerEncryptionKey,omitempty"` + // DiskSizeGb: Optional. Size of the boot disk in GB. It must be larger than or + // equal to the size of the image. + DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"` // EnableConfidentialCompute: Optional. Whether the boot disk will be created // with confidential compute mode. EnableConfidentialCompute bool `json:"enableConfidentialCompute,omitempty"` + // ProvisionedIops: Optional. Indicates how many IOPS to provision for the + // disk. This sets the number of I/O operations per second that the disk can + // handle. To learn more about IOPS, see Provisioning persistent disk + // performance + // (https://cloud.google.com/compute/docs/disks/performance#provisioned-iops). + ProvisionedIops int64 `json:"provisionedIops,omitempty,string"` + // ProvisionedThroughput: Optional. Indicates how much throughput to provision + // for the disk. This sets the number of throughput MB per second that the disk + // can handle. + ProvisionedThroughput int64 `json:"provisionedThroughput,omitempty,string"` // SourceImage: Optional. Image from which boot disk is to be created. If not // specified, the default image for the runtime version will be used. Example: // `projects/$PROJECT_ID/global/images/$IMAGE_NAME`. From ae18b2206b6182d47d69227b638dfc42d975b889 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 27 Apr 2025 00:38:20 -0700 Subject: [PATCH 5/8] feat(all): auto-regenerate discovery clients (#3127) --- clouddeploy/v1/clouddeploy-api.json | 6 +- clouddeploy/v1/clouddeploy-gen.go | 4 +- connectors/v2/connectors-api.json | 6 +- connectors/v2/connectors-gen.go | 9 + file/v1/file-api.json | 11 +- file/v1/file-gen.go | 17 +- file/v1beta1/file-api.json | 11 +- file/v1beta1/file-gen.go | 17 +- gkehub/v1/gkehub-api.json | 6 +- gkehub/v1/gkehub-gen.go | 5 +- gkehub/v1alpha/gkehub-api.json | 148 +- gkehub/v1alpha/gkehub-gen.go | 170 +- iamcredentials/v1/iamcredentials-api.json | 115 +- iamcredentials/v1/iamcredentials-gen.go | 345 +- .../v1/networkconnectivity-api.json | 10 +- .../v1/networkconnectivity-gen.go | 10 +- .../v1alpha1/networkconnectivity-api.json | 42 +- .../v1alpha1/networkconnectivity-gen.go | 69 +- networksecurity/v1/networksecurity-api.json | 3487 +++-- networksecurity/v1/networksecurity-gen.go | 12180 ++++++++++------ 20 files changed, 11011 insertions(+), 5657 deletions(-) diff --git a/clouddeploy/v1/clouddeploy-api.json b/clouddeploy/v1/clouddeploy-api.json index e02e270a046..621874f801f 100644 --- a/clouddeploy/v1/clouddeploy-api.json +++ b/clouddeploy/v1/clouddeploy-api.json @@ -2354,7 +2354,7 @@ } } }, - "revision": "20250409", + "revision": "20250416", "rootUrl": "https://clouddeploy.googleapis.com/", "schemas": { "AbandonReleaseRequest": { @@ -6678,11 +6678,11 @@ "properties": { "postdeploy": { "$ref": "Postdeploy", - "description": "Optional. Configuration for the postdeploy job. If this is not configured, postdeploy job will not be present." + "description": "Optional. Configuration for the postdeploy job. If this is not configured, the postdeploy job will not be present." }, "predeploy": { "$ref": "Predeploy", - "description": "Optional. Configuration for the predeploy job. If this is not configured, predeploy job will not be present." + "description": "Optional. Configuration for the predeploy job. If this is not configured, the predeploy job will not be present." }, "verify": { "description": "Optional. Whether to verify a deployment via `skaffold verify`.", diff --git a/clouddeploy/v1/clouddeploy-gen.go b/clouddeploy/v1/clouddeploy-gen.go index 2a91530f75d..d0279a55df3 100644 --- a/clouddeploy/v1/clouddeploy-gen.go +++ b/clouddeploy/v1/clouddeploy-gen.go @@ -5214,10 +5214,10 @@ func (s Stage) MarshalJSON() ([]byte, error) { // Standard: Standard represents the standard deployment strategy. type Standard struct { // Postdeploy: Optional. Configuration for the postdeploy job. If this is not - // configured, postdeploy job will not be present. + // configured, the postdeploy job will not be present. Postdeploy *Postdeploy `json:"postdeploy,omitempty"` // Predeploy: Optional. Configuration for the predeploy job. If this is not - // configured, predeploy job will not be present. + // configured, the predeploy job will not be present. Predeploy *Predeploy `json:"predeploy,omitempty"` // Verify: Optional. Whether to verify a deployment via `skaffold verify`. Verify bool `json:"verify,omitempty"` diff --git a/connectors/v2/connectors-api.json b/connectors/v2/connectors-api.json index e1e3ced2f1f..39c7f12f9b7 100644 --- a/connectors/v2/connectors-api.json +++ b/connectors/v2/connectors-api.json @@ -690,7 +690,7 @@ } } }, - "revision": "20250327", + "revision": "20250423", "rootUrl": "https://connectors.googleapis.com/", "schemas": { "AccessCredentials": { @@ -1395,6 +1395,10 @@ "description": "consumer_defined_name is the name of the instance set by the service consumers. Generally this is different from the `name` field which reperesents the system-assigned id of the instance which the service consumers do not recognize. This is a required field for tenants onboarding to Maintenance Window notifications (go/slm-rollout-maintenance-policies#prerequisites).", "type": "string" }, + "consumerProjectNumber": { + "description": "Optional. The consumer_project_number associated with this Apigee instance. This field is added specifically to support Apigee integration with SLM Rollout and UMM. It represents the numerical project ID of the GCP project that consumes this Apigee instance. It is used for SLM rollout notifications and UMM integration, enabling proper mapping to customer projects and log delivery for Apigee instances. This field complements consumer_project_id and may be used for specific Apigee scenarios where the numerical ID is required.", + "type": "string" + }, "createTime": { "description": "Output only. Timestamp when the resource was created.", "format": "google-datetime", diff --git a/connectors/v2/connectors-gen.go b/connectors/v2/connectors-gen.go index 03a7d3222f7..dbdab5d77a2 100644 --- a/connectors/v2/connectors-gen.go +++ b/connectors/v2/connectors-gen.go @@ -920,6 +920,15 @@ type Instance struct { // to Maintenance Window notifications // (go/slm-rollout-maintenance-policies#prerequisites). ConsumerDefinedName string `json:"consumerDefinedName,omitempty"` + // ConsumerProjectNumber: Optional. The consumer_project_number associated with + // this Apigee instance. This field is added specifically to support Apigee + // integration with SLM Rollout and UMM. It represents the numerical project ID + // of the GCP project that consumes this Apigee instance. It is used for SLM + // rollout notifications and UMM integration, enabling proper mapping to + // customer projects and log delivery for Apigee instances. This field + // complements consumer_project_id and may be used for specific Apigee + // scenarios where the numerical ID is required. + ConsumerProjectNumber string `json:"consumerProjectNumber,omitempty"` // CreateTime: Output only. Timestamp when the resource was created. CreateTime string `json:"createTime,omitempty"` // InstanceType: Optional. The instance_type of this instance of format: diff --git a/file/v1/file-api.json b/file/v1/file-api.json index 2d0c9ba39ec..b8d22204864 100644 --- a/file/v1/file-api.json +++ b/file/v1/file-api.json @@ -154,11 +154,6 @@ "location": "query", "type": "string" }, - "includeUnrevealedLocations": { - "description": "If true, the returned list will include locations which are not yet revealed.", - "location": "query", - "type": "boolean" - }, "name": { "description": "The resource that owns the locations collection, if applicable.", "location": "path", @@ -913,7 +908,7 @@ } } }, - "revision": "20250404", + "revision": "20250421", "rootUrl": "https://file.googleapis.com/", "schemas": { "Backup": { @@ -1171,6 +1166,10 @@ "description": "consumer_defined_name is the name of the instance set by the service consumers. Generally this is different from the `name` field which reperesents the system-assigned id of the instance which the service consumers do not recognize. This is a required field for tenants onboarding to Maintenance Window notifications (go/slm-rollout-maintenance-policies#prerequisites).", "type": "string" }, + "consumerProjectNumber": { + "description": "Optional. The consumer_project_number associated with this Apigee instance. This field is added specifically to support Apigee integration with SLM Rollout and UMM. It represents the numerical project ID of the GCP project that consumes this Apigee instance. It is used for SLM rollout notifications and UMM integration, enabling proper mapping to customer projects and log delivery for Apigee instances. This field complements consumer_project_id and may be used for specific Apigee scenarios where the numerical ID is required.", + "type": "string" + }, "createTime": { "description": "Output only. Timestamp when the resource was created.", "format": "google-datetime", diff --git a/file/v1/file-gen.go b/file/v1/file-gen.go index 88147cbb295..9546812e40e 100644 --- a/file/v1/file-gen.go +++ b/file/v1/file-gen.go @@ -528,6 +528,15 @@ type GoogleCloudSaasacceleratorManagementProvidersV1Instance struct { // to Maintenance Window notifications // (go/slm-rollout-maintenance-policies#prerequisites). ConsumerDefinedName string `json:"consumerDefinedName,omitempty"` + // ConsumerProjectNumber: Optional. The consumer_project_number associated with + // this Apigee instance. This field is added specifically to support Apigee + // integration with SLM Rollout and UMM. It represents the numerical project ID + // of the GCP project that consumes this Apigee instance. It is used for SLM + // rollout notifications and UMM integration, enabling proper mapping to + // customer projects and log delivery for Apigee instances. This field + // complements consumer_project_id and may be used for specific Apigee + // scenarios where the numerical ID is required. + ConsumerProjectNumber string `json:"consumerProjectNumber,omitempty"` // CreateTime: Output only. Timestamp when the resource was created. CreateTime string `json:"createTime,omitempty"` // InstanceType: Optional. The instance_type of this instance of format: @@ -2110,14 +2119,6 @@ func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsList return c } -// IncludeUnrevealedLocations sets the optional parameter -// "includeUnrevealedLocations": If true, the returned list will include -// locations which are not yet revealed. -func (c *ProjectsLocationsListCall) IncludeUnrevealedLocations(includeUnrevealedLocations bool) *ProjectsLocationsListCall { - c.urlParams_.Set("includeUnrevealedLocations", fmt.Sprint(includeUnrevealedLocations)) - return c -} - // PageSize sets the optional parameter "pageSize": The maximum number of // results to return. If not set, the service selects a default. func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { diff --git a/file/v1beta1/file-api.json b/file/v1beta1/file-api.json index 3e6d30b1d74..b42dcc0ba91 100644 --- a/file/v1beta1/file-api.json +++ b/file/v1beta1/file-api.json @@ -154,11 +154,6 @@ "location": "query", "type": "string" }, - "includeUnrevealedLocations": { - "description": "If true, the returned list will include locations which are not yet revealed.", - "location": "query", - "type": "boolean" - }, "name": { "description": "The resource that owns the locations collection, if applicable.", "location": "path", @@ -1080,7 +1075,7 @@ } } }, - "revision": "20250414", + "revision": "20250421", "rootUrl": "https://file.googleapis.com/", "schemas": { "Backup": { @@ -1353,6 +1348,10 @@ "description": "consumer_defined_name is the name of the instance set by the service consumers. Generally this is different from the `name` field which reperesents the system-assigned id of the instance which the service consumers do not recognize. This is a required field for tenants onboarding to Maintenance Window notifications (go/slm-rollout-maintenance-policies#prerequisites).", "type": "string" }, + "consumerProjectNumber": { + "description": "Optional. The consumer_project_number associated with this Apigee instance. This field is added specifically to support Apigee integration with SLM Rollout and UMM. It represents the numerical project ID of the GCP project that consumes this Apigee instance. It is used for SLM rollout notifications and UMM integration, enabling proper mapping to customer projects and log delivery for Apigee instances. This field complements consumer_project_id and may be used for specific Apigee scenarios where the numerical ID is required.", + "type": "string" + }, "createTime": { "description": "Output only. Timestamp when the resource was created.", "format": "google-datetime", diff --git a/file/v1beta1/file-gen.go b/file/v1beta1/file-gen.go index 6f56e9eff7c..03e15e04961 100644 --- a/file/v1beta1/file-gen.go +++ b/file/v1beta1/file-gen.go @@ -564,6 +564,15 @@ type GoogleCloudSaasacceleratorManagementProvidersV1Instance struct { // to Maintenance Window notifications // (go/slm-rollout-maintenance-policies#prerequisites). ConsumerDefinedName string `json:"consumerDefinedName,omitempty"` + // ConsumerProjectNumber: Optional. The consumer_project_number associated with + // this Apigee instance. This field is added specifically to support Apigee + // integration with SLM Rollout and UMM. It represents the numerical project ID + // of the GCP project that consumes this Apigee instance. It is used for SLM + // rollout notifications and UMM integration, enabling proper mapping to + // customer projects and log delivery for Apigee instances. This field + // complements consumer_project_id and may be used for specific Apigee + // scenarios where the numerical ID is required. + ConsumerProjectNumber string `json:"consumerProjectNumber,omitempty"` // CreateTime: Output only. Timestamp when the resource was created. CreateTime string `json:"createTime,omitempty"` // InstanceType: Optional. The instance_type of this instance of format: @@ -2370,14 +2379,6 @@ func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsList return c } -// IncludeUnrevealedLocations sets the optional parameter -// "includeUnrevealedLocations": If true, the returned list will include -// locations which are not yet revealed. -func (c *ProjectsLocationsListCall) IncludeUnrevealedLocations(includeUnrevealedLocations bool) *ProjectsLocationsListCall { - c.urlParams_.Set("includeUnrevealedLocations", fmt.Sprint(includeUnrevealedLocations)) - return c -} - // PageSize sets the optional parameter "pageSize": The maximum number of // results to return. If not set, the service selects a default. func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { diff --git a/gkehub/v1/gkehub-api.json b/gkehub/v1/gkehub-api.json index a0ddd6e835d..c2a542fcff5 100644 --- a/gkehub/v1/gkehub-api.json +++ b/gkehub/v1/gkehub-api.json @@ -2117,7 +2117,7 @@ } } }, - "revision": "20250415", + "revision": "20250423", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AppDevExperienceFeatureSpec": { @@ -6245,7 +6245,7 @@ "type": "object" }, "ServiceMeshCondition": { - "description": "Condition being reported. TODO b/395151419: Remove this message once the membership-level conditions field uses the common Condition message.", + "description": "Condition being reported.", "id": "ServiceMeshCondition", "properties": { "code": { @@ -6515,7 +6515,7 @@ "id": "ServiceMeshMembershipState", "properties": { "conditions": { - "description": "Output only. List of conditions reported for this membership. TODO b/395151419: Use the common Condition message.", + "description": "Output only. List of conditions reported for this membership.", "items": { "$ref": "ServiceMeshCondition" }, diff --git a/gkehub/v1/gkehub-gen.go b/gkehub/v1/gkehub-gen.go index fd1ec17c6bb..4af7ce2c5fc 100644 --- a/gkehub/v1/gkehub-gen.go +++ b/gkehub/v1/gkehub-gen.go @@ -5484,9 +5484,7 @@ func (s SecurityPostureConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ServiceMeshCondition: Condition being reported. TODO b/395151419: Remove -// this message once the membership-level conditions field uses the common -// Condition message. +// ServiceMeshCondition: Condition being reported. type ServiceMeshCondition struct { // Code: Unique identifier of the condition which describes the condition // recognizable to the user. @@ -5725,7 +5723,6 @@ func (s ServiceMeshMembershipSpec) MarshalJSON() ([]byte, error) { // as analyzed by the Service Mesh Hub Controller. type ServiceMeshMembershipState struct { // Conditions: Output only. List of conditions reported for this membership. - // TODO b/395151419: Use the common Condition message. Conditions []*ServiceMeshCondition `json:"conditions,omitempty"` // ControlPlaneManagement: Output only. Status of control plane management ControlPlaneManagement *ServiceMeshControlPlaneManagement `json:"controlPlaneManagement,omitempty"` diff --git a/gkehub/v1alpha/gkehub-api.json b/gkehub/v1alpha/gkehub-api.json index 8599b341253..979695853d4 100644 --- a/gkehub/v1alpha/gkehub-api.json +++ b/gkehub/v1alpha/gkehub-api.json @@ -2261,7 +2261,7 @@ } } }, - "revision": "20250415", + "revision": "20250423", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AppDevExperienceFeatureSpec": { @@ -2814,6 +2814,10 @@ "workloadcertificate": { "$ref": "FeatureSpec", "description": "Workload Certificate spec." + }, + "workloadidentity": { + "$ref": "WorkloadIdentityFeatureSpec", + "description": "Workload Identity feature spec." } }, "type": "object" @@ -2850,6 +2854,10 @@ "$ref": "FeatureState", "description": "Output only. The \"running state\" of the Feature in this Fleet.", "readOnly": true + }, + "workloadidentity": { + "$ref": "WorkloadIdentityFeatureState", + "description": "WorkloadIdentity fleet-level state." } }, "type": "object" @@ -5635,6 +5643,10 @@ "state": { "$ref": "FeatureState", "description": "The high-level state of this Feature for a single membership." + }, + "workloadidentity": { + "$ref": "WorkloadIdentityMembershipState", + "description": "Workload Identity membership specific state." } }, "type": "object" @@ -6817,7 +6829,7 @@ "type": "object" }, "ServiceMeshCondition": { - "description": "Condition being reported. TODO b/395151419: Remove this message once the membership-level conditions field uses the common Condition message.", + "description": "Condition being reported.", "id": "ServiceMeshCondition", "properties": { "code": { @@ -7033,7 +7045,7 @@ "type": "object" }, "ServiceMeshFeatureCondition": { - "description": "Condition being reported. TODO b/395151419: This message should be used to replace the membership-level Condition message.", + "description": "Condition being reported.", "id": "ServiceMeshFeatureCondition", "properties": { "code": { @@ -7071,6 +7083,11 @@ "QUOTA_EXCEEDED_HTTP_FILTERS", "QUOTA_EXCEEDED_TCP_FILTERS", "QUOTA_EXCEEDED_NETWORK_ENDPOINT_GROUPS", + "LEGACY_MC_SECRETS", + "WORKLOAD_IDENTITY_REQUIRED", + "NON_STANDARD_BINARY_USAGE", + "UNSUPPORTED_GATEWAY_CLASS", + "MANAGED_CNI_NOT_ENABLED", "MODERNIZATION_SCHEDULED", "MODERNIZATION_IN_PROGRESS", "MODERNIZATION_COMPLETED", @@ -7110,6 +7127,11 @@ "HTTPFilter quota exceeded error code.", "TCPFilter quota exceeded error code.", "NetworkEndpointGroup quota exceeded error code.", + "Legacy istio secrets found for multicluster error code.", + "Workload identity required error code.", + "Non-standard binary usage error code.", + "Unsupported gateway class error code.", + "Managed CNI not enabled error code.", "Modernization is scheduled for a cluster.", "Modernization is in progress for a cluster.", "Modernization is completed for a cluster.", @@ -7248,7 +7270,7 @@ "type": "array" }, "conditions": { - "description": "Output only. List of conditions reported for this membership. TODO b/395151419: Use the common Condition message.", + "description": "Output only. List of conditions reported for this membership.", "items": { "$ref": "ServiceMeshCondition" }, @@ -7458,6 +7480,124 @@ } }, "type": "object" + }, + "WorkloadIdentityFeatureSpec": { + "description": "**WorkloadIdentity**: Global feature specification.", + "id": "WorkloadIdentityFeatureSpec", + "properties": { + "scopeTenancyPool": { + "description": "Pool to be used for Workload Identity. This pool in trust-domain mode is used with Fleet Tenancy, so that sameness can be enforced. ex: projects/example/locations/global/workloadidentitypools/custompool", + "type": "string" + } + }, + "type": "object" + }, + "WorkloadIdentityFeatureState": { + "description": "**WorkloadIdentity**: Global feature state.", + "id": "WorkloadIdentityFeatureState", + "properties": { + "namespaceStateDetails": { + "additionalProperties": { + "$ref": "WorkloadIdentityNamespaceStateDetail" + }, + "description": "The state of the IAM namespaces for the fleet.", + "type": "object" + }, + "namespaceStates": { + "additionalProperties": { + "enum": [ + "NAMESPACE_STATE_UNSPECIFIED", + "NAMESPACE_STATE_OK", + "NAMESPACE_STATE_ERROR" + ], + "enumDescriptions": [ + "Unknown state.", + "The Namespace was created/updated successfully.", + "The Namespace was not created/updated successfully. The error message is in the description field." + ], + "type": "string" + }, + "description": "Deprecated, will erase after code is changed to use the new field.", + "type": "object" + }, + "scopeTenancyWorkloadIdentityPool": { + "description": "The full name of the scope-tenancy pool for the fleet.", + "type": "string" + }, + "workloadIdentityPool": { + "description": "The full name of the svc.id.goog pool for the fleet.", + "type": "string" + }, + "workloadIdentityPoolStateDetails": { + "additionalProperties": { + "$ref": "WorkloadIdentityWorkloadIdentityPoolStateDetail" + }, + "description": "The state of the Workload Identity Pools for the fleet.", + "type": "object" + } + }, + "type": "object" + }, + "WorkloadIdentityMembershipState": { + "description": "**WorkloadIdentity**: The membership-specific state for WorkloadIdentity feature.", + "id": "WorkloadIdentityMembershipState", + "properties": { + "description": { + "description": "Deprecated, will erase after code is changed to use the new field.", + "type": "string" + } + }, + "type": "object" + }, + "WorkloadIdentityNamespaceStateDetail": { + "description": "NamespaceStateDetail represents the state of a IAM namespace.", + "id": "WorkloadIdentityNamespaceStateDetail", + "properties": { + "code": { + "description": "The state of the IAM namespace.", + "enum": [ + "NAMESPACE_STATE_UNSPECIFIED", + "NAMESPACE_STATE_OK", + "NAMESPACE_STATE_ERROR" + ], + "enumDescriptions": [ + "Unknown state.", + "The Namespace was created/updated successfully.", + "The Namespace was not created/updated successfully. The error message is in the description field." + ], + "type": "string" + }, + "description": { + "description": "A human-readable description of the current state or returned error.", + "type": "string" + } + }, + "type": "object" + }, + "WorkloadIdentityWorkloadIdentityPoolStateDetail": { + "description": "WorkloadIdentityPoolStateDetail represents the state of the Workload Identity Pools for the fleet.", + "id": "WorkloadIdentityWorkloadIdentityPoolStateDetail", + "properties": { + "code": { + "description": "The state of the Workload Identity Pool.", + "enum": [ + "WORKLOAD_IDENTITY_POOL_STATE_UNSPECIFIED", + "WORKLOAD_IDENTITY_POOL_STATE_OK", + "WORKLOAD_IDENTITY_POOL_STATE_ERROR" + ], + "enumDescriptions": [ + "Unknown state.", + "The Workload Identity Pool was created/updated successfully.", + "The Workload Identity Pool was not created/updated successfully. The error message is in the description field." + ], + "type": "string" + }, + "description": { + "description": "A human-readable description of the current state or returned error.", + "type": "string" + } + }, + "type": "object" } }, "servicePath": "", diff --git a/gkehub/v1alpha/gkehub-gen.go b/gkehub/v1alpha/gkehub-gen.go index 9116ee14590..14e9e4e1f91 100644 --- a/gkehub/v1alpha/gkehub-gen.go +++ b/gkehub/v1alpha/gkehub-gen.go @@ -1130,6 +1130,8 @@ type CommonFeatureSpec struct { Rbacrolebindingactuation *RBACRoleBindingActuationFeatureSpec `json:"rbacrolebindingactuation,omitempty"` // Workloadcertificate: Workload Certificate spec. Workloadcertificate *FeatureSpec `json:"workloadcertificate,omitempty"` + // Workloadidentity: Workload Identity feature spec. + Workloadidentity *WorkloadIdentityFeatureSpec `json:"workloadidentity,omitempty"` // ForceSendFields is a list of field names (e.g. "Appdevexperience") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -1165,6 +1167,8 @@ type CommonFeatureState struct { Servicemesh *ServiceMeshFeatureState `json:"servicemesh,omitempty"` // State: Output only. The "running state" of the Feature in this Fleet. State *FeatureState `json:"state,omitempty"` + // Workloadidentity: WorkloadIdentity fleet-level state. + Workloadidentity *WorkloadIdentityFeatureState `json:"workloadidentity,omitempty"` // ForceSendFields is a list of field names (e.g. "Appdevexperience") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -4484,6 +4488,8 @@ type MembershipFeatureState struct { Servicemesh *ServiceMeshMembershipState `json:"servicemesh,omitempty"` // State: The high-level state of this Feature for a single membership. State *FeatureState `json:"state,omitempty"` + // Workloadidentity: Workload Identity membership specific state. + Workloadidentity *WorkloadIdentityMembershipState `json:"workloadidentity,omitempty"` // ForceSendFields is a list of field names (e.g. "Appdevexperience") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -6031,9 +6037,7 @@ func (s ServiceMeshAnalysisMessageBase) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ServiceMeshCondition: Condition being reported. TODO b/395151419: Remove -// this message once the membership-level conditions field uses the common -// Condition message. +// ServiceMeshCondition: Condition being reported. type ServiceMeshCondition struct { // Code: Unique identifier of the condition which describes the condition // recognizable to the user. @@ -6218,9 +6222,7 @@ func (s ServiceMeshDataPlaneManagement) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ServiceMeshFeatureCondition: Condition being reported. TODO b/395151419: -// This message should be used to replace the membership-level Condition -// message. +// ServiceMeshFeatureCondition: Condition being reported. type ServiceMeshFeatureCondition struct { // Code: Unique identifier of the condition which describes the condition // recognizable to the user. @@ -6274,6 +6276,12 @@ type ServiceMeshFeatureCondition struct { // "QUOTA_EXCEEDED_TCP_FILTERS" - TCPFilter quota exceeded error code. // "QUOTA_EXCEEDED_NETWORK_ENDPOINT_GROUPS" - NetworkEndpointGroup quota // exceeded error code. + // "LEGACY_MC_SECRETS" - Legacy istio secrets found for multicluster error + // code. + // "WORKLOAD_IDENTITY_REQUIRED" - Workload identity required error code. + // "NON_STANDARD_BINARY_USAGE" - Non-standard binary usage error code. + // "UNSUPPORTED_GATEWAY_CLASS" - Unsupported gateway class error code. + // "MANAGED_CNI_NOT_ENABLED" - Managed CNI not enabled error code. // "MODERNIZATION_SCHEDULED" - Modernization is scheduled for a cluster. // "MODERNIZATION_IN_PROGRESS" - Modernization is in progress for a cluster. // "MODERNIZATION_COMPLETED" - Modernization is completed for a cluster. @@ -6406,7 +6414,6 @@ type ServiceMeshMembershipState struct { // AnalysisMessages: Output only. Results of running Service Mesh analyzers. AnalysisMessages []*ServiceMeshAnalysisMessage `json:"analysisMessages,omitempty"` // Conditions: Output only. List of conditions reported for this membership. - // TODO b/395151419: Use the common Condition message. Conditions []*ServiceMeshCondition `json:"conditions,omitempty"` // ConfigApiVersion: The API version (i.e. Istio CRD version) for configuring // service mesh in this cluster. This version is influenced by the @@ -6750,6 +6757,155 @@ func (s ValidationResult) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// WorkloadIdentityFeatureSpec: **WorkloadIdentity**: Global feature +// specification. +type WorkloadIdentityFeatureSpec struct { + // ScopeTenancyPool: Pool to be used for Workload Identity. This pool in + // trust-domain mode is used with Fleet Tenancy, so that sameness can be + // enforced. ex: + // projects/example/locations/global/workloadidentitypools/custompool + ScopeTenancyPool string `json:"scopeTenancyPool,omitempty"` + // ForceSendFields is a list of field names (e.g. "ScopeTenancyPool") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ScopeTenancyPool") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s WorkloadIdentityFeatureSpec) MarshalJSON() ([]byte, error) { + type NoMethod WorkloadIdentityFeatureSpec + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// WorkloadIdentityFeatureState: **WorkloadIdentity**: Global feature state. +type WorkloadIdentityFeatureState struct { + // NamespaceStateDetails: The state of the IAM namespaces for the fleet. + NamespaceStateDetails map[string]WorkloadIdentityNamespaceStateDetail `json:"namespaceStateDetails,omitempty"` + // NamespaceStates: Deprecated, will erase after code is changed to use the new + // field. + NamespaceStates map[string]string `json:"namespaceStates,omitempty"` + // ScopeTenancyWorkloadIdentityPool: The full name of the scope-tenancy pool + // for the fleet. + ScopeTenancyWorkloadIdentityPool string `json:"scopeTenancyWorkloadIdentityPool,omitempty"` + // WorkloadIdentityPool: The full name of the svc.id.goog pool for the fleet. + WorkloadIdentityPool string `json:"workloadIdentityPool,omitempty"` + // WorkloadIdentityPoolStateDetails: The state of the Workload Identity Pools + // for the fleet. + WorkloadIdentityPoolStateDetails map[string]WorkloadIdentityWorkloadIdentityPoolStateDetail `json:"workloadIdentityPoolStateDetails,omitempty"` + // ForceSendFields is a list of field names (e.g. "NamespaceStateDetails") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "NamespaceStateDetails") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s WorkloadIdentityFeatureState) MarshalJSON() ([]byte, error) { + type NoMethod WorkloadIdentityFeatureState + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// WorkloadIdentityMembershipState: **WorkloadIdentity**: The +// membership-specific state for WorkloadIdentity feature. +type WorkloadIdentityMembershipState struct { + // Description: Deprecated, will erase after code is changed to use the new + // field. + Description string `json:"description,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 WorkloadIdentityMembershipState) MarshalJSON() ([]byte, error) { + type NoMethod WorkloadIdentityMembershipState + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// WorkloadIdentityNamespaceStateDetail: NamespaceStateDetail represents the +// state of a IAM namespace. +type WorkloadIdentityNamespaceStateDetail struct { + // Code: The state of the IAM namespace. + // + // Possible values: + // "NAMESPACE_STATE_UNSPECIFIED" - Unknown state. + // "NAMESPACE_STATE_OK" - The Namespace was created/updated successfully. + // "NAMESPACE_STATE_ERROR" - The Namespace was not created/updated + // successfully. The error message is in the description field. + Code string `json:"code,omitempty"` + // Description: A human-readable description of the current state or returned + // error. + Description string `json:"description,omitempty"` + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s WorkloadIdentityNamespaceStateDetail) MarshalJSON() ([]byte, error) { + type NoMethod WorkloadIdentityNamespaceStateDetail + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// WorkloadIdentityWorkloadIdentityPoolStateDetail: +// WorkloadIdentityPoolStateDetail represents the state of the Workload +// Identity Pools for the fleet. +type WorkloadIdentityWorkloadIdentityPoolStateDetail struct { + // Code: The state of the Workload Identity Pool. + // + // Possible values: + // "WORKLOAD_IDENTITY_POOL_STATE_UNSPECIFIED" - Unknown state. + // "WORKLOAD_IDENTITY_POOL_STATE_OK" - The Workload Identity Pool was + // created/updated successfully. + // "WORKLOAD_IDENTITY_POOL_STATE_ERROR" - The Workload Identity Pool was not + // created/updated successfully. The error message is in the description field. + Code string `json:"code,omitempty"` + // Description: A human-readable description of the current state or returned + // error. + Description string `json:"description,omitempty"` + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s WorkloadIdentityWorkloadIdentityPoolStateDetail) MarshalJSON() ([]byte, error) { + type NoMethod WorkloadIdentityWorkloadIdentityPoolStateDetail + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + type OrganizationsLocationsFleetsListCall struct { s *Service parent string diff --git a/iamcredentials/v1/iamcredentials-api.json b/iamcredentials/v1/iamcredentials-api.json index b2633247179..1949c777bf2 100644 --- a/iamcredentials/v1/iamcredentials-api.json +++ b/iamcredentials/v1/iamcredentials-api.json @@ -15,6 +15,13 @@ "description": "Creates short-lived credentials for impersonating IAM service accounts. Disabling this API also disables the IAM API (iam.googleapis.com). However, enabling this API doesn't enable the IAM API. ", "discoveryVersion": "v1", "documentationLink": "https://cloud.google.com/iam/docs/creating-short-lived-service-account-credentials", + "endpoints": [ + { + "description": "Regional Endpoint", + "endpointUrl": "https://iamcredentials.us-east7.rep.googleapis.com/", + "location": "us-east7" + } + ], "fullyEncodeReservedExpansion": true, "icons": { "x16": "http://www.google.com/images/icons/product/search-16.gif", @@ -105,8 +112,68 @@ }, "protocol": "rest", "resources": { + "locations": { + "resources": { + "workforcePools": { + "methods": { + "getAllowedLocations": { + "description": "Returns the trust boundary info for a given workforce pool.", + "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}/allowedLocations", + "httpMethod": "GET", + "id": "iamcredentials.locations.workforcePools.getAllowedLocations", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Resource name of workforce pool.", + "location": "path", + "pattern": "^locations/[^/]+/workforcePools/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}/allowedLocations", + "response": { + "$ref": "WorkforcePoolAllowedLocations" + } + } + } + } + } + }, "projects": { "resources": { + "locations": { + "resources": { + "workloadIdentityPools": { + "methods": { + "getAllowedLocations": { + "description": "Returns the trust boundary info for a given workload identity pool.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workloadIdentityPools/{workloadIdentityPoolsId}/allowedLocations", + "httpMethod": "GET", + "id": "iamcredentials.projects.locations.workloadIdentityPools.getAllowedLocations", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Resource name of workload identity pool.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/workloadIdentityPools/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}/allowedLocations", + "response": { + "$ref": "WorkloadIdentityPoolAllowedLocations" + } + } + } + } + } + }, "serviceAccounts": { "methods": { "generateAccessToken": { @@ -248,7 +315,7 @@ } } }, - "revision": "20241024", + "revision": "20250417", "rootUrl": "https://iamcredentials.googleapis.com/", "schemas": { "GenerateAccessTokenRequest": { @@ -308,6 +375,10 @@ "includeEmail": { "description": "Include the service account email in the token. If set to `true`, the token will contain `email` and `email_verified` claims.", "type": "boolean" + }, + "organizationNumberIncluded": { + "description": "Include the organization number of the service account in the token. If set to `true`, the token will contain a `google.organization_number` claim. The value of the claim will be `null` if the service account isn't associated with an organization.", + "type": "boolean" } }, "type": "object" @@ -316,7 +387,7 @@ "id": "GenerateIdTokenResponse", "properties": { "token": { - "description": "The OpenId Connect ID token.", + "description": "The OpenId Connect ID token. The token is a JSON Web Token (JWT) that contains a payload with claims. See the [JSON Web Token spec](https://tools.ietf.org/html/rfc7519) for more information. Here is an example of a decoded JWT payload: ``` { \"iss\": \"https://accounts.google.com\", \"iat\": 1496953245, \"exp\": 1496953245, \"aud\": \"https://www.example.com\", \"sub\": \"107517467455664443765\", \"azp\": \"107517467455664443765\", \"email\": \"my-iam-account@my-project.iam.gserviceaccount.com\", \"email_verified\": true, \"google\": { \"organization_number\": 123456 } } ```", "type": "string" } }, @@ -405,6 +476,46 @@ } }, "type": "object" + }, + "WorkforcePoolAllowedLocations": { + "description": "Represents a list of allowed locations for given workforce pool.", + "id": "WorkforcePoolAllowedLocations", + "properties": { + "encodedLocations": { + "description": "Output only. The hex encoded bitmap of the trust boundary locations", + "readOnly": true, + "type": "string" + }, + "locations": { + "description": "Output only. The human readable trust boundary locations. For example, [\"us-central1\", \"europe-west1\"]", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, + "WorkloadIdentityPoolAllowedLocations": { + "description": "Represents a list of allowed locations for given workload identity pool.", + "id": "WorkloadIdentityPoolAllowedLocations", + "properties": { + "encodedLocations": { + "description": "Output only. The hex encoded bitmap of the trust boundary locations", + "readOnly": true, + "type": "string" + }, + "locations": { + "description": "Output only. The human readable trust boundary locations. For example, [\"us-central1\", \"europe-west1\"]", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" } }, "servicePath": "", diff --git a/iamcredentials/v1/iamcredentials-gen.go b/iamcredentials/v1/iamcredentials-gen.go index e6d64ac659f..fb81ad51469 100644 --- a/iamcredentials/v1/iamcredentials-gen.go +++ b/iamcredentials/v1/iamcredentials-gen.go @@ -119,6 +119,7 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err return nil, err } s := &Service{client: client, BasePath: basePath, logger: internaloption.GetLogger(opts)} + s.Locations = NewLocationsService(s) s.Projects = NewProjectsService(s) if endpoint != "" { s.BasePath = endpoint @@ -144,6 +145,8 @@ type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment + Locations *LocationsService + Projects *ProjectsService } @@ -154,8 +157,30 @@ func (s *Service) userAgent() string { return googleapi.UserAgent + " " + s.UserAgent } +func NewLocationsService(s *Service) *LocationsService { + rs := &LocationsService{s: s} + rs.WorkforcePools = NewLocationsWorkforcePoolsService(s) + return rs +} + +type LocationsService struct { + s *Service + + WorkforcePools *LocationsWorkforcePoolsService +} + +func NewLocationsWorkforcePoolsService(s *Service) *LocationsWorkforcePoolsService { + rs := &LocationsWorkforcePoolsService{s: s} + return rs +} + +type LocationsWorkforcePoolsService struct { + s *Service +} + func NewProjectsService(s *Service) *ProjectsService { rs := &ProjectsService{s: s} + rs.Locations = NewProjectsLocationsService(s) rs.ServiceAccounts = NewProjectsServiceAccountsService(s) return rs } @@ -163,9 +188,32 @@ func NewProjectsService(s *Service) *ProjectsService { type ProjectsService struct { s *Service + Locations *ProjectsLocationsService + ServiceAccounts *ProjectsServiceAccountsService } +func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { + rs := &ProjectsLocationsService{s: s} + rs.WorkloadIdentityPools = NewProjectsLocationsWorkloadIdentityPoolsService(s) + return rs +} + +type ProjectsLocationsService struct { + s *Service + + WorkloadIdentityPools *ProjectsLocationsWorkloadIdentityPoolsService +} + +func NewProjectsLocationsWorkloadIdentityPoolsService(s *Service) *ProjectsLocationsWorkloadIdentityPoolsService { + rs := &ProjectsLocationsWorkloadIdentityPoolsService{s: s} + return rs +} + +type ProjectsLocationsWorkloadIdentityPoolsService struct { + s *Service +} + func NewProjectsServiceAccountsService(s *Service) *ProjectsServiceAccountsService { rs := &ProjectsServiceAccountsService{s: s} return rs @@ -264,6 +312,11 @@ type GenerateIdTokenRequest struct { // IncludeEmail: Include the service account email in the token. If set to // `true`, the token will contain `email` and `email_verified` claims. IncludeEmail bool `json:"includeEmail,omitempty"` + // OrganizationNumberIncluded: Include the organization number of the service + // account in the token. If set to `true`, the token will contain a + // `google.organization_number` claim. The value of the claim will be `null` if + // the service account isn't associated with an organization. + OrganizationNumberIncluded bool `json:"organizationNumberIncluded,omitempty"` // ForceSendFields is a list of field names (e.g. "Audience") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -283,7 +336,15 @@ func (s GenerateIdTokenRequest) MarshalJSON() ([]byte, error) { } type GenerateIdTokenResponse struct { - // Token: The OpenId Connect ID token. + // Token: The OpenId Connect ID token. The token is a JSON Web Token (JWT) that + // contains a payload with claims. See the JSON Web Token spec + // (https://tools.ietf.org/html/rfc7519) for more information. Here is an + // example of a decoded JWT payload: ``` { "iss": + // "https://accounts.google.com", "iat": 1496953245, "exp": 1496953245, "aud": + // "https://www.example.com", "sub": "107517467455664443765", "azp": + // "107517467455664443765", "email": + // "my-iam-account@my-project.iam.gserviceaccount.com", "email_verified": true, + // "google": { "organization_number": 123456 } } ``` Token string `json:"token,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. @@ -476,6 +537,288 @@ func (s SignJwtResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// WorkforcePoolAllowedLocations: Represents a list of allowed locations for +// given workforce pool. +type WorkforcePoolAllowedLocations struct { + // EncodedLocations: Output only. The hex encoded bitmap of the trust boundary + // locations + EncodedLocations string `json:"encodedLocations,omitempty"` + // Locations: Output only. The human readable trust boundary locations. For + // example, ["us-central1", "europe-west1"] + Locations []string `json:"locations,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "EncodedLocations") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "EncodedLocations") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s WorkforcePoolAllowedLocations) MarshalJSON() ([]byte, error) { + type NoMethod WorkforcePoolAllowedLocations + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// WorkloadIdentityPoolAllowedLocations: Represents a list of allowed locations +// for given workload identity pool. +type WorkloadIdentityPoolAllowedLocations struct { + // EncodedLocations: Output only. The hex encoded bitmap of the trust boundary + // locations + EncodedLocations string `json:"encodedLocations,omitempty"` + // Locations: Output only. The human readable trust boundary locations. For + // example, ["us-central1", "europe-west1"] + Locations []string `json:"locations,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "EncodedLocations") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "EncodedLocations") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s WorkloadIdentityPoolAllowedLocations) MarshalJSON() ([]byte, error) { + type NoMethod WorkloadIdentityPoolAllowedLocations + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +type LocationsWorkforcePoolsGetAllowedLocationsCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetAllowedLocations: Returns the trust boundary info for a given workforce +// pool. +// +// - name: Resource name of workforce pool. +func (r *LocationsWorkforcePoolsService) GetAllowedLocations(name string) *LocationsWorkforcePoolsGetAllowedLocationsCall { + c := &LocationsWorkforcePoolsGetAllowedLocationsCall{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 *LocationsWorkforcePoolsGetAllowedLocationsCall) Fields(s ...googleapi.Field) *LocationsWorkforcePoolsGetAllowedLocationsCall { + 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 *LocationsWorkforcePoolsGetAllowedLocationsCall) IfNoneMatch(entityTag string) *LocationsWorkforcePoolsGetAllowedLocationsCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *LocationsWorkforcePoolsGetAllowedLocationsCall) Context(ctx context.Context) *LocationsWorkforcePoolsGetAllowedLocationsCall { + 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 *LocationsWorkforcePoolsGetAllowedLocationsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *LocationsWorkforcePoolsGetAllowedLocationsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/allowedLocations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "iamcredentials.locations.workforcePools.getAllowedLocations", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "iamcredentials.locations.workforcePools.getAllowedLocations" call. +// Any non-2xx status code is an error. Response headers are in either +// *WorkforcePoolAllowedLocations.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 *LocationsWorkforcePoolsGetAllowedLocationsCall) Do(opts ...googleapi.CallOption) (*WorkforcePoolAllowedLocations, 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 := &WorkforcePoolAllowedLocations{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "iamcredentials.locations.workforcePools.getAllowedLocations", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsWorkloadIdentityPoolsGetAllowedLocationsCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetAllowedLocations: Returns the trust boundary info for a given workload +// identity pool. +// +// - name: Resource name of workload identity pool. +func (r *ProjectsLocationsWorkloadIdentityPoolsService) GetAllowedLocations(name string) *ProjectsLocationsWorkloadIdentityPoolsGetAllowedLocationsCall { + c := &ProjectsLocationsWorkloadIdentityPoolsGetAllowedLocationsCall{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 *ProjectsLocationsWorkloadIdentityPoolsGetAllowedLocationsCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkloadIdentityPoolsGetAllowedLocationsCall { + 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 *ProjectsLocationsWorkloadIdentityPoolsGetAllowedLocationsCall) IfNoneMatch(entityTag string) *ProjectsLocationsWorkloadIdentityPoolsGetAllowedLocationsCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsWorkloadIdentityPoolsGetAllowedLocationsCall) Context(ctx context.Context) *ProjectsLocationsWorkloadIdentityPoolsGetAllowedLocationsCall { + 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 *ProjectsLocationsWorkloadIdentityPoolsGetAllowedLocationsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsWorkloadIdentityPoolsGetAllowedLocationsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/allowedLocations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "iamcredentials.projects.locations.workloadIdentityPools.getAllowedLocations", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "iamcredentials.projects.locations.workloadIdentityPools.getAllowedLocations" call. +// Any non-2xx status code is an error. Response headers are in either +// *WorkloadIdentityPoolAllowedLocations.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 *ProjectsLocationsWorkloadIdentityPoolsGetAllowedLocationsCall) Do(opts ...googleapi.CallOption) (*WorkloadIdentityPoolAllowedLocations, 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 := &WorkloadIdentityPoolAllowedLocations{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "iamcredentials.projects.locations.workloadIdentityPools.getAllowedLocations", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type ProjectsServiceAccountsGenerateAccessTokenCall struct { s *Service name string diff --git a/networkconnectivity/v1/networkconnectivity-api.json b/networkconnectivity/v1/networkconnectivity-api.json index 58772142a61..6068140247c 100644 --- a/networkconnectivity/v1/networkconnectivity-api.json +++ b/networkconnectivity/v1/networkconnectivity-api.json @@ -143,6 +143,12 @@ "name" ], "parameters": { + "extraLocationTypes": { + "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "location": "query", + "repeated": true, + "type": "string" + }, "filter": { "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", "location": "query", @@ -2919,7 +2925,7 @@ } } }, - "revision": "20250318", + "revision": "20250414", "rootUrl": "https://networkconnectivity.googleapis.com/", "schemas": { "AcceptHubSpokeRequest": { @@ -3892,7 +3898,7 @@ "type": "array" }, "producerVpcSpokes": { - "description": "Output only. The list of Producer VPC spokes that this VPC spoke is a service consumer VPC spoke for. These producer VPCs are connected through VPC peering to this spoke's backing VPC network. Because they are directly connected throuh VPC peering, NCC export filters do not apply between the service consumer VPC spoke and any of its producer VPC spokes. This VPC spoke cannot be deleted as long as any of these producer VPC spokes are connected to the NCC Hub.", + "description": "Output only. The list of Producer VPC spokes that this VPC spoke is a service consumer VPC spoke for. These producer VPCs are connected through VPC peering to this spoke's backing VPC network. Because they are directly connected through VPC peering, NCC export filters do not apply between the service consumer VPC spoke and any of its producer VPC spokes. This VPC spoke cannot be deleted as long as any of these producer VPC spokes are connected to the NCC Hub.", "items": { "type": "string" }, diff --git a/networkconnectivity/v1/networkconnectivity-gen.go b/networkconnectivity/v1/networkconnectivity-gen.go index aef17d3008b..e14f23ebb0e 100644 --- a/networkconnectivity/v1/networkconnectivity-gen.go +++ b/networkconnectivity/v1/networkconnectivity-gen.go @@ -1544,7 +1544,7 @@ type LinkedVpcNetwork struct { // ProducerVpcSpokes: Output only. The list of Producer VPC spokes that this // VPC spoke is a service consumer VPC spoke for. These producer VPCs are // connected through VPC peering to this spoke's backing VPC network. Because - // they are directly connected throuh VPC peering, NCC export filters do not + // they are directly connected through VPC peering, NCC export filters do not // apply between the service consumer VPC spoke and any of its producer VPC // spokes. This VPC spoke cannot be deleted as long as any of these producer // VPC spokes are connected to the NCC Hub. @@ -3877,6 +3877,14 @@ func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall return c } +// ExtraLocationTypes sets the optional parameter "extraLocationTypes": A list +// of extra location types that should be used as conditions for controlling +// the visibility of the locations. +func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall { + c.urlParams_.SetMulti("extraLocationTypes", append([]string{}, extraLocationTypes...)) + return c +} + // Filter sets the optional parameter "filter": A filter to narrow down results // to a preferred subset. The filtering language accepts strings like // "displayName=tokyo", and is documented in more detail in AIP-160 diff --git a/networkconnectivity/v1alpha1/networkconnectivity-api.json b/networkconnectivity/v1alpha1/networkconnectivity-api.json index 11f25536e08..106ed9ba727 100644 --- a/networkconnectivity/v1alpha1/networkconnectivity-api.json +++ b/networkconnectivity/v1alpha1/networkconnectivity-api.json @@ -143,6 +143,12 @@ "name" ], "parameters": { + "extraLocationTypes": { + "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "location": "query", + "repeated": true, + "type": "string" + }, "filter": { "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", "location": "query", @@ -1116,9 +1122,39 @@ } } }, - "revision": "20250318", + "revision": "20250414", "rootUrl": "https://networkconnectivity.googleapis.com/", "schemas": { + "AllocationOptions": { + "description": "Range auto-allocation options, to be optionally used when CIDR block is not explicitly set.", + "id": "AllocationOptions", + "properties": { + "allocationStrategy": { + "description": "Optional. Allocation strategy Not setting this field when the allocation is requested means an implementation defined strategy is used.", + "enum": [ + "ALLOCATION_STRATEGY_UNSPECIFIED", + "RANDOM", + "FIRST_AVAILABLE", + "RANDOM_FIRST_N_AVAILABLE", + "FIRST_SMALLEST_FITTING" + ], + "enumDescriptions": [ + "Unspecified strategy must be used when the range is specified explicitly using ip_cidr_range field. Othherwise unspefified means using the default strategy.", + "Random strategy, the legacy algorithm, used for backwards compatibility. This allocation strategy remains efficient in the case of concurrent allocation requests in the same peered network space and doesn't require providing the level of concurrency in an explicit parameter, but it is prone to fragmenting available address space.", + "Pick the first available address range. This strategy is deterministic and the result is easy to predict.", + "Pick an arbitrary range out of the first N available ones. The N will be set in the first_available_ranges_lookup_size field. This strategy should be used when concurrent allocation requests are made in the same space of peered networks while the fragmentation of the addrress space is reduced.", + "Pick the smallest but fitting available range. This deterministic strategy minimizes fragmentation of the address space." + ], + "type": "string" + }, + "firstAvailableRangesLookupSize": { + "description": "Optional. This field must be set only when allocation_strategy is set to RANDOM_FIRST_N_AVAILABLE. The value should be the maximum expected parallelism of range creation requests issued to the same space of peered netwroks.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "AuditConfig": { "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": "AuditConfig", @@ -1375,6 +1411,10 @@ "description": "The internal range resource for IPAM operations within a VPC network. Used to represent a private address range along with behavioral characteristics of that range (its usage and peering behavior). Networking resources can link to this range if they are created as belonging to it.", "id": "InternalRange", "properties": { + "allocationOptions": { + "$ref": "AllocationOptions", + "description": "Optional. Range auto-allocation options, may be set only when auto-allocation is selected by not setting ip_cidr_range (and setting prefix_length)." + }, "createTime": { "description": "Time when the internal range was created.", "format": "google-datetime", diff --git a/networkconnectivity/v1alpha1/networkconnectivity-gen.go b/networkconnectivity/v1alpha1/networkconnectivity-gen.go index 2d8797b10bd..366994a01b2 100644 --- a/networkconnectivity/v1alpha1/networkconnectivity-gen.go +++ b/networkconnectivity/v1alpha1/networkconnectivity-gen.go @@ -235,6 +235,55 @@ type ProjectsLocationsSpokesService struct { s *Service } +// AllocationOptions: Range auto-allocation options, to be optionally used when +// CIDR block is not explicitly set. +type AllocationOptions struct { + // AllocationStrategy: Optional. Allocation strategy Not setting this field + // when the allocation is requested means an implementation defined strategy is + // used. + // + // Possible values: + // "ALLOCATION_STRATEGY_UNSPECIFIED" - Unspecified strategy must be used when + // the range is specified explicitly using ip_cidr_range field. Othherwise + // unspefified means using the default strategy. + // "RANDOM" - Random strategy, the legacy algorithm, used for backwards + // compatibility. This allocation strategy remains efficient in the case of + // concurrent allocation requests in the same peered network space and doesn't + // require providing the level of concurrency in an explicit parameter, but it + // is prone to fragmenting available address space. + // "FIRST_AVAILABLE" - Pick the first available address range. This strategy + // is deterministic and the result is easy to predict. + // "RANDOM_FIRST_N_AVAILABLE" - Pick an arbitrary range out of the first N + // available ones. The N will be set in the first_available_ranges_lookup_size + // field. This strategy should be used when concurrent allocation requests are + // made in the same space of peered networks while the fragmentation of the + // addrress space is reduced. + // "FIRST_SMALLEST_FITTING" - Pick the smallest but fitting available range. + // This deterministic strategy minimizes fragmentation of the address space. + AllocationStrategy string `json:"allocationStrategy,omitempty"` + // FirstAvailableRangesLookupSize: Optional. This field must be set only when + // allocation_strategy is set to RANDOM_FIRST_N_AVAILABLE. The value should be + // the maximum expected parallelism of range creation requests issued to the + // same space of peered netwroks. + FirstAvailableRangesLookupSize int64 `json:"firstAvailableRangesLookupSize,omitempty"` + // ForceSendFields is a list of field names (e.g. "AllocationStrategy") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AllocationStrategy") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AllocationOptions) MarshalJSON() ([]byte, error) { + type NoMethod AllocationOptions + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // AuditConfig: 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 @@ -643,6 +692,10 @@ func (s Hub) MarshalJSON() ([]byte, error) { // characteristics of that range (its usage and peering behavior). Networking // resources can link to this range if they are created as belonging to it. type InternalRange struct { + // AllocationOptions: Optional. Range auto-allocation options, may be set only + // when auto-allocation is selected by not setting ip_cidr_range (and setting + // prefix_length). + AllocationOptions *AllocationOptions `json:"allocationOptions,omitempty"` // CreateTime: Time when the internal range was created. CreateTime string `json:"createTime,omitempty"` // Description: A description of this resource. @@ -750,15 +803,15 @@ type InternalRange struct { // 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 + // ForceSendFields is a list of field names (e.g. "AllocationOptions") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://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 + // NullFields is a list of field names (e.g. "AllocationOptions") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -1382,6 +1435,14 @@ func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall return c } +// ExtraLocationTypes sets the optional parameter "extraLocationTypes": A list +// of extra location types that should be used as conditions for controlling +// the visibility of the locations. +func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall { + c.urlParams_.SetMulti("extraLocationTypes", append([]string{}, extraLocationTypes...)) + return c +} + // Filter sets the optional parameter "filter": A filter to narrow down results // to a preferred subset. The filtering language accepts strings like // "displayName=tokyo", and is documented in more detail in AIP-160 diff --git a/networksecurity/v1/networksecurity-api.json b/networksecurity/v1/networksecurity-api.json index e460422c54a..a253abebe9a 100644 --- a/networksecurity/v1/networksecurity-api.json +++ b/networksecurity/v1/networksecurity-api.json @@ -2756,18 +2756,18 @@ } } }, - "mirroringDeploymentGroups": { + "interceptDeploymentGroups": { "methods": { "create": { "description": "Creates a deployment group in a given project and location. See https://google.aip.dev/133.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/mirroringDeploymentGroups", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/interceptDeploymentGroups", "httpMethod": "POST", - "id": "networksecurity.projects.locations.mirroringDeploymentGroups.create", + "id": "networksecurity.projects.locations.interceptDeploymentGroups.create", "parameterOrder": [ "parent" ], "parameters": { - "mirroringDeploymentGroupId": { + "interceptDeploymentGroupId": { "description": "Required. The ID to use for the new deployment group, which will become the final component of the deployment group's resource name.", "location": "query", "type": "string" @@ -2785,9 +2785,9 @@ "type": "string" } }, - "path": "v1/{+parent}/mirroringDeploymentGroups", + "path": "v1/{+parent}/interceptDeploymentGroups", "request": { - "$ref": "MirroringDeploymentGroup" + "$ref": "InterceptDeploymentGroup" }, "response": { "$ref": "Operation" @@ -2798,9 +2798,9 @@ }, "delete": { "description": "Deletes a deployment group. See https://google.aip.dev/135.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/mirroringDeploymentGroups/{mirroringDeploymentGroupsId}", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/interceptDeploymentGroups/{interceptDeploymentGroupsId}", "httpMethod": "DELETE", - "id": "networksecurity.projects.locations.mirroringDeploymentGroups.delete", + "id": "networksecurity.projects.locations.interceptDeploymentGroups.delete", "parameterOrder": [ "name" ], @@ -2808,7 +2808,7 @@ "name": { "description": "Required. The deployment group to delete.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/mirroringDeploymentGroups/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/interceptDeploymentGroups/[^/]+$", "required": true, "type": "string" }, @@ -2828,24 +2828,24 @@ }, "get": { "description": "Gets a specific deployment group. See https://google.aip.dev/131.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/mirroringDeploymentGroups/{mirroringDeploymentGroupsId}", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/interceptDeploymentGroups/{interceptDeploymentGroupsId}", "httpMethod": "GET", - "id": "networksecurity.projects.locations.mirroringDeploymentGroups.get", + "id": "networksecurity.projects.locations.interceptDeploymentGroups.get", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Required. The name of the deployment group to retrieve. Format: projects/{project}/locations/{location}/mirroringDeploymentGroups/{mirroring_deployment_group}", + "description": "Required. The name of the deployment group to retrieve. Format: projects/{project}/locations/{location}/interceptDeploymentGroups/{intercept_deployment_group}", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/mirroringDeploymentGroups/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/interceptDeploymentGroups/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+name}", "response": { - "$ref": "MirroringDeploymentGroup" + "$ref": "InterceptDeploymentGroup" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" @@ -2853,9 +2853,9 @@ }, "list": { "description": "Lists deployment groups in a given project and location. See https://google.aip.dev/132.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/mirroringDeploymentGroups", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/interceptDeploymentGroups", "httpMethod": "GET", - "id": "networksecurity.projects.locations.mirroringDeploymentGroups.list", + "id": "networksecurity.projects.locations.interceptDeploymentGroups.list", "parameterOrder": [ "parent" ], @@ -2877,7 +2877,7 @@ "type": "integer" }, "pageToken": { - "description": "Optional. A page token, received from a previous `ListMirroringDeploymentGroups` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListMirroringDeploymentGroups` must match the call that provided the page token. See https://google.aip.dev/158 for more details.", + "description": "Optional. A page token, received from a previous `ListInterceptDeploymentGroups` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListInterceptDeploymentGroups` must match the call that provided the page token. See https://google.aip.dev/158 for more details.", "location": "query", "type": "string" }, @@ -2889,9 +2889,9 @@ "type": "string" } }, - "path": "v1/{+parent}/mirroringDeploymentGroups", + "path": "v1/{+parent}/interceptDeploymentGroups", "response": { - "$ref": "ListMirroringDeploymentGroupsResponse" + "$ref": "ListInterceptDeploymentGroupsResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" @@ -2899,17 +2899,17 @@ }, "patch": { "description": "Updates a deployment group. See https://google.aip.dev/134.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/mirroringDeploymentGroups/{mirroringDeploymentGroupsId}", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/interceptDeploymentGroups/{interceptDeploymentGroupsId}", "httpMethod": "PATCH", - "id": "networksecurity.projects.locations.mirroringDeploymentGroups.patch", + "id": "networksecurity.projects.locations.interceptDeploymentGroups.patch", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Immutable. Identifier. The resource name of this deployment group, for example: `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`. See https://google.aip.dev/122 for more details.", + "description": "Immutable. Identifier. The resource name of this deployment group, for example: `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`. See https://google.aip.dev/122 for more details.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/mirroringDeploymentGroups/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/interceptDeploymentGroups/[^/]+$", "required": true, "type": "string" }, @@ -2919,7 +2919,7 @@ "type": "string" }, "updateMask": { - "description": "Optional. The list of fields to update. Fields are specified relative to the deployment group (e.g. `description`; *not* `mirroring_deployment_group.description`). See https://google.aip.dev/161 for more details.", + "description": "Optional. The list of fields to update. Fields are specified relative to the deployment group (e.g. `description`; *not* `intercept_deployment_group.description`). See https://google.aip.dev/161 for more details.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -2927,7 +2927,7 @@ }, "path": "v1/{+name}", "request": { - "$ref": "MirroringDeploymentGroup" + "$ref": "InterceptDeploymentGroup" }, "response": { "$ref": "Operation" @@ -2938,18 +2938,18 @@ } } }, - "mirroringDeployments": { + "interceptDeployments": { "methods": { "create": { "description": "Creates a deployment in a given project and location. See https://google.aip.dev/133.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/mirroringDeployments", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/interceptDeployments", "httpMethod": "POST", - "id": "networksecurity.projects.locations.mirroringDeployments.create", + "id": "networksecurity.projects.locations.interceptDeployments.create", "parameterOrder": [ "parent" ], "parameters": { - "mirroringDeploymentId": { + "interceptDeploymentId": { "description": "Required. The ID to use for the new deployment, which will become the final component of the deployment's resource name.", "location": "query", "type": "string" @@ -2967,9 +2967,9 @@ "type": "string" } }, - "path": "v1/{+parent}/mirroringDeployments", + "path": "v1/{+parent}/interceptDeployments", "request": { - "$ref": "MirroringDeployment" + "$ref": "InterceptDeployment" }, "response": { "$ref": "Operation" @@ -2980,9 +2980,9 @@ }, "delete": { "description": "Deletes a deployment. See https://google.aip.dev/135.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/mirroringDeployments/{mirroringDeploymentsId}", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/interceptDeployments/{interceptDeploymentsId}", "httpMethod": "DELETE", - "id": "networksecurity.projects.locations.mirroringDeployments.delete", + "id": "networksecurity.projects.locations.interceptDeployments.delete", "parameterOrder": [ "name" ], @@ -2990,7 +2990,7 @@ "name": { "description": "Required. Name of the resource", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/mirroringDeployments/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/interceptDeployments/[^/]+$", "required": true, "type": "string" }, @@ -3010,24 +3010,24 @@ }, "get": { "description": "Gets a specific deployment. See https://google.aip.dev/131.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/mirroringDeployments/{mirroringDeploymentsId}", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/interceptDeployments/{interceptDeploymentsId}", "httpMethod": "GET", - "id": "networksecurity.projects.locations.mirroringDeployments.get", + "id": "networksecurity.projects.locations.interceptDeployments.get", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Required. The name of the deployment to retrieve. Format: projects/{project}/locations/{location}/mirroringDeployments/{mirroring_deployment}", + "description": "Required. The name of the deployment to retrieve. Format: projects/{project}/locations/{location}/interceptDeployments/{intercept_deployment}", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/mirroringDeployments/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/interceptDeployments/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+name}", "response": { - "$ref": "MirroringDeployment" + "$ref": "InterceptDeployment" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" @@ -3035,9 +3035,9 @@ }, "list": { "description": "Lists deployments in a given project and location. See https://google.aip.dev/132.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/mirroringDeployments", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/interceptDeployments", "httpMethod": "GET", - "id": "networksecurity.projects.locations.mirroringDeployments.list", + "id": "networksecurity.projects.locations.interceptDeployments.list", "parameterOrder": [ "parent" ], @@ -3059,7 +3059,7 @@ "type": "integer" }, "pageToken": { - "description": "Optional. A page token, received from a previous `ListMirroringDeployments` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListMirroringDeployments` must match the call that provided the page token. See https://google.aip.dev/158 for more details.", + "description": "Optional. A page token, received from a previous `ListInterceptDeployments` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListInterceptDeployments` must match the call that provided the page token. See https://google.aip.dev/158 for more details.", "location": "query", "type": "string" }, @@ -3071,9 +3071,9 @@ "type": "string" } }, - "path": "v1/{+parent}/mirroringDeployments", + "path": "v1/{+parent}/interceptDeployments", "response": { - "$ref": "ListMirroringDeploymentsResponse" + "$ref": "ListInterceptDeploymentsResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" @@ -3081,17 +3081,17 @@ }, "patch": { "description": "Updates a deployment. See https://google.aip.dev/134.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/mirroringDeployments/{mirroringDeploymentsId}", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/interceptDeployments/{interceptDeploymentsId}", "httpMethod": "PATCH", - "id": "networksecurity.projects.locations.mirroringDeployments.patch", + "id": "networksecurity.projects.locations.interceptDeployments.patch", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Immutable. Identifier. The resource name of this deployment, for example: `projects/123456789/locations/us-central1-a/mirroringDeployments/my-dep`. See https://google.aip.dev/122 for more details.", + "description": "Immutable. Identifier. The resource name of this deployment, for example: `projects/123456789/locations/us-central1-a/interceptDeployments/my-dep`. See https://google.aip.dev/122 for more details.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/mirroringDeployments/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/interceptDeployments/[^/]+$", "required": true, "type": "string" }, @@ -3101,7 +3101,7 @@ "type": "string" }, "updateMask": { - "description": "Optional. The list of fields to update. Fields are specified relative to the deployment (e.g. `description`; *not* `mirroring_deployment.description`). See https://google.aip.dev/161 for more details.", + "description": "Optional. The list of fields to update. Fields are specified relative to the deployment (e.g. `description`; *not* `intercept_deployment.description`). See https://google.aip.dev/161 for more details.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -3109,7 +3109,7 @@ }, "path": "v1/{+name}", "request": { - "$ref": "MirroringDeployment" + "$ref": "InterceptDeployment" }, "response": { "$ref": "Operation" @@ -3120,18 +3120,18 @@ } } }, - "mirroringEndpointGroupAssociations": { + "interceptEndpointGroupAssociations": { "methods": { "create": { "description": "Creates an association in a given project and location. See https://google.aip.dev/133.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/mirroringEndpointGroupAssociations", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/interceptEndpointGroupAssociations", "httpMethod": "POST", - "id": "networksecurity.projects.locations.mirroringEndpointGroupAssociations.create", + "id": "networksecurity.projects.locations.interceptEndpointGroupAssociations.create", "parameterOrder": [ "parent" ], "parameters": { - "mirroringEndpointGroupAssociationId": { + "interceptEndpointGroupAssociationId": { "description": "Optional. The ID to use for the new association, which will become the final component of the endpoint group's resource name. If not provided, the server will generate a unique ID.", "location": "query", "type": "string" @@ -3149,9 +3149,9 @@ "type": "string" } }, - "path": "v1/{+parent}/mirroringEndpointGroupAssociations", + "path": "v1/{+parent}/interceptEndpointGroupAssociations", "request": { - "$ref": "MirroringEndpointGroupAssociation" + "$ref": "InterceptEndpointGroupAssociation" }, "response": { "$ref": "Operation" @@ -3162,9 +3162,9 @@ }, "delete": { "description": "Deletes an association. See https://google.aip.dev/135.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/mirroringEndpointGroupAssociations/{mirroringEndpointGroupAssociationsId}", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/interceptEndpointGroupAssociations/{interceptEndpointGroupAssociationsId}", "httpMethod": "DELETE", - "id": "networksecurity.projects.locations.mirroringEndpointGroupAssociations.delete", + "id": "networksecurity.projects.locations.interceptEndpointGroupAssociations.delete", "parameterOrder": [ "name" ], @@ -3172,7 +3172,7 @@ "name": { "description": "Required. The association to delete.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/mirroringEndpointGroupAssociations/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/interceptEndpointGroupAssociations/[^/]+$", "required": true, "type": "string" }, @@ -3192,24 +3192,24 @@ }, "get": { "description": "Gets a specific association. See https://google.aip.dev/131.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/mirroringEndpointGroupAssociations/{mirroringEndpointGroupAssociationsId}", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/interceptEndpointGroupAssociations/{interceptEndpointGroupAssociationsId}", "httpMethod": "GET", - "id": "networksecurity.projects.locations.mirroringEndpointGroupAssociations.get", + "id": "networksecurity.projects.locations.interceptEndpointGroupAssociations.get", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Required. The name of the association to retrieve. Format: projects/{project}/locations/{location}/mirroringEndpointGroupAssociations/{mirroring_endpoint_group_association}", + "description": "Required. The name of the association to retrieve. Format: projects/{project}/locations/{location}/interceptEndpointGroupAssociations/{intercept_endpoint_group_association}", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/mirroringEndpointGroupAssociations/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/interceptEndpointGroupAssociations/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+name}", "response": { - "$ref": "MirroringEndpointGroupAssociation" + "$ref": "InterceptEndpointGroupAssociation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" @@ -3217,9 +3217,9 @@ }, "list": { "description": "Lists associations in a given project and location. See https://google.aip.dev/132.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/mirroringEndpointGroupAssociations", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/interceptEndpointGroupAssociations", "httpMethod": "GET", - "id": "networksecurity.projects.locations.mirroringEndpointGroupAssociations.list", + "id": "networksecurity.projects.locations.interceptEndpointGroupAssociations.list", "parameterOrder": [ "parent" ], @@ -3241,7 +3241,7 @@ "type": "integer" }, "pageToken": { - "description": "Optional. A page token, received from a previous `ListMirroringEndpointGroups` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListMirroringEndpointGroups` must match the call that provided the page token. See https://google.aip.dev/158 for more details.", + "description": "Optional. A page token, received from a previous `ListInterceptEndpointGroups` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListInterceptEndpointGroups` must match the call that provided the page token. See https://google.aip.dev/158 for more details.", "location": "query", "type": "string" }, @@ -3253,9 +3253,9 @@ "type": "string" } }, - "path": "v1/{+parent}/mirroringEndpointGroupAssociations", + "path": "v1/{+parent}/interceptEndpointGroupAssociations", "response": { - "$ref": "ListMirroringEndpointGroupAssociationsResponse" + "$ref": "ListInterceptEndpointGroupAssociationsResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" @@ -3263,17 +3263,17 @@ }, "patch": { "description": "Updates an association. See https://google.aip.dev/134.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/mirroringEndpointGroupAssociations/{mirroringEndpointGroupAssociationsId}", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/interceptEndpointGroupAssociations/{interceptEndpointGroupAssociationsId}", "httpMethod": "PATCH", - "id": "networksecurity.projects.locations.mirroringEndpointGroupAssociations.patch", + "id": "networksecurity.projects.locations.interceptEndpointGroupAssociations.patch", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Immutable. Identifier. The resource name of this endpoint group association, for example: `projects/123456789/locations/global/mirroringEndpointGroupAssociations/my-eg-association`. See https://google.aip.dev/122 for more details.", + "description": "Immutable. Identifier. The resource name of this endpoint group association, for example: `projects/123456789/locations/global/interceptEndpointGroupAssociations/my-eg-association`. See https://google.aip.dev/122 for more details.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/mirroringEndpointGroupAssociations/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/interceptEndpointGroupAssociations/[^/]+$", "required": true, "type": "string" }, @@ -3283,7 +3283,7 @@ "type": "string" }, "updateMask": { - "description": "Optional. The list of fields to update. Fields are specified relative to the association (e.g. `description`; *not* `mirroring_endpoint_group_association.description`). See https://google.aip.dev/161 for more details.", + "description": "Optional. The list of fields to update. Fields are specified relative to the association (e.g. `description`; *not* `intercept_endpoint_group_association.description`). See https://google.aip.dev/161 for more details.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -3291,7 +3291,7 @@ }, "path": "v1/{+name}", "request": { - "$ref": "MirroringEndpointGroupAssociation" + "$ref": "InterceptEndpointGroupAssociation" }, "response": { "$ref": "Operation" @@ -3302,18 +3302,18 @@ } } }, - "mirroringEndpointGroups": { + "interceptEndpointGroups": { "methods": { "create": { "description": "Creates an endpoint group in a given project and location. See https://google.aip.dev/133.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/mirroringEndpointGroups", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/interceptEndpointGroups", "httpMethod": "POST", - "id": "networksecurity.projects.locations.mirroringEndpointGroups.create", + "id": "networksecurity.projects.locations.interceptEndpointGroups.create", "parameterOrder": [ "parent" ], "parameters": { - "mirroringEndpointGroupId": { + "interceptEndpointGroupId": { "description": "Required. The ID to use for the endpoint group, which will become the final component of the endpoint group's resource name.", "location": "query", "type": "string" @@ -3331,9 +3331,9 @@ "type": "string" } }, - "path": "v1/{+parent}/mirroringEndpointGroups", + "path": "v1/{+parent}/interceptEndpointGroups", "request": { - "$ref": "MirroringEndpointGroup" + "$ref": "InterceptEndpointGroup" }, "response": { "$ref": "Operation" @@ -3344,9 +3344,9 @@ }, "delete": { "description": "Deletes an endpoint group. See https://google.aip.dev/135.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/mirroringEndpointGroups/{mirroringEndpointGroupsId}", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/interceptEndpointGroups/{interceptEndpointGroupsId}", "httpMethod": "DELETE", - "id": "networksecurity.projects.locations.mirroringEndpointGroups.delete", + "id": "networksecurity.projects.locations.interceptEndpointGroups.delete", "parameterOrder": [ "name" ], @@ -3354,7 +3354,7 @@ "name": { "description": "Required. The endpoint group to delete.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/mirroringEndpointGroups/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/interceptEndpointGroups/[^/]+$", "required": true, "type": "string" }, @@ -3374,24 +3374,24 @@ }, "get": { "description": "Gets a specific endpoint group. See https://google.aip.dev/131.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/mirroringEndpointGroups/{mirroringEndpointGroupsId}", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/interceptEndpointGroups/{interceptEndpointGroupsId}", "httpMethod": "GET", - "id": "networksecurity.projects.locations.mirroringEndpointGroups.get", + "id": "networksecurity.projects.locations.interceptEndpointGroups.get", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Required. The name of the endpoint group to retrieve. Format: projects/{project}/locations/{location}/mirroringEndpointGroups/{mirroring_endpoint_group}", + "description": "Required. The name of the endpoint group to retrieve. Format: projects/{project}/locations/{location}/interceptEndpointGroups/{intercept_endpoint_group}", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/mirroringEndpointGroups/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/interceptEndpointGroups/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+name}", "response": { - "$ref": "MirroringEndpointGroup" + "$ref": "InterceptEndpointGroup" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" @@ -3399,9 +3399,9 @@ }, "list": { "description": "Lists endpoint groups in a given project and location. See https://google.aip.dev/132.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/mirroringEndpointGroups", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/interceptEndpointGroups", "httpMethod": "GET", - "id": "networksecurity.projects.locations.mirroringEndpointGroups.list", + "id": "networksecurity.projects.locations.interceptEndpointGroups.list", "parameterOrder": [ "parent" ], @@ -3423,7 +3423,7 @@ "type": "integer" }, "pageToken": { - "description": "Optional. A page token, received from a previous `ListMirroringEndpointGroups` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListMirroringEndpointGroups` must match the call that provided the page token. See https://google.aip.dev/158 for more details.", + "description": "Optional. A page token, received from a previous `ListInterceptEndpointGroups` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListInterceptEndpointGroups` must match the call that provided the page token. See https://google.aip.dev/158 for more details.", "location": "query", "type": "string" }, @@ -3435,9 +3435,9 @@ "type": "string" } }, - "path": "v1/{+parent}/mirroringEndpointGroups", + "path": "v1/{+parent}/interceptEndpointGroups", "response": { - "$ref": "ListMirroringEndpointGroupsResponse" + "$ref": "ListInterceptEndpointGroupsResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" @@ -3445,17 +3445,17 @@ }, "patch": { "description": "Updates an endpoint group. See https://google.aip.dev/134.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/mirroringEndpointGroups/{mirroringEndpointGroupsId}", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/interceptEndpointGroups/{interceptEndpointGroupsId}", "httpMethod": "PATCH", - "id": "networksecurity.projects.locations.mirroringEndpointGroups.patch", + "id": "networksecurity.projects.locations.interceptEndpointGroups.patch", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Immutable. Identifier. The resource name of this endpoint group, for example: `projects/123456789/locations/global/mirroringEndpointGroups/my-eg`. See https://google.aip.dev/122 for more details.", + "description": "Immutable. Identifier. The resource name of this endpoint group, for example: `projects/123456789/locations/global/interceptEndpointGroups/my-eg`. See https://google.aip.dev/122 for more details.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/mirroringEndpointGroups/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/interceptEndpointGroups/[^/]+$", "required": true, "type": "string" }, @@ -3465,7 +3465,7 @@ "type": "string" }, "updateMask": { - "description": "Optional. The list of fields to update. Fields are specified relative to the endpoint group (e.g. `description`; *not* `mirroring_endpoint_group.description`). See https://google.aip.dev/161 for more details.", + "description": "Optional. The list of fields to update. Fields are specified relative to the endpoint group (e.g. `description`; *not* `intercept_endpoint_group.description`). See https://google.aip.dev/161 for more details.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -3473,7 +3473,7 @@ }, "path": "v1/{+name}", "request": { - "$ref": "MirroringEndpointGroup" + "$ref": "InterceptEndpointGroup" }, "response": { "$ref": "Operation" @@ -3484,304 +3484,352 @@ } } }, - "operations": { + "mirroringDeploymentGroups": { "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}/operations/{operationsId}:cancel", + "create": { + "description": "Creates a deployment group in a given project and location. See https://google.aip.dev/133.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/mirroringDeploymentGroups", "httpMethod": "POST", - "id": "networksecurity.projects.locations.operations.cancel", + "id": "networksecurity.projects.locations.mirroringDeploymentGroups.create", "parameterOrder": [ - "name" + "parent" ], "parameters": { - "name": { - "description": "The name of the operation resource to be cancelled.", + "mirroringDeploymentGroupId": { + "description": "Required. The ID to use for the new deployment group, which will become the final component of the deployment group's resource name.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource where this deployment group will be created. Format: projects/{project}/locations/{location}", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" + }, + "requestId": { + "description": "Optional. A unique identifier for this request. Must be a UUID4. This request is only idempotent if a `request_id` is provided. See https://google.aip.dev/155 for more details.", + "location": "query", + "type": "string" } }, - "path": "v1/{+name}:cancel", + "path": "v1/{+parent}/mirroringDeploymentGroups", "request": { - "$ref": "CancelOperationRequest" + "$ref": "MirroringDeploymentGroup" }, "response": { - "$ref": "Empty" + "$ref": "Operation" }, "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}/operations/{operationsId}", + "description": "Deletes a deployment group. See https://google.aip.dev/135.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/mirroringDeploymentGroups/{mirroringDeploymentGroupsId}", "httpMethod": "DELETE", - "id": "networksecurity.projects.locations.operations.delete", + "id": "networksecurity.projects.locations.mirroringDeploymentGroups.delete", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "The name of the operation resource to be deleted.", + "description": "Required. The deployment group to delete.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/mirroringDeploymentGroups/[^/]+$", "required": true, "type": "string" + }, + "requestId": { + "description": "Optional. A unique identifier for this request. Must be a UUID4. This request is only idempotent if a `request_id` is provided. See https://google.aip.dev/155 for more details.", + "location": "query", + "type": "string" } }, "path": "v1/{+name}", "response": { - "$ref": "Empty" + "$ref": "Operation" }, "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}/operations/{operationsId}", + "description": "Gets a specific deployment group. See https://google.aip.dev/131.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/mirroringDeploymentGroups/{mirroringDeploymentGroupsId}", "httpMethod": "GET", - "id": "networksecurity.projects.locations.operations.get", + "id": "networksecurity.projects.locations.mirroringDeploymentGroups.get", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "The name of the operation resource.", + "description": "Required. The name of the deployment group to retrieve. Format: projects/{project}/locations/{location}/mirroringDeploymentGroups/{mirroring_deployment_group}", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/mirroringDeploymentGroups/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+name}", "response": { - "$ref": "Operation" + "$ref": "MirroringDeploymentGroup" }, "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}/operations", + "description": "Lists deployment groups in a given project and location. See https://google.aip.dev/132.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/mirroringDeploymentGroups", "httpMethod": "GET", - "id": "networksecurity.projects.locations.operations.list", + "id": "networksecurity.projects.locations.mirroringDeploymentGroups.list", "parameterOrder": [ - "name" + "parent" ], "parameters": { "filter": { - "description": "The standard list filter.", + "description": "Optional. Filter expression. See https://google.aip.dev/160#filtering for more details.", "location": "query", "type": "string" }, - "name": { - "description": "The name of the operation's parent resource.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, + "orderBy": { + "description": "Optional. Sort expression. See https://google.aip.dev/132#ordering for more details.", + "location": "query", "type": "string" }, "pageSize": { - "description": "The standard list page size.", + "description": "Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. See https://google.aip.dev/158 for more details.", "format": "int32", "location": "query", "type": "integer" }, "pageToken": { - "description": "The standard list page token.", + "description": "Optional. A page token, received from a previous `ListMirroringDeploymentGroups` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListMirroringDeploymentGroups` must match the call that provided the page token. See https://google.aip.dev/158 for more details.", "location": "query", "type": "string" - } - }, - "path": "v1/{+name}/operations", - "response": { - "$ref": "ListOperationsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - }, - "serverTlsPolicies": { - "methods": { - "create": { - "description": "Creates a new ServerTlsPolicy in a given project and location.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/serverTlsPolicies", - "httpMethod": "POST", - "id": "networksecurity.projects.locations.serverTlsPolicies.create", - "parameterOrder": [ - "parent" - ], - "parameters": { + }, "parent": { - "description": "Required. The parent resource of the ServerTlsPolicy. Must be in the format `projects/*/locations/{location}`.", + "description": "Required. The parent, which owns this collection of deployment groups. Example: `projects/123456789/locations/global`. See https://google.aip.dev/132 for more details.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" - }, - "serverTlsPolicyId": { - "description": "Required. Short name of the ServerTlsPolicy resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. \"server_mtls_policy\".", - "location": "query", - "type": "string" } }, - "path": "v1/{+parent}/serverTlsPolicies", - "request": { - "$ref": "ServerTlsPolicy" - }, + "path": "v1/{+parent}/mirroringDeploymentGroups", "response": { - "$ref": "Operation" + "$ref": "ListMirroringDeploymentGroupsResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "delete": { - "description": "Deletes a single ServerTlsPolicy.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/serverTlsPolicies/{serverTlsPoliciesId}", - "httpMethod": "DELETE", - "id": "networksecurity.projects.locations.serverTlsPolicies.delete", + "patch": { + "description": "Updates a deployment group. See https://google.aip.dev/134.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/mirroringDeploymentGroups/{mirroringDeploymentGroupsId}", + "httpMethod": "PATCH", + "id": "networksecurity.projects.locations.mirroringDeploymentGroups.patch", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Required. A name of the ServerTlsPolicy to delete. Must be in the format `projects/*/locations/{location}/serverTlsPolicies/*`.", + "description": "Immutable. Identifier. The resource name of this deployment group, for example: `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`. See https://google.aip.dev/122 for more details.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/serverTlsPolicies/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/mirroringDeploymentGroups/[^/]+$", "required": true, "type": "string" + }, + "requestId": { + "description": "Optional. A unique identifier for this request. Must be a UUID4. This request is only idempotent if a `request_id` is provided. See https://google.aip.dev/155 for more details.", + "location": "query", + "type": "string" + }, + "updateMask": { + "description": "Optional. The list of fields to update. Fields are specified relative to the deployment group (e.g. `description`; *not* `mirroring_deployment_group.description`). See https://google.aip.dev/161 for more details.", + "format": "google-fieldmask", + "location": "query", + "type": "string" } }, "path": "v1/{+name}", + "request": { + "$ref": "MirroringDeploymentGroup" + }, "response": { "$ref": "Operation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] - }, - "get": { - "description": "Gets details of a single ServerTlsPolicy.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/serverTlsPolicies/{serverTlsPoliciesId}", - "httpMethod": "GET", - "id": "networksecurity.projects.locations.serverTlsPolicies.get", + } + } + }, + "mirroringDeployments": { + "methods": { + "create": { + "description": "Creates a deployment in a given project and location. See https://google.aip.dev/133.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/mirroringDeployments", + "httpMethod": "POST", + "id": "networksecurity.projects.locations.mirroringDeployments.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "mirroringDeploymentId": { + "description": "Required. The ID to use for the new deployment, which will become the final component of the deployment's resource name.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource where this deployment will be created. Format: projects/{project}/locations/{location}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. A unique identifier for this request. Must be a UUID4. This request is only idempotent if a `request_id` is provided. See https://google.aip.dev/155 for more details.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/mirroringDeployments", + "request": { + "$ref": "MirroringDeployment" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a deployment. See https://google.aip.dev/135.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/mirroringDeployments/{mirroringDeploymentsId}", + "httpMethod": "DELETE", + "id": "networksecurity.projects.locations.mirroringDeployments.delete", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Required. A name of the ServerTlsPolicy to get. Must be in the format `projects/*/locations/{location}/serverTlsPolicies/*`.", + "description": "Required. Name of the resource", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/serverTlsPolicies/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/mirroringDeployments/[^/]+$", "required": true, "type": "string" + }, + "requestId": { + "description": "Optional. A unique identifier for this request. Must be a UUID4. This request is only idempotent if a `request_id` is provided. See https://google.aip.dev/155 for more details.", + "location": "query", + "type": "string" } }, "path": "v1/{+name}", "response": { - "$ref": "ServerTlsPolicy" + "$ref": "Operation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "getIamPolicy": { - "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/serverTlsPolicies/{serverTlsPoliciesId}:getIamPolicy", + "get": { + "description": "Gets a specific deployment. See https://google.aip.dev/131.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/mirroringDeployments/{mirroringDeploymentsId}", "httpMethod": "GET", - "id": "networksecurity.projects.locations.serverTlsPolicies.getIamPolicy", + "id": "networksecurity.projects.locations.mirroringDeployments.get", "parameterOrder": [ - "resource" + "name" ], "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.", + "name": { + "description": "Required. The name of the deployment to retrieve. Format: projects/{project}/locations/{location}/mirroringDeployments/{mirroring_deployment}", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/serverTlsPolicies/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/mirroringDeployments/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+resource}:getIamPolicy", + "path": "v1/{+name}", "response": { - "$ref": "GoogleIamV1Policy" + "$ref": "MirroringDeployment" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "list": { - "description": "Lists ServerTlsPolicies in a given project and location.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/serverTlsPolicies", + "description": "Lists deployments in a given project and location. See https://google.aip.dev/132.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/mirroringDeployments", "httpMethod": "GET", - "id": "networksecurity.projects.locations.serverTlsPolicies.list", + "id": "networksecurity.projects.locations.mirroringDeployments.list", "parameterOrder": [ "parent" ], "parameters": { + "filter": { + "description": "Optional. Filter expression. See https://google.aip.dev/160#filtering for more details.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. Sort expression. See https://google.aip.dev/132#ordering for more details.", + "location": "query", + "type": "string" + }, "pageSize": { - "description": "Maximum number of ServerTlsPolicies to return per call.", + "description": "Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. See https://google.aip.dev/158 for more details.", "format": "int32", "location": "query", "type": "integer" }, "pageToken": { - "description": "The value returned by the last `ListServerTlsPoliciesResponse` Indicates that this is a continuation of a prior `ListServerTlsPolicies` call, and that the system should return the next page of data.", + "description": "Optional. A page token, received from a previous `ListMirroringDeployments` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListMirroringDeployments` must match the call that provided the page token. See https://google.aip.dev/158 for more details.", "location": "query", "type": "string" }, "parent": { - "description": "Required. The project and location from which the ServerTlsPolicies should be listed, specified in the format `projects/*/locations/{location}`.", + "description": "Required. The parent, which owns this collection of deployments. Example: `projects/123456789/locations/us-central1-a`. See https://google.aip.dev/132 for more details.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" - }, - "returnPartialSuccess": { - "description": "Optional. Setting this field to `true` will opt the request into returning the resources that are reachable, and into including the names of those that were unreachable in the [ListServerTlsPoliciesResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`.", - "location": "query", - "type": "boolean" } }, - "path": "v1/{+parent}/serverTlsPolicies", + "path": "v1/{+parent}/mirroringDeployments", "response": { - "$ref": "ListServerTlsPoliciesResponse" + "$ref": "ListMirroringDeploymentsResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "patch": { - "description": "Updates the parameters of a single ServerTlsPolicy.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/serverTlsPolicies/{serverTlsPoliciesId}", + "description": "Updates a deployment. See https://google.aip.dev/134.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/mirroringDeployments/{mirroringDeploymentsId}", "httpMethod": "PATCH", - "id": "networksecurity.projects.locations.serverTlsPolicies.patch", + "id": "networksecurity.projects.locations.mirroringDeployments.patch", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Required. Name of the ServerTlsPolicy resource. It matches the pattern `projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}`", + "description": "Immutable. Identifier. The resource name of this deployment, for example: `projects/123456789/locations/us-central1-a/mirroringDeployments/my-dep`. See https://google.aip.dev/122 for more details.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/serverTlsPolicies/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/mirroringDeployments/[^/]+$", "required": true, "type": "string" }, + "requestId": { + "description": "Optional. A unique identifier for this request. Must be a UUID4. This request is only idempotent if a `request_id` is provided. See https://google.aip.dev/155 for more details.", + "location": "query", + "type": "string" + }, "updateMask": { - "description": "Optional. Field mask is used to specify the fields to be overwritten in the ServerTlsPolicy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.", + "description": "Optional. The list of fields to update. Fields are specified relative to the deployment (e.g. `description`; *not* `mirroring_deployment.description`). See https://google.aip.dev/161 for more details.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -3789,7 +3837,7 @@ }, "path": "v1/{+name}", "request": { - "$ref": "ServerTlsPolicy" + "$ref": "MirroringDeployment" }, "response": { "$ref": "Operation" @@ -3797,92 +3845,41 @@ "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}/serverTlsPolicies/{serverTlsPoliciesId}:setIamPolicy", - "httpMethod": "POST", - "id": "networksecurity.projects.locations.serverTlsPolicies.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/[^/]+/serverTlsPolicies/[^/]+$", - "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}/serverTlsPolicies/{serverTlsPoliciesId}:testIamPermissions", - "httpMethod": "POST", - "id": "networksecurity.projects.locations.serverTlsPolicies.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/[^/]+/serverTlsPolicies/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+resource}:testIamPermissions", - "request": { - "$ref": "GoogleIamV1TestIamPermissionsRequest" - }, - "response": { - "$ref": "GoogleIamV1TestIamPermissionsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] } } }, - "tlsInspectionPolicies": { + "mirroringEndpointGroupAssociations": { "methods": { "create": { - "description": "Creates a new TlsInspectionPolicy in a given project and location.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tlsInspectionPolicies", + "description": "Creates an association in a given project and location. See https://google.aip.dev/133.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/mirroringEndpointGroupAssociations", "httpMethod": "POST", - "id": "networksecurity.projects.locations.tlsInspectionPolicies.create", + "id": "networksecurity.projects.locations.mirroringEndpointGroupAssociations.create", "parameterOrder": [ "parent" ], "parameters": { + "mirroringEndpointGroupAssociationId": { + "description": "Optional. The ID to use for the new association, which will become the final component of the endpoint group's resource name. If not provided, the server will generate a unique ID.", + "location": "query", + "type": "string" + }, "parent": { - "description": "Required. The parent resource of the TlsInspectionPolicy. Must be in the format `projects/{project}/locations/{location}`.", + "description": "Required. The parent resource where this association will be created. Format: projects/{project}/locations/{location}", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" }, - "tlsInspectionPolicyId": { - "description": "Required. Short name of the TlsInspectionPolicy resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. \"tls_inspection_policy1\".", + "requestId": { + "description": "Optional. A unique identifier for this request. Must be a UUID4. This request is only idempotent if a `request_id` is provided. See https://google.aip.dev/155 for more details.", "location": "query", "type": "string" } }, - "path": "v1/{+parent}/tlsInspectionPolicies", + "path": "v1/{+parent}/mirroringEndpointGroupAssociations", "request": { - "$ref": "TlsInspectionPolicy" + "$ref": "MirroringEndpointGroupAssociation" }, "response": { "$ref": "Operation" @@ -3892,25 +3889,25 @@ ] }, "delete": { - "description": "Deletes a single TlsInspectionPolicy.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tlsInspectionPolicies/{tlsInspectionPoliciesId}", + "description": "Deletes an association. See https://google.aip.dev/135.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/mirroringEndpointGroupAssociations/{mirroringEndpointGroupAssociationsId}", "httpMethod": "DELETE", - "id": "networksecurity.projects.locations.tlsInspectionPolicies.delete", + "id": "networksecurity.projects.locations.mirroringEndpointGroupAssociations.delete", "parameterOrder": [ "name" ], "parameters": { - "force": { - "description": "If set to true, any rules for this TlsInspectionPolicy will also be deleted. (Otherwise, the request will only work if the TlsInspectionPolicy has no rules.)", - "location": "query", - "type": "boolean" - }, "name": { - "description": "Required. A name of the TlsInspectionPolicy to delete. Must be in the format `projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}`.", + "description": "Required. The association to delete.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/tlsInspectionPolicies/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/mirroringEndpointGroupAssociations/[^/]+$", "required": true, "type": "string" + }, + "requestId": { + "description": "Optional. A unique identifier for this request. Must be a UUID4. This request is only idempotent if a `request_id` is provided. See https://google.aip.dev/155 for more details.", + "location": "query", + "type": "string" } }, "path": "v1/{+name}", @@ -3922,84 +3919,99 @@ ] }, "get": { - "description": "Gets details of a single TlsInspectionPolicy.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tlsInspectionPolicies/{tlsInspectionPoliciesId}", + "description": "Gets a specific association. See https://google.aip.dev/131.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/mirroringEndpointGroupAssociations/{mirroringEndpointGroupAssociationsId}", "httpMethod": "GET", - "id": "networksecurity.projects.locations.tlsInspectionPolicies.get", + "id": "networksecurity.projects.locations.mirroringEndpointGroupAssociations.get", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Required. A name of the TlsInspectionPolicy to get. Must be in the format `projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}`.", + "description": "Required. The name of the association to retrieve. Format: projects/{project}/locations/{location}/mirroringEndpointGroupAssociations/{mirroring_endpoint_group_association}", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/tlsInspectionPolicies/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/mirroringEndpointGroupAssociations/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+name}", "response": { - "$ref": "TlsInspectionPolicy" + "$ref": "MirroringEndpointGroupAssociation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "list": { - "description": "Lists TlsInspectionPolicies in a given project and location.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tlsInspectionPolicies", + "description": "Lists associations in a given project and location. See https://google.aip.dev/132.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/mirroringEndpointGroupAssociations", "httpMethod": "GET", - "id": "networksecurity.projects.locations.tlsInspectionPolicies.list", + "id": "networksecurity.projects.locations.mirroringEndpointGroupAssociations.list", "parameterOrder": [ "parent" ], "parameters": { - "pageSize": { - "description": "Maximum number of TlsInspectionPolicies to return per call.", - "format": "int32", + "filter": { + "description": "Optional. Filter expression. See https://google.aip.dev/160#filtering for more details.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. Sort expression. See https://google.aip.dev/132#ordering for more details.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. See https://google.aip.dev/158 for more details.", + "format": "int32", "location": "query", "type": "integer" }, "pageToken": { - "description": "The value returned by the last 'ListTlsInspectionPoliciesResponse' Indicates that this is a continuation of a prior 'ListTlsInspectionPolicies' call, and that the system should return the next page of data.", + "description": "Optional. A page token, received from a previous `ListMirroringEndpointGroups` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListMirroringEndpointGroups` must match the call that provided the page token. See https://google.aip.dev/158 for more details.", "location": "query", "type": "string" }, "parent": { - "description": "Required. The project and location from which the TlsInspectionPolicies should be listed, specified in the format `projects/{project}/locations/{location}`.", + "description": "Required. The parent, which owns this collection of associations. Example: `projects/123456789/locations/global`. See https://google.aip.dev/132 for more details.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+parent}/tlsInspectionPolicies", + "path": "v1/{+parent}/mirroringEndpointGroupAssociations", "response": { - "$ref": "ListTlsInspectionPoliciesResponse" + "$ref": "ListMirroringEndpointGroupAssociationsResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "patch": { - "description": "Updates the parameters of a single TlsInspectionPolicy.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tlsInspectionPolicies/{tlsInspectionPoliciesId}", + "description": "Updates an association. See https://google.aip.dev/134.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/mirroringEndpointGroupAssociations/{mirroringEndpointGroupAssociationsId}", "httpMethod": "PATCH", - "id": "networksecurity.projects.locations.tlsInspectionPolicies.patch", + "id": "networksecurity.projects.locations.mirroringEndpointGroupAssociations.patch", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Required. Name of the resource. Name is of the form projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy} tls_inspection_policy should match the pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).", + "description": "Immutable. Identifier. The resource name of this endpoint group association, for example: `projects/123456789/locations/global/mirroringEndpointGroupAssociations/my-eg-association`. See https://google.aip.dev/122 for more details.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/tlsInspectionPolicies/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/mirroringEndpointGroupAssociations/[^/]+$", "required": true, "type": "string" }, + "requestId": { + "description": "Optional. A unique identifier for this request. Must be a UUID4. This request is only idempotent if a `request_id` is provided. See https://google.aip.dev/155 for more details.", + "location": "query", + "type": "string" + }, "updateMask": { - "description": "Optional. Field mask is used to specify the fields to be overwritten in the TlsInspectionPolicy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.", + "description": "Optional. The list of fields to update. Fields are specified relative to the association (e.g. `description`; *not* `mirroring_endpoint_group_association.description`). See https://google.aip.dev/161 for more details.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -4007,7 +4019,7 @@ }, "path": "v1/{+name}", "request": { - "$ref": "TlsInspectionPolicy" + "$ref": "MirroringEndpointGroupAssociation" }, "response": { "$ref": "Operation" @@ -4018,33 +4030,38 @@ } } }, - "urlLists": { + "mirroringEndpointGroups": { "methods": { "create": { - "description": "Creates a new UrlList in a given project and location.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/urlLists", + "description": "Creates an endpoint group in a given project and location. See https://google.aip.dev/133.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/mirroringEndpointGroups", "httpMethod": "POST", - "id": "networksecurity.projects.locations.urlLists.create", + "id": "networksecurity.projects.locations.mirroringEndpointGroups.create", "parameterOrder": [ "parent" ], "parameters": { + "mirroringEndpointGroupId": { + "description": "Required. The ID to use for the endpoint group, which will become the final component of the endpoint group's resource name.", + "location": "query", + "type": "string" + }, "parent": { - "description": "Required. The parent resource of the UrlList. Must be in the format `projects/*/locations/{location}`.", + "description": "Required. The parent resource where this endpoint group will be created. Format: projects/{project}/locations/{location}", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" }, - "urlListId": { - "description": "Required. Short name of the UrlList resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. \"url_list\".", + "requestId": { + "description": "Optional. A unique identifier for this request. Must be a UUID4. This request is only idempotent if a `request_id` is provided. See https://google.aip.dev/155 for more details.", "location": "query", "type": "string" } }, - "path": "v1/{+parent}/urlLists", + "path": "v1/{+parent}/mirroringEndpointGroups", "request": { - "$ref": "UrlList" + "$ref": "MirroringEndpointGroup" }, "response": { "$ref": "Operation" @@ -4054,20 +4071,25 @@ ] }, "delete": { - "description": "Deletes a single UrlList.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/urlLists/{urlListsId}", + "description": "Deletes an endpoint group. See https://google.aip.dev/135.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/mirroringEndpointGroups/{mirroringEndpointGroupsId}", "httpMethod": "DELETE", - "id": "networksecurity.projects.locations.urlLists.delete", + "id": "networksecurity.projects.locations.mirroringEndpointGroups.delete", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Required. A name of the UrlList to delete. Must be in the format `projects/*/locations/{location}/urlLists/*`.", + "description": "Required. The endpoint group to delete.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/urlLists/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/mirroringEndpointGroups/[^/]+$", "required": true, "type": "string" + }, + "requestId": { + "description": "Optional. A unique identifier for this request. Must be a UUID4. This request is only idempotent if a `request_id` is provided. See https://google.aip.dev/155 for more details.", + "location": "query", + "type": "string" } }, "path": "v1/{+name}", @@ -4079,84 +4101,99 @@ ] }, "get": { - "description": "Gets details of a single UrlList.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/urlLists/{urlListsId}", + "description": "Gets a specific endpoint group. See https://google.aip.dev/131.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/mirroringEndpointGroups/{mirroringEndpointGroupsId}", "httpMethod": "GET", - "id": "networksecurity.projects.locations.urlLists.get", + "id": "networksecurity.projects.locations.mirroringEndpointGroups.get", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Required. A name of the UrlList to get. Must be in the format `projects/*/locations/{location}/urlLists/*`.", + "description": "Required. The name of the endpoint group to retrieve. Format: projects/{project}/locations/{location}/mirroringEndpointGroups/{mirroring_endpoint_group}", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/urlLists/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/mirroringEndpointGroups/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+name}", "response": { - "$ref": "UrlList" + "$ref": "MirroringEndpointGroup" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "list": { - "description": "Lists UrlLists in a given project and location.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/urlLists", + "description": "Lists endpoint groups in a given project and location. See https://google.aip.dev/132.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/mirroringEndpointGroups", "httpMethod": "GET", - "id": "networksecurity.projects.locations.urlLists.list", + "id": "networksecurity.projects.locations.mirroringEndpointGroups.list", "parameterOrder": [ "parent" ], "parameters": { + "filter": { + "description": "Optional. Filter expression. See https://google.aip.dev/160#filtering for more details.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. Sort expression. See https://google.aip.dev/132#ordering for more details.", + "location": "query", + "type": "string" + }, "pageSize": { - "description": "Maximum number of UrlLists to return per call.", + "description": "Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. See https://google.aip.dev/158 for more details.", "format": "int32", "location": "query", "type": "integer" }, "pageToken": { - "description": "The value returned by the last `ListUrlListsResponse` Indicates that this is a continuation of a prior `ListUrlLists` call, and that the system should return the next page of data.", + "description": "Optional. A page token, received from a previous `ListMirroringEndpointGroups` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListMirroringEndpointGroups` must match the call that provided the page token. See https://google.aip.dev/158 for more details.", "location": "query", "type": "string" }, "parent": { - "description": "Required. The project and location from which the UrlLists should be listed, specified in the format `projects/{project}/locations/{location}`.", + "description": "Required. The parent, which owns this collection of endpoint groups. Example: `projects/123456789/locations/global`. See https://google.aip.dev/132 for more details.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+parent}/urlLists", + "path": "v1/{+parent}/mirroringEndpointGroups", "response": { - "$ref": "ListUrlListsResponse" + "$ref": "ListMirroringEndpointGroupsResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "patch": { - "description": "Updates the parameters of a single UrlList.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/urlLists/{urlListsId}", + "description": "Updates an endpoint group. See https://google.aip.dev/134.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/mirroringEndpointGroups/{mirroringEndpointGroupsId}", "httpMethod": "PATCH", - "id": "networksecurity.projects.locations.urlLists.patch", + "id": "networksecurity.projects.locations.mirroringEndpointGroups.patch", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Required. Name of the resource provided by the user. Name is of the form projects/{project}/locations/{location}/urlLists/{url_list} url_list should match the pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).", + "description": "Immutable. Identifier. The resource name of this endpoint group, for example: `projects/123456789/locations/global/mirroringEndpointGroups/my-eg`. See https://google.aip.dev/122 for more details.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/urlLists/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/mirroringEndpointGroups/[^/]+$", "required": true, "type": "string" }, + "requestId": { + "description": "Optional. A unique identifier for this request. Must be a UUID4. This request is only idempotent if a `request_id` is provided. See https://google.aip.dev/155 for more details.", + "location": "query", + "type": "string" + }, "updateMask": { - "description": "Optional. Field mask is used to specify the fields to be overwritten in the UrlList resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.", + "description": "Optional. The list of fields to update. Fields are specified relative to the endpoint group (e.g. `description`; *not* `mirroring_endpoint_group.description`). See https://google.aip.dev/161 for more details.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -4164,7 +4201,7 @@ }, "path": "v1/{+name}", "request": { - "$ref": "UrlList" + "$ref": "MirroringEndpointGroup" }, "response": { "$ref": "Operation" @@ -4174,128 +4211,819 @@ ] } } - } - } - } - } - } - }, - "revision": "20250326", - "rootUrl": "https://networksecurity.googleapis.com/", - "schemas": { - "AddAddressGroupItemsRequest": { - "description": "Request used by the AddAddressGroupItems method.", - "id": "AddAddressGroupItemsRequest", - "properties": { - "items": { - "description": "Required. List of items to add.", - "items": { - "type": "string" - }, - "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" - } - }, - "type": "object" - }, - "AddressGroup": { - "description": "AddressGroup is a resource that specifies how a collection of IP/DNS used in Firewall Policy.", - "id": "AddressGroup", - "properties": { - "capacity": { - "description": "Required. Capacity of the Address Group", - "format": "int32", - "type": "integer" - }, - "createTime": { - "description": "Output only. The timestamp when the resource was created.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "description": { - "description": "Optional. Free-text description of the resource.", - "type": "string" - }, - "items": { - "description": "Optional. List of items.", - "items": { - "type": "string" - }, - "type": "array" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Optional. Set of label tags associated with the AddressGroup resource.", - "type": "object" - }, - "name": { - "description": "Required. Name of the AddressGroup resource. It matches pattern `projects/*/locations/{location}/addressGroups/`.", - "type": "string" - }, - "purpose": { - "description": "Optional. List of supported purposes of the Address Group.", - "items": { - "enum": [ - "PURPOSE_UNSPECIFIED", - "DEFAULT", - "CLOUD_ARMOR" - ], - "enumDescriptions": [ - "Default value. Should never happen.", - "Address Group is distributed to VMC, and is usable in Firewall Policies and other systems that rely on VMC.", - "Address Group is usable in Cloud Armor." - ], - "type": "string" - }, - "type": "array" - }, - "selfLink": { - "description": "Output only. Server-defined fully-qualified URL for this resource.", - "readOnly": true, - "type": "string" - }, - "type": { - "description": "Required. The type of the Address Group. Possible values are \"IPv4\" or \"IPV6\".", - "enum": [ - "TYPE_UNSPECIFIED", - "IPV4", - "IPV6" - ], - "enumDescriptions": [ - "Default value.", - "IP v4 ranges.", - "IP v6 ranges." - ], - "type": "string" - }, - "updateTime": { - "description": "Output only. The timestamp when the resource was updated.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - } - }, - "type": "object" - }, - "AntivirusOverride": { - "description": "Defines what action to take for antivirus threats per protocol.", - "id": "AntivirusOverride", - "properties": { - "action": { - "description": "Required. Threat action override. For some threat types, only a subset of actions applies.", - "enum": [ - "THREAT_ACTION_UNSPECIFIED", - "DEFAULT_ACTION", - "ALLOW", - "ALERT", - "DENY" - ], + }, + "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}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "networksecurity.projects.locations.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:cancel", + "request": { + "$ref": "CancelOperationRequest" + }, + "response": { + "$ref": "Empty" + }, + "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}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "networksecurity.projects.locations.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Empty" + }, + "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}/operations/{operationsId}", + "httpMethod": "GET", + "id": "networksecurity.projects.locations.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Operation" + }, + "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}/operations", + "httpMethod": "GET", + "id": "networksecurity.projects.locations.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/[^/]+$", + "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": "ListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "serverTlsPolicies": { + "methods": { + "create": { + "description": "Creates a new ServerTlsPolicy in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/serverTlsPolicies", + "httpMethod": "POST", + "id": "networksecurity.projects.locations.serverTlsPolicies.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent resource of the ServerTlsPolicy. Must be in the format `projects/*/locations/{location}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "serverTlsPolicyId": { + "description": "Required. Short name of the ServerTlsPolicy resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. \"server_mtls_policy\".", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/serverTlsPolicies", + "request": { + "$ref": "ServerTlsPolicy" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single ServerTlsPolicy.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/serverTlsPolicies/{serverTlsPoliciesId}", + "httpMethod": "DELETE", + "id": "networksecurity.projects.locations.serverTlsPolicies.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. A name of the ServerTlsPolicy to delete. Must be in the format `projects/*/locations/{location}/serverTlsPolicies/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/serverTlsPolicies/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a single ServerTlsPolicy.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/serverTlsPolicies/{serverTlsPoliciesId}", + "httpMethod": "GET", + "id": "networksecurity.projects.locations.serverTlsPolicies.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. A name of the ServerTlsPolicy to get. Must be in the format `projects/*/locations/{location}/serverTlsPolicies/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/serverTlsPolicies/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "ServerTlsPolicy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "getIamPolicy": { + "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/serverTlsPolicies/{serverTlsPoliciesId}:getIamPolicy", + "httpMethod": "GET", + "id": "networksecurity.projects.locations.serverTlsPolicies.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/[^/]+/serverTlsPolicies/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:getIamPolicy", + "response": { + "$ref": "GoogleIamV1Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists ServerTlsPolicies in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/serverTlsPolicies", + "httpMethod": "GET", + "id": "networksecurity.projects.locations.serverTlsPolicies.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Maximum number of ServerTlsPolicies to return per call.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The value returned by the last `ListServerTlsPoliciesResponse` Indicates that this is a continuation of a prior `ListServerTlsPolicies` call, and that the system should return the next page of data.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The project and location from which the ServerTlsPolicies should be listed, specified in the format `projects/*/locations/{location}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "returnPartialSuccess": { + "description": "Optional. Setting this field to `true` will opt the request into returning the resources that are reachable, and into including the names of those that were unreachable in the [ListServerTlsPoliciesResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+parent}/serverTlsPolicies", + "response": { + "$ref": "ListServerTlsPoliciesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates the parameters of a single ServerTlsPolicy.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/serverTlsPolicies/{serverTlsPoliciesId}", + "httpMethod": "PATCH", + "id": "networksecurity.projects.locations.serverTlsPolicies.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the ServerTlsPolicy resource. It matches the pattern `projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/serverTlsPolicies/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. Field mask is used to specify the fields to be overwritten in the ServerTlsPolicy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "ServerTlsPolicy" + }, + "response": { + "$ref": "Operation" + }, + "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}/serverTlsPolicies/{serverTlsPoliciesId}:setIamPolicy", + "httpMethod": "POST", + "id": "networksecurity.projects.locations.serverTlsPolicies.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/[^/]+/serverTlsPolicies/[^/]+$", + "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}/serverTlsPolicies/{serverTlsPoliciesId}:testIamPermissions", + "httpMethod": "POST", + "id": "networksecurity.projects.locations.serverTlsPolicies.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/[^/]+/serverTlsPolicies/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:testIamPermissions", + "request": { + "$ref": "GoogleIamV1TestIamPermissionsRequest" + }, + "response": { + "$ref": "GoogleIamV1TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "tlsInspectionPolicies": { + "methods": { + "create": { + "description": "Creates a new TlsInspectionPolicy in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tlsInspectionPolicies", + "httpMethod": "POST", + "id": "networksecurity.projects.locations.tlsInspectionPolicies.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent resource of the TlsInspectionPolicy. Must be in the format `projects/{project}/locations/{location}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "tlsInspectionPolicyId": { + "description": "Required. Short name of the TlsInspectionPolicy resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. \"tls_inspection_policy1\".", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/tlsInspectionPolicies", + "request": { + "$ref": "TlsInspectionPolicy" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single TlsInspectionPolicy.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tlsInspectionPolicies/{tlsInspectionPoliciesId}", + "httpMethod": "DELETE", + "id": "networksecurity.projects.locations.tlsInspectionPolicies.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "force": { + "description": "If set to true, any rules for this TlsInspectionPolicy will also be deleted. (Otherwise, the request will only work if the TlsInspectionPolicy has no rules.)", + "location": "query", + "type": "boolean" + }, + "name": { + "description": "Required. A name of the TlsInspectionPolicy to delete. Must be in the format `projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/tlsInspectionPolicies/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a single TlsInspectionPolicy.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tlsInspectionPolicies/{tlsInspectionPoliciesId}", + "httpMethod": "GET", + "id": "networksecurity.projects.locations.tlsInspectionPolicies.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. A name of the TlsInspectionPolicy to get. Must be in the format `projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/tlsInspectionPolicies/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "TlsInspectionPolicy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists TlsInspectionPolicies in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tlsInspectionPolicies", + "httpMethod": "GET", + "id": "networksecurity.projects.locations.tlsInspectionPolicies.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Maximum number of TlsInspectionPolicies to return per call.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The value returned by the last 'ListTlsInspectionPoliciesResponse' Indicates that this is a continuation of a prior 'ListTlsInspectionPolicies' call, and that the system should return the next page of data.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The project and location from which the TlsInspectionPolicies should be listed, specified in the format `projects/{project}/locations/{location}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/tlsInspectionPolicies", + "response": { + "$ref": "ListTlsInspectionPoliciesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates the parameters of a single TlsInspectionPolicy.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tlsInspectionPolicies/{tlsInspectionPoliciesId}", + "httpMethod": "PATCH", + "id": "networksecurity.projects.locations.tlsInspectionPolicies.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the resource. Name is of the form projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy} tls_inspection_policy should match the pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/tlsInspectionPolicies/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. Field mask is used to specify the fields to be overwritten in the TlsInspectionPolicy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "TlsInspectionPolicy" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "urlLists": { + "methods": { + "create": { + "description": "Creates a new UrlList in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/urlLists", + "httpMethod": "POST", + "id": "networksecurity.projects.locations.urlLists.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent resource of the UrlList. Must be in the format `projects/*/locations/{location}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "urlListId": { + "description": "Required. Short name of the UrlList resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. \"url_list\".", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/urlLists", + "request": { + "$ref": "UrlList" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single UrlList.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/urlLists/{urlListsId}", + "httpMethod": "DELETE", + "id": "networksecurity.projects.locations.urlLists.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. A name of the UrlList to delete. Must be in the format `projects/*/locations/{location}/urlLists/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/urlLists/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a single UrlList.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/urlLists/{urlListsId}", + "httpMethod": "GET", + "id": "networksecurity.projects.locations.urlLists.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. A name of the UrlList to get. Must be in the format `projects/*/locations/{location}/urlLists/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/urlLists/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "UrlList" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists UrlLists in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/urlLists", + "httpMethod": "GET", + "id": "networksecurity.projects.locations.urlLists.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Maximum number of UrlLists to return per call.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The value returned by the last `ListUrlListsResponse` Indicates that this is a continuation of a prior `ListUrlLists` call, and that the system should return the next page of data.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The project and location from which the UrlLists should be listed, specified in the format `projects/{project}/locations/{location}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/urlLists", + "response": { + "$ref": "ListUrlListsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates the parameters of a single UrlList.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/urlLists/{urlListsId}", + "httpMethod": "PATCH", + "id": "networksecurity.projects.locations.urlLists.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the resource provided by the user. Name is of the form projects/{project}/locations/{location}/urlLists/{url_list} url_list should match the pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/urlLists/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. Field mask is used to specify the fields to be overwritten in the UrlList resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "UrlList" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + } + } + } + }, + "revision": "20250416", + "rootUrl": "https://networksecurity.googleapis.com/", + "schemas": { + "AddAddressGroupItemsRequest": { + "description": "Request used by the AddAddressGroupItems method.", + "id": "AddAddressGroupItemsRequest", + "properties": { + "items": { + "description": "Required. List of items to add.", + "items": { + "type": "string" + }, + "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" + } + }, + "type": "object" + }, + "AddressGroup": { + "description": "AddressGroup is a resource that specifies how a collection of IP/DNS used in Firewall Policy.", + "id": "AddressGroup", + "properties": { + "capacity": { + "description": "Required. Capacity of the Address Group", + "format": "int32", + "type": "integer" + }, + "createTime": { + "description": "Output only. The timestamp when the resource was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "Optional. Free-text description of the resource.", + "type": "string" + }, + "items": { + "description": "Optional. List of items.", + "items": { + "type": "string" + }, + "type": "array" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Set of label tags associated with the AddressGroup resource.", + "type": "object" + }, + "name": { + "description": "Required. Name of the AddressGroup resource. It matches pattern `projects/*/locations/{location}/addressGroups/`.", + "type": "string" + }, + "purpose": { + "description": "Optional. List of supported purposes of the Address Group.", + "items": { + "enum": [ + "PURPOSE_UNSPECIFIED", + "DEFAULT", + "CLOUD_ARMOR" + ], + "enumDescriptions": [ + "Default value. Should never happen.", + "Address Group is distributed to VMC, and is usable in Firewall Policies and other systems that rely on VMC.", + "Address Group is usable in Cloud Armor." + ], + "type": "string" + }, + "type": "array" + }, + "selfLink": { + "description": "Output only. Server-defined fully-qualified URL for this resource.", + "readOnly": true, + "type": "string" + }, + "type": { + "description": "Required. The type of the Address Group. Possible values are \"IPv4\" or \"IPV6\".", + "enum": [ + "TYPE_UNSPECIFIED", + "IPV4", + "IPV6" + ], + "enumDescriptions": [ + "Default value.", + "IP v4 ranges.", + "IP v6 ranges." + ], + "type": "string" + }, + "updateTime": { + "description": "Output only. The timestamp when the resource was updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "AntivirusOverride": { + "description": "Defines what action to take for antivirus threats per protocol.", + "id": "AntivirusOverride", + "properties": { + "action": { + "description": "Required. Threat action override. For some threat types, only a subset of actions applies.", + "enum": [ + "THREAT_ACTION_UNSPECIFIED", + "DEFAULT_ACTION", + "ALLOW", + "ALERT", + "DENY" + ], "enumDescriptions": [ "Threat action not specified.", "The default action (as specified by the vendor) is taken.", @@ -4319,7 +5047,7 @@ ], "enumDescriptions": [ "Protocol not specified.", - "SMTP prtocol", + "SMTP protocol", "SMB protocol", "POP3 protocol", "IMAP protocol", @@ -4332,116 +5060,447 @@ }, "type": "object" }, - "AuthorizationPolicy": { - "description": "AuthorizationPolicy is a resource that specifies how a server should authorize incoming connections. This resource in itself does not change the configuration unless it's attached to a target https proxy or endpoint config selector resource.", - "id": "AuthorizationPolicy", + "AuthorizationPolicy": { + "description": "AuthorizationPolicy is a resource that specifies how a server should authorize incoming connections. This resource in itself does not change the configuration unless it's attached to a target https proxy or endpoint config selector resource.", + "id": "AuthorizationPolicy", + "properties": { + "action": { + "description": "Required. The action to take when a rule match is found. Possible values are \"ALLOW\" or \"DENY\".", + "enum": [ + "ACTION_UNSPECIFIED", + "ALLOW", + "DENY" + ], + "enumDescriptions": [ + "Default value.", + "Grant access.", + "Deny access. Deny rules should be avoided unless they are used to provide a default \"deny all\" fallback." + ], + "type": "string" + }, + "createTime": { + "description": "Output only. The timestamp when the resource was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "Optional. Free-text description of the resource.", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Set of label tags associated with the AuthorizationPolicy resource.", + "type": "object" + }, + "name": { + "description": "Required. Name of the AuthorizationPolicy resource. It matches pattern `projects/{project}/locations/{location}/authorizationPolicies/`.", + "type": "string" + }, + "rules": { + "description": "Optional. List of rules to match. Note that at least one of the rules must match in order for the action specified in the 'action' field to be taken. A rule is a match if there is a matching source and destination. If left blank, the action specified in the `action` field will be applied on every request.", + "items": { + "$ref": "Rule" + }, + "type": "array" + }, + "updateTime": { + "description": "Output only. The timestamp when the resource was updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "AuthzPolicy": { + "description": "`AuthzPolicy` is a resource that allows to forward traffic to a callout backend designed to scan the traffic for security purposes.", + "id": "AuthzPolicy", + "properties": { + "action": { + "description": "Required. Can be one of `ALLOW`, `DENY`, `CUSTOM`. When the action is `CUSTOM`, `customProvider` must be specified. When the action is `ALLOW`, only requests matching the policy will be allowed. When the action is `DENY`, only requests matching the policy will be denied. When a request arrives, the policies are evaluated in the following order: 1. If there is a `CUSTOM` policy that matches the request, the `CUSTOM` policy is evaluated using the custom authorization providers and the request is denied if the provider rejects the request. 2. If there are any `DENY` policies that match the request, the request is denied. 3. If there are no `ALLOW` policies for the resource or if any of the `ALLOW` policies match the request, the request is allowed. 4. Else the request is denied by default if none of the configured AuthzPolicies with `ALLOW` action match the request.", + "enum": [ + "AUTHZ_ACTION_UNSPECIFIED", + "ALLOW", + "DENY", + "CUSTOM" + ], + "enumDescriptions": [ + "Unspecified action.", + "Allow request to pass through to the backend.", + "Deny the request and return a HTTP 404 to the client.", + "Delegate the authorization decision to an external authorization engine." + ], + "type": "string" + }, + "createTime": { + "description": "Output only. The timestamp when the resource was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "customProvider": { + "$ref": "AuthzPolicyCustomProvider", + "description": "Optional. Required if the action is `CUSTOM`. Allows delegating authorization decisions to Cloud IAP or to Service Extensions. One of `cloudIap` or `authzExtension` must be specified." + }, + "description": { + "description": "Optional. A human-readable description of the resource.", + "type": "string" + }, + "httpRules": { + "description": "Optional. A list of authorization HTTP rules to match against the incoming request. A policy match occurs when at least one HTTP rule matches the request or when no HTTP rules are specified in the policy. At least one HTTP Rule is required for Allow or Deny Action. Limited to 5 rules.", + "items": { + "$ref": "AuthzPolicyAuthzRule" + }, + "type": "array" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Set of labels associated with the `AuthzPolicy` resource. The format must comply with [the following requirements](/compute/docs/labeling-resources#requirements).", + "type": "object" + }, + "name": { + "description": "Required. Identifier. Name of the `AuthzPolicy` resource in the following format: `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`.", + "type": "string" + }, + "target": { + "$ref": "AuthzPolicyTarget", + "description": "Required. Specifies the set of resources to which this policy should be applied to." + }, + "updateTime": { + "description": "Output only. The timestamp when the resource was updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "AuthzPolicyAuthzRule": { + "description": "Conditions to match against the incoming request.", + "id": "AuthzPolicyAuthzRule", + "properties": { + "from": { + "$ref": "AuthzPolicyAuthzRuleFrom", + "description": "Optional. Describes properties of a source of a request." + }, + "to": { + "$ref": "AuthzPolicyAuthzRuleTo", + "description": "Optional. Describes properties of a target of a request." + }, + "when": { + "description": "Optional. CEL expression that describes the conditions to be satisfied for the action. The result of the CEL expression is ANDed with the from and to. Refer to the CEL language reference for a list of available attributes.", + "type": "string" + } + }, + "type": "object" + }, + "AuthzPolicyAuthzRuleFrom": { + "description": "Describes properties of one or more sources of a request.", + "id": "AuthzPolicyAuthzRuleFrom", + "properties": { + "notSources": { + "description": "Optional. Describes the negated properties of request sources. Matches requests from sources that do not match the criteria specified in this field. At least one of sources or notSources must be specified.", + "items": { + "$ref": "AuthzPolicyAuthzRuleFromRequestSource" + }, + "type": "array" + }, + "sources": { + "description": "Optional. Describes the properties of a request's sources. At least one of sources or notSources must be specified. Limited to 1 source. A match occurs when ANY source (in sources or notSources) matches the request. Within a single source, the match follows AND semantics across fields and OR semantics within a single field, i.e. a match occurs when ANY principal matches AND ANY ipBlocks match.", + "items": { + "$ref": "AuthzPolicyAuthzRuleFromRequestSource" + }, + "type": "array" + } + }, + "type": "object" + }, + "AuthzPolicyAuthzRuleFromRequestSource": { + "description": "Describes the properties of a single source.", + "id": "AuthzPolicyAuthzRuleFromRequestSource", + "properties": { + "principals": { + "description": "Optional. A list of identities derived from the client's certificate. This field will not match on a request unless mutual TLS is enabled for the forwarding rule or Gateway. For Application Load Balancers, each identity is a string whose value is matched against the URI SAN, or DNS SAN, or SPIFFE ID, or the subject field in the client's certificate. For Cloud Service Mesh, each identity is a string whose value is matched against the URI SAN, or DNS SAN, or the subject field in the client's certificate. The match can be exact, prefix, suffix, or a substring match. One of exact, prefix, suffix, or contains must be specified. Limited to 5 principals.", + "items": { + "$ref": "AuthzPolicyAuthzRuleStringMatch" + }, + "type": "array" + }, + "resources": { + "description": "Optional. A list of resources to match against the resource of the source VM of a request. Limited to 5 resources.", + "items": { + "$ref": "AuthzPolicyAuthzRuleRequestResource" + }, + "type": "array" + } + }, + "type": "object" + }, + "AuthzPolicyAuthzRuleHeaderMatch": { + "description": "Determines how a HTTP header should be matched.", + "id": "AuthzPolicyAuthzRuleHeaderMatch", + "properties": { + "name": { + "description": "Optional. Specifies the name of the header in the request.", + "type": "string" + }, + "value": { + "$ref": "AuthzPolicyAuthzRuleStringMatch", + "description": "Optional. Specifies how the header match will be performed." + } + }, + "type": "object" + }, + "AuthzPolicyAuthzRuleRequestResource": { + "description": "Describes the properties of a client VM resource accessing the internal application load balancers.", + "id": "AuthzPolicyAuthzRuleRequestResource", "properties": { - "action": { - "description": "Required. The action to take when a rule match is found. Possible values are \"ALLOW\" or \"DENY\".", - "enum": [ - "ACTION_UNSPECIFIED", - "ALLOW", - "DENY" - ], - "enumDescriptions": [ - "Default value.", - "Grant access.", - "Deny access. Deny rules should be avoided unless they are used to provide a default \"deny all\" fallback." - ], + "iamServiceAccount": { + "$ref": "AuthzPolicyAuthzRuleStringMatch", + "description": "Optional. An IAM service account to match against the source service account of the VM sending the request." + }, + "tagValueIdSet": { + "$ref": "AuthzPolicyAuthzRuleRequestResourceTagValueIdSet", + "description": "Optional. A list of resource tag value permanent IDs to match against the resource manager tags value associated with the source VM of a request." + } + }, + "type": "object" + }, + "AuthzPolicyAuthzRuleRequestResourceTagValueIdSet": { + "description": "Describes a set of resource tag value permanent IDs to match against the resource manager tags value associated with the source VM of a request.", + "id": "AuthzPolicyAuthzRuleRequestResourceTagValueIdSet", + "properties": { + "ids": { + "description": "Required. A list of resource tag value permanent IDs to match against the resource manager tags value associated with the source VM of a request. The match follows AND semantics which means all the ids must match. Limited to 5 matches.", + "items": { + "format": "int64", + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "AuthzPolicyAuthzRuleStringMatch": { + "description": "Determines how a string value should be matched.", + "id": "AuthzPolicyAuthzRuleStringMatch", + "properties": { + "contains": { + "description": "The input string must have the substring specified here. Note: empty contains match is not allowed, please use regex instead. Examples: * ``abc`` matches the value ``xyz.abc.def``", "type": "string" }, - "createTime": { - "description": "Output only. The timestamp when the resource was created.", - "format": "google-datetime", - "readOnly": true, + "exact": { + "description": "The input string must match exactly the string specified here. Examples: * ``abc`` only matches the value ``abc``.", "type": "string" }, - "description": { - "description": "Optional. Free-text description of the resource.", + "ignoreCase": { + "description": "If true, indicates the exact/prefix/suffix/contains matching should be case insensitive. For example, the matcher ``data`` will match both input string ``Data`` and ``data`` if set to true.", + "type": "boolean" + }, + "prefix": { + "description": "The input string must have the prefix specified here. Note: empty prefix is not allowed, please use regex instead. Examples: * ``abc`` matches the value ``abc.xyz``", "type": "string" }, - "labels": { - "additionalProperties": { - "type": "string" + "suffix": { + "description": "The input string must have the suffix specified here. Note: empty prefix is not allowed, please use regex instead. Examples: * ``abc`` matches the value ``xyz.abc``", + "type": "string" + } + }, + "type": "object" + }, + "AuthzPolicyAuthzRuleTo": { + "description": "Describes properties of one or more targets of a request.", + "id": "AuthzPolicyAuthzRuleTo", + "properties": { + "notOperations": { + "description": "Optional. Describes the negated properties of the targets of a request. Matches requests for operations that do not match the criteria specified in this field. At least one of operations or notOperations must be specified.", + "items": { + "$ref": "AuthzPolicyAuthzRuleToRequestOperation" }, - "description": "Optional. Set of label tags associated with the AuthorizationPolicy resource.", - "type": "object" + "type": "array" }, - "name": { - "description": "Required. Name of the AuthorizationPolicy resource. It matches pattern `projects/{project}/locations/{location}/authorizationPolicies/`.", - "type": "string" + "operations": { + "description": "Optional. Describes properties of one or more targets of a request. At least one of operations or notOperations must be specified. Limited to 1 operation. A match occurs when ANY operation (in operations or notOperations) matches. Within an operation, the match follows AND semantics across fields and OR semantics within a field, i.e. a match occurs when ANY path matches AND ANY header matches and ANY method matches.", + "items": { + "$ref": "AuthzPolicyAuthzRuleToRequestOperation" + }, + "type": "array" + } + }, + "type": "object" + }, + "AuthzPolicyAuthzRuleToRequestOperation": { + "description": "Describes properties of one or more targets of a request.", + "id": "AuthzPolicyAuthzRuleToRequestOperation", + "properties": { + "headerSet": { + "$ref": "AuthzPolicyAuthzRuleToRequestOperationHeaderSet", + "description": "Optional. A list of headers to match against in http header." }, - "rules": { - "description": "Optional. List of rules to match. Note that at least one of the rules must match in order for the action specified in the 'action' field to be taken. A rule is a match if there is a matching source and destination. If left blank, the action specified in the `action` field will be applied on every request.", + "hosts": { + "description": "Optional. A list of HTTP Hosts to match against. The match can be one of exact, prefix, suffix, or contains (substring match). Matches are always case sensitive unless the ignoreCase is set. Limited to 5 matches.", "items": { - "$ref": "Rule" + "$ref": "AuthzPolicyAuthzRuleStringMatch" }, "type": "array" }, - "updateTime": { - "description": "Output only. The timestamp when the resource was updated.", - "format": "google-datetime", - "readOnly": true, - "type": "string" + "methods": { + "description": "Optional. A list of HTTP methods to match against. Each entry must be a valid HTTP method name (GET, PUT, POST, HEAD, PATCH, DELETE, OPTIONS). It only allows exact match and is always case sensitive.", + "items": { + "type": "string" + }, + "type": "array" + }, + "paths": { + "description": "Optional. A list of paths to match against. The match can be one of exact, prefix, suffix, or contains (substring match). Matches are always case sensitive unless the ignoreCase is set. Limited to 5 matches. Note that this path match includes the query parameters. For gRPC services, this should be a fully-qualified name of the form /package.service/method.", + "items": { + "$ref": "AuthzPolicyAuthzRuleStringMatch" + }, + "type": "array" } }, "type": "object" }, - "AuthzPolicy": { - "description": "`AuthzPolicy` is a resource that allows to forward traffic to a callout backend designed to scan the traffic for security purposes.", - "id": "AuthzPolicy", + "AuthzPolicyAuthzRuleToRequestOperationHeaderSet": { + "description": "Describes a set of HTTP headers to match against.", + "id": "AuthzPolicyAuthzRuleToRequestOperationHeaderSet", "properties": { - "action": { - "description": "Required. Can be one of `ALLOW`, `DENY`, `CUSTOM`. When the action is `CUSTOM`, `customProvider` must be specified. When the action is `ALLOW`, only requests matching the policy will be allowed. When the action is `DENY`, only requests matching the policy will be denied. When a request arrives, the policies are evaluated in the following order: 1. If there is a `CUSTOM` policy that matches the request, the `CUSTOM` policy is evaluated using the custom authorization providers and the request is denied if the provider rejects the request. 2. If there are any `DENY` policies that match the request, the request is denied. 3. If there are no `ALLOW` policies for the resource or if any of the `ALLOW` policies match the request, the request is allowed. 4. Else the request is denied by default if none of the configured AuthzPolicies with `ALLOW` action match the request.", + "headers": { + "description": "Required. A list of headers to match against in http header. The match can be one of exact, prefix, suffix, or contains (substring match). The match follows AND semantics which means all the headers must match. Matches are always case sensitive unless the ignoreCase is set. Limited to 5 matches.", + "items": { + "$ref": "AuthzPolicyAuthzRuleHeaderMatch" + }, + "type": "array" + } + }, + "type": "object" + }, + "AuthzPolicyCustomProvider": { + "description": "Allows delegating authorization decisions to Cloud IAP or to Service Extensions.", + "id": "AuthzPolicyCustomProvider", + "properties": { + "authzExtension": { + "$ref": "AuthzPolicyCustomProviderAuthzExtension", + "description": "Optional. Delegate authorization decision to user authored Service Extension. Only one of cloudIap or authzExtension can be specified." + }, + "cloudIap": { + "$ref": "AuthzPolicyCustomProviderCloudIap", + "description": "Optional. Delegates authorization decisions to Cloud IAP. Applicable only for managed load balancers. Enabling Cloud IAP at the AuthzPolicy level is not compatible with Cloud IAP settings in the BackendService. Enabling IAP in both places will result in request failure. Ensure that IAP is enabled in either the AuthzPolicy or the BackendService but not in both places." + } + }, + "type": "object" + }, + "AuthzPolicyCustomProviderAuthzExtension": { + "description": "Optional. Delegate authorization decision to user authored extension. Only one of cloudIap or authzExtension can be specified.", + "id": "AuthzPolicyCustomProviderAuthzExtension", + "properties": { + "resources": { + "description": "Required. A list of references to authorization extensions that will be invoked for requests matching this policy. Limited to 1 custom provider.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "AuthzPolicyCustomProviderCloudIap": { + "description": "Optional. Delegates authorization decisions to Cloud IAP. Applicable only for managed load balancers. Enabling Cloud IAP at the AuthzPolicy level is not compatible with Cloud IAP settings in the BackendService. Enabling IAP in both places will result in request failure. Ensure that IAP is enabled in either the AuthzPolicy or the BackendService but not in both places.", + "id": "AuthzPolicyCustomProviderCloudIap", + "properties": {}, + "type": "object" + }, + "AuthzPolicyTarget": { + "description": "Specifies the set of targets to which this policy should be applied to.", + "id": "AuthzPolicyTarget", + "properties": { + "loadBalancingScheme": { + "description": "Required. All gateways and forwarding rules referenced by this policy and extensions must share the same load balancing scheme. Supported values: `INTERNAL_MANAGED` and `EXTERNAL_MANAGED`. For more information, refer to [Backend services overview](https://cloud.google.com/load-balancing/docs/backend-service).", "enum": [ - "AUTHZ_ACTION_UNSPECIFIED", - "ALLOW", - "DENY", - "CUSTOM" + "LOAD_BALANCING_SCHEME_UNSPECIFIED", + "INTERNAL_MANAGED", + "EXTERNAL_MANAGED", + "INTERNAL_SELF_MANAGED" ], "enumDescriptions": [ - "Unspecified action.", - "Allow request to pass through to the backend.", - "Deny the request and return a HTTP 404 to the client.", - "Delegate the authorization decision to an external authorization engine." + "Default value. Do not use.", + "Signifies that this is used for Regional internal or Cross-region internal Application Load Balancing.", + "Signifies that this is used for Global external or Regional external Application Load Balancing.", + "Signifies that this is used for Cloud Service Mesh. Meant for use by CSM GKE controller only." ], "type": "string" }, + "resources": { + "description": "Required. A list of references to the Forwarding Rules on which this policy will be applied.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "CancelOperationRequest": { + "description": "The request message for Operations.CancelOperation.", + "id": "CancelOperationRequest", + "properties": {}, + "type": "object" + }, + "CertificateProviderInstance": { + "description": "Specification of a TLS certificate provider instance. Workloads may have one or more CertificateProvider instances (plugins) and one of them is enabled and configured by specifying this message. Workloads use the values from this message to locate and load the CertificateProvider instance configuration.", + "id": "CertificateProviderInstance", + "properties": { + "pluginInstance": { + "description": "Required. Plugin instance name, used to locate and load CertificateProvider instance configuration. Set to \"google_cloud_private_spiffe\" to use Certificate Authority Service certificate provider instance.", + "type": "string" + } + }, + "type": "object" + }, + "ClientTlsPolicy": { + "description": "ClientTlsPolicy is a resource that specifies how a client should authenticate connections to backends of a service. This resource itself does not affect configuration unless it is attached to a backend service resource.", + "id": "ClientTlsPolicy", + "properties": { + "clientCertificate": { + "$ref": "GoogleCloudNetworksecurityV1CertificateProvider", + "description": "Optional. Defines a mechanism to provision client identity (public and private keys) for peer to peer authentication. The presence of this dictates mTLS." + }, "createTime": { "description": "Output only. The timestamp when the resource was created.", "format": "google-datetime", "readOnly": true, "type": "string" }, - "customProvider": { - "$ref": "AuthzPolicyCustomProvider", - "description": "Optional. Required if the action is `CUSTOM`. Allows delegating authorization decisions to Cloud IAP or to Service Extensions. One of `cloudIap` or `authzExtension` must be specified." - }, "description": { - "description": "Optional. A human-readable description of the resource.", + "description": "Optional. Free-text description of the resource.", "type": "string" }, - "httpRules": { - "description": "Optional. A list of authorization HTTP rules to match against the incoming request. A policy match occurs when at least one HTTP rule matches the request or when no HTTP rules are specified in the policy. At least one HTTP Rule is required for Allow or Deny Action. Limited to 5 rules.", - "items": { - "$ref": "AuthzPolicyAuthzRule" - }, - "type": "array" - }, "labels": { "additionalProperties": { "type": "string" }, - "description": "Optional. Set of labels associated with the `AuthzPolicy` resource. The format must comply with [the following requirements](/compute/docs/labeling-resources#requirements).", + "description": "Optional. Set of label tags associated with the resource.", "type": "object" }, "name": { - "description": "Required. Identifier. Name of the `AuthzPolicy` resource in the following format: `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`.", + "description": "Required. Name of the ClientTlsPolicy resource. It matches the pattern `projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}`", "type": "string" }, - "target": { - "$ref": "AuthzPolicyTarget", - "description": "Required. Specifies the set of resources to which this policy should be applied to." + "serverValidationCa": { + "description": "Optional. Defines the mechanism to obtain the Certificate Authority certificate to validate the server certificate. If empty, client does not validate the server certificate.", + "items": { + "$ref": "ValidationCA" + }, + "type": "array" + }, + "sni": { + "description": "Optional. Server Name Indication string to present to the server during TLS handshake. E.g: \"secure.example.com\".", + "type": "string" }, "updateTime": { "description": "Output only. The timestamp when the resource was updated.", @@ -4452,298 +5511,338 @@ }, "type": "object" }, - "AuthzPolicyAuthzRule": { - "description": "Conditions to match against the incoming request.", - "id": "AuthzPolicyAuthzRule", + "CloneAddressGroupItemsRequest": { + "description": "Request used by the CloneAddressGroupItems method.", + "id": "CloneAddressGroupItemsRequest", "properties": { - "from": { - "$ref": "AuthzPolicyAuthzRuleFrom", - "description": "Optional. Describes properties of a source of a request." - }, - "to": { - "$ref": "AuthzPolicyAuthzRuleTo", - "description": "Optional. Describes properties of a target of a request." + "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" }, - "when": { - "description": "Optional. CEL expression that describes the conditions to be satisfied for the action. The result of the CEL expression is ANDed with the from and to. Refer to the CEL language reference for a list of available attributes.", + "sourceAddressGroup": { + "description": "Required. Source address group to clone items from.", "type": "string" } }, "type": "object" }, - "AuthzPolicyAuthzRuleFrom": { - "description": "Describes properties of one or more sources of a request.", - "id": "AuthzPolicyAuthzRuleFrom", + "CustomInterceptProfile": { + "description": "CustomInterceptProfile defines in-band integration behavior (intercept). It is used by firewall rules with an APPLY_SECURITY_PROFILE_GROUP action.", + "id": "CustomInterceptProfile", "properties": { - "notSources": { - "description": "Optional. Describes the negated properties of request sources. Matches requests from sources that do not match the criteria specified in this field. At least one of sources or notSources must be specified.", - "items": { - "$ref": "AuthzPolicyAuthzRuleFromRequestSource" - }, - "type": "array" - }, - "sources": { - "description": "Optional. Describes the properties of a request's sources. At least one of sources or notSources must be specified. Limited to 1 source. A match occurs when ANY source (in sources or notSources) matches the request. Within a single source, the match follows AND semantics across fields and OR semantics within a single field, i.e. a match occurs when ANY principal matches AND ANY ipBlocks match.", - "items": { - "$ref": "AuthzPolicyAuthzRuleFromRequestSource" - }, - "type": "array" + "interceptEndpointGroup": { + "description": "Required. The target InterceptEndpointGroup. When a firewall rule with this security profile attached matches a packet, the packet will be intercepted to the location-local target in this group.", + "type": "string" } }, "type": "object" }, - "AuthzPolicyAuthzRuleFromRequestSource": { - "description": "Describes the properties of a single source.", - "id": "AuthzPolicyAuthzRuleFromRequestSource", + "CustomMirroringProfile": { + "description": "CustomMirroringProfile defines out-of-band integration behavior (mirroring). It is used by mirroring rules with a MIRROR action.", + "id": "CustomMirroringProfile", "properties": { - "principals": { - "description": "Optional. A list of identities derived from the client's certificate. This field will not match on a request unless mutual TLS is enabled for the forwarding rule or Gateway. For Application Load Balancers, each identity is a string whose value is matched against the URI SAN, or DNS SAN, or SPIFFE ID, or the subject field in the client's certificate. For Cloud Service Mesh, each identity is a string whose value is matched against the URI SAN, or DNS SAN, or the subject field in the client's certificate. The match can be exact, prefix, suffix, or a substring match. One of exact, prefix, suffix, or contains must be specified. Limited to 5 principals.", + "mirroringEndpointGroup": { + "description": "Required. The target MirroringEndpointGroup. When a mirroring rule with this security profile attached matches a packet, a replica will be mirrored to the location-local target in this group.", + "type": "string" + } + }, + "type": "object" + }, + "Destination": { + "description": "Specification of traffic destination attributes.", + "id": "Destination", + "properties": { + "hosts": { + "description": "Required. List of host names to match. Matched against the \":authority\" header in http requests. At least one host should match. Each host can be an exact match, or a prefix match (example \"mydomain.*\") or a suffix match (example \"*.myorg.com\") or a presence (any) match \"*\".", "items": { - "$ref": "AuthzPolicyAuthzRuleStringMatch" + "type": "string" }, "type": "array" }, - "resources": { - "description": "Optional. A list of resources to match against the resource of the source VM of a request. Limited to 5 resources.", + "httpHeaderMatch": { + "$ref": "HttpHeaderMatch", + "description": "Optional. Match against key:value pair in http header. Provides a flexible match based on HTTP headers, for potentially advanced use cases. At least one header should match. Avoid using header matches to make authorization decisions unless there is a strong guarantee that requests arrive through a trusted client or proxy." + }, + "methods": { + "description": "Optional. A list of HTTP methods to match. At least one method should match. Should not be set for gRPC services.", "items": { - "$ref": "AuthzPolicyAuthzRuleRequestResource" + "type": "string" + }, + "type": "array" + }, + "ports": { + "description": "Required. List of destination ports to match. At least one port should match.", + "items": { + "format": "uint32", + "type": "integer" }, "type": "array" } }, "type": "object" }, - "AuthzPolicyAuthzRuleHeaderMatch": { - "description": "Determines how a HTTP header should be matched.", - "id": "AuthzPolicyAuthzRuleHeaderMatch", - "properties": { - "name": { - "description": "Optional. Specifies the name of the header in the request.", - "type": "string" - }, - "value": { - "$ref": "AuthzPolicyAuthzRuleStringMatch", - "description": "Optional. Specifies how the header match will be performed." - } - }, + "Empty": { + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", + "id": "Empty", + "properties": {}, "type": "object" }, - "AuthzPolicyAuthzRuleRequestResource": { - "description": "Describes the properties of a client VM resource accessing the internal application load balancers.", - "id": "AuthzPolicyAuthzRuleRequestResource", + "Expr": { + "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": "Expr", "properties": { - "iamServiceAccount": { - "$ref": "AuthzPolicyAuthzRuleStringMatch", - "description": "Optional. An IAM service account to match against the source service account of the VM sending the request." + "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" }, - "tagValueIdSet": { - "$ref": "AuthzPolicyAuthzRuleRequestResourceTagValueIdSet", - "description": "Optional. A list of resource tag value permanent IDs to match against the resource manager tags value associated with the source VM of a request." + "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" }, - "AuthzPolicyAuthzRuleRequestResourceTagValueIdSet": { - "description": "Describes a set of resource tag value permanent IDs to match against the resource manager tags value associated with the source VM of a request.", - "id": "AuthzPolicyAuthzRuleRequestResourceTagValueIdSet", + "FirewallEndpoint": { + "description": "Message describing Endpoint object", + "id": "FirewallEndpoint", "properties": { - "ids": { - "description": "Required. A list of resource tag value permanent IDs to match against the resource manager tags value associated with the source VM of a request. The match follows AND semantics which means all the ids must match. Limited to 5 matches.", + "associatedNetworks": { + "deprecated": true, + "description": "Output only. List of networks that are associated with this endpoint in the local zone. This is a projection of the FirewallEndpointAssociations pointing at this endpoint. A network will only appear in this list after traffic routing is fully configured. Format: projects/{project}/global/networks/{name}.", "items": { - "format": "int64", "type": "string" }, + "readOnly": true, + "type": "array" + }, + "associations": { + "description": "Output only. List of FirewallEndpointAssociations that are associated to this endpoint. An association will only appear in this list after traffic routing is fully configured.", + "items": { + "$ref": "FirewallEndpointAssociationReference" + }, + "readOnly": true, "type": "array" + }, + "billingProjectId": { + "description": "Required. Project to bill on endpoint uptime usage.", + "type": "string" + }, + "createTime": { + "description": "Output only. Create time stamp", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "Optional. Description of the firewall endpoint. Max length 2048 characters.", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Labels as key value pairs", + "type": "object" + }, + "name": { + "description": "Immutable. Identifier. name of resource", + "type": "string" + }, + "reconciling": { + "description": "Output only. Whether reconciling is in progress, recommended per https://google.aip.dev/128.", + "readOnly": true, + "type": "boolean" + }, + "satisfiesPzi": { + "description": "Output only. [Output Only] Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, + "satisfiesPzs": { + "description": "Output only. [Output Only] Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, + "state": { + "description": "Output only. Current state of the endpoint.", + "enum": [ + "STATE_UNSPECIFIED", + "CREATING", + "ACTIVE", + "DELETING", + "INACTIVE" + ], + "enumDescriptions": [ + "Not set.", + "Being created.", + "Processing configuration updates.", + "Being deleted.", + "Down or in an error state." + ], + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Output only. Update time stamp", + "format": "google-datetime", + "readOnly": true, + "type": "string" } }, "type": "object" }, - "AuthzPolicyAuthzRuleStringMatch": { - "description": "Determines how a string value should be matched.", - "id": "AuthzPolicyAuthzRuleStringMatch", + "FirewallEndpointAssociation": { + "description": "Message describing Association object", + "id": "FirewallEndpointAssociation", "properties": { - "contains": { - "description": "The input string must have the substring specified here. Note: empty contains match is not allowed, please use regex instead. Examples: * ``abc`` matches the value ``xyz.abc.def``", + "createTime": { + "description": "Output only. Create time stamp", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "disabled": { + "description": "Optional. Whether the association is disabled. True indicates that traffic won't be intercepted", + "type": "boolean" + }, + "firewallEndpoint": { + "description": "Required. The URL of the FirewallEndpoint that is being associated.", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Labels as key value pairs", + "type": "object" + }, + "name": { + "description": "Immutable. Identifier. name of resource", "type": "string" }, - "exact": { - "description": "The input string must match exactly the string specified here. Examples: * ``abc`` only matches the value ``abc``.", + "network": { + "description": "Required. The URL of the network that is being associated.", "type": "string" }, - "ignoreCase": { - "description": "If true, indicates the exact/prefix/suffix/contains matching should be case insensitive. For example, the matcher ``data`` will match both input string ``Data`` and ``data`` if set to true.", + "reconciling": { + "description": "Output only. Whether reconciling is in progress, recommended per https://google.aip.dev/128.", + "readOnly": true, "type": "boolean" }, - "prefix": { - "description": "The input string must have the prefix specified here. Note: empty prefix is not allowed, please use regex instead. Examples: * ``abc`` matches the value ``abc.xyz``", + "state": { + "description": "Output only. Current state of the association.", + "enum": [ + "STATE_UNSPECIFIED", + "CREATING", + "ACTIVE", + "DELETING", + "INACTIVE", + "ORPHAN" + ], + "enumDescriptions": [ + "Not set.", + "Being created.", + "Active and ready for traffic.", + "Being deleted.", + "Down or in an error state.", + "The project that housed the association has been deleted." + ], + "readOnly": true, "type": "string" }, - "suffix": { - "description": "The input string must have the suffix specified here. Note: empty prefix is not allowed, please use regex instead. Examples: * ``abc`` matches the value ``xyz.abc``", + "tlsInspectionPolicy": { + "description": "Optional. The URL of the TlsInspectionPolicy that is being associated.", + "type": "string" + }, + "updateTime": { + "description": "Output only. Update time stamp", + "format": "google-datetime", + "readOnly": true, "type": "string" } }, "type": "object" }, - "AuthzPolicyAuthzRuleTo": { - "description": "Describes properties of one or more targets of a request.", - "id": "AuthzPolicyAuthzRuleTo", + "FirewallEndpointAssociationReference": { + "description": "This is a subset of the FirewallEndpointAssociation message, containing fields to be used by the consumer.", + "id": "FirewallEndpointAssociationReference", "properties": { - "notOperations": { - "description": "Optional. Describes the negated properties of the targets of a request. Matches requests for operations that do not match the criteria specified in this field. At least one of operations or notOperations must be specified.", - "items": { - "$ref": "AuthzPolicyAuthzRuleToRequestOperation" - }, - "type": "array" + "name": { + "description": "Output only. The resource name of the FirewallEndpointAssociation. Format: projects/{project}/locations/{location}/firewallEndpointAssociations/{id}", + "readOnly": true, + "type": "string" }, - "operations": { - "description": "Optional. Describes properties of one or more targets of a request. At least one of operations or notOperations must be specified. Limited to 1 operation. A match occurs when ANY operation (in operations or notOperations) matches. Within an operation, the match follows AND semantics across fields and OR semantics within a field, i.e. a match occurs when ANY path matches AND ANY header matches and ANY method matches.", - "items": { - "$ref": "AuthzPolicyAuthzRuleToRequestOperation" - }, - "type": "array" + "network": { + "description": "Output only. The VPC network associated. Format: projects/{project}/global/networks/{name}.", + "readOnly": true, + "type": "string" } }, "type": "object" }, - "AuthzPolicyAuthzRuleToRequestOperation": { - "description": "Describes properties of one or more targets of a request.", - "id": "AuthzPolicyAuthzRuleToRequestOperation", + "GatewaySecurityPolicy": { + "description": "The GatewaySecurityPolicy resource contains a collection of GatewaySecurityPolicyRules and associated metadata.", + "id": "GatewaySecurityPolicy", "properties": { - "headerSet": { - "$ref": "AuthzPolicyAuthzRuleToRequestOperationHeaderSet", - "description": "Optional. A list of headers to match against in http header." + "createTime": { + "description": "Output only. The timestamp when the resource was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" }, - "hosts": { - "description": "Optional. A list of HTTP Hosts to match against. The match can be one of exact, prefix, suffix, or contains (substring match). Matches are always case sensitive unless the ignoreCase is set. Limited to 5 matches.", - "items": { - "$ref": "AuthzPolicyAuthzRuleStringMatch" - }, - "type": "array" + "description": { + "description": "Optional. Free-text description of the resource.", + "type": "string" }, - "methods": { - "description": "Optional. A list of HTTP methods to match against. Each entry must be a valid HTTP method name (GET, PUT, POST, HEAD, PATCH, DELETE, OPTIONS). It only allows exact match and is always case sensitive.", - "items": { - "type": "string" - }, - "type": "array" + "name": { + "description": "Required. Name of the resource. Name is of the form projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy} gateway_security_policy should match the pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).", + "type": "string" }, - "paths": { - "description": "Optional. A list of paths to match against. The match can be one of exact, prefix, suffix, or contains (substring match). Matches are always case sensitive unless the ignoreCase is set. Limited to 5 matches. Note that this path match includes the query parameters. For gRPC services, this should be a fully-qualified name of the form /package.service/method.", - "items": { - "$ref": "AuthzPolicyAuthzRuleStringMatch" - }, - "type": "array" - } - }, - "type": "object" - }, - "AuthzPolicyAuthzRuleToRequestOperationHeaderSet": { - "description": "Describes a set of HTTP headers to match against.", - "id": "AuthzPolicyAuthzRuleToRequestOperationHeaderSet", - "properties": { - "headers": { - "description": "Required. A list of headers to match against in http header. The match can be one of exact, prefix, suffix, or contains (substring match). The match follows AND semantics which means all the headers must match. Matches are always case sensitive unless the ignoreCase is set. Limited to 5 matches.", - "items": { - "$ref": "AuthzPolicyAuthzRuleHeaderMatch" - }, - "type": "array" - } - }, - "type": "object" - }, - "AuthzPolicyCustomProvider": { - "description": "Allows delegating authorization decisions to Cloud IAP or to Service Extensions.", - "id": "AuthzPolicyCustomProvider", - "properties": { - "authzExtension": { - "$ref": "AuthzPolicyCustomProviderAuthzExtension", - "description": "Optional. Delegate authorization decision to user authored Service Extension. Only one of cloudIap or authzExtension can be specified." + "tlsInspectionPolicy": { + "description": "Optional. Name of a TLS Inspection Policy resource that defines how TLS inspection will be performed for any rule(s) which enables it.", + "type": "string" }, - "cloudIap": { - "$ref": "AuthzPolicyCustomProviderCloudIap", - "description": "Optional. Delegates authorization decisions to Cloud IAP. Applicable only for managed load balancers. Enabling Cloud IAP at the AuthzPolicy level is not compatible with Cloud IAP settings in the BackendService. Enabling IAP in both places will result in request failure. Ensure that IAP is enabled in either the AuthzPolicy or the BackendService but not in both places." - } - }, - "type": "object" - }, - "AuthzPolicyCustomProviderAuthzExtension": { - "description": "Optional. Delegate authorization decision to user authored extension. Only one of cloudIap or authzExtension can be specified.", - "id": "AuthzPolicyCustomProviderAuthzExtension", - "properties": { - "resources": { - "description": "Required. A list of references to authorization extensions that will be invoked for requests matching this policy. Limited to 1 custom provider.", - "items": { - "type": "string" - }, - "type": "array" + "updateTime": { + "description": "Output only. The timestamp when the resource was updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" } }, "type": "object" }, - "AuthzPolicyCustomProviderCloudIap": { - "description": "Optional. Delegates authorization decisions to Cloud IAP. Applicable only for managed load balancers. Enabling Cloud IAP at the AuthzPolicy level is not compatible with Cloud IAP settings in the BackendService. Enabling IAP in both places will result in request failure. Ensure that IAP is enabled in either the AuthzPolicy or the BackendService but not in both places.", - "id": "AuthzPolicyCustomProviderCloudIap", - "properties": {}, - "type": "object" - }, - "AuthzPolicyTarget": { - "description": "Specifies the set of targets to which this policy should be applied to.", - "id": "AuthzPolicyTarget", + "GatewaySecurityPolicyRule": { + "description": "The GatewaySecurityPolicyRule resource is in a nested collection within a GatewaySecurityPolicy and represents a traffic matching condition and associated action to perform.", + "id": "GatewaySecurityPolicyRule", "properties": { - "loadBalancingScheme": { - "description": "Required. All gateways and forwarding rules referenced by this policy and extensions must share the same load balancing scheme. Supported values: `INTERNAL_MANAGED` and `EXTERNAL_MANAGED`. For more information, refer to [Backend services overview](https://cloud.google.com/load-balancing/docs/backend-service).", + "applicationMatcher": { + "description": "Optional. CEL expression for matching on L7/application level criteria.", + "type": "string" + }, + "basicProfile": { + "description": "Required. Profile which tells what the primitive action should be.", "enum": [ - "LOAD_BALANCING_SCHEME_UNSPECIFIED", - "INTERNAL_MANAGED", - "EXTERNAL_MANAGED", - "INTERNAL_SELF_MANAGED" + "BASIC_PROFILE_UNSPECIFIED", + "ALLOW", + "DENY" ], "enumDescriptions": [ - "Default value. Do not use.", - "Signifies that this is used for Regional internal or Cross-region internal Application Load Balancing.", - "Signifies that this is used for Global external or Regional external Application Load Balancing.", - "Signifies that this is used for Cloud Service Mesh. Meant for use by CSM GKE controller only." + "If there is not a mentioned action for the target.", + "Allow the matched traffic.", + "Deny the matched traffic." ], "type": "string" }, - "resources": { - "description": "Required. A list of references to the Forwarding Rules on which this policy will be applied.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "CancelOperationRequest": { - "description": "The request message for Operations.CancelOperation.", - "id": "CancelOperationRequest", - "properties": {}, - "type": "object" - }, - "CertificateProviderInstance": { - "description": "Specification of a TLS certificate provider instance. Workloads may have one or more CertificateProvider instances (plugins) and one of them is enabled and configured by specifying this message. Workloads use the values from this message to locate and load the CertificateProvider instance configuration.", - "id": "CertificateProviderInstance", - "properties": { - "pluginInstance": { - "description": "Required. Plugin instance name, used to locate and load CertificateProvider instance configuration. Set to \"google_cloud_private_spiffe\" to use Certificate Authority Service certificate provider instance.", - "type": "string" - } - }, - "type": "object" - }, - "ClientTlsPolicy": { - "description": "ClientTlsPolicy is a resource that specifies how a client should authenticate connections to backends of a service. This resource itself does not affect configuration unless it is attached to a backend service resource.", - "id": "ClientTlsPolicy", - "properties": { - "clientCertificate": { - "$ref": "GoogleCloudNetworksecurityV1CertificateProvider", - "description": "Optional. Defines a mechanism to provision client identity (public and private keys) for peer to peer authentication. The presence of this dictates mTLS." - }, "createTime": { - "description": "Output only. The timestamp when the resource was created.", + "description": "Output only. Time when the rule was created.", "format": "google-datetime", "readOnly": true, "type": "string" @@ -4752,30 +5851,29 @@ "description": "Optional. Free-text description of the resource.", "type": "string" }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Optional. Set of label tags associated with the resource.", - "type": "object" + "enabled": { + "description": "Required. Whether the rule is enforced.", + "type": "boolean" }, "name": { - "description": "Required. Name of the ClientTlsPolicy resource. It matches the pattern `projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}`", + "description": "Required. Immutable. Name of the resource. ame is the full resource name so projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}/rules/{rule} rule should match the pattern: (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).", "type": "string" }, - "serverValidationCa": { - "description": "Optional. Defines the mechanism to obtain the Certificate Authority certificate to validate the server certificate. If empty, client does not validate the server certificate.", - "items": { - "$ref": "ValidationCA" - }, - "type": "array" + "priority": { + "description": "Required. Priority of the rule. Lower number corresponds to higher precedence.", + "format": "int32", + "type": "integer" }, - "sni": { - "description": "Optional. Server Name Indication string to present to the server during TLS handshake. E.g: \"secure.example.com\".", + "sessionMatcher": { + "description": "Required. CEL expression for matching on session criteria.", "type": "string" }, + "tlsInspectionEnabled": { + "description": "Optional. Flag to enable TLS inspection of traffic matching on , can only be true if the parent GatewaySecurityPolicy references a TLSInspectionConfig.", + "type": "boolean" + }, "updateTime": { - "description": "Output only. The timestamp when the resource was updated.", + "description": "Output only. Time when the rule was updated.", "format": "google-datetime", "readOnly": true, "type": "string" @@ -4783,187 +5881,253 @@ }, "type": "object" }, - "CloneAddressGroupItemsRequest": { - "description": "Request used by the CloneAddressGroupItems method.", - "id": "CloneAddressGroupItemsRequest", + "GoogleCloudNetworksecurityV1CertificateProvider": { + "description": "Specification of certificate provider. Defines the mechanism to obtain the certificate and private key for peer to peer authentication.", + "id": "GoogleCloudNetworksecurityV1CertificateProvider", "properties": { - "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" + "certificateProviderInstance": { + "$ref": "CertificateProviderInstance", + "description": "The certificate provider instance specification that will be passed to the data plane, which will be used to load necessary credential information." }, - "sourceAddressGroup": { - "description": "Required. Source address group to clone items from.", - "type": "string" + "grpcEndpoint": { + "$ref": "GoogleCloudNetworksecurityV1GrpcEndpoint", + "description": "gRPC specific configuration to access the gRPC server to obtain the cert and private key." } }, "type": "object" }, - "CustomInterceptProfile": { - "description": "CustomInterceptProfile defines in-band integration behavior (intercept). It is used by firewall rules with an APPLY_SECURITY_PROFILE_GROUP action.", - "id": "CustomInterceptProfile", + "GoogleCloudNetworksecurityV1GrpcEndpoint": { + "description": "Specification of the GRPC Endpoint.", + "id": "GoogleCloudNetworksecurityV1GrpcEndpoint", "properties": { - "interceptEndpointGroup": { - "description": "Required. The target InterceptEndpointGroup. When a firewall rule with this security profile attached matches a packet, the packet will be intercepted to the location-local target in this group.", + "targetUri": { + "description": "Required. The target URI of the gRPC endpoint. Only UDS path is supported, and should start with \"unix:\".", "type": "string" } }, "type": "object" }, - "CustomMirroringProfile": { - "description": "CustomMirroringProfile defines out-of-band integration behavior (mirroring). It is used by mirroring rules with a MIRROR action.", - "id": "CustomMirroringProfile", + "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": { - "mirroringEndpointGroup": { - "description": "Required. The target MirroringEndpointGroup. When a mirroring rule with this security profile attached matches a packet, a replica will be mirrored to the location-local target in this group.", + "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" }, - "Destination": { - "description": "Specification of traffic destination attributes.", - "id": "Destination", + "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": { - "hosts": { - "description": "Required. List of host names to match. Matched against the \":authority\" header in http requests. At least one host should match. Each host can be an exact match, or a prefix match (example \"mydomain.*\") or a suffix match (example \"*.myorg.com\") or a presence (any) match \"*\".", + "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" }, - "httpHeaderMatch": { - "$ref": "HttpHeaderMatch", - "description": "Optional. Match against key:value pair in http header. Provides a flexible match based on HTTP headers, for potentially advanced use cases. At least one header should match. Avoid using header matches to make authorization decisions unless there is a strong guarantee that requests arrive through a trusted client or proxy." + "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": "Expr", + "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)." }, - "methods": { - "description": "Optional. A list of HTTP methods to match. At least one method should match. Should not be set for gRPC services.", + "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" }, - "ports": { - "description": "Required. List of destination ports to match. At least one port should match.", - "items": { - "format": "uint32", - "type": "integer" - }, - "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" }, - "Empty": { - "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", - "id": "Empty", - "properties": {}, - "type": "object" - }, - "Expr": { - "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": "Expr", + "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": { - "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" + "auditConfigs": { + "description": "Specifies cloud audit logging configuration for this policy.", + "items": { + "$ref": "GoogleIamV1AuditConfig" + }, + "type": "array" }, - "expression": { - "description": "Textual representation of an expression in Common Expression Language syntax.", - "type": "string" + "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" }, - "location": { - "description": "Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.", + "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" }, - "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.", + "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" }, - "FirewallEndpoint": { - "description": "Message describing Endpoint object", - "id": "FirewallEndpoint", + "GoogleIamV1TestIamPermissionsRequest": { + "description": "Request message for `TestIamPermissions` method.", + "id": "GoogleIamV1TestIamPermissionsRequest", "properties": { - "associatedNetworks": { - "deprecated": true, - "description": "Output only. List of networks that are associated with this endpoint in the local zone. This is a projection of the FirewallEndpointAssociations pointing at this endpoint. A network will only appear in this list after traffic routing is fully configured. Format: projects/{project}/global/networks/{name}.", + "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" }, - "readOnly": true, "type": "array" - }, - "associations": { - "description": "Output only. List of FirewallEndpointAssociations that are associated to this endpoint. An association will only appear in this list after traffic routing is fully configured.", + } + }, + "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": { - "$ref": "FirewallEndpointAssociationReference" + "type": "string" }, - "readOnly": true, "type": "array" - }, - "billingProjectId": { - "description": "Required. Project to bill on endpoint uptime usage.", + } + }, + "type": "object" + }, + "HttpHeaderMatch": { + "description": "Specification of HTTP header match attributes.", + "id": "HttpHeaderMatch", + "properties": { + "headerName": { + "description": "Required. The name of the HTTP header to match. For matching against the HTTP request's authority, use a headerMatch with the header name \":authority\". For matching a request's method, use the headerName \":method\".", "type": "string" }, + "regexMatch": { + "description": "Required. The value of the header must match the regular expression specified in regexMatch. For regular expression grammar, please see: en.cppreference.com/w/cpp/regex/ecmascript For matching against a port specified in the HTTP request, use a headerMatch with headerName set to Host and a regular expression that satisfies the RFC2616 Host header's port specifier.", + "type": "string" + } + }, + "type": "object" + }, + "InterceptDeployment": { + "description": "A deployment represents a zonal intercept backend ready to accept GENEVE-encapsulated traffic, e.g. a zonal instance group fronted by an internal passthrough load balancer. Deployments are always part of a global deployment group which represents a global intercept service.", + "id": "InterceptDeployment", + "properties": { "createTime": { - "description": "Output only. Create time stamp", + "description": "Output only. The timestamp when the resource was created. See https://google.aip.dev/148#timestamps.", "format": "google-datetime", "readOnly": true, "type": "string" }, "description": { - "description": "Optional. Description of the firewall endpoint. Max length 2048 characters.", + "description": "Optional. User-provided description of the deployment. Used as additional context for the deployment.", + "type": "string" + }, + "forwardingRule": { + "description": "Required. Immutable. The regional forwarding rule that fronts the interceptors, for example: `projects/123456789/regions/us-central1/forwardingRules/my-rule`. See https://google.aip.dev/124.", + "type": "string" + }, + "interceptDeploymentGroup": { + "description": "Required. Immutable. The deployment group that this deployment is a part of, for example: `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`. See https://google.aip.dev/124.", "type": "string" }, "labels": { "additionalProperties": { "type": "string" }, - "description": "Optional. Labels as key value pairs", + "description": "Optional. Labels are key/value pairs that help to organize and filter resources.", "type": "object" }, "name": { - "description": "Immutable. Identifier. name of resource", + "description": "Immutable. Identifier. The resource name of this deployment, for example: `projects/123456789/locations/us-central1-a/interceptDeployments/my-dep`. See https://google.aip.dev/122 for more details.", "type": "string" }, "reconciling": { - "description": "Output only. Whether reconciling is in progress, recommended per https://google.aip.dev/128.", - "readOnly": true, - "type": "boolean" - }, - "satisfiesPzi": { - "description": "Output only. [Output Only] Reserved for future use.", - "readOnly": true, - "type": "boolean" - }, - "satisfiesPzs": { - "description": "Output only. [Output Only] Reserved for future use.", + "description": "Output only. The current state of the resource does not match the user's intended state, and the system is working to reconcile them. This part of the normal operation (e.g. linking a new association to the parent group). See https://google.aip.dev/128.", "readOnly": true, "type": "boolean" }, "state": { - "description": "Output only. Current state of the endpoint.", + "description": "Output only. The current state of the deployment. See https://google.aip.dev/216.", "enum": [ "STATE_UNSPECIFIED", - "CREATING", "ACTIVE", + "CREATING", "DELETING", - "INACTIVE" + "OUT_OF_SYNC", + "DELETE_FAILED" ], "enumDescriptions": [ - "Not set.", - "Being created.", - "Processing configuration updates.", - "Being deleted.", - "Down or in an error state." + "State not set (this is not a valid state).", + "The deployment is ready and in sync with the parent group.", + "The deployment is being created.", + "The deployment is being deleted.", + "The deployment is out of sync with the parent group. In most cases, this is a result of a transient issue within the system (e.g. a delayed data-path config) and the system is expected to recover automatically. See the parent deployment group's state for more details.", + "An attempt to delete the deployment has failed. This is a terminal state and the deployment is not expected to recover. The only permitted operation is to retry deleting the deployment." ], "readOnly": true, "type": "string" }, "updateTime": { - "description": "Output only. Update time stamp", + "description": "Output only. The timestamp when the resource was most recently updated. See https://google.aip.dev/148#timestamps.", "format": "google-datetime", "readOnly": true, "type": "string" @@ -4971,71 +6135,84 @@ }, "type": "object" }, - "FirewallEndpointAssociation": { - "description": "Message describing Association object", - "id": "FirewallEndpointAssociation", + "InterceptDeploymentGroup": { + "description": "A deployment group aggregates many zonal intercept backends (deployments) into a single global intercept service. Consumers can connect this service using an endpoint group.", + "id": "InterceptDeploymentGroup", "properties": { + "connectedEndpointGroups": { + "description": "Output only. The list of endpoint groups that are connected to this resource.", + "items": { + "$ref": "InterceptDeploymentGroupConnectedEndpointGroup" + }, + "readOnly": true, + "type": "array" + }, "createTime": { - "description": "Output only. Create time stamp", + "description": "Output only. The timestamp when the resource was created. See https://google.aip.dev/148#timestamps.", "format": "google-datetime", "readOnly": true, "type": "string" }, - "disabled": { - "description": "Optional. Whether the association is disabled. True indicates that traffic won't be intercepted", - "type": "boolean" - }, - "firewallEndpoint": { - "description": "Required. The URL of the FirewallEndpoint that is being associated.", + "description": { + "description": "Optional. User-provided description of the deployment group. Used as additional context for the deployment group.", "type": "string" }, "labels": { "additionalProperties": { "type": "string" }, - "description": "Optional. Labels as key value pairs", + "description": "Optional. Labels are key/value pairs that help to organize and filter resources.", "type": "object" }, + "locations": { + "description": "Output only. The list of locations where the deployment group is present.", + "items": { + "$ref": "InterceptLocation" + }, + "readOnly": true, + "type": "array" + }, "name": { - "description": "Immutable. Identifier. name of resource", + "description": "Immutable. Identifier. The resource name of this deployment group, for example: `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`. See https://google.aip.dev/122 for more details.", "type": "string" }, + "nestedDeployments": { + "deprecated": true, + "description": "Output only. The list of Intercept Deployments that belong to this group.", + "items": { + "$ref": "InterceptDeploymentGroupDeployment" + }, + "readOnly": true, + "type": "array" + }, "network": { - "description": "Required. The URL of the network that is being associated.", + "description": "Required. Immutable. The network that will be used for all child deployments, for example: `projects/{project}/global/networks/{network}`. See https://google.aip.dev/124.", "type": "string" }, "reconciling": { - "description": "Output only. Whether reconciling is in progress, recommended per https://google.aip.dev/128.", + "description": "Output only. The current state of the resource does not match the user's intended state, and the system is working to reconcile them. This is part of the normal operation (e.g. adding a new deployment to the group) See https://google.aip.dev/128.", "readOnly": true, "type": "boolean" }, "state": { - "description": "Output only. Current state of the association.", + "description": "Output only. The current state of the deployment group. See https://google.aip.dev/216.", "enum": [ "STATE_UNSPECIFIED", - "CREATING", "ACTIVE", - "DELETING", - "INACTIVE", - "ORPHAN" + "CREATING", + "DELETING" ], "enumDescriptions": [ - "Not set.", - "Being created.", - "Active and ready for traffic.", - "Being deleted.", - "Down or in an error state.", - "The project that housed the association has been deleted." + "State not set (this is not a valid state).", + "The deployment group is ready.", + "The deployment group is being created.", + "The deployment group is being deleted." ], "readOnly": true, "type": "string" }, - "tlsInspectionPolicy": { - "description": "Optional. The URL of the TlsInspectionPolicy that is being associated.", - "type": "string" - }, "updateTime": { - "description": "Output only. Update time stamp", + "description": "Output only. The timestamp when the resource was most recently updated. See https://google.aip.dev/148#timestamps.", "format": "google-datetime", "readOnly": true, "type": "string" @@ -5043,297 +6220,322 @@ }, "type": "object" }, - "FirewallEndpointAssociationReference": { - "description": "This is a subset of the FirewallEndpointAssociation message, containing fields to be used by the consumer.", - "id": "FirewallEndpointAssociationReference", + "InterceptDeploymentGroupConnectedEndpointGroup": { + "description": "An endpoint group connected to this deployment group.", + "id": "InterceptDeploymentGroupConnectedEndpointGroup", "properties": { "name": { - "description": "Output only. The resource name of the FirewallEndpointAssociation. Format: projects/{project}/locations/{location}/firewallEndpointAssociations/{id}", - "readOnly": true, - "type": "string" - }, - "network": { - "description": "Output only. The VPC network associated. Format: projects/{project}/global/networks/{name}.", + "description": "Output only. The connected endpoint group's resource name, for example: `projects/123456789/locations/global/interceptEndpointGroups/my-eg`. See https://google.aip.dev/124.", "readOnly": true, "type": "string" } }, "type": "object" }, - "GatewaySecurityPolicy": { - "description": "The GatewaySecurityPolicy resource contains a collection of GatewaySecurityPolicyRules and associated metadata.", - "id": "GatewaySecurityPolicy", + "InterceptDeploymentGroupDeployment": { + "description": "A deployment belonging to this deployment group.", + "id": "InterceptDeploymentGroupDeployment", "properties": { - "createTime": { - "description": "Output only. The timestamp when the resource was created.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "description": { - "description": "Optional. Free-text description of the resource.", - "type": "string" - }, "name": { - "description": "Required. Name of the resource. Name is of the form projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy} gateway_security_policy should match the pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).", - "type": "string" - }, - "tlsInspectionPolicy": { - "description": "Optional. Name of a TLS Inspection Policy resource that defines how TLS inspection will be performed for any rule(s) which enables it.", + "description": "Output only. The name of the Intercept Deployment, in the format: `projects/{project}/locations/{location}/interceptDeployments/{intercept_deployment}`.", + "readOnly": true, "type": "string" }, - "updateTime": { - "description": "Output only. The timestamp when the resource was updated.", - "format": "google-datetime", + "state": { + "description": "Output only. Most recent known state of the deployment.", + "enum": [ + "STATE_UNSPECIFIED", + "ACTIVE", + "CREATING", + "DELETING", + "OUT_OF_SYNC", + "DELETE_FAILED" + ], + "enumDescriptions": [ + "State not set (this is not a valid state).", + "The deployment is ready and in sync with the parent group.", + "The deployment is being created.", + "The deployment is being deleted.", + "The deployment is out of sync with the parent group. In most cases, this is a result of a transient issue within the system (e.g. a delayed data-path config) and the system is expected to recover automatically. See the parent deployment group's state for more details.", + "An attempt to delete the deployment has failed. This is a terminal state and the deployment is not expected to recover. The only permitted operation is to retry deleting the deployment." + ], "readOnly": true, "type": "string" } }, "type": "object" }, - "GatewaySecurityPolicyRule": { - "description": "The GatewaySecurityPolicyRule resource is in a nested collection within a GatewaySecurityPolicy and represents a traffic matching condition and associated action to perform.", - "id": "GatewaySecurityPolicyRule", + "InterceptEndpointGroup": { + "description": "An endpoint group is a consumer frontend for a deployment group (backend). In order to configure intercept for a network, consumers must create: - An association between their network and the endpoint group. - A security profile that points to the endpoint group. - A firewall rule that references the security profile (group).", + "id": "InterceptEndpointGroup", "properties": { - "applicationMatcher": { - "description": "Optional. CEL expression for matching on L7/application level criteria.", - "type": "string" + "associations": { + "description": "Output only. List of associations to this endpoint group.", + "items": { + "$ref": "InterceptEndpointGroupAssociationDetails" + }, + "readOnly": true, + "type": "array" }, - "basicProfile": { - "description": "Required. Profile which tells what the primitive action should be.", - "enum": [ - "BASIC_PROFILE_UNSPECIFIED", - "ALLOW", - "DENY" - ], - "enumDescriptions": [ - "If there is not a mentioned action for the target.", - "Allow the matched traffic.", - "Deny the matched traffic." - ], - "type": "string" + "connectedDeploymentGroup": { + "$ref": "InterceptEndpointGroupConnectedDeploymentGroup", + "description": "Output only. Details about the connected deployment group to this endpoint group.", + "readOnly": true }, "createTime": { - "description": "Output only. Time when the rule was created.", + "description": "Output only. The timestamp when the resource was created. See https://google.aip.dev/148#timestamps.", "format": "google-datetime", "readOnly": true, "type": "string" }, "description": { - "description": "Optional. Free-text description of the resource.", + "description": "Optional. User-provided description of the endpoint group. Used as additional context for the endpoint group.", "type": "string" }, - "enabled": { - "description": "Required. Whether the rule is enforced.", - "type": "boolean" - }, - "name": { - "description": "Required. Immutable. Name of the resource. ame is the full resource name so projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}/rules/{rule} rule should match the pattern: (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).", + "interceptDeploymentGroup": { + "description": "Required. Immutable. The deployment group that this endpoint group is connected to, for example: `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`. See https://google.aip.dev/124.", "type": "string" }, - "priority": { - "description": "Required. Priority of the rule. Lower number corresponds to higher precedence.", - "format": "int32", - "type": "integer" + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Labels are key/value pairs that help to organize and filter resources.", + "type": "object" }, - "sessionMatcher": { - "description": "Required. CEL expression for matching on session criteria.", + "name": { + "description": "Immutable. Identifier. The resource name of this endpoint group, for example: `projects/123456789/locations/global/interceptEndpointGroups/my-eg`. See https://google.aip.dev/122 for more details.", "type": "string" }, - "tlsInspectionEnabled": { - "description": "Optional. Flag to enable TLS inspection of traffic matching on , can only be true if the parent GatewaySecurityPolicy references a TLSInspectionConfig.", - "type": "boolean" - }, - "updateTime": { - "description": "Output only. Time when the rule was updated.", - "format": "google-datetime", + "reconciling": { + "description": "Output only. The current state of the resource does not match the user's intended state, and the system is working to reconcile them. This is part of the normal operation (e.g. adding a new association to the group). See https://google.aip.dev/128.", "readOnly": true, - "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudNetworksecurityV1CertificateProvider": { - "description": "Specification of certificate provider. Defines the mechanism to obtain the certificate and private key for peer to peer authentication.", - "id": "GoogleCloudNetworksecurityV1CertificateProvider", - "properties": { - "certificateProviderInstance": { - "$ref": "CertificateProviderInstance", - "description": "The certificate provider instance specification that will be passed to the data plane, which will be used to load necessary credential information." - }, - "grpcEndpoint": { - "$ref": "GoogleCloudNetworksecurityV1GrpcEndpoint", - "description": "gRPC specific configuration to access the gRPC server to obtain the cert and private key." - } - }, - "type": "object" - }, - "GoogleCloudNetworksecurityV1GrpcEndpoint": { - "description": "Specification of the GRPC Endpoint.", - "id": "GoogleCloudNetworksecurityV1GrpcEndpoint", - "properties": { - "targetUri": { - "description": "Required. The target URI of the gRPC endpoint. Only UDS path is supported, and should start with \"unix:\".", - "type": "string" - } - }, - "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" + "type": "boolean" }, - "logType": { - "description": "The log type that this config enables.", + "state": { + "description": "Output only. The current state of the endpoint group. See https://google.aip.dev/216.", "enum": [ - "LOG_TYPE_UNSPECIFIED", - "ADMIN_READ", - "DATA_WRITE", - "DATA_READ" + "STATE_UNSPECIFIED", + "ACTIVE", + "CLOSED", + "CREATING", + "DELETING", + "OUT_OF_SYNC", + "DELETE_FAILED" ], "enumDescriptions": [ - "Default case. Should never be this.", - "Admin reads. Example: CloudIAM getIamPolicy", - "Data writes. Example: CloudSQL Users create", - "Data reads. Example: CloudSQL Users list" + "State not set (this is not a valid state).", + "The endpoint group is ready and in sync with the target deployment group.", + "The deployment group backing this endpoint group has been force-deleted. This endpoint group cannot be used and interception is effectively disabled.", + "The endpoint group is being created.", + "The endpoint group is being deleted.", + "The endpoint group is out of sync with the backing deployment group. In most cases, this is a result of a transient issue within the system (e.g. an inaccessible location) and the system is expected to recover automatically. See the associations field for details per network and location.", + "An attempt to delete the endpoint group has failed. This is a terminal state and the endpoint group is not expected to recover. The only permitted operation is to retry deleting the endpoint group." ], + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Output only. The timestamp when the resource was most recently updated. See https://google.aip.dev/148#timestamps.", + "format": "google-datetime", + "readOnly": true, "type": "string" } }, "type": "object" }, - "GoogleIamV1Binding": { - "description": "Associates `members`, or principals, with a `role`.", - "id": "GoogleIamV1Binding", + "InterceptEndpointGroupAssociation": { + "description": "An endpoint group association represents a link between a network and an endpoint group in the organization. Creating an association creates the networking infrastructure linking the network to the endpoint group, but does not enable intercept by itself. To enable intercept, the user must also create a network firewall policy containing intercept rules and associate it with the network.", + "id": "InterceptEndpointGroupAssociation", "properties": { - "condition": { - "$ref": "Expr", - "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)." + "createTime": { + "description": "Output only. The timestamp when the resource was created. See https://google.aip.dev/148#timestamps.", + "format": "google-datetime", + "readOnly": true, + "type": "string" }, - "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": { + "interceptEndpointGroup": { + "description": "Required. Immutable. The endpoint group that this association is connected to, for example: `projects/123456789/locations/global/interceptEndpointGroups/my-eg`. See https://google.aip.dev/124.", + "type": "string" + }, + "labels": { + "additionalProperties": { "type": "string" }, - "type": "array" + "description": "Optional. Labels are key/value pairs that help to organize and filter resources.", + "type": "object" }, - "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.", + "locations": { + "description": "Output only. The list of locations where the association is configured. This information is retrieved from the linked endpoint group.", "items": { - "$ref": "GoogleIamV1AuditConfig" + "$ref": "InterceptLocation" }, + "readOnly": true, "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`.", + "locationsDetails": { + "deprecated": true, + "description": "Output only. The list of locations where the association is present. This information is retrieved from the linked endpoint group, and not configured as part of the association itself.", "items": { - "$ref": "GoogleIamV1Binding" + "$ref": "InterceptEndpointGroupAssociationLocationDetails" }, + "readOnly": true, "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", + "name": { + "description": "Immutable. Identifier. The resource name of this endpoint group association, for example: `projects/123456789/locations/global/interceptEndpointGroupAssociations/my-eg-association`. See https://google.aip.dev/122 for more details.", "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" + "network": { + "description": "Required. Immutable. The VPC network that is associated. for example: `projects/123456789/global/networks/my-network`. See https://google.aip.dev/124.", + "type": "string" + }, + "reconciling": { + "description": "Output only. The current state of the resource does not match the user's intended state, and the system is working to reconcile them. This part of the normal operation (e.g. adding a new location to the target deployment group). See https://google.aip.dev/128.", + "readOnly": true, + "type": "boolean" + }, + "state": { + "description": "Output only. Current state of the endpoint group association.", + "enum": [ + "STATE_UNSPECIFIED", + "ACTIVE", + "CREATING", + "DELETING", + "CLOSED", + "OUT_OF_SYNC", + "DELETE_FAILED" + ], + "enumDescriptions": [ + "Not set.", + "The association is ready and in sync with the linked endpoint group.", + "The association is being created.", + "The association is being deleted.", + "The association is disabled due to a breaking change in another resource.", + "The association is out of sync with the linked endpoint group. In most cases, this is a result of a transient issue within the system (e.g. an inaccessible location) and the system is expected to recover automatically. Check the `locations_details` field for more details.", + "An attempt to delete the association has failed. This is a terminal state and the association is not expected to be usable as some of its resources have been deleted. The only permitted operation is to retry deleting the association." + ], + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Output only. The timestamp when the resource was most recently updated. See https://google.aip.dev/148#timestamps.", + "format": "google-datetime", + "readOnly": true, + "type": "string" } }, "type": "object" }, - "GoogleIamV1SetIamPolicyRequest": { - "description": "Request message for `SetIamPolicy` method.", - "id": "GoogleIamV1SetIamPolicyRequest", + "InterceptEndpointGroupAssociationDetails": { + "description": "The endpoint group's view of a connected association.", + "id": "InterceptEndpointGroupAssociationDetails", "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." + "name": { + "description": "Output only. The connected association's resource name, for example: `projects/123456789/locations/global/interceptEndpointGroupAssociations/my-ega`. See https://google.aip.dev/124.", + "readOnly": true, + "type": "string" }, - "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", + "network": { + "description": "Output only. The associated network, for example: projects/123456789/global/networks/my-network. See https://google.aip.dev/124.", + "readOnly": true, + "type": "string" + }, + "state": { + "description": "Output only. Most recent known state of the association.", + "enum": [ + "STATE_UNSPECIFIED", + "ACTIVE", + "CREATING", + "DELETING", + "CLOSED", + "OUT_OF_SYNC", + "DELETE_FAILED" + ], + "enumDescriptions": [ + "Not set.", + "The association is ready and in sync with the linked endpoint group.", + "The association is being created.", + "The association is being deleted.", + "The association is disabled due to a breaking change in another resource.", + "The association is out of sync with the linked endpoint group. In most cases, this is a result of a transient issue within the system (e.g. an inaccessible location) and the system is expected to recover automatically. Check the `locations_details` field for more details.", + "An attempt to delete the association has failed. This is a terminal state and the association is not expected to be usable as some of its resources have been deleted. The only permitted operation is to retry deleting the association." + ], + "readOnly": true, "type": "string" } }, "type": "object" }, - "GoogleIamV1TestIamPermissionsRequest": { - "description": "Request message for `TestIamPermissions` method.", - "id": "GoogleIamV1TestIamPermissionsRequest", + "InterceptEndpointGroupAssociationLocationDetails": { + "description": "Contains details about the state of an association in a specific cloud location.", + "id": "InterceptEndpointGroupAssociationLocationDetails", "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" + "location": { + "description": "Output only. The cloud location, e.g. \"us-central1-a\" or \"asia-south1\".", + "readOnly": true, + "type": "string" + }, + "state": { + "description": "Output only. The current state of the association in this location.", + "enum": [ + "STATE_UNSPECIFIED", + "ACTIVE", + "OUT_OF_SYNC" + ], + "enumDescriptions": [ + "Not set.", + "The association is ready and in sync with the linked endpoint group.", + "The association is out of sync with the linked endpoint group. In most cases, this is a result of a transient issue within the system (e.g. an inaccessible location) and the system is expected to recover automatically." + ], + "readOnly": true, + "type": "string" } }, "type": "object" }, - "GoogleIamV1TestIamPermissionsResponse": { - "description": "Response message for `TestIamPermissions` method.", - "id": "GoogleIamV1TestIamPermissionsResponse", + "InterceptEndpointGroupConnectedDeploymentGroup": { + "description": "The endpoint group's view of a connected deployment group.", + "id": "InterceptEndpointGroupConnectedDeploymentGroup", "properties": { - "permissions": { - "description": "A subset of `TestPermissionsRequest.permissions` that the caller is allowed.", + "locations": { + "description": "Output only. The list of locations where the deployment group is present.", "items": { - "type": "string" + "$ref": "InterceptLocation" }, + "readOnly": true, "type": "array" + }, + "name": { + "description": "Output only. The connected deployment group's resource name, for example: `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`. See https://google.aip.dev/124.", + "readOnly": true, + "type": "string" } }, "type": "object" }, - "HttpHeaderMatch": { - "description": "Specification of HTTP header match attributes.", - "id": "HttpHeaderMatch", + "InterceptLocation": { + "description": "Details about intercept in a specific cloud location.", + "id": "InterceptLocation", "properties": { - "headerName": { - "description": "Required. The name of the HTTP header to match. For matching against the HTTP request's authority, use a headerMatch with the header name \":authority\". For matching a request's method, use the headerName \":method\".", + "location": { + "description": "Output only. The cloud location, e.g. \"us-central1-a\" or \"asia-south1\".", + "readOnly": true, "type": "string" }, - "regexMatch": { - "description": "Required. The value of the header must match the regular expression specified in regexMatch. For regular expression grammar, please see: en.cppreference.com/w/cpp/regex/ecmascript For matching against a port specified in the HTTP request, use a headerMatch with headerName set to Host and a regular expression that satisfies the RFC2616 Host header's port specifier.", + "state": { + "description": "Output only. The current state of the association in this location.", + "enum": [ + "STATE_UNSPECIFIED", + "ACTIVE", + "OUT_OF_SYNC" + ], + "enumDescriptions": [ + "State not set (this is not a valid state).", + "The resource is ready and in sync in the location.", + "The resource is out of sync in the location. In most cases, this is a result of a transient issue within the system (e.g. an inaccessible location) and the system is expected to recover automatically." + ], + "readOnly": true, "type": "string" } }, @@ -5563,6 +6765,85 @@ }, "type": "object" }, + "ListInterceptDeploymentGroupsResponse": { + "description": "Response message for ListInterceptDeploymentGroups.", + "id": "ListInterceptDeploymentGroupsResponse", + "properties": { + "interceptDeploymentGroups": { + "description": "The deployment groups from the specified parent.", + "items": { + "$ref": "InterceptDeploymentGroup" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. See https://google.aip.dev/158 for more details.", + "type": "string" + } + }, + "type": "object" + }, + "ListInterceptDeploymentsResponse": { + "description": "Response message for ListInterceptDeployments.", + "id": "ListInterceptDeploymentsResponse", + "properties": { + "interceptDeployments": { + "description": "The deployments from the specified parent.", + "items": { + "$ref": "InterceptDeployment" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. See https://google.aip.dev/158 for more details.", + "type": "string" + }, + "unreachable": { + "description": "Locations that could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "ListInterceptEndpointGroupAssociationsResponse": { + "description": "Response message for ListInterceptEndpointGroupAssociations.", + "id": "ListInterceptEndpointGroupAssociationsResponse", + "properties": { + "interceptEndpointGroupAssociations": { + "description": "The associations from the specified parent.", + "items": { + "$ref": "InterceptEndpointGroupAssociation" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. See https://google.aip.dev/158 for more details.", + "type": "string" + } + }, + "type": "object" + }, + "ListInterceptEndpointGroupsResponse": { + "description": "Response message for ListInterceptEndpointGroups.", + "id": "ListInterceptEndpointGroupsResponse", + "properties": { + "interceptEndpointGroups": { + "description": "The endpoint groups from the specified parent.", + "items": { + "$ref": "InterceptEndpointGroup" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. See https://google.aip.dev/158 for more details.", + "type": "string" + } + }, + "type": "object" + }, "ListLocationsResponse": { "description": "The response message for Locations.ListLocations.", "id": "ListLocationsResponse", diff --git a/networksecurity/v1/networksecurity-gen.go b/networksecurity/v1/networksecurity-gen.go index 72965c5459f..ccb5e7733e8 100644 --- a/networksecurity/v1/networksecurity-gen.go +++ b/networksecurity/v1/networksecurity-gen.go @@ -258,6 +258,10 @@ func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs.ClientTlsPolicies = NewProjectsLocationsClientTlsPoliciesService(s) rs.FirewallEndpointAssociations = NewProjectsLocationsFirewallEndpointAssociationsService(s) rs.GatewaySecurityPolicies = NewProjectsLocationsGatewaySecurityPoliciesService(s) + rs.InterceptDeploymentGroups = NewProjectsLocationsInterceptDeploymentGroupsService(s) + rs.InterceptDeployments = NewProjectsLocationsInterceptDeploymentsService(s) + rs.InterceptEndpointGroupAssociations = NewProjectsLocationsInterceptEndpointGroupAssociationsService(s) + rs.InterceptEndpointGroups = NewProjectsLocationsInterceptEndpointGroupsService(s) rs.MirroringDeploymentGroups = NewProjectsLocationsMirroringDeploymentGroupsService(s) rs.MirroringDeployments = NewProjectsLocationsMirroringDeploymentsService(s) rs.MirroringEndpointGroupAssociations = NewProjectsLocationsMirroringEndpointGroupAssociationsService(s) @@ -284,6 +288,14 @@ type ProjectsLocationsService struct { GatewaySecurityPolicies *ProjectsLocationsGatewaySecurityPoliciesService + InterceptDeploymentGroups *ProjectsLocationsInterceptDeploymentGroupsService + + InterceptDeployments *ProjectsLocationsInterceptDeploymentsService + + InterceptEndpointGroupAssociations *ProjectsLocationsInterceptEndpointGroupAssociationsService + + InterceptEndpointGroups *ProjectsLocationsInterceptEndpointGroupsService + MirroringDeploymentGroups *ProjectsLocationsMirroringDeploymentGroupsService MirroringDeployments *ProjectsLocationsMirroringDeploymentsService @@ -367,6 +379,42 @@ type ProjectsLocationsGatewaySecurityPoliciesRulesService struct { s *Service } +func NewProjectsLocationsInterceptDeploymentGroupsService(s *Service) *ProjectsLocationsInterceptDeploymentGroupsService { + rs := &ProjectsLocationsInterceptDeploymentGroupsService{s: s} + return rs +} + +type ProjectsLocationsInterceptDeploymentGroupsService struct { + s *Service +} + +func NewProjectsLocationsInterceptDeploymentsService(s *Service) *ProjectsLocationsInterceptDeploymentsService { + rs := &ProjectsLocationsInterceptDeploymentsService{s: s} + return rs +} + +type ProjectsLocationsInterceptDeploymentsService struct { + s *Service +} + +func NewProjectsLocationsInterceptEndpointGroupAssociationsService(s *Service) *ProjectsLocationsInterceptEndpointGroupAssociationsService { + rs := &ProjectsLocationsInterceptEndpointGroupAssociationsService{s: s} + return rs +} + +type ProjectsLocationsInterceptEndpointGroupAssociationsService struct { + s *Service +} + +func NewProjectsLocationsInterceptEndpointGroupsService(s *Service) *ProjectsLocationsInterceptEndpointGroupsService { + rs := &ProjectsLocationsInterceptEndpointGroupsService{s: s} + return rs +} + +type ProjectsLocationsInterceptEndpointGroupsService struct { + s *Service +} + func NewProjectsLocationsMirroringDeploymentGroupsService(s *Service) *ProjectsLocationsMirroringDeploymentGroupsService { rs := &ProjectsLocationsMirroringDeploymentGroupsService{s: s} return rs @@ -552,7 +600,7 @@ type AntivirusOverride struct { // // Possible values: // "PROTOCOL_UNSPECIFIED" - Protocol not specified. - // "SMTP" - SMTP prtocol + // "SMTP" - SMTP protocol // "SMB" - SMB protocol // "POP3" - POP3 protocol // "IMAP" - IMAP protocol @@ -2057,2036 +2105,5007 @@ func (s HttpHeaderMatch) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListAddressGroupReferencesResponse: Response of the -// ListAddressGroupReferences method. -type ListAddressGroupReferencesResponse struct { - // AddressGroupReferences: A list of references that matches the specified - // filter in the request. - AddressGroupReferences []*ListAddressGroupReferencesResponseAddressGroupReference `json:"addressGroupReferences,omitempty"` - // NextPageToken: If there might be more results than those appearing in this - // response, then `next_page_token` is included. To get the next set of - // results, call this method again using the value of `next_page_token` as - // `page_token`. - NextPageToken string `json:"nextPageToken,omitempty"` +// InterceptDeployment: A deployment represents a zonal intercept backend ready +// to accept GENEVE-encapsulated traffic, e.g. a zonal instance group fronted +// by an internal passthrough load balancer. Deployments are always part of a +// global deployment group which represents a global intercept service. +type InterceptDeployment struct { + // CreateTime: Output only. The timestamp when the resource was created. See + // https://google.aip.dev/148#timestamps. + CreateTime string `json:"createTime,omitempty"` + // Description: Optional. User-provided description of the deployment. Used as + // additional context for the deployment. + Description string `json:"description,omitempty"` + // ForwardingRule: Required. Immutable. The regional forwarding rule that + // fronts the interceptors, for example: + // `projects/123456789/regions/us-central1/forwardingRules/my-rule`. See + // https://google.aip.dev/124. + ForwardingRule string `json:"forwardingRule,omitempty"` + // InterceptDeploymentGroup: Required. Immutable. The deployment group that + // this deployment is a part of, for example: + // `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`. See + // https://google.aip.dev/124. + InterceptDeploymentGroup string `json:"interceptDeploymentGroup,omitempty"` + // Labels: Optional. Labels are key/value pairs that help to organize and + // filter resources. + Labels map[string]string `json:"labels,omitempty"` + // Name: Immutable. Identifier. The resource name of this deployment, for + // example: + // `projects/123456789/locations/us-central1-a/interceptDeployments/my-dep`. + // See https://google.aip.dev/122 for more details. + Name string `json:"name,omitempty"` + // Reconciling: Output only. The current state of the resource does not match + // the user's intended state, and the system is working to reconcile them. This + // part of the normal operation (e.g. linking a new association to the parent + // group). See https://google.aip.dev/128. + Reconciling bool `json:"reconciling,omitempty"` + // State: Output only. The current state of the deployment. See + // https://google.aip.dev/216. + // + // Possible values: + // "STATE_UNSPECIFIED" - State not set (this is not a valid state). + // "ACTIVE" - The deployment is ready and in sync with the parent group. + // "CREATING" - The deployment is being created. + // "DELETING" - The deployment is being deleted. + // "OUT_OF_SYNC" - The deployment is out of sync with the parent group. In + // most cases, this is a result of a transient issue within the system (e.g. a + // delayed data-path config) and the system is expected to recover + // automatically. See the parent deployment group's state for more details. + // "DELETE_FAILED" - An attempt to delete the deployment has failed. This is + // a terminal state and the deployment is not expected to recover. The only + // permitted operation is to retry deleting the deployment. + State string `json:"state,omitempty"` + // UpdateTime: Output only. The timestamp when the resource was most recently + // updated. See https://google.aip.dev/148#timestamps. + 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. "AddressGroupReferences") to + // 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. "AddressGroupReferences") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See + // NullFields is a list of field names (e.g. "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 ListAddressGroupReferencesResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListAddressGroupReferencesResponse +func (s InterceptDeployment) MarshalJSON() ([]byte, error) { + type NoMethod InterceptDeployment return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListAddressGroupReferencesResponseAddressGroupReference: The Reference of -// AddressGroup. -type ListAddressGroupReferencesResponseAddressGroupReference struct { - // FirewallPolicy: FirewallPolicy that is using the Address Group. - FirewallPolicy string `json:"firewallPolicy,omitempty"` - // RulePriority: Rule priority of the FirewallPolicy that is using the Address - // Group. - RulePriority int64 `json:"rulePriority,omitempty"` - // SecurityPolicy: Cloud Armor SecurityPolicy that is using the Address Group. - SecurityPolicy string `json:"securityPolicy,omitempty"` - // ForceSendFields is a list of field names (e.g. "FirewallPolicy") to +// InterceptDeploymentGroup: A deployment group aggregates many zonal intercept +// backends (deployments) into a single global intercept service. Consumers can +// connect this service using an endpoint group. +type InterceptDeploymentGroup struct { + // ConnectedEndpointGroups: Output only. The list of endpoint groups that are + // connected to this resource. + ConnectedEndpointGroups []*InterceptDeploymentGroupConnectedEndpointGroup `json:"connectedEndpointGroups,omitempty"` + // CreateTime: Output only. The timestamp when the resource was created. See + // https://google.aip.dev/148#timestamps. + CreateTime string `json:"createTime,omitempty"` + // Description: Optional. User-provided description of the deployment group. + // Used as additional context for the deployment group. + Description string `json:"description,omitempty"` + // Labels: Optional. Labels are key/value pairs that help to organize and + // filter resources. + Labels map[string]string `json:"labels,omitempty"` + // Locations: Output only. The list of locations where the deployment group is + // present. + Locations []*InterceptLocation `json:"locations,omitempty"` + // Name: Immutable. Identifier. The resource name of this deployment group, for + // example: + // `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`. See + // https://google.aip.dev/122 for more details. + Name string `json:"name,omitempty"` + // NestedDeployments: Output only. The list of Intercept Deployments that + // belong to this group. + NestedDeployments []*InterceptDeploymentGroupDeployment `json:"nestedDeployments,omitempty"` + // Network: Required. Immutable. The network that will be used for all child + // deployments, for example: `projects/{project}/global/networks/{network}`. + // See https://google.aip.dev/124. + Network string `json:"network,omitempty"` + // Reconciling: Output only. The current state of the resource does not match + // the user's intended state, and the system is working to reconcile them. This + // is part of the normal operation (e.g. adding a new deployment to the group) + // See https://google.aip.dev/128. + Reconciling bool `json:"reconciling,omitempty"` + // State: Output only. The current state of the deployment group. See + // https://google.aip.dev/216. + // + // Possible values: + // "STATE_UNSPECIFIED" - State not set (this is not a valid state). + // "ACTIVE" - The deployment group is ready. + // "CREATING" - The deployment group is being created. + // "DELETING" - The deployment group is being deleted. + State string `json:"state,omitempty"` + // UpdateTime: Output only. The timestamp when the resource was most recently + // updated. See https://google.aip.dev/148#timestamps. + 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. "ConnectedEndpointGroups") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "FirewallPolicy") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See + // NullFields is a list of field names (e.g. "ConnectedEndpointGroups") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ListAddressGroupReferencesResponseAddressGroupReference) MarshalJSON() ([]byte, error) { - type NoMethod ListAddressGroupReferencesResponseAddressGroupReference +func (s InterceptDeploymentGroup) MarshalJSON() ([]byte, error) { + type NoMethod InterceptDeploymentGroup return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListAddressGroupsResponse: Response returned by the ListAddressGroups -// method. -type ListAddressGroupsResponse struct { - // AddressGroups: List of AddressGroups resources. - AddressGroups []*AddressGroup `json:"addressGroups,omitempty"` - // NextPageToken: If there might be more results than those appearing in this - // response, then `next_page_token` is included. To get the next set of - // results, call this method again using the value of `next_page_token` as - // `page_token`. - 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. "AddressGroups") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See +// InterceptDeploymentGroupConnectedEndpointGroup: An endpoint group connected +// to this deployment group. +type InterceptDeploymentGroupConnectedEndpointGroup struct { + // Name: Output only. The connected endpoint group's resource name, for + // example: + // `projects/123456789/locations/global/interceptEndpointGroups/my-eg`. See + // https://google.aip.dev/124. + Name string `json:"name,omitempty"` + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AddressGroups") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "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 ListAddressGroupsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListAddressGroupsResponse +func (s InterceptDeploymentGroupConnectedEndpointGroup) MarshalJSON() ([]byte, error) { + type NoMethod InterceptDeploymentGroupConnectedEndpointGroup return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListAuthorizationPoliciesResponse: Response returned by the -// ListAuthorizationPolicies method. -type ListAuthorizationPoliciesResponse struct { - // AuthorizationPolicies: List of AuthorizationPolicies resources. - AuthorizationPolicies []*AuthorizationPolicy `json:"authorizationPolicies,omitempty"` - // NextPageToken: If there might be more results than those appearing in this - // response, then `next_page_token` is included. To get the next set of - // results, call this method again using the value of `next_page_token` as - // `page_token`. - 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. "AuthorizationPolicies") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See +// InterceptDeploymentGroupDeployment: A deployment belonging to this +// deployment group. +type InterceptDeploymentGroupDeployment struct { + // Name: Output only. The name of the Intercept Deployment, in the format: + // `projects/{project}/locations/{location}/interceptDeployments/{intercept_depl + // oyment}`. + Name string `json:"name,omitempty"` + // State: Output only. Most recent known state of the deployment. + // + // Possible values: + // "STATE_UNSPECIFIED" - State not set (this is not a valid state). + // "ACTIVE" - The deployment is ready and in sync with the parent group. + // "CREATING" - The deployment is being created. + // "DELETING" - The deployment is being deleted. + // "OUT_OF_SYNC" - The deployment is out of sync with the parent group. In + // most cases, this is a result of a transient issue within the system (e.g. a + // delayed data-path config) and the system is expected to recover + // automatically. See the parent deployment group's state for more details. + // "DELETE_FAILED" - An attempt to delete the deployment has failed. This is + // a terminal state and the deployment is not expected to recover. The only + // permitted operation is to retry deleting the deployment. + State string `json:"state,omitempty"` + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AuthorizationPolicies") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See + // NullFields is a list of field names (e.g. "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 ListAuthorizationPoliciesResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListAuthorizationPoliciesResponse +func (s InterceptDeploymentGroupDeployment) MarshalJSON() ([]byte, error) { + type NoMethod InterceptDeploymentGroupDeployment return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListAuthzPoliciesResponse: Message for response to listing `AuthzPolicy` -// resources. -type ListAuthzPoliciesResponse struct { - // AuthzPolicies: The list of `AuthzPolicy` resources. - AuthzPolicies []*AuthzPolicy `json:"authzPolicies,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. "AuthzPolicies") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AuthzPolicies") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See +// InterceptEndpointGroup: An endpoint group is a consumer frontend for a +// deployment group (backend). In order to configure intercept for a network, +// consumers must create: - An association between their network and the +// endpoint group. - A security profile that points to the endpoint group. - A +// firewall rule that references the security profile (group). +type InterceptEndpointGroup struct { + // Associations: Output only. List of associations to this endpoint group. + Associations []*InterceptEndpointGroupAssociationDetails `json:"associations,omitempty"` + // ConnectedDeploymentGroup: Output only. Details about the connected + // deployment group to this endpoint group. + ConnectedDeploymentGroup *InterceptEndpointGroupConnectedDeploymentGroup `json:"connectedDeploymentGroup,omitempty"` + // CreateTime: Output only. The timestamp when the resource was created. See + // https://google.aip.dev/148#timestamps. + CreateTime string `json:"createTime,omitempty"` + // Description: Optional. User-provided description of the endpoint group. Used + // as additional context for the endpoint group. + Description string `json:"description,omitempty"` + // InterceptDeploymentGroup: Required. Immutable. The deployment group that + // this endpoint group is connected to, for example: + // `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`. See + // https://google.aip.dev/124. + InterceptDeploymentGroup string `json:"interceptDeploymentGroup,omitempty"` + // Labels: Optional. Labels are key/value pairs that help to organize and + // filter resources. + Labels map[string]string `json:"labels,omitempty"` + // Name: Immutable. Identifier. The resource name of this endpoint group, for + // example: + // `projects/123456789/locations/global/interceptEndpointGroups/my-eg`. See + // https://google.aip.dev/122 for more details. + Name string `json:"name,omitempty"` + // Reconciling: Output only. The current state of the resource does not match + // the user's intended state, and the system is working to reconcile them. This + // is part of the normal operation (e.g. adding a new association to the + // group). See https://google.aip.dev/128. + Reconciling bool `json:"reconciling,omitempty"` + // State: Output only. The current state of the endpoint group. See + // https://google.aip.dev/216. + // + // Possible values: + // "STATE_UNSPECIFIED" - State not set (this is not a valid state). + // "ACTIVE" - The endpoint group is ready and in sync with the target + // deployment group. + // "CLOSED" - The deployment group backing this endpoint group has been + // force-deleted. This endpoint group cannot be used and interception is + // effectively disabled. + // "CREATING" - The endpoint group is being created. + // "DELETING" - The endpoint group is being deleted. + // "OUT_OF_SYNC" - The endpoint group is out of sync with the backing + // deployment group. In most cases, this is a result of a transient issue + // within the system (e.g. an inaccessible location) and the system is expected + // to recover automatically. See the associations field for details per network + // and location. + // "DELETE_FAILED" - An attempt to delete the endpoint group has failed. This + // is a terminal state and the endpoint group is not expected to recover. The + // only permitted operation is to retry deleting the endpoint group. + State string `json:"state,omitempty"` + // UpdateTime: Output only. The timestamp when the resource was most recently + // updated. See https://google.aip.dev/148#timestamps. + 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. "Associations") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Associations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ListAuthzPoliciesResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListAuthzPoliciesResponse +func (s InterceptEndpointGroup) MarshalJSON() ([]byte, error) { + type NoMethod InterceptEndpointGroup return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListClientTlsPoliciesResponse: Response returned by the -// ListClientTlsPolicies method. -type ListClientTlsPoliciesResponse struct { - // ClientTlsPolicies: List of ClientTlsPolicy resources. - ClientTlsPolicies []*ClientTlsPolicy `json:"clientTlsPolicies,omitempty"` - // NextPageToken: If there might be more results than those appearing in this - // response, then `next_page_token` is included. To get the next set of - // results, call this method again using the value of `next_page_token` as - // `page_token`. - NextPageToken string `json:"nextPageToken,omitempty"` +// InterceptEndpointGroupAssociation: An endpoint group association represents +// a link between a network and an endpoint group in the organization. Creating +// an association creates the networking infrastructure linking the network to +// the endpoint group, but does not enable intercept by itself. To enable +// intercept, the user must also create a network firewall policy containing +// intercept rules and associate it with the network. +type InterceptEndpointGroupAssociation struct { + // CreateTime: Output only. The timestamp when the resource was created. See + // https://google.aip.dev/148#timestamps. + CreateTime string `json:"createTime,omitempty"` + // InterceptEndpointGroup: Required. Immutable. The endpoint group that this + // association is connected to, for example: + // `projects/123456789/locations/global/interceptEndpointGroups/my-eg`. See + // https://google.aip.dev/124. + InterceptEndpointGroup string `json:"interceptEndpointGroup,omitempty"` + // Labels: Optional. Labels are key/value pairs that help to organize and + // filter resources. + Labels map[string]string `json:"labels,omitempty"` + // Locations: Output only. The list of locations where the association is + // configured. This information is retrieved from the linked endpoint group. + Locations []*InterceptLocation `json:"locations,omitempty"` + // LocationsDetails: Output only. The list of locations where the association + // is present. This information is retrieved from the linked endpoint group, + // and not configured as part of the association itself. + LocationsDetails []*InterceptEndpointGroupAssociationLocationDetails `json:"locationsDetails,omitempty"` + // Name: Immutable. Identifier. The resource name of this endpoint group + // association, for example: + // `projects/123456789/locations/global/interceptEndpointGroupAssociations/my-eg + // -association`. See https://google.aip.dev/122 for more details. + Name string `json:"name,omitempty"` + // Network: Required. Immutable. The VPC network that is associated. for + // example: `projects/123456789/global/networks/my-network`. See + // https://google.aip.dev/124. + Network string `json:"network,omitempty"` + // Reconciling: Output only. The current state of the resource does not match + // the user's intended state, and the system is working to reconcile them. This + // part of the normal operation (e.g. adding a new location to the target + // deployment group). See https://google.aip.dev/128. + Reconciling bool `json:"reconciling,omitempty"` + // State: Output only. Current state of the endpoint group association. + // + // Possible values: + // "STATE_UNSPECIFIED" - Not set. + // "ACTIVE" - The association is ready and in sync with the linked endpoint + // group. + // "CREATING" - The association is being created. + // "DELETING" - The association is being deleted. + // "CLOSED" - The association is disabled due to a breaking change in another + // resource. + // "OUT_OF_SYNC" - The association is out of sync with the linked endpoint + // group. In most cases, this is a result of a transient issue within the + // system (e.g. an inaccessible location) and the system is expected to recover + // automatically. Check the `locations_details` field for more details. + // "DELETE_FAILED" - An attempt to delete the association has failed. This is + // a terminal state and the association is not expected to be usable as some of + // its resources have been deleted. The only permitted operation is to retry + // deleting the association. + State string `json:"state,omitempty"` + // UpdateTime: Output only. The timestamp when the resource was most recently + // updated. See https://google.aip.dev/148#timestamps. + 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. "ClientTlsPolicies") to + // 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. "ClientTlsPolicies") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See + // NullFields is a list of field names (e.g. "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 ListClientTlsPoliciesResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListClientTlsPoliciesResponse +func (s InterceptEndpointGroupAssociation) MarshalJSON() ([]byte, error) { + type NoMethod InterceptEndpointGroupAssociation return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListFirewallEndpointAssociationsResponse: Message for response to listing -// Associations -type ListFirewallEndpointAssociationsResponse struct { - // FirewallEndpointAssociations: The list of Association - FirewallEndpointAssociations []*FirewallEndpointAssociation `json:"firewallEndpointAssociations,omitempty"` - // NextPageToken: A token identifying a page of results the server should - // return. - 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. - // "FirewallEndpointAssociations") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields - // for more details. +// InterceptEndpointGroupAssociationDetails: The endpoint group's view of a +// connected association. +type InterceptEndpointGroupAssociationDetails struct { + // Name: Output only. The connected association's resource name, for example: + // `projects/123456789/locations/global/interceptEndpointGroupAssociations/my-eg + // a`. See https://google.aip.dev/124. + Name string `json:"name,omitempty"` + // Network: Output only. The associated network, for example: + // projects/123456789/global/networks/my-network. See + // https://google.aip.dev/124. + Network string `json:"network,omitempty"` + // State: Output only. Most recent known state of the association. + // + // Possible values: + // "STATE_UNSPECIFIED" - Not set. + // "ACTIVE" - The association is ready and in sync with the linked endpoint + // group. + // "CREATING" - The association is being created. + // "DELETING" - The association is being deleted. + // "CLOSED" - The association is disabled due to a breaking change in another + // resource. + // "OUT_OF_SYNC" - The association is out of sync with the linked endpoint + // group. In most cases, this is a result of a transient issue within the + // system (e.g. an inaccessible location) and the system is expected to recover + // automatically. Check the `locations_details` field for more details. + // "DELETE_FAILED" - An attempt to delete the association has failed. This is + // a terminal state and the association is not expected to be usable as some of + // its resources have been deleted. The only permitted operation is to retry + // deleting the association. + State string `json:"state,omitempty"` + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "FirewallEndpointAssociations") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See + // NullFields is a list of field names (e.g. "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 ListFirewallEndpointAssociationsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListFirewallEndpointAssociationsResponse +func (s InterceptEndpointGroupAssociationDetails) MarshalJSON() ([]byte, error) { + type NoMethod InterceptEndpointGroupAssociationDetails return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListFirewallEndpointsResponse: Message for response to listing Endpoints -type ListFirewallEndpointsResponse struct { - // FirewallEndpoints: The list of Endpoint - FirewallEndpoints []*FirewallEndpoint `json:"firewallEndpoints,omitempty"` - // NextPageToken: A token identifying a page of results the server should - // return. - 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. "FirewallEndpoints") to +// InterceptEndpointGroupAssociationLocationDetails: Contains details about the +// state of an association in a specific cloud location. +type InterceptEndpointGroupAssociationLocationDetails struct { + // Location: Output only. The cloud location, e.g. "us-central1-a" or + // "asia-south1". + Location string `json:"location,omitempty"` + // State: Output only. The current state of the association in this location. + // + // Possible values: + // "STATE_UNSPECIFIED" - Not set. + // "ACTIVE" - The association is ready and in sync with the linked endpoint + // group. + // "OUT_OF_SYNC" - The association is out of sync with the linked endpoint + // group. In most cases, this is a result of a transient issue within the + // system (e.g. an inaccessible location) and the system is expected to recover + // automatically. + State string `json:"state,omitempty"` + // ForceSendFields is a list of field names (e.g. "Location") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "FirewallEndpoints") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See + // NullFields is a list of field names (e.g. "Location") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ListFirewallEndpointsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListFirewallEndpointsResponse +func (s InterceptEndpointGroupAssociationLocationDetails) MarshalJSON() ([]byte, error) { + type NoMethod InterceptEndpointGroupAssociationLocationDetails return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListGatewaySecurityPoliciesResponse: Response returned by the -// ListGatewaySecurityPolicies method. -type ListGatewaySecurityPoliciesResponse struct { - // GatewaySecurityPolicies: List of GatewaySecurityPolicies resources. - GatewaySecurityPolicies []*GatewaySecurityPolicy `json:"gatewaySecurityPolicies,omitempty"` - // NextPageToken: If there might be more results than those appearing in this - // response, then 'next_page_token' is included. To get the next set of - // results, call this method again using the value of 'next_page_token' as - // 'page_token'. - 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. "GatewaySecurityPolicies") to +// InterceptEndpointGroupConnectedDeploymentGroup: The endpoint group's view of +// a connected deployment group. +type InterceptEndpointGroupConnectedDeploymentGroup struct { + // Locations: Output only. The list of locations where the deployment group is + // present. + Locations []*InterceptLocation `json:"locations,omitempty"` + // Name: Output only. The connected deployment group's resource name, for + // example: + // `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`. See + // https://google.aip.dev/124. + Name string `json:"name,omitempty"` + // ForceSendFields is a list of field names (e.g. "Locations") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "GatewaySecurityPolicies") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See + // NullFields is a list of field names (e.g. "Locations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ListGatewaySecurityPoliciesResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListGatewaySecurityPoliciesResponse +func (s InterceptEndpointGroupConnectedDeploymentGroup) MarshalJSON() ([]byte, error) { + type NoMethod InterceptEndpointGroupConnectedDeploymentGroup return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListGatewaySecurityPolicyRulesResponse: Response returned by the -// ListGatewaySecurityPolicyRules method. -type ListGatewaySecurityPolicyRulesResponse struct { - // GatewaySecurityPolicyRules: List of GatewaySecurityPolicyRule resources. - GatewaySecurityPolicyRules []*GatewaySecurityPolicyRule `json:"gatewaySecurityPolicyRules,omitempty"` - // NextPageToken: If there might be more results than those appearing in this - // response, then 'next_page_token' is included. To get the next set of - // results, call this method again using the value of 'next_page_token' as - // 'page_token'. - 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. "GatewaySecurityPolicyRules") - // to unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "GatewaySecurityPolicyRules") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s ListGatewaySecurityPolicyRulesResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListGatewaySecurityPolicyRulesResponse - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// ListLocationsResponse: The response message for Locations.ListLocations. -type ListLocationsResponse struct { - // Locations: A list of locations that matches the specified filter in the - // request. - Locations []*Location `json:"locations,omitempty"` - // NextPageToken: The standard List next-page token. - 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. "Locations") to +// InterceptLocation: Details about intercept in a specific cloud location. +type InterceptLocation struct { + // Location: Output only. The cloud location, e.g. "us-central1-a" or + // "asia-south1". + Location string `json:"location,omitempty"` + // State: Output only. The current state of the association in this location. + // + // Possible values: + // "STATE_UNSPECIFIED" - State not set (this is not a valid state). + // "ACTIVE" - The resource is ready and in sync in the location. + // "OUT_OF_SYNC" - The resource is out of sync in the location. In most + // cases, this is a result of a transient issue within the system (e.g. an + // inaccessible location) and the system is expected to recover automatically. + State string `json:"state,omitempty"` + // ForceSendFields is a list of field names (e.g. "Location") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Locations") to include in API + // NullFields is a list of field names (e.g. "Location") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ListLocationsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListLocationsResponse +func (s InterceptLocation) MarshalJSON() ([]byte, error) { + type NoMethod InterceptLocation return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListMirroringDeploymentGroupsResponse: Response message for -// ListMirroringDeploymentGroups. -type ListMirroringDeploymentGroupsResponse struct { - // MirroringDeploymentGroups: The deployment groups from the specified parent. - MirroringDeploymentGroups []*MirroringDeploymentGroup `json:"mirroringDeploymentGroups,omitempty"` - // NextPageToken: A token that can be sent as `page_token` to retrieve the next - // page. If this field is omitted, there are no subsequent pages. See - // https://google.aip.dev/158 for more details. +// ListAddressGroupReferencesResponse: Response of the +// ListAddressGroupReferences method. +type ListAddressGroupReferencesResponse struct { + // AddressGroupReferences: A list of references that matches the specified + // filter in the request. + AddressGroupReferences []*ListAddressGroupReferencesResponseAddressGroupReference `json:"addressGroupReferences,omitempty"` + // NextPageToken: If there might be more results than those appearing in this + // response, then `next_page_token` is included. To get the next set of + // results, call this method again using the value of `next_page_token` as + // `page_token`. 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. "MirroringDeploymentGroups") - // to unconditionally include in API requests. By default, fields with empty or + // ForceSendFields is a list of field names (e.g. "AddressGroupReferences") to + // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "MirroringDeploymentGroups") to + // NullFields is a list of field names (e.g. "AddressGroupReferences") to // include in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ListMirroringDeploymentGroupsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListMirroringDeploymentGroupsResponse +func (s ListAddressGroupReferencesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListAddressGroupReferencesResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListMirroringDeploymentsResponse: Response message for -// ListMirroringDeployments. -type ListMirroringDeploymentsResponse struct { - // MirroringDeployments: The deployments from the specified parent. - MirroringDeployments []*MirroringDeployment `json:"mirroringDeployments,omitempty"` - // NextPageToken: A token that can be sent as `page_token` to retrieve the next - // page. If this field is omitted, there are no subsequent pages. See - // https://google.aip.dev/158 for more details. - 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. "MirroringDeployments") to +// ListAddressGroupReferencesResponseAddressGroupReference: The Reference of +// AddressGroup. +type ListAddressGroupReferencesResponseAddressGroupReference struct { + // FirewallPolicy: FirewallPolicy that is using the Address Group. + FirewallPolicy string `json:"firewallPolicy,omitempty"` + // RulePriority: Rule priority of the FirewallPolicy that is using the Address + // Group. + RulePriority int64 `json:"rulePriority,omitempty"` + // SecurityPolicy: Cloud Armor SecurityPolicy that is using the Address Group. + SecurityPolicy string `json:"securityPolicy,omitempty"` + // ForceSendFields is a list of field names (e.g. "FirewallPolicy") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "MirroringDeployments") to include - // in API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. See + // NullFields is a list of field names (e.g. "FirewallPolicy") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ListMirroringDeploymentsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListMirroringDeploymentsResponse +func (s ListAddressGroupReferencesResponseAddressGroupReference) MarshalJSON() ([]byte, error) { + type NoMethod ListAddressGroupReferencesResponseAddressGroupReference return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListMirroringEndpointGroupAssociationsResponse: Response message for -// ListMirroringEndpointGroupAssociations. -type ListMirroringEndpointGroupAssociationsResponse struct { - // MirroringEndpointGroupAssociations: The associations from the specified - // parent. - MirroringEndpointGroupAssociations []*MirroringEndpointGroupAssociation `json:"mirroringEndpointGroupAssociations,omitempty"` - // NextPageToken: A token that can be sent as `page_token` to retrieve the next - // page. If this field is omitted, there are no subsequent pages. See - // https://google.aip.dev/158 for more details. +// ListAddressGroupsResponse: Response returned by the ListAddressGroups +// method. +type ListAddressGroupsResponse struct { + // AddressGroups: List of AddressGroups resources. + AddressGroups []*AddressGroup `json:"addressGroups,omitempty"` + // NextPageToken: If there might be more results than those appearing in this + // response, then `next_page_token` is included. To get the next set of + // results, call this method again using the value of `next_page_token` as + // `page_token`. 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. - // "MirroringEndpointGroupAssociations") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted from - // API requests. See + // ForceSendFields is a list of field names (e.g. "AddressGroups") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. - // "MirroringEndpointGroupAssociations") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted from API - // requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields for - // more details. + // NullFields is a list of field names (e.g. "AddressGroups") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ListMirroringEndpointGroupAssociationsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListMirroringEndpointGroupAssociationsResponse +func (s ListAddressGroupsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListAddressGroupsResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListMirroringEndpointGroupsResponse: Response message for -// ListMirroringEndpointGroups. -type ListMirroringEndpointGroupsResponse struct { - // MirroringEndpointGroups: The endpoint groups from the specified parent. - MirroringEndpointGroups []*MirroringEndpointGroup `json:"mirroringEndpointGroups,omitempty"` - // NextPageToken: A token that can be sent as `page_token` to retrieve the next - // page. If this field is omitted, there are no subsequent pages. See - // https://google.aip.dev/158 for more details. +// ListAuthorizationPoliciesResponse: Response returned by the +// ListAuthorizationPolicies method. +type ListAuthorizationPoliciesResponse struct { + // AuthorizationPolicies: List of AuthorizationPolicies resources. + AuthorizationPolicies []*AuthorizationPolicy `json:"authorizationPolicies,omitempty"` + // NextPageToken: If there might be more results than those appearing in this + // response, then `next_page_token` is included. To get the next set of + // results, call this method again using the value of `next_page_token` as + // `page_token`. 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. "MirroringEndpointGroups") to + // ForceSendFields is a list of field names (e.g. "AuthorizationPolicies") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "MirroringEndpointGroups") to + // NullFields is a list of field names (e.g. "AuthorizationPolicies") to // include in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ListMirroringEndpointGroupsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListMirroringEndpointGroupsResponse +func (s ListAuthorizationPoliciesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListAuthorizationPoliciesResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListOperationsResponse: The response message for Operations.ListOperations. -type ListOperationsResponse struct { - // NextPageToken: The standard List next-page token. +// ListAuthzPoliciesResponse: Message for response to listing `AuthzPolicy` +// resources. +type ListAuthzPoliciesResponse struct { + // AuthzPolicies: The list of `AuthzPolicy` resources. + AuthzPolicies []*AuthzPolicy `json:"authzPolicies,omitempty"` + // NextPageToken: A token identifying a page of results that the server + // returns. NextPageToken string `json:"nextPageToken,omitempty"` - // Operations: A list of operations that matches the specified filter in the - // request. - Operations []*Operation `json:"operations,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. "NextPageToken") to + // ForceSendFields is a list of field names (e.g. "AuthzPolicies") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://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 + // NullFields is a list of field names (e.g. "AuthzPolicies") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ListOperationsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListOperationsResponse +func (s ListAuthzPoliciesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListAuthzPoliciesResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListSecurityProfileGroupsResponse: Response returned by the -// ListSecurityProfileGroups method. -type ListSecurityProfileGroupsResponse struct { +// ListClientTlsPoliciesResponse: Response returned by the +// ListClientTlsPolicies method. +type ListClientTlsPoliciesResponse struct { + // ClientTlsPolicies: List of ClientTlsPolicy resources. + ClientTlsPolicies []*ClientTlsPolicy `json:"clientTlsPolicies,omitempty"` // NextPageToken: If there might be more results than those appearing in this // response, then `next_page_token` is included. To get the next set of // results, call this method again using the value of `next_page_token` as // `page_token`. NextPageToken string `json:"nextPageToken,omitempty"` - // SecurityProfileGroups: List of SecurityProfileGroups resources. - SecurityProfileGroups []*SecurityProfileGroup `json:"securityProfileGroups,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 + // ForceSendFields is a list of field names (e.g. "ClientTlsPolicies") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://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 + // NullFields is a list of field names (e.g. "ClientTlsPolicies") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ListSecurityProfileGroupsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListSecurityProfileGroupsResponse +func (s ListClientTlsPoliciesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListClientTlsPoliciesResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListSecurityProfilesResponse: Response returned by the ListSecurityProfiles -// method. -type ListSecurityProfilesResponse struct { - // NextPageToken: If there might be more results than those appearing in this - // response, then `next_page_token` is included. To get the next set of - // results, call this method again using the value of `next_page_token` as - // `page_token`. +// ListFirewallEndpointAssociationsResponse: Message for response to listing +// Associations +type ListFirewallEndpointAssociationsResponse struct { + // FirewallEndpointAssociations: The list of Association + FirewallEndpointAssociations []*FirewallEndpointAssociation `json:"firewallEndpointAssociations,omitempty"` + // NextPageToken: A token identifying a page of results the server should + // return. NextPageToken string `json:"nextPageToken,omitempty"` - // SecurityProfiles: List of SecurityProfile resources. - SecurityProfiles []*SecurityProfile `json:"securityProfiles,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. "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 is a list of field names (e.g. + // "FirewallEndpointAssociations") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://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 + // NullFields is a list of field names (e.g. "FirewallEndpointAssociations") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ListSecurityProfilesResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListSecurityProfilesResponse +func (s ListFirewallEndpointAssociationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListFirewallEndpointAssociationsResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListServerTlsPoliciesResponse: Response returned by the -// ListServerTlsPolicies method. -type ListServerTlsPoliciesResponse struct { - // NextPageToken: If there might be more results than those appearing in this - // response, then `next_page_token` is included. To get the next set of - // results, call this method again using the value of `next_page_token` as - // `page_token`. +// ListFirewallEndpointsResponse: Message for response to listing Endpoints +type ListFirewallEndpointsResponse struct { + // FirewallEndpoints: The list of Endpoint + FirewallEndpoints []*FirewallEndpoint `json:"firewallEndpoints,omitempty"` + // NextPageToken: A token identifying a page of results the server should + // return. NextPageToken string `json:"nextPageToken,omitempty"` - // ServerTlsPolicies: List of ServerTlsPolicy resources. - ServerTlsPolicies []*ServerTlsPolicy `json:"serverTlsPolicies,omitempty"` - // Unreachable: Unreachable resources. Populated when the request opts into - // `return_partial_success` and reading across collections e.g. when attempting - // to list all resources across all supported locations. + // 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. "NextPageToken") to + // ForceSendFields is a list of field names (e.g. "FirewallEndpoints") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://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 + // NullFields is a list of field names (e.g. "FirewallEndpoints") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ListServerTlsPoliciesResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListServerTlsPoliciesResponse +func (s ListFirewallEndpointsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListFirewallEndpointsResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListTlsInspectionPoliciesResponse: Response returned by the -// ListTlsInspectionPolicies method. -type ListTlsInspectionPoliciesResponse struct { +// ListGatewaySecurityPoliciesResponse: Response returned by the +// ListGatewaySecurityPolicies method. +type ListGatewaySecurityPoliciesResponse struct { + // GatewaySecurityPolicies: List of GatewaySecurityPolicies resources. + GatewaySecurityPolicies []*GatewaySecurityPolicy `json:"gatewaySecurityPolicies,omitempty"` // NextPageToken: If there might be more results than those appearing in this // response, then 'next_page_token' is included. To get the next set of // results, call this method again using the value of 'next_page_token' as // 'page_token'. NextPageToken string `json:"nextPageToken,omitempty"` - // TlsInspectionPolicies: List of TlsInspectionPolicies resources. - TlsInspectionPolicies []*TlsInspectionPolicy `json:"tlsInspectionPolicies,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. "NextPageToken") to + // ForceSendFields is a list of field names (e.g. "GatewaySecurityPolicies") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://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 + // NullFields is a list of field names (e.g. "GatewaySecurityPolicies") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ListTlsInspectionPoliciesResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListTlsInspectionPoliciesResponse +func (s ListGatewaySecurityPoliciesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListGatewaySecurityPoliciesResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListUrlListsResponse: Response returned by the ListUrlLists method. -type ListUrlListsResponse struct { +// ListGatewaySecurityPolicyRulesResponse: Response returned by the +// ListGatewaySecurityPolicyRules method. +type ListGatewaySecurityPolicyRulesResponse struct { + // GatewaySecurityPolicyRules: List of GatewaySecurityPolicyRule resources. + GatewaySecurityPolicyRules []*GatewaySecurityPolicyRule `json:"gatewaySecurityPolicyRules,omitempty"` // NextPageToken: If there might be more results than those appearing in this - // response, then `next_page_token` is included. To get the next set of - // results, call this method again using the value of `next_page_token` as - // `page_token`. + // response, then 'next_page_token' is included. To get the next set of + // results, call this method again using the value of 'next_page_token' as + // 'page_token'. NextPageToken string `json:"nextPageToken,omitempty"` // Unreachable: Locations that could not be reached. Unreachable []string `json:"unreachable,omitempty"` - // UrlLists: List of UrlList resources. - UrlLists []*UrlList `json:"urlLists,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 + // ForceSendFields is a list of field names (e.g. "GatewaySecurityPolicyRules") + // to unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://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 + // NullFields is a list of field names (e.g. "GatewaySecurityPolicyRules") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ListUrlListsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListUrlListsResponse +func (s ListGatewaySecurityPolicyRulesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListGatewaySecurityPolicyRulesResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Location: A resource that represents a Google Cloud location. -type Location struct { - // DisplayName: The friendly name for this location, typically a nearby city - // name. For example, "Tokyo". - DisplayName string `json:"displayName,omitempty"` - // Labels: Cross-service attributes for the location. For example - // {"cloud.googleapis.com/region": "us-east1"} - Labels map[string]string `json:"labels,omitempty"` - // LocationId: The canonical id for this location. For example: "us-east1". - LocationId string `json:"locationId,omitempty"` - // Metadata: Service-specific metadata. For example the available capacity at - // the given location. - Metadata googleapi.RawMessage `json:"metadata,omitempty"` - // Name: Resource name for the location, which may vary between - // implementations. For example: - // "projects/example-project/locations/us-east1" - Name string `json:"name,omitempty"` +// ListInterceptDeploymentGroupsResponse: Response message for +// ListInterceptDeploymentGroups. +type ListInterceptDeploymentGroupsResponse struct { + // InterceptDeploymentGroups: The deployment groups from the specified parent. + InterceptDeploymentGroups []*InterceptDeploymentGroup `json:"interceptDeploymentGroups,omitempty"` + // NextPageToken: A token that can be sent as `page_token` to retrieve the next + // page. If this field is omitted, there are no subsequent pages. See + // https://google.aip.dev/158 for more details. + 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. "DisplayName") to - // unconditionally include in API requests. By default, fields with empty or + // ForceSendFields is a list of field names (e.g. "InterceptDeploymentGroups") + // to unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DisplayName") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "InterceptDeploymentGroups") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s Location) MarshalJSON() ([]byte, error) { - type NoMethod Location +func (s ListInterceptDeploymentGroupsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListInterceptDeploymentGroupsResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MTLSPolicy: Specification of the MTLSPolicy. -type MTLSPolicy struct { - // ClientValidationCa: Required if the policy is to be used with Traffic - // Director. For Application Load Balancers it must be empty. Defines the - // mechanism to obtain the Certificate Authority certificate to validate the - // client certificate. - ClientValidationCa []*ValidationCA `json:"clientValidationCa,omitempty"` - // ClientValidationMode: When the client presents an invalid certificate or no - // certificate to the load balancer, the `client_validation_mode` specifies how - // the client connection is handled. Required if the policy is to be used with - // the Application Load Balancers. For Traffic Director it must be empty. - // - // Possible values: - // "CLIENT_VALIDATION_MODE_UNSPECIFIED" - Not allowed. - // "ALLOW_INVALID_OR_MISSING_CLIENT_CERT" - Allow connection even if - // certificate chain validation of the client certificate failed or no client - // certificate was presented. The proof of possession of the private key is - // always checked if client certificate was presented. This mode requires the - // backend to implement processing of data extracted from a client certificate - // to authenticate the peer, or to reject connections if the client certificate - // fingerprint is missing. - // "REJECT_INVALID" - Require a client certificate and allow connection to - // the backend only if validation of the client certificate passed. If set, - // requires a reference to non-empty TrustConfig specified in - // `client_validation_trust_config`. - ClientValidationMode string `json:"clientValidationMode,omitempty"` - // ClientValidationTrustConfig: Reference to the TrustConfig from - // certificatemanager.googleapis.com namespace. If specified, the chain - // validation will be performed against certificates configured in the given - // TrustConfig. Allowed only if the policy is to be used with Application Load - // Balancers. - ClientValidationTrustConfig string `json:"clientValidationTrustConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClientValidationCa") to +// ListInterceptDeploymentsResponse: Response message for +// ListInterceptDeployments. +type ListInterceptDeploymentsResponse struct { + // InterceptDeployments: The deployments from the specified parent. + InterceptDeployments []*InterceptDeployment `json:"interceptDeployments,omitempty"` + // NextPageToken: A token that can be sent as `page_token` to retrieve the next + // page. If this field is omitted, there are no subsequent pages. See + // https://google.aip.dev/158 for more details. + 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. "InterceptDeployments") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ClientValidationCa") to include + // NullFields is a list of field names (e.g. "InterceptDeployments") to include // in API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s MTLSPolicy) MarshalJSON() ([]byte, error) { - type NoMethod MTLSPolicy +func (s ListInterceptDeploymentsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListInterceptDeploymentsResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MirroringDeployment: A deployment represents a zonal mirroring backend ready -// to accept GENEVE-encapsulated replica traffic, e.g. a zonal instance group -// fronted by an internal passthrough load balancer. Deployments are always -// part of a global deployment group which represents a global mirroring -// service. -type MirroringDeployment struct { - // CreateTime: Output only. The timestamp when the resource was created. See - // https://google.aip.dev/148#timestamps. - CreateTime string `json:"createTime,omitempty"` - // Description: Optional. User-provided description of the deployment. Used as - // additional context for the deployment. - Description string `json:"description,omitempty"` - // ForwardingRule: Required. Immutable. The regional forwarding rule that - // fronts the mirroring collectors, for example: - // `projects/123456789/regions/us-central1/forwardingRules/my-rule`. See - // https://google.aip.dev/124. - ForwardingRule string `json:"forwardingRule,omitempty"` - // Labels: Optional. Labels are key/value pairs that help to organize and - // filter resources. - Labels map[string]string `json:"labels,omitempty"` - // MirroringDeploymentGroup: Required. Immutable. The deployment group that - // this deployment is a part of, for example: - // `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`. See - // https://google.aip.dev/124. - MirroringDeploymentGroup string `json:"mirroringDeploymentGroup,omitempty"` - // Name: Immutable. Identifier. The resource name of this deployment, for - // example: - // `projects/123456789/locations/us-central1-a/mirroringDeployments/my-dep`. - // See https://google.aip.dev/122 for more details. - Name string `json:"name,omitempty"` - // Reconciling: Output only. The current state of the resource does not match - // the user's intended state, and the system is working to reconcile them. This - // part of the normal operation (e.g. linking a new association to the parent - // group). See https://google.aip.dev/128. - Reconciling bool `json:"reconciling,omitempty"` - // State: Output only. The current state of the deployment. See - // https://google.aip.dev/216. - // - // Possible values: - // "STATE_UNSPECIFIED" - State not set (this is not a valid state). - // "ACTIVE" - The deployment is ready and in sync with the parent group. - // "CREATING" - The deployment is being created. - // "DELETING" - The deployment is being deleted. - // "OUT_OF_SYNC" - The deployment is out of sync with the parent group. In - // most cases, this is a result of a transient issue within the system (e.g. a - // delayed data-path config) and the system is expected to recover - // automatically. See the parent deployment group's state for more details. - // "DELETE_FAILED" - An attempt to delete the deployment has failed. This is - // a terminal state and the deployment is not expected to recover. The only - // permitted operation is to retry deleting the deployment. - State string `json:"state,omitempty"` - // UpdateTime: Output only. The timestamp when the resource was most recently - // updated. See https://google.aip.dev/148#timestamps. - UpdateTime string `json:"updateTime,omitempty"` +// ListInterceptEndpointGroupAssociationsResponse: Response message for +// ListInterceptEndpointGroupAssociations. +type ListInterceptEndpointGroupAssociationsResponse struct { + // InterceptEndpointGroupAssociations: The associations from the specified + // parent. + InterceptEndpointGroupAssociations []*InterceptEndpointGroupAssociation `json:"interceptEndpointGroupAssociations,omitempty"` + // NextPageToken: A token that can be sent as `page_token` to retrieve the next + // page. If this field is omitted, there are no subsequent pages. See + // https://google.aip.dev/158 for more details. + 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. "CreateTime") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See + // ForceSendFields is a list of field names (e.g. + // "InterceptEndpointGroupAssociations") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted from + // API requests. See // https://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 is a list of field names (e.g. + // "InterceptEndpointGroupAssociations") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields for + // more details. NullFields []string `json:"-"` } -func (s MirroringDeployment) MarshalJSON() ([]byte, error) { - type NoMethod MirroringDeployment +func (s ListInterceptEndpointGroupAssociationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListInterceptEndpointGroupAssociationsResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MirroringDeploymentGroup: A deployment group aggregates many zonal mirroring -// backends (deployments) into a single global mirroring service. Consumers can -// connect this service using an endpoint group. -type MirroringDeploymentGroup struct { - // ConnectedEndpointGroups: Output only. The list of endpoint groups that are - // connected to this resource. - ConnectedEndpointGroups []*MirroringDeploymentGroupConnectedEndpointGroup `json:"connectedEndpointGroups,omitempty"` - // CreateTime: Output only. The timestamp when the resource was created. See - // https://google.aip.dev/148#timestamps. - CreateTime string `json:"createTime,omitempty"` - // Description: Optional. User-provided description of the deployment group. - // Used as additional context for the deployment group. - Description string `json:"description,omitempty"` - // Labels: Optional. Labels are key/value pairs that help to organize and - // filter resources. - Labels map[string]string `json:"labels,omitempty"` - // Locations: Output only. The list of locations where the deployment group is - // present. - Locations []*MirroringLocation `json:"locations,omitempty"` - // Name: Immutable. Identifier. The resource name of this deployment group, for - // example: - // `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`. See - // https://google.aip.dev/122 for more details. - Name string `json:"name,omitempty"` - // NestedDeployments: Output only. The list of Mirroring Deployments that - // belong to this group. - NestedDeployments []*MirroringDeploymentGroupDeployment `json:"nestedDeployments,omitempty"` - // Network: Required. Immutable. The network that will be used for all child - // deployments, for example: `projects/{project}/global/networks/{network}`. - // See https://google.aip.dev/124. - Network string `json:"network,omitempty"` - // Reconciling: Output only. The current state of the resource does not match - // the user's intended state, and the system is working to reconcile them. This - // is part of the normal operation (e.g. adding a new deployment to the group) - // See https://google.aip.dev/128. - Reconciling bool `json:"reconciling,omitempty"` - // State: Output only. The current state of the deployment group. See - // https://google.aip.dev/216. - // - // Possible values: - // "STATE_UNSPECIFIED" - State not set (this is not a valid state). - // "ACTIVE" - The deployment group is ready. - // "CREATING" - The deployment group is being created. - // "DELETING" - The deployment group is being deleted. - State string `json:"state,omitempty"` - // UpdateTime: Output only. The timestamp when the resource was most recently - // updated. See https://google.aip.dev/148#timestamps. - UpdateTime string `json:"updateTime,omitempty"` +// ListInterceptEndpointGroupsResponse: Response message for +// ListInterceptEndpointGroups. +type ListInterceptEndpointGroupsResponse struct { + // InterceptEndpointGroups: The endpoint groups from the specified parent. + InterceptEndpointGroups []*InterceptEndpointGroup `json:"interceptEndpointGroups,omitempty"` + // NextPageToken: A token that can be sent as `page_token` to retrieve the next + // page. If this field is omitted, there are no subsequent pages. See + // https://google.aip.dev/158 for more details. + 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. "ConnectedEndpointGroups") to + // ForceSendFields is a list of field names (e.g. "InterceptEndpointGroups") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ConnectedEndpointGroups") to + // NullFields is a list of field names (e.g. "InterceptEndpointGroups") to // include in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s MirroringDeploymentGroup) MarshalJSON() ([]byte, error) { - type NoMethod MirroringDeploymentGroup +func (s ListInterceptEndpointGroupsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListInterceptEndpointGroupsResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MirroringDeploymentGroupConnectedEndpointGroup: An endpoint group connected -// to this deployment group. -type MirroringDeploymentGroupConnectedEndpointGroup struct { - // Name: Output only. The connected endpoint group's resource name, for - // example: - // `projects/123456789/locations/global/mirroringEndpointGroups/my-eg`. See - // https://google.aip.dev/124. - Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "Name") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See +// ListLocationsResponse: The response message for Locations.ListLocations. +type ListLocationsResponse struct { + // Locations: A list of locations that matches the specified filter in the + // request. + Locations []*Location `json:"locations,omitempty"` + // NextPageToken: The standard List next-page token. + 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. "Locations") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Name") to include in API requests - // with the JSON null value. By default, fields with empty values are omitted - // from API requests. See + // NullFields is a list of field names (e.g. "Locations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s MirroringDeploymentGroupConnectedEndpointGroup) MarshalJSON() ([]byte, error) { - type NoMethod MirroringDeploymentGroupConnectedEndpointGroup +func (s ListLocationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListLocationsResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MirroringDeploymentGroupDeployment: A deployment belonging to this -// deployment group. -type MirroringDeploymentGroupDeployment struct { - // Name: Output only. The name of the Mirroring Deployment, in the format: - // `projects/{project}/locations/{location}/mirroringDeployments/{mirroring_depl - // oyment}`. - Name string `json:"name,omitempty"` - // State: Output only. Most recent known state of the deployment. - // - // Possible values: - // "STATE_UNSPECIFIED" - State not set (this is not a valid state). - // "ACTIVE" - The deployment is ready and in sync with the parent group. - // "CREATING" - The deployment is being created. - // "DELETING" - The deployment is being deleted. - // "OUT_OF_SYNC" - The deployment is out of sync with the parent group. In - // most cases, this is a result of a transient issue within the system (e.g. a - // delayed data-path config) and the system is expected to recover - // automatically. See the parent deployment group's state for more details. - // "DELETE_FAILED" - An attempt to delete the deployment has failed. This is - // a terminal state and the deployment is not expected to recover. The only - // permitted operation is to retry deleting the deployment. - State string `json:"state,omitempty"` - // ForceSendFields is a list of field names (e.g. "Name") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See +// ListMirroringDeploymentGroupsResponse: Response message for +// ListMirroringDeploymentGroups. +type ListMirroringDeploymentGroupsResponse struct { + // MirroringDeploymentGroups: The deployment groups from the specified parent. + MirroringDeploymentGroups []*MirroringDeploymentGroup `json:"mirroringDeploymentGroups,omitempty"` + // NextPageToken: A token that can be sent as `page_token` to retrieve the next + // page. If this field is omitted, there are no subsequent pages. See + // https://google.aip.dev/158 for more details. + 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. "MirroringDeploymentGroups") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Name") to include in API requests - // with the JSON null value. By default, fields with empty values are omitted - // from API requests. See + // NullFields is a list of field names (e.g. "MirroringDeploymentGroups") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s MirroringDeploymentGroupDeployment) MarshalJSON() ([]byte, error) { - type NoMethod MirroringDeploymentGroupDeployment +func (s ListMirroringDeploymentGroupsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListMirroringDeploymentGroupsResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MirroringEndpointGroup: An endpoint group is a consumer frontend for a -// deployment group (backend). In order to configure mirroring for a network, -// consumers must create: - An association between their network and the -// endpoint group. - A security profile that points to the endpoint group. - A -// mirroring rule that references the security profile (group). -type MirroringEndpointGroup struct { - // Associations: Output only. List of associations to this endpoint group. - Associations []*MirroringEndpointGroupAssociationDetails `json:"associations,omitempty"` - // ConnectedDeploymentGroups: Output only. List of details about the connected - // deployment groups to this endpoint group. - ConnectedDeploymentGroups []*MirroringEndpointGroupConnectedDeploymentGroup `json:"connectedDeploymentGroups,omitempty"` - // CreateTime: Output only. The timestamp when the resource was created. See - // https://google.aip.dev/148#timestamps. - CreateTime string `json:"createTime,omitempty"` - // Description: Optional. User-provided description of the endpoint group. Used - // as additional context for the endpoint group. - Description string `json:"description,omitempty"` - // Labels: Optional. Labels are key/value pairs that help to organize and - // filter resources. - Labels map[string]string `json:"labels,omitempty"` - // MirroringDeploymentGroup: Immutable. The deployment group that this DIRECT - // endpoint group is connected to, for example: - // `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`. See - // https://google.aip.dev/124. - MirroringDeploymentGroup string `json:"mirroringDeploymentGroup,omitempty"` - // Name: Immutable. Identifier. The resource name of this endpoint group, for - // example: - // `projects/123456789/locations/global/mirroringEndpointGroups/my-eg`. See - // https://google.aip.dev/122 for more details. - Name string `json:"name,omitempty"` - // Reconciling: Output only. The current state of the resource does not match - // the user's intended state, and the system is working to reconcile them. This - // is part of the normal operation (e.g. adding a new association to the - // group). See https://google.aip.dev/128. - Reconciling bool `json:"reconciling,omitempty"` - // State: Output only. The current state of the endpoint group. See - // https://google.aip.dev/216. - // - // Possible values: - // "STATE_UNSPECIFIED" - State not set (this is not a valid state). - // "ACTIVE" - The endpoint group is ready and in sync with the target - // deployment group. - // "CLOSED" - The deployment group backing this endpoint group has been - // force-deleted. This endpoint group cannot be used and mirroring is - // effectively disabled. - // "CREATING" - The endpoint group is being created. - // "DELETING" - The endpoint group is being deleted. - // "OUT_OF_SYNC" - The endpoint group is out of sync with the backing - // deployment group. In most cases, this is a result of a transient issue - // within the system (e.g. an inaccessible location) and the system is expected - // to recover automatically. See the associations field for details per network - // and location. - // "DELETE_FAILED" - An attempt to delete the endpoint group has failed. This - // is a terminal state and the endpoint group is not expected to recover. The - // only permitted operation is to retry deleting the endpoint group. - State string `json:"state,omitempty"` - // UpdateTime: Output only. The timestamp when the resource was most recently - // updated. See https://google.aip.dev/148#timestamps. - UpdateTime string `json:"updateTime,omitempty"` +// ListMirroringDeploymentsResponse: Response message for +// ListMirroringDeployments. +type ListMirroringDeploymentsResponse struct { + // MirroringDeployments: The deployments from the specified parent. + MirroringDeployments []*MirroringDeployment `json:"mirroringDeployments,omitempty"` + // NextPageToken: A token that can be sent as `page_token` to retrieve the next + // page. If this field is omitted, there are no subsequent pages. See + // https://google.aip.dev/158 for more details. + 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. "Associations") to + // ForceSendFields is a list of field names (e.g. "MirroringDeployments") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Associations") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "MirroringDeployments") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s MirroringEndpointGroup) MarshalJSON() ([]byte, error) { - type NoMethod MirroringEndpointGroup +func (s ListMirroringDeploymentsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListMirroringDeploymentsResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MirroringEndpointGroupAssociation: An endpoint group association represents -// a link between a network and an endpoint group in the organization. Creating -// an association creates the networking infrastructure linking the network to -// the endpoint group, but does not enable mirroring by itself. To enable -// mirroring, the user must also create a network firewall policy containing -// mirroring rules and associate it with the network. -type MirroringEndpointGroupAssociation struct { - // CreateTime: Output only. The timestamp when the resource was created. See - // https://google.aip.dev/148#timestamps. - CreateTime string `json:"createTime,omitempty"` - // Labels: Optional. Labels are key/value pairs that help to organize and - // filter resources. - Labels map[string]string `json:"labels,omitempty"` - // Locations: Output only. The list of locations where the association is - // configured. This information is retrieved from the linked endpoint group. - Locations []*MirroringLocation `json:"locations,omitempty"` - // LocationsDetails: Output only. The list of locations where the association - // is present. This information is retrieved from the linked endpoint group, - // and not configured as part of the association itself. - LocationsDetails []*MirroringEndpointGroupAssociationLocationDetails `json:"locationsDetails,omitempty"` - // MirroringEndpointGroup: Immutable. The endpoint group that this association - // is connected to, for example: - // `projects/123456789/locations/global/mirroringEndpointGroups/my-eg`. See - // https://google.aip.dev/124. - MirroringEndpointGroup string `json:"mirroringEndpointGroup,omitempty"` - // Name: Immutable. Identifier. The resource name of this endpoint group - // association, for example: - // `projects/123456789/locations/global/mirroringEndpointGroupAssociations/my-eg - // -association`. See https://google.aip.dev/122 for more details. - Name string `json:"name,omitempty"` - // Network: Immutable. The VPC network that is associated. for example: - // `projects/123456789/global/networks/my-network`. See - // https://google.aip.dev/124. - Network string `json:"network,omitempty"` - // Reconciling: Output only. The current state of the resource does not match - // the user's intended state, and the system is working to reconcile them. This - // part of the normal operation (e.g. adding a new location to the target - // deployment group). See https://google.aip.dev/128. - Reconciling bool `json:"reconciling,omitempty"` - // State: Output only. Current state of the endpoint group association. - // - // Possible values: - // "STATE_UNSPECIFIED" - Not set. - // "ACTIVE" - The association is ready and in sync with the linked endpoint - // group. - // "CREATING" - The association is being created. - // "DELETING" - The association is being deleted. - // "CLOSED" - The association is disabled due to a breaking change in another - // resource. - // "OUT_OF_SYNC" - The association is out of sync with the linked endpoint - // group. In most cases, this is a result of a transient issue within the - // system (e.g. an inaccessible location) and the system is expected to recover - // automatically. Check the `locations_details` field for more details. - // "DELETE_FAILED" - An attempt to delete the association has failed. This is - // a terminal state and the association is not expected to be usable as some of - // its resources have been deleted. The only permitted operation is to retry - // deleting the association. - State string `json:"state,omitempty"` - // UpdateTime: Output only. The timestamp when the resource was most recently - // updated. See https://google.aip.dev/148#timestamps. - UpdateTime string `json:"updateTime,omitempty"` +// ListMirroringEndpointGroupAssociationsResponse: Response message for +// ListMirroringEndpointGroupAssociations. +type ListMirroringEndpointGroupAssociationsResponse struct { + // MirroringEndpointGroupAssociations: The associations from the specified + // parent. + MirroringEndpointGroupAssociations []*MirroringEndpointGroupAssociation `json:"mirroringEndpointGroupAssociations,omitempty"` + // NextPageToken: A token that can be sent as `page_token` to retrieve the next + // page. If this field is omitted, there are no subsequent pages. See + // https://google.aip.dev/158 for more details. + 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. "CreateTime") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See + // ForceSendFields is a list of field names (e.g. + // "MirroringEndpointGroupAssociations") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted from + // API requests. See // https://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 is a list of field names (e.g. + // "MirroringEndpointGroupAssociations") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields for + // more details. NullFields []string `json:"-"` } -func (s MirroringEndpointGroupAssociation) MarshalJSON() ([]byte, error) { - type NoMethod MirroringEndpointGroupAssociation +func (s ListMirroringEndpointGroupAssociationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListMirroringEndpointGroupAssociationsResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MirroringEndpointGroupAssociationDetails: The endpoint group's view of a -// connected association. -type MirroringEndpointGroupAssociationDetails struct { - // Name: Output only. The connected association's resource name, for example: - // `projects/123456789/locations/global/mirroringEndpointGroupAssociations/my-eg - // a`. See https://google.aip.dev/124. - Name string `json:"name,omitempty"` - // Network: Output only. The associated network, for example: - // projects/123456789/global/networks/my-network. See - // https://google.aip.dev/124. - Network string `json:"network,omitempty"` - // State: Output only. Most recent known state of the association. - // - // Possible values: - // "STATE_UNSPECIFIED" - Not set. - // "ACTIVE" - The association is ready and in sync with the linked endpoint - // group. - // "CREATING" - The association is being created. - // "DELETING" - The association is being deleted. - // "CLOSED" - The association is disabled due to a breaking change in another - // resource. - // "OUT_OF_SYNC" - The association is out of sync with the linked endpoint - // group. In most cases, this is a result of a transient issue within the - // system (e.g. an inaccessible location) and the system is expected to recover - // automatically. Check the `locations_details` field for more details. - // "DELETE_FAILED" - An attempt to delete the association has failed. This is - // a terminal state and the association is not expected to be usable as some of - // its resources have been deleted. The only permitted operation is to retry - // deleting the association. - State string `json:"state,omitempty"` - // ForceSendFields is a list of field names (e.g. "Name") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See +// ListMirroringEndpointGroupsResponse: Response message for +// ListMirroringEndpointGroups. +type ListMirroringEndpointGroupsResponse struct { + // MirroringEndpointGroups: The endpoint groups from the specified parent. + MirroringEndpointGroups []*MirroringEndpointGroup `json:"mirroringEndpointGroups,omitempty"` + // NextPageToken: A token that can be sent as `page_token` to retrieve the next + // page. If this field is omitted, there are no subsequent pages. See + // https://google.aip.dev/158 for more details. + 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. "MirroringEndpointGroups") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Name") to include in API requests - // with the JSON null value. By default, fields with empty values are omitted - // from API requests. See + // NullFields is a list of field names (e.g. "MirroringEndpointGroups") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s MirroringEndpointGroupAssociationDetails) MarshalJSON() ([]byte, error) { - type NoMethod MirroringEndpointGroupAssociationDetails +func (s ListMirroringEndpointGroupsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListMirroringEndpointGroupsResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MirroringEndpointGroupAssociationLocationDetails: Contains details about the -// state of an association in a specific cloud location. -type MirroringEndpointGroupAssociationLocationDetails struct { - // Location: Output only. The cloud location, e.g. "us-central1-a" or - // "asia-south1". - Location string `json:"location,omitempty"` - // State: Output only. The current state of the association in this location. - // - // Possible values: - // "STATE_UNSPECIFIED" - Not set. - // "ACTIVE" - The association is ready and in sync with the linked endpoint - // group. - // "OUT_OF_SYNC" - The association is out of sync with the linked endpoint - // group. In most cases, this is a result of a transient issue within the - // system (e.g. an inaccessible location) and the system is expected to recover - // automatically. - State string `json:"state,omitempty"` - // ForceSendFields is a list of field names (e.g. "Location") to +// ListOperationsResponse: The response message for Operations.ListOperations. +type ListOperationsResponse struct { + // NextPageToken: The standard List next-page token. + NextPageToken string `json:"nextPageToken,omitempty"` + // Operations: A list of operations that matches the specified filter in the + // request. + Operations []*Operation `json:"operations,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. "Location") to include in API + // 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 MirroringEndpointGroupAssociationLocationDetails) MarshalJSON() ([]byte, error) { - type NoMethod MirroringEndpointGroupAssociationLocationDetails +func (s ListOperationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListOperationsResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MirroringEndpointGroupConnectedDeploymentGroup: The endpoint group's view of -// a connected deployment group. -type MirroringEndpointGroupConnectedDeploymentGroup struct { - // Locations: Output only. The list of locations where the deployment group is - // present. - Locations []*MirroringLocation `json:"locations,omitempty"` - // Name: Output only. The connected deployment group's resource name, for - // example: - // `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`. See - // https://google.aip.dev/124. - Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "Locations") to +// ListSecurityProfileGroupsResponse: Response returned by the +// ListSecurityProfileGroups method. +type ListSecurityProfileGroupsResponse struct { + // NextPageToken: If there might be more results than those appearing in this + // response, then `next_page_token` is included. To get the next set of + // results, call this method again using the value of `next_page_token` as + // `page_token`. + NextPageToken string `json:"nextPageToken,omitempty"` + // SecurityProfileGroups: List of SecurityProfileGroups resources. + SecurityProfileGroups []*SecurityProfileGroup `json:"securityProfileGroups,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. "Locations") to include in API + // 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 MirroringEndpointGroupConnectedDeploymentGroup) MarshalJSON() ([]byte, error) { - type NoMethod MirroringEndpointGroupConnectedDeploymentGroup +func (s ListSecurityProfileGroupsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListSecurityProfileGroupsResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MirroringLocation: Details about mirroring in a specific cloud location. -type MirroringLocation struct { - // Location: Output only. The cloud location, e.g. "us-central1-a" or - // "asia-south1". - Location string `json:"location,omitempty"` - // State: Output only. The current state of the association in this location. - // - // Possible values: - // "STATE_UNSPECIFIED" - State not set (this is not a valid state). - // "ACTIVE" - The resource is ready and in sync in the location. - // "OUT_OF_SYNC" - The resource is out of sync in the location. In most - // cases, this is a result of a transient issue within the system (e.g. an - // inaccessible location) and the system is expected to recover automatically. - State string `json:"state,omitempty"` - // ForceSendFields is a list of field names (e.g. "Location") to +// ListSecurityProfilesResponse: Response returned by the ListSecurityProfiles +// method. +type ListSecurityProfilesResponse struct { + // NextPageToken: If there might be more results than those appearing in this + // response, then `next_page_token` is included. To get the next set of + // results, call this method again using the value of `next_page_token` as + // `page_token`. + NextPageToken string `json:"nextPageToken,omitempty"` + // SecurityProfiles: List of SecurityProfile resources. + SecurityProfiles []*SecurityProfile `json:"securityProfiles,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. "Location") to include in API + // 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 MirroringLocation) MarshalJSON() ([]byte, error) { - type NoMethod MirroringLocation +func (s ListSecurityProfilesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListSecurityProfilesResponse 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 { - // Done: If the value is `false`, it means the operation is still in progress. - // If `true`, the operation is completed, and either `error` or `response` is - // available. - Done bool `json:"done,omitempty"` - // Error: The error result of the operation in case of failure or cancellation. - Error *Status `json:"error,omitempty"` - // Metadata: Service-specific metadata associated with the operation. It - // typically contains progress information and common metadata such as create - // time. Some services might not provide such metadata. Any method that returns - // a long-running operation should document the metadata type, if any. - Metadata googleapi.RawMessage `json:"metadata,omitempty"` - // Name: The server-assigned name, which is only unique within the same service - // that originally returns it. If you use the default HTTP mapping, the `name` - // should be a resource name ending with `operations/{unique_id}`. - Name string `json:"name,omitempty"` - // Response: The normal, successful response of the operation. If the original - // method returns no data on success, such as `Delete`, the response is - // `google.protobuf.Empty`. If the original method is standard - // `Get`/`Create`/`Update`, the response should be the resource. For other - // methods, the response should have the type `XxxResponse`, where `Xxx` is the - // original method name. For example, if the original method name is - // `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. - Response googleapi.RawMessage `json:"response,omitempty"` +// ListServerTlsPoliciesResponse: Response returned by the +// ListServerTlsPolicies method. +type ListServerTlsPoliciesResponse struct { + // NextPageToken: If there might be more results than those appearing in this + // response, then `next_page_token` is included. To get the next set of + // results, call this method again using the value of `next_page_token` as + // `page_token`. + NextPageToken string `json:"nextPageToken,omitempty"` + // ServerTlsPolicies: List of ServerTlsPolicy resources. + ServerTlsPolicies []*ServerTlsPolicy `json:"serverTlsPolicies,omitempty"` + // Unreachable: Unreachable resources. Populated when the request opts into + // `return_partial_success` and reading across collections e.g. when attempting + // to list all resources across all supported locations. + 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. "Done") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See + // ForceSendFields is a list of field names (e.g. "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. "Done") to include in API requests - // with the JSON null value. By default, fields with empty values are omitted - // from API requests. See + // NullFields is a list of field names (e.g. "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 Operation) MarshalJSON() ([]byte, error) { - type NoMethod Operation +func (s ListServerTlsPoliciesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListServerTlsPoliciesResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OperationMetadata: Represents the metadata of the long-running operation. -type OperationMetadata struct { - // ApiVersion: Output only. API version used to start the operation. - ApiVersion string `json:"apiVersion,omitempty"` - // CreateTime: Output only. The time the operation was created. - CreateTime string `json:"createTime,omitempty"` - // EndTime: Output only. The time the operation finished running. - 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`. - RequestedCancellation bool `json:"requestedCancellation,omitempty"` - // StatusMessage: Output only. Human-readable status of the operation, if any. - StatusMessage string `json:"statusMessage,omitempty"` - // Target: Output only. Server-defined resource path for the target of the - // operation. - Target string `json:"target,omitempty"` - // Verb: Output only. Name of the verb executed by the operation. - Verb string `json:"verb,omitempty"` - // ForceSendFields is a list of field names (e.g. "ApiVersion") to +// ListTlsInspectionPoliciesResponse: Response returned by the +// ListTlsInspectionPolicies method. +type ListTlsInspectionPoliciesResponse struct { + // NextPageToken: If there might be more results than those appearing in this + // response, then 'next_page_token' is included. To get the next set of + // results, call this method again using the value of 'next_page_token' as + // 'page_token'. + NextPageToken string `json:"nextPageToken,omitempty"` + // TlsInspectionPolicies: List of TlsInspectionPolicies resources. + TlsInspectionPolicies []*TlsInspectionPolicy `json:"tlsInspectionPolicies,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. "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. "ApiVersion") to include in API + // 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 OperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod OperationMetadata +func (s ListTlsInspectionPoliciesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListTlsInspectionPoliciesResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RemoveAddressGroupItemsRequest: Request used by the RemoveAddressGroupItems -// method. -type RemoveAddressGroupItemsRequest struct { - // Items: Required. List of items to remove. - Items []string `json:"items,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"` - // ForceSendFields is a list of field names (e.g. "Items") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s RemoveAddressGroupItemsRequest) MarshalJSON() ([]byte, error) { - type NoMethod RemoveAddressGroupItemsRequest - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} +// ListUrlListsResponse: Response returned by the ListUrlLists method. +type ListUrlListsResponse struct { + // NextPageToken: If there might be more results than those appearing in this + // response, then `next_page_token` is included. To get the next set of + // results, call this method again using the value of `next_page_token` as + // `page_token`. + NextPageToken string `json:"nextPageToken,omitempty"` + // Unreachable: Locations that could not be reached. + Unreachable []string `json:"unreachable,omitempty"` + // UrlLists: List of UrlList resources. + UrlLists []*UrlList `json:"urlLists,omitempty"` -// Rule: Specification of rules. -type Rule struct { - // Destinations: Optional. List of attributes for the traffic destination. All - // of the destinations must match. A destination is a match if a request - // matches all the specified hosts, ports, methods and headers. If not set, the - // action specified in the 'action' field will be applied without any rule - // checks for the destination. - Destinations []*Destination `json:"destinations,omitempty"` - // Sources: Optional. List of attributes for the traffic source. All of the - // sources must match. A source is a match if both principals and ip_blocks - // match. If not set, the action specified in the 'action' field will be - // applied without any rule checks for the source. - Sources []*Source `json:"sources,omitempty"` - // ForceSendFields is a list of field names (e.g. "Destinations") to + // 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. "Destinations") to include in API + // 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 Rule) MarshalJSON() ([]byte, error) { - type NoMethod Rule +func (s ListUrlListsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListUrlListsResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SecurityProfile: SecurityProfile is a resource that defines the behavior for -// one of many ProfileTypes. -type SecurityProfile struct { - // CreateTime: Output only. Resource creation timestamp. - CreateTime string `json:"createTime,omitempty"` - // CustomInterceptProfile: The custom TPPI configuration for the - // SecurityProfile. - CustomInterceptProfile *CustomInterceptProfile `json:"customInterceptProfile,omitempty"` - // CustomMirroringProfile: The custom Packet Mirroring v2 configuration for the - // SecurityProfile. - CustomMirroringProfile *CustomMirroringProfile `json:"customMirroringProfile,omitempty"` - // Description: Optional. An optional description of the profile. Max length - // 512 characters. - Description string `json:"description,omitempty"` - // Etag: Output only. This checksum is computed by the server based on the - // value of other fields, and may be sent on update and delete requests to - // ensure the client has an up-to-date value before proceeding. - Etag string `json:"etag,omitempty"` - // Labels: Optional. Labels as key value pairs. +// Location: A resource that represents a Google Cloud location. +type Location struct { + // DisplayName: The friendly name for this location, typically a nearby city + // name. For example, "Tokyo". + DisplayName string `json:"displayName,omitempty"` + // Labels: Cross-service attributes for the location. For example + // {"cloud.googleapis.com/region": "us-east1"} Labels map[string]string `json:"labels,omitempty"` - // Name: Immutable. Identifier. Name of the SecurityProfile resource. It - // matches pattern - // `projects|organizations/*/locations/{location}/securityProfiles/{security_pro - // file}`. + // LocationId: The canonical id for this location. For example: "us-east1". + LocationId string `json:"locationId,omitempty"` + // Metadata: Service-specific metadata. For example the available capacity at + // the given location. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` + // Name: Resource name for the location, which may vary between + // implementations. For example: + // "projects/example-project/locations/us-east1" Name string `json:"name,omitempty"` - // ThreatPreventionProfile: The threat prevention configuration for the - // SecurityProfile. - ThreatPreventionProfile *ThreatPreventionProfile `json:"threatPreventionProfile,omitempty"` - // Type: Immutable. The single ProfileType that the SecurityProfile resource - // configures. - // - // Possible values: - // "PROFILE_TYPE_UNSPECIFIED" - Profile type not specified. - // "THREAT_PREVENTION" - Profile type for threat prevention. - // "CUSTOM_MIRRORING" - Profile type for packet mirroring v2 - // "CUSTOM_INTERCEPT" - Profile type for TPPI. - Type string `json:"type,omitempty"` - // UpdateTime: Output only. Last resource update timestamp. - 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 + // ForceSendFields is a list of field names (e.g. "DisplayName") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CreateTime") to include in API + // NullFields is a list of field names (e.g. "DisplayName") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s SecurityProfile) MarshalJSON() ([]byte, error) { - type NoMethod SecurityProfile +func (s Location) MarshalJSON() ([]byte, error) { + type NoMethod Location return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SecurityProfileGroup: SecurityProfileGroup is a resource that defines the -// behavior for various ProfileTypes. -type SecurityProfileGroup struct { - // CreateTime: Output only. Resource creation timestamp. - CreateTime string `json:"createTime,omitempty"` - // CustomInterceptProfile: Optional. Reference to a SecurityProfile with the - // CustomIntercept configuration. - CustomInterceptProfile string `json:"customInterceptProfile,omitempty"` - // CustomMirroringProfile: Optional. Reference to a SecurityProfile with the - // CustomMirroring configuration. - CustomMirroringProfile string `json:"customMirroringProfile,omitempty"` - // DataPathId: Output only. Identifier used by the data-path. Unique within - // {container, location}. - DataPathId uint64 `json:"dataPathId,omitempty,string"` - // Description: Optional. An optional description of the profile group. Max - // length 2048 characters. - Description string `json:"description,omitempty"` - // Etag: Output only. This checksum is computed by the server based on the - // value of other fields, and may be sent on update and delete requests to - // ensure the client has an up-to-date value before proceeding. - Etag string `json:"etag,omitempty"` - // Labels: Optional. Labels as key value pairs. - Labels map[string]string `json:"labels,omitempty"` - // Name: Immutable. Identifier. Name of the SecurityProfileGroup resource. It - // matches pattern - // `projects|organizations/*/locations/{location}/securityProfileGroups/{securit - // y_profile_group}`. - Name string `json:"name,omitempty"` - // ThreatPreventionProfile: Optional. Reference to a SecurityProfile with the - // ThreatPrevention configuration. - ThreatPreventionProfile string `json:"threatPreventionProfile,omitempty"` - // UpdateTime: Output only. Last resource update timestamp. - 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 +// MTLSPolicy: Specification of the MTLSPolicy. +type MTLSPolicy struct { + // ClientValidationCa: Required if the policy is to be used with Traffic + // Director. For Application Load Balancers it must be empty. Defines the + // mechanism to obtain the Certificate Authority certificate to validate the + // client certificate. + ClientValidationCa []*ValidationCA `json:"clientValidationCa,omitempty"` + // ClientValidationMode: When the client presents an invalid certificate or no + // certificate to the load balancer, the `client_validation_mode` specifies how + // the client connection is handled. Required if the policy is to be used with + // the Application Load Balancers. For Traffic Director it must be empty. + // + // Possible values: + // "CLIENT_VALIDATION_MODE_UNSPECIFIED" - Not allowed. + // "ALLOW_INVALID_OR_MISSING_CLIENT_CERT" - Allow connection even if + // certificate chain validation of the client certificate failed or no client + // certificate was presented. The proof of possession of the private key is + // always checked if client certificate was presented. This mode requires the + // backend to implement processing of data extracted from a client certificate + // to authenticate the peer, or to reject connections if the client certificate + // fingerprint is missing. + // "REJECT_INVALID" - Require a client certificate and allow connection to + // the backend only if validation of the client certificate passed. If set, + // requires a reference to non-empty TrustConfig specified in + // `client_validation_trust_config`. + ClientValidationMode string `json:"clientValidationMode,omitempty"` + // ClientValidationTrustConfig: Reference to the TrustConfig from + // certificatemanager.googleapis.com namespace. If specified, the chain + // validation will be performed against certificates configured in the given + // TrustConfig. Allowed only if the policy is to be used with Application Load + // Balancers. + ClientValidationTrustConfig string `json:"clientValidationTrustConfig,omitempty"` + // ForceSendFields is a list of field names (e.g. "ClientValidationCa") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://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 + // NullFields is a list of field names (e.g. "ClientValidationCa") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s SecurityProfileGroup) MarshalJSON() ([]byte, error) { - type NoMethod SecurityProfileGroup +func (s MTLSPolicy) MarshalJSON() ([]byte, error) { + type NoMethod MTLSPolicy return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ServerTlsPolicy: ServerTlsPolicy is a resource that specifies how a server -// should authenticate incoming requests. This resource itself does not affect -// configuration unless it is attached to a target HTTPS proxy or endpoint -// config selector resource. ServerTlsPolicy in the form accepted by -// Application Load Balancers can be attached only to TargetHttpsProxy with an -// `EXTERNAL`, `EXTERNAL_MANAGED` or `INTERNAL_MANAGED` load balancing scheme. -// Traffic Director compatible ServerTlsPolicies can be attached to -// EndpointPolicy and TargetHttpsProxy with Traffic Director -// `INTERNAL_SELF_MANAGED` load balancing scheme. -type ServerTlsPolicy struct { - // AllowOpen: This field applies only for Traffic Director policies. It is must - // be set to false for Application Load Balancer policies. Determines if server - // allows plaintext connections. If set to true, server allows plain text - // connections. By default, it is set to false. This setting is not exclusive - // of other encryption modes. For example, if `allow_open` and `mtls_policy` - // are set, server allows both plain text and mTLS connections. See - // documentation of other encryption modes to confirm compatibility. Consider - // using it if you wish to upgrade in place your deployment to TLS while having - // mixed TLS and non-TLS traffic reaching port :80. - AllowOpen bool `json:"allowOpen,omitempty"` - // CreateTime: Output only. The timestamp when the resource was created. +// MirroringDeployment: A deployment represents a zonal mirroring backend ready +// to accept GENEVE-encapsulated replica traffic, e.g. a zonal instance group +// fronted by an internal passthrough load balancer. Deployments are always +// part of a global deployment group which represents a global mirroring +// service. +type MirroringDeployment struct { + // CreateTime: Output only. The timestamp when the resource was created. See + // https://google.aip.dev/148#timestamps. CreateTime string `json:"createTime,omitempty"` - // Description: Free-text description of the resource. + // Description: Optional. User-provided description of the deployment. Used as + // additional context for the deployment. Description string `json:"description,omitempty"` - // Labels: Set of label tags associated with the resource. + // ForwardingRule: Required. Immutable. The regional forwarding rule that + // fronts the mirroring collectors, for example: + // `projects/123456789/regions/us-central1/forwardingRules/my-rule`. See + // https://google.aip.dev/124. + ForwardingRule string `json:"forwardingRule,omitempty"` + // Labels: Optional. Labels are key/value pairs that help to organize and + // filter resources. Labels map[string]string `json:"labels,omitempty"` - // MtlsPolicy: This field is required if the policy is used with Application - // Load Balancers. This field can be empty for Traffic Director. Defines a - // mechanism to provision peer validation certificates for peer to peer - // authentication (Mutual TLS - mTLS). If not specified, client certificate - // will not be requested. The connection is treated as TLS and not mTLS. If - // `allow_open` and `mtls_policy` are set, server allows both plain text and - // mTLS connections. - MtlsPolicy *MTLSPolicy `json:"mtlsPolicy,omitempty"` - // Name: Required. Name of the ServerTlsPolicy resource. It matches the pattern - // `projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}` + // MirroringDeploymentGroup: Required. Immutable. The deployment group that + // this deployment is a part of, for example: + // `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`. See + // https://google.aip.dev/124. + MirroringDeploymentGroup string `json:"mirroringDeploymentGroup,omitempty"` + // Name: Immutable. Identifier. The resource name of this deployment, for + // example: + // `projects/123456789/locations/us-central1-a/mirroringDeployments/my-dep`. + // See https://google.aip.dev/122 for more details. Name string `json:"name,omitempty"` - // ServerCertificate: Optional if policy is to be used with Traffic Director. - // For Application Load Balancers must be empty. Defines a mechanism to - // provision server identity (public and private keys). Cannot be combined with - // `allow_open` as a permissive mode that allows both plain text and TLS is not - // supported. - ServerCertificate *GoogleCloudNetworksecurityV1CertificateProvider `json:"serverCertificate,omitempty"` - // UpdateTime: Output only. The timestamp when the resource was updated. + // Reconciling: Output only. The current state of the resource does not match + // the user's intended state, and the system is working to reconcile them. This + // part of the normal operation (e.g. linking a new association to the parent + // group). See https://google.aip.dev/128. + Reconciling bool `json:"reconciling,omitempty"` + // State: Output only. The current state of the deployment. See + // https://google.aip.dev/216. + // + // Possible values: + // "STATE_UNSPECIFIED" - State not set (this is not a valid state). + // "ACTIVE" - The deployment is ready and in sync with the parent group. + // "CREATING" - The deployment is being created. + // "DELETING" - The deployment is being deleted. + // "OUT_OF_SYNC" - The deployment is out of sync with the parent group. In + // most cases, this is a result of a transient issue within the system (e.g. a + // delayed data-path config) and the system is expected to recover + // automatically. See the parent deployment group's state for more details. + // "DELETE_FAILED" - An attempt to delete the deployment has failed. This is + // a terminal state and the deployment is not expected to recover. The only + // permitted operation is to retry deleting the deployment. + State string `json:"state,omitempty"` + // UpdateTime: Output only. The timestamp when the resource was most recently + // updated. See https://google.aip.dev/148#timestamps. 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. "AllowOpen") to + // 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. "AllowOpen") to include in API + // 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 ServerTlsPolicy) MarshalJSON() ([]byte, error) { - type NoMethod ServerTlsPolicy +func (s MirroringDeployment) MarshalJSON() ([]byte, error) { + type NoMethod MirroringDeployment return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SeverityOverride: Defines what action to take for a specific severity match. -type SeverityOverride struct { - // Action: Required. Threat action override. - // - // Possible values: - // "THREAT_ACTION_UNSPECIFIED" - Threat action not specified. - // "DEFAULT_ACTION" - The default action (as specified by the vendor) is - // taken. - // "ALLOW" - The packet matching this rule will be allowed to transmit. - // "ALERT" - The packet matching this rule will be allowed to transmit, but a - // threat_log entry will be sent to the consumer project. - // "DENY" - The packet matching this rule will be dropped, and a threat_log - // entry will be sent to the consumer project. - Action string `json:"action,omitempty"` - // Severity: Required. Severity level to match. +// MirroringDeploymentGroup: A deployment group aggregates many zonal mirroring +// backends (deployments) into a single global mirroring service. Consumers can +// connect this service using an endpoint group. +type MirroringDeploymentGroup struct { + // ConnectedEndpointGroups: Output only. The list of endpoint groups that are + // connected to this resource. + ConnectedEndpointGroups []*MirroringDeploymentGroupConnectedEndpointGroup `json:"connectedEndpointGroups,omitempty"` + // CreateTime: Output only. The timestamp when the resource was created. See + // https://google.aip.dev/148#timestamps. + CreateTime string `json:"createTime,omitempty"` + // Description: Optional. User-provided description of the deployment group. + // Used as additional context for the deployment group. + Description string `json:"description,omitempty"` + // Labels: Optional. Labels are key/value pairs that help to organize and + // filter resources. + Labels map[string]string `json:"labels,omitempty"` + // Locations: Output only. The list of locations where the deployment group is + // present. + Locations []*MirroringLocation `json:"locations,omitempty"` + // Name: Immutable. Identifier. The resource name of this deployment group, for + // example: + // `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`. See + // https://google.aip.dev/122 for more details. + Name string `json:"name,omitempty"` + // NestedDeployments: Output only. The list of Mirroring Deployments that + // belong to this group. + NestedDeployments []*MirroringDeploymentGroupDeployment `json:"nestedDeployments,omitempty"` + // Network: Required. Immutable. The network that will be used for all child + // deployments, for example: `projects/{project}/global/networks/{network}`. + // See https://google.aip.dev/124. + Network string `json:"network,omitempty"` + // Reconciling: Output only. The current state of the resource does not match + // the user's intended state, and the system is working to reconcile them. This + // is part of the normal operation (e.g. adding a new deployment to the group) + // See https://google.aip.dev/128. + Reconciling bool `json:"reconciling,omitempty"` + // State: Output only. The current state of the deployment group. See + // https://google.aip.dev/216. // // Possible values: - // "SEVERITY_UNSPECIFIED" - Severity level not specified. - // "INFORMATIONAL" - Suspicious events that do not pose an immediate threat, - // but that are reported to call attention to deeper problems that could - // possibly exist. - // "LOW" - Warning-level threats that have very little impact on an - // organization's infrastructure. They usually require local or physical system - // access and may often result in victim privacy issues and information - // leakage. - // "MEDIUM" - Minor threats in which impact is minimized, that do not - // compromise the target or exploits that require an attacker to reside on the - // same local network as the victim, affect only non-standard configurations or - // obscure applications, or provide very limited access. - // "HIGH" - Threats that have the ability to become critical but have - // mitigating factors; for example, they may be difficult to exploit, do not - // result in elevated privileges, or do not have a large victim pool. - // "CRITICAL" - Serious threats, such as those that affect default - // installations of widely deployed software, result in root compromise of - // servers, and the exploit code is widely available to attackers. The attacker - // usually does not need any special authentication credentials or knowledge - // about the individual victims and the target does not need to be manipulated - // into performing any special functions. - Severity string `json:"severity,omitempty"` - // ForceSendFields is a list of field names (e.g. "Action") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See + // "STATE_UNSPECIFIED" - State not set (this is not a valid state). + // "ACTIVE" - The deployment group is ready. + // "CREATING" - The deployment group is being created. + // "DELETING" - The deployment group is being deleted. + State string `json:"state,omitempty"` + // UpdateTime: Output only. The timestamp when the resource was most recently + // updated. See https://google.aip.dev/148#timestamps. + 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. "ConnectedEndpointGroups") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Action") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "ConnectedEndpointGroups") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s SeverityOverride) MarshalJSON() ([]byte, error) { - type NoMethod SeverityOverride +func (s MirroringDeploymentGroup) MarshalJSON() ([]byte, error) { + type NoMethod MirroringDeploymentGroup return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Source: Specification of traffic source attributes. -type Source struct { - // IpBlocks: Optional. List of CIDR ranges to match based on source IP address. - // At least one IP block should match. Single IP (e.g., "1.2.3.4") and CIDR - // (e.g., "1.2.3.0/24") are supported. Authorization based on source IP alone - // should be avoided. The IP addresses of any load balancers or proxies should - // be considered untrusted. - IpBlocks []string `json:"ipBlocks,omitempty"` - // Principals: Optional. List of peer identities to match for authorization. At - // least one principal should match. Each peer can be an exact match, or a - // prefix match (example, "namespace/*") or a suffix match (example, - // "*/service-account") or a presence match "*". Authorization based on the - // principal name without certificate validation (configured by ServerTlsPolicy - // resource) is considered insecure. - Principals []string `json:"principals,omitempty"` - // ForceSendFields is a list of field names (e.g. "IpBlocks") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See +// MirroringDeploymentGroupConnectedEndpointGroup: An endpoint group connected +// to this deployment group. +type MirroringDeploymentGroupConnectedEndpointGroup struct { + // Name: Output only. The connected endpoint group's resource name, for + // example: + // `projects/123456789/locations/global/mirroringEndpointGroups/my-eg`. See + // https://google.aip.dev/124. + Name string `json:"name,omitempty"` + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "IpBlocks") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "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 Source) MarshalJSON() ([]byte, error) { - type NoMethod Source +func (s MirroringDeploymentGroupConnectedEndpointGroup) MarshalJSON() ([]byte, error) { + type NoMethod MirroringDeploymentGroupConnectedEndpointGroup return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Status: The `Status` type defines a logical error model that is suitable for -// different programming environments, including REST APIs and RPC APIs. It is -// used by gRPC (https://github.com/grpc). Each `Status` message contains three -// pieces of data: error code, error message, and error details. You can find -// out more about this error model and how to work with it in the API Design -// Guide (https://cloud.google.com/apis/design/errors). -type Status struct { - // Code: The status code, which should be an enum value of google.rpc.Code. - Code int64 `json:"code,omitempty"` - // Details: A list of messages that carry the error details. There is a common - // set of message types for APIs to use. - Details []googleapi.RawMessage `json:"details,omitempty"` - // Message: A developer-facing error message, which should be in English. Any - // user-facing error message should be localized and sent in the - // google.rpc.Status.details field, or localized by the client. - Message string `json:"message,omitempty"` - // ForceSendFields is a list of field names (e.g. "Code") to unconditionally +// MirroringDeploymentGroupDeployment: A deployment belonging to this +// deployment group. +type MirroringDeploymentGroupDeployment struct { + // Name: Output only. The name of the Mirroring Deployment, in the format: + // `projects/{project}/locations/{location}/mirroringDeployments/{mirroring_depl + // oyment}`. + Name string `json:"name,omitempty"` + // State: Output only. Most recent known state of the deployment. + // + // Possible values: + // "STATE_UNSPECIFIED" - State not set (this is not a valid state). + // "ACTIVE" - The deployment is ready and in sync with the parent group. + // "CREATING" - The deployment is being created. + // "DELETING" - The deployment is being deleted. + // "OUT_OF_SYNC" - The deployment is out of sync with the parent group. In + // most cases, this is a result of a transient issue within the system (e.g. a + // delayed data-path config) and the system is expected to recover + // automatically. See the parent deployment group's state for more details. + // "DELETE_FAILED" - An attempt to delete the deployment has failed. This is + // a terminal state and the deployment is not expected to recover. The only + // permitted operation is to retry deleting the deployment. + State string `json:"state,omitempty"` + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Code") to include in API requests + // 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 Status) MarshalJSON() ([]byte, error) { - type NoMethod Status +func (s MirroringDeploymentGroupDeployment) MarshalJSON() ([]byte, error) { + type NoMethod MirroringDeploymentGroupDeployment return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ThreatOverride: Defines what action to take for a specific threat_id match. -type ThreatOverride struct { - // Action: Required. Threat action override. For some threat types, only a - // subset of actions applies. - // - // Possible values: - // "THREAT_ACTION_UNSPECIFIED" - Threat action not specified. - // "DEFAULT_ACTION" - The default action (as specified by the vendor) is - // taken. - // "ALLOW" - The packet matching this rule will be allowed to transmit. - // "ALERT" - The packet matching this rule will be allowed to transmit, but a - // threat_log entry will be sent to the consumer project. - // "DENY" - The packet matching this rule will be dropped, and a threat_log - // entry will be sent to the consumer project. - Action string `json:"action,omitempty"` - // ThreatId: Required. Vendor-specific ID of a threat to override. - ThreatId string `json:"threatId,omitempty"` - // Type: Output only. Type of the threat (read only). +// MirroringEndpointGroup: An endpoint group is a consumer frontend for a +// deployment group (backend). In order to configure mirroring for a network, +// consumers must create: - An association between their network and the +// endpoint group. - A security profile that points to the endpoint group. - A +// mirroring rule that references the security profile (group). +type MirroringEndpointGroup struct { + // Associations: Output only. List of associations to this endpoint group. + Associations []*MirroringEndpointGroupAssociationDetails `json:"associations,omitempty"` + // ConnectedDeploymentGroups: Output only. List of details about the connected + // deployment groups to this endpoint group. + ConnectedDeploymentGroups []*MirroringEndpointGroupConnectedDeploymentGroup `json:"connectedDeploymentGroups,omitempty"` + // CreateTime: Output only. The timestamp when the resource was created. See + // https://google.aip.dev/148#timestamps. + CreateTime string `json:"createTime,omitempty"` + // Description: Optional. User-provided description of the endpoint group. Used + // as additional context for the endpoint group. + Description string `json:"description,omitempty"` + // Labels: Optional. Labels are key/value pairs that help to organize and + // filter resources. + Labels map[string]string `json:"labels,omitempty"` + // MirroringDeploymentGroup: Immutable. The deployment group that this DIRECT + // endpoint group is connected to, for example: + // `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`. See + // https://google.aip.dev/124. + MirroringDeploymentGroup string `json:"mirroringDeploymentGroup,omitempty"` + // Name: Immutable. Identifier. The resource name of this endpoint group, for + // example: + // `projects/123456789/locations/global/mirroringEndpointGroups/my-eg`. See + // https://google.aip.dev/122 for more details. + Name string `json:"name,omitempty"` + // Reconciling: Output only. The current state of the resource does not match + // the user's intended state, and the system is working to reconcile them. This + // is part of the normal operation (e.g. adding a new association to the + // group). See https://google.aip.dev/128. + Reconciling bool `json:"reconciling,omitempty"` + // State: Output only. The current state of the endpoint group. See + // https://google.aip.dev/216. // // Possible values: - // "THREAT_TYPE_UNSPECIFIED" - Type of threat not specified. - // "UNKNOWN" - Type of threat is not derivable from threat ID. An override - // will be created for all types. Firewall will ignore overridden signature - // ID's that don't exist in the specific type. - // "VULNERABILITY" - Threats related to system flaws that an attacker might - // otherwise attempt to exploit. - // "ANTIVIRUS" - Threats related to viruses and malware found in executables - // and file types. - // "SPYWARE" - Threats related to command-and-control (C2) activity, where - // spyware on an infected client is collecting data without the user's consent - // and/or communicating with a remote attacker. - // "DNS" - Threats related to DNS. - Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "Action") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See + // "STATE_UNSPECIFIED" - State not set (this is not a valid state). + // "ACTIVE" - The endpoint group is ready and in sync with the target + // deployment group. + // "CLOSED" - The deployment group backing this endpoint group has been + // force-deleted. This endpoint group cannot be used and mirroring is + // effectively disabled. + // "CREATING" - The endpoint group is being created. + // "DELETING" - The endpoint group is being deleted. + // "OUT_OF_SYNC" - The endpoint group is out of sync with the backing + // deployment group. In most cases, this is a result of a transient issue + // within the system (e.g. an inaccessible location) and the system is expected + // to recover automatically. See the associations field for details per network + // and location. + // "DELETE_FAILED" - An attempt to delete the endpoint group has failed. This + // is a terminal state and the endpoint group is not expected to recover. The + // only permitted operation is to retry deleting the endpoint group. + State string `json:"state,omitempty"` + // UpdateTime: Output only. The timestamp when the resource was most recently + // updated. See https://google.aip.dev/148#timestamps. + 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. "Associations") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Action") to include in API + // NullFields is a list of field names (e.g. "Associations") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ThreatOverride) MarshalJSON() ([]byte, error) { - type NoMethod ThreatOverride +func (s MirroringEndpointGroup) MarshalJSON() ([]byte, error) { + type NoMethod MirroringEndpointGroup return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ThreatPreventionProfile: ThreatPreventionProfile defines an action for -// specific threat signatures or severity levels. -type ThreatPreventionProfile struct { - // AntivirusOverrides: Optional. Configuration for overriding antivirus actions - // per protocol. - AntivirusOverrides []*AntivirusOverride `json:"antivirusOverrides,omitempty"` - // SeverityOverrides: Optional. Configuration for overriding threats actions by - // severity match. - SeverityOverrides []*SeverityOverride `json:"severityOverrides,omitempty"` - // ThreatOverrides: Optional. Configuration for overriding threats actions by - // threat_id match. If a threat is matched both by configuration provided in - // severity_overrides and threat_overrides, the threat_overrides action is - // applied. - ThreatOverrides []*ThreatOverride `json:"threatOverrides,omitempty"` - // ForceSendFields is a list of field names (e.g. "AntivirusOverrides") to +// MirroringEndpointGroupAssociation: An endpoint group association represents +// a link between a network and an endpoint group in the organization. Creating +// an association creates the networking infrastructure linking the network to +// the endpoint group, but does not enable mirroring by itself. To enable +// mirroring, the user must also create a network firewall policy containing +// mirroring rules and associate it with the network. +type MirroringEndpointGroupAssociation struct { + // CreateTime: Output only. The timestamp when the resource was created. See + // https://google.aip.dev/148#timestamps. + CreateTime string `json:"createTime,omitempty"` + // Labels: Optional. Labels are key/value pairs that help to organize and + // filter resources. + Labels map[string]string `json:"labels,omitempty"` + // Locations: Output only. The list of locations where the association is + // configured. This information is retrieved from the linked endpoint group. + Locations []*MirroringLocation `json:"locations,omitempty"` + // LocationsDetails: Output only. The list of locations where the association + // is present. This information is retrieved from the linked endpoint group, + // and not configured as part of the association itself. + LocationsDetails []*MirroringEndpointGroupAssociationLocationDetails `json:"locationsDetails,omitempty"` + // MirroringEndpointGroup: Immutable. The endpoint group that this association + // is connected to, for example: + // `projects/123456789/locations/global/mirroringEndpointGroups/my-eg`. See + // https://google.aip.dev/124. + MirroringEndpointGroup string `json:"mirroringEndpointGroup,omitempty"` + // Name: Immutable. Identifier. The resource name of this endpoint group + // association, for example: + // `projects/123456789/locations/global/mirroringEndpointGroupAssociations/my-eg + // -association`. See https://google.aip.dev/122 for more details. + Name string `json:"name,omitempty"` + // Network: Immutable. The VPC network that is associated. for example: + // `projects/123456789/global/networks/my-network`. See + // https://google.aip.dev/124. + Network string `json:"network,omitempty"` + // Reconciling: Output only. The current state of the resource does not match + // the user's intended state, and the system is working to reconcile them. This + // part of the normal operation (e.g. adding a new location to the target + // deployment group). See https://google.aip.dev/128. + Reconciling bool `json:"reconciling,omitempty"` + // State: Output only. Current state of the endpoint group association. + // + // Possible values: + // "STATE_UNSPECIFIED" - Not set. + // "ACTIVE" - The association is ready and in sync with the linked endpoint + // group. + // "CREATING" - The association is being created. + // "DELETING" - The association is being deleted. + // "CLOSED" - The association is disabled due to a breaking change in another + // resource. + // "OUT_OF_SYNC" - The association is out of sync with the linked endpoint + // group. In most cases, this is a result of a transient issue within the + // system (e.g. an inaccessible location) and the system is expected to recover + // automatically. Check the `locations_details` field for more details. + // "DELETE_FAILED" - An attempt to delete the association has failed. This is + // a terminal state and the association is not expected to be usable as some of + // its resources have been deleted. The only permitted operation is to retry + // deleting the association. + State string `json:"state,omitempty"` + // UpdateTime: Output only. The timestamp when the resource was most recently + // updated. See https://google.aip.dev/148#timestamps. + 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. "AntivirusOverrides") to include - // in API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. See + // NullFields is a list of field names (e.g. "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 ThreatPreventionProfile) MarshalJSON() ([]byte, error) { - type NoMethod ThreatPreventionProfile +func (s MirroringEndpointGroupAssociation) MarshalJSON() ([]byte, error) { + type NoMethod MirroringEndpointGroupAssociation return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TlsInspectionPolicy: The TlsInspectionPolicy resource contains references to -// CA pools in Certificate Authority Service and associated metadata. -type TlsInspectionPolicy struct { - // CaPool: Required. A CA pool resource used to issue interception - // certificates. The CA pool string has a relative resource path following the - // form "projects/{project}/locations/{location}/caPools/{ca_pool}". - CaPool string `json:"caPool,omitempty"` - // CreateTime: Output only. The timestamp when the resource was created. - CreateTime string `json:"createTime,omitempty"` - // CustomTlsFeatures: Optional. List of custom TLS cipher suites selected. This - // field is valid only if the selected tls_feature_profile is CUSTOM. The - // compute.SslPoliciesService.ListAvailableFeatures method returns the set of - // features that can be specified in this list. Note that Secure Web Proxy does - // not yet honor this field. - CustomTlsFeatures []string `json:"customTlsFeatures,omitempty"` - // Description: Optional. Free-text description of the resource. - Description string `json:"description,omitempty"` - // ExcludePublicCaSet: Optional. If FALSE (the default), use our default set of - // public CAs in addition to any CAs specified in trust_config. These public - // CAs are currently based on the Mozilla Root Program and are subject to - // change over time. If TRUE, do not accept our default set of public CAs. Only - // CAs specified in trust_config will be accepted. This defaults to FALSE (use - // public CAs in addition to trust_config) for backwards compatibility, but - // trusting public root CAs is *not recommended* unless the traffic in question - // is outbound to public web servers. When possible, prefer setting this to - // "false" and explicitly specifying trusted CAs and certificates in a - // TrustConfig. Note that Secure Web Proxy does not yet honor this field. - ExcludePublicCaSet bool `json:"excludePublicCaSet,omitempty"` - // MinTlsVersion: Optional. Minimum TLS version that the firewall should use - // when negotiating connections with both clients and servers. If this is not - // set, then the default value is to allow the broadest set of clients and - // servers (TLS 1.0 or higher). Setting this to more restrictive values may - // improve security, but may also prevent the firewall from connecting to some - // clients or servers. Note that Secure Web Proxy does not yet honor this - // field. - // - // Possible values: - // "TLS_VERSION_UNSPECIFIED" - Indicates no TLS version was specified. - // "TLS_1_0" - TLS 1.0 - // "TLS_1_1" - TLS 1.1 - // "TLS_1_2" - TLS 1.2 - // "TLS_1_3" - TLS 1.3 - MinTlsVersion string `json:"minTlsVersion,omitempty"` - // Name: Required. Name of the resource. Name is of the form - // projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection - // _policy} tls_inspection_policy should match the pattern:(^a-z - // ([a-z0-9-]{0,61}[a-z0-9])?$). +// MirroringEndpointGroupAssociationDetails: The endpoint group's view of a +// connected association. +type MirroringEndpointGroupAssociationDetails struct { + // Name: Output only. The connected association's resource name, for example: + // `projects/123456789/locations/global/mirroringEndpointGroupAssociations/my-eg + // a`. See https://google.aip.dev/124. Name string `json:"name,omitempty"` - // TlsFeatureProfile: Optional. The selected Profile. If this is not set, then - // the default value is to allow the broadest set of clients and servers - // ("PROFILE_COMPATIBLE"). Setting this to more restrictive values may improve - // security, but may also prevent the TLS inspection proxy from connecting to - // some clients or servers. Note that Secure Web Proxy does not yet honor this - // field. + // Network: Output only. The associated network, for example: + // projects/123456789/global/networks/my-network. See + // https://google.aip.dev/124. + Network string `json:"network,omitempty"` + // State: Output only. Most recent known state of the association. // // Possible values: - // "PROFILE_UNSPECIFIED" - Indicates no profile was specified. - // "PROFILE_COMPATIBLE" - Compatible profile. Allows the broadest set of - // clients, even those which support only out-of-date SSL features to negotiate - // with the TLS inspection proxy. - // "PROFILE_MODERN" - Modern profile. Supports a wide set of SSL features, - // allowing modern clients to negotiate SSL with the TLS inspection proxy. - // "PROFILE_RESTRICTED" - Restricted profile. Supports a reduced set of SSL - // features, intended to meet stricter compliance requirements. - // "PROFILE_CUSTOM" - Custom profile. Allow only the set of allowed SSL - // features specified in the custom_features field of SslPolicy. - TlsFeatureProfile string `json:"tlsFeatureProfile,omitempty"` - // TrustConfig: Optional. A TrustConfig resource used when making a connection - // to the TLS server. This is a relative resource path following the form - // "projects/{project}/locations/{location}/trustConfigs/{trust_config}". This - // is necessary to intercept TLS connections to servers with certificates - // signed by a private CA or self-signed certificates. Note that Secure Web - // Proxy does not yet honor this field. - TrustConfig string `json:"trustConfig,omitempty"` - // UpdateTime: Output only. The timestamp when the resource was 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. "CaPool") to unconditionally + // "STATE_UNSPECIFIED" - Not set. + // "ACTIVE" - The association is ready and in sync with the linked endpoint + // group. + // "CREATING" - The association is being created. + // "DELETING" - The association is being deleted. + // "CLOSED" - The association is disabled due to a breaking change in another + // resource. + // "OUT_OF_SYNC" - The association is out of sync with the linked endpoint + // group. In most cases, this is a result of a transient issue within the + // system (e.g. an inaccessible location) and the system is expected to recover + // automatically. Check the `locations_details` field for more details. + // "DELETE_FAILED" - An attempt to delete the association has failed. This is + // a terminal state and the association is not expected to be usable as some of + // its resources have been deleted. The only permitted operation is to retry + // deleting the association. + State string `json:"state,omitempty"` + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CaPool") to include in API + // 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 MirroringEndpointGroupAssociationDetails) MarshalJSON() ([]byte, error) { + type NoMethod MirroringEndpointGroupAssociationDetails + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// MirroringEndpointGroupAssociationLocationDetails: Contains details about the +// state of an association in a specific cloud location. +type MirroringEndpointGroupAssociationLocationDetails struct { + // Location: Output only. The cloud location, e.g. "us-central1-a" or + // "asia-south1". + Location string `json:"location,omitempty"` + // State: Output only. The current state of the association in this location. + // + // Possible values: + // "STATE_UNSPECIFIED" - Not set. + // "ACTIVE" - The association is ready and in sync with the linked endpoint + // group. + // "OUT_OF_SYNC" - The association is out of sync with the linked endpoint + // group. In most cases, this is a result of a transient issue within the + // system (e.g. an inaccessible location) and the system is expected to recover + // automatically. + State string `json:"state,omitempty"` + // ForceSendFields is a list of field names (e.g. "Location") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Location") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s TlsInspectionPolicy) MarshalJSON() ([]byte, error) { - type NoMethod TlsInspectionPolicy +func (s MirroringEndpointGroupAssociationLocationDetails) MarshalJSON() ([]byte, error) { + type NoMethod MirroringEndpointGroupAssociationLocationDetails return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// UrlList: UrlList proto helps users to set reusable, independently manageable -// lists of hosts, host patterns, URLs, URL patterns. -type UrlList struct { - // CreateTime: Output only. Time when the security policy was created. - CreateTime string `json:"createTime,omitempty"` - // Description: Optional. Free-text description of the resource. - Description string `json:"description,omitempty"` - // Name: Required. Name of the resource provided by the user. Name is of the - // form projects/{project}/locations/{location}/urlLists/{url_list} url_list - // should match the pattern:(^a-z ([a-z0-9-]{0,61}[a-z0-9])?$). +// MirroringEndpointGroupConnectedDeploymentGroup: The endpoint group's view of +// a connected deployment group. +type MirroringEndpointGroupConnectedDeploymentGroup struct { + // Locations: Output only. The list of locations where the deployment group is + // present. + Locations []*MirroringLocation `json:"locations,omitempty"` + // Name: Output only. The connected deployment group's resource name, for + // example: + // `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`. See + // https://google.aip.dev/124. Name string `json:"name,omitempty"` - // UpdateTime: Output only. Time when the security policy was updated. - UpdateTime string `json:"updateTime,omitempty"` - // Values: Required. FQDNs and URLs. - Values []string `json:"values,omitempty"` + // ForceSendFields is a list of field names (e.g. "Locations") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Locations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} - // 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 +func (s MirroringEndpointGroupConnectedDeploymentGroup) MarshalJSON() ([]byte, error) { + type NoMethod MirroringEndpointGroupConnectedDeploymentGroup + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// MirroringLocation: Details about mirroring in a specific cloud location. +type MirroringLocation struct { + // Location: Output only. The cloud location, e.g. "us-central1-a" or + // "asia-south1". + Location string `json:"location,omitempty"` + // State: Output only. The current state of the association in this location. + // + // Possible values: + // "STATE_UNSPECIFIED" - State not set (this is not a valid state). + // "ACTIVE" - The resource is ready and in sync in the location. + // "OUT_OF_SYNC" - The resource is out of sync in the location. In most + // cases, this is a result of a transient issue within the system (e.g. an + // inaccessible location) and the system is expected to recover automatically. + State string `json:"state,omitempty"` + // ForceSendFields is a list of field names (e.g. "Location") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://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 + // NullFields is a list of field names (e.g. "Location") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s UrlList) MarshalJSON() ([]byte, error) { - type NoMethod UrlList +func (s MirroringLocation) MarshalJSON() ([]byte, error) { + type NoMethod MirroringLocation return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ValidationCA: Specification of ValidationCA. Defines the mechanism to obtain -// the Certificate Authority certificate to validate the peer certificate. -type ValidationCA struct { - // CertificateProviderInstance: The certificate provider instance specification - // that will be passed to the data plane, which will be used to load necessary - // credential information. - CertificateProviderInstance *CertificateProviderInstance `json:"certificateProviderInstance,omitempty"` - // GrpcEndpoint: gRPC specific configuration to access the gRPC server to - // obtain the CA certificate. - GrpcEndpoint *GoogleCloudNetworksecurityV1GrpcEndpoint `json:"grpcEndpoint,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "CertificateProviderInstance") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields - // for more details. +// Operation: This resource represents a long-running operation that is the +// result of a network API call. +type Operation struct { + // Done: If the value is `false`, it means the operation is still in progress. + // If `true`, the operation is completed, and either `error` or `response` is + // available. + Done bool `json:"done,omitempty"` + // Error: The error result of the operation in case of failure or cancellation. + Error *Status `json:"error,omitempty"` + // Metadata: Service-specific metadata associated with the operation. It + // typically contains progress information and common metadata such as create + // time. Some services might not provide such metadata. Any method that returns + // a long-running operation should document the metadata type, if any. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` + // Name: The server-assigned name, which is only unique within the same service + // that originally returns it. If you use the default HTTP mapping, the `name` + // should be a resource name ending with `operations/{unique_id}`. + Name string `json:"name,omitempty"` + // Response: The normal, successful response of the operation. If the original + // method returns no data on success, such as `Delete`, the response is + // `google.protobuf.Empty`. If the original method is standard + // `Get`/`Create`/`Update`, the response should be the resource. For other + // methods, the response should have the type `XxxResponse`, where `Xxx` is the + // original method name. For example, if the original method name is + // `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. + Response googleapi.RawMessage `json:"response,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CertificateProviderInstance") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ValidationCA) MarshalJSON() ([]byte, error) { - type NoMethod ValidationCA +func (s Operation) MarshalJSON() ([]byte, error) { + type NoMethod Operation return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -type OrganizationsLocationsAddressGroupsAddItemsCall struct { - s *Service - addressGroup string - addaddressgroupitemsrequest *AddAddressGroupItemsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// OperationMetadata: Represents the metadata of the long-running operation. +type OperationMetadata struct { + // ApiVersion: Output only. API version used to start the operation. + ApiVersion string `json:"apiVersion,omitempty"` + // CreateTime: Output only. The time the operation was created. + CreateTime string `json:"createTime,omitempty"` + // EndTime: Output only. The time the operation finished running. + 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`. + RequestedCancellation bool `json:"requestedCancellation,omitempty"` + // StatusMessage: Output only. Human-readable status of the operation, if any. + StatusMessage string `json:"statusMessage,omitempty"` + // Target: Output only. Server-defined resource path for the target of the + // operation. + Target string `json:"target,omitempty"` + // Verb: Output only. Name of the verb executed by the operation. + Verb string `json:"verb,omitempty"` + // ForceSendFields is a list of field names (e.g. "ApiVersion") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ApiVersion") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s OperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod OperationMetadata + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// RemoveAddressGroupItemsRequest: Request used by the RemoveAddressGroupItems +// method. +type RemoveAddressGroupItemsRequest struct { + // Items: Required. List of items to remove. + Items []string `json:"items,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"` + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Items") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s RemoveAddressGroupItemsRequest) MarshalJSON() ([]byte, error) { + type NoMethod RemoveAddressGroupItemsRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// Rule: Specification of rules. +type Rule struct { + // Destinations: Optional. List of attributes for the traffic destination. All + // of the destinations must match. A destination is a match if a request + // matches all the specified hosts, ports, methods and headers. If not set, the + // action specified in the 'action' field will be applied without any rule + // checks for the destination. + Destinations []*Destination `json:"destinations,omitempty"` + // Sources: Optional. List of attributes for the traffic source. All of the + // sources must match. A source is a match if both principals and ip_blocks + // match. If not set, the action specified in the 'action' field will be + // applied without any rule checks for the source. + Sources []*Source `json:"sources,omitempty"` + // ForceSendFields is a list of field names (e.g. "Destinations") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Destinations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s Rule) MarshalJSON() ([]byte, error) { + type NoMethod Rule + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SecurityProfile: SecurityProfile is a resource that defines the behavior for +// one of many ProfileTypes. +type SecurityProfile struct { + // CreateTime: Output only. Resource creation timestamp. + CreateTime string `json:"createTime,omitempty"` + // CustomInterceptProfile: The custom TPPI configuration for the + // SecurityProfile. + CustomInterceptProfile *CustomInterceptProfile `json:"customInterceptProfile,omitempty"` + // CustomMirroringProfile: The custom Packet Mirroring v2 configuration for the + // SecurityProfile. + CustomMirroringProfile *CustomMirroringProfile `json:"customMirroringProfile,omitempty"` + // Description: Optional. An optional description of the profile. Max length + // 512 characters. + Description string `json:"description,omitempty"` + // Etag: Output only. This checksum is computed by the server based on the + // value of other fields, and may be sent on update and delete requests to + // ensure the client has an up-to-date value before proceeding. + Etag string `json:"etag,omitempty"` + // Labels: Optional. Labels as key value pairs. + Labels map[string]string `json:"labels,omitempty"` + // Name: Immutable. Identifier. Name of the SecurityProfile resource. It + // matches pattern + // `projects|organizations/*/locations/{location}/securityProfiles/{security_pro + // file}`. + Name string `json:"name,omitempty"` + // ThreatPreventionProfile: The threat prevention configuration for the + // SecurityProfile. + ThreatPreventionProfile *ThreatPreventionProfile `json:"threatPreventionProfile,omitempty"` + // Type: Immutable. The single ProfileType that the SecurityProfile resource + // configures. + // + // Possible values: + // "PROFILE_TYPE_UNSPECIFIED" - Profile type not specified. + // "THREAT_PREVENTION" - Profile type for threat prevention. + // "CUSTOM_MIRRORING" - Profile type for packet mirroring v2 + // "CUSTOM_INTERCEPT" - Profile type for TPPI. + Type string `json:"type,omitempty"` + // UpdateTime: Output only. Last resource update timestamp. + 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 SecurityProfile) MarshalJSON() ([]byte, error) { + type NoMethod SecurityProfile + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SecurityProfileGroup: SecurityProfileGroup is a resource that defines the +// behavior for various ProfileTypes. +type SecurityProfileGroup struct { + // CreateTime: Output only. Resource creation timestamp. + CreateTime string `json:"createTime,omitempty"` + // CustomInterceptProfile: Optional. Reference to a SecurityProfile with the + // CustomIntercept configuration. + CustomInterceptProfile string `json:"customInterceptProfile,omitempty"` + // CustomMirroringProfile: Optional. Reference to a SecurityProfile with the + // CustomMirroring configuration. + CustomMirroringProfile string `json:"customMirroringProfile,omitempty"` + // DataPathId: Output only. Identifier used by the data-path. Unique within + // {container, location}. + DataPathId uint64 `json:"dataPathId,omitempty,string"` + // Description: Optional. An optional description of the profile group. Max + // length 2048 characters. + Description string `json:"description,omitempty"` + // Etag: Output only. This checksum is computed by the server based on the + // value of other fields, and may be sent on update and delete requests to + // ensure the client has an up-to-date value before proceeding. + Etag string `json:"etag,omitempty"` + // Labels: Optional. Labels as key value pairs. + Labels map[string]string `json:"labels,omitempty"` + // Name: Immutable. Identifier. Name of the SecurityProfileGroup resource. It + // matches pattern + // `projects|organizations/*/locations/{location}/securityProfileGroups/{securit + // y_profile_group}`. + Name string `json:"name,omitempty"` + // ThreatPreventionProfile: Optional. Reference to a SecurityProfile with the + // ThreatPrevention configuration. + ThreatPreventionProfile string `json:"threatPreventionProfile,omitempty"` + // UpdateTime: Output only. Last resource update timestamp. + 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 SecurityProfileGroup) MarshalJSON() ([]byte, error) { + type NoMethod SecurityProfileGroup + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ServerTlsPolicy: ServerTlsPolicy is a resource that specifies how a server +// should authenticate incoming requests. This resource itself does not affect +// configuration unless it is attached to a target HTTPS proxy or endpoint +// config selector resource. ServerTlsPolicy in the form accepted by +// Application Load Balancers can be attached only to TargetHttpsProxy with an +// `EXTERNAL`, `EXTERNAL_MANAGED` or `INTERNAL_MANAGED` load balancing scheme. +// Traffic Director compatible ServerTlsPolicies can be attached to +// EndpointPolicy and TargetHttpsProxy with Traffic Director +// `INTERNAL_SELF_MANAGED` load balancing scheme. +type ServerTlsPolicy struct { + // AllowOpen: This field applies only for Traffic Director policies. It is must + // be set to false for Application Load Balancer policies. Determines if server + // allows plaintext connections. If set to true, server allows plain text + // connections. By default, it is set to false. This setting is not exclusive + // of other encryption modes. For example, if `allow_open` and `mtls_policy` + // are set, server allows both plain text and mTLS connections. See + // documentation of other encryption modes to confirm compatibility. Consider + // using it if you wish to upgrade in place your deployment to TLS while having + // mixed TLS and non-TLS traffic reaching port :80. + AllowOpen bool `json:"allowOpen,omitempty"` + // CreateTime: Output only. The timestamp when the resource was created. + CreateTime string `json:"createTime,omitempty"` + // Description: Free-text description of the resource. + Description string `json:"description,omitempty"` + // Labels: Set of label tags associated with the resource. + Labels map[string]string `json:"labels,omitempty"` + // MtlsPolicy: This field is required if the policy is used with Application + // Load Balancers. This field can be empty for Traffic Director. Defines a + // mechanism to provision peer validation certificates for peer to peer + // authentication (Mutual TLS - mTLS). If not specified, client certificate + // will not be requested. The connection is treated as TLS and not mTLS. If + // `allow_open` and `mtls_policy` are set, server allows both plain text and + // mTLS connections. + MtlsPolicy *MTLSPolicy `json:"mtlsPolicy,omitempty"` + // Name: Required. Name of the ServerTlsPolicy resource. It matches the pattern + // `projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}` + Name string `json:"name,omitempty"` + // ServerCertificate: Optional if policy is to be used with Traffic Director. + // For Application Load Balancers must be empty. Defines a mechanism to + // provision server identity (public and private keys). Cannot be combined with + // `allow_open` as a permissive mode that allows both plain text and TLS is not + // supported. + ServerCertificate *GoogleCloudNetworksecurityV1CertificateProvider `json:"serverCertificate,omitempty"` + // UpdateTime: Output only. The timestamp when the resource was 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. "AllowOpen") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AllowOpen") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ServerTlsPolicy) MarshalJSON() ([]byte, error) { + type NoMethod ServerTlsPolicy + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// SeverityOverride: Defines what action to take for a specific severity match. +type SeverityOverride struct { + // Action: Required. Threat action override. + // + // Possible values: + // "THREAT_ACTION_UNSPECIFIED" - Threat action not specified. + // "DEFAULT_ACTION" - The default action (as specified by the vendor) is + // taken. + // "ALLOW" - The packet matching this rule will be allowed to transmit. + // "ALERT" - The packet matching this rule will be allowed to transmit, but a + // threat_log entry will be sent to the consumer project. + // "DENY" - The packet matching this rule will be dropped, and a threat_log + // entry will be sent to the consumer project. + Action string `json:"action,omitempty"` + // Severity: Required. Severity level to match. + // + // Possible values: + // "SEVERITY_UNSPECIFIED" - Severity level not specified. + // "INFORMATIONAL" - Suspicious events that do not pose an immediate threat, + // but that are reported to call attention to deeper problems that could + // possibly exist. + // "LOW" - Warning-level threats that have very little impact on an + // organization's infrastructure. They usually require local or physical system + // access and may often result in victim privacy issues and information + // leakage. + // "MEDIUM" - Minor threats in which impact is minimized, that do not + // compromise the target or exploits that require an attacker to reside on the + // same local network as the victim, affect only non-standard configurations or + // obscure applications, or provide very limited access. + // "HIGH" - Threats that have the ability to become critical but have + // mitigating factors; for example, they may be difficult to exploit, do not + // result in elevated privileges, or do not have a large victim pool. + // "CRITICAL" - Serious threats, such as those that affect default + // installations of widely deployed software, result in root compromise of + // servers, and the exploit code is widely available to attackers. The attacker + // usually does not need any special authentication credentials or knowledge + // about the individual victims and the target does not need to be manipulated + // into performing any special functions. + Severity string `json:"severity,omitempty"` + // ForceSendFields is a list of field names (e.g. "Action") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Action") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SeverityOverride) MarshalJSON() ([]byte, error) { + type NoMethod SeverityOverride + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// Source: Specification of traffic source attributes. +type Source struct { + // IpBlocks: Optional. List of CIDR ranges to match based on source IP address. + // At least one IP block should match. Single IP (e.g., "1.2.3.4") and CIDR + // (e.g., "1.2.3.0/24") are supported. Authorization based on source IP alone + // should be avoided. The IP addresses of any load balancers or proxies should + // be considered untrusted. + IpBlocks []string `json:"ipBlocks,omitempty"` + // Principals: Optional. List of peer identities to match for authorization. At + // least one principal should match. Each peer can be an exact match, or a + // prefix match (example, "namespace/*") or a suffix match (example, + // "*/service-account") or a presence match "*". Authorization based on the + // principal name without certificate validation (configured by ServerTlsPolicy + // resource) is considered insecure. + Principals []string `json:"principals,omitempty"` + // ForceSendFields is a list of field names (e.g. "IpBlocks") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "IpBlocks") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s Source) MarshalJSON() ([]byte, error) { + type NoMethod Source + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// Status: The `Status` type defines a logical error model that is suitable for +// different programming environments, including REST APIs and RPC APIs. It is +// used by gRPC (https://github.com/grpc). Each `Status` message contains three +// pieces of data: error code, error message, and error details. You can find +// out more about this error model and how to work with it in the API Design +// Guide (https://cloud.google.com/apis/design/errors). +type Status struct { + // Code: The status code, which should be an enum value of google.rpc.Code. + Code int64 `json:"code,omitempty"` + // Details: A list of messages that carry the error details. There is a common + // set of message types for APIs to use. + Details []googleapi.RawMessage `json:"details,omitempty"` + // Message: A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + // google.rpc.Status.details field, or localized by the client. + Message string `json:"message,omitempty"` + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s Status) MarshalJSON() ([]byte, error) { + type NoMethod Status + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ThreatOverride: Defines what action to take for a specific threat_id match. +type ThreatOverride struct { + // Action: Required. Threat action override. For some threat types, only a + // subset of actions applies. + // + // Possible values: + // "THREAT_ACTION_UNSPECIFIED" - Threat action not specified. + // "DEFAULT_ACTION" - The default action (as specified by the vendor) is + // taken. + // "ALLOW" - The packet matching this rule will be allowed to transmit. + // "ALERT" - The packet matching this rule will be allowed to transmit, but a + // threat_log entry will be sent to the consumer project. + // "DENY" - The packet matching this rule will be dropped, and a threat_log + // entry will be sent to the consumer project. + Action string `json:"action,omitempty"` + // ThreatId: Required. Vendor-specific ID of a threat to override. + ThreatId string `json:"threatId,omitempty"` + // Type: Output only. Type of the threat (read only). + // + // Possible values: + // "THREAT_TYPE_UNSPECIFIED" - Type of threat not specified. + // "UNKNOWN" - Type of threat is not derivable from threat ID. An override + // will be created for all types. Firewall will ignore overridden signature + // ID's that don't exist in the specific type. + // "VULNERABILITY" - Threats related to system flaws that an attacker might + // otherwise attempt to exploit. + // "ANTIVIRUS" - Threats related to viruses and malware found in executables + // and file types. + // "SPYWARE" - Threats related to command-and-control (C2) activity, where + // spyware on an infected client is collecting data without the user's consent + // and/or communicating with a remote attacker. + // "DNS" - Threats related to DNS. + Type string `json:"type,omitempty"` + // ForceSendFields is a list of field names (e.g. "Action") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Action") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ThreatOverride) MarshalJSON() ([]byte, error) { + type NoMethod ThreatOverride + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ThreatPreventionProfile: ThreatPreventionProfile defines an action for +// specific threat signatures or severity levels. +type ThreatPreventionProfile struct { + // AntivirusOverrides: Optional. Configuration for overriding antivirus actions + // per protocol. + AntivirusOverrides []*AntivirusOverride `json:"antivirusOverrides,omitempty"` + // SeverityOverrides: Optional. Configuration for overriding threats actions by + // severity match. + SeverityOverrides []*SeverityOverride `json:"severityOverrides,omitempty"` + // ThreatOverrides: Optional. Configuration for overriding threats actions by + // threat_id match. If a threat is matched both by configuration provided in + // severity_overrides and threat_overrides, the threat_overrides action is + // applied. + ThreatOverrides []*ThreatOverride `json:"threatOverrides,omitempty"` + // ForceSendFields is a list of field names (e.g. "AntivirusOverrides") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AntivirusOverrides") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ThreatPreventionProfile) MarshalJSON() ([]byte, error) { + type NoMethod ThreatPreventionProfile + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// TlsInspectionPolicy: The TlsInspectionPolicy resource contains references to +// CA pools in Certificate Authority Service and associated metadata. +type TlsInspectionPolicy struct { + // CaPool: Required. A CA pool resource used to issue interception + // certificates. The CA pool string has a relative resource path following the + // form "projects/{project}/locations/{location}/caPools/{ca_pool}". + CaPool string `json:"caPool,omitempty"` + // CreateTime: Output only. The timestamp when the resource was created. + CreateTime string `json:"createTime,omitempty"` + // CustomTlsFeatures: Optional. List of custom TLS cipher suites selected. This + // field is valid only if the selected tls_feature_profile is CUSTOM. The + // compute.SslPoliciesService.ListAvailableFeatures method returns the set of + // features that can be specified in this list. Note that Secure Web Proxy does + // not yet honor this field. + CustomTlsFeatures []string `json:"customTlsFeatures,omitempty"` + // Description: Optional. Free-text description of the resource. + Description string `json:"description,omitempty"` + // ExcludePublicCaSet: Optional. If FALSE (the default), use our default set of + // public CAs in addition to any CAs specified in trust_config. These public + // CAs are currently based on the Mozilla Root Program and are subject to + // change over time. If TRUE, do not accept our default set of public CAs. Only + // CAs specified in trust_config will be accepted. This defaults to FALSE (use + // public CAs in addition to trust_config) for backwards compatibility, but + // trusting public root CAs is *not recommended* unless the traffic in question + // is outbound to public web servers. When possible, prefer setting this to + // "false" and explicitly specifying trusted CAs and certificates in a + // TrustConfig. Note that Secure Web Proxy does not yet honor this field. + ExcludePublicCaSet bool `json:"excludePublicCaSet,omitempty"` + // MinTlsVersion: Optional. Minimum TLS version that the firewall should use + // when negotiating connections with both clients and servers. If this is not + // set, then the default value is to allow the broadest set of clients and + // servers (TLS 1.0 or higher). Setting this to more restrictive values may + // improve security, but may also prevent the firewall from connecting to some + // clients or servers. Note that Secure Web Proxy does not yet honor this + // field. + // + // Possible values: + // "TLS_VERSION_UNSPECIFIED" - Indicates no TLS version was specified. + // "TLS_1_0" - TLS 1.0 + // "TLS_1_1" - TLS 1.1 + // "TLS_1_2" - TLS 1.2 + // "TLS_1_3" - TLS 1.3 + MinTlsVersion string `json:"minTlsVersion,omitempty"` + // Name: Required. Name of the resource. Name is of the form + // projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection + // _policy} tls_inspection_policy should match the pattern:(^a-z + // ([a-z0-9-]{0,61}[a-z0-9])?$). + Name string `json:"name,omitempty"` + // TlsFeatureProfile: Optional. The selected Profile. If this is not set, then + // the default value is to allow the broadest set of clients and servers + // ("PROFILE_COMPATIBLE"). Setting this to more restrictive values may improve + // security, but may also prevent the TLS inspection proxy from connecting to + // some clients or servers. Note that Secure Web Proxy does not yet honor this + // field. + // + // Possible values: + // "PROFILE_UNSPECIFIED" - Indicates no profile was specified. + // "PROFILE_COMPATIBLE" - Compatible profile. Allows the broadest set of + // clients, even those which support only out-of-date SSL features to negotiate + // with the TLS inspection proxy. + // "PROFILE_MODERN" - Modern profile. Supports a wide set of SSL features, + // allowing modern clients to negotiate SSL with the TLS inspection proxy. + // "PROFILE_RESTRICTED" - Restricted profile. Supports a reduced set of SSL + // features, intended to meet stricter compliance requirements. + // "PROFILE_CUSTOM" - Custom profile. Allow only the set of allowed SSL + // features specified in the custom_features field of SslPolicy. + TlsFeatureProfile string `json:"tlsFeatureProfile,omitempty"` + // TrustConfig: Optional. A TrustConfig resource used when making a connection + // to the TLS server. This is a relative resource path following the form + // "projects/{project}/locations/{location}/trustConfigs/{trust_config}". This + // is necessary to intercept TLS connections to servers with certificates + // signed by a private CA or self-signed certificates. Note that Secure Web + // Proxy does not yet honor this field. + TrustConfig string `json:"trustConfig,omitempty"` + // UpdateTime: Output only. The timestamp when the resource was 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. "CaPool") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CaPool") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s TlsInspectionPolicy) MarshalJSON() ([]byte, error) { + type NoMethod TlsInspectionPolicy + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// UrlList: UrlList proto helps users to set reusable, independently manageable +// lists of hosts, host patterns, URLs, URL patterns. +type UrlList struct { + // CreateTime: Output only. Time when the security policy was created. + CreateTime string `json:"createTime,omitempty"` + // Description: Optional. Free-text description of the resource. + Description string `json:"description,omitempty"` + // Name: Required. Name of the resource provided by the user. Name is of the + // form projects/{project}/locations/{location}/urlLists/{url_list} url_list + // should match the pattern:(^a-z ([a-z0-9-]{0,61}[a-z0-9])?$). + Name string `json:"name,omitempty"` + // UpdateTime: Output only. Time when the security policy was updated. + UpdateTime string `json:"updateTime,omitempty"` + // Values: Required. FQDNs and URLs. + Values []string `json:"values,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 UrlList) MarshalJSON() ([]byte, error) { + type NoMethod UrlList + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ValidationCA: Specification of ValidationCA. Defines the mechanism to obtain +// the Certificate Authority certificate to validate the peer certificate. +type ValidationCA struct { + // CertificateProviderInstance: The certificate provider instance specification + // that will be passed to the data plane, which will be used to load necessary + // credential information. + CertificateProviderInstance *CertificateProviderInstance `json:"certificateProviderInstance,omitempty"` + // GrpcEndpoint: gRPC specific configuration to access the gRPC server to + // obtain the CA certificate. + GrpcEndpoint *GoogleCloudNetworksecurityV1GrpcEndpoint `json:"grpcEndpoint,omitempty"` + // ForceSendFields is a list of field names (e.g. + // "CertificateProviderInstance") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CertificateProviderInstance") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ValidationCA) MarshalJSON() ([]byte, error) { + type NoMethod ValidationCA + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +type OrganizationsLocationsAddressGroupsAddItemsCall struct { + s *Service + addressGroup string + addaddressgroupitemsrequest *AddAddressGroupItemsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// AddItems: Adds items to an address group. +// +// - addressGroup: A name of the AddressGroup to add items to. Must be in the +// format `projects|organization/*/locations/{location}/addressGroups/*`. +func (r *OrganizationsLocationsAddressGroupsService) AddItems(addressGroup string, addaddressgroupitemsrequest *AddAddressGroupItemsRequest) *OrganizationsLocationsAddressGroupsAddItemsCall { + c := &OrganizationsLocationsAddressGroupsAddItemsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.addressGroup = addressGroup + c.addaddressgroupitemsrequest = addaddressgroupitemsrequest + 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 *OrganizationsLocationsAddressGroupsAddItemsCall) Fields(s ...googleapi.Field) *OrganizationsLocationsAddressGroupsAddItemsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *OrganizationsLocationsAddressGroupsAddItemsCall) Context(ctx context.Context) *OrganizationsLocationsAddressGroupsAddItemsCall { + 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 *OrganizationsLocationsAddressGroupsAddItemsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsAddressGroupsAddItemsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.addaddressgroupitemsrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+addressGroup}:addItems") + 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{ + "addressGroup": c.addressGroup, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.addressGroups.addItems", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networksecurity.organizations.locations.addressGroups.addItems" 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 *OrganizationsLocationsAddressGroupsAddItemsCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.addressGroups.addItems", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type OrganizationsLocationsAddressGroupsCloneItemsCall struct { + s *Service + addressGroup string + cloneaddressgroupitemsrequest *CloneAddressGroupItemsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// CloneItems: Clones items from one address group to another. +// +// - addressGroup: A name of the AddressGroup to clone items to. Must be in the +// format `projects|organization/*/locations/{location}/addressGroups/*`. +func (r *OrganizationsLocationsAddressGroupsService) CloneItems(addressGroup string, cloneaddressgroupitemsrequest *CloneAddressGroupItemsRequest) *OrganizationsLocationsAddressGroupsCloneItemsCall { + c := &OrganizationsLocationsAddressGroupsCloneItemsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.addressGroup = addressGroup + c.cloneaddressgroupitemsrequest = cloneaddressgroupitemsrequest + 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 *OrganizationsLocationsAddressGroupsCloneItemsCall) Fields(s ...googleapi.Field) *OrganizationsLocationsAddressGroupsCloneItemsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *OrganizationsLocationsAddressGroupsCloneItemsCall) Context(ctx context.Context) *OrganizationsLocationsAddressGroupsCloneItemsCall { + 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 *OrganizationsLocationsAddressGroupsCloneItemsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsAddressGroupsCloneItemsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.cloneaddressgroupitemsrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+addressGroup}:cloneItems") + 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{ + "addressGroup": c.addressGroup, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.addressGroups.cloneItems", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networksecurity.organizations.locations.addressGroups.cloneItems" 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 *OrganizationsLocationsAddressGroupsCloneItemsCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.addressGroups.cloneItems", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type OrganizationsLocationsAddressGroupsCreateCall struct { + s *Service + parent string + addressgroup *AddressGroup + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new address group in a given project and location. +// +// - parent: The parent resource of the AddressGroup. Must be in the format +// `projects/*/locations/{location}`. +func (r *OrganizationsLocationsAddressGroupsService) Create(parent string, addressgroup *AddressGroup) *OrganizationsLocationsAddressGroupsCreateCall { + c := &OrganizationsLocationsAddressGroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.addressgroup = addressgroup + return c +} + +// AddressGroupId sets the optional parameter "addressGroupId": Required. Short +// name of the AddressGroup resource to be created. This value should be 1-63 +// characters long, containing only letters, numbers, hyphens, and underscores, +// and should not start with a number. E.g. "authz_policy". +func (c *OrganizationsLocationsAddressGroupsCreateCall) AddressGroupId(addressGroupId string) *OrganizationsLocationsAddressGroupsCreateCall { + c.urlParams_.Set("addressGroupId", addressGroupId) + 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 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). +func (c *OrganizationsLocationsAddressGroupsCreateCall) RequestId(requestId string) *OrganizationsLocationsAddressGroupsCreateCall { + 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 *OrganizationsLocationsAddressGroupsCreateCall) Fields(s ...googleapi.Field) *OrganizationsLocationsAddressGroupsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *OrganizationsLocationsAddressGroupsCreateCall) Context(ctx context.Context) *OrganizationsLocationsAddressGroupsCreateCall { + 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 *OrganizationsLocationsAddressGroupsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsAddressGroupsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.addressgroup) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/addressGroups") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.addressGroups.create", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networksecurity.organizations.locations.addressGroups.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 *OrganizationsLocationsAddressGroupsCreateCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.addressGroups.create", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type OrganizationsLocationsAddressGroupsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes an address group. +// +// - name: A name of the AddressGroup to delete. Must be in the format +// `projects/*/locations/{location}/addressGroups/*`. +func (r *OrganizationsLocationsAddressGroupsService) Delete(name string) *OrganizationsLocationsAddressGroupsDeleteCall { + c := &OrganizationsLocationsAddressGroupsDeleteCall{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 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). +func (c *OrganizationsLocationsAddressGroupsDeleteCall) RequestId(requestId string) *OrganizationsLocationsAddressGroupsDeleteCall { + 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 *OrganizationsLocationsAddressGroupsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsLocationsAddressGroupsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *OrganizationsLocationsAddressGroupsDeleteCall) Context(ctx context.Context) *OrganizationsLocationsAddressGroupsDeleteCall { + 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 *OrganizationsLocationsAddressGroupsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsAddressGroupsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.addressGroups.delete", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networksecurity.organizations.locations.addressGroups.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 *OrganizationsLocationsAddressGroupsDeleteCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.addressGroups.delete", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type OrganizationsLocationsAddressGroupsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets details of a single address group. +// +// - name: A name of the AddressGroup to get. Must be in the format +// `projects/*/locations/{location}/addressGroups/*`. +func (r *OrganizationsLocationsAddressGroupsService) Get(name string) *OrganizationsLocationsAddressGroupsGetCall { + c := &OrganizationsLocationsAddressGroupsGetCall{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 *OrganizationsLocationsAddressGroupsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsAddressGroupsGetCall { + 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 *OrganizationsLocationsAddressGroupsGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsAddressGroupsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *OrganizationsLocationsAddressGroupsGetCall) Context(ctx context.Context) *OrganizationsLocationsAddressGroupsGetCall { + 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 *OrganizationsLocationsAddressGroupsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsAddressGroupsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.addressGroups.get", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networksecurity.organizations.locations.addressGroups.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *AddressGroup.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 *OrganizationsLocationsAddressGroupsGetCall) Do(opts ...googleapi.CallOption) (*AddressGroup, 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 := &AddressGroup{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.addressGroups.get", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type OrganizationsLocationsAddressGroupsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists address groups in a given project and location. +// +// - parent: The project and location from which the AddressGroups should be +// listed, specified in the format `projects/*/locations/{location}`. +func (r *OrganizationsLocationsAddressGroupsService) List(parent string) *OrganizationsLocationsAddressGroupsListCall { + c := &OrganizationsLocationsAddressGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// AddressGroups to return per call. +func (c *OrganizationsLocationsAddressGroupsListCall) PageSize(pageSize int64) *OrganizationsLocationsAddressGroupsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The value returned by the +// last `ListAddressGroupsResponse` Indicates that this is a continuation of a +// prior `ListAddressGroups` call, and that the system should return the next +// page of data. +func (c *OrganizationsLocationsAddressGroupsListCall) PageToken(pageToken string) *OrganizationsLocationsAddressGroupsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": If +// true, allow partial responses for multi-regional Aggregated List requests. +func (c *OrganizationsLocationsAddressGroupsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *OrganizationsLocationsAddressGroupsListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + 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 *OrganizationsLocationsAddressGroupsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsAddressGroupsListCall { + 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 *OrganizationsLocationsAddressGroupsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsAddressGroupsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *OrganizationsLocationsAddressGroupsListCall) Context(ctx context.Context) *OrganizationsLocationsAddressGroupsListCall { + 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 *OrganizationsLocationsAddressGroupsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsAddressGroupsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/addressGroups") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.addressGroups.list", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networksecurity.organizations.locations.addressGroups.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListAddressGroupsResponse.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 *OrganizationsLocationsAddressGroupsListCall) Do(opts ...googleapi.CallOption) (*ListAddressGroupsResponse, 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 := &ListAddressGroupsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.addressGroups.list", "response", internallog.HTTPResponse(res, b)) + 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 *OrganizationsLocationsAddressGroupsListCall) Pages(ctx context.Context, f func(*ListAddressGroupsResponse) 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 OrganizationsLocationsAddressGroupsListReferencesCall struct { + s *Service + addressGroup string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// ListReferences: Lists references of an address group. +// +// - addressGroup: A name of the AddressGroup to clone items to. Must be in the +// format `projects|organization/*/locations/{location}/addressGroups/*`. +func (r *OrganizationsLocationsAddressGroupsService) ListReferences(addressGroup string) *OrganizationsLocationsAddressGroupsListReferencesCall { + c := &OrganizationsLocationsAddressGroupsListReferencesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.addressGroup = addressGroup + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of +// references to return. If unspecified, server will pick an appropriate +// default. Server may return fewer items than requested. A caller should only +// rely on response's next_page_token to determine if there are more +// AddressGroupUsers left to be queried. +func (c *OrganizationsLocationsAddressGroupsListReferencesCall) PageSize(pageSize int64) *OrganizationsLocationsAddressGroupsListReferencesCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The next_page_token value +// returned from a previous List request, if any. +func (c *OrganizationsLocationsAddressGroupsListReferencesCall) PageToken(pageToken string) *OrganizationsLocationsAddressGroupsListReferencesCall { + 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 *OrganizationsLocationsAddressGroupsListReferencesCall) Fields(s ...googleapi.Field) *OrganizationsLocationsAddressGroupsListReferencesCall { + 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 *OrganizationsLocationsAddressGroupsListReferencesCall) IfNoneMatch(entityTag string) *OrganizationsLocationsAddressGroupsListReferencesCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *OrganizationsLocationsAddressGroupsListReferencesCall) Context(ctx context.Context) *OrganizationsLocationsAddressGroupsListReferencesCall { + 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 *OrganizationsLocationsAddressGroupsListReferencesCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsAddressGroupsListReferencesCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+addressGroup}:listReferences") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "addressGroup": c.addressGroup, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.addressGroups.listReferences", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networksecurity.organizations.locations.addressGroups.listReferences" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListAddressGroupReferencesResponse.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 *OrganizationsLocationsAddressGroupsListReferencesCall) Do(opts ...googleapi.CallOption) (*ListAddressGroupReferencesResponse, 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 := &ListAddressGroupReferencesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.addressGroups.listReferences", "response", internallog.HTTPResponse(res, b)) + 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 *OrganizationsLocationsAddressGroupsListReferencesCall) Pages(ctx context.Context, f func(*ListAddressGroupReferencesResponse) 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 OrganizationsLocationsAddressGroupsPatchCall struct { + s *Service + name string + addressgroup *AddressGroup + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates parameters of an address group. +// +// - name: Name of the AddressGroup resource. It matches pattern +// `projects/*/locations/{location}/addressGroups/`. +func (r *OrganizationsLocationsAddressGroupsService) Patch(name string, addressgroup *AddressGroup) *OrganizationsLocationsAddressGroupsPatchCall { + c := &OrganizationsLocationsAddressGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.addressgroup = addressgroup + 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 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). +func (c *OrganizationsLocationsAddressGroupsPatchCall) RequestId(requestId string) *OrganizationsLocationsAddressGroupsPatchCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// UpdateMask sets the optional parameter "updateMask": Field mask is used to +// specify the fields to be overwritten in the AddressGroup resource by the +// update. The fields specified in the update_mask are relative to the +// resource, not the full request. A field will be overwritten if it is in the +// mask. If the user does not provide a mask then all fields will be +// overwritten. +func (c *OrganizationsLocationsAddressGroupsPatchCall) UpdateMask(updateMask string) *OrganizationsLocationsAddressGroupsPatchCall { + 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 *OrganizationsLocationsAddressGroupsPatchCall) Fields(s ...googleapi.Field) *OrganizationsLocationsAddressGroupsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *OrganizationsLocationsAddressGroupsPatchCall) Context(ctx context.Context) *OrganizationsLocationsAddressGroupsPatchCall { + 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 *OrganizationsLocationsAddressGroupsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsAddressGroupsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.addressgroup) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.addressGroups.patch", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networksecurity.organizations.locations.addressGroups.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 *OrganizationsLocationsAddressGroupsPatchCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.addressGroups.patch", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type OrganizationsLocationsAddressGroupsRemoveItemsCall struct { + s *Service + addressGroup string + removeaddressgroupitemsrequest *RemoveAddressGroupItemsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// RemoveItems: Removes items from an address group. +// +// - addressGroup: A name of the AddressGroup to remove items from. Must be in +// the format `projects|organization/*/locations/{location}/addressGroups/*`. +func (r *OrganizationsLocationsAddressGroupsService) RemoveItems(addressGroup string, removeaddressgroupitemsrequest *RemoveAddressGroupItemsRequest) *OrganizationsLocationsAddressGroupsRemoveItemsCall { + c := &OrganizationsLocationsAddressGroupsRemoveItemsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.addressGroup = addressGroup + c.removeaddressgroupitemsrequest = removeaddressgroupitemsrequest + 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 *OrganizationsLocationsAddressGroupsRemoveItemsCall) Fields(s ...googleapi.Field) *OrganizationsLocationsAddressGroupsRemoveItemsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *OrganizationsLocationsAddressGroupsRemoveItemsCall) Context(ctx context.Context) *OrganizationsLocationsAddressGroupsRemoveItemsCall { + 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 *OrganizationsLocationsAddressGroupsRemoveItemsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsAddressGroupsRemoveItemsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.removeaddressgroupitemsrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+addressGroup}:removeItems") + 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{ + "addressGroup": c.addressGroup, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.addressGroups.removeItems", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networksecurity.organizations.locations.addressGroups.removeItems" 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 *OrganizationsLocationsAddressGroupsRemoveItemsCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.addressGroups.removeItems", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type OrganizationsLocationsFirewallEndpointsCreateCall struct { + s *Service + parent string + firewallendpoint *FirewallEndpoint + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new FirewallEndpoint in a given project and location. +// +// - parent: Value for parent. +func (r *OrganizationsLocationsFirewallEndpointsService) Create(parent string, firewallendpoint *FirewallEndpoint) *OrganizationsLocationsFirewallEndpointsCreateCall { + c := &OrganizationsLocationsFirewallEndpointsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.firewallendpoint = firewallendpoint + return c +} + +// FirewallEndpointId sets the optional parameter "firewallEndpointId": +// Required. Id of the requesting object. If auto-generating Id server-side, +// remove this field and firewall_endpoint_id from the method_signature of +// Create RPC. +func (c *OrganizationsLocationsFirewallEndpointsCreateCall) FirewallEndpointId(firewallEndpointId string) *OrganizationsLocationsFirewallEndpointsCreateCall { + c.urlParams_.Set("firewallEndpointId", firewallEndpointId) + 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 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). +func (c *OrganizationsLocationsFirewallEndpointsCreateCall) RequestId(requestId string) *OrganizationsLocationsFirewallEndpointsCreateCall { + 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 *OrganizationsLocationsFirewallEndpointsCreateCall) Fields(s ...googleapi.Field) *OrganizationsLocationsFirewallEndpointsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *OrganizationsLocationsFirewallEndpointsCreateCall) Context(ctx context.Context) *OrganizationsLocationsFirewallEndpointsCreateCall { + 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 *OrganizationsLocationsFirewallEndpointsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsFirewallEndpointsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.firewallendpoint) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/firewallEndpoints") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.firewallEndpoints.create", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networksecurity.organizations.locations.firewallEndpoints.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 *OrganizationsLocationsFirewallEndpointsCreateCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.firewallEndpoints.create", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type OrganizationsLocationsFirewallEndpointsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a single Endpoint. +// +// - name: Name of the resource. +func (r *OrganizationsLocationsFirewallEndpointsService) Delete(name string) *OrganizationsLocationsFirewallEndpointsDeleteCall { + c := &OrganizationsLocationsFirewallEndpointsDeleteCall{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 will know to ignore the request if it has already +// been completed. The server will guarantee 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, 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). +func (c *OrganizationsLocationsFirewallEndpointsDeleteCall) RequestId(requestId string) *OrganizationsLocationsFirewallEndpointsDeleteCall { + 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 *OrganizationsLocationsFirewallEndpointsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsLocationsFirewallEndpointsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *OrganizationsLocationsFirewallEndpointsDeleteCall) Context(ctx context.Context) *OrganizationsLocationsFirewallEndpointsDeleteCall { + 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 *OrganizationsLocationsFirewallEndpointsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsFirewallEndpointsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.firewallEndpoints.delete", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networksecurity.organizations.locations.firewallEndpoints.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 *OrganizationsLocationsFirewallEndpointsDeleteCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.firewallEndpoints.delete", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type OrganizationsLocationsFirewallEndpointsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets details of a single Endpoint. +// +// - name: Name of the resource. +func (r *OrganizationsLocationsFirewallEndpointsService) Get(name string) *OrganizationsLocationsFirewallEndpointsGetCall { + c := &OrganizationsLocationsFirewallEndpointsGetCall{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 *OrganizationsLocationsFirewallEndpointsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsFirewallEndpointsGetCall { + 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 *OrganizationsLocationsFirewallEndpointsGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsFirewallEndpointsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *OrganizationsLocationsFirewallEndpointsGetCall) Context(ctx context.Context) *OrganizationsLocationsFirewallEndpointsGetCall { + 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 *OrganizationsLocationsFirewallEndpointsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsFirewallEndpointsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.firewallEndpoints.get", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networksecurity.organizations.locations.firewallEndpoints.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *FirewallEndpoint.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 *OrganizationsLocationsFirewallEndpointsGetCall) Do(opts ...googleapi.CallOption) (*FirewallEndpoint, 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 := &FirewallEndpoint{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.firewallEndpoints.get", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type OrganizationsLocationsFirewallEndpointsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists FirewallEndpoints in a given project and location. +// +// - parent: Parent value for ListEndpointsRequest. +func (r *OrganizationsLocationsFirewallEndpointsService) List(parent string) *OrganizationsLocationsFirewallEndpointsListCall { + c := &OrganizationsLocationsFirewallEndpointsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filtering results +func (c *OrganizationsLocationsFirewallEndpointsListCall) Filter(filter string) *OrganizationsLocationsFirewallEndpointsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": Hint for how to order the +// results +func (c *OrganizationsLocationsFirewallEndpointsListCall) OrderBy(orderBy string) *OrganizationsLocationsFirewallEndpointsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": Requested page size. Server +// may return fewer items than requested. If unspecified, server will pick an +// appropriate default. +func (c *OrganizationsLocationsFirewallEndpointsListCall) PageSize(pageSize int64) *OrganizationsLocationsFirewallEndpointsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. +func (c *OrganizationsLocationsFirewallEndpointsListCall) PageToken(pageToken string) *OrganizationsLocationsFirewallEndpointsListCall { + 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 *OrganizationsLocationsFirewallEndpointsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsFirewallEndpointsListCall { + 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 *OrganizationsLocationsFirewallEndpointsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsFirewallEndpointsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *OrganizationsLocationsFirewallEndpointsListCall) Context(ctx context.Context) *OrganizationsLocationsFirewallEndpointsListCall { + 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 *OrganizationsLocationsFirewallEndpointsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsFirewallEndpointsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/firewallEndpoints") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.firewallEndpoints.list", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networksecurity.organizations.locations.firewallEndpoints.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListFirewallEndpointsResponse.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 *OrganizationsLocationsFirewallEndpointsListCall) Do(opts ...googleapi.CallOption) (*ListFirewallEndpointsResponse, 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 := &ListFirewallEndpointsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.firewallEndpoints.list", "response", internallog.HTTPResponse(res, b)) + 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 *OrganizationsLocationsFirewallEndpointsListCall) Pages(ctx context.Context, f func(*ListFirewallEndpointsResponse) 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 OrganizationsLocationsFirewallEndpointsPatchCall struct { + s *Service + name string + firewallendpoint *FirewallEndpoint + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Update a single Endpoint. +// +// - name: Immutable. Identifier. name of resource. +func (r *OrganizationsLocationsFirewallEndpointsService) Patch(name string, firewallendpoint *FirewallEndpoint) *OrganizationsLocationsFirewallEndpointsPatchCall { + c := &OrganizationsLocationsFirewallEndpointsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.firewallendpoint = firewallendpoint + 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 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). +func (c *OrganizationsLocationsFirewallEndpointsPatchCall) RequestId(requestId string) *OrganizationsLocationsFirewallEndpointsPatchCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. Field mask is +// used to specify the fields to be overwritten in the Endpoint resource by the +// update. The fields specified in the update_mask are relative to the +// resource, not the full request. A field will be overwritten if it is in the +// mask. If the user does not provide a mask then all fields will be +// overwritten. +func (c *OrganizationsLocationsFirewallEndpointsPatchCall) UpdateMask(updateMask string) *OrganizationsLocationsFirewallEndpointsPatchCall { + 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 *OrganizationsLocationsFirewallEndpointsPatchCall) Fields(s ...googleapi.Field) *OrganizationsLocationsFirewallEndpointsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *OrganizationsLocationsFirewallEndpointsPatchCall) Context(ctx context.Context) *OrganizationsLocationsFirewallEndpointsPatchCall { + 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 *OrganizationsLocationsFirewallEndpointsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsFirewallEndpointsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.firewallendpoint) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.firewallEndpoints.patch", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networksecurity.organizations.locations.firewallEndpoints.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 *OrganizationsLocationsFirewallEndpointsPatchCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.firewallEndpoints.patch", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type OrganizationsLocationsOperationsCancelCall struct { + s *Service + name string + canceloperationrequest *CancelOperationRequest + 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 *OrganizationsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *OrganizationsLocationsOperationsCancelCall { + c := &OrganizationsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.canceloperationrequest = canceloperationrequest + 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 *OrganizationsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *OrganizationsLocationsOperationsCancelCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *OrganizationsLocationsOperationsCancelCall) Context(ctx context.Context) *OrganizationsLocationsOperationsCancelCall { + 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 *OrganizationsLocationsOperationsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.canceloperationrequest) + if err != nil { + return nil, err + } + 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, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.operations.cancel", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networksecurity.organizations.locations.operations.cancel" call. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.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 *OrganizationsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, 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 := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.operations.cancel", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type OrganizationsLocationsOperationsDeleteCall 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 *OrganizationsLocationsOperationsService) Delete(name string) *OrganizationsLocationsOperationsDeleteCall { + c := &OrganizationsLocationsOperationsDeleteCall{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 *OrganizationsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsLocationsOperationsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *OrganizationsLocationsOperationsDeleteCall) Context(ctx context.Context) *OrganizationsLocationsOperationsDeleteCall { + 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 *OrganizationsLocationsOperationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.operations.delete", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networksecurity.organizations.locations.operations.delete" call. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.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 *OrganizationsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, 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 := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.operations.delete", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type OrganizationsLocationsOperationsGetCall 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 *OrganizationsLocationsOperationsService) Get(name string) *OrganizationsLocationsOperationsGetCall { + c := &OrganizationsLocationsOperationsGetCall{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 *OrganizationsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsOperationsGetCall { + 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 *OrganizationsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *OrganizationsLocationsOperationsGetCall) Context(ctx context.Context) *OrganizationsLocationsOperationsGetCall { + 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 *OrganizationsLocationsOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.operations.get", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networksecurity.organizations.locations.operations.get" 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 *OrganizationsLocationsOperationsGetCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.operations.get", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type OrganizationsLocationsOperationsListCall 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 *OrganizationsLocationsOperationsService) List(name string) *OrganizationsLocationsOperationsListCall { + c := &OrganizationsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list filter. +func (c *OrganizationsLocationsOperationsListCall) Filter(filter string) *OrganizationsLocationsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list page +// size. +func (c *OrganizationsLocationsOperationsListCall) PageSize(pageSize int64) *OrganizationsLocationsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list page +// token. +func (c *OrganizationsLocationsOperationsListCall) PageToken(pageToken string) *OrganizationsLocationsOperationsListCall { + 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 *OrganizationsLocationsOperationsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsOperationsListCall { + 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 *OrganizationsLocationsOperationsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsOperationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *OrganizationsLocationsOperationsListCall) Context(ctx context.Context) *OrganizationsLocationsOperationsListCall { + 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 *OrganizationsLocationsOperationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.operations.list", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networksecurity.organizations.locations.operations.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListOperationsResponse.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 *OrganizationsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, 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 := &ListOperationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.operations.list", "response", internallog.HTTPResponse(res, b)) + 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 *OrganizationsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) 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 OrganizationsLocationsSecurityProfileGroupsCreateCall struct { + s *Service + parent string + securityprofilegroup *SecurityProfileGroup + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new SecurityProfileGroup in a given organization and +// location. +// +// - parent: The parent resource of the SecurityProfileGroup. Must be in the +// format `projects|organizations/*/locations/{location}`. +func (r *OrganizationsLocationsSecurityProfileGroupsService) Create(parent string, securityprofilegroup *SecurityProfileGroup) *OrganizationsLocationsSecurityProfileGroupsCreateCall { + c := &OrganizationsLocationsSecurityProfileGroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.securityprofilegroup = securityprofilegroup + return c +} + +// SecurityProfileGroupId sets the optional parameter "securityProfileGroupId": +// Required. Short name of the SecurityProfileGroup resource to be created. +// This value should be 1-63 characters long, containing only letters, numbers, +// hyphens, and underscores, and should not start with a number. E.g. +// "security_profile_group1". +func (c *OrganizationsLocationsSecurityProfileGroupsCreateCall) SecurityProfileGroupId(securityProfileGroupId string) *OrganizationsLocationsSecurityProfileGroupsCreateCall { + c.urlParams_.Set("securityProfileGroupId", securityProfileGroupId) + 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 *OrganizationsLocationsSecurityProfileGroupsCreateCall) Fields(s ...googleapi.Field) *OrganizationsLocationsSecurityProfileGroupsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *OrganizationsLocationsSecurityProfileGroupsCreateCall) Context(ctx context.Context) *OrganizationsLocationsSecurityProfileGroupsCreateCall { + 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 *OrganizationsLocationsSecurityProfileGroupsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsSecurityProfileGroupsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.securityprofilegroup) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/securityProfileGroups") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.securityProfileGroups.create", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networksecurity.organizations.locations.securityProfileGroups.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 *OrganizationsLocationsSecurityProfileGroupsCreateCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.securityProfileGroups.create", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type OrganizationsLocationsSecurityProfileGroupsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a single SecurityProfileGroup. +// +// - name: A name of the SecurityProfileGroup to delete. Must be in the format +// `projects|organizations/*/locations/{location}/securityProfileGroups/{secur +// ity_profile_group}`. +func (r *OrganizationsLocationsSecurityProfileGroupsService) Delete(name string) *OrganizationsLocationsSecurityProfileGroupsDeleteCall { + c := &OrganizationsLocationsSecurityProfileGroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c } -// AddItems: Adds items to an address group. -// -// - addressGroup: A name of the AddressGroup to add items to. Must be in the -// format `projects|organization/*/locations/{location}/addressGroups/*`. -func (r *OrganizationsLocationsAddressGroupsService) AddItems(addressGroup string, addaddressgroupitemsrequest *AddAddressGroupItemsRequest) *OrganizationsLocationsAddressGroupsAddItemsCall { - c := &OrganizationsLocationsAddressGroupsAddItemsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.addressGroup = addressGroup - c.addaddressgroupitemsrequest = addaddressgroupitemsrequest +// Etag sets the optional parameter "etag": If client provided etag is out of +// date, delete will return FAILED_PRECONDITION error. +func (c *OrganizationsLocationsSecurityProfileGroupsDeleteCall) Etag(etag string) *OrganizationsLocationsSecurityProfileGroupsDeleteCall { + c.urlParams_.Set("etag", etag) 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 *OrganizationsLocationsAddressGroupsAddItemsCall) Fields(s ...googleapi.Field) *OrganizationsLocationsAddressGroupsAddItemsCall { +func (c *OrganizationsLocationsSecurityProfileGroupsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsLocationsSecurityProfileGroupsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *OrganizationsLocationsAddressGroupsAddItemsCall) Context(ctx context.Context) *OrganizationsLocationsAddressGroupsAddItemsCall { +func (c *OrganizationsLocationsSecurityProfileGroupsDeleteCall) Context(ctx context.Context) *OrganizationsLocationsSecurityProfileGroupsDeleteCall { 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 *OrganizationsLocationsAddressGroupsAddItemsCall) Header() http.Header { +func (c *OrganizationsLocationsSecurityProfileGroupsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsAddressGroupsAddItemsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.addaddressgroupitemsrequest) - if err != nil { - return nil, err - } +func (c *OrganizationsLocationsSecurityProfileGroupsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+addressGroup}:addItems") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "addressGroup": c.addressGroup, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.addressGroups.addItems", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.securityProfileGroups.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.organizations.locations.addressGroups.addItems" call. +// Do executes the "networksecurity.organizations.locations.securityProfileGroups.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 *OrganizationsLocationsAddressGroupsAddItemsCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *OrganizationsLocationsSecurityProfileGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4116,81 +7135,89 @@ func (c *OrganizationsLocationsAddressGroupsAddItemsCall) Do(opts ...googleapi.C if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.addressGroups.addItems", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.securityProfileGroups.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type OrganizationsLocationsAddressGroupsCloneItemsCall struct { - s *Service - addressGroup string - cloneaddressgroupitemsrequest *CloneAddressGroupItemsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsLocationsSecurityProfileGroupsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// CloneItems: Clones items from one address group to another. +// Get: Gets details of a single SecurityProfileGroup. // -// - addressGroup: A name of the AddressGroup to clone items to. Must be in the -// format `projects|organization/*/locations/{location}/addressGroups/*`. -func (r *OrganizationsLocationsAddressGroupsService) CloneItems(addressGroup string, cloneaddressgroupitemsrequest *CloneAddressGroupItemsRequest) *OrganizationsLocationsAddressGroupsCloneItemsCall { - c := &OrganizationsLocationsAddressGroupsCloneItemsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.addressGroup = addressGroup - c.cloneaddressgroupitemsrequest = cloneaddressgroupitemsrequest +// - name: A name of the SecurityProfileGroup to get. Must be in the format +// `projects|organizations/*/locations/{location}/securityProfileGroups/{secur +// ity_profile_group}`. +func (r *OrganizationsLocationsSecurityProfileGroupsService) Get(name string) *OrganizationsLocationsSecurityProfileGroupsGetCall { + c := &OrganizationsLocationsSecurityProfileGroupsGetCall{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 *OrganizationsLocationsAddressGroupsCloneItemsCall) Fields(s ...googleapi.Field) *OrganizationsLocationsAddressGroupsCloneItemsCall { +func (c *OrganizationsLocationsSecurityProfileGroupsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsSecurityProfileGroupsGetCall { 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 *OrganizationsLocationsSecurityProfileGroupsGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsSecurityProfileGroupsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *OrganizationsLocationsAddressGroupsCloneItemsCall) Context(ctx context.Context) *OrganizationsLocationsAddressGroupsCloneItemsCall { +func (c *OrganizationsLocationsSecurityProfileGroupsGetCall) Context(ctx context.Context) *OrganizationsLocationsSecurityProfileGroupsGetCall { 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 *OrganizationsLocationsAddressGroupsCloneItemsCall) Header() http.Header { +func (c *OrganizationsLocationsSecurityProfileGroupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsAddressGroupsCloneItemsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.cloneaddressgroupitemsrequest) - if err != nil { - return nil, err +func (c *OrganizationsLocationsSecurityProfileGroupsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+addressGroup}:cloneItems") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "addressGroup": c.addressGroup, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.addressGroups.cloneItems", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.securityProfileGroups.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.organizations.locations.addressGroups.cloneItems" call. +// Do executes the "networksecurity.organizations.locations.securityProfileGroups.get" 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 *OrganizationsLocationsAddressGroupsCloneItemsCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// *SecurityProfileGroup.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 *OrganizationsLocationsSecurityProfileGroupsGetCall) Do(opts ...googleapi.CallOption) (*SecurityProfileGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4209,7 +7236,7 @@ func (c *OrganizationsLocationsAddressGroupsCloneItemsCall) Do(opts ...googleapi if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &SecurityProfileGroup{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4220,106 +7247,242 @@ func (c *OrganizationsLocationsAddressGroupsCloneItemsCall) Do(opts ...googleapi if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.addressGroups.cloneItems", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.securityProfileGroups.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type OrganizationsLocationsAddressGroupsCreateCall struct { +type OrganizationsLocationsSecurityProfileGroupsListCall struct { s *Service parent string - addressgroup *AddressGroup urlParams_ gensupport.URLParams + ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// Create: Creates a new address group in a given project and location. -// -// - parent: The parent resource of the AddressGroup. Must be in the format -// `projects/*/locations/{location}`. -func (r *OrganizationsLocationsAddressGroupsService) Create(parent string, addressgroup *AddressGroup) *OrganizationsLocationsAddressGroupsCreateCall { - c := &OrganizationsLocationsAddressGroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.addressgroup = addressgroup - return c +// List: Lists SecurityProfileGroups in a given organization and location. +// +// - parent: The project or organization and location from which the +// SecurityProfileGroups should be listed, specified in the format +// `projects|organizations/*/locations/{location}`. +func (r *OrganizationsLocationsSecurityProfileGroupsService) List(parent string) *OrganizationsLocationsSecurityProfileGroupsListCall { + c := &OrganizationsLocationsSecurityProfileGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// SecurityProfileGroups to return per call. +func (c *OrganizationsLocationsSecurityProfileGroupsListCall) PageSize(pageSize int64) *OrganizationsLocationsSecurityProfileGroupsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The value returned by the +// last `ListSecurityProfileGroupsResponse` Indicates that this is a +// continuation of a prior `ListSecurityProfileGroups` call, and that the +// system should return the next page of data. +func (c *OrganizationsLocationsSecurityProfileGroupsListCall) PageToken(pageToken string) *OrganizationsLocationsSecurityProfileGroupsListCall { + 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 *OrganizationsLocationsSecurityProfileGroupsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsSecurityProfileGroupsListCall { + 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 *OrganizationsLocationsSecurityProfileGroupsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsSecurityProfileGroupsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *OrganizationsLocationsSecurityProfileGroupsListCall) Context(ctx context.Context) *OrganizationsLocationsSecurityProfileGroupsListCall { + 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 *OrganizationsLocationsSecurityProfileGroupsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsSecurityProfileGroupsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/securityProfileGroups") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.securityProfileGroups.list", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networksecurity.organizations.locations.securityProfileGroups.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListSecurityProfileGroupsResponse.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 *OrganizationsLocationsSecurityProfileGroupsListCall) Do(opts ...googleapi.CallOption) (*ListSecurityProfileGroupsResponse, 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 := &ListSecurityProfileGroupsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.securityProfileGroups.list", "response", internallog.HTTPResponse(res, b)) + 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 *OrganizationsLocationsSecurityProfileGroupsListCall) Pages(ctx context.Context, f func(*ListSecurityProfileGroupsResponse) 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 OrganizationsLocationsSecurityProfileGroupsPatchCall struct { + s *Service + name string + securityprofilegroup *SecurityProfileGroup + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// AddressGroupId sets the optional parameter "addressGroupId": Required. Short -// name of the AddressGroup resource to be created. This value should be 1-63 -// characters long, containing only letters, numbers, hyphens, and underscores, -// and should not start with a number. E.g. "authz_policy". -func (c *OrganizationsLocationsAddressGroupsCreateCall) AddressGroupId(addressGroupId string) *OrganizationsLocationsAddressGroupsCreateCall { - c.urlParams_.Set("addressGroupId", addressGroupId) +// Patch: Updates the parameters of a single SecurityProfileGroup. +// +// - name: Immutable. Identifier. Name of the SecurityProfileGroup resource. It +// matches pattern +// `projects|organizations/*/locations/{location}/securityProfileGroups/{secur +// ity_profile_group}`. +func (r *OrganizationsLocationsSecurityProfileGroupsService) Patch(name string, securityprofilegroup *SecurityProfileGroup) *OrganizationsLocationsSecurityProfileGroupsPatchCall { + c := &OrganizationsLocationsSecurityProfileGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.securityprofilegroup = securityprofilegroup 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 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). -func (c *OrganizationsLocationsAddressGroupsCreateCall) RequestId(requestId string) *OrganizationsLocationsAddressGroupsCreateCall { - c.urlParams_.Set("requestId", requestId) +// UpdateMask sets the optional parameter "updateMask": Required. Field mask is +// used to specify the fields to be overwritten in the SecurityProfileGroup +// resource by the update. The fields specified in the update_mask are relative +// to the resource, not the full request. A field will be overwritten if it is +// in the mask. +func (c *OrganizationsLocationsSecurityProfileGroupsPatchCall) UpdateMask(updateMask string) *OrganizationsLocationsSecurityProfileGroupsPatchCall { + 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 *OrganizationsLocationsAddressGroupsCreateCall) Fields(s ...googleapi.Field) *OrganizationsLocationsAddressGroupsCreateCall { +func (c *OrganizationsLocationsSecurityProfileGroupsPatchCall) Fields(s ...googleapi.Field) *OrganizationsLocationsSecurityProfileGroupsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *OrganizationsLocationsAddressGroupsCreateCall) Context(ctx context.Context) *OrganizationsLocationsAddressGroupsCreateCall { +func (c *OrganizationsLocationsSecurityProfileGroupsPatchCall) Context(ctx context.Context) *OrganizationsLocationsSecurityProfileGroupsPatchCall { 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 *OrganizationsLocationsAddressGroupsCreateCall) Header() http.Header { +func (c *OrganizationsLocationsSecurityProfileGroupsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsAddressGroupsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsLocationsSecurityProfileGroupsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.addressgroup) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.securityprofilegroup) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/addressGroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.addressGroups.create", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.securityProfileGroups.patch", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.organizations.locations.addressGroups.create" call. +// Do executes the "networksecurity.organizations.locations.securityProfileGroups.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 *OrganizationsLocationsAddressGroupsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *OrganizationsLocationsSecurityProfileGroupsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4349,91 +7512,90 @@ func (c *OrganizationsLocationsAddressGroupsCreateCall) Do(opts ...googleapi.Cal if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.addressGroups.create", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.securityProfileGroups.patch", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type OrganizationsLocationsAddressGroupsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsLocationsSecurityProfilesCreateCall struct { + s *Service + parent string + securityprofile *SecurityProfile + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Delete: Deletes an address group. +// Create: Creates a new SecurityProfile in a given organization and location. // -// - name: A name of the AddressGroup to delete. Must be in the format -// `projects/*/locations/{location}/addressGroups/*`. -func (r *OrganizationsLocationsAddressGroupsService) Delete(name string) *OrganizationsLocationsAddressGroupsDeleteCall { - c := &OrganizationsLocationsAddressGroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The parent resource of the SecurityProfile. Must be in the format +// `projects|organizations/*/locations/{location}`. +func (r *OrganizationsLocationsSecurityProfilesService) Create(parent string, securityprofile *SecurityProfile) *OrganizationsLocationsSecurityProfilesCreateCall { + c := &OrganizationsLocationsSecurityProfilesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.securityprofile = securityprofile 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 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). -func (c *OrganizationsLocationsAddressGroupsDeleteCall) RequestId(requestId string) *OrganizationsLocationsAddressGroupsDeleteCall { - c.urlParams_.Set("requestId", requestId) +// SecurityProfileId sets the optional parameter "securityProfileId": Required. +// Short name of the SecurityProfile resource to be created. This value should +// be 1-63 characters long, containing only letters, numbers, hyphens, and +// underscores, and should not start with a number. E.g. "security_profile1". +func (c *OrganizationsLocationsSecurityProfilesCreateCall) SecurityProfileId(securityProfileId string) *OrganizationsLocationsSecurityProfilesCreateCall { + c.urlParams_.Set("securityProfileId", securityProfileId) 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 *OrganizationsLocationsAddressGroupsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsLocationsAddressGroupsDeleteCall { +func (c *OrganizationsLocationsSecurityProfilesCreateCall) Fields(s ...googleapi.Field) *OrganizationsLocationsSecurityProfilesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *OrganizationsLocationsAddressGroupsDeleteCall) Context(ctx context.Context) *OrganizationsLocationsAddressGroupsDeleteCall { +func (c *OrganizationsLocationsSecurityProfilesCreateCall) Context(ctx context.Context) *OrganizationsLocationsSecurityProfilesCreateCall { 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 *OrganizationsLocationsAddressGroupsDeleteCall) Header() http.Header { +func (c *OrganizationsLocationsSecurityProfilesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsAddressGroupsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) +func (c *OrganizationsLocationsSecurityProfilesCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.securityprofile) + 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 := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/securityProfiles") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, nil) + 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, + "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.addressGroups.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.securityProfiles.create", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.organizations.locations.addressGroups.delete" call. +// Do executes the "networksecurity.organizations.locations.securityProfiles.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 *OrganizationsLocationsAddressGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *OrganizationsLocationsSecurityProfilesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4463,70 +7625,66 @@ func (c *OrganizationsLocationsAddressGroupsDeleteCall) Do(opts ...googleapi.Cal if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.addressGroups.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.securityProfiles.create", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type OrganizationsLocationsAddressGroupsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type OrganizationsLocationsSecurityProfilesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets details of a single address group. +// Delete: Deletes a single SecurityProfile. // -// - name: A name of the AddressGroup to get. Must be in the format -// `projects/*/locations/{location}/addressGroups/*`. -func (r *OrganizationsLocationsAddressGroupsService) Get(name string) *OrganizationsLocationsAddressGroupsGetCall { - c := &OrganizationsLocationsAddressGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: A name of the SecurityProfile to delete. Must be in the format +// `projects|organizations/*/locations/{location}/securityProfiles/{security_p +// rofile_id}`. +func (r *OrganizationsLocationsSecurityProfilesService) Delete(name string) *OrganizationsLocationsSecurityProfilesDeleteCall { + c := &OrganizationsLocationsSecurityProfilesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } +// Etag sets the optional parameter "etag": If client provided etag is out of +// date, delete will return FAILED_PRECONDITION error. +func (c *OrganizationsLocationsSecurityProfilesDeleteCall) Etag(etag string) *OrganizationsLocationsSecurityProfilesDeleteCall { + c.urlParams_.Set("etag", etag) + 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 *OrganizationsLocationsAddressGroupsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsAddressGroupsGetCall { +func (c *OrganizationsLocationsSecurityProfilesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsLocationsSecurityProfilesDeleteCall { 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 *OrganizationsLocationsAddressGroupsGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsAddressGroupsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *OrganizationsLocationsAddressGroupsGetCall) Context(ctx context.Context) *OrganizationsLocationsAddressGroupsGetCall { +func (c *OrganizationsLocationsSecurityProfilesDeleteCall) Context(ctx context.Context) *OrganizationsLocationsSecurityProfilesDeleteCall { 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 *OrganizationsLocationsAddressGroupsGetCall) Header() http.Header { +func (c *OrganizationsLocationsSecurityProfilesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsAddressGroupsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsLocationsSecurityProfilesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + req, err := http.NewRequest("DELETE", urls, nil) if err != nil { return nil, err } @@ -4534,16 +7692,16 @@ func (c *OrganizationsLocationsAddressGroupsGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.addressGroups.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.securityProfiles.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.organizations.locations.addressGroups.get" call. +// Do executes the "networksecurity.organizations.locations.securityProfiles.delete" call. // Any non-2xx status code is an error. Response headers are in either -// *AddressGroup.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// *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 *OrganizationsLocationsAddressGroupsGetCall) Do(opts ...googleapi.CallOption) (*AddressGroup, error) { +func (c *OrganizationsLocationsSecurityProfilesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4562,7 +7720,7 @@ func (c *OrganizationsLocationsAddressGroupsGetCall) Do(opts ...googleapi.CallOp if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &AddressGroup{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4573,56 +7731,34 @@ func (c *OrganizationsLocationsAddressGroupsGetCall) Do(opts ...googleapi.CallOp if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.addressGroups.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.securityProfiles.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type OrganizationsLocationsAddressGroupsListCall struct { +type OrganizationsLocationsSecurityProfilesGetCall struct { s *Service - parent string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists address groups in a given project and location. +// Get: Gets details of a single SecurityProfile. // -// - parent: The project and location from which the AddressGroups should be -// listed, specified in the format `projects/*/locations/{location}`. -func (r *OrganizationsLocationsAddressGroupsService) List(parent string) *OrganizationsLocationsAddressGroupsListCall { - c := &OrganizationsLocationsAddressGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// PageSize sets the optional parameter "pageSize": Maximum number of -// AddressGroups to return per call. -func (c *OrganizationsLocationsAddressGroupsListCall) PageSize(pageSize int64) *OrganizationsLocationsAddressGroupsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The value returned by the -// last `ListAddressGroupsResponse` Indicates that this is a continuation of a -// prior `ListAddressGroups` call, and that the system should return the next -// page of data. -func (c *OrganizationsLocationsAddressGroupsListCall) PageToken(pageToken string) *OrganizationsLocationsAddressGroupsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": If -// true, allow partial responses for multi-regional Aggregated List requests. -func (c *OrganizationsLocationsAddressGroupsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *OrganizationsLocationsAddressGroupsListCall { - c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) +// - name: A name of the SecurityProfile to get. Must be in the format +// `projects|organizations/*/locations/{location}/securityProfiles/{security_p +// rofile_id}`. +func (r *OrganizationsLocationsSecurityProfilesService) Get(name string) *OrganizationsLocationsSecurityProfilesGetCall { + c := &OrganizationsLocationsSecurityProfilesGetCall{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 *OrganizationsLocationsAddressGroupsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsAddressGroupsListCall { +func (c *OrganizationsLocationsSecurityProfilesGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsSecurityProfilesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -4630,34 +7766,34 @@ func (c *OrganizationsLocationsAddressGroupsListCall) Fields(s ...googleapi.Fiel // 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 *OrganizationsLocationsAddressGroupsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsAddressGroupsListCall { +func (c *OrganizationsLocationsSecurityProfilesGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsSecurityProfilesGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *OrganizationsLocationsAddressGroupsListCall) Context(ctx context.Context) *OrganizationsLocationsAddressGroupsListCall { +func (c *OrganizationsLocationsSecurityProfilesGetCall) Context(ctx context.Context) *OrganizationsLocationsSecurityProfilesGetCall { 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 *OrganizationsLocationsAddressGroupsListCall) Header() http.Header { +func (c *OrganizationsLocationsSecurityProfilesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsAddressGroupsListCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsLocationsSecurityProfilesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/addressGroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -4665,19 +7801,19 @@ func (c *OrganizationsLocationsAddressGroupsListCall) doRequest(alt string) (*ht } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.addressGroups.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.securityProfiles.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.organizations.locations.addressGroups.list" call. +// Do executes the "networksecurity.organizations.locations.securityProfiles.get" call. // Any non-2xx status code is an error. Response headers are in either -// *ListAddressGroupsResponse.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 *OrganizationsLocationsAddressGroupsListCall) Do(opts ...googleapi.CallOption) (*ListAddressGroupsResponse, error) { +// *SecurityProfile.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 *OrganizationsLocationsSecurityProfilesGetCall) Do(opts ...googleapi.CallOption) (*SecurityProfile, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4696,7 +7832,7 @@ func (c *OrganizationsLocationsAddressGroupsListCall) Do(opts ...googleapi.CallO if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListAddressGroupsResponse{ + ret := &SecurityProfile{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4707,63 +7843,42 @@ func (c *OrganizationsLocationsAddressGroupsListCall) Do(opts ...googleapi.CallO if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.addressGroups.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.securityProfiles.get", "response", internallog.HTTPResponse(res, b)) 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 *OrganizationsLocationsAddressGroupsListCall) Pages(ctx context.Context, f func(*ListAddressGroupsResponse) 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 OrganizationsLocationsAddressGroupsListReferencesCall struct { +type OrganizationsLocationsSecurityProfilesListCall struct { s *Service - addressGroup string + parent string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// ListReferences: Lists references of an address group. +// List: Lists SecurityProfiles in a given organization and location. // -// - addressGroup: A name of the AddressGroup to clone items to. Must be in the -// format `projects|organization/*/locations/{location}/addressGroups/*`. -func (r *OrganizationsLocationsAddressGroupsService) ListReferences(addressGroup string) *OrganizationsLocationsAddressGroupsListReferencesCall { - c := &OrganizationsLocationsAddressGroupsListReferencesCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.addressGroup = addressGroup +// - parent: The project or organization and location from which the +// SecurityProfiles should be listed, specified in the format +// `projects|organizations/*/locations/{location}`. +func (r *OrganizationsLocationsSecurityProfilesService) List(parent string) *OrganizationsLocationsSecurityProfilesListCall { + c := &OrganizationsLocationsSecurityProfilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent return c } -// PageSize sets the optional parameter "pageSize": The maximum number of -// references to return. If unspecified, server will pick an appropriate -// default. Server may return fewer items than requested. A caller should only -// rely on response's next_page_token to determine if there are more -// AddressGroupUsers left to be queried. -func (c *OrganizationsLocationsAddressGroupsListReferencesCall) PageSize(pageSize int64) *OrganizationsLocationsAddressGroupsListReferencesCall { +// PageSize sets the optional parameter "pageSize": Maximum number of +// SecurityProfiles to return per call. +func (c *OrganizationsLocationsSecurityProfilesListCall) PageSize(pageSize int64) *OrganizationsLocationsSecurityProfilesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The next_page_token value -// returned from a previous List request, if any. -func (c *OrganizationsLocationsAddressGroupsListReferencesCall) PageToken(pageToken string) *OrganizationsLocationsAddressGroupsListReferencesCall { +// PageToken sets the optional parameter "pageToken": The value returned by the +// last `ListSecurityProfilesResponse` Indicates that this is a continuation of +// a prior `ListSecurityProfiles` call, and that the system should return the +// next page of data. +func (c *OrganizationsLocationsSecurityProfilesListCall) PageToken(pageToken string) *OrganizationsLocationsSecurityProfilesListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -4771,7 +7886,7 @@ func (c *OrganizationsLocationsAddressGroupsListReferencesCall) PageToken(pageTo // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *OrganizationsLocationsAddressGroupsListReferencesCall) Fields(s ...googleapi.Field) *OrganizationsLocationsAddressGroupsListReferencesCall { +func (c *OrganizationsLocationsSecurityProfilesListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsSecurityProfilesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -4779,34 +7894,34 @@ func (c *OrganizationsLocationsAddressGroupsListReferencesCall) Fields(s ...goog // 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 *OrganizationsLocationsAddressGroupsListReferencesCall) IfNoneMatch(entityTag string) *OrganizationsLocationsAddressGroupsListReferencesCall { +func (c *OrganizationsLocationsSecurityProfilesListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsSecurityProfilesListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *OrganizationsLocationsAddressGroupsListReferencesCall) Context(ctx context.Context) *OrganizationsLocationsAddressGroupsListReferencesCall { +func (c *OrganizationsLocationsSecurityProfilesListCall) Context(ctx context.Context) *OrganizationsLocationsSecurityProfilesListCall { 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 *OrganizationsLocationsAddressGroupsListReferencesCall) Header() http.Header { +func (c *OrganizationsLocationsSecurityProfilesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsAddressGroupsListReferencesCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsLocationsSecurityProfilesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+addressGroup}:listReferences") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/securityProfiles") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -4814,19 +7929,19 @@ func (c *OrganizationsLocationsAddressGroupsListReferencesCall) doRequest(alt st } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "addressGroup": c.addressGroup, + "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.addressGroups.listReferences", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.securityProfiles.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.organizations.locations.addressGroups.listReferences" call. +// Do executes the "networksecurity.organizations.locations.securityProfiles.list" call. // Any non-2xx status code is an error. Response headers are in either -// *ListAddressGroupReferencesResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use +// *ListSecurityProfilesResponse.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 *OrganizationsLocationsAddressGroupsListReferencesCall) Do(opts ...googleapi.CallOption) (*ListAddressGroupReferencesResponse, error) { +func (c *OrganizationsLocationsSecurityProfilesListCall) Do(opts ...googleapi.CallOption) (*ListSecurityProfilesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4845,7 +7960,7 @@ func (c *OrganizationsLocationsAddressGroupsListReferencesCall) Do(opts ...googl if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListAddressGroupReferencesResponse{ + ret := &ListSecurityProfilesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4856,14 +7971,14 @@ func (c *OrganizationsLocationsAddressGroupsListReferencesCall) Do(opts ...googl if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.addressGroups.listReferences", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.securityProfiles.list", "response", internallog.HTTPResponse(res, b)) 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 *OrganizationsLocationsAddressGroupsListReferencesCall) Pages(ctx context.Context, f func(*ListAddressGroupReferencesResponse) error) error { +func (c *OrganizationsLocationsSecurityProfilesListCall) Pages(ctx context.Context, f func(*ListSecurityProfilesResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -4881,49 +7996,34 @@ func (c *OrganizationsLocationsAddressGroupsListReferencesCall) Pages(ctx contex } } -type OrganizationsLocationsAddressGroupsPatchCall struct { - s *Service - name string - addressgroup *AddressGroup - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsLocationsSecurityProfilesPatchCall struct { + s *Service + name string + securityprofile *SecurityProfile + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Updates parameters of an address group. +// Patch: Updates the parameters of a single SecurityProfile. // -// - name: Name of the AddressGroup resource. It matches pattern -// `projects/*/locations/{location}/addressGroups/`. -func (r *OrganizationsLocationsAddressGroupsService) Patch(name string, addressgroup *AddressGroup) *OrganizationsLocationsAddressGroupsPatchCall { - c := &OrganizationsLocationsAddressGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Immutable. Identifier. Name of the SecurityProfile resource. It +// matches pattern +// `projects|organizations/*/locations/{location}/securityProfiles/{security_p +// rofile}`. +func (r *OrganizationsLocationsSecurityProfilesService) Patch(name string, securityprofile *SecurityProfile) *OrganizationsLocationsSecurityProfilesPatchCall { + c := &OrganizationsLocationsSecurityProfilesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.addressgroup = addressgroup - 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 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). -func (c *OrganizationsLocationsAddressGroupsPatchCall) RequestId(requestId string) *OrganizationsLocationsAddressGroupsPatchCall { - c.urlParams_.Set("requestId", requestId) + c.securityprofile = securityprofile return c } -// UpdateMask sets the optional parameter "updateMask": Field mask is used to -// specify the fields to be overwritten in the AddressGroup resource by the -// update. The fields specified in the update_mask are relative to the +// UpdateMask sets the optional parameter "updateMask": Required. Field mask is +// used to specify the fields to be overwritten in the SecurityProfile resource +// by the update. The fields specified in the update_mask are relative to the // resource, not the full request. A field will be overwritten if it is in the -// mask. If the user does not provide a mask then all fields will be -// overwritten. -func (c *OrganizationsLocationsAddressGroupsPatchCall) UpdateMask(updateMask string) *OrganizationsLocationsAddressGroupsPatchCall { +// mask. +func (c *OrganizationsLocationsSecurityProfilesPatchCall) UpdateMask(updateMask string) *OrganizationsLocationsSecurityProfilesPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } @@ -4931,29 +8031,29 @@ func (c *OrganizationsLocationsAddressGroupsPatchCall) UpdateMask(updateMask str // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *OrganizationsLocationsAddressGroupsPatchCall) Fields(s ...googleapi.Field) *OrganizationsLocationsAddressGroupsPatchCall { +func (c *OrganizationsLocationsSecurityProfilesPatchCall) Fields(s ...googleapi.Field) *OrganizationsLocationsSecurityProfilesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *OrganizationsLocationsAddressGroupsPatchCall) Context(ctx context.Context) *OrganizationsLocationsAddressGroupsPatchCall { +func (c *OrganizationsLocationsSecurityProfilesPatchCall) Context(ctx context.Context) *OrganizationsLocationsSecurityProfilesPatchCall { 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 *OrganizationsLocationsAddressGroupsPatchCall) Header() http.Header { +func (c *OrganizationsLocationsSecurityProfilesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsAddressGroupsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsLocationsSecurityProfilesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.addressgroup) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.securityprofile) if err != nil { return nil, err } @@ -4969,16 +8069,16 @@ func (c *OrganizationsLocationsAddressGroupsPatchCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.addressGroups.patch", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.securityProfiles.patch", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.organizations.locations.addressGroups.patch" call. +// Do executes the "networksecurity.organizations.locations.securityProfiles.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 *OrganizationsLocationsAddressGroupsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *OrganizationsLocationsSecurityProfilesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5008,81 +8108,86 @@ func (c *OrganizationsLocationsAddressGroupsPatchCall) Do(opts ...googleapi.Call if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.addressGroups.patch", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.securityProfiles.patch", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type OrganizationsLocationsAddressGroupsRemoveItemsCall struct { - s *Service - addressGroup string - removeaddressgroupitemsrequest *RemoveAddressGroupItemsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// RemoveItems: Removes items from an address group. +// Get: Gets information about a location. // -// - addressGroup: A name of the AddressGroup to remove items from. Must be in -// the format `projects|organization/*/locations/{location}/addressGroups/*`. -func (r *OrganizationsLocationsAddressGroupsService) RemoveItems(addressGroup string, removeaddressgroupitemsrequest *RemoveAddressGroupItemsRequest) *OrganizationsLocationsAddressGroupsRemoveItemsCall { - c := &OrganizationsLocationsAddressGroupsRemoveItemsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.addressGroup = addressGroup - c.removeaddressgroupitemsrequest = removeaddressgroupitemsrequest +// - name: Resource name for the location. +func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { + c := &ProjectsLocationsGetCall{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 *OrganizationsLocationsAddressGroupsRemoveItemsCall) Fields(s ...googleapi.Field) *OrganizationsLocationsAddressGroupsRemoveItemsCall { +func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { 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 *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *OrganizationsLocationsAddressGroupsRemoveItemsCall) Context(ctx context.Context) *OrganizationsLocationsAddressGroupsRemoveItemsCall { +func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { 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 *OrganizationsLocationsAddressGroupsRemoveItemsCall) Header() http.Header { +func (c *ProjectsLocationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsAddressGroupsRemoveItemsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.removeaddressgroupitemsrequest) - if err != nil { - return nil, err +func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+addressGroup}:removeItems") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "addressGroup": c.addressGroup, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.addressGroups.removeItems", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.organizations.locations.addressGroups.removeItems" call. +// Do executes the "networksecurity.projects.locations.get" 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 +// *Location.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 *OrganizationsLocationsAddressGroupsRemoveItemsCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5101,7 +8206,7 @@ func (c *OrganizationsLocationsAddressGroupsRemoveItemsCall) Do(opts ...googleap if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &Location{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5112,105 +8217,119 @@ func (c *OrganizationsLocationsAddressGroupsRemoveItemsCall) Do(opts ...googleap if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.addressGroups.removeItems", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type OrganizationsLocationsFirewallEndpointsCreateCall struct { - s *Service - parent string - firewallendpoint *FirewallEndpoint - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Create: Creates a new FirewallEndpoint in a given project and location. +// List: Lists information about the supported locations for this service. // -// - parent: Value for parent. -func (r *OrganizationsLocationsFirewallEndpointsService) Create(parent string, firewallendpoint *FirewallEndpoint) *OrganizationsLocationsFirewallEndpointsCreateCall { - c := &OrganizationsLocationsFirewallEndpointsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.firewallendpoint = firewallendpoint +// - name: The resource that owns the locations collection, if applicable. +func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { + c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } -// FirewallEndpointId sets the optional parameter "firewallEndpointId": -// Required. Id of the requesting object. If auto-generating Id server-side, -// remove this field and firewall_endpoint_id from the method_signature of -// Create RPC. -func (c *OrganizationsLocationsFirewallEndpointsCreateCall) FirewallEndpointId(firewallEndpointId string) *OrganizationsLocationsFirewallEndpointsCreateCall { - c.urlParams_.Set("firewallEndpointId", firewallEndpointId) +// ExtraLocationTypes sets the optional parameter "extraLocationTypes": A list +// of extra location types that should be used as conditions for controlling +// the visibility of the locations. +func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall { + c.urlParams_.SetMulti("extraLocationTypes", append([]string{}, extraLocationTypes...)) 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 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). -func (c *OrganizationsLocationsFirewallEndpointsCreateCall) RequestId(requestId string) *OrganizationsLocationsFirewallEndpointsCreateCall { - c.urlParams_.Set("requestId", requestId) +// Filter sets the optional parameter "filter": A filter to narrow down results +// to a preferred subset. The filtering language accepts strings like +// "displayName=tokyo", and is documented in more detail in AIP-160 +// (https://google.aip.dev/160). +func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of +// results to return. If not set, the service selects a default. +func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token received +// from the `next_page_token` field in the response. Send that page token to +// receive the subsequent page. +func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { + 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 *OrganizationsLocationsFirewallEndpointsCreateCall) Fields(s ...googleapi.Field) *OrganizationsLocationsFirewallEndpointsCreateCall { +func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { 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 *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *OrganizationsLocationsFirewallEndpointsCreateCall) Context(ctx context.Context) *OrganizationsLocationsFirewallEndpointsCreateCall { +func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { 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 *OrganizationsLocationsFirewallEndpointsCreateCall) Header() http.Header { +func (c *ProjectsLocationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsFirewallEndpointsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.firewallendpoint) - if err != nil { - return nil, err +func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/firewallEndpoints") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/locations") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.firewallEndpoints.create", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.organizations.locations.firewallEndpoints.create" call. +// Do executes the "networksecurity.projects.locations.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 *OrganizationsLocationsFirewallEndpointsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// *ListLocationsResponse.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 *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5229,7 +8348,7 @@ func (c *OrganizationsLocationsFirewallEndpointsCreateCall) Do(opts ...googleapi if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &ListLocationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5240,90 +8359,102 @@ func (c *OrganizationsLocationsFirewallEndpointsCreateCall) Do(opts ...googleapi if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.firewallEndpoints.create", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type OrganizationsLocationsFirewallEndpointsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// 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 *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) 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) + } } -// Delete: Deletes a single Endpoint. -// -// - name: Name of the resource. -func (r *OrganizationsLocationsFirewallEndpointsService) Delete(name string) *OrganizationsLocationsFirewallEndpointsDeleteCall { - c := &OrganizationsLocationsFirewallEndpointsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c +type ProjectsLocationsAddressGroupsAddItemsCall struct { + s *Service + addressGroup string + addaddressgroupitemsrequest *AddAddressGroupItemsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// 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 will know to ignore the request if it has already -// been completed. The server will guarantee 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, 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). -func (c *OrganizationsLocationsFirewallEndpointsDeleteCall) RequestId(requestId string) *OrganizationsLocationsFirewallEndpointsDeleteCall { - c.urlParams_.Set("requestId", requestId) +// AddItems: Adds items to an address group. +// +// - addressGroup: A name of the AddressGroup to add items to. Must be in the +// format `projects|organization/*/locations/{location}/addressGroups/*`. +func (r *ProjectsLocationsAddressGroupsService) AddItems(addressGroup string, addaddressgroupitemsrequest *AddAddressGroupItemsRequest) *ProjectsLocationsAddressGroupsAddItemsCall { + c := &ProjectsLocationsAddressGroupsAddItemsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.addressGroup = addressGroup + c.addaddressgroupitemsrequest = addaddressgroupitemsrequest 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 *OrganizationsLocationsFirewallEndpointsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsLocationsFirewallEndpointsDeleteCall { +func (c *ProjectsLocationsAddressGroupsAddItemsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAddressGroupsAddItemsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *OrganizationsLocationsFirewallEndpointsDeleteCall) Context(ctx context.Context) *OrganizationsLocationsFirewallEndpointsDeleteCall { +func (c *ProjectsLocationsAddressGroupsAddItemsCall) Context(ctx context.Context) *ProjectsLocationsAddressGroupsAddItemsCall { 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 *OrganizationsLocationsFirewallEndpointsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsAddressGroupsAddItemsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsFirewallEndpointsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) +func (c *ProjectsLocationsAddressGroupsAddItemsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.addaddressgroupitemsrequest) + 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 := googleapi.ResolveRelative(c.s.BasePath, "v1/{+addressGroup}:addItems") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, nil) + 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, + "addressGroup": c.addressGroup, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.firewallEndpoints.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.addressGroups.addItems", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.organizations.locations.firewallEndpoints.delete" call. +// Do executes the "networksecurity.projects.locations.addressGroups.addItems" 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 *OrganizationsLocationsFirewallEndpointsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsAddressGroupsAddItemsCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5353,87 +8484,81 @@ func (c *OrganizationsLocationsFirewallEndpointsDeleteCall) Do(opts ...googleapi if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.firewallEndpoints.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.addressGroups.addItems", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type OrganizationsLocationsFirewallEndpointsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsAddressGroupsCloneItemsCall struct { + s *Service + addressGroup string + cloneaddressgroupitemsrequest *CloneAddressGroupItemsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets details of a single Endpoint. +// CloneItems: Clones items from one address group to another. // -// - name: Name of the resource. -func (r *OrganizationsLocationsFirewallEndpointsService) Get(name string) *OrganizationsLocationsFirewallEndpointsGetCall { - c := &OrganizationsLocationsFirewallEndpointsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - addressGroup: A name of the AddressGroup to clone items to. Must be in the +// format `projects|organization/*/locations/{location}/addressGroups/*`. +func (r *ProjectsLocationsAddressGroupsService) CloneItems(addressGroup string, cloneaddressgroupitemsrequest *CloneAddressGroupItemsRequest) *ProjectsLocationsAddressGroupsCloneItemsCall { + c := &ProjectsLocationsAddressGroupsCloneItemsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.addressGroup = addressGroup + c.cloneaddressgroupitemsrequest = cloneaddressgroupitemsrequest 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 *OrganizationsLocationsFirewallEndpointsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsFirewallEndpointsGetCall { +func (c *ProjectsLocationsAddressGroupsCloneItemsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAddressGroupsCloneItemsCall { 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 *OrganizationsLocationsFirewallEndpointsGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsFirewallEndpointsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *OrganizationsLocationsFirewallEndpointsGetCall) Context(ctx context.Context) *OrganizationsLocationsFirewallEndpointsGetCall { +func (c *ProjectsLocationsAddressGroupsCloneItemsCall) Context(ctx context.Context) *ProjectsLocationsAddressGroupsCloneItemsCall { 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 *OrganizationsLocationsFirewallEndpointsGetCall) Header() http.Header { +func (c *ProjectsLocationsAddressGroupsCloneItemsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsFirewallEndpointsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) +func (c *ProjectsLocationsAddressGroupsCloneItemsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.cloneaddressgroupitemsrequest) + 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 := googleapi.ResolveRelative(c.s.BasePath, "v1/{+addressGroup}:cloneItems") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + 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, + "addressGroup": c.addressGroup, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.firewallEndpoints.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.addressGroups.cloneItems", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.organizations.locations.firewallEndpoints.get" call. +// Do executes the "networksecurity.projects.locations.addressGroups.cloneItems" call. // Any non-2xx status code is an error. Response headers are in either -// *FirewallEndpoint.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 *OrganizationsLocationsFirewallEndpointsGetCall) Do(opts ...googleapi.CallOption) (*FirewallEndpoint, error) { +// *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 *ProjectsLocationsAddressGroupsCloneItemsCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5452,7 +8577,7 @@ func (c *OrganizationsLocationsFirewallEndpointsGetCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &FirewallEndpoint{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5463,97 +8588,89 @@ func (c *OrganizationsLocationsFirewallEndpointsGetCall) Do(opts ...googleapi.Ca if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.firewallEndpoints.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.addressGroups.cloneItems", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type OrganizationsLocationsFirewallEndpointsListCall struct { +type ProjectsLocationsAddressGroupsCreateCall struct { s *Service parent string + addressgroup *AddressGroup urlParams_ gensupport.URLParams - ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists FirewallEndpoints in a given project and location. +// Create: Creates a new address group in a given project and location. // -// - parent: Parent value for ListEndpointsRequest. -func (r *OrganizationsLocationsFirewallEndpointsService) List(parent string) *OrganizationsLocationsFirewallEndpointsListCall { - c := &OrganizationsLocationsFirewallEndpointsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The parent resource of the AddressGroup. Must be in the format +// `projects/*/locations/{location}`. +func (r *ProjectsLocationsAddressGroupsService) Create(parent string, addressgroup *AddressGroup) *ProjectsLocationsAddressGroupsCreateCall { + c := &ProjectsLocationsAddressGroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent + c.addressgroup = addressgroup return c } -// Filter sets the optional parameter "filter": Filtering results -func (c *OrganizationsLocationsFirewallEndpointsListCall) Filter(filter string) *OrganizationsLocationsFirewallEndpointsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// OrderBy sets the optional parameter "orderBy": Hint for how to order the -// results -func (c *OrganizationsLocationsFirewallEndpointsListCall) OrderBy(orderBy string) *OrganizationsLocationsFirewallEndpointsListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageSize sets the optional parameter "pageSize": Requested page size. Server -// may return fewer items than requested. If unspecified, server will pick an -// appropriate default. -func (c *OrganizationsLocationsFirewallEndpointsListCall) PageSize(pageSize int64) *OrganizationsLocationsFirewallEndpointsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) +// AddressGroupId sets the optional parameter "addressGroupId": Required. Short +// name of the AddressGroup resource to be created. This value should be 1-63 +// characters long, containing only letters, numbers, hyphens, and underscores, +// and should not start with a number. E.g. "authz_policy". +func (c *ProjectsLocationsAddressGroupsCreateCall) AddressGroupId(addressGroupId string) *ProjectsLocationsAddressGroupsCreateCall { + c.urlParams_.Set("addressGroupId", addressGroupId) return c } -// PageToken sets the optional parameter "pageToken": A token identifying a -// page of results the server should return. -func (c *OrganizationsLocationsFirewallEndpointsListCall) PageToken(pageToken string) *OrganizationsLocationsFirewallEndpointsListCall { - c.urlParams_.Set("pageToken", pageToken) +// 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 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). +func (c *ProjectsLocationsAddressGroupsCreateCall) RequestId(requestId string) *ProjectsLocationsAddressGroupsCreateCall { + 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 *OrganizationsLocationsFirewallEndpointsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsFirewallEndpointsListCall { +func (c *ProjectsLocationsAddressGroupsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAddressGroupsCreateCall { 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 *OrganizationsLocationsFirewallEndpointsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsFirewallEndpointsListCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *OrganizationsLocationsFirewallEndpointsListCall) Context(ctx context.Context) *OrganizationsLocationsFirewallEndpointsListCall { +func (c *ProjectsLocationsAddressGroupsCreateCall) Context(ctx context.Context) *ProjectsLocationsAddressGroupsCreateCall { 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 *OrganizationsLocationsFirewallEndpointsListCall) Header() http.Header { +func (c *ProjectsLocationsAddressGroupsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsFirewallEndpointsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) +func (c *ProjectsLocationsAddressGroupsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.addressgroup) + if err != nil { + return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/firewallEndpoints") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/addressGroups") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -5561,17 +8678,16 @@ func (c *OrganizationsLocationsFirewallEndpointsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.firewallEndpoints.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.addressGroups.create", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.organizations.locations.firewallEndpoints.list" call. +// Do executes the "networksecurity.projects.locations.addressGroups.create" call. // Any non-2xx status code is an error. Response headers are in either -// *ListFirewallEndpointsResponse.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 *OrganizationsLocationsFirewallEndpointsListCall) Do(opts ...googleapi.CallOption) (*ListFirewallEndpointsResponse, error) { +// *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 *ProjectsLocationsAddressGroupsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5590,7 +8706,7 @@ func (c *OrganizationsLocationsFirewallEndpointsListCall) Do(opts ...googleapi.C if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListFirewallEndpointsResponse{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5601,47 +8717,25 @@ func (c *OrganizationsLocationsFirewallEndpointsListCall) Do(opts ...googleapi.C if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.firewallEndpoints.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.addressGroups.create", "response", internallog.HTTPResponse(res, b)) 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 *OrganizationsLocationsFirewallEndpointsListCall) Pages(ctx context.Context, f func(*ListFirewallEndpointsResponse) 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 OrganizationsLocationsFirewallEndpointsPatchCall struct { - s *Service - name string - firewallendpoint *FirewallEndpoint - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsAddressGroupsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Update a single Endpoint. +// Delete: Deletes a single address group. // -// - name: Immutable. Identifier. name of resource. -func (r *OrganizationsLocationsFirewallEndpointsService) Patch(name string, firewallendpoint *FirewallEndpoint) *OrganizationsLocationsFirewallEndpointsPatchCall { - c := &OrganizationsLocationsFirewallEndpointsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: A name of the AddressGroup to delete. Must be in the format +// `projects/*/locations/{location}/addressGroups/*`. +func (r *ProjectsLocationsAddressGroupsService) Delete(name string) *ProjectsLocationsAddressGroupsDeleteCall { + c := &ProjectsLocationsAddressGroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.firewallendpoint = firewallendpoint return c } @@ -5656,56 +8750,41 @@ func (r *OrganizationsLocationsFirewallEndpointsService) Patch(name string, fire // 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 *OrganizationsLocationsFirewallEndpointsPatchCall) RequestId(requestId string) *OrganizationsLocationsFirewallEndpointsPatchCall { +func (c *ProjectsLocationsAddressGroupsDeleteCall) RequestId(requestId string) *ProjectsLocationsAddressGroupsDeleteCall { c.urlParams_.Set("requestId", requestId) return c } -// UpdateMask sets the optional parameter "updateMask": Required. Field mask is -// used to specify the fields to be overwritten in the Endpoint resource by the -// update. The fields specified in the update_mask are relative to the -// resource, not the full request. A field will be overwritten if it is in the -// mask. If the user does not provide a mask then all fields will be -// overwritten. -func (c *OrganizationsLocationsFirewallEndpointsPatchCall) UpdateMask(updateMask string) *OrganizationsLocationsFirewallEndpointsPatchCall { - 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 *OrganizationsLocationsFirewallEndpointsPatchCall) Fields(s ...googleapi.Field) *OrganizationsLocationsFirewallEndpointsPatchCall { +func (c *ProjectsLocationsAddressGroupsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAddressGroupsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *OrganizationsLocationsFirewallEndpointsPatchCall) Context(ctx context.Context) *OrganizationsLocationsFirewallEndpointsPatchCall { +func (c *ProjectsLocationsAddressGroupsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAddressGroupsDeleteCall { 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 *OrganizationsLocationsFirewallEndpointsPatchCall) Header() http.Header { +func (c *ProjectsLocationsAddressGroupsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsFirewallEndpointsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.firewallendpoint) - if err != nil { - return nil, err - } +func (c *ProjectsLocationsAddressGroupsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("DELETE", urls, nil) if err != nil { return nil, err } @@ -5713,16 +8792,16 @@ func (c *OrganizationsLocationsFirewallEndpointsPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.firewallEndpoints.patch", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.addressGroups.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.organizations.locations.firewallEndpoints.patch" call. +// Do executes the "networksecurity.projects.locations.addressGroups.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 *OrganizationsLocationsFirewallEndpointsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsAddressGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5752,71 +8831,70 @@ func (c *OrganizationsLocationsFirewallEndpointsPatchCall) Do(opts ...googleapi. if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.firewallEndpoints.patch", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.addressGroups.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type OrganizationsLocationsOperationsCancelCall struct { - s *Service - name string - canceloperationrequest *CancelOperationRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsAddressGroupsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + 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`. +// Get: Gets details of a single address group. // -// - name: The name of the operation resource to be cancelled. -func (r *OrganizationsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *OrganizationsLocationsOperationsCancelCall { - c := &OrganizationsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: A name of the AddressGroup to get. Must be in the format +// `projects/*/locations/{location}/addressGroups/*`. +func (r *ProjectsLocationsAddressGroupsService) Get(name string) *ProjectsLocationsAddressGroupsGetCall { + c := &ProjectsLocationsAddressGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.canceloperationrequest = canceloperationrequest 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 *OrganizationsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *OrganizationsLocationsOperationsCancelCall { +func (c *ProjectsLocationsAddressGroupsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAddressGroupsGetCall { 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 *ProjectsLocationsAddressGroupsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAddressGroupsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *OrganizationsLocationsOperationsCancelCall) Context(ctx context.Context) *OrganizationsLocationsOperationsCancelCall { +func (c *ProjectsLocationsAddressGroupsGetCall) Context(ctx context.Context) *ProjectsLocationsAddressGroupsGetCall { 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 *OrganizationsLocationsOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsAddressGroupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.canceloperationrequest) - if err != nil { - return nil, err +func (c *ProjectsLocationsAddressGroupsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } @@ -5824,16 +8902,16 @@ func (c *OrganizationsLocationsOperationsCancelCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.operations.cancel", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.addressGroups.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.organizations.locations.operations.cancel" call. +// Do executes the "networksecurity.projects.locations.addressGroups.get" call. // Any non-2xx status code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// *AddressGroup.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 *OrganizationsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) { +func (c *ProjectsLocationsAddressGroupsGetCall) Do(opts ...googleapi.CallOption) (*AddressGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5852,7 +8930,7 @@ func (c *OrganizationsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOp if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Empty{ + ret := &AddressGroup{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5863,77 +8941,107 @@ func (c *OrganizationsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOp if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.operations.cancel", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.addressGroups.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type OrganizationsLocationsOperationsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsAddressGroupsGetIamPolicyCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + 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`. +// GetIamPolicy: Gets the access control policy for a resource. Returns an +// empty policy if the resource exists and does not have a policy set. // -// - name: The name of the operation resource to be deleted. -func (r *OrganizationsLocationsOperationsService) Delete(name string) *OrganizationsLocationsOperationsDeleteCall { - c := &OrganizationsLocationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - 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 *ProjectsLocationsAddressGroupsService) GetIamPolicy(resource string) *ProjectsLocationsAddressGroupsGetIamPolicyCall { + c := &ProjectsLocationsAddressGroupsGetIamPolicyCall{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 *ProjectsLocationsAddressGroupsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsAddressGroupsGetIamPolicyCall { + 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 *OrganizationsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsLocationsOperationsDeleteCall { +func (c *ProjectsLocationsAddressGroupsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAddressGroupsGetIamPolicyCall { 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 *ProjectsLocationsAddressGroupsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsAddressGroupsGetIamPolicyCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *OrganizationsLocationsOperationsDeleteCall) Context(ctx context.Context) *OrganizationsLocationsOperationsDeleteCall { +func (c *ProjectsLocationsAddressGroupsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAddressGroupsGetIamPolicyCall { 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 *OrganizationsLocationsOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsAddressGroupsGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAddressGroupsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, nil) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "resource": c.resource, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.operations.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.addressGroups.getIamPolicy", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.organizations.locations.operations.delete" call. +// Do executes the "networksecurity.projects.locations.addressGroups.getIamPolicy" call. // Any non-2xx status code is an error. Response headers are in either -// *Empty.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 *OrganizationsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { +// *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 *ProjectsLocationsAddressGroupsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5952,7 +9060,7 @@ func (c *OrganizationsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOp if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Empty{ + ret := &GoogleIamV1Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5963,34 +9071,56 @@ func (c *OrganizationsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOp if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.operations.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.addressGroups.getIamPolicy", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type OrganizationsLocationsOperationsGetCall struct { +type ProjectsLocationsAddressGroupsListCall struct { s *Service - name string + parent 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. +// List: Lists address groups in a given project and location. // -// - name: The name of the operation resource. -func (r *OrganizationsLocationsOperationsService) Get(name string) *OrganizationsLocationsOperationsGetCall { - c := &OrganizationsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The project and location from which the AddressGroups should be +// listed, specified in the format `projects/*/locations/{location}`. +func (r *ProjectsLocationsAddressGroupsService) List(parent string) *ProjectsLocationsAddressGroupsListCall { + c := &ProjectsLocationsAddressGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// AddressGroups to return per call. +func (c *ProjectsLocationsAddressGroupsListCall) PageSize(pageSize int64) *ProjectsLocationsAddressGroupsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The value returned by the +// last `ListAddressGroupsResponse` Indicates that this is a continuation of a +// prior `ListAddressGroups` call, and that the system should return the next +// page of data. +func (c *ProjectsLocationsAddressGroupsListCall) PageToken(pageToken string) *ProjectsLocationsAddressGroupsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": If +// true, allow partial responses for multi-regional Aggregated List requests. +func (c *ProjectsLocationsAddressGroupsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsLocationsAddressGroupsListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) 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 *OrganizationsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsOperationsGetCall { +func (c *ProjectsLocationsAddressGroupsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAddressGroupsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -5998,34 +9128,34 @@ func (c *OrganizationsLocationsOperationsGetCall) Fields(s ...googleapi.Field) * // 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 *OrganizationsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsOperationsGetCall { +func (c *ProjectsLocationsAddressGroupsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAddressGroupsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *OrganizationsLocationsOperationsGetCall) Context(ctx context.Context) *OrganizationsLocationsOperationsGetCall { +func (c *ProjectsLocationsAddressGroupsListCall) Context(ctx context.Context) *ProjectsLocationsAddressGroupsListCall { 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 *OrganizationsLocationsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsAddressGroupsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAddressGroupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/addressGroups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -6033,18 +9163,19 @@ func (c *OrganizationsLocationsOperationsGetCall) doRequest(alt string) (*http.R } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.operations.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.addressGroups.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.organizations.locations.operations.get" call. +// Do executes the "networksecurity.projects.locations.addressGroups.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 *OrganizationsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// *ListAddressGroupsResponse.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 *ProjectsLocationsAddressGroupsListCall) Do(opts ...googleapi.CallOption) (*ListAddressGroupsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6063,7 +9194,7 @@ func (c *OrganizationsLocationsOperationsGetCall) Do(opts ...googleapi.CallOptio if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &ListAddressGroupsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6074,45 +9205,63 @@ func (c *OrganizationsLocationsOperationsGetCall) Do(opts ...googleapi.CallOptio if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.operations.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.addressGroups.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type OrganizationsLocationsOperationsListCall struct { +// 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 *ProjectsLocationsAddressGroupsListCall) Pages(ctx context.Context, f func(*ListAddressGroupsResponse) 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 ProjectsLocationsAddressGroupsListReferencesCall struct { s *Service - name string + addressGroup 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`. +// ListReferences: Lists references of an address group. // -// - name: The name of the operation's parent resource. -func (r *OrganizationsLocationsOperationsService) List(name string) *OrganizationsLocationsOperationsListCall { - c := &OrganizationsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Filter sets the optional parameter "filter": The standard list filter. -func (c *OrganizationsLocationsOperationsListCall) Filter(filter string) *OrganizationsLocationsOperationsListCall { - c.urlParams_.Set("filter", filter) +// - addressGroup: A name of the AddressGroup to clone items to. Must be in the +// format `projects|organization/*/locations/{location}/addressGroups/*`. +func (r *ProjectsLocationsAddressGroupsService) ListReferences(addressGroup string) *ProjectsLocationsAddressGroupsListReferencesCall { + c := &ProjectsLocationsAddressGroupsListReferencesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.addressGroup = addressGroup return c } -// PageSize sets the optional parameter "pageSize": The standard list page -// size. -func (c *OrganizationsLocationsOperationsListCall) PageSize(pageSize int64) *OrganizationsLocationsOperationsListCall { +// PageSize sets the optional parameter "pageSize": The maximum number of +// references to return. If unspecified, server will pick an appropriate +// default. Server may return fewer items than requested. A caller should only +// rely on response's next_page_token to determine if there are more +// AddressGroupUsers left to be queried. +func (c *ProjectsLocationsAddressGroupsListReferencesCall) PageSize(pageSize int64) *ProjectsLocationsAddressGroupsListReferencesCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list page -// token. -func (c *OrganizationsLocationsOperationsListCall) PageToken(pageToken string) *OrganizationsLocationsOperationsListCall { +// PageToken sets the optional parameter "pageToken": The next_page_token value +// returned from a previous List request, if any. +func (c *ProjectsLocationsAddressGroupsListReferencesCall) PageToken(pageToken string) *ProjectsLocationsAddressGroupsListReferencesCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -6120,7 +9269,7 @@ func (c *OrganizationsLocationsOperationsListCall) PageToken(pageToken string) * // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *OrganizationsLocationsOperationsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsOperationsListCall { +func (c *ProjectsLocationsAddressGroupsListReferencesCall) Fields(s ...googleapi.Field) *ProjectsLocationsAddressGroupsListReferencesCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -6128,34 +9277,34 @@ func (c *OrganizationsLocationsOperationsListCall) Fields(s ...googleapi.Field) // 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 *OrganizationsLocationsOperationsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsOperationsListCall { +func (c *ProjectsLocationsAddressGroupsListReferencesCall) IfNoneMatch(entityTag string) *ProjectsLocationsAddressGroupsListReferencesCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *OrganizationsLocationsOperationsListCall) Context(ctx context.Context) *OrganizationsLocationsOperationsListCall { +func (c *ProjectsLocationsAddressGroupsListReferencesCall) Context(ctx context.Context) *ProjectsLocationsAddressGroupsListReferencesCall { 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 *OrganizationsLocationsOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsAddressGroupsListReferencesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAddressGroupsListReferencesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+addressGroup}:listReferences") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -6163,19 +9312,19 @@ func (c *OrganizationsLocationsOperationsListCall) doRequest(alt string) (*http. } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "addressGroup": c.addressGroup, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.operations.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.addressGroups.listReferences", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.organizations.locations.operations.list" call. +// Do executes the "networksecurity.projects.locations.addressGroups.listReferences" call. // Any non-2xx status code is an error. Response headers are in either -// *ListOperationsResponse.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 *OrganizationsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) { +// *ListAddressGroupReferencesResponse.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 *ProjectsLocationsAddressGroupsListReferencesCall) Do(opts ...googleapi.CallOption) (*ListAddressGroupReferencesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6194,7 +9343,7 @@ func (c *OrganizationsLocationsOperationsListCall) Do(opts ...googleapi.CallOpti if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListOperationsResponse{ + ret := &ListAddressGroupReferencesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6205,14 +9354,14 @@ func (c *OrganizationsLocationsOperationsListCall) Do(opts ...googleapi.CallOpti if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.operations.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.addressGroups.listReferences", "response", internallog.HTTPResponse(res, b)) 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 *OrganizationsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error { +func (c *ProjectsLocationsAddressGroupsListReferencesCall) Pages(ctx context.Context, f func(*ListAddressGroupReferencesResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -6230,88 +9379,104 @@ func (c *OrganizationsLocationsOperationsListCall) Pages(ctx context.Context, f } } -type OrganizationsLocationsSecurityProfileGroupsCreateCall struct { - s *Service - parent string - securityprofilegroup *SecurityProfileGroup - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsAddressGroupsPatchCall struct { + s *Service + name string + addressgroup *AddressGroup + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a new SecurityProfileGroup in a given organization and -// location. +// Patch: Updates the parameters of a single address group. // -// - parent: The parent resource of the SecurityProfileGroup. Must be in the -// format `projects|organizations/*/locations/{location}`. -func (r *OrganizationsLocationsSecurityProfileGroupsService) Create(parent string, securityprofilegroup *SecurityProfileGroup) *OrganizationsLocationsSecurityProfileGroupsCreateCall { - c := &OrganizationsLocationsSecurityProfileGroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.securityprofilegroup = securityprofilegroup +// - name: Name of the AddressGroup resource. It matches pattern +// `projects/*/locations/{location}/addressGroups/`. +func (r *ProjectsLocationsAddressGroupsService) Patch(name string, addressgroup *AddressGroup) *ProjectsLocationsAddressGroupsPatchCall { + c := &ProjectsLocationsAddressGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.addressgroup = addressgroup return c } -// SecurityProfileGroupId sets the optional parameter "securityProfileGroupId": -// Required. Short name of the SecurityProfileGroup resource to be created. -// This value should be 1-63 characters long, containing only letters, numbers, -// hyphens, and underscores, and should not start with a number. E.g. -// "security_profile_group1". -func (c *OrganizationsLocationsSecurityProfileGroupsCreateCall) SecurityProfileGroupId(securityProfileGroupId string) *OrganizationsLocationsSecurityProfileGroupsCreateCall { - c.urlParams_.Set("securityProfileGroupId", securityProfileGroupId) +// 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 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). +func (c *ProjectsLocationsAddressGroupsPatchCall) RequestId(requestId string) *ProjectsLocationsAddressGroupsPatchCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// UpdateMask sets the optional parameter "updateMask": Field mask is used to +// specify the fields to be overwritten in the AddressGroup resource by the +// update. The fields specified in the update_mask are relative to the +// resource, not the full request. A field will be overwritten if it is in the +// mask. If the user does not provide a mask then all fields will be +// overwritten. +func (c *ProjectsLocationsAddressGroupsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAddressGroupsPatchCall { + 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 *OrganizationsLocationsSecurityProfileGroupsCreateCall) Fields(s ...googleapi.Field) *OrganizationsLocationsSecurityProfileGroupsCreateCall { +func (c *ProjectsLocationsAddressGroupsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAddressGroupsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *OrganizationsLocationsSecurityProfileGroupsCreateCall) Context(ctx context.Context) *OrganizationsLocationsSecurityProfileGroupsCreateCall { +func (c *ProjectsLocationsAddressGroupsPatchCall) Context(ctx context.Context) *ProjectsLocationsAddressGroupsPatchCall { 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 *OrganizationsLocationsSecurityProfileGroupsCreateCall) Header() http.Header { +func (c *ProjectsLocationsAddressGroupsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsSecurityProfileGroupsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAddressGroupsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.securityprofilegroup) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.addressgroup) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/securityProfileGroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.securityProfileGroups.create", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.addressGroups.patch", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.organizations.locations.securityProfileGroups.create" call. +// Do executes the "networksecurity.projects.locations.addressGroups.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 *OrganizationsLocationsSecurityProfileGroupsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsAddressGroupsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6341,83 +9506,81 @@ func (c *OrganizationsLocationsSecurityProfileGroupsCreateCall) Do(opts ...googl if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.securityProfileGroups.create", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.addressGroups.patch", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type OrganizationsLocationsSecurityProfileGroupsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsAddressGroupsRemoveItemsCall struct { + s *Service + addressGroup string + removeaddressgroupitemsrequest *RemoveAddressGroupItemsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a single SecurityProfileGroup. +// RemoveItems: Removes items from an address group. // -// - name: A name of the SecurityProfileGroup to delete. Must be in the format -// `projects|organizations/*/locations/{location}/securityProfileGroups/{secur -// ity_profile_group}`. -func (r *OrganizationsLocationsSecurityProfileGroupsService) Delete(name string) *OrganizationsLocationsSecurityProfileGroupsDeleteCall { - c := &OrganizationsLocationsSecurityProfileGroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Etag sets the optional parameter "etag": If client provided etag is out of -// date, delete will return FAILED_PRECONDITION error. -func (c *OrganizationsLocationsSecurityProfileGroupsDeleteCall) Etag(etag string) *OrganizationsLocationsSecurityProfileGroupsDeleteCall { - c.urlParams_.Set("etag", etag) +// - addressGroup: A name of the AddressGroup to remove items from. Must be in +// the format `projects|organization/*/locations/{location}/addressGroups/*`. +func (r *ProjectsLocationsAddressGroupsService) RemoveItems(addressGroup string, removeaddressgroupitemsrequest *RemoveAddressGroupItemsRequest) *ProjectsLocationsAddressGroupsRemoveItemsCall { + c := &ProjectsLocationsAddressGroupsRemoveItemsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.addressGroup = addressGroup + c.removeaddressgroupitemsrequest = removeaddressgroupitemsrequest 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 *OrganizationsLocationsSecurityProfileGroupsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsLocationsSecurityProfileGroupsDeleteCall { +func (c *ProjectsLocationsAddressGroupsRemoveItemsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAddressGroupsRemoveItemsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *OrganizationsLocationsSecurityProfileGroupsDeleteCall) Context(ctx context.Context) *OrganizationsLocationsSecurityProfileGroupsDeleteCall { +func (c *ProjectsLocationsAddressGroupsRemoveItemsCall) Context(ctx context.Context) *ProjectsLocationsAddressGroupsRemoveItemsCall { 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 *OrganizationsLocationsSecurityProfileGroupsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsAddressGroupsRemoveItemsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsSecurityProfileGroupsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) +func (c *ProjectsLocationsAddressGroupsRemoveItemsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.removeaddressgroupitemsrequest) + 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 := googleapi.ResolveRelative(c.s.BasePath, "v1/{+addressGroup}:removeItems") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, nil) + 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, + "addressGroup": c.addressGroup, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.securityProfileGroups.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.addressGroups.removeItems", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.organizations.locations.securityProfileGroups.delete" call. +// Do executes the "networksecurity.projects.locations.addressGroups.removeItems" 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 *OrganizationsLocationsSecurityProfileGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsAddressGroupsRemoveItemsCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6447,89 +9610,85 @@ func (c *OrganizationsLocationsSecurityProfileGroupsDeleteCall) Do(opts ...googl if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.securityProfileGroups.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.addressGroups.removeItems", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type OrganizationsLocationsSecurityProfileGroupsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsAddressGroupsSetIamPolicyCall struct { + s *Service + resource string + googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets details of a single SecurityProfileGroup. +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, +// and `PERMISSION_DENIED` errors. // -// - name: A name of the SecurityProfileGroup to get. Must be in the format -// `projects|organizations/*/locations/{location}/securityProfileGroups/{secur -// ity_profile_group}`. -func (r *OrganizationsLocationsSecurityProfileGroupsService) Get(name string) *OrganizationsLocationsSecurityProfileGroupsGetCall { - c := &OrganizationsLocationsSecurityProfileGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - 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 *ProjectsLocationsAddressGroupsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsAddressGroupsSetIamPolicyCall { + c := &ProjectsLocationsAddressGroupsSetIamPolicyCall{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 *OrganizationsLocationsSecurityProfileGroupsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsSecurityProfileGroupsGetCall { +func (c *ProjectsLocationsAddressGroupsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAddressGroupsSetIamPolicyCall { 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 *OrganizationsLocationsSecurityProfileGroupsGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsSecurityProfileGroupsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *OrganizationsLocationsSecurityProfileGroupsGetCall) Context(ctx context.Context) *OrganizationsLocationsSecurityProfileGroupsGetCall { +func (c *ProjectsLocationsAddressGroupsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAddressGroupsSetIamPolicyCall { 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 *OrganizationsLocationsSecurityProfileGroupsGetCall) Header() http.Header { +func (c *ProjectsLocationsAddressGroupsSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsSecurityProfileGroupsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) +func (c *ProjectsLocationsAddressGroupsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(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/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + 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, + "resource": c.resource, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.securityProfileGroups.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.addressGroups.setIamPolicy", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.organizations.locations.securityProfileGroups.get" call. +// Do executes the "networksecurity.projects.locations.addressGroups.setIamPolicy" call. // Any non-2xx status code is an error. Response headers are in either -// *SecurityProfileGroup.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// *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 *OrganizationsLocationsSecurityProfileGroupsGetCall) Do(opts ...googleapi.CallOption) (*SecurityProfileGroup, error) { +func (c *ProjectsLocationsAddressGroupsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6548,7 +9707,7 @@ func (c *OrganizationsLocationsSecurityProfileGroupsGetCall) Do(opts ...googleap if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &SecurityProfileGroup{ + ret := &GoogleIamV1Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6559,105 +9718,88 @@ func (c *OrganizationsLocationsSecurityProfileGroupsGetCall) Do(opts ...googleap if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.securityProfileGroups.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.addressGroups.setIamPolicy", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type OrganizationsLocationsSecurityProfileGroupsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists SecurityProfileGroups in a given organization and location. -// -// - parent: The project or organization and location from which the -// SecurityProfileGroups should be listed, specified in the format -// `projects|organizations/*/locations/{location}`. -func (r *OrganizationsLocationsSecurityProfileGroupsService) List(parent string) *OrganizationsLocationsSecurityProfileGroupsListCall { - c := &OrganizationsLocationsSecurityProfileGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// PageSize sets the optional parameter "pageSize": Maximum number of -// SecurityProfileGroups to return per call. -func (c *OrganizationsLocationsSecurityProfileGroupsListCall) PageSize(pageSize int64) *OrganizationsLocationsSecurityProfileGroupsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c +type ProjectsLocationsAddressGroupsTestIamPermissionsCall struct { + s *Service + resource string + googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// PageToken sets the optional parameter "pageToken": The value returned by the -// last `ListSecurityProfileGroupsResponse` Indicates that this is a -// continuation of a prior `ListSecurityProfileGroups` call, and that the -// system should return the next page of data. -func (c *OrganizationsLocationsSecurityProfileGroupsListCall) PageToken(pageToken string) *OrganizationsLocationsSecurityProfileGroupsListCall { - c.urlParams_.Set("pageToken", pageToken) +// 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 *ProjectsLocationsAddressGroupsService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsAddressGroupsTestIamPermissionsCall { + c := &ProjectsLocationsAddressGroupsTestIamPermissionsCall{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 *OrganizationsLocationsSecurityProfileGroupsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsSecurityProfileGroupsListCall { +func (c *ProjectsLocationsAddressGroupsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAddressGroupsTestIamPermissionsCall { 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 *OrganizationsLocationsSecurityProfileGroupsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsSecurityProfileGroupsListCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *OrganizationsLocationsSecurityProfileGroupsListCall) Context(ctx context.Context) *OrganizationsLocationsSecurityProfileGroupsListCall { +func (c *ProjectsLocationsAddressGroupsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsAddressGroupsTestIamPermissionsCall { 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 *OrganizationsLocationsSecurityProfileGroupsListCall) Header() http.Header { +func (c *ProjectsLocationsAddressGroupsTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsSecurityProfileGroupsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) +func (c *ProjectsLocationsAddressGroupsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(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/{+parent}/securityProfileGroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + 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, + "resource": c.resource, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.securityProfileGroups.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.addressGroups.testIamPermissions", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.organizations.locations.securityProfileGroups.list" call. +// Do executes the "networksecurity.projects.locations.addressGroups.testIamPermissions" call. // Any non-2xx status code is an error. Response headers are in either -// *ListSecurityProfileGroupsResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use +// *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 *OrganizationsLocationsSecurityProfileGroupsListCall) Do(opts ...googleapi.CallOption) (*ListSecurityProfileGroupsResponse, error) { +func (c *ProjectsLocationsAddressGroupsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6676,7 +9818,7 @@ func (c *OrganizationsLocationsSecurityProfileGroupsListCall) Do(opts ...googlea if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListSecurityProfileGroupsResponse{ + ret := &GoogleIamV1TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6687,114 +9829,91 @@ func (c *OrganizationsLocationsSecurityProfileGroupsListCall) Do(opts ...googlea if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.securityProfileGroups.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.addressGroups.testIamPermissions", "response", internallog.HTTPResponse(res, b)) 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 *OrganizationsLocationsSecurityProfileGroupsListCall) Pages(ctx context.Context, f func(*ListSecurityProfileGroupsResponse) 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 OrganizationsLocationsSecurityProfileGroupsPatchCall struct { - s *Service - name string - securityprofilegroup *SecurityProfileGroup - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsAuthorizationPoliciesCreateCall struct { + s *Service + parent string + authorizationpolicy *AuthorizationPolicy + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Updates the parameters of a single SecurityProfileGroup. +// Create: Creates a new AuthorizationPolicy in a given project and location. // -// - name: Immutable. Identifier. Name of the SecurityProfileGroup resource. It -// matches pattern -// `projects|organizations/*/locations/{location}/securityProfileGroups/{secur -// ity_profile_group}`. -func (r *OrganizationsLocationsSecurityProfileGroupsService) Patch(name string, securityprofilegroup *SecurityProfileGroup) *OrganizationsLocationsSecurityProfileGroupsPatchCall { - c := &OrganizationsLocationsSecurityProfileGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.securityprofilegroup = securityprofilegroup +// - parent: The parent resource of the AuthorizationPolicy. Must be in the +// format `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsAuthorizationPoliciesService) Create(parent string, authorizationpolicy *AuthorizationPolicy) *ProjectsLocationsAuthorizationPoliciesCreateCall { + c := &ProjectsLocationsAuthorizationPoliciesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.authorizationpolicy = authorizationpolicy return c } -// UpdateMask sets the optional parameter "updateMask": Required. Field mask is -// used to specify the fields to be overwritten in the SecurityProfileGroup -// resource by the update. The fields specified in the update_mask are relative -// to the resource, not the full request. A field will be overwritten if it is -// in the mask. -func (c *OrganizationsLocationsSecurityProfileGroupsPatchCall) UpdateMask(updateMask string) *OrganizationsLocationsSecurityProfileGroupsPatchCall { - c.urlParams_.Set("updateMask", updateMask) +// AuthorizationPolicyId sets the optional parameter "authorizationPolicyId": +// Required. Short name of the AuthorizationPolicy resource to be created. This +// value should be 1-63 characters long, containing only letters, numbers, +// hyphens, and underscores, and should not start with a number. E.g. +// "authz_policy". +func (c *ProjectsLocationsAuthorizationPoliciesCreateCall) AuthorizationPolicyId(authorizationPolicyId string) *ProjectsLocationsAuthorizationPoliciesCreateCall { + c.urlParams_.Set("authorizationPolicyId", authorizationPolicyId) 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 *OrganizationsLocationsSecurityProfileGroupsPatchCall) Fields(s ...googleapi.Field) *OrganizationsLocationsSecurityProfileGroupsPatchCall { +func (c *ProjectsLocationsAuthorizationPoliciesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizationPoliciesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *OrganizationsLocationsSecurityProfileGroupsPatchCall) Context(ctx context.Context) *OrganizationsLocationsSecurityProfileGroupsPatchCall { +func (c *ProjectsLocationsAuthorizationPoliciesCreateCall) Context(ctx context.Context) *ProjectsLocationsAuthorizationPoliciesCreateCall { 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 *OrganizationsLocationsSecurityProfileGroupsPatchCall) Header() http.Header { +func (c *ProjectsLocationsAuthorizationPoliciesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsSecurityProfileGroupsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAuthorizationPoliciesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.securityprofilegroup) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.authorizationpolicy) 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 := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/authorizationPolicies") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + 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, + "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.securityProfileGroups.patch", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authorizationPolicies.create", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.organizations.locations.securityProfileGroups.patch" call. +// Do executes the "networksecurity.projects.locations.authorizationPolicies.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 *OrganizationsLocationsSecurityProfileGroupsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsAuthorizationPoliciesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6824,90 +9943,75 @@ func (c *OrganizationsLocationsSecurityProfileGroupsPatchCall) Do(opts ...google if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.securityProfileGroups.patch", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authorizationPolicies.create", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type OrganizationsLocationsSecurityProfilesCreateCall struct { - s *Service - parent string - securityprofile *SecurityProfile - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsAuthorizationPoliciesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a new SecurityProfile in a given organization and location. +// Delete: Deletes a single AuthorizationPolicy. // -// - parent: The parent resource of the SecurityProfile. Must be in the format -// `projects|organizations/*/locations/{location}`. -func (r *OrganizationsLocationsSecurityProfilesService) Create(parent string, securityprofile *SecurityProfile) *OrganizationsLocationsSecurityProfilesCreateCall { - c := &OrganizationsLocationsSecurityProfilesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.securityprofile = securityprofile - return c -} - -// SecurityProfileId sets the optional parameter "securityProfileId": Required. -// Short name of the SecurityProfile resource to be created. This value should -// be 1-63 characters long, containing only letters, numbers, hyphens, and -// underscores, and should not start with a number. E.g. "security_profile1". -func (c *OrganizationsLocationsSecurityProfilesCreateCall) SecurityProfileId(securityProfileId string) *OrganizationsLocationsSecurityProfilesCreateCall { - c.urlParams_.Set("securityProfileId", securityProfileId) +// - name: A name of the AuthorizationPolicy to delete. Must be in the format +// `projects/{project}/locations/{location}/authorizationPolicies/*`. +func (r *ProjectsLocationsAuthorizationPoliciesService) Delete(name string) *ProjectsLocationsAuthorizationPoliciesDeleteCall { + c := &ProjectsLocationsAuthorizationPoliciesDeleteCall{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 *OrganizationsLocationsSecurityProfilesCreateCall) Fields(s ...googleapi.Field) *OrganizationsLocationsSecurityProfilesCreateCall { +func (c *ProjectsLocationsAuthorizationPoliciesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizationPoliciesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *OrganizationsLocationsSecurityProfilesCreateCall) Context(ctx context.Context) *OrganizationsLocationsSecurityProfilesCreateCall { +func (c *ProjectsLocationsAuthorizationPoliciesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAuthorizationPoliciesDeleteCall { 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 *OrganizationsLocationsSecurityProfilesCreateCall) Header() http.Header { +func (c *ProjectsLocationsAuthorizationPoliciesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsSecurityProfilesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.securityprofile) - if err != nil { - return nil, err - } +func (c *ProjectsLocationsAuthorizationPoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/securityProfiles") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.securityProfiles.create", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authorizationPolicies.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.organizations.locations.securityProfiles.create" call. +// Do executes the "networksecurity.projects.locations.authorizationPolicies.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 *OrganizationsLocationsSecurityProfilesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsAuthorizationPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6937,66 +10041,70 @@ func (c *OrganizationsLocationsSecurityProfilesCreateCall) Do(opts ...googleapi. if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.securityProfiles.create", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authorizationPolicies.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type OrganizationsLocationsSecurityProfilesDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsAuthorizationPoliciesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a single SecurityProfile. +// Get: Gets details of a single AuthorizationPolicy. // -// - name: A name of the SecurityProfile to delete. Must be in the format -// `projects|organizations/*/locations/{location}/securityProfiles/{security_p -// rofile_id}`. -func (r *OrganizationsLocationsSecurityProfilesService) Delete(name string) *OrganizationsLocationsSecurityProfilesDeleteCall { - c := &OrganizationsLocationsSecurityProfilesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Etag sets the optional parameter "etag": If client provided etag is out of -// date, delete will return FAILED_PRECONDITION error. -func (c *OrganizationsLocationsSecurityProfilesDeleteCall) Etag(etag string) *OrganizationsLocationsSecurityProfilesDeleteCall { - c.urlParams_.Set("etag", etag) +// - name: A name of the AuthorizationPolicy to get. Must be in the format +// `projects/{project}/locations/{location}/authorizationPolicies/*`. +func (r *ProjectsLocationsAuthorizationPoliciesService) Get(name string) *ProjectsLocationsAuthorizationPoliciesGetCall { + c := &ProjectsLocationsAuthorizationPoliciesGetCall{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 *OrganizationsLocationsSecurityProfilesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsLocationsSecurityProfilesDeleteCall { +func (c *ProjectsLocationsAuthorizationPoliciesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizationPoliciesGetCall { 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 *ProjectsLocationsAuthorizationPoliciesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthorizationPoliciesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *OrganizationsLocationsSecurityProfilesDeleteCall) Context(ctx context.Context) *OrganizationsLocationsSecurityProfilesDeleteCall { +func (c *ProjectsLocationsAuthorizationPoliciesGetCall) Context(ctx context.Context) *ProjectsLocationsAuthorizationPoliciesGetCall { 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 *OrganizationsLocationsSecurityProfilesDeleteCall) Header() http.Header { +func (c *ProjectsLocationsAuthorizationPoliciesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsSecurityProfilesDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAuthorizationPoliciesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, nil) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } @@ -7004,16 +10112,17 @@ func (c *OrganizationsLocationsSecurityProfilesDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.securityProfiles.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authorizationPolicies.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.organizations.locations.securityProfiles.delete" call. +// Do executes the "networksecurity.projects.locations.authorizationPolicies.get" 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 *OrganizationsLocationsSecurityProfilesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// *AuthorizationPolicy.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 *ProjectsLocationsAuthorizationPoliciesGetCall) Do(opts ...googleapi.CallOption) (*AuthorizationPolicy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7032,7 +10141,7 @@ func (c *OrganizationsLocationsSecurityProfilesDeleteCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &AuthorizationPolicy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7043,34 +10152,52 @@ func (c *OrganizationsLocationsSecurityProfilesDeleteCall) Do(opts ...googleapi. if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.securityProfiles.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authorizationPolicies.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type OrganizationsLocationsSecurityProfilesGetCall struct { +type ProjectsLocationsAuthorizationPoliciesGetIamPolicyCall struct { s *Service - name string + resource string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// Get: Gets details of a single SecurityProfile. +// GetIamPolicy: Gets the access control policy for a resource. Returns an +// empty policy if the resource exists and does not have a policy set. // -// - name: A name of the SecurityProfile to get. Must be in the format -// `projects|organizations/*/locations/{location}/securityProfiles/{security_p -// rofile_id}`. -func (r *OrganizationsLocationsSecurityProfilesService) Get(name string) *OrganizationsLocationsSecurityProfilesGetCall { - c := &OrganizationsLocationsSecurityProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - 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 *ProjectsLocationsAuthorizationPoliciesService) GetIamPolicy(resource string) *ProjectsLocationsAuthorizationPoliciesGetIamPolicyCall { + c := &ProjectsLocationsAuthorizationPoliciesGetIamPolicyCall{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 *ProjectsLocationsAuthorizationPoliciesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsAuthorizationPoliciesGetIamPolicyCall { + 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 *OrganizationsLocationsSecurityProfilesGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsSecurityProfilesGetCall { +func (c *ProjectsLocationsAuthorizationPoliciesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizationPoliciesGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -7078,34 +10205,34 @@ func (c *OrganizationsLocationsSecurityProfilesGetCall) Fields(s ...googleapi.Fi // 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 *OrganizationsLocationsSecurityProfilesGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsSecurityProfilesGetCall { +func (c *ProjectsLocationsAuthorizationPoliciesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthorizationPoliciesGetIamPolicyCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *OrganizationsLocationsSecurityProfilesGetCall) Context(ctx context.Context) *OrganizationsLocationsSecurityProfilesGetCall { +func (c *ProjectsLocationsAuthorizationPoliciesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAuthorizationPoliciesGetIamPolicyCall { 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 *OrganizationsLocationsSecurityProfilesGetCall) Header() http.Header { +func (c *ProjectsLocationsAuthorizationPoliciesGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsSecurityProfilesGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAuthorizationPoliciesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -7113,19 +10240,19 @@ func (c *OrganizationsLocationsSecurityProfilesGetCall) doRequest(alt string) (* } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "resource": c.resource, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.securityProfiles.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authorizationPolicies.getIamPolicy", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.organizations.locations.securityProfiles.get" call. +// Do executes the "networksecurity.projects.locations.authorizationPolicies.getIamPolicy" call. // Any non-2xx status code is an error. Response headers are in either -// *SecurityProfile.ServerResponse.Header or (if a response was returned at +// *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 *OrganizationsLocationsSecurityProfilesGetCall) Do(opts ...googleapi.CallOption) (*SecurityProfile, error) { +func (c *ProjectsLocationsAuthorizationPoliciesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7144,7 +10271,7 @@ func (c *OrganizationsLocationsSecurityProfilesGetCall) Do(opts ...googleapi.Cal if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &SecurityProfile{ + ret := &GoogleIamV1Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7155,11 +10282,11 @@ func (c *OrganizationsLocationsSecurityProfilesGetCall) Do(opts ...googleapi.Cal if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.securityProfiles.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authorizationPolicies.getIamPolicy", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type OrganizationsLocationsSecurityProfilesListCall struct { +type ProjectsLocationsAuthorizationPoliciesListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -7168,29 +10295,29 @@ type OrganizationsLocationsSecurityProfilesListCall struct { header_ http.Header } -// List: Lists SecurityProfiles in a given organization and location. +// List: Lists AuthorizationPolicies in a given project and location. // -// - parent: The project or organization and location from which the -// SecurityProfiles should be listed, specified in the format -// `projects|organizations/*/locations/{location}`. -func (r *OrganizationsLocationsSecurityProfilesService) List(parent string) *OrganizationsLocationsSecurityProfilesListCall { - c := &OrganizationsLocationsSecurityProfilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The project and location from which the AuthorizationPolicies +// should be listed, specified in the format +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsAuthorizationPoliciesService) List(parent string) *ProjectsLocationsAuthorizationPoliciesListCall { + c := &ProjectsLocationsAuthorizationPoliciesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } // PageSize sets the optional parameter "pageSize": Maximum number of -// SecurityProfiles to return per call. -func (c *OrganizationsLocationsSecurityProfilesListCall) PageSize(pageSize int64) *OrganizationsLocationsSecurityProfilesListCall { +// AuthorizationPolicies to return per call. +func (c *ProjectsLocationsAuthorizationPoliciesListCall) PageSize(pageSize int64) *ProjectsLocationsAuthorizationPoliciesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The value returned by the -// last `ListSecurityProfilesResponse` Indicates that this is a continuation of -// a prior `ListSecurityProfiles` call, and that the system should return the -// next page of data. -func (c *OrganizationsLocationsSecurityProfilesListCall) PageToken(pageToken string) *OrganizationsLocationsSecurityProfilesListCall { +// last `ListAuthorizationPoliciesResponse` Indicates that this is a +// continuation of a prior `ListAuthorizationPolicies` call, and that the +// system should return the next page of data. +func (c *ProjectsLocationsAuthorizationPoliciesListCall) PageToken(pageToken string) *ProjectsLocationsAuthorizationPoliciesListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -7198,7 +10325,7 @@ func (c *OrganizationsLocationsSecurityProfilesListCall) PageToken(pageToken str // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *OrganizationsLocationsSecurityProfilesListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsSecurityProfilesListCall { +func (c *ProjectsLocationsAuthorizationPoliciesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizationPoliciesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -7206,34 +10333,34 @@ func (c *OrganizationsLocationsSecurityProfilesListCall) Fields(s ...googleapi.F // 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 *OrganizationsLocationsSecurityProfilesListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsSecurityProfilesListCall { +func (c *ProjectsLocationsAuthorizationPoliciesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthorizationPoliciesListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *OrganizationsLocationsSecurityProfilesListCall) Context(ctx context.Context) *OrganizationsLocationsSecurityProfilesListCall { +func (c *ProjectsLocationsAuthorizationPoliciesListCall) Context(ctx context.Context) *ProjectsLocationsAuthorizationPoliciesListCall { 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 *OrganizationsLocationsSecurityProfilesListCall) Header() http.Header { +func (c *ProjectsLocationsAuthorizationPoliciesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsSecurityProfilesListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAuthorizationPoliciesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/securityProfiles") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/authorizationPolicies") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -7243,17 +10370,17 @@ func (c *OrganizationsLocationsSecurityProfilesListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.securityProfiles.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authorizationPolicies.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.organizations.locations.securityProfiles.list" call. +// Do executes the "networksecurity.projects.locations.authorizationPolicies.list" call. // Any non-2xx status code is an error. Response headers are in either -// *ListSecurityProfilesResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// *ListAuthorizationPoliciesResponse.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 *OrganizationsLocationsSecurityProfilesListCall) Do(opts ...googleapi.CallOption) (*ListSecurityProfilesResponse, error) { +func (c *ProjectsLocationsAuthorizationPoliciesListCall) Do(opts ...googleapi.CallOption) (*ListAuthorizationPoliciesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7272,7 +10399,7 @@ func (c *OrganizationsLocationsSecurityProfilesListCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListSecurityProfilesResponse{ + ret := &ListAuthorizationPoliciesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7283,14 +10410,14 @@ func (c *OrganizationsLocationsSecurityProfilesListCall) Do(opts ...googleapi.Ca if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.securityProfiles.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authorizationPolicies.list", "response", internallog.HTTPResponse(res, b)) 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 *OrganizationsLocationsSecurityProfilesListCall) Pages(ctx context.Context, f func(*ListSecurityProfilesResponse) error) error { +func (c *ProjectsLocationsAuthorizationPoliciesListCall) Pages(ctx context.Context, f func(*ListAuthorizationPoliciesResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -7308,34 +10435,33 @@ func (c *OrganizationsLocationsSecurityProfilesListCall) Pages(ctx context.Conte } } -type OrganizationsLocationsSecurityProfilesPatchCall struct { - s *Service - name string - securityprofile *SecurityProfile - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsAuthorizationPoliciesPatchCall struct { + s *Service + name string + authorizationpolicy *AuthorizationPolicy + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Updates the parameters of a single SecurityProfile. +// Patch: Updates the parameters of a single AuthorizationPolicy. // -// - name: Immutable. Identifier. Name of the SecurityProfile resource. It -// matches pattern -// `projects|organizations/*/locations/{location}/securityProfiles/{security_p -// rofile}`. -func (r *OrganizationsLocationsSecurityProfilesService) Patch(name string, securityprofile *SecurityProfile) *OrganizationsLocationsSecurityProfilesPatchCall { - c := &OrganizationsLocationsSecurityProfilesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Name of the AuthorizationPolicy resource. It matches pattern +// `projects/{project}/locations/{location}/authorizationPolicies/`. +func (r *ProjectsLocationsAuthorizationPoliciesService) Patch(name string, authorizationpolicy *AuthorizationPolicy) *ProjectsLocationsAuthorizationPoliciesPatchCall { + c := &ProjectsLocationsAuthorizationPoliciesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.securityprofile = securityprofile + c.authorizationpolicy = authorizationpolicy return c } -// UpdateMask sets the optional parameter "updateMask": Required. Field mask is -// used to specify the fields to be overwritten in the SecurityProfile resource -// by the update. The fields specified in the update_mask are relative to the +// UpdateMask sets the optional parameter "updateMask": Field mask is used to +// specify the fields to be overwritten in the AuthorizationPolicy resource by +// the update. The fields specified in the update_mask are relative to the // resource, not the full request. A field will be overwritten if it is in the -// mask. -func (c *OrganizationsLocationsSecurityProfilesPatchCall) UpdateMask(updateMask string) *OrganizationsLocationsSecurityProfilesPatchCall { +// mask. If the user does not provide a mask then all fields will be +// overwritten. +func (c *ProjectsLocationsAuthorizationPoliciesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAuthorizationPoliciesPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } @@ -7343,29 +10469,29 @@ func (c *OrganizationsLocationsSecurityProfilesPatchCall) UpdateMask(updateMask // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *OrganizationsLocationsSecurityProfilesPatchCall) Fields(s ...googleapi.Field) *OrganizationsLocationsSecurityProfilesPatchCall { +func (c *ProjectsLocationsAuthorizationPoliciesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizationPoliciesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *OrganizationsLocationsSecurityProfilesPatchCall) Context(ctx context.Context) *OrganizationsLocationsSecurityProfilesPatchCall { +func (c *ProjectsLocationsAuthorizationPoliciesPatchCall) Context(ctx context.Context) *ProjectsLocationsAuthorizationPoliciesPatchCall { 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 *OrganizationsLocationsSecurityProfilesPatchCall) Header() http.Header { +func (c *ProjectsLocationsAuthorizationPoliciesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsSecurityProfilesPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAuthorizationPoliciesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.securityprofile) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.authorizationpolicy) if err != nil { return nil, err } @@ -7381,16 +10507,16 @@ func (c *OrganizationsLocationsSecurityProfilesPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.securityProfiles.patch", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authorizationPolicies.patch", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.organizations.locations.securityProfiles.patch" call. +// Do executes the "networksecurity.projects.locations.authorizationPolicies.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 *OrganizationsLocationsSecurityProfilesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsAuthorizationPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7420,86 +10546,85 @@ func (c *OrganizationsLocationsSecurityProfilesPatchCall) Do(opts ...googleapi.C if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.organizations.locations.securityProfiles.patch", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authorizationPolicies.patch", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsAuthorizationPoliciesSetIamPolicyCall struct { + s *Service + resource string + googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets information about a location. +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, +// and `PERMISSION_DENIED` errors. // -// - name: Resource name for the location. -func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { - c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - 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 *ProjectsLocationsAuthorizationPoliciesService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsAuthorizationPoliciesSetIamPolicyCall { + c := &ProjectsLocationsAuthorizationPoliciesSetIamPolicyCall{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 *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { - 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 *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { - c.ifNoneMatch_ = entityTag +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAuthorizationPoliciesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizationPoliciesSetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { +func (c *ProjectsLocationsAuthorizationPoliciesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAuthorizationPoliciesSetIamPolicyCall { 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 *ProjectsLocationsGetCall) Header() http.Header { +func (c *ProjectsLocationsAuthorizationPoliciesSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) +func (c *ProjectsLocationsAuthorizationPoliciesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(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/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + 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, + "resource": c.resource, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authorizationPolicies.setIamPolicy", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.get" call. +// Do executes the "networksecurity.projects.locations.authorizationPolicies.setIamPolicy" call. // Any non-2xx status code is an error. Response headers are in either -// *Location.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 *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) { +// *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 *ProjectsLocationsAuthorizationPoliciesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7518,7 +10643,7 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Location{ + ret := &GoogleIamV1Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7529,119 +10654,88 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authorizationPolicies.setIamPolicy", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsListCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsAuthorizationPoliciesTestIamPermissionsCall struct { + s *Service + resource string + googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists information about the supported locations for this service. +// 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. // -// - name: The resource that owns the locations collection, if applicable. -func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { - c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// ExtraLocationTypes sets the optional parameter "extraLocationTypes": A list -// of extra location types that should be used as conditions for controlling -// the visibility of the locations. -func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall { - c.urlParams_.SetMulti("extraLocationTypes", append([]string{}, extraLocationTypes...)) - return c -} - -// Filter sets the optional parameter "filter": A filter to narrow down results -// to a preferred subset. The filtering language accepts strings like -// "displayName=tokyo", and is documented in more detail in AIP-160 -// (https://google.aip.dev/160). -func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number of -// results to return. If not set, the service selects a default. -func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": A page token received -// from the `next_page_token` field in the response. Send that page token to -// receive the subsequent page. -func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { - c.urlParams_.Set("pageToken", pageToken) +// - 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 *ProjectsLocationsAuthorizationPoliciesService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsAuthorizationPoliciesTestIamPermissionsCall { + c := &ProjectsLocationsAuthorizationPoliciesTestIamPermissionsCall{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 *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { +func (c *ProjectsLocationsAuthorizationPoliciesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizationPoliciesTestIamPermissionsCall { 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 *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { +func (c *ProjectsLocationsAuthorizationPoliciesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsAuthorizationPoliciesTestIamPermissionsCall { 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 *ProjectsLocationsListCall) Header() http.Header { +func (c *ProjectsLocationsAuthorizationPoliciesTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) +func (c *ProjectsLocationsAuthorizationPoliciesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(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/{+name}/locations") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + 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, + "resource": c.resource, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authorizationPolicies.testIamPermissions", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.list" call. +// Do executes the "networksecurity.projects.locations.authorizationPolicies.testIamPermissions" call. // Any non-2xx status code is an error. Response headers are in either -// *ListLocationsResponse.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 *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) { +// *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 *ProjectsLocationsAuthorizationPoliciesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7660,7 +10754,7 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocat if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListLocationsResponse{ + ret := &GoogleIamV1TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7671,83 +10765,85 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocat if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authorizationPolicies.testIamPermissions", "response", internallog.HTTPResponse(res, b)) 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 *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) 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 ProjectsLocationsAuthzPoliciesCreateCall struct { + s *Service + parent string + authzpolicy *AuthzPolicy + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -type ProjectsLocationsAddressGroupsAddItemsCall struct { - s *Service - addressGroup string - addaddressgroupitemsrequest *AddAddressGroupItemsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// Create: Creates a new AuthzPolicy in a given project and location. +// +// - parent: The parent resource of the `AuthzPolicy` resource. Must be in the +// format `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsAuthzPoliciesService) Create(parent string, authzpolicy *AuthzPolicy) *ProjectsLocationsAuthzPoliciesCreateCall { + c := &ProjectsLocationsAuthzPoliciesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.authzpolicy = authzpolicy + return c } -// AddItems: Adds items to an address group. -// -// - addressGroup: A name of the AddressGroup to add items to. Must be in the -// format `projects|organization/*/locations/{location}/addressGroups/*`. -func (r *ProjectsLocationsAddressGroupsService) AddItems(addressGroup string, addaddressgroupitemsrequest *AddAddressGroupItemsRequest) *ProjectsLocationsAddressGroupsAddItemsCall { - c := &ProjectsLocationsAddressGroupsAddItemsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.addressGroup = addressGroup - c.addaddressgroupitemsrequest = addaddressgroupitemsrequest +// AuthzPolicyId sets the optional parameter "authzPolicyId": Required. +// User-provided ID of the `AuthzPolicy` resource to be created. +func (c *ProjectsLocationsAuthzPoliciesCreateCall) AuthzPolicyId(authzPolicyId string) *ProjectsLocationsAuthzPoliciesCreateCall { + c.urlParams_.Set("authzPolicyId", authzPolicyId) + 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 *ProjectsLocationsAuthzPoliciesCreateCall) RequestId(requestId string) *ProjectsLocationsAuthzPoliciesCreateCall { + 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 *ProjectsLocationsAddressGroupsAddItemsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAddressGroupsAddItemsCall { +func (c *ProjectsLocationsAuthzPoliciesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthzPoliciesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAddressGroupsAddItemsCall) Context(ctx context.Context) *ProjectsLocationsAddressGroupsAddItemsCall { +func (c *ProjectsLocationsAuthzPoliciesCreateCall) Context(ctx context.Context) *ProjectsLocationsAuthzPoliciesCreateCall { 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 *ProjectsLocationsAddressGroupsAddItemsCall) Header() http.Header { +func (c *ProjectsLocationsAuthzPoliciesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAddressGroupsAddItemsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAuthzPoliciesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.addaddressgroupitemsrequest) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.authzpolicy) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+addressGroup}:addItems") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/authzPolicies") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -7755,18 +10851,18 @@ func (c *ProjectsLocationsAddressGroupsAddItemsCall) doRequest(alt string) (*htt } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "addressGroup": c.addressGroup, + "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.addressGroups.addItems", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authzPolicies.create", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.addressGroups.addItems" call. +// Do executes the "networksecurity.projects.locations.authzPolicies.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 *ProjectsLocationsAddressGroupsAddItemsCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsAuthzPoliciesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7796,81 +10892,92 @@ func (c *ProjectsLocationsAddressGroupsAddItemsCall) Do(opts ...googleapi.CallOp if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.addressGroups.addItems", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authzPolicies.create", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsAddressGroupsCloneItemsCall struct { - s *Service - addressGroup string - cloneaddressgroupitemsrequest *CloneAddressGroupItemsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsAuthzPoliciesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// CloneItems: Clones items from one address group to another. +// Delete: Deletes a single AuthzPolicy. // -// - addressGroup: A name of the AddressGroup to clone items to. Must be in the -// format `projects|organization/*/locations/{location}/addressGroups/*`. -func (r *ProjectsLocationsAddressGroupsService) CloneItems(addressGroup string, cloneaddressgroupitemsrequest *CloneAddressGroupItemsRequest) *ProjectsLocationsAddressGroupsCloneItemsCall { - c := &ProjectsLocationsAddressGroupsCloneItemsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.addressGroup = addressGroup - c.cloneaddressgroupitemsrequest = cloneaddressgroupitemsrequest +// - name: The name of the `AuthzPolicy` resource to delete. Must be in the +// format +// `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`. +func (r *ProjectsLocationsAuthzPoliciesService) Delete(name string) *ProjectsLocationsAuthzPoliciesDeleteCall { + c := &ProjectsLocationsAuthzPoliciesDeleteCall{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 *ProjectsLocationsAuthzPoliciesDeleteCall) RequestId(requestId string) *ProjectsLocationsAuthzPoliciesDeleteCall { + 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 *ProjectsLocationsAddressGroupsCloneItemsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAddressGroupsCloneItemsCall { +func (c *ProjectsLocationsAuthzPoliciesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthzPoliciesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAddressGroupsCloneItemsCall) Context(ctx context.Context) *ProjectsLocationsAddressGroupsCloneItemsCall { +func (c *ProjectsLocationsAuthzPoliciesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAuthzPoliciesDeleteCall { 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 *ProjectsLocationsAddressGroupsCloneItemsCall) Header() http.Header { +func (c *ProjectsLocationsAuthzPoliciesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAddressGroupsCloneItemsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.cloneaddressgroupitemsrequest) - if err != nil { - return nil, err - } +func (c *ProjectsLocationsAuthzPoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+addressGroup}:cloneItems") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "addressGroup": c.addressGroup, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.addressGroups.cloneItems", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authzPolicies.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.addressGroups.cloneItems" call. +// Do executes the "networksecurity.projects.locations.authzPolicies.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 *ProjectsLocationsAddressGroupsCloneItemsCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsAuthzPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7900,106 +11007,87 @@ func (c *ProjectsLocationsAddressGroupsCloneItemsCall) Do(opts ...googleapi.Call if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.addressGroups.cloneItems", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authzPolicies.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsAddressGroupsCreateCall struct { +type ProjectsLocationsAuthzPoliciesGetCall struct { s *Service - parent string - addressgroup *AddressGroup + name string urlParams_ gensupport.URLParams + ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// Create: Creates a new address group in a given project and location. +// Get: Gets details of a single AuthzPolicy. // -// - parent: The parent resource of the AddressGroup. Must be in the format -// `projects/*/locations/{location}`. -func (r *ProjectsLocationsAddressGroupsService) Create(parent string, addressgroup *AddressGroup) *ProjectsLocationsAddressGroupsCreateCall { - c := &ProjectsLocationsAddressGroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.addressgroup = addressgroup - return c -} - -// AddressGroupId sets the optional parameter "addressGroupId": Required. Short -// name of the AddressGroup resource to be created. This value should be 1-63 -// characters long, containing only letters, numbers, hyphens, and underscores, -// and should not start with a number. E.g. "authz_policy". -func (c *ProjectsLocationsAddressGroupsCreateCall) AddressGroupId(addressGroupId string) *ProjectsLocationsAddressGroupsCreateCall { - c.urlParams_.Set("addressGroupId", addressGroupId) - 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 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). -func (c *ProjectsLocationsAddressGroupsCreateCall) RequestId(requestId string) *ProjectsLocationsAddressGroupsCreateCall { - c.urlParams_.Set("requestId", requestId) +// - name: A name of the `AuthzPolicy` resource to get. Must be in the format +// `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`. +func (r *ProjectsLocationsAuthzPoliciesService) Get(name string) *ProjectsLocationsAuthzPoliciesGetCall { + c := &ProjectsLocationsAuthzPoliciesGetCall{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 *ProjectsLocationsAddressGroupsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAddressGroupsCreateCall { +func (c *ProjectsLocationsAuthzPoliciesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthzPoliciesGetCall { 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 *ProjectsLocationsAuthzPoliciesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthzPoliciesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAddressGroupsCreateCall) Context(ctx context.Context) *ProjectsLocationsAddressGroupsCreateCall { +func (c *ProjectsLocationsAuthzPoliciesGetCall) Context(ctx context.Context) *ProjectsLocationsAuthzPoliciesGetCall { 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 *ProjectsLocationsAddressGroupsCreateCall) Header() http.Header { +func (c *ProjectsLocationsAuthzPoliciesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAddressGroupsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.addressgroup) - if err != nil { - return nil, err +func (c *ProjectsLocationsAuthzPoliciesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/addressGroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.addressGroups.create", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authzPolicies.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.addressGroups.create" call. +// Do executes the "networksecurity.projects.locations.authzPolicies.get" 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 +// *AuthzPolicy.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 *ProjectsLocationsAddressGroupsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsAuthzPoliciesGetCall) Do(opts ...googleapi.CallOption) (*AuthzPolicy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8018,7 +11106,7 @@ func (c *ProjectsLocationsAddressGroupsCreateCall) Do(opts ...googleapi.CallOpti if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &AuthzPolicy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8029,91 +11117,107 @@ func (c *ProjectsLocationsAddressGroupsCreateCall) Do(opts ...googleapi.CallOpti if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.addressGroups.create", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authzPolicies.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsAddressGroupsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsAuthzPoliciesGetIamPolicyCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a single address group. +// GetIamPolicy: Gets the access control policy for a resource. Returns an +// empty policy if the resource exists and does not have a policy set. // -// - name: A name of the AddressGroup to delete. Must be in the format -// `projects/*/locations/{location}/addressGroups/*`. -func (r *ProjectsLocationsAddressGroupsService) Delete(name string) *ProjectsLocationsAddressGroupsDeleteCall { - c := &ProjectsLocationsAddressGroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - 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 *ProjectsLocationsAuthzPoliciesService) GetIamPolicy(resource string) *ProjectsLocationsAuthzPoliciesGetIamPolicyCall { + c := &ProjectsLocationsAuthzPoliciesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource 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 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). -func (c *ProjectsLocationsAddressGroupsDeleteCall) RequestId(requestId string) *ProjectsLocationsAddressGroupsDeleteCall { - c.urlParams_.Set("requestId", requestId) +// 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 *ProjectsLocationsAuthzPoliciesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsAuthzPoliciesGetIamPolicyCall { + 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 *ProjectsLocationsAddressGroupsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAddressGroupsDeleteCall { +func (c *ProjectsLocationsAuthzPoliciesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthzPoliciesGetIamPolicyCall { 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 *ProjectsLocationsAuthzPoliciesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthzPoliciesGetIamPolicyCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAddressGroupsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAddressGroupsDeleteCall { +func (c *ProjectsLocationsAuthzPoliciesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAuthzPoliciesGetIamPolicyCall { 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 *ProjectsLocationsAddressGroupsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsAuthzPoliciesGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAddressGroupsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAuthzPoliciesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, nil) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "resource": c.resource, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.addressGroups.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authzPolicies.getIamPolicy", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.addressGroups.delete" call. +// Do executes the "networksecurity.projects.locations.authzPolicies.getIamPolicy" 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 *ProjectsLocationsAddressGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// *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 *ProjectsLocationsAuthzPoliciesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8132,7 +11236,7 @@ func (c *ProjectsLocationsAddressGroupsDeleteCall) Do(opts ...googleapi.CallOpti if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &GoogleIamV1Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8143,33 +11247,62 @@ func (c *ProjectsLocationsAddressGroupsDeleteCall) Do(opts ...googleapi.CallOpti if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.addressGroups.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authzPolicies.getIamPolicy", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsAddressGroupsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsAuthzPoliciesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists AuthzPolicies in a given project and location. +// +// - parent: The project and location from which the `AuthzPolicy` resources +// are listed, specified in the following format: +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsAuthzPoliciesService) List(parent string) *ProjectsLocationsAuthzPoliciesListCall { + c := &ProjectsLocationsAuthzPoliciesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filtering results. +func (c *ProjectsLocationsAuthzPoliciesListCall) Filter(filter string) *ProjectsLocationsAuthzPoliciesListCall { + c.urlParams_.Set("filter", filter) + return c } -// Get: Gets details of a single address group. -// -// - name: A name of the AddressGroup to get. Must be in the format -// `projects/*/locations/{location}/addressGroups/*`. -func (r *ProjectsLocationsAddressGroupsService) Get(name string) *ProjectsLocationsAddressGroupsGetCall { - c := &ProjectsLocationsAddressGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// OrderBy sets the optional parameter "orderBy": Hint for how to order the +// results. +func (c *ProjectsLocationsAuthzPoliciesListCall) OrderBy(orderBy string) *ProjectsLocationsAuthzPoliciesListCall { + 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 *ProjectsLocationsAuthzPoliciesListCall) PageSize(pageSize int64) *ProjectsLocationsAuthzPoliciesListCall { + 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 *ProjectsLocationsAuthzPoliciesListCall) PageToken(pageToken string) *ProjectsLocationsAuthzPoliciesListCall { + 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 *ProjectsLocationsAddressGroupsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAddressGroupsGetCall { +func (c *ProjectsLocationsAuthzPoliciesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthzPoliciesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -8177,34 +11310,34 @@ func (c *ProjectsLocationsAddressGroupsGetCall) Fields(s ...googleapi.Field) *Pr // 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 *ProjectsLocationsAddressGroupsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAddressGroupsGetCall { +func (c *ProjectsLocationsAuthzPoliciesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthzPoliciesListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAddressGroupsGetCall) Context(ctx context.Context) *ProjectsLocationsAddressGroupsGetCall { +func (c *ProjectsLocationsAuthzPoliciesListCall) Context(ctx context.Context) *ProjectsLocationsAuthzPoliciesListCall { 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 *ProjectsLocationsAddressGroupsGetCall) Header() http.Header { +func (c *ProjectsLocationsAuthzPoliciesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAddressGroupsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAuthzPoliciesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/authzPolicies") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -8212,18 +11345,19 @@ func (c *ProjectsLocationsAddressGroupsGetCall) doRequest(alt string) (*http.Res } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.addressGroups.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authzPolicies.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.addressGroups.get" call. +// Do executes the "networksecurity.projects.locations.authzPolicies.list" call. // Any non-2xx status code is an error. Response headers are in either -// *AddressGroup.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 *ProjectsLocationsAddressGroupsGetCall) Do(opts ...googleapi.CallOption) (*AddressGroup, error) { +// *ListAuthzPoliciesResponse.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 *ProjectsLocationsAuthzPoliciesListCall) Do(opts ...googleapi.CallOption) (*ListAuthzPoliciesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8242,7 +11376,7 @@ func (c *ProjectsLocationsAddressGroupsGetCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &AddressGroup{ + ret := &ListAuthzPoliciesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8253,107 +11387,129 @@ func (c *ProjectsLocationsAddressGroupsGetCall) Do(opts ...googleapi.CallOption) if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.addressGroups.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authzPolicies.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsAddressGroupsGetIamPolicyCall struct { - s *Service - resource string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +// 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 *ProjectsLocationsAuthzPoliciesListCall) Pages(ctx context.Context, f func(*ListAuthzPoliciesResponse) 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) + } } -// GetIamPolicy: Gets the access control policy for a resource. Returns an -// empty policy if the resource exists and does not have a policy set. +type ProjectsLocationsAuthzPoliciesPatchCall struct { + s *Service + name string + authzpolicy *AuthzPolicy + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates the parameters of a single AuthzPolicy. // -// - 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 *ProjectsLocationsAddressGroupsService) GetIamPolicy(resource string) *ProjectsLocationsAddressGroupsGetIamPolicyCall { - c := &ProjectsLocationsAddressGroupsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource +// - name: Identifier. Name of the `AuthzPolicy` resource in the following +// format: +// `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`. +func (r *ProjectsLocationsAuthzPoliciesService) Patch(name string, authzpolicy *AuthzPolicy) *ProjectsLocationsAuthzPoliciesPatchCall { + c := &ProjectsLocationsAuthzPoliciesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.authzpolicy = authzpolicy 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 *ProjectsLocationsAddressGroupsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsAddressGroupsGetIamPolicyCall { - c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) +// 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 *ProjectsLocationsAuthzPoliciesPatchCall) RequestId(requestId string) *ProjectsLocationsAuthzPoliciesPatchCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. Used to +// specify the fields to be overwritten in the `AuthzPolicy` 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 *ProjectsLocationsAuthzPoliciesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAuthzPoliciesPatchCall { + 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 *ProjectsLocationsAddressGroupsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAddressGroupsGetIamPolicyCall { +func (c *ProjectsLocationsAuthzPoliciesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthzPoliciesPatchCall { 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 *ProjectsLocationsAddressGroupsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsAddressGroupsGetIamPolicyCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAddressGroupsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAddressGroupsGetIamPolicyCall { +func (c *ProjectsLocationsAuthzPoliciesPatchCall) Context(ctx context.Context) *ProjectsLocationsAuthzPoliciesPatchCall { 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 *ProjectsLocationsAddressGroupsGetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsAuthzPoliciesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAddressGroupsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) +func (c *ProjectsLocationsAuthzPoliciesPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.authzpolicy) + if err != nil { + return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.addressGroups.getIamPolicy", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authzPolicies.patch", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.addressGroups.getIamPolicy" call. +// Do executes the "networksecurity.projects.locations.authzPolicies.patch" 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 *ProjectsLocationsAddressGroupsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +// *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 *ProjectsLocationsAuthzPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8372,7 +11528,7 @@ func (c *ProjectsLocationsAddressGroupsGetIamPolicyCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1Policy{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8383,111 +11539,85 @@ func (c *ProjectsLocationsAddressGroupsGetIamPolicyCall) Do(opts ...googleapi.Ca if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.addressGroups.getIamPolicy", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authzPolicies.patch", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsAddressGroupsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsAuthzPoliciesSetIamPolicyCall struct { + s *Service + resource string + googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists address groups in a given project and location. +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, +// and `PERMISSION_DENIED` errors. // -// - parent: The project and location from which the AddressGroups should be -// listed, specified in the format `projects/*/locations/{location}`. -func (r *ProjectsLocationsAddressGroupsService) List(parent string) *ProjectsLocationsAddressGroupsListCall { - c := &ProjectsLocationsAddressGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// PageSize sets the optional parameter "pageSize": Maximum number of -// AddressGroups to return per call. -func (c *ProjectsLocationsAddressGroupsListCall) PageSize(pageSize int64) *ProjectsLocationsAddressGroupsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The value returned by the -// last `ListAddressGroupsResponse` Indicates that this is a continuation of a -// prior `ListAddressGroups` call, and that the system should return the next -// page of data. -func (c *ProjectsLocationsAddressGroupsListCall) PageToken(pageToken string) *ProjectsLocationsAddressGroupsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": If -// true, allow partial responses for multi-regional Aggregated List requests. -func (c *ProjectsLocationsAddressGroupsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsLocationsAddressGroupsListCall { - c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) +// - 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 *ProjectsLocationsAuthzPoliciesService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsAuthzPoliciesSetIamPolicyCall { + c := &ProjectsLocationsAuthzPoliciesSetIamPolicyCall{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 *ProjectsLocationsAddressGroupsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAddressGroupsListCall { +func (c *ProjectsLocationsAuthzPoliciesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthzPoliciesSetIamPolicyCall { 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 *ProjectsLocationsAddressGroupsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAddressGroupsListCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAddressGroupsListCall) Context(ctx context.Context) *ProjectsLocationsAddressGroupsListCall { +func (c *ProjectsLocationsAuthzPoliciesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAuthzPoliciesSetIamPolicyCall { 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 *ProjectsLocationsAddressGroupsListCall) Header() http.Header { +func (c *ProjectsLocationsAuthzPoliciesSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAddressGroupsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) +func (c *ProjectsLocationsAuthzPoliciesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(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/{+parent}/addressGroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + 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, + "resource": c.resource, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.addressGroups.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authzPolicies.setIamPolicy", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.addressGroups.list" call. +// Do executes the "networksecurity.projects.locations.authzPolicies.setIamPolicy" call. // Any non-2xx status code is an error. Response headers are in either -// *ListAddressGroupsResponse.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 *ProjectsLocationsAddressGroupsListCall) Do(opts ...googleapi.CallOption) (*ListAddressGroupsResponse, error) { +// *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 *ProjectsLocationsAuthzPoliciesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8506,7 +11636,7 @@ func (c *ProjectsLocationsAddressGroupsListCall) Do(opts ...googleapi.CallOption if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListAddressGroupsResponse{ + ret := &GoogleIamV1Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8517,126 +11647,88 @@ func (c *ProjectsLocationsAddressGroupsListCall) Do(opts ...googleapi.CallOption if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.addressGroups.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authzPolicies.setIamPolicy", "response", internallog.HTTPResponse(res, b)) 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 *ProjectsLocationsAddressGroupsListCall) Pages(ctx context.Context, f func(*ListAddressGroupsResponse) 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 ProjectsLocationsAddressGroupsListReferencesCall struct { - s *Service - addressGroup string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsAuthzPoliciesTestIamPermissionsCall struct { + s *Service + resource string + googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// ListReferences: Lists references of an address group. +// 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. // -// - addressGroup: A name of the AddressGroup to clone items to. Must be in the -// format `projects|organization/*/locations/{location}/addressGroups/*`. -func (r *ProjectsLocationsAddressGroupsService) ListReferences(addressGroup string) *ProjectsLocationsAddressGroupsListReferencesCall { - c := &ProjectsLocationsAddressGroupsListReferencesCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.addressGroup = addressGroup - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number of -// references to return. If unspecified, server will pick an appropriate -// default. Server may return fewer items than requested. A caller should only -// rely on response's next_page_token to determine if there are more -// AddressGroupUsers left to be queried. -func (c *ProjectsLocationsAddressGroupsListReferencesCall) PageSize(pageSize int64) *ProjectsLocationsAddressGroupsListReferencesCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The next_page_token value -// returned from a previous List request, if any. -func (c *ProjectsLocationsAddressGroupsListReferencesCall) PageToken(pageToken string) *ProjectsLocationsAddressGroupsListReferencesCall { - c.urlParams_.Set("pageToken", pageToken) +// - 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 *ProjectsLocationsAuthzPoliciesService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsAuthzPoliciesTestIamPermissionsCall { + c := &ProjectsLocationsAuthzPoliciesTestIamPermissionsCall{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 *ProjectsLocationsAddressGroupsListReferencesCall) Fields(s ...googleapi.Field) *ProjectsLocationsAddressGroupsListReferencesCall { +func (c *ProjectsLocationsAuthzPoliciesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthzPoliciesTestIamPermissionsCall { 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 *ProjectsLocationsAddressGroupsListReferencesCall) IfNoneMatch(entityTag string) *ProjectsLocationsAddressGroupsListReferencesCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAddressGroupsListReferencesCall) Context(ctx context.Context) *ProjectsLocationsAddressGroupsListReferencesCall { +func (c *ProjectsLocationsAuthzPoliciesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsAuthzPoliciesTestIamPermissionsCall { 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 *ProjectsLocationsAddressGroupsListReferencesCall) Header() http.Header { +func (c *ProjectsLocationsAuthzPoliciesTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAddressGroupsListReferencesCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) +func (c *ProjectsLocationsAuthzPoliciesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(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/{+addressGroup}:listReferences") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "addressGroup": c.addressGroup, + "resource": c.resource, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.addressGroups.listReferences", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authzPolicies.testIamPermissions", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.addressGroups.listReferences" call. +// Do executes the "networksecurity.projects.locations.authzPolicies.testIamPermissions" call. // Any non-2xx status code is an error. Response headers are in either -// *ListAddressGroupReferencesResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use +// *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 *ProjectsLocationsAddressGroupsListReferencesCall) Do(opts ...googleapi.CallOption) (*ListAddressGroupReferencesResponse, error) { +func (c *ProjectsLocationsAuthzPoliciesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8655,7 +11747,7 @@ func (c *ProjectsLocationsAddressGroupsListReferencesCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListAddressGroupReferencesResponse{ + ret := &GoogleIamV1TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8666,129 +11758,90 @@ func (c *ProjectsLocationsAddressGroupsListReferencesCall) Do(opts ...googleapi. if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.addressGroups.listReferences", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authzPolicies.testIamPermissions", "response", internallog.HTTPResponse(res, b)) 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 *ProjectsLocationsAddressGroupsListReferencesCall) Pages(ctx context.Context, f func(*ListAddressGroupReferencesResponse) 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 ProjectsLocationsAddressGroupsPatchCall struct { - s *Service - name string - addressgroup *AddressGroup - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsClientTlsPoliciesCreateCall struct { + s *Service + parent string + clienttlspolicy *ClientTlsPolicy + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Updates the parameters of a single address group. +// Create: Creates a new ClientTlsPolicy in a given project and location. // -// - name: Name of the AddressGroup resource. It matches pattern -// `projects/*/locations/{location}/addressGroups/`. -func (r *ProjectsLocationsAddressGroupsService) Patch(name string, addressgroup *AddressGroup) *ProjectsLocationsAddressGroupsPatchCall { - c := &ProjectsLocationsAddressGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.addressgroup = addressgroup - 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 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). -func (c *ProjectsLocationsAddressGroupsPatchCall) RequestId(requestId string) *ProjectsLocationsAddressGroupsPatchCall { - c.urlParams_.Set("requestId", requestId) +// - parent: The parent resource of the ClientTlsPolicy. Must be in the format +// `projects/*/locations/{location}`. +func (r *ProjectsLocationsClientTlsPoliciesService) Create(parent string, clienttlspolicy *ClientTlsPolicy) *ProjectsLocationsClientTlsPoliciesCreateCall { + c := &ProjectsLocationsClientTlsPoliciesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.clienttlspolicy = clienttlspolicy return c } -// UpdateMask sets the optional parameter "updateMask": Field mask is used to -// specify the fields to be overwritten in the AddressGroup resource by the -// update. The fields specified in the update_mask are relative to the -// resource, not the full request. A field will be overwritten if it is in the -// mask. If the user does not provide a mask then all fields will be -// overwritten. -func (c *ProjectsLocationsAddressGroupsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAddressGroupsPatchCall { - c.urlParams_.Set("updateMask", updateMask) +// ClientTlsPolicyId sets the optional parameter "clientTlsPolicyId": Required. +// Short name of the ClientTlsPolicy resource to be created. This value should +// be 1-63 characters long, containing only letters, numbers, hyphens, and +// underscores, and should not start with a number. E.g. "client_mtls_policy". +func (c *ProjectsLocationsClientTlsPoliciesCreateCall) ClientTlsPolicyId(clientTlsPolicyId string) *ProjectsLocationsClientTlsPoliciesCreateCall { + c.urlParams_.Set("clientTlsPolicyId", clientTlsPolicyId) 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 *ProjectsLocationsAddressGroupsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAddressGroupsPatchCall { +func (c *ProjectsLocationsClientTlsPoliciesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientTlsPoliciesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAddressGroupsPatchCall) Context(ctx context.Context) *ProjectsLocationsAddressGroupsPatchCall { +func (c *ProjectsLocationsClientTlsPoliciesCreateCall) Context(ctx context.Context) *ProjectsLocationsClientTlsPoliciesCreateCall { 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 *ProjectsLocationsAddressGroupsPatchCall) Header() http.Header { +func (c *ProjectsLocationsClientTlsPoliciesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAddressGroupsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsClientTlsPoliciesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.addressgroup) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.clienttlspolicy) 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 := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/clientTlsPolicies") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + 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, + "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.addressGroups.patch", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.clientTlsPolicies.create", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.addressGroups.patch" call. +// Do executes the "networksecurity.projects.locations.clientTlsPolicies.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 *ProjectsLocationsAddressGroupsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsClientTlsPoliciesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8818,81 +11871,75 @@ func (c *ProjectsLocationsAddressGroupsPatchCall) Do(opts ...googleapi.CallOptio if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.addressGroups.patch", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.clientTlsPolicies.create", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsAddressGroupsRemoveItemsCall struct { - s *Service - addressGroup string - removeaddressgroupitemsrequest *RemoveAddressGroupItemsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsClientTlsPoliciesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// RemoveItems: Removes items from an address group. +// Delete: Deletes a single ClientTlsPolicy. // -// - addressGroup: A name of the AddressGroup to remove items from. Must be in -// the format `projects|organization/*/locations/{location}/addressGroups/*`. -func (r *ProjectsLocationsAddressGroupsService) RemoveItems(addressGroup string, removeaddressgroupitemsrequest *RemoveAddressGroupItemsRequest) *ProjectsLocationsAddressGroupsRemoveItemsCall { - c := &ProjectsLocationsAddressGroupsRemoveItemsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.addressGroup = addressGroup - c.removeaddressgroupitemsrequest = removeaddressgroupitemsrequest +// - name: A name of the ClientTlsPolicy to delete. Must be in the format +// `projects/*/locations/{location}/clientTlsPolicies/*`. +func (r *ProjectsLocationsClientTlsPoliciesService) Delete(name string) *ProjectsLocationsClientTlsPoliciesDeleteCall { + c := &ProjectsLocationsClientTlsPoliciesDeleteCall{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 *ProjectsLocationsAddressGroupsRemoveItemsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAddressGroupsRemoveItemsCall { +func (c *ProjectsLocationsClientTlsPoliciesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientTlsPoliciesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAddressGroupsRemoveItemsCall) Context(ctx context.Context) *ProjectsLocationsAddressGroupsRemoveItemsCall { +func (c *ProjectsLocationsClientTlsPoliciesDeleteCall) Context(ctx context.Context) *ProjectsLocationsClientTlsPoliciesDeleteCall { 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 *ProjectsLocationsAddressGroupsRemoveItemsCall) Header() http.Header { +func (c *ProjectsLocationsClientTlsPoliciesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAddressGroupsRemoveItemsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.removeaddressgroupitemsrequest) - if err != nil { - return nil, err - } +func (c *ProjectsLocationsClientTlsPoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+addressGroup}:removeItems") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "addressGroup": c.addressGroup, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.addressGroups.removeItems", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.clientTlsPolicies.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.addressGroups.removeItems" call. +// Do executes the "networksecurity.projects.locations.clientTlsPolicies.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 *ProjectsLocationsAddressGroupsRemoveItemsCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsClientTlsPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8922,85 +11969,88 @@ func (c *ProjectsLocationsAddressGroupsRemoveItemsCall) Do(opts ...googleapi.Cal if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.addressGroups.removeItems", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.clientTlsPolicies.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsAddressGroupsSetIamPolicyCall struct { - s *Service - resource string - googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsClientTlsPoliciesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + 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. +// Get: Gets details of a single ClientTlsPolicy. // -// - 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 *ProjectsLocationsAddressGroupsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsAddressGroupsSetIamPolicyCall { - c := &ProjectsLocationsAddressGroupsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest +// - name: A name of the ClientTlsPolicy to get. Must be in the format +// `projects/*/locations/{location}/clientTlsPolicies/*`. +func (r *ProjectsLocationsClientTlsPoliciesService) Get(name string) *ProjectsLocationsClientTlsPoliciesGetCall { + c := &ProjectsLocationsClientTlsPoliciesGetCall{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 *ProjectsLocationsAddressGroupsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAddressGroupsSetIamPolicyCall { +func (c *ProjectsLocationsClientTlsPoliciesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientTlsPoliciesGetCall { 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 *ProjectsLocationsClientTlsPoliciesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsClientTlsPoliciesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAddressGroupsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAddressGroupsSetIamPolicyCall { +func (c *ProjectsLocationsClientTlsPoliciesGetCall) Context(ctx context.Context) *ProjectsLocationsClientTlsPoliciesGetCall { 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 *ProjectsLocationsAddressGroupsSetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsClientTlsPoliciesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAddressGroupsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googleiamv1setiampolicyrequest) - if err != nil { - return nil, err +func (c *ProjectsLocationsClientTlsPoliciesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.addressGroups.setIamPolicy", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.clientTlsPolicies.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.addressGroups.setIamPolicy" call. +// Do executes the "networksecurity.projects.locations.clientTlsPolicies.get" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleIamV1Policy.ServerResponse.Header or (if a response was returned at +// *ClientTlsPolicy.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 *ProjectsLocationsAddressGroupsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +func (c *ProjectsLocationsClientTlsPoliciesGetCall) Do(opts ...googleapi.CallOption) (*ClientTlsPolicy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9019,7 +12069,7 @@ func (c *ProjectsLocationsAddressGroupsSetIamPolicyCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1Policy{ + ret := &ClientTlsPolicy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -9030,70 +12080,89 @@ func (c *ProjectsLocationsAddressGroupsSetIamPolicyCall) Do(opts ...googleapi.Ca if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.addressGroups.setIamPolicy", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.clientTlsPolicies.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsAddressGroupsTestIamPermissionsCall struct { - s *Service - resource string - googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsClientTlsPoliciesGetIamPolicyCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + 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. +// 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 detail is being -// requested. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the appropriate -// value for this field. -func (r *ProjectsLocationsAddressGroupsService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsAddressGroupsTestIamPermissionsCall { - c := &ProjectsLocationsAddressGroupsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - 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 *ProjectsLocationsClientTlsPoliciesService) GetIamPolicy(resource string) *ProjectsLocationsClientTlsPoliciesGetIamPolicyCall { + c := &ProjectsLocationsClientTlsPoliciesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource - c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest + 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 *ProjectsLocationsClientTlsPoliciesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsClientTlsPoliciesGetIamPolicyCall { + 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 *ProjectsLocationsAddressGroupsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAddressGroupsTestIamPermissionsCall { +func (c *ProjectsLocationsClientTlsPoliciesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientTlsPoliciesGetIamPolicyCall { 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 *ProjectsLocationsClientTlsPoliciesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsClientTlsPoliciesGetIamPolicyCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAddressGroupsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsAddressGroupsTestIamPermissionsCall { +func (c *ProjectsLocationsClientTlsPoliciesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsClientTlsPoliciesGetIamPolicyCall { 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 *ProjectsLocationsAddressGroupsTestIamPermissionsCall) Header() http.Header { +func (c *ProjectsLocationsClientTlsPoliciesGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAddressGroupsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googleiamv1testiampermissionsrequest) - if err != nil { - return nil, err +func (c *ProjectsLocationsClientTlsPoliciesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } @@ -9101,17 +12170,17 @@ func (c *ProjectsLocationsAddressGroupsTestIamPermissionsCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.addressGroups.testIamPermissions", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.clientTlsPolicies.getIamPolicy", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.addressGroups.testIamPermissions" call. +// Do executes the "networksecurity.projects.locations.clientTlsPolicies.getIamPolicy" 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 *ProjectsLocationsAddressGroupsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { +// *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 *ProjectsLocationsClientTlsPoliciesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9130,7 +12199,7 @@ func (c *ProjectsLocationsAddressGroupsTestIamPermissionsCall) Do(opts ...google if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1TestIamPermissionsResponse{ + ret := &GoogleIamV1Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -9141,74 +12210,86 @@ func (c *ProjectsLocationsAddressGroupsTestIamPermissionsCall) Do(opts ...google if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.addressGroups.testIamPermissions", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.clientTlsPolicies.getIamPolicy", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsAuthorizationPoliciesCreateCall struct { - s *Service - parent string - authorizationpolicy *AuthorizationPolicy - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsClientTlsPoliciesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Create: Creates a new AuthorizationPolicy in a given project and location. +// List: Lists ClientTlsPolicies in a given project and location. // -// - parent: The parent resource of the AuthorizationPolicy. Must be in the -// format `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsAuthorizationPoliciesService) Create(parent string, authorizationpolicy *AuthorizationPolicy) *ProjectsLocationsAuthorizationPoliciesCreateCall { - c := &ProjectsLocationsAuthorizationPoliciesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The project and location from which the ClientTlsPolicies should +// be listed, specified in the format `projects/*/locations/{location}`. +func (r *ProjectsLocationsClientTlsPoliciesService) List(parent string) *ProjectsLocationsClientTlsPoliciesListCall { + c := &ProjectsLocationsClientTlsPoliciesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.authorizationpolicy = authorizationpolicy return c } -// AuthorizationPolicyId sets the optional parameter "authorizationPolicyId": -// Required. Short name of the AuthorizationPolicy resource to be created. This -// value should be 1-63 characters long, containing only letters, numbers, -// hyphens, and underscores, and should not start with a number. E.g. -// "authz_policy". -func (c *ProjectsLocationsAuthorizationPoliciesCreateCall) AuthorizationPolicyId(authorizationPolicyId string) *ProjectsLocationsAuthorizationPoliciesCreateCall { - c.urlParams_.Set("authorizationPolicyId", authorizationPolicyId) +// PageSize sets the optional parameter "pageSize": Maximum number of +// ClientTlsPolicies to return per call. +func (c *ProjectsLocationsClientTlsPoliciesListCall) PageSize(pageSize int64) *ProjectsLocationsClientTlsPoliciesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The value returned by the +// last `ListClientTlsPoliciesResponse` Indicates that this is a continuation +// of a prior `ListClientTlsPolicies` call, and that the system should return +// the next page of data. +func (c *ProjectsLocationsClientTlsPoliciesListCall) PageToken(pageToken string) *ProjectsLocationsClientTlsPoliciesListCall { + 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 *ProjectsLocationsAuthorizationPoliciesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizationPoliciesCreateCall { +func (c *ProjectsLocationsClientTlsPoliciesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientTlsPoliciesListCall { 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 *ProjectsLocationsClientTlsPoliciesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsClientTlsPoliciesListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAuthorizationPoliciesCreateCall) Context(ctx context.Context) *ProjectsLocationsAuthorizationPoliciesCreateCall { +func (c *ProjectsLocationsClientTlsPoliciesListCall) Context(ctx context.Context) *ProjectsLocationsClientTlsPoliciesListCall { 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 *ProjectsLocationsAuthorizationPoliciesCreateCall) Header() http.Header { +func (c *ProjectsLocationsClientTlsPoliciesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAuthorizationPoliciesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.authorizationpolicy) - if err != nil { - return nil, err +func (c *ProjectsLocationsClientTlsPoliciesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/authorizationPolicies") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/clientTlsPolicies") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } @@ -9216,16 +12297,17 @@ func (c *ProjectsLocationsAuthorizationPoliciesCreateCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authorizationPolicies.create", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.clientTlsPolicies.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.authorizationPolicies.create" call. +// Do executes the "networksecurity.projects.locations.clientTlsPolicies.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 *ProjectsLocationsAuthorizationPoliciesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// *ListClientTlsPoliciesResponse.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 *ProjectsLocationsClientTlsPoliciesListCall) Do(opts ...googleapi.CallOption) (*ListClientTlsPoliciesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9244,7 +12326,7 @@ func (c *ProjectsLocationsAuthorizationPoliciesCreateCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &ListClientTlsPoliciesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -9255,58 +12337,96 @@ func (c *ProjectsLocationsAuthorizationPoliciesCreateCall) Do(opts ...googleapi. if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authorizationPolicies.create", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.clientTlsPolicies.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsAuthorizationPoliciesDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// 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 *ProjectsLocationsClientTlsPoliciesListCall) Pages(ctx context.Context, f func(*ListClientTlsPoliciesResponse) 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) + } } -// Delete: Deletes a single AuthorizationPolicy. +type ProjectsLocationsClientTlsPoliciesPatchCall struct { + s *Service + name string + clienttlspolicy *ClientTlsPolicy + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates the parameters of a single ClientTlsPolicy. // -// - name: A name of the AuthorizationPolicy to delete. Must be in the format -// `projects/{project}/locations/{location}/authorizationPolicies/*`. -func (r *ProjectsLocationsAuthorizationPoliciesService) Delete(name string) *ProjectsLocationsAuthorizationPoliciesDeleteCall { - c := &ProjectsLocationsAuthorizationPoliciesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Name of the ClientTlsPolicy resource. It matches the pattern +// `projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}`. +func (r *ProjectsLocationsClientTlsPoliciesService) Patch(name string, clienttlspolicy *ClientTlsPolicy) *ProjectsLocationsClientTlsPoliciesPatchCall { + c := &ProjectsLocationsClientTlsPoliciesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.clienttlspolicy = clienttlspolicy + return c +} + +// UpdateMask sets the optional parameter "updateMask": Field mask is used to +// specify the fields to be overwritten in the ClientTlsPolicy resource by the +// update. The fields specified in the update_mask are relative to the +// resource, not the full request. A field will be overwritten if it is in the +// mask. If the user does not provide a mask then all fields will be +// overwritten. +func (c *ProjectsLocationsClientTlsPoliciesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsClientTlsPoliciesPatchCall { + 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 *ProjectsLocationsAuthorizationPoliciesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizationPoliciesDeleteCall { +func (c *ProjectsLocationsClientTlsPoliciesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientTlsPoliciesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAuthorizationPoliciesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAuthorizationPoliciesDeleteCall { +func (c *ProjectsLocationsClientTlsPoliciesPatchCall) Context(ctx context.Context) *ProjectsLocationsClientTlsPoliciesPatchCall { 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 *ProjectsLocationsAuthorizationPoliciesDeleteCall) Header() http.Header { +func (c *ProjectsLocationsClientTlsPoliciesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAuthorizationPoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) +func (c *ProjectsLocationsClientTlsPoliciesPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.clienttlspolicy) + 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("DELETE", urls, nil) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } @@ -9314,16 +12434,16 @@ func (c *ProjectsLocationsAuthorizationPoliciesDeleteCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authorizationPolicies.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.clientTlsPolicies.patch", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.authorizationPolicies.delete" call. +// Do executes the "networksecurity.projects.locations.clientTlsPolicies.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 *ProjectsLocationsAuthorizationPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsClientTlsPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9353,88 +12473,85 @@ func (c *ProjectsLocationsAuthorizationPoliciesDeleteCall) Do(opts ...googleapi. if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authorizationPolicies.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.clientTlsPolicies.patch", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsAuthorizationPoliciesGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsClientTlsPoliciesSetIamPolicyCall struct { + s *Service + resource string + googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets details of a single AuthorizationPolicy. +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, +// and `PERMISSION_DENIED` errors. // -// - name: A name of the AuthorizationPolicy to get. Must be in the format -// `projects/{project}/locations/{location}/authorizationPolicies/*`. -func (r *ProjectsLocationsAuthorizationPoliciesService) Get(name string) *ProjectsLocationsAuthorizationPoliciesGetCall { - c := &ProjectsLocationsAuthorizationPoliciesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - 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 *ProjectsLocationsClientTlsPoliciesService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsClientTlsPoliciesSetIamPolicyCall { + c := &ProjectsLocationsClientTlsPoliciesSetIamPolicyCall{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 *ProjectsLocationsAuthorizationPoliciesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizationPoliciesGetCall { +func (c *ProjectsLocationsClientTlsPoliciesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientTlsPoliciesSetIamPolicyCall { 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 *ProjectsLocationsAuthorizationPoliciesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthorizationPoliciesGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAuthorizationPoliciesGetCall) Context(ctx context.Context) *ProjectsLocationsAuthorizationPoliciesGetCall { +func (c *ProjectsLocationsClientTlsPoliciesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsClientTlsPoliciesSetIamPolicyCall { 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 *ProjectsLocationsAuthorizationPoliciesGetCall) Header() http.Header { +func (c *ProjectsLocationsClientTlsPoliciesSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAuthorizationPoliciesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) +func (c *ProjectsLocationsClientTlsPoliciesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(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/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + 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, + "resource": c.resource, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authorizationPolicies.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.clientTlsPolicies.setIamPolicy", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.authorizationPolicies.get" call. +// Do executes the "networksecurity.projects.locations.clientTlsPolicies.setIamPolicy" call. // Any non-2xx status code is an error. Response headers are in either -// *AuthorizationPolicy.ServerResponse.Header or (if a response was returned at +// *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 *ProjectsLocationsAuthorizationPoliciesGetCall) Do(opts ...googleapi.CallOption) (*AuthorizationPolicy, error) { +func (c *ProjectsLocationsClientTlsPoliciesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9453,7 +12570,7 @@ func (c *ProjectsLocationsAuthorizationPoliciesGetCall) Do(opts ...googleapi.Cal if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &AuthorizationPolicy{ + ret := &GoogleIamV1Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -9464,89 +12581,70 @@ func (c *ProjectsLocationsAuthorizationPoliciesGetCall) Do(opts ...googleapi.Cal if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authorizationPolicies.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.clientTlsPolicies.setIamPolicy", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsAuthorizationPoliciesGetIamPolicyCall 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 *ProjectsLocationsAuthorizationPoliciesService) GetIamPolicy(resource string) *ProjectsLocationsAuthorizationPoliciesGetIamPolicyCall { - c := &ProjectsLocationsAuthorizationPoliciesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - return c +type ProjectsLocationsClientTlsPoliciesTestIamPermissionsCall struct { + s *Service + resource string + googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// 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 *ProjectsLocationsAuthorizationPoliciesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsAuthorizationPoliciesGetIamPolicyCall { - c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) +// 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 *ProjectsLocationsClientTlsPoliciesService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsClientTlsPoliciesTestIamPermissionsCall { + c := &ProjectsLocationsClientTlsPoliciesTestIamPermissionsCall{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 *ProjectsLocationsAuthorizationPoliciesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizationPoliciesGetIamPolicyCall { +func (c *ProjectsLocationsClientTlsPoliciesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientTlsPoliciesTestIamPermissionsCall { 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 *ProjectsLocationsAuthorizationPoliciesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthorizationPoliciesGetIamPolicyCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAuthorizationPoliciesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAuthorizationPoliciesGetIamPolicyCall { +func (c *ProjectsLocationsClientTlsPoliciesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsClientTlsPoliciesTestIamPermissionsCall { 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 *ProjectsLocationsAuthorizationPoliciesGetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsClientTlsPoliciesTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAuthorizationPoliciesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) +func (c *ProjectsLocationsClientTlsPoliciesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(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}:getIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -9554,17 +12652,17 @@ func (c *ProjectsLocationsAuthorizationPoliciesGetIamPolicyCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authorizationPolicies.getIamPolicy", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.clientTlsPolicies.testIamPermissions", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.authorizationPolicies.getIamPolicy" call. +// Do executes the "networksecurity.projects.locations.clientTlsPolicies.testIamPermissions" 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 *ProjectsLocationsAuthorizationPoliciesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +// *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 *ProjectsLocationsClientTlsPoliciesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9583,7 +12681,7 @@ func (c *ProjectsLocationsAuthorizationPoliciesGetIamPolicyCall) Do(opts ...goog if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1Policy{ + ret := &GoogleIamV1TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -9594,87 +12692,89 @@ func (c *ProjectsLocationsAuthorizationPoliciesGetIamPolicyCall) Do(opts ...goog if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authorizationPolicies.getIamPolicy", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.clientTlsPolicies.testIamPermissions", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsAuthorizationPoliciesListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFirewallEndpointAssociationsCreateCall struct { + s *Service + parent string + firewallendpointassociation *FirewallEndpointAssociation + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists AuthorizationPolicies in a given project and location. +// Create: Creates a new FirewallEndpointAssociation in a given project and +// location. // -// - parent: The project and location from which the AuthorizationPolicies -// should be listed, specified in the format -// `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsAuthorizationPoliciesService) List(parent string) *ProjectsLocationsAuthorizationPoliciesListCall { - c := &ProjectsLocationsAuthorizationPoliciesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: Value for parent. +func (r *ProjectsLocationsFirewallEndpointAssociationsService) Create(parent string, firewallendpointassociation *FirewallEndpointAssociation) *ProjectsLocationsFirewallEndpointAssociationsCreateCall { + c := &ProjectsLocationsFirewallEndpointAssociationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent + c.firewallendpointassociation = firewallendpointassociation return c } -// PageSize sets the optional parameter "pageSize": Maximum number of -// AuthorizationPolicies to return per call. -func (c *ProjectsLocationsAuthorizationPoliciesListCall) PageSize(pageSize int64) *ProjectsLocationsAuthorizationPoliciesListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) +// FirewallEndpointAssociationId sets the optional parameter +// "firewallEndpointAssociationId": Id of the requesting object. If +// auto-generating Id server-side, remove this field and +// firewall_endpoint_association_id from the method_signature of Create RPC. +func (c *ProjectsLocationsFirewallEndpointAssociationsCreateCall) FirewallEndpointAssociationId(firewallEndpointAssociationId string) *ProjectsLocationsFirewallEndpointAssociationsCreateCall { + c.urlParams_.Set("firewallEndpointAssociationId", firewallEndpointAssociationId) return c } -// PageToken sets the optional parameter "pageToken": The value returned by the -// last `ListAuthorizationPoliciesResponse` Indicates that this is a -// continuation of a prior `ListAuthorizationPolicies` call, and that the -// system should return the next page of data. -func (c *ProjectsLocationsAuthorizationPoliciesListCall) PageToken(pageToken string) *ProjectsLocationsAuthorizationPoliciesListCall { - c.urlParams_.Set("pageToken", pageToken) +// 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 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). +func (c *ProjectsLocationsFirewallEndpointAssociationsCreateCall) RequestId(requestId string) *ProjectsLocationsFirewallEndpointAssociationsCreateCall { + 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 *ProjectsLocationsAuthorizationPoliciesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizationPoliciesListCall { +func (c *ProjectsLocationsFirewallEndpointAssociationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFirewallEndpointAssociationsCreateCall { 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 *ProjectsLocationsAuthorizationPoliciesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthorizationPoliciesListCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAuthorizationPoliciesListCall) Context(ctx context.Context) *ProjectsLocationsAuthorizationPoliciesListCall { +func (c *ProjectsLocationsFirewallEndpointAssociationsCreateCall) Context(ctx context.Context) *ProjectsLocationsFirewallEndpointAssociationsCreateCall { 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 *ProjectsLocationsAuthorizationPoliciesListCall) Header() http.Header { +func (c *ProjectsLocationsFirewallEndpointAssociationsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAuthorizationPoliciesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) +func (c *ProjectsLocationsFirewallEndpointAssociationsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.firewallendpointassociation) + if err != nil { + return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/authorizationPolicies") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/firewallEndpointAssociations") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -9682,17 +12782,16 @@ func (c *ProjectsLocationsAuthorizationPoliciesListCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authorizationPolicies.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.firewallEndpointAssociations.create", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.authorizationPolicies.list" call. +// Do executes the "networksecurity.projects.locations.firewallEndpointAssociations.create" call. // Any non-2xx status code is an error. Response headers are in either -// *ListAuthorizationPoliciesResponse.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 *ProjectsLocationsAuthorizationPoliciesListCall) Do(opts ...googleapi.CallOption) (*ListAuthorizationPoliciesResponse, error) { +// *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 *ProjectsLocationsFirewallEndpointAssociationsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9711,7 +12810,7 @@ func (c *ProjectsLocationsAuthorizationPoliciesListCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListAuthorizationPoliciesResponse{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -9722,96 +12821,73 @@ func (c *ProjectsLocationsAuthorizationPoliciesListCall) Do(opts ...googleapi.Ca if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authorizationPolicies.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.firewallEndpointAssociations.create", "response", internallog.HTTPResponse(res, b)) 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 *ProjectsLocationsAuthorizationPoliciesListCall) Pages(ctx context.Context, f func(*ListAuthorizationPoliciesResponse) 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 ProjectsLocationsAuthorizationPoliciesPatchCall struct { - s *Service - name string - authorizationpolicy *AuthorizationPolicy - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFirewallEndpointAssociationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Updates the parameters of a single AuthorizationPolicy. +// Delete: Deletes a single FirewallEndpointAssociation. // -// - name: Name of the AuthorizationPolicy resource. It matches pattern -// `projects/{project}/locations/{location}/authorizationPolicies/`. -func (r *ProjectsLocationsAuthorizationPoliciesService) Patch(name string, authorizationpolicy *AuthorizationPolicy) *ProjectsLocationsAuthorizationPoliciesPatchCall { - c := &ProjectsLocationsAuthorizationPoliciesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Name of the resource. +func (r *ProjectsLocationsFirewallEndpointAssociationsService) Delete(name string) *ProjectsLocationsFirewallEndpointAssociationsDeleteCall { + c := &ProjectsLocationsFirewallEndpointAssociationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.authorizationpolicy = authorizationpolicy return c } -// UpdateMask sets the optional parameter "updateMask": Field mask is used to -// specify the fields to be overwritten in the AuthorizationPolicy resource by -// the update. The fields specified in the update_mask are relative to the -// resource, not the full request. A field will be overwritten if it is in the -// mask. If the user does not provide a mask then all fields will be -// overwritten. -func (c *ProjectsLocationsAuthorizationPoliciesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAuthorizationPoliciesPatchCall { - c.urlParams_.Set("updateMask", updateMask) +// 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 will know to ignore the request if it has already +// been completed. The server will guarantee 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, 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). +func (c *ProjectsLocationsFirewallEndpointAssociationsDeleteCall) RequestId(requestId string) *ProjectsLocationsFirewallEndpointAssociationsDeleteCall { + 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 *ProjectsLocationsAuthorizationPoliciesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizationPoliciesPatchCall { +func (c *ProjectsLocationsFirewallEndpointAssociationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFirewallEndpointAssociationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAuthorizationPoliciesPatchCall) Context(ctx context.Context) *ProjectsLocationsAuthorizationPoliciesPatchCall { +func (c *ProjectsLocationsFirewallEndpointAssociationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFirewallEndpointAssociationsDeleteCall { 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 *ProjectsLocationsAuthorizationPoliciesPatchCall) Header() http.Header { +func (c *ProjectsLocationsFirewallEndpointAssociationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAuthorizationPoliciesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.authorizationpolicy) - if err != nil { - return nil, err - } +func (c *ProjectsLocationsFirewallEndpointAssociationsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("DELETE", urls, nil) if err != nil { return nil, err } @@ -9819,16 +12895,16 @@ func (c *ProjectsLocationsAuthorizationPoliciesPatchCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authorizationPolicies.patch", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.firewallEndpointAssociations.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.authorizationPolicies.patch" call. +// Do executes the "networksecurity.projects.locations.firewallEndpointAssociations.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 *ProjectsLocationsAuthorizationPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsFirewallEndpointAssociationsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9858,85 +12934,87 @@ func (c *ProjectsLocationsAuthorizationPoliciesPatchCall) Do(opts ...googleapi.C if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authorizationPolicies.patch", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.firewallEndpointAssociations.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsAuthorizationPoliciesSetIamPolicyCall struct { - s *Service - resource string - googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFirewallEndpointAssociationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + 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. +// Get: Gets details of a single FirewallEndpointAssociation. // -// - 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 *ProjectsLocationsAuthorizationPoliciesService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsAuthorizationPoliciesSetIamPolicyCall { - c := &ProjectsLocationsAuthorizationPoliciesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest +// - name: Name of the resource. +func (r *ProjectsLocationsFirewallEndpointAssociationsService) Get(name string) *ProjectsLocationsFirewallEndpointAssociationsGetCall { + c := &ProjectsLocationsFirewallEndpointAssociationsGetCall{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 *ProjectsLocationsAuthorizationPoliciesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizationPoliciesSetIamPolicyCall { +func (c *ProjectsLocationsFirewallEndpointAssociationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFirewallEndpointAssociationsGetCall { 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 *ProjectsLocationsFirewallEndpointAssociationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFirewallEndpointAssociationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAuthorizationPoliciesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAuthorizationPoliciesSetIamPolicyCall { +func (c *ProjectsLocationsFirewallEndpointAssociationsGetCall) Context(ctx context.Context) *ProjectsLocationsFirewallEndpointAssociationsGetCall { 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 *ProjectsLocationsAuthorizationPoliciesSetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsFirewallEndpointAssociationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAuthorizationPoliciesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googleiamv1setiampolicyrequest) - if err != nil { - return nil, err +func (c *ProjectsLocationsFirewallEndpointAssociationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authorizationPolicies.setIamPolicy", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.firewallEndpointAssociations.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.authorizationPolicies.setIamPolicy" call. +// Do executes the "networksecurity.projects.locations.firewallEndpointAssociations.get" 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 *ProjectsLocationsAuthorizationPoliciesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +// *FirewallEndpointAssociation.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 *ProjectsLocationsFirewallEndpointAssociationsGetCall) Do(opts ...googleapi.CallOption) (*FirewallEndpointAssociation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9955,7 +13033,7 @@ func (c *ProjectsLocationsAuthorizationPoliciesSetIamPolicyCall) Do(opts ...goog if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1Policy{ + ret := &FirewallEndpointAssociation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -9966,88 +13044,115 @@ func (c *ProjectsLocationsAuthorizationPoliciesSetIamPolicyCall) Do(opts ...goog if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authorizationPolicies.setIamPolicy", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.firewallEndpointAssociations.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsAuthorizationPoliciesTestIamPermissionsCall struct { - s *Service - resource string - googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFirewallEndpointAssociationsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + 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. +// List: Lists Associations in a given project and location. // -// - 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 *ProjectsLocationsAuthorizationPoliciesService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsAuthorizationPoliciesTestIamPermissionsCall { - c := &ProjectsLocationsAuthorizationPoliciesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest +// - parent: Parent value for ListAssociationsRequest. +func (r *ProjectsLocationsFirewallEndpointAssociationsService) List(parent string) *ProjectsLocationsFirewallEndpointAssociationsListCall { + c := &ProjectsLocationsFirewallEndpointAssociationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filtering results +func (c *ProjectsLocationsFirewallEndpointAssociationsListCall) Filter(filter string) *ProjectsLocationsFirewallEndpointAssociationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": Hint for how to order the +// results +func (c *ProjectsLocationsFirewallEndpointAssociationsListCall) OrderBy(orderBy string) *ProjectsLocationsFirewallEndpointAssociationsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": Requested page size. Server +// may return fewer items than requested. If unspecified, server will pick an +// appropriate default. +func (c *ProjectsLocationsFirewallEndpointAssociationsListCall) PageSize(pageSize int64) *ProjectsLocationsFirewallEndpointAssociationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. +func (c *ProjectsLocationsFirewallEndpointAssociationsListCall) PageToken(pageToken string) *ProjectsLocationsFirewallEndpointAssociationsListCall { + 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 *ProjectsLocationsAuthorizationPoliciesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizationPoliciesTestIamPermissionsCall { +func (c *ProjectsLocationsFirewallEndpointAssociationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFirewallEndpointAssociationsListCall { 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 *ProjectsLocationsFirewallEndpointAssociationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFirewallEndpointAssociationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAuthorizationPoliciesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsAuthorizationPoliciesTestIamPermissionsCall { +func (c *ProjectsLocationsFirewallEndpointAssociationsListCall) Context(ctx context.Context) *ProjectsLocationsFirewallEndpointAssociationsListCall { 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 *ProjectsLocationsAuthorizationPoliciesTestIamPermissionsCall) Header() http.Header { +func (c *ProjectsLocationsFirewallEndpointAssociationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAuthorizationPoliciesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googleiamv1testiampermissionsrequest) - if err != nil { - return nil, err +func (c *ProjectsLocationsFirewallEndpointAssociationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/firewallEndpointAssociations") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authorizationPolicies.testIamPermissions", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.firewallEndpointAssociations.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.authorizationPolicies.testIamPermissions" call. +// Do executes the "networksecurity.projects.locations.firewallEndpointAssociations.list" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a +// *ListFirewallEndpointAssociationsResponse.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 *ProjectsLocationsAuthorizationPoliciesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { +func (c *ProjectsLocationsFirewallEndpointAssociationsListCall) Do(opts ...googleapi.CallOption) (*ListFirewallEndpointAssociationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -10066,7 +13171,7 @@ func (c *ProjectsLocationsAuthorizationPoliciesTestIamPermissionsCall) Do(opts . if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1TestIamPermissionsResponse{ + ret := &ListFirewallEndpointAssociationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -10077,104 +13182,128 @@ func (c *ProjectsLocationsAuthorizationPoliciesTestIamPermissionsCall) Do(opts . if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authorizationPolicies.testIamPermissions", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.firewallEndpointAssociations.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsAuthzPoliciesCreateCall struct { - s *Service - parent string - authzpolicy *AuthzPolicy - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// 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 *ProjectsLocationsFirewallEndpointAssociationsListCall) Pages(ctx context.Context, f func(*ListFirewallEndpointAssociationsResponse) 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) + } } -// Create: Creates a new AuthzPolicy in a given project and location. -// -// - parent: The parent resource of the `AuthzPolicy` resource. Must be in the -// format `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsAuthzPoliciesService) Create(parent string, authzpolicy *AuthzPolicy) *ProjectsLocationsAuthzPoliciesCreateCall { - c := &ProjectsLocationsAuthzPoliciesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.authzpolicy = authzpolicy - return c +type ProjectsLocationsFirewallEndpointAssociationsPatchCall struct { + s *Service + name string + firewallendpointassociation *FirewallEndpointAssociation + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// AuthzPolicyId sets the optional parameter "authzPolicyId": Required. -// User-provided ID of the `AuthzPolicy` resource to be created. -func (c *ProjectsLocationsAuthzPoliciesCreateCall) AuthzPolicyId(authzPolicyId string) *ProjectsLocationsAuthzPoliciesCreateCall { - c.urlParams_.Set("authzPolicyId", authzPolicyId) +// Patch: Update a single FirewallEndpointAssociation. +// +// - name: Immutable. Identifier. name of resource. +func (r *ProjectsLocationsFirewallEndpointAssociationsService) Patch(name string, firewallendpointassociation *FirewallEndpointAssociation) *ProjectsLocationsFirewallEndpointAssociationsPatchCall { + c := &ProjectsLocationsFirewallEndpointAssociationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.firewallendpointassociation = firewallendpointassociation 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 +// 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). -func (c *ProjectsLocationsAuthzPoliciesCreateCall) RequestId(requestId string) *ProjectsLocationsAuthzPoliciesCreateCall { +func (c *ProjectsLocationsFirewallEndpointAssociationsPatchCall) RequestId(requestId string) *ProjectsLocationsFirewallEndpointAssociationsPatchCall { c.urlParams_.Set("requestId", requestId) return c } +// UpdateMask sets the optional parameter "updateMask": Required. Field mask is +// used to specify the fields to be overwritten in the Association resource by +// the update. The fields specified in the update_mask are relative to the +// resource, not the full request. A field will be overwritten if it is in the +// mask. If the user does not provide a mask then all fields will be +// overwritten. +func (c *ProjectsLocationsFirewallEndpointAssociationsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFirewallEndpointAssociationsPatchCall { + 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 *ProjectsLocationsAuthzPoliciesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthzPoliciesCreateCall { +func (c *ProjectsLocationsFirewallEndpointAssociationsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsFirewallEndpointAssociationsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAuthzPoliciesCreateCall) Context(ctx context.Context) *ProjectsLocationsAuthzPoliciesCreateCall { +func (c *ProjectsLocationsFirewallEndpointAssociationsPatchCall) Context(ctx context.Context) *ProjectsLocationsFirewallEndpointAssociationsPatchCall { 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 *ProjectsLocationsAuthzPoliciesCreateCall) Header() http.Header { +func (c *ProjectsLocationsFirewallEndpointAssociationsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAuthzPoliciesCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFirewallEndpointAssociationsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.authzpolicy) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.firewallendpointassociation) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/authzPolicies") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authzPolicies.create", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.firewallEndpointAssociations.patch", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.authzPolicies.create" call. +// Do executes the "networksecurity.projects.locations.firewallEndpointAssociations.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 *ProjectsLocationsAuthzPoliciesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsFirewallEndpointAssociationsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -10204,92 +13333,91 @@ func (c *ProjectsLocationsAuthzPoliciesCreateCall) Do(opts ...googleapi.CallOpti if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authzPolicies.create", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.firewallEndpointAssociations.patch", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsAuthzPoliciesDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsGatewaySecurityPoliciesCreateCall struct { + s *Service + parent string + gatewaysecuritypolicy *GatewaySecurityPolicy + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a single AuthzPolicy. +// Create: Creates a new GatewaySecurityPolicy in a given project and location. // -// - name: The name of the `AuthzPolicy` resource to delete. Must be in the -// format -// `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`. -func (r *ProjectsLocationsAuthzPoliciesService) Delete(name string) *ProjectsLocationsAuthzPoliciesDeleteCall { - c := &ProjectsLocationsAuthzPoliciesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The parent resource of the GatewaySecurityPolicy. Must be in the +// format `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsGatewaySecurityPoliciesService) Create(parent string, gatewaysecuritypolicy *GatewaySecurityPolicy) *ProjectsLocationsGatewaySecurityPoliciesCreateCall { + c := &ProjectsLocationsGatewaySecurityPoliciesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.gatewaysecuritypolicy = gatewaysecuritypolicy 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 *ProjectsLocationsAuthzPoliciesDeleteCall) RequestId(requestId string) *ProjectsLocationsAuthzPoliciesDeleteCall { - c.urlParams_.Set("requestId", requestId) +// GatewaySecurityPolicyId sets the optional parameter +// "gatewaySecurityPolicyId": Required. Short name of the GatewaySecurityPolicy +// resource to be created. This value should be 1-63 characters long, +// containing only letters, numbers, hyphens, and underscores, and should not +// start with a number. E.g. "gateway_security_policy1". +func (c *ProjectsLocationsGatewaySecurityPoliciesCreateCall) GatewaySecurityPolicyId(gatewaySecurityPolicyId string) *ProjectsLocationsGatewaySecurityPoliciesCreateCall { + c.urlParams_.Set("gatewaySecurityPolicyId", gatewaySecurityPolicyId) 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 *ProjectsLocationsAuthzPoliciesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthzPoliciesDeleteCall { +func (c *ProjectsLocationsGatewaySecurityPoliciesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsGatewaySecurityPoliciesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAuthzPoliciesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAuthzPoliciesDeleteCall { +func (c *ProjectsLocationsGatewaySecurityPoliciesCreateCall) Context(ctx context.Context) *ProjectsLocationsGatewaySecurityPoliciesCreateCall { 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 *ProjectsLocationsAuthzPoliciesDeleteCall) Header() http.Header { +func (c *ProjectsLocationsGatewaySecurityPoliciesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAuthzPoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) +func (c *ProjectsLocationsGatewaySecurityPoliciesCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.gatewaysecuritypolicy) + 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 := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/gatewaySecurityPolicies") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, nil) + 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, + "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authzPolicies.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.gatewaySecurityPolicies.create", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.authzPolicies.delete" call. +// Do executes the "networksecurity.projects.locations.gatewaySecurityPolicies.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 *ProjectsLocationsAuthzPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsGatewaySecurityPoliciesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -10319,25 +13447,24 @@ func (c *ProjectsLocationsAuthzPoliciesDeleteCall) Do(opts ...googleapi.CallOpti if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authzPolicies.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.gatewaySecurityPolicies.create", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsAuthzPoliciesGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsGatewaySecurityPoliciesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets details of a single AuthzPolicy. +// Delete: Deletes a single GatewaySecurityPolicy. // -// - name: A name of the `AuthzPolicy` resource to get. Must be in the format -// `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`. -func (r *ProjectsLocationsAuthzPoliciesService) Get(name string) *ProjectsLocationsAuthzPoliciesGetCall { - c := &ProjectsLocationsAuthzPoliciesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: A name of the GatewaySecurityPolicy to delete. Must be in the format +// `projects/{project}/locations/{location}/gatewaySecurityPolicies/*`. +func (r *ProjectsLocationsGatewaySecurityPoliciesService) Delete(name string) *ProjectsLocationsGatewaySecurityPoliciesDeleteCall { + c := &ProjectsLocationsGatewaySecurityPoliciesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -10345,44 +13472,33 @@ func (r *ProjectsLocationsAuthzPoliciesService) Get(name string) *ProjectsLocati // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsAuthzPoliciesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthzPoliciesGetCall { +func (c *ProjectsLocationsGatewaySecurityPoliciesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsGatewaySecurityPoliciesDeleteCall { 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 *ProjectsLocationsAuthzPoliciesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthzPoliciesGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAuthzPoliciesGetCall) Context(ctx context.Context) *ProjectsLocationsAuthzPoliciesGetCall { +func (c *ProjectsLocationsGatewaySecurityPoliciesDeleteCall) Context(ctx context.Context) *ProjectsLocationsGatewaySecurityPoliciesDeleteCall { 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 *ProjectsLocationsAuthzPoliciesGetCall) Header() http.Header { +func (c *ProjectsLocationsGatewaySecurityPoliciesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAuthzPoliciesGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsGatewaySecurityPoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + req, err := http.NewRequest("DELETE", urls, nil) if err != nil { return nil, err } @@ -10390,16 +13506,16 @@ func (c *ProjectsLocationsAuthzPoliciesGetCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authzPolicies.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.gatewaySecurityPolicies.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.authzPolicies.get" call. +// Do executes the "networksecurity.projects.locations.gatewaySecurityPolicies.delete" call. // Any non-2xx status code is an error. Response headers are in either -// *AuthzPolicy.ServerResponse.Header or (if a response was returned at all) in +// *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 *ProjectsLocationsAuthzPoliciesGetCall) Do(opts ...googleapi.CallOption) (*AuthzPolicy, error) { +func (c *ProjectsLocationsGatewaySecurityPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -10418,7 +13534,7 @@ func (c *ProjectsLocationsAuthzPoliciesGetCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &AuthzPolicy{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -10429,52 +13545,33 @@ func (c *ProjectsLocationsAuthzPoliciesGetCall) Do(opts ...googleapi.CallOption) if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authzPolicies.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.gatewaySecurityPolicies.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsAuthzPoliciesGetIamPolicyCall struct { +type ProjectsLocationsGatewaySecurityPoliciesGetCall struct { s *Service - resource string + name 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. +// Get: Gets details of a single GatewaySecurityPolicy. // -// - 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 *ProjectsLocationsAuthzPoliciesService) GetIamPolicy(resource string) *ProjectsLocationsAuthzPoliciesGetIamPolicyCall { - c := &ProjectsLocationsAuthzPoliciesGetIamPolicyCall{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 *ProjectsLocationsAuthzPoliciesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsAuthzPoliciesGetIamPolicyCall { - c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) +// - name: A name of the GatewaySecurityPolicy to get. Must be in the format +// `projects/{project}/locations/{location}/gatewaySecurityPolicies/*`. +func (r *ProjectsLocationsGatewaySecurityPoliciesService) Get(name string) *ProjectsLocationsGatewaySecurityPoliciesGetCall { + c := &ProjectsLocationsGatewaySecurityPoliciesGetCall{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 *ProjectsLocationsAuthzPoliciesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthzPoliciesGetIamPolicyCall { +func (c *ProjectsLocationsGatewaySecurityPoliciesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGatewaySecurityPoliciesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -10482,34 +13579,34 @@ func (c *ProjectsLocationsAuthzPoliciesGetIamPolicyCall) Fields(s ...googleapi.F // 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 *ProjectsLocationsAuthzPoliciesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthzPoliciesGetIamPolicyCall { +func (c *ProjectsLocationsGatewaySecurityPoliciesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGatewaySecurityPoliciesGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAuthzPoliciesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAuthzPoliciesGetIamPolicyCall { +func (c *ProjectsLocationsGatewaySecurityPoliciesGetCall) Context(ctx context.Context) *ProjectsLocationsGatewaySecurityPoliciesGetCall { 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 *ProjectsLocationsAuthzPoliciesGetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsGatewaySecurityPoliciesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAuthzPoliciesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsGatewaySecurityPoliciesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -10517,19 +13614,19 @@ func (c *ProjectsLocationsAuthzPoliciesGetIamPolicyCall) doRequest(alt string) ( } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authzPolicies.getIamPolicy", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.gatewaySecurityPolicies.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.authzPolicies.getIamPolicy" call. +// Do executes the "networksecurity.projects.locations.gatewaySecurityPolicies.get" 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 +// *GatewaySecurityPolicy.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 *ProjectsLocationsAuthzPoliciesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +func (c *ProjectsLocationsGatewaySecurityPoliciesGetCall) Do(opts ...googleapi.CallOption) (*GatewaySecurityPolicy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -10548,7 +13645,7 @@ func (c *ProjectsLocationsAuthzPoliciesGetIamPolicyCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1Policy{ + ret := &GatewaySecurityPolicy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -10559,11 +13656,11 @@ func (c *ProjectsLocationsAuthzPoliciesGetIamPolicyCall) Do(opts ...googleapi.Ca if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authzPolicies.getIamPolicy", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.gatewaySecurityPolicies.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsAuthzPoliciesListCall struct { +type ProjectsLocationsGatewaySecurityPoliciesListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -10572,41 +13669,29 @@ type ProjectsLocationsAuthzPoliciesListCall struct { header_ http.Header } -// List: Lists AuthzPolicies in a given project and location. +// List: Lists GatewaySecurityPolicies in a given project and location. // -// - parent: The project and location from which the `AuthzPolicy` resources -// are listed, specified in the following format: +// - parent: The project and location from which the GatewaySecurityPolicies +// should be listed, specified in the format // `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsAuthzPoliciesService) List(parent string) *ProjectsLocationsAuthzPoliciesListCall { - c := &ProjectsLocationsAuthzPoliciesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsGatewaySecurityPoliciesService) List(parent string) *ProjectsLocationsGatewaySecurityPoliciesListCall { + c := &ProjectsLocationsGatewaySecurityPoliciesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// Filter sets the optional parameter "filter": Filtering results. -func (c *ProjectsLocationsAuthzPoliciesListCall) Filter(filter string) *ProjectsLocationsAuthzPoliciesListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// OrderBy sets the optional parameter "orderBy": Hint for how to order the -// results. -func (c *ProjectsLocationsAuthzPoliciesListCall) OrderBy(orderBy string) *ProjectsLocationsAuthzPoliciesListCall { - 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 *ProjectsLocationsAuthzPoliciesListCall) PageSize(pageSize int64) *ProjectsLocationsAuthzPoliciesListCall { +// PageSize sets the optional parameter "pageSize": Maximum number of +// GatewaySecurityPolicies to return per call. +func (c *ProjectsLocationsGatewaySecurityPoliciesListCall) PageSize(pageSize int64) *ProjectsLocationsGatewaySecurityPoliciesListCall { 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 *ProjectsLocationsAuthzPoliciesListCall) PageToken(pageToken string) *ProjectsLocationsAuthzPoliciesListCall { +// PageToken sets the optional parameter "pageToken": The value returned by the +// last 'ListGatewaySecurityPoliciesResponse' Indicates that this is a +// continuation of a prior 'ListGatewaySecurityPolicies' call, and that the +// system should return the next page of data. +func (c *ProjectsLocationsGatewaySecurityPoliciesListCall) PageToken(pageToken string) *ProjectsLocationsGatewaySecurityPoliciesListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -10614,7 +13699,7 @@ func (c *ProjectsLocationsAuthzPoliciesListCall) PageToken(pageToken string) *Pr // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsAuthzPoliciesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthzPoliciesListCall { +func (c *ProjectsLocationsGatewaySecurityPoliciesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsGatewaySecurityPoliciesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -10622,34 +13707,34 @@ func (c *ProjectsLocationsAuthzPoliciesListCall) Fields(s ...googleapi.Field) *P // 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 *ProjectsLocationsAuthzPoliciesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthzPoliciesListCall { +func (c *ProjectsLocationsGatewaySecurityPoliciesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsGatewaySecurityPoliciesListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAuthzPoliciesListCall) Context(ctx context.Context) *ProjectsLocationsAuthzPoliciesListCall { +func (c *ProjectsLocationsGatewaySecurityPoliciesListCall) Context(ctx context.Context) *ProjectsLocationsGatewaySecurityPoliciesListCall { 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 *ProjectsLocationsAuthzPoliciesListCall) Header() http.Header { +func (c *ProjectsLocationsGatewaySecurityPoliciesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAuthzPoliciesListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsGatewaySecurityPoliciesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/authzPolicies") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/gatewaySecurityPolicies") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -10659,17 +13744,17 @@ func (c *ProjectsLocationsAuthzPoliciesListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authzPolicies.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.gatewaySecurityPolicies.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.authzPolicies.list" call. +// Do executes the "networksecurity.projects.locations.gatewaySecurityPolicies.list" call. // Any non-2xx status code is an error. Response headers are in either -// *ListAuthzPoliciesResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// *ListGatewaySecurityPoliciesResponse.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 *ProjectsLocationsAuthzPoliciesListCall) Do(opts ...googleapi.CallOption) (*ListAuthzPoliciesResponse, error) { +func (c *ProjectsLocationsGatewaySecurityPoliciesListCall) Do(opts ...googleapi.CallOption) (*ListGatewaySecurityPoliciesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -10688,7 +13773,7 @@ func (c *ProjectsLocationsAuthzPoliciesListCall) Do(opts ...googleapi.CallOption if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListAuthzPoliciesResponse{ + ret := &ListGatewaySecurityPoliciesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -10699,14 +13784,14 @@ func (c *ProjectsLocationsAuthzPoliciesListCall) Do(opts ...googleapi.CallOption if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authzPolicies.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.gatewaySecurityPolicies.list", "response", internallog.HTTPResponse(res, b)) 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 *ProjectsLocationsAuthzPoliciesListCall) Pages(ctx context.Context, f func(*ListAuthzPoliciesResponse) error) error { +func (c *ProjectsLocationsGatewaySecurityPoliciesListCall) Pages(ctx context.Context, f func(*ListGatewaySecurityPoliciesResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -10724,49 +13809,35 @@ func (c *ProjectsLocationsAuthzPoliciesListCall) Pages(ctx context.Context, f fu } } -type ProjectsLocationsAuthzPoliciesPatchCall struct { - s *Service - name string - authzpolicy *AuthzPolicy - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsGatewaySecurityPoliciesPatchCall struct { + s *Service + name string + gatewaysecuritypolicy *GatewaySecurityPolicy + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Updates the parameters of a single AuthzPolicy. +// Patch: Updates the parameters of a single GatewaySecurityPolicy. // -// - name: Identifier. Name of the `AuthzPolicy` resource in the following -// format: -// `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`. -func (r *ProjectsLocationsAuthzPoliciesService) Patch(name string, authzpolicy *AuthzPolicy) *ProjectsLocationsAuthzPoliciesPatchCall { - c := &ProjectsLocationsAuthzPoliciesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Name of the resource. Name is of the form +// projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_se +// curity_policy} gateway_security_policy should match the pattern:(^a-z +// ([a-z0-9-]{0,61}[a-z0-9])?$). +func (r *ProjectsLocationsGatewaySecurityPoliciesService) Patch(name string, gatewaysecuritypolicy *GatewaySecurityPolicy) *ProjectsLocationsGatewaySecurityPoliciesPatchCall { + c := &ProjectsLocationsGatewaySecurityPoliciesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.authzpolicy = authzpolicy - 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 *ProjectsLocationsAuthzPoliciesPatchCall) RequestId(requestId string) *ProjectsLocationsAuthzPoliciesPatchCall { - c.urlParams_.Set("requestId", requestId) + c.gatewaysecuritypolicy = gatewaysecuritypolicy return c } -// UpdateMask sets the optional parameter "updateMask": Required. Used to -// specify the fields to be overwritten in the `AuthzPolicy` 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 *ProjectsLocationsAuthzPoliciesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAuthzPoliciesPatchCall { +// UpdateMask sets the optional parameter "updateMask": Field mask is used to +// specify the fields to be overwritten in the GatewaySecurityPolicy resource +// by the update. The fields specified in the update_mask are relative to the +// resource, not the full request. A field will be overwritten if it is in the +// mask. If the user does not provide a mask then all fields will be +// overwritten. +func (c *ProjectsLocationsGatewaySecurityPoliciesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsGatewaySecurityPoliciesPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } @@ -10774,29 +13845,29 @@ func (c *ProjectsLocationsAuthzPoliciesPatchCall) UpdateMask(updateMask string) // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsAuthzPoliciesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthzPoliciesPatchCall { +func (c *ProjectsLocationsGatewaySecurityPoliciesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsGatewaySecurityPoliciesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAuthzPoliciesPatchCall) Context(ctx context.Context) *ProjectsLocationsAuthzPoliciesPatchCall { +func (c *ProjectsLocationsGatewaySecurityPoliciesPatchCall) Context(ctx context.Context) *ProjectsLocationsGatewaySecurityPoliciesPatchCall { 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 *ProjectsLocationsAuthzPoliciesPatchCall) Header() http.Header { +func (c *ProjectsLocationsGatewaySecurityPoliciesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAuthzPoliciesPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsGatewaySecurityPoliciesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.authzpolicy) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.gatewaysecuritypolicy) if err != nil { return nil, err } @@ -10812,16 +13883,16 @@ func (c *ProjectsLocationsAuthzPoliciesPatchCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authzPolicies.patch", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.gatewaySecurityPolicies.patch", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.authzPolicies.patch" call. +// Do executes the "networksecurity.projects.locations.gatewaySecurityPolicies.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 *ProjectsLocationsAuthzPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsGatewaySecurityPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -10851,65 +13922,71 @@ func (c *ProjectsLocationsAuthzPoliciesPatchCall) Do(opts ...googleapi.CallOptio if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authzPolicies.patch", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.gatewaySecurityPolicies.patch", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsAuthzPoliciesSetIamPolicyCall struct { - s *Service - resource string - googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsGatewaySecurityPoliciesRulesCreateCall struct { + s *Service + parent string + gatewaysecuritypolicyrule *GatewaySecurityPolicyRule + 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. +// Create: Creates a new GatewaySecurityPolicy in a given project and location. // -// - 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 *ProjectsLocationsAuthzPoliciesService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsAuthzPoliciesSetIamPolicyCall { - c := &ProjectsLocationsAuthzPoliciesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest +// - parent: The parent where this rule will be created. Format : +// projects/{project}/location/{location}/gatewaySecurityPolicies/*. +func (r *ProjectsLocationsGatewaySecurityPoliciesRulesService) Create(parent string, gatewaysecuritypolicyrule *GatewaySecurityPolicyRule) *ProjectsLocationsGatewaySecurityPoliciesRulesCreateCall { + c := &ProjectsLocationsGatewaySecurityPoliciesRulesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.gatewaysecuritypolicyrule = gatewaysecuritypolicyrule + return c +} + +// GatewaySecurityPolicyRuleId sets the optional parameter +// "gatewaySecurityPolicyRuleId": The ID to use for the rule, which will become +// the final component of the rule's resource name. This value should be 4-63 +// characters, and valid characters are /a-z-/. +func (c *ProjectsLocationsGatewaySecurityPoliciesRulesCreateCall) GatewaySecurityPolicyRuleId(gatewaySecurityPolicyRuleId string) *ProjectsLocationsGatewaySecurityPoliciesRulesCreateCall { + c.urlParams_.Set("gatewaySecurityPolicyRuleId", gatewaySecurityPolicyRuleId) 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 *ProjectsLocationsAuthzPoliciesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthzPoliciesSetIamPolicyCall { +func (c *ProjectsLocationsGatewaySecurityPoliciesRulesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsGatewaySecurityPoliciesRulesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAuthzPoliciesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAuthzPoliciesSetIamPolicyCall { +func (c *ProjectsLocationsGatewaySecurityPoliciesRulesCreateCall) Context(ctx context.Context) *ProjectsLocationsGatewaySecurityPoliciesRulesCreateCall { 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 *ProjectsLocationsAuthzPoliciesSetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsGatewaySecurityPoliciesRulesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAuthzPoliciesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsGatewaySecurityPoliciesRulesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googleiamv1setiampolicyrequest) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.gatewaysecuritypolicyrule) 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 := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/rules") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -10917,19 +13994,18 @@ func (c *ProjectsLocationsAuthzPoliciesSetIamPolicyCall) doRequest(alt string) ( } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authzPolicies.setIamPolicy", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.gatewaySecurityPolicies.rules.create", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.authzPolicies.setIamPolicy" call. +// Do executes the "networksecurity.projects.locations.gatewaySecurityPolicies.rules.create" 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 *ProjectsLocationsAuthzPoliciesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +// *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 *ProjectsLocationsGatewaySecurityPoliciesRulesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -10948,7 +14024,7 @@ func (c *ProjectsLocationsAuthzPoliciesSetIamPolicyCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1Policy{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -10959,88 +14035,77 @@ func (c *ProjectsLocationsAuthzPoliciesSetIamPolicyCall) Do(opts ...googleapi.Ca if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authzPolicies.setIamPolicy", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.gatewaySecurityPolicies.rules.create", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsAuthzPoliciesTestIamPermissionsCall struct { - s *Service - resource string - googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsGatewaySecurityPoliciesRulesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the specified -// resource. If the resource does not exist, this will return an empty set of -// permissions, not a `NOT_FOUND` error. Note: This operation is designed to be -// used for building permission-aware UIs and command-line tools, not for -// authorization checking. This operation may "fail open" without warning. +// Delete: Deletes a single GatewaySecurityPolicyRule. // -// - 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 *ProjectsLocationsAuthzPoliciesService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsAuthzPoliciesTestIamPermissionsCall { - c := &ProjectsLocationsAuthzPoliciesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest +// - name: A name of the GatewaySecurityPolicyRule to delete. Must be in the +// format +// `projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySe +// curityPolicy}/rules/*`. +func (r *ProjectsLocationsGatewaySecurityPoliciesRulesService) Delete(name string) *ProjectsLocationsGatewaySecurityPoliciesRulesDeleteCall { + c := &ProjectsLocationsGatewaySecurityPoliciesRulesDeleteCall{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 *ProjectsLocationsAuthzPoliciesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthzPoliciesTestIamPermissionsCall { +func (c *ProjectsLocationsGatewaySecurityPoliciesRulesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsGatewaySecurityPoliciesRulesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAuthzPoliciesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsAuthzPoliciesTestIamPermissionsCall { +func (c *ProjectsLocationsGatewaySecurityPoliciesRulesDeleteCall) Context(ctx context.Context) *ProjectsLocationsGatewaySecurityPoliciesRulesDeleteCall { 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 *ProjectsLocationsAuthzPoliciesTestIamPermissionsCall) Header() http.Header { +func (c *ProjectsLocationsGatewaySecurityPoliciesRulesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAuthzPoliciesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googleiamv1testiampermissionsrequest) - if err != nil { - return nil, err - } +func (c *ProjectsLocationsGatewaySecurityPoliciesRulesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authzPolicies.testIamPermissions", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.gatewaySecurityPolicies.rules.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.authzPolicies.testIamPermissions" call. +// Do executes the "networksecurity.projects.locations.gatewaySecurityPolicies.rules.delete" 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 *ProjectsLocationsAuthzPoliciesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { +// *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 *ProjectsLocationsGatewaySecurityPoliciesRulesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -11059,7 +14124,7 @@ func (c *ProjectsLocationsAuthzPoliciesTestIamPermissionsCall) Do(opts ...google if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1TestIamPermissionsResponse{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -11070,90 +14135,88 @@ func (c *ProjectsLocationsAuthzPoliciesTestIamPermissionsCall) Do(opts ...google if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.authzPolicies.testIamPermissions", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.gatewaySecurityPolicies.rules.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsClientTlsPoliciesCreateCall struct { - s *Service - parent string - clienttlspolicy *ClientTlsPolicy - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Create: Creates a new ClientTlsPolicy in a given project and location. -// -// - parent: The parent resource of the ClientTlsPolicy. Must be in the format -// `projects/*/locations/{location}`. -func (r *ProjectsLocationsClientTlsPoliciesService) Create(parent string, clienttlspolicy *ClientTlsPolicy) *ProjectsLocationsClientTlsPoliciesCreateCall { - c := &ProjectsLocationsClientTlsPoliciesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.clienttlspolicy = clienttlspolicy - return c +type ProjectsLocationsGatewaySecurityPoliciesRulesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// ClientTlsPolicyId sets the optional parameter "clientTlsPolicyId": Required. -// Short name of the ClientTlsPolicy resource to be created. This value should -// be 1-63 characters long, containing only letters, numbers, hyphens, and -// underscores, and should not start with a number. E.g. "client_mtls_policy". -func (c *ProjectsLocationsClientTlsPoliciesCreateCall) ClientTlsPolicyId(clientTlsPolicyId string) *ProjectsLocationsClientTlsPoliciesCreateCall { - c.urlParams_.Set("clientTlsPolicyId", clientTlsPolicyId) +// Get: Gets details of a single GatewaySecurityPolicyRule. +// +// - name: The name of the GatewaySecurityPolicyRule to retrieve. Format: +// projects/{project}/location/{location}/gatewaySecurityPolicies/*/rules/*. +func (r *ProjectsLocationsGatewaySecurityPoliciesRulesService) Get(name string) *ProjectsLocationsGatewaySecurityPoliciesRulesGetCall { + c := &ProjectsLocationsGatewaySecurityPoliciesRulesGetCall{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 *ProjectsLocationsClientTlsPoliciesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientTlsPoliciesCreateCall { +func (c *ProjectsLocationsGatewaySecurityPoliciesRulesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGatewaySecurityPoliciesRulesGetCall { 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 *ProjectsLocationsGatewaySecurityPoliciesRulesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGatewaySecurityPoliciesRulesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsClientTlsPoliciesCreateCall) Context(ctx context.Context) *ProjectsLocationsClientTlsPoliciesCreateCall { +func (c *ProjectsLocationsGatewaySecurityPoliciesRulesGetCall) Context(ctx context.Context) *ProjectsLocationsGatewaySecurityPoliciesRulesGetCall { 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 *ProjectsLocationsClientTlsPoliciesCreateCall) Header() http.Header { +func (c *ProjectsLocationsGatewaySecurityPoliciesRulesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsClientTlsPoliciesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.clienttlspolicy) - if err != nil { - return nil, err +func (c *ProjectsLocationsGatewaySecurityPoliciesRulesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/clientTlsPolicies") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.clientTlsPolicies.create", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.gatewaySecurityPolicies.rules.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.clientTlsPolicies.create" call. +// Do executes the "networksecurity.projects.locations.gatewaySecurityPolicies.rules.get" 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 *ProjectsLocationsClientTlsPoliciesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// *GatewaySecurityPolicyRule.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 *ProjectsLocationsGatewaySecurityPoliciesRulesGetCall) Do(opts ...googleapi.CallOption) (*GatewaySecurityPolicyRule, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -11172,7 +14235,7 @@ func (c *ProjectsLocationsClientTlsPoliciesCreateCall) Do(opts ...googleapi.Call if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &GatewaySecurityPolicyRule{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -11183,75 +14246,106 @@ func (c *ProjectsLocationsClientTlsPoliciesCreateCall) Do(opts ...googleapi.Call if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.clientTlsPolicies.create", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.gatewaySecurityPolicies.rules.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsClientTlsPoliciesDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsGatewaySecurityPoliciesRulesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a single ClientTlsPolicy. +// List: Lists GatewaySecurityPolicyRules in a given project and location. // -// - name: A name of the ClientTlsPolicy to delete. Must be in the format -// `projects/*/locations/{location}/clientTlsPolicies/*`. -func (r *ProjectsLocationsClientTlsPoliciesService) Delete(name string) *ProjectsLocationsClientTlsPoliciesDeleteCall { - c := &ProjectsLocationsClientTlsPoliciesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The project, location and GatewaySecurityPolicy from which the +// GatewaySecurityPolicyRules should be listed, specified in the format +// `projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySe +// curityPolicy}`. +func (r *ProjectsLocationsGatewaySecurityPoliciesRulesService) List(parent string) *ProjectsLocationsGatewaySecurityPoliciesRulesListCall { + c := &ProjectsLocationsGatewaySecurityPoliciesRulesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// GatewaySecurityPolicyRules to return per call. +func (c *ProjectsLocationsGatewaySecurityPoliciesRulesListCall) PageSize(pageSize int64) *ProjectsLocationsGatewaySecurityPoliciesRulesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The value returned by the +// last 'ListGatewaySecurityPolicyRulesResponse' Indicates that this is a +// continuation of a prior 'ListGatewaySecurityPolicyRules' call, and that the +// system should return the next page of data. +func (c *ProjectsLocationsGatewaySecurityPoliciesRulesListCall) PageToken(pageToken string) *ProjectsLocationsGatewaySecurityPoliciesRulesListCall { + 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 *ProjectsLocationsClientTlsPoliciesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientTlsPoliciesDeleteCall { +func (c *ProjectsLocationsGatewaySecurityPoliciesRulesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsGatewaySecurityPoliciesRulesListCall { 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 *ProjectsLocationsGatewaySecurityPoliciesRulesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsGatewaySecurityPoliciesRulesListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsClientTlsPoliciesDeleteCall) Context(ctx context.Context) *ProjectsLocationsClientTlsPoliciesDeleteCall { +func (c *ProjectsLocationsGatewaySecurityPoliciesRulesListCall) Context(ctx context.Context) *ProjectsLocationsGatewaySecurityPoliciesRulesListCall { 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 *ProjectsLocationsClientTlsPoliciesDeleteCall) Header() http.Header { +func (c *ProjectsLocationsGatewaySecurityPoliciesRulesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsClientTlsPoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsGatewaySecurityPoliciesRulesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/rules") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, nil) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.clientTlsPolicies.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.gatewaySecurityPolicies.rules.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.clientTlsPolicies.delete" call. +// Do executes the "networksecurity.projects.locations.gatewaySecurityPolicies.rules.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 *ProjectsLocationsClientTlsPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// *ListGatewaySecurityPolicyRulesResponse.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 *ProjectsLocationsGatewaySecurityPoliciesRulesListCall) Do(opts ...googleapi.CallOption) (*ListGatewaySecurityPolicyRulesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -11270,7 +14364,7 @@ func (c *ProjectsLocationsClientTlsPoliciesDeleteCall) Do(opts ...googleapi.Call if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &ListGatewaySecurityPolicyRulesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -11281,70 +14375,98 @@ func (c *ProjectsLocationsClientTlsPoliciesDeleteCall) Do(opts ...googleapi.Call if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.clientTlsPolicies.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.gatewaySecurityPolicies.rules.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsClientTlsPoliciesGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +// 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 *ProjectsLocationsGatewaySecurityPoliciesRulesListCall) Pages(ctx context.Context, f func(*ListGatewaySecurityPolicyRulesResponse) 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) + } } -// Get: Gets details of a single ClientTlsPolicy. +type ProjectsLocationsGatewaySecurityPoliciesRulesPatchCall struct { + s *Service + name string + gatewaysecuritypolicyrule *GatewaySecurityPolicyRule + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates the parameters of a single GatewaySecurityPolicyRule. // -// - name: A name of the ClientTlsPolicy to get. Must be in the format -// `projects/*/locations/{location}/clientTlsPolicies/*`. -func (r *ProjectsLocationsClientTlsPoliciesService) Get(name string) *ProjectsLocationsClientTlsPoliciesGetCall { - c := &ProjectsLocationsClientTlsPoliciesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Immutable. Name of the resource. ame is the full resource name so +// projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_se +// curity_policy}/rules/{rule} rule should match the pattern: (^a-z +// ([a-z0-9-]{0,61}[a-z0-9])?$). +func (r *ProjectsLocationsGatewaySecurityPoliciesRulesService) Patch(name string, gatewaysecuritypolicyrule *GatewaySecurityPolicyRule) *ProjectsLocationsGatewaySecurityPoliciesRulesPatchCall { + c := &ProjectsLocationsGatewaySecurityPoliciesRulesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.gatewaysecuritypolicyrule = gatewaysecuritypolicyrule + return c +} + +// UpdateMask sets the optional parameter "updateMask": Field mask is used to +// specify the fields to be overwritten in the GatewaySecurityPolicy resource +// by the update. The fields specified in the update_mask are relative to the +// resource, not the full request. A field will be overwritten if it is in the +// mask. If the user does not provide a mask then all fields will be +// overwritten. +func (c *ProjectsLocationsGatewaySecurityPoliciesRulesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsGatewaySecurityPoliciesRulesPatchCall { + 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 *ProjectsLocationsClientTlsPoliciesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientTlsPoliciesGetCall { +func (c *ProjectsLocationsGatewaySecurityPoliciesRulesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsGatewaySecurityPoliciesRulesPatchCall { 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 *ProjectsLocationsClientTlsPoliciesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsClientTlsPoliciesGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsClientTlsPoliciesGetCall) Context(ctx context.Context) *ProjectsLocationsClientTlsPoliciesGetCall { +func (c *ProjectsLocationsGatewaySecurityPoliciesRulesPatchCall) Context(ctx context.Context) *ProjectsLocationsGatewaySecurityPoliciesRulesPatchCall { 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 *ProjectsLocationsClientTlsPoliciesGetCall) Header() http.Header { +func (c *ProjectsLocationsGatewaySecurityPoliciesRulesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsClientTlsPoliciesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) +func (c *ProjectsLocationsGatewaySecurityPoliciesRulesPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.gatewaysecuritypolicyrule) + 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("GET", urls, nil) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } @@ -11352,17 +14474,16 @@ func (c *ProjectsLocationsClientTlsPoliciesGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.clientTlsPolicies.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.gatewaySecurityPolicies.rules.patch", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.clientTlsPolicies.get" call. +// Do executes the "networksecurity.projects.locations.gatewaySecurityPolicies.rules.patch" call. // Any non-2xx status code is an error. Response headers are in either -// *ClientTlsPolicy.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 *ProjectsLocationsClientTlsPoliciesGetCall) Do(opts ...googleapi.CallOption) (*ClientTlsPolicy, error) { +// *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 *ProjectsLocationsGatewaySecurityPoliciesRulesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -11381,7 +14502,7 @@ func (c *ProjectsLocationsClientTlsPoliciesGetCall) Do(opts ...googleapi.CallOpt if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ClientTlsPolicy{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -11392,107 +14513,99 @@ func (c *ProjectsLocationsClientTlsPoliciesGetCall) Do(opts ...googleapi.CallOpt if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.clientTlsPolicies.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.gatewaySecurityPolicies.rules.patch", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsClientTlsPoliciesGetIamPolicyCall struct { - s *Service - resource string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsInterceptDeploymentGroupsCreateCall struct { + s *Service + parent string + interceptdeploymentgroup *InterceptDeploymentGroup + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a deployment group in a given project and location. See +// https://google.aip.dev/133. +// +// - parent: The parent resource where this deployment group will be created. +// Format: projects/{project}/locations/{location}. +func (r *ProjectsLocationsInterceptDeploymentGroupsService) Create(parent string, interceptdeploymentgroup *InterceptDeploymentGroup) *ProjectsLocationsInterceptDeploymentGroupsCreateCall { + c := &ProjectsLocationsInterceptDeploymentGroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.interceptdeploymentgroup = interceptdeploymentgroup + return c } -// 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 *ProjectsLocationsClientTlsPoliciesService) GetIamPolicy(resource string) *ProjectsLocationsClientTlsPoliciesGetIamPolicyCall { - c := &ProjectsLocationsClientTlsPoliciesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource +// InterceptDeploymentGroupId sets the optional parameter +// "interceptDeploymentGroupId": Required. The ID to use for the new deployment +// group, which will become the final component of the deployment group's +// resource name. +func (c *ProjectsLocationsInterceptDeploymentGroupsCreateCall) InterceptDeploymentGroupId(interceptDeploymentGroupId string) *ProjectsLocationsInterceptDeploymentGroupsCreateCall { + c.urlParams_.Set("interceptDeploymentGroupId", interceptDeploymentGroupId) 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 *ProjectsLocationsClientTlsPoliciesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsClientTlsPoliciesGetIamPolicyCall { - c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) +// RequestId sets the optional parameter "requestId": A unique identifier for +// this request. Must be a UUID4. This request is only idempotent if a +// `request_id` is provided. See https://google.aip.dev/155 for more details. +func (c *ProjectsLocationsInterceptDeploymentGroupsCreateCall) RequestId(requestId string) *ProjectsLocationsInterceptDeploymentGroupsCreateCall { + 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 *ProjectsLocationsClientTlsPoliciesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientTlsPoliciesGetIamPolicyCall { +func (c *ProjectsLocationsInterceptDeploymentGroupsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsInterceptDeploymentGroupsCreateCall { 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 *ProjectsLocationsClientTlsPoliciesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsClientTlsPoliciesGetIamPolicyCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsClientTlsPoliciesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsClientTlsPoliciesGetIamPolicyCall { +func (c *ProjectsLocationsInterceptDeploymentGroupsCreateCall) Context(ctx context.Context) *ProjectsLocationsInterceptDeploymentGroupsCreateCall { 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 *ProjectsLocationsClientTlsPoliciesGetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsInterceptDeploymentGroupsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsClientTlsPoliciesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) +func (c *ProjectsLocationsInterceptDeploymentGroupsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.interceptdeploymentgroup) + if err != nil { + return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/interceptDeploymentGroups") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + 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, + "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.clientTlsPolicies.getIamPolicy", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.interceptDeploymentGroups.create", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.clientTlsPolicies.getIamPolicy" call. +// Do executes the "networksecurity.projects.locations.interceptDeploymentGroups.create" 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 *ProjectsLocationsClientTlsPoliciesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +// *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 *ProjectsLocationsInterceptDeploymentGroupsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -11511,7 +14624,7 @@ func (c *ProjectsLocationsClientTlsPoliciesGetIamPolicyCall) Do(opts ...googleap if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1Policy{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -11522,104 +14635,82 @@ func (c *ProjectsLocationsClientTlsPoliciesGetIamPolicyCall) Do(opts ...googleap if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.clientTlsPolicies.getIamPolicy", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.interceptDeploymentGroups.create", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsClientTlsPoliciesListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsInterceptDeploymentGroupsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists ClientTlsPolicies in a given project and location. +// Delete: Deletes a deployment group. See https://google.aip.dev/135. // -// - parent: The project and location from which the ClientTlsPolicies should -// be listed, specified in the format `projects/*/locations/{location}`. -func (r *ProjectsLocationsClientTlsPoliciesService) List(parent string) *ProjectsLocationsClientTlsPoliciesListCall { - c := &ProjectsLocationsClientTlsPoliciesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// PageSize sets the optional parameter "pageSize": Maximum number of -// ClientTlsPolicies to return per call. -func (c *ProjectsLocationsClientTlsPoliciesListCall) PageSize(pageSize int64) *ProjectsLocationsClientTlsPoliciesListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) +// - name: The deployment group to delete. +func (r *ProjectsLocationsInterceptDeploymentGroupsService) Delete(name string) *ProjectsLocationsInterceptDeploymentGroupsDeleteCall { + c := &ProjectsLocationsInterceptDeploymentGroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } -// PageToken sets the optional parameter "pageToken": The value returned by the -// last `ListClientTlsPoliciesResponse` Indicates that this is a continuation -// of a prior `ListClientTlsPolicies` call, and that the system should return -// the next page of data. -func (c *ProjectsLocationsClientTlsPoliciesListCall) PageToken(pageToken string) *ProjectsLocationsClientTlsPoliciesListCall { - c.urlParams_.Set("pageToken", pageToken) +// RequestId sets the optional parameter "requestId": A unique identifier for +// this request. Must be a UUID4. This request is only idempotent if a +// `request_id` is provided. See https://google.aip.dev/155 for more details. +func (c *ProjectsLocationsInterceptDeploymentGroupsDeleteCall) RequestId(requestId string) *ProjectsLocationsInterceptDeploymentGroupsDeleteCall { + 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 *ProjectsLocationsClientTlsPoliciesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientTlsPoliciesListCall { +func (c *ProjectsLocationsInterceptDeploymentGroupsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsInterceptDeploymentGroupsDeleteCall { 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 *ProjectsLocationsClientTlsPoliciesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsClientTlsPoliciesListCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsClientTlsPoliciesListCall) Context(ctx context.Context) *ProjectsLocationsClientTlsPoliciesListCall { +func (c *ProjectsLocationsInterceptDeploymentGroupsDeleteCall) Context(ctx context.Context) *ProjectsLocationsInterceptDeploymentGroupsDeleteCall { 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 *ProjectsLocationsClientTlsPoliciesListCall) Header() http.Header { +func (c *ProjectsLocationsInterceptDeploymentGroupsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsClientTlsPoliciesListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsInterceptDeploymentGroupsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/clientTlsPolicies") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + req, err := http.NewRequest("DELETE", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.clientTlsPolicies.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.interceptDeploymentGroups.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.clientTlsPolicies.list" call. +// Do executes the "networksecurity.projects.locations.interceptDeploymentGroups.delete" call. // Any non-2xx status code is an error. Response headers are in either -// *ListClientTlsPoliciesResponse.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 *ProjectsLocationsClientTlsPoliciesListCall) Do(opts ...googleapi.CallOption) (*ListClientTlsPoliciesResponse, error) { +// *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 *ProjectsLocationsInterceptDeploymentGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -11638,7 +14729,7 @@ func (c *ProjectsLocationsClientTlsPoliciesListCall) Do(opts ...googleapi.CallOp if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListClientTlsPoliciesResponse{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -11649,96 +14740,71 @@ func (c *ProjectsLocationsClientTlsPoliciesListCall) Do(opts ...googleapi.CallOp if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.clientTlsPolicies.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.interceptDeploymentGroups.delete", "response", internallog.HTTPResponse(res, b)) 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 *ProjectsLocationsClientTlsPoliciesListCall) Pages(ctx context.Context, f func(*ListClientTlsPoliciesResponse) 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 ProjectsLocationsClientTlsPoliciesPatchCall struct { - s *Service - name string - clienttlspolicy *ClientTlsPolicy - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsInterceptDeploymentGroupsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Patch: Updates the parameters of a single ClientTlsPolicy. +// Get: Gets a specific deployment group. See https://google.aip.dev/131. // -// - name: Name of the ClientTlsPolicy resource. It matches the pattern -// `projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}`. -func (r *ProjectsLocationsClientTlsPoliciesService) Patch(name string, clienttlspolicy *ClientTlsPolicy) *ProjectsLocationsClientTlsPoliciesPatchCall { - c := &ProjectsLocationsClientTlsPoliciesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the deployment group to retrieve. Format: +// projects/{project}/locations/{location}/interceptDeploymentGroups/{intercep +// t_deployment_group}. +func (r *ProjectsLocationsInterceptDeploymentGroupsService) Get(name string) *ProjectsLocationsInterceptDeploymentGroupsGetCall { + c := &ProjectsLocationsInterceptDeploymentGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.clienttlspolicy = clienttlspolicy - return c -} - -// UpdateMask sets the optional parameter "updateMask": Field mask is used to -// specify the fields to be overwritten in the ClientTlsPolicy resource by the -// update. The fields specified in the update_mask are relative to the -// resource, not the full request. A field will be overwritten if it is in the -// mask. If the user does not provide a mask then all fields will be -// overwritten. -func (c *ProjectsLocationsClientTlsPoliciesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsClientTlsPoliciesPatchCall { - 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 *ProjectsLocationsClientTlsPoliciesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientTlsPoliciesPatchCall { +func (c *ProjectsLocationsInterceptDeploymentGroupsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsInterceptDeploymentGroupsGetCall { 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 *ProjectsLocationsInterceptDeploymentGroupsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsInterceptDeploymentGroupsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsClientTlsPoliciesPatchCall) Context(ctx context.Context) *ProjectsLocationsClientTlsPoliciesPatchCall { +func (c *ProjectsLocationsInterceptDeploymentGroupsGetCall) Context(ctx context.Context) *ProjectsLocationsInterceptDeploymentGroupsGetCall { 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 *ProjectsLocationsClientTlsPoliciesPatchCall) Header() http.Header { +func (c *ProjectsLocationsInterceptDeploymentGroupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsClientTlsPoliciesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.clienttlspolicy) - if err != nil { - return nil, err +func (c *ProjectsLocationsInterceptDeploymentGroupsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } @@ -11746,16 +14812,17 @@ func (c *ProjectsLocationsClientTlsPoliciesPatchCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.clientTlsPolicies.patch", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.interceptDeploymentGroups.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.clientTlsPolicies.patch" call. +// Do executes the "networksecurity.projects.locations.interceptDeploymentGroups.get" 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 *ProjectsLocationsClientTlsPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// *InterceptDeploymentGroup.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 *ProjectsLocationsInterceptDeploymentGroupsGetCall) Do(opts ...googleapi.CallOption) (*InterceptDeploymentGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -11774,7 +14841,7 @@ func (c *ProjectsLocationsClientTlsPoliciesPatchCall) Do(opts ...googleapi.CallO if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &InterceptDeploymentGroup{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -11785,85 +14852,122 @@ func (c *ProjectsLocationsClientTlsPoliciesPatchCall) Do(opts ...googleapi.CallO if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.clientTlsPolicies.patch", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.interceptDeploymentGroups.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsClientTlsPoliciesSetIamPolicyCall struct { - s *Service - resource string - googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsInterceptDeploymentGroupsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists deployment groups in a given project and location. See +// https://google.aip.dev/132. +// +// - parent: The parent, which owns this collection of deployment groups. +// Example: `projects/123456789/locations/global`. See +// https://google.aip.dev/132 for more details. +func (r *ProjectsLocationsInterceptDeploymentGroupsService) List(parent string) *ProjectsLocationsInterceptDeploymentGroupsListCall { + c := &ProjectsLocationsInterceptDeploymentGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filter expression. See +// https://google.aip.dev/160#filtering for more details. +func (c *ProjectsLocationsInterceptDeploymentGroupsListCall) Filter(filter string) *ProjectsLocationsInterceptDeploymentGroupsListCall { + c.urlParams_.Set("filter", filter) + return c } -// 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 *ProjectsLocationsClientTlsPoliciesService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsClientTlsPoliciesSetIamPolicyCall { - c := &ProjectsLocationsClientTlsPoliciesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest +// OrderBy sets the optional parameter "orderBy": Sort expression. See +// https://google.aip.dev/132#ordering for more details. +func (c *ProjectsLocationsInterceptDeploymentGroupsListCall) OrderBy(orderBy string) *ProjectsLocationsInterceptDeploymentGroupsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": Requested page size. Server +// may return fewer items than requested. If unspecified, server will pick an +// appropriate default. See https://google.aip.dev/158 for more details. +func (c *ProjectsLocationsInterceptDeploymentGroupsListCall) PageSize(pageSize int64) *ProjectsLocationsInterceptDeploymentGroupsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, received +// from a previous `ListInterceptDeploymentGroups` call. Provide this to +// retrieve the subsequent page. When paginating, all other parameters provided +// to `ListInterceptDeploymentGroups` must match the call that provided the +// page token. See https://google.aip.dev/158 for more details. +func (c *ProjectsLocationsInterceptDeploymentGroupsListCall) PageToken(pageToken string) *ProjectsLocationsInterceptDeploymentGroupsListCall { + 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 *ProjectsLocationsClientTlsPoliciesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientTlsPoliciesSetIamPolicyCall { +func (c *ProjectsLocationsInterceptDeploymentGroupsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsInterceptDeploymentGroupsListCall { 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 *ProjectsLocationsInterceptDeploymentGroupsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsInterceptDeploymentGroupsListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsClientTlsPoliciesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsClientTlsPoliciesSetIamPolicyCall { +func (c *ProjectsLocationsInterceptDeploymentGroupsListCall) Context(ctx context.Context) *ProjectsLocationsInterceptDeploymentGroupsListCall { 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 *ProjectsLocationsClientTlsPoliciesSetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsInterceptDeploymentGroupsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsClientTlsPoliciesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googleiamv1setiampolicyrequest) - if err != nil { - return nil, err +func (c *ProjectsLocationsInterceptDeploymentGroupsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/interceptDeploymentGroups") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.clientTlsPolicies.setIamPolicy", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.interceptDeploymentGroups.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.clientTlsPolicies.setIamPolicy" call. +// Do executes the "networksecurity.projects.locations.interceptDeploymentGroups.list" 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 *ProjectsLocationsClientTlsPoliciesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +// *ListInterceptDeploymentGroupsResponse.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 *ProjectsLocationsInterceptDeploymentGroupsListCall) Do(opts ...googleapi.CallOption) (*ListInterceptDeploymentGroupsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -11882,7 +14986,7 @@ func (c *ProjectsLocationsClientTlsPoliciesSetIamPolicyCall) Do(opts ...googleap if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1Policy{ + ret := &ListInterceptDeploymentGroupsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -11893,88 +14997,121 @@ func (c *ProjectsLocationsClientTlsPoliciesSetIamPolicyCall) Do(opts ...googleap if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.clientTlsPolicies.setIamPolicy", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.interceptDeploymentGroups.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsClientTlsPoliciesTestIamPermissionsCall struct { - s *Service - resource string - googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// 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 *ProjectsLocationsInterceptDeploymentGroupsListCall) Pages(ctx context.Context, f func(*ListInterceptDeploymentGroupsResponse) 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) + } } -// 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. +type ProjectsLocationsInterceptDeploymentGroupsPatchCall struct { + s *Service + name string + interceptdeploymentgroup *InterceptDeploymentGroup + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates a deployment group. See https://google.aip.dev/134. // -// - 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 *ProjectsLocationsClientTlsPoliciesService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsClientTlsPoliciesTestIamPermissionsCall { - c := &ProjectsLocationsClientTlsPoliciesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest +// - name: Immutable. Identifier. The resource name of this deployment group, +// for example: +// `projects/123456789/locations/global/interceptDeploymentGroups/my-dg`. See +// https://google.aip.dev/122 for more details. +func (r *ProjectsLocationsInterceptDeploymentGroupsService) Patch(name string, interceptdeploymentgroup *InterceptDeploymentGroup) *ProjectsLocationsInterceptDeploymentGroupsPatchCall { + c := &ProjectsLocationsInterceptDeploymentGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.interceptdeploymentgroup = interceptdeploymentgroup + return c +} + +// RequestId sets the optional parameter "requestId": A unique identifier for +// this request. Must be a UUID4. This request is only idempotent if a +// `request_id` is provided. See https://google.aip.dev/155 for more details. +func (c *ProjectsLocationsInterceptDeploymentGroupsPatchCall) RequestId(requestId string) *ProjectsLocationsInterceptDeploymentGroupsPatchCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// UpdateMask sets the optional parameter "updateMask": The list of fields to +// update. Fields are specified relative to the deployment group (e.g. +// `description`; *not* `intercept_deployment_group.description`). See +// https://google.aip.dev/161 for more details. +func (c *ProjectsLocationsInterceptDeploymentGroupsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsInterceptDeploymentGroupsPatchCall { + 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 *ProjectsLocationsClientTlsPoliciesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsClientTlsPoliciesTestIamPermissionsCall { +func (c *ProjectsLocationsInterceptDeploymentGroupsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsInterceptDeploymentGroupsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsClientTlsPoliciesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsClientTlsPoliciesTestIamPermissionsCall { +func (c *ProjectsLocationsInterceptDeploymentGroupsPatchCall) Context(ctx context.Context) *ProjectsLocationsInterceptDeploymentGroupsPatchCall { 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 *ProjectsLocationsClientTlsPoliciesTestIamPermissionsCall) Header() http.Header { +func (c *ProjectsLocationsInterceptDeploymentGroupsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsClientTlsPoliciesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsInterceptDeploymentGroupsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googleiamv1testiampermissionsrequest) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.interceptdeploymentgroup) 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 := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.clientTlsPolicies.testIamPermissions", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.interceptDeploymentGroups.patch", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.clientTlsPolicies.testIamPermissions" call. +// Do executes the "networksecurity.projects.locations.interceptDeploymentGroups.patch" 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 *ProjectsLocationsClientTlsPoliciesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { +// *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 *ProjectsLocationsInterceptDeploymentGroupsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -11993,7 +15130,7 @@ func (c *ProjectsLocationsClientTlsPoliciesTestIamPermissionsCall) Do(opts ...go if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1TestIamPermissionsResponse{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -12004,51 +15141,43 @@ func (c *ProjectsLocationsClientTlsPoliciesTestIamPermissionsCall) Do(opts ...go if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.clientTlsPolicies.testIamPermissions", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.interceptDeploymentGroups.patch", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsFirewallEndpointAssociationsCreateCall struct { - s *Service - parent string - firewallendpointassociation *FirewallEndpointAssociation - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsInterceptDeploymentsCreateCall struct { + s *Service + parent string + interceptdeployment *InterceptDeployment + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a new FirewallEndpointAssociation in a given project and -// location. +// Create: Creates a deployment in a given project and location. See +// https://google.aip.dev/133. // -// - parent: Value for parent. -func (r *ProjectsLocationsFirewallEndpointAssociationsService) Create(parent string, firewallendpointassociation *FirewallEndpointAssociation) *ProjectsLocationsFirewallEndpointAssociationsCreateCall { - c := &ProjectsLocationsFirewallEndpointAssociationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The parent resource where this deployment will be created. Format: +// projects/{project}/locations/{location}. +func (r *ProjectsLocationsInterceptDeploymentsService) Create(parent string, interceptdeployment *InterceptDeployment) *ProjectsLocationsInterceptDeploymentsCreateCall { + c := &ProjectsLocationsInterceptDeploymentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.firewallendpointassociation = firewallendpointassociation + c.interceptdeployment = interceptdeployment return c } -// FirewallEndpointAssociationId sets the optional parameter -// "firewallEndpointAssociationId": Id of the requesting object. If -// auto-generating Id server-side, remove this field and -// firewall_endpoint_association_id from the method_signature of Create RPC. -func (c *ProjectsLocationsFirewallEndpointAssociationsCreateCall) FirewallEndpointAssociationId(firewallEndpointAssociationId string) *ProjectsLocationsFirewallEndpointAssociationsCreateCall { - c.urlParams_.Set("firewallEndpointAssociationId", firewallEndpointAssociationId) +// InterceptDeploymentId sets the optional parameter "interceptDeploymentId": +// Required. The ID to use for the new deployment, which will become the final +// component of the deployment's resource name. +func (c *ProjectsLocationsInterceptDeploymentsCreateCall) InterceptDeploymentId(interceptDeploymentId string) *ProjectsLocationsInterceptDeploymentsCreateCall { + c.urlParams_.Set("interceptDeploymentId", interceptDeploymentId) 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 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). -func (c *ProjectsLocationsFirewallEndpointAssociationsCreateCall) RequestId(requestId string) *ProjectsLocationsFirewallEndpointAssociationsCreateCall { +// RequestId sets the optional parameter "requestId": A unique identifier for +// this request. Must be a UUID4. This request is only idempotent if a +// `request_id` is provided. See https://google.aip.dev/155 for more details. +func (c *ProjectsLocationsInterceptDeploymentsCreateCall) RequestId(requestId string) *ProjectsLocationsInterceptDeploymentsCreateCall { c.urlParams_.Set("requestId", requestId) return c } @@ -12056,35 +15185,35 @@ func (c *ProjectsLocationsFirewallEndpointAssociationsCreateCall) RequestId(requ // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsFirewallEndpointAssociationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFirewallEndpointAssociationsCreateCall { +func (c *ProjectsLocationsInterceptDeploymentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsInterceptDeploymentsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsFirewallEndpointAssociationsCreateCall) Context(ctx context.Context) *ProjectsLocationsFirewallEndpointAssociationsCreateCall { +func (c *ProjectsLocationsInterceptDeploymentsCreateCall) Context(ctx context.Context) *ProjectsLocationsInterceptDeploymentsCreateCall { 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 *ProjectsLocationsFirewallEndpointAssociationsCreateCall) Header() http.Header { +func (c *ProjectsLocationsInterceptDeploymentsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFirewallEndpointAssociationsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsInterceptDeploymentsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.firewallendpointassociation) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.interceptdeployment) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/firewallEndpointAssociations") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/interceptDeployments") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -12094,16 +15223,16 @@ func (c *ProjectsLocationsFirewallEndpointAssociationsCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.firewallEndpointAssociations.create", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.interceptDeployments.create", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.firewallEndpointAssociations.create" call. +// Do executes the "networksecurity.projects.locations.interceptDeployments.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 *ProjectsLocationsFirewallEndpointAssociationsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsInterceptDeploymentsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -12133,11 +15262,11 @@ func (c *ProjectsLocationsFirewallEndpointAssociationsCreateCall) Do(opts ...goo if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.firewallEndpointAssociations.create", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.interceptDeployments.create", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsFirewallEndpointAssociationsDeleteCall struct { +type ProjectsLocationsInterceptDeploymentsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -12145,27 +15274,19 @@ type ProjectsLocationsFirewallEndpointAssociationsDeleteCall struct { header_ http.Header } -// Delete: Deletes a single FirewallEndpointAssociation. +// Delete: Deletes a deployment. See https://google.aip.dev/135. // // - name: Name of the resource. -func (r *ProjectsLocationsFirewallEndpointAssociationsService) Delete(name string) *ProjectsLocationsFirewallEndpointAssociationsDeleteCall { - c := &ProjectsLocationsFirewallEndpointAssociationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsInterceptDeploymentsService) Delete(name string) *ProjectsLocationsInterceptDeploymentsDeleteCall { + c := &ProjectsLocationsInterceptDeploymentsDeleteCall{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 will know to ignore the request if it has already -// been completed. The server will guarantee 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, 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). -func (c *ProjectsLocationsFirewallEndpointAssociationsDeleteCall) RequestId(requestId string) *ProjectsLocationsFirewallEndpointAssociationsDeleteCall { +// RequestId sets the optional parameter "requestId": A unique identifier for +// this request. Must be a UUID4. This request is only idempotent if a +// `request_id` is provided. See https://google.aip.dev/155 for more details. +func (c *ProjectsLocationsInterceptDeploymentsDeleteCall) RequestId(requestId string) *ProjectsLocationsInterceptDeploymentsDeleteCall { c.urlParams_.Set("requestId", requestId) return c } @@ -12173,27 +15294,27 @@ func (c *ProjectsLocationsFirewallEndpointAssociationsDeleteCall) RequestId(requ // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsFirewallEndpointAssociationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFirewallEndpointAssociationsDeleteCall { +func (c *ProjectsLocationsInterceptDeploymentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsInterceptDeploymentsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsFirewallEndpointAssociationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFirewallEndpointAssociationsDeleteCall { +func (c *ProjectsLocationsInterceptDeploymentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsInterceptDeploymentsDeleteCall { 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 *ProjectsLocationsFirewallEndpointAssociationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsInterceptDeploymentsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFirewallEndpointAssociationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsInterceptDeploymentsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -12207,16 +15328,16 @@ func (c *ProjectsLocationsFirewallEndpointAssociationsDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.firewallEndpointAssociations.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.interceptDeployments.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.firewallEndpointAssociations.delete" call. +// Do executes the "networksecurity.projects.locations.interceptDeployments.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 *ProjectsLocationsFirewallEndpointAssociationsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsInterceptDeploymentsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -12246,11 +15367,11 @@ func (c *ProjectsLocationsFirewallEndpointAssociationsDeleteCall) Do(opts ...goo if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.firewallEndpointAssociations.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.interceptDeployments.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsFirewallEndpointAssociationsGetCall struct { +type ProjectsLocationsInterceptDeploymentsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -12259,11 +15380,13 @@ type ProjectsLocationsFirewallEndpointAssociationsGetCall struct { header_ http.Header } -// Get: Gets details of a single FirewallEndpointAssociation. +// Get: Gets a specific deployment. See https://google.aip.dev/131. // -// - name: Name of the resource. -func (r *ProjectsLocationsFirewallEndpointAssociationsService) Get(name string) *ProjectsLocationsFirewallEndpointAssociationsGetCall { - c := &ProjectsLocationsFirewallEndpointAssociationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the deployment to retrieve. Format: +// projects/{project}/locations/{location}/interceptDeployments/{intercept_dep +// loyment}. +func (r *ProjectsLocationsInterceptDeploymentsService) Get(name string) *ProjectsLocationsInterceptDeploymentsGetCall { + c := &ProjectsLocationsInterceptDeploymentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -12271,7 +15394,7 @@ func (r *ProjectsLocationsFirewallEndpointAssociationsService) Get(name string) // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsFirewallEndpointAssociationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFirewallEndpointAssociationsGetCall { +func (c *ProjectsLocationsInterceptDeploymentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsInterceptDeploymentsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -12279,27 +15402,27 @@ func (c *ProjectsLocationsFirewallEndpointAssociationsGetCall) Fields(s ...googl // 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 *ProjectsLocationsFirewallEndpointAssociationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFirewallEndpointAssociationsGetCall { +func (c *ProjectsLocationsInterceptDeploymentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsInterceptDeploymentsGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsFirewallEndpointAssociationsGetCall) Context(ctx context.Context) *ProjectsLocationsFirewallEndpointAssociationsGetCall { +func (c *ProjectsLocationsInterceptDeploymentsGetCall) Context(ctx context.Context) *ProjectsLocationsInterceptDeploymentsGetCall { 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 *ProjectsLocationsFirewallEndpointAssociationsGetCall) Header() http.Header { +func (c *ProjectsLocationsInterceptDeploymentsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFirewallEndpointAssociationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsInterceptDeploymentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -12316,17 +15439,17 @@ func (c *ProjectsLocationsFirewallEndpointAssociationsGetCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.firewallEndpointAssociations.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.interceptDeployments.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.firewallEndpointAssociations.get" call. +// Do executes the "networksecurity.projects.locations.interceptDeployments.get" call. // Any non-2xx status code is an error. Response headers are in either -// *FirewallEndpointAssociation.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 *ProjectsLocationsFirewallEndpointAssociationsGetCall) Do(opts ...googleapi.CallOption) (*FirewallEndpointAssociation, error) { +// *InterceptDeployment.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 *ProjectsLocationsInterceptDeploymentsGetCall) Do(opts ...googleapi.CallOption) (*InterceptDeployment, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -12345,7 +15468,7 @@ func (c *ProjectsLocationsFirewallEndpointAssociationsGetCall) Do(opts ...google if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &FirewallEndpointAssociation{ + ret := &InterceptDeployment{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -12356,11 +15479,11 @@ func (c *ProjectsLocationsFirewallEndpointAssociationsGetCall) Do(opts ...google if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.firewallEndpointAssociations.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.interceptDeployments.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsFirewallEndpointAssociationsListCall struct { +type ProjectsLocationsInterceptDeploymentsListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -12369,39 +15492,46 @@ type ProjectsLocationsFirewallEndpointAssociationsListCall struct { header_ http.Header } -// List: Lists Associations in a given project and location. +// List: Lists deployments in a given project and location. See +// https://google.aip.dev/132. // -// - parent: Parent value for ListAssociationsRequest. -func (r *ProjectsLocationsFirewallEndpointAssociationsService) List(parent string) *ProjectsLocationsFirewallEndpointAssociationsListCall { - c := &ProjectsLocationsFirewallEndpointAssociationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The parent, which owns this collection of deployments. Example: +// `projects/123456789/locations/us-central1-a`. See +// https://google.aip.dev/132 for more details. +func (r *ProjectsLocationsInterceptDeploymentsService) List(parent string) *ProjectsLocationsInterceptDeploymentsListCall { + c := &ProjectsLocationsInterceptDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// Filter sets the optional parameter "filter": Filtering results -func (c *ProjectsLocationsFirewallEndpointAssociationsListCall) Filter(filter string) *ProjectsLocationsFirewallEndpointAssociationsListCall { +// Filter sets the optional parameter "filter": Filter expression. See +// https://google.aip.dev/160#filtering for more details. +func (c *ProjectsLocationsInterceptDeploymentsListCall) Filter(filter string) *ProjectsLocationsInterceptDeploymentsListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": Hint for how to order the -// results -func (c *ProjectsLocationsFirewallEndpointAssociationsListCall) OrderBy(orderBy string) *ProjectsLocationsFirewallEndpointAssociationsListCall { +// OrderBy sets the optional parameter "orderBy": Sort expression. See +// https://google.aip.dev/132#ordering for more details. +func (c *ProjectsLocationsInterceptDeploymentsListCall) OrderBy(orderBy string) *ProjectsLocationsInterceptDeploymentsListCall { c.urlParams_.Set("orderBy", orderBy) return c } // PageSize sets the optional parameter "pageSize": Requested page size. Server // may return fewer items than requested. If unspecified, server will pick an -// appropriate default. -func (c *ProjectsLocationsFirewallEndpointAssociationsListCall) PageSize(pageSize int64) *ProjectsLocationsFirewallEndpointAssociationsListCall { +// appropriate default. See https://google.aip.dev/158 for more details. +func (c *ProjectsLocationsInterceptDeploymentsListCall) PageSize(pageSize int64) *ProjectsLocationsInterceptDeploymentsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A token identifying a -// page of results the server should return. -func (c *ProjectsLocationsFirewallEndpointAssociationsListCall) PageToken(pageToken string) *ProjectsLocationsFirewallEndpointAssociationsListCall { +// PageToken sets the optional parameter "pageToken": A page token, received +// from a previous `ListInterceptDeployments` call. Provide this to retrieve +// the subsequent page. When paginating, all other parameters provided to +// `ListInterceptDeployments` must match the call that provided the page token. +// See https://google.aip.dev/158 for more details. +func (c *ProjectsLocationsInterceptDeploymentsListCall) PageToken(pageToken string) *ProjectsLocationsInterceptDeploymentsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -12409,7 +15539,7 @@ func (c *ProjectsLocationsFirewallEndpointAssociationsListCall) PageToken(pageTo // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsFirewallEndpointAssociationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFirewallEndpointAssociationsListCall { +func (c *ProjectsLocationsInterceptDeploymentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsInterceptDeploymentsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -12417,34 +15547,34 @@ func (c *ProjectsLocationsFirewallEndpointAssociationsListCall) Fields(s ...goog // 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 *ProjectsLocationsFirewallEndpointAssociationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFirewallEndpointAssociationsListCall { +func (c *ProjectsLocationsInterceptDeploymentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsInterceptDeploymentsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsFirewallEndpointAssociationsListCall) Context(ctx context.Context) *ProjectsLocationsFirewallEndpointAssociationsListCall { +func (c *ProjectsLocationsInterceptDeploymentsListCall) Context(ctx context.Context) *ProjectsLocationsInterceptDeploymentsListCall { 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 *ProjectsLocationsFirewallEndpointAssociationsListCall) Header() http.Header { +func (c *ProjectsLocationsInterceptDeploymentsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFirewallEndpointAssociationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsInterceptDeploymentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/firewallEndpointAssociations") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/interceptDeployments") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -12454,17 +15584,17 @@ func (c *ProjectsLocationsFirewallEndpointAssociationsListCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.firewallEndpointAssociations.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.interceptDeployments.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.firewallEndpointAssociations.list" call. +// Do executes the "networksecurity.projects.locations.interceptDeployments.list" call. // Any non-2xx status code is an error. Response headers are in either -// *ListFirewallEndpointAssociationsResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use +// *ListInterceptDeploymentsResponse.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 *ProjectsLocationsFirewallEndpointAssociationsListCall) Do(opts ...googleapi.CallOption) (*ListFirewallEndpointAssociationsResponse, error) { +func (c *ProjectsLocationsInterceptDeploymentsListCall) Do(opts ...googleapi.CallOption) (*ListInterceptDeploymentsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -12483,7 +15613,7 @@ func (c *ProjectsLocationsFirewallEndpointAssociationsListCall) Do(opts ...googl if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListFirewallEndpointAssociationsResponse{ + ret := &ListInterceptDeploymentsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -12494,14 +15624,14 @@ func (c *ProjectsLocationsFirewallEndpointAssociationsListCall) Do(opts ...googl if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.firewallEndpointAssociations.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.interceptDeployments.list", "response", internallog.HTTPResponse(res, b)) 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 *ProjectsLocationsFirewallEndpointAssociationsListCall) Pages(ctx context.Context, f func(*ListFirewallEndpointAssociationsResponse) error) error { +func (c *ProjectsLocationsInterceptDeploymentsListCall) Pages(ctx context.Context, f func(*ListInterceptDeploymentsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -12519,48 +15649,41 @@ func (c *ProjectsLocationsFirewallEndpointAssociationsListCall) Pages(ctx contex } } -type ProjectsLocationsFirewallEndpointAssociationsPatchCall struct { - s *Service - name string - firewallendpointassociation *FirewallEndpointAssociation - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsInterceptDeploymentsPatchCall struct { + s *Service + name string + interceptdeployment *InterceptDeployment + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Update a single FirewallEndpointAssociation. +// Patch: Updates a deployment. See https://google.aip.dev/134. // -// - name: Immutable. Identifier. name of resource. -func (r *ProjectsLocationsFirewallEndpointAssociationsService) Patch(name string, firewallendpointassociation *FirewallEndpointAssociation) *ProjectsLocationsFirewallEndpointAssociationsPatchCall { - c := &ProjectsLocationsFirewallEndpointAssociationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Immutable. Identifier. The resource name of this deployment, for +// example: +// `projects/123456789/locations/us-central1-a/interceptDeployments/my-dep`. +// See https://google.aip.dev/122 for more details. +func (r *ProjectsLocationsInterceptDeploymentsService) Patch(name string, interceptdeployment *InterceptDeployment) *ProjectsLocationsInterceptDeploymentsPatchCall { + c := &ProjectsLocationsInterceptDeploymentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.firewallendpointassociation = firewallendpointassociation + c.interceptdeployment = interceptdeployment 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 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). -func (c *ProjectsLocationsFirewallEndpointAssociationsPatchCall) RequestId(requestId string) *ProjectsLocationsFirewallEndpointAssociationsPatchCall { +// RequestId sets the optional parameter "requestId": A unique identifier for +// this request. Must be a UUID4. This request is only idempotent if a +// `request_id` is provided. See https://google.aip.dev/155 for more details. +func (c *ProjectsLocationsInterceptDeploymentsPatchCall) RequestId(requestId string) *ProjectsLocationsInterceptDeploymentsPatchCall { c.urlParams_.Set("requestId", requestId) return c } -// UpdateMask sets the optional parameter "updateMask": Required. Field mask is -// used to specify the fields to be overwritten in the Association resource by -// the update. The fields specified in the update_mask are relative to the -// resource, not the full request. A field will be overwritten if it is in the -// mask. If the user does not provide a mask then all fields will be -// overwritten. -func (c *ProjectsLocationsFirewallEndpointAssociationsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFirewallEndpointAssociationsPatchCall { +// UpdateMask sets the optional parameter "updateMask": The list of fields to +// update. Fields are specified relative to the deployment (e.g. `description`; +// *not* `intercept_deployment.description`). See https://google.aip.dev/161 +// for more details. +func (c *ProjectsLocationsInterceptDeploymentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsInterceptDeploymentsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } @@ -12568,29 +15691,29 @@ func (c *ProjectsLocationsFirewallEndpointAssociationsPatchCall) UpdateMask(upda // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsFirewallEndpointAssociationsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsFirewallEndpointAssociationsPatchCall { +func (c *ProjectsLocationsInterceptDeploymentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsInterceptDeploymentsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsFirewallEndpointAssociationsPatchCall) Context(ctx context.Context) *ProjectsLocationsFirewallEndpointAssociationsPatchCall { +func (c *ProjectsLocationsInterceptDeploymentsPatchCall) Context(ctx context.Context) *ProjectsLocationsInterceptDeploymentsPatchCall { 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 *ProjectsLocationsFirewallEndpointAssociationsPatchCall) Header() http.Header { +func (c *ProjectsLocationsInterceptDeploymentsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFirewallEndpointAssociationsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsInterceptDeploymentsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.firewallendpointassociation) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.interceptdeployment) if err != nil { return nil, err } @@ -12606,16 +15729,16 @@ func (c *ProjectsLocationsFirewallEndpointAssociationsPatchCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.firewallEndpointAssociations.patch", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.interceptDeployments.patch", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.firewallEndpointAssociations.patch" call. +// Do executes the "networksecurity.projects.locations.interceptDeployments.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 *ProjectsLocationsFirewallEndpointAssociationsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsInterceptDeploymentsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -12645,72 +15768,80 @@ func (c *ProjectsLocationsFirewallEndpointAssociationsPatchCall) Do(opts ...goog if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.firewallEndpointAssociations.patch", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.interceptDeployments.patch", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsGatewaySecurityPoliciesCreateCall struct { - s *Service - parent string - gatewaysecuritypolicy *GatewaySecurityPolicy - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsInterceptEndpointGroupAssociationsCreateCall struct { + s *Service + parent string + interceptendpointgroupassociation *InterceptEndpointGroupAssociation + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a new GatewaySecurityPolicy in a given project and location. +// Create: Creates an association in a given project and location. See +// https://google.aip.dev/133. // -// - parent: The parent resource of the GatewaySecurityPolicy. Must be in the -// format `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsGatewaySecurityPoliciesService) Create(parent string, gatewaysecuritypolicy *GatewaySecurityPolicy) *ProjectsLocationsGatewaySecurityPoliciesCreateCall { - c := &ProjectsLocationsGatewaySecurityPoliciesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The parent resource where this association will be created. +// Format: projects/{project}/locations/{location}. +func (r *ProjectsLocationsInterceptEndpointGroupAssociationsService) Create(parent string, interceptendpointgroupassociation *InterceptEndpointGroupAssociation) *ProjectsLocationsInterceptEndpointGroupAssociationsCreateCall { + c := &ProjectsLocationsInterceptEndpointGroupAssociationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.gatewaysecuritypolicy = gatewaysecuritypolicy + c.interceptendpointgroupassociation = interceptendpointgroupassociation return c } -// GatewaySecurityPolicyId sets the optional parameter -// "gatewaySecurityPolicyId": Required. Short name of the GatewaySecurityPolicy -// resource to be created. This value should be 1-63 characters long, -// containing only letters, numbers, hyphens, and underscores, and should not -// start with a number. E.g. "gateway_security_policy1". -func (c *ProjectsLocationsGatewaySecurityPoliciesCreateCall) GatewaySecurityPolicyId(gatewaySecurityPolicyId string) *ProjectsLocationsGatewaySecurityPoliciesCreateCall { - c.urlParams_.Set("gatewaySecurityPolicyId", gatewaySecurityPolicyId) +// InterceptEndpointGroupAssociationId sets the optional parameter +// "interceptEndpointGroupAssociationId": The ID to use for the new +// association, which will become the final component of the endpoint group's +// resource name. If not provided, the server will generate a unique ID. +func (c *ProjectsLocationsInterceptEndpointGroupAssociationsCreateCall) InterceptEndpointGroupAssociationId(interceptEndpointGroupAssociationId string) *ProjectsLocationsInterceptEndpointGroupAssociationsCreateCall { + c.urlParams_.Set("interceptEndpointGroupAssociationId", interceptEndpointGroupAssociationId) + return c +} + +// RequestId sets the optional parameter "requestId": A unique identifier for +// this request. Must be a UUID4. This request is only idempotent if a +// `request_id` is provided. See https://google.aip.dev/155 for more details. +func (c *ProjectsLocationsInterceptEndpointGroupAssociationsCreateCall) RequestId(requestId string) *ProjectsLocationsInterceptEndpointGroupAssociationsCreateCall { + 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 *ProjectsLocationsGatewaySecurityPoliciesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsGatewaySecurityPoliciesCreateCall { +func (c *ProjectsLocationsInterceptEndpointGroupAssociationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsInterceptEndpointGroupAssociationsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsGatewaySecurityPoliciesCreateCall) Context(ctx context.Context) *ProjectsLocationsGatewaySecurityPoliciesCreateCall { +func (c *ProjectsLocationsInterceptEndpointGroupAssociationsCreateCall) Context(ctx context.Context) *ProjectsLocationsInterceptEndpointGroupAssociationsCreateCall { 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 *ProjectsLocationsGatewaySecurityPoliciesCreateCall) Header() http.Header { +func (c *ProjectsLocationsInterceptEndpointGroupAssociationsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsGatewaySecurityPoliciesCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsInterceptEndpointGroupAssociationsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.gatewaysecuritypolicy) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.interceptendpointgroupassociation) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/gatewaySecurityPolicies") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/interceptEndpointGroupAssociations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -12720,16 +15851,16 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesCreateCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.gatewaySecurityPolicies.create", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.interceptEndpointGroupAssociations.create", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.gatewaySecurityPolicies.create" call. +// Do executes the "networksecurity.projects.locations.interceptEndpointGroupAssociations.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 *ProjectsLocationsGatewaySecurityPoliciesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsInterceptEndpointGroupAssociationsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -12759,11 +15890,11 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesCreateCall) Do(opts ...googleap if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.gatewaySecurityPolicies.create", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.interceptEndpointGroupAssociations.create", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsGatewaySecurityPoliciesDeleteCall struct { +type ProjectsLocationsInterceptEndpointGroupAssociationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -12771,40 +15902,47 @@ type ProjectsLocationsGatewaySecurityPoliciesDeleteCall struct { header_ http.Header } -// Delete: Deletes a single GatewaySecurityPolicy. +// Delete: Deletes an association. See https://google.aip.dev/135. // -// - name: A name of the GatewaySecurityPolicy to delete. Must be in the format -// `projects/{project}/locations/{location}/gatewaySecurityPolicies/*`. -func (r *ProjectsLocationsGatewaySecurityPoliciesService) Delete(name string) *ProjectsLocationsGatewaySecurityPoliciesDeleteCall { - c := &ProjectsLocationsGatewaySecurityPoliciesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The association to delete. +func (r *ProjectsLocationsInterceptEndpointGroupAssociationsService) Delete(name string) *ProjectsLocationsInterceptEndpointGroupAssociationsDeleteCall { + c := &ProjectsLocationsInterceptEndpointGroupAssociationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } +// RequestId sets the optional parameter "requestId": A unique identifier for +// this request. Must be a UUID4. This request is only idempotent if a +// `request_id` is provided. See https://google.aip.dev/155 for more details. +func (c *ProjectsLocationsInterceptEndpointGroupAssociationsDeleteCall) RequestId(requestId string) *ProjectsLocationsInterceptEndpointGroupAssociationsDeleteCall { + 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 *ProjectsLocationsGatewaySecurityPoliciesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsGatewaySecurityPoliciesDeleteCall { +func (c *ProjectsLocationsInterceptEndpointGroupAssociationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsInterceptEndpointGroupAssociationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsGatewaySecurityPoliciesDeleteCall) Context(ctx context.Context) *ProjectsLocationsGatewaySecurityPoliciesDeleteCall { +func (c *ProjectsLocationsInterceptEndpointGroupAssociationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsInterceptEndpointGroupAssociationsDeleteCall { 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 *ProjectsLocationsGatewaySecurityPoliciesDeleteCall) Header() http.Header { +func (c *ProjectsLocationsInterceptEndpointGroupAssociationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsGatewaySecurityPoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsInterceptEndpointGroupAssociationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -12818,16 +15956,16 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesDeleteCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.gatewaySecurityPolicies.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.interceptEndpointGroupAssociations.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.gatewaySecurityPolicies.delete" call. +// Do executes the "networksecurity.projects.locations.interceptEndpointGroupAssociations.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 *ProjectsLocationsGatewaySecurityPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsInterceptEndpointGroupAssociationsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -12857,11 +15995,11 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesDeleteCall) Do(opts ...googleap if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.gatewaySecurityPolicies.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.interceptEndpointGroupAssociations.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsGatewaySecurityPoliciesGetCall struct { +type ProjectsLocationsInterceptEndpointGroupAssociationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -12870,12 +16008,13 @@ type ProjectsLocationsGatewaySecurityPoliciesGetCall struct { header_ http.Header } -// Get: Gets details of a single GatewaySecurityPolicy. +// Get: Gets a specific association. See https://google.aip.dev/131. // -// - name: A name of the GatewaySecurityPolicy to get. Must be in the format -// `projects/{project}/locations/{location}/gatewaySecurityPolicies/*`. -func (r *ProjectsLocationsGatewaySecurityPoliciesService) Get(name string) *ProjectsLocationsGatewaySecurityPoliciesGetCall { - c := &ProjectsLocationsGatewaySecurityPoliciesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the association to retrieve. Format: +// projects/{project}/locations/{location}/interceptEndpointGroupAssociations/ +// {intercept_endpoint_group_association}. +func (r *ProjectsLocationsInterceptEndpointGroupAssociationsService) Get(name string) *ProjectsLocationsInterceptEndpointGroupAssociationsGetCall { + c := &ProjectsLocationsInterceptEndpointGroupAssociationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -12883,7 +16022,7 @@ func (r *ProjectsLocationsGatewaySecurityPoliciesService) Get(name string) *Proj // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsGatewaySecurityPoliciesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGatewaySecurityPoliciesGetCall { +func (c *ProjectsLocationsInterceptEndpointGroupAssociationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsInterceptEndpointGroupAssociationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -12891,27 +16030,27 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesGetCall) Fields(s ...googleapi. // 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 *ProjectsLocationsGatewaySecurityPoliciesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGatewaySecurityPoliciesGetCall { +func (c *ProjectsLocationsInterceptEndpointGroupAssociationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsInterceptEndpointGroupAssociationsGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsGatewaySecurityPoliciesGetCall) Context(ctx context.Context) *ProjectsLocationsGatewaySecurityPoliciesGetCall { +func (c *ProjectsLocationsInterceptEndpointGroupAssociationsGetCall) Context(ctx context.Context) *ProjectsLocationsInterceptEndpointGroupAssociationsGetCall { 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 *ProjectsLocationsGatewaySecurityPoliciesGetCall) Header() http.Header { +func (c *ProjectsLocationsInterceptEndpointGroupAssociationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsGatewaySecurityPoliciesGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsInterceptEndpointGroupAssociationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -12928,17 +16067,17 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.gatewaySecurityPolicies.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.interceptEndpointGroupAssociations.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.gatewaySecurityPolicies.get" call. +// Do executes the "networksecurity.projects.locations.interceptEndpointGroupAssociations.get" call. // Any non-2xx status code is an error. Response headers are in either -// *GatewaySecurityPolicy.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 *ProjectsLocationsGatewaySecurityPoliciesGetCall) Do(opts ...googleapi.CallOption) (*GatewaySecurityPolicy, error) { +// *InterceptEndpointGroupAssociation.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 *ProjectsLocationsInterceptEndpointGroupAssociationsGetCall) Do(opts ...googleapi.CallOption) (*InterceptEndpointGroupAssociation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -12957,7 +16096,7 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesGetCall) Do(opts ...googleapi.C if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GatewaySecurityPolicy{ + ret := &InterceptEndpointGroupAssociation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -12968,11 +16107,11 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesGetCall) Do(opts ...googleapi.C if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.gatewaySecurityPolicies.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.interceptEndpointGroupAssociations.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsGatewaySecurityPoliciesListCall struct { +type ProjectsLocationsInterceptEndpointGroupAssociationsListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -12981,29 +16120,46 @@ type ProjectsLocationsGatewaySecurityPoliciesListCall struct { header_ http.Header } -// List: Lists GatewaySecurityPolicies in a given project and location. +// List: Lists associations in a given project and location. See +// https://google.aip.dev/132. // -// - parent: The project and location from which the GatewaySecurityPolicies -// should be listed, specified in the format -// `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsGatewaySecurityPoliciesService) List(parent string) *ProjectsLocationsGatewaySecurityPoliciesListCall { - c := &ProjectsLocationsGatewaySecurityPoliciesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The parent, which owns this collection of associations. Example: +// `projects/123456789/locations/global`. See https://google.aip.dev/132 for +// more details. +func (r *ProjectsLocationsInterceptEndpointGroupAssociationsService) List(parent string) *ProjectsLocationsInterceptEndpointGroupAssociationsListCall { + c := &ProjectsLocationsInterceptEndpointGroupAssociationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// PageSize sets the optional parameter "pageSize": Maximum number of -// GatewaySecurityPolicies to return per call. -func (c *ProjectsLocationsGatewaySecurityPoliciesListCall) PageSize(pageSize int64) *ProjectsLocationsGatewaySecurityPoliciesListCall { +// Filter sets the optional parameter "filter": Filter expression. See +// https://google.aip.dev/160#filtering for more details. +func (c *ProjectsLocationsInterceptEndpointGroupAssociationsListCall) Filter(filter string) *ProjectsLocationsInterceptEndpointGroupAssociationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": Sort expression. See +// https://google.aip.dev/132#ordering for more details. +func (c *ProjectsLocationsInterceptEndpointGroupAssociationsListCall) OrderBy(orderBy string) *ProjectsLocationsInterceptEndpointGroupAssociationsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": Requested page size. Server +// may return fewer items than requested. If unspecified, server will pick an +// appropriate default. See https://google.aip.dev/158 for more details. +func (c *ProjectsLocationsInterceptEndpointGroupAssociationsListCall) PageSize(pageSize int64) *ProjectsLocationsInterceptEndpointGroupAssociationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The value returned by the -// last 'ListGatewaySecurityPoliciesResponse' Indicates that this is a -// continuation of a prior 'ListGatewaySecurityPolicies' call, and that the -// system should return the next page of data. -func (c *ProjectsLocationsGatewaySecurityPoliciesListCall) PageToken(pageToken string) *ProjectsLocationsGatewaySecurityPoliciesListCall { +// PageToken sets the optional parameter "pageToken": A page token, received +// from a previous `ListInterceptEndpointGroups` call. Provide this to retrieve +// the subsequent page. When paginating, all other parameters provided to +// `ListInterceptEndpointGroups` must match the call that provided the page +// token. See https://google.aip.dev/158 for more details. +func (c *ProjectsLocationsInterceptEndpointGroupAssociationsListCall) PageToken(pageToken string) *ProjectsLocationsInterceptEndpointGroupAssociationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -13011,7 +16167,7 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesListCall) PageToken(pageToken s // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsGatewaySecurityPoliciesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsGatewaySecurityPoliciesListCall { +func (c *ProjectsLocationsInterceptEndpointGroupAssociationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsInterceptEndpointGroupAssociationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -13019,34 +16175,34 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesListCall) Fields(s ...googleapi // 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 *ProjectsLocationsGatewaySecurityPoliciesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsGatewaySecurityPoliciesListCall { +func (c *ProjectsLocationsInterceptEndpointGroupAssociationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsInterceptEndpointGroupAssociationsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsGatewaySecurityPoliciesListCall) Context(ctx context.Context) *ProjectsLocationsGatewaySecurityPoliciesListCall { +func (c *ProjectsLocationsInterceptEndpointGroupAssociationsListCall) Context(ctx context.Context) *ProjectsLocationsInterceptEndpointGroupAssociationsListCall { 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 *ProjectsLocationsGatewaySecurityPoliciesListCall) Header() http.Header { +func (c *ProjectsLocationsInterceptEndpointGroupAssociationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsGatewaySecurityPoliciesListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsInterceptEndpointGroupAssociationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/gatewaySecurityPolicies") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/interceptEndpointGroupAssociations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -13056,17 +16212,17 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.gatewaySecurityPolicies.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.interceptEndpointGroupAssociations.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.gatewaySecurityPolicies.list" call. +// Do executes the "networksecurity.projects.locations.interceptEndpointGroupAssociations.list" call. // Any non-2xx status code is an error. Response headers are in either -// *ListGatewaySecurityPoliciesResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use +// *ListInterceptEndpointGroupAssociationsResponse.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 *ProjectsLocationsGatewaySecurityPoliciesListCall) Do(opts ...googleapi.CallOption) (*ListGatewaySecurityPoliciesResponse, error) { +func (c *ProjectsLocationsInterceptEndpointGroupAssociationsListCall) Do(opts ...googleapi.CallOption) (*ListInterceptEndpointGroupAssociationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -13085,7 +16241,7 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesListCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListGatewaySecurityPoliciesResponse{ + ret := &ListInterceptEndpointGroupAssociationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -13096,14 +16252,14 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesListCall) Do(opts ...googleapi. if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.gatewaySecurityPolicies.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.interceptEndpointGroupAssociations.list", "response", internallog.HTTPResponse(res, b)) 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 *ProjectsLocationsGatewaySecurityPoliciesListCall) Pages(ctx context.Context, f func(*ListGatewaySecurityPoliciesResponse) error) error { +func (c *ProjectsLocationsInterceptEndpointGroupAssociationsListCall) Pages(ctx context.Context, f func(*ListInterceptEndpointGroupAssociationsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -13121,35 +16277,41 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesListCall) Pages(ctx context.Con } } -type ProjectsLocationsGatewaySecurityPoliciesPatchCall struct { - s *Service - name string - gatewaysecuritypolicy *GatewaySecurityPolicy - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsInterceptEndpointGroupAssociationsPatchCall struct { + s *Service + name string + interceptendpointgroupassociation *InterceptEndpointGroupAssociation + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Updates the parameters of a single GatewaySecurityPolicy. +// Patch: Updates an association. See https://google.aip.dev/134. // -// - name: Name of the resource. Name is of the form -// projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_se -// curity_policy} gateway_security_policy should match the pattern:(^a-z -// ([a-z0-9-]{0,61}[a-z0-9])?$). -func (r *ProjectsLocationsGatewaySecurityPoliciesService) Patch(name string, gatewaysecuritypolicy *GatewaySecurityPolicy) *ProjectsLocationsGatewaySecurityPoliciesPatchCall { - c := &ProjectsLocationsGatewaySecurityPoliciesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Immutable. Identifier. The resource name of this endpoint group +// association, for example: +// `projects/123456789/locations/global/interceptEndpointGroupAssociations/my- +// eg-association`. See https://google.aip.dev/122 for more details. +func (r *ProjectsLocationsInterceptEndpointGroupAssociationsService) Patch(name string, interceptendpointgroupassociation *InterceptEndpointGroupAssociation) *ProjectsLocationsInterceptEndpointGroupAssociationsPatchCall { + c := &ProjectsLocationsInterceptEndpointGroupAssociationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.gatewaysecuritypolicy = gatewaysecuritypolicy + c.interceptendpointgroupassociation = interceptendpointgroupassociation return c } -// UpdateMask sets the optional parameter "updateMask": Field mask is used to -// specify the fields to be overwritten in the GatewaySecurityPolicy resource -// by the update. The fields specified in the update_mask are relative to the -// resource, not the full request. A field will be overwritten if it is in the -// mask. If the user does not provide a mask then all fields will be -// overwritten. -func (c *ProjectsLocationsGatewaySecurityPoliciesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsGatewaySecurityPoliciesPatchCall { +// RequestId sets the optional parameter "requestId": A unique identifier for +// this request. Must be a UUID4. This request is only idempotent if a +// `request_id` is provided. See https://google.aip.dev/155 for more details. +func (c *ProjectsLocationsInterceptEndpointGroupAssociationsPatchCall) RequestId(requestId string) *ProjectsLocationsInterceptEndpointGroupAssociationsPatchCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// UpdateMask sets the optional parameter "updateMask": The list of fields to +// update. Fields are specified relative to the association (e.g. +// `description`; *not* `intercept_endpoint_group_association.description`). +// See https://google.aip.dev/161 for more details. +func (c *ProjectsLocationsInterceptEndpointGroupAssociationsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsInterceptEndpointGroupAssociationsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } @@ -13157,29 +16319,29 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesPatchCall) UpdateMask(updateMas // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsGatewaySecurityPoliciesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsGatewaySecurityPoliciesPatchCall { +func (c *ProjectsLocationsInterceptEndpointGroupAssociationsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsInterceptEndpointGroupAssociationsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsGatewaySecurityPoliciesPatchCall) Context(ctx context.Context) *ProjectsLocationsGatewaySecurityPoliciesPatchCall { +func (c *ProjectsLocationsInterceptEndpointGroupAssociationsPatchCall) Context(ctx context.Context) *ProjectsLocationsInterceptEndpointGroupAssociationsPatchCall { 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 *ProjectsLocationsGatewaySecurityPoliciesPatchCall) Header() http.Header { +func (c *ProjectsLocationsInterceptEndpointGroupAssociationsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsGatewaySecurityPoliciesPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsInterceptEndpointGroupAssociationsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.gatewaysecuritypolicy) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.interceptendpointgroupassociation) if err != nil { return nil, err } @@ -13195,16 +16357,16 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesPatchCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.gatewaySecurityPolicies.patch", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.interceptEndpointGroupAssociations.patch", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.gatewaySecurityPolicies.patch" call. +// Do executes the "networksecurity.projects.locations.interceptEndpointGroupAssociations.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 *ProjectsLocationsGatewaySecurityPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsInterceptEndpointGroupAssociationsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -13234,71 +16396,79 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesPatchCall) Do(opts ...googleapi if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.gatewaySecurityPolicies.patch", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.interceptEndpointGroupAssociations.patch", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsGatewaySecurityPoliciesRulesCreateCall struct { - s *Service - parent string - gatewaysecuritypolicyrule *GatewaySecurityPolicyRule - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsInterceptEndpointGroupsCreateCall struct { + s *Service + parent string + interceptendpointgroup *InterceptEndpointGroup + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a new GatewaySecurityPolicy in a given project and location. +// Create: Creates an endpoint group in a given project and location. See +// https://google.aip.dev/133. // -// - parent: The parent where this rule will be created. Format : -// projects/{project}/location/{location}/gatewaySecurityPolicies/*. -func (r *ProjectsLocationsGatewaySecurityPoliciesRulesService) Create(parent string, gatewaysecuritypolicyrule *GatewaySecurityPolicyRule) *ProjectsLocationsGatewaySecurityPoliciesRulesCreateCall { - c := &ProjectsLocationsGatewaySecurityPoliciesRulesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The parent resource where this endpoint group will be created. +// Format: projects/{project}/locations/{location}. +func (r *ProjectsLocationsInterceptEndpointGroupsService) Create(parent string, interceptendpointgroup *InterceptEndpointGroup) *ProjectsLocationsInterceptEndpointGroupsCreateCall { + c := &ProjectsLocationsInterceptEndpointGroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.gatewaysecuritypolicyrule = gatewaysecuritypolicyrule + c.interceptendpointgroup = interceptendpointgroup return c } -// GatewaySecurityPolicyRuleId sets the optional parameter -// "gatewaySecurityPolicyRuleId": The ID to use for the rule, which will become -// the final component of the rule's resource name. This value should be 4-63 -// characters, and valid characters are /a-z-/. -func (c *ProjectsLocationsGatewaySecurityPoliciesRulesCreateCall) GatewaySecurityPolicyRuleId(gatewaySecurityPolicyRuleId string) *ProjectsLocationsGatewaySecurityPoliciesRulesCreateCall { - c.urlParams_.Set("gatewaySecurityPolicyRuleId", gatewaySecurityPolicyRuleId) +// InterceptEndpointGroupId sets the optional parameter +// "interceptEndpointGroupId": Required. The ID to use for the endpoint group, +// which will become the final component of the endpoint group's resource name. +func (c *ProjectsLocationsInterceptEndpointGroupsCreateCall) InterceptEndpointGroupId(interceptEndpointGroupId string) *ProjectsLocationsInterceptEndpointGroupsCreateCall { + c.urlParams_.Set("interceptEndpointGroupId", interceptEndpointGroupId) + return c +} + +// RequestId sets the optional parameter "requestId": A unique identifier for +// this request. Must be a UUID4. This request is only idempotent if a +// `request_id` is provided. See https://google.aip.dev/155 for more details. +func (c *ProjectsLocationsInterceptEndpointGroupsCreateCall) RequestId(requestId string) *ProjectsLocationsInterceptEndpointGroupsCreateCall { + 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 *ProjectsLocationsGatewaySecurityPoliciesRulesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsGatewaySecurityPoliciesRulesCreateCall { +func (c *ProjectsLocationsInterceptEndpointGroupsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsInterceptEndpointGroupsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsGatewaySecurityPoliciesRulesCreateCall) Context(ctx context.Context) *ProjectsLocationsGatewaySecurityPoliciesRulesCreateCall { +func (c *ProjectsLocationsInterceptEndpointGroupsCreateCall) Context(ctx context.Context) *ProjectsLocationsInterceptEndpointGroupsCreateCall { 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 *ProjectsLocationsGatewaySecurityPoliciesRulesCreateCall) Header() http.Header { +func (c *ProjectsLocationsInterceptEndpointGroupsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsGatewaySecurityPoliciesRulesCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsInterceptEndpointGroupsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.gatewaysecuritypolicyrule) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.interceptendpointgroup) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/rules") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/interceptEndpointGroups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -13308,16 +16478,16 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesRulesCreateCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.gatewaySecurityPolicies.rules.create", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.interceptEndpointGroups.create", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.gatewaySecurityPolicies.rules.create" call. +// Do executes the "networksecurity.projects.locations.interceptEndpointGroups.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 *ProjectsLocationsGatewaySecurityPoliciesRulesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsInterceptEndpointGroupsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -13347,11 +16517,11 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesRulesCreateCall) Do(opts ...goo if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.gatewaySecurityPolicies.rules.create", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.interceptEndpointGroups.create", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsGatewaySecurityPoliciesRulesDeleteCall struct { +type ProjectsLocationsInterceptEndpointGroupsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -13359,42 +16529,47 @@ type ProjectsLocationsGatewaySecurityPoliciesRulesDeleteCall struct { header_ http.Header } -// Delete: Deletes a single GatewaySecurityPolicyRule. +// Delete: Deletes an endpoint group. See https://google.aip.dev/135. // -// - name: A name of the GatewaySecurityPolicyRule to delete. Must be in the -// format -// `projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySe -// curityPolicy}/rules/*`. -func (r *ProjectsLocationsGatewaySecurityPoliciesRulesService) Delete(name string) *ProjectsLocationsGatewaySecurityPoliciesRulesDeleteCall { - c := &ProjectsLocationsGatewaySecurityPoliciesRulesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The endpoint group to delete. +func (r *ProjectsLocationsInterceptEndpointGroupsService) Delete(name string) *ProjectsLocationsInterceptEndpointGroupsDeleteCall { + c := &ProjectsLocationsInterceptEndpointGroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } +// RequestId sets the optional parameter "requestId": A unique identifier for +// this request. Must be a UUID4. This request is only idempotent if a +// `request_id` is provided. See https://google.aip.dev/155 for more details. +func (c *ProjectsLocationsInterceptEndpointGroupsDeleteCall) RequestId(requestId string) *ProjectsLocationsInterceptEndpointGroupsDeleteCall { + 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 *ProjectsLocationsGatewaySecurityPoliciesRulesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsGatewaySecurityPoliciesRulesDeleteCall { +func (c *ProjectsLocationsInterceptEndpointGroupsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsInterceptEndpointGroupsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsGatewaySecurityPoliciesRulesDeleteCall) Context(ctx context.Context) *ProjectsLocationsGatewaySecurityPoliciesRulesDeleteCall { +func (c *ProjectsLocationsInterceptEndpointGroupsDeleteCall) Context(ctx context.Context) *ProjectsLocationsInterceptEndpointGroupsDeleteCall { 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 *ProjectsLocationsGatewaySecurityPoliciesRulesDeleteCall) Header() http.Header { +func (c *ProjectsLocationsInterceptEndpointGroupsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsGatewaySecurityPoliciesRulesDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsInterceptEndpointGroupsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -13408,16 +16583,16 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesRulesDeleteCall) doRequest(alt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.gatewaySecurityPolicies.rules.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.interceptEndpointGroups.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.gatewaySecurityPolicies.rules.delete" call. +// Do executes the "networksecurity.projects.locations.interceptEndpointGroups.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 *ProjectsLocationsGatewaySecurityPoliciesRulesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsInterceptEndpointGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -13447,11 +16622,11 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesRulesDeleteCall) Do(opts ...goo if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.gatewaySecurityPolicies.rules.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.interceptEndpointGroups.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsGatewaySecurityPoliciesRulesGetCall struct { +type ProjectsLocationsInterceptEndpointGroupsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -13460,12 +16635,13 @@ type ProjectsLocationsGatewaySecurityPoliciesRulesGetCall struct { header_ http.Header } -// Get: Gets details of a single GatewaySecurityPolicyRule. +// Get: Gets a specific endpoint group. See https://google.aip.dev/131. // -// - name: The name of the GatewaySecurityPolicyRule to retrieve. Format: -// projects/{project}/location/{location}/gatewaySecurityPolicies/*/rules/*. -func (r *ProjectsLocationsGatewaySecurityPoliciesRulesService) Get(name string) *ProjectsLocationsGatewaySecurityPoliciesRulesGetCall { - c := &ProjectsLocationsGatewaySecurityPoliciesRulesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the endpoint group to retrieve. Format: +// projects/{project}/locations/{location}/interceptEndpointGroups/{intercept_ +// endpoint_group}. +func (r *ProjectsLocationsInterceptEndpointGroupsService) Get(name string) *ProjectsLocationsInterceptEndpointGroupsGetCall { + c := &ProjectsLocationsInterceptEndpointGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -13473,7 +16649,7 @@ func (r *ProjectsLocationsGatewaySecurityPoliciesRulesService) Get(name string) // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsGatewaySecurityPoliciesRulesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGatewaySecurityPoliciesRulesGetCall { +func (c *ProjectsLocationsInterceptEndpointGroupsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsInterceptEndpointGroupsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -13481,27 +16657,27 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesRulesGetCall) Fields(s ...googl // 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 *ProjectsLocationsGatewaySecurityPoliciesRulesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGatewaySecurityPoliciesRulesGetCall { +func (c *ProjectsLocationsInterceptEndpointGroupsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsInterceptEndpointGroupsGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsGatewaySecurityPoliciesRulesGetCall) Context(ctx context.Context) *ProjectsLocationsGatewaySecurityPoliciesRulesGetCall { +func (c *ProjectsLocationsInterceptEndpointGroupsGetCall) Context(ctx context.Context) *ProjectsLocationsInterceptEndpointGroupsGetCall { 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 *ProjectsLocationsGatewaySecurityPoliciesRulesGetCall) Header() http.Header { +func (c *ProjectsLocationsInterceptEndpointGroupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsGatewaySecurityPoliciesRulesGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsInterceptEndpointGroupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -13518,17 +16694,17 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesRulesGetCall) doRequest(alt str googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.gatewaySecurityPolicies.rules.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.interceptEndpointGroups.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.gatewaySecurityPolicies.rules.get" call. +// Do executes the "networksecurity.projects.locations.interceptEndpointGroups.get" call. // Any non-2xx status code is an error. Response headers are in either -// *GatewaySecurityPolicyRule.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 *ProjectsLocationsGatewaySecurityPoliciesRulesGetCall) Do(opts ...googleapi.CallOption) (*GatewaySecurityPolicyRule, error) { +// *InterceptEndpointGroup.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 *ProjectsLocationsInterceptEndpointGroupsGetCall) Do(opts ...googleapi.CallOption) (*InterceptEndpointGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -13547,7 +16723,7 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesRulesGetCall) Do(opts ...google if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GatewaySecurityPolicyRule{ + ret := &InterceptEndpointGroup{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -13558,11 +16734,11 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesRulesGetCall) Do(opts ...google if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.gatewaySecurityPolicies.rules.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.interceptEndpointGroups.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsGatewaySecurityPoliciesRulesListCall struct { +type ProjectsLocationsInterceptEndpointGroupsListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -13571,30 +16747,46 @@ type ProjectsLocationsGatewaySecurityPoliciesRulesListCall struct { header_ http.Header } -// List: Lists GatewaySecurityPolicyRules in a given project and location. +// List: Lists endpoint groups in a given project and location. See +// https://google.aip.dev/132. // -// - parent: The project, location and GatewaySecurityPolicy from which the -// GatewaySecurityPolicyRules should be listed, specified in the format -// `projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySe -// curityPolicy}`. -func (r *ProjectsLocationsGatewaySecurityPoliciesRulesService) List(parent string) *ProjectsLocationsGatewaySecurityPoliciesRulesListCall { - c := &ProjectsLocationsGatewaySecurityPoliciesRulesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The parent, which owns this collection of endpoint groups. +// Example: `projects/123456789/locations/global`. See +// https://google.aip.dev/132 for more details. +func (r *ProjectsLocationsInterceptEndpointGroupsService) List(parent string) *ProjectsLocationsInterceptEndpointGroupsListCall { + c := &ProjectsLocationsInterceptEndpointGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// PageSize sets the optional parameter "pageSize": Maximum number of -// GatewaySecurityPolicyRules to return per call. -func (c *ProjectsLocationsGatewaySecurityPoliciesRulesListCall) PageSize(pageSize int64) *ProjectsLocationsGatewaySecurityPoliciesRulesListCall { +// Filter sets the optional parameter "filter": Filter expression. See +// https://google.aip.dev/160#filtering for more details. +func (c *ProjectsLocationsInterceptEndpointGroupsListCall) Filter(filter string) *ProjectsLocationsInterceptEndpointGroupsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": Sort expression. See +// https://google.aip.dev/132#ordering for more details. +func (c *ProjectsLocationsInterceptEndpointGroupsListCall) OrderBy(orderBy string) *ProjectsLocationsInterceptEndpointGroupsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": Requested page size. Server +// may return fewer items than requested. If unspecified, server will pick an +// appropriate default. See https://google.aip.dev/158 for more details. +func (c *ProjectsLocationsInterceptEndpointGroupsListCall) PageSize(pageSize int64) *ProjectsLocationsInterceptEndpointGroupsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The value returned by the -// last 'ListGatewaySecurityPolicyRulesResponse' Indicates that this is a -// continuation of a prior 'ListGatewaySecurityPolicyRules' call, and that the -// system should return the next page of data. -func (c *ProjectsLocationsGatewaySecurityPoliciesRulesListCall) PageToken(pageToken string) *ProjectsLocationsGatewaySecurityPoliciesRulesListCall { +// PageToken sets the optional parameter "pageToken": A page token, received +// from a previous `ListInterceptEndpointGroups` call. Provide this to retrieve +// the subsequent page. When paginating, all other parameters provided to +// `ListInterceptEndpointGroups` must match the call that provided the page +// token. See https://google.aip.dev/158 for more details. +func (c *ProjectsLocationsInterceptEndpointGroupsListCall) PageToken(pageToken string) *ProjectsLocationsInterceptEndpointGroupsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -13602,7 +16794,7 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesRulesListCall) PageToken(pageTo // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsGatewaySecurityPoliciesRulesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsGatewaySecurityPoliciesRulesListCall { +func (c *ProjectsLocationsInterceptEndpointGroupsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsInterceptEndpointGroupsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -13610,34 +16802,34 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesRulesListCall) Fields(s ...goog // 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 *ProjectsLocationsGatewaySecurityPoliciesRulesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsGatewaySecurityPoliciesRulesListCall { +func (c *ProjectsLocationsInterceptEndpointGroupsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsInterceptEndpointGroupsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsGatewaySecurityPoliciesRulesListCall) Context(ctx context.Context) *ProjectsLocationsGatewaySecurityPoliciesRulesListCall { +func (c *ProjectsLocationsInterceptEndpointGroupsListCall) Context(ctx context.Context) *ProjectsLocationsInterceptEndpointGroupsListCall { 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 *ProjectsLocationsGatewaySecurityPoliciesRulesListCall) Header() http.Header { +func (c *ProjectsLocationsInterceptEndpointGroupsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsGatewaySecurityPoliciesRulesListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsInterceptEndpointGroupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/rules") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/interceptEndpointGroups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -13647,17 +16839,17 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesRulesListCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.gatewaySecurityPolicies.rules.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.interceptEndpointGroups.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.gatewaySecurityPolicies.rules.list" call. +// Do executes the "networksecurity.projects.locations.interceptEndpointGroups.list" call. // Any non-2xx status code is an error. Response headers are in either -// *ListGatewaySecurityPolicyRulesResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use +// *ListInterceptEndpointGroupsResponse.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 *ProjectsLocationsGatewaySecurityPoliciesRulesListCall) Do(opts ...googleapi.CallOption) (*ListGatewaySecurityPolicyRulesResponse, error) { +func (c *ProjectsLocationsInterceptEndpointGroupsListCall) Do(opts ...googleapi.CallOption) (*ListInterceptEndpointGroupsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -13676,7 +16868,7 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesRulesListCall) Do(opts ...googl if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListGatewaySecurityPolicyRulesResponse{ + ret := &ListInterceptEndpointGroupsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -13687,14 +16879,14 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesRulesListCall) Do(opts ...googl if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.gatewaySecurityPolicies.rules.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.interceptEndpointGroups.list", "response", internallog.HTTPResponse(res, b)) 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 *ProjectsLocationsGatewaySecurityPoliciesRulesListCall) Pages(ctx context.Context, f func(*ListGatewaySecurityPolicyRulesResponse) error) error { +func (c *ProjectsLocationsInterceptEndpointGroupsListCall) Pages(ctx context.Context, f func(*ListInterceptEndpointGroupsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -13712,35 +16904,41 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesRulesListCall) Pages(ctx contex } } -type ProjectsLocationsGatewaySecurityPoliciesRulesPatchCall struct { - s *Service - name string - gatewaysecuritypolicyrule *GatewaySecurityPolicyRule - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsInterceptEndpointGroupsPatchCall struct { + s *Service + name string + interceptendpointgroup *InterceptEndpointGroup + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Updates the parameters of a single GatewaySecurityPolicyRule. +// Patch: Updates an endpoint group. See https://google.aip.dev/134. // -// - name: Immutable. Name of the resource. ame is the full resource name so -// projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_se -// curity_policy}/rules/{rule} rule should match the pattern: (^a-z -// ([a-z0-9-]{0,61}[a-z0-9])?$). -func (r *ProjectsLocationsGatewaySecurityPoliciesRulesService) Patch(name string, gatewaysecuritypolicyrule *GatewaySecurityPolicyRule) *ProjectsLocationsGatewaySecurityPoliciesRulesPatchCall { - c := &ProjectsLocationsGatewaySecurityPoliciesRulesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Immutable. Identifier. The resource name of this endpoint group, for +// example: +// `projects/123456789/locations/global/interceptEndpointGroups/my-eg`. See +// https://google.aip.dev/122 for more details. +func (r *ProjectsLocationsInterceptEndpointGroupsService) Patch(name string, interceptendpointgroup *InterceptEndpointGroup) *ProjectsLocationsInterceptEndpointGroupsPatchCall { + c := &ProjectsLocationsInterceptEndpointGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.gatewaysecuritypolicyrule = gatewaysecuritypolicyrule + c.interceptendpointgroup = interceptendpointgroup return c } -// UpdateMask sets the optional parameter "updateMask": Field mask is used to -// specify the fields to be overwritten in the GatewaySecurityPolicy resource -// by the update. The fields specified in the update_mask are relative to the -// resource, not the full request. A field will be overwritten if it is in the -// mask. If the user does not provide a mask then all fields will be -// overwritten. -func (c *ProjectsLocationsGatewaySecurityPoliciesRulesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsGatewaySecurityPoliciesRulesPatchCall { +// RequestId sets the optional parameter "requestId": A unique identifier for +// this request. Must be a UUID4. This request is only idempotent if a +// `request_id` is provided. See https://google.aip.dev/155 for more details. +func (c *ProjectsLocationsInterceptEndpointGroupsPatchCall) RequestId(requestId string) *ProjectsLocationsInterceptEndpointGroupsPatchCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// UpdateMask sets the optional parameter "updateMask": The list of fields to +// update. Fields are specified relative to the endpoint group (e.g. +// `description`; *not* `intercept_endpoint_group.description`). See +// https://google.aip.dev/161 for more details. +func (c *ProjectsLocationsInterceptEndpointGroupsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsInterceptEndpointGroupsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } @@ -13748,29 +16946,29 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesRulesPatchCall) UpdateMask(upda // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsGatewaySecurityPoliciesRulesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsGatewaySecurityPoliciesRulesPatchCall { +func (c *ProjectsLocationsInterceptEndpointGroupsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsInterceptEndpointGroupsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsGatewaySecurityPoliciesRulesPatchCall) Context(ctx context.Context) *ProjectsLocationsGatewaySecurityPoliciesRulesPatchCall { +func (c *ProjectsLocationsInterceptEndpointGroupsPatchCall) Context(ctx context.Context) *ProjectsLocationsInterceptEndpointGroupsPatchCall { 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 *ProjectsLocationsGatewaySecurityPoliciesRulesPatchCall) Header() http.Header { +func (c *ProjectsLocationsInterceptEndpointGroupsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsGatewaySecurityPoliciesRulesPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsInterceptEndpointGroupsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.gatewaysecuritypolicyrule) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.interceptendpointgroup) if err != nil { return nil, err } @@ -13786,16 +16984,16 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesRulesPatchCall) doRequest(alt s googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.gatewaySecurityPolicies.rules.patch", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.interceptEndpointGroups.patch", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networksecurity.projects.locations.gatewaySecurityPolicies.rules.patch" call. +// Do executes the "networksecurity.projects.locations.interceptEndpointGroups.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 *ProjectsLocationsGatewaySecurityPoliciesRulesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsInterceptEndpointGroupsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -13825,7 +17023,7 @@ func (c *ProjectsLocationsGatewaySecurityPoliciesRulesPatchCall) Do(opts ...goog if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.gatewaySecurityPolicies.rules.patch", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networksecurity.projects.locations.interceptEndpointGroups.patch", "response", internallog.HTTPResponse(res, b)) return ret, nil } From 673da13c2fc8c8758ae8c1c1fc2d02fdb9556bc5 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 28 Apr 2025 17:27:06 +0200 Subject: [PATCH 6/8] chore(all): update all (#3128) --- go.mod | 6 +++--- go.sum | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/go.mod b/go.mod index ccba9f3d4bc..70dc507978f 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module google.golang.org/api go 1.23.0 require ( - cloud.google.com/go/auth v0.16.0 + cloud.google.com/go/auth v0.16.1 cloud.google.com/go/auth/oauth2adapt v0.2.8 cloud.google.com/go/compute/metadata v0.6.0 github.com/google/go-cmp v0.7.0 @@ -17,8 +17,8 @@ require ( golang.org/x/oauth2 v0.29.0 golang.org/x/sync v0.13.0 golang.org/x/time v0.11.0 - google.golang.org/genproto/googleapis/bytestream v0.0.0-20250414145226-207652e42e2e - google.golang.org/genproto/googleapis/rpc v0.0.0-20250414145226-207652e42e2e + google.golang.org/genproto/googleapis/bytestream v0.0.0-20250425173222-7b384671a197 + google.golang.org/genproto/googleapis/rpc v0.0.0-20250425173222-7b384671a197 google.golang.org/grpc v1.72.0 google.golang.org/protobuf v1.36.6 ) diff --git a/go.sum b/go.sum index 535f0974e4f..9423415c751 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,5 @@ -cloud.google.com/go/auth v0.16.0 h1:Pd8P1s9WkcrBE2n/PhAwKsdrR35V3Sg2II9B+ndM3CU= -cloud.google.com/go/auth v0.16.0/go.mod h1:1howDHJ5IETh/LwYs3ZxvlkXF48aSqqJUM+5o02dNOI= +cloud.google.com/go/auth v0.16.1 h1:XrXauHMd30LhQYVRHLGvJiYeczweKQXZxsTbV9TiguU= +cloud.google.com/go/auth v0.16.1/go.mod h1:1howDHJ5IETh/LwYs3ZxvlkXF48aSqqJUM+5o02dNOI= cloud.google.com/go/auth/oauth2adapt v0.2.8 h1:keo8NaayQZ6wimpNSmW5OPc283g65QNIiLpZnkHRbnc= cloud.google.com/go/auth/oauth2adapt v0.2.8/go.mod h1:XQ9y31RkqZCcwJWNSx2Xvric3RrU88hAYYbjDWYDL+c= cloud.google.com/go/compute/metadata v0.6.0 h1:A6hENjEsCDtC1k8byVsgwvVcioamEHvZ4j01OwKxG9I= @@ -61,10 +61,10 @@ golang.org/x/time v0.11.0 h1:/bpjEDfN9tkoN/ryeYHnv5hcMlc8ncjMcM4XBk5NWV0= golang.org/x/time v0.11.0/go.mod h1:CDIdPxbZBQxdj6cxyCIdrNogrJKMJ7pr37NYpMcMDSg= google.golang.org/genproto/googleapis/api v0.0.0-20250218202821-56aae31c358a h1:nwKuGPlUAt+aR+pcrkfFRrTU1BVrSmYyYMxYbUIVHr0= google.golang.org/genproto/googleapis/api v0.0.0-20250218202821-56aae31c358a/go.mod h1:3kWAYMk1I75K4vykHtKt2ycnOgpA6974V7bREqbsenU= -google.golang.org/genproto/googleapis/bytestream v0.0.0-20250414145226-207652e42e2e h1:OK8bKvRgTGs7U871RdjtCiRcQJLice8/rZkeoaZgnlc= -google.golang.org/genproto/googleapis/bytestream v0.0.0-20250414145226-207652e42e2e/go.mod h1:h6yxum/C2qRb4txaZRLDHK8RyS0H/o2oEDeKY4onY/Y= -google.golang.org/genproto/googleapis/rpc v0.0.0-20250414145226-207652e42e2e h1:ztQaXfzEXTmCBvbtWYRhJxW+0iJcz2qXfd38/e9l7bA= -google.golang.org/genproto/googleapis/rpc v0.0.0-20250414145226-207652e42e2e/go.mod h1:qQ0YXyHHx3XkvlzUtpXDkS29lDSafHMZBAZDc03LQ3A= +google.golang.org/genproto/googleapis/bytestream v0.0.0-20250425173222-7b384671a197 h1:km2eaPKRd1ganBNsKcAd9YOCLvTBQe8iTaPhE2q9n24= +google.golang.org/genproto/googleapis/bytestream v0.0.0-20250425173222-7b384671a197/go.mod h1:h6yxum/C2qRb4txaZRLDHK8RyS0H/o2oEDeKY4onY/Y= +google.golang.org/genproto/googleapis/rpc v0.0.0-20250425173222-7b384671a197 h1:29cjnHVylHwTzH66WfFZqgSQgnxzvWE+jvBwpZCLRxY= +google.golang.org/genproto/googleapis/rpc v0.0.0-20250425173222-7b384671a197/go.mod h1:qQ0YXyHHx3XkvlzUtpXDkS29lDSafHMZBAZDc03LQ3A= google.golang.org/grpc v1.72.0 h1:S7UkcVa60b5AAQTaO6ZKamFp1zMZSU0fGDK2WZLbBnM= google.golang.org/grpc v1.72.0/go.mod h1:wH5Aktxcg25y1I3w7H69nHfXdOG3UiadoBtjh3izSDM= google.golang.org/protobuf v1.36.6 h1:z1NpPI8ku2WgiWnf+t9wTPsn6eP1L7ksHUlkfLvd9xY= From c33e0d153c99c931e5b953e3ccfa40fe8ac20c02 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 29 Apr 2025 00:36:24 -0700 Subject: [PATCH 7/8] feat(all): auto-regenerate discovery clients (#3129) --- connectors/v1/connectors-api.json | 678 +- connectors/v1/connectors-gen.go | 8261 +++++++---------- content/v2.1/content-api.json | 4 +- content/v2.1/content-gen.go | 4 +- dataplex/v1/dataplex-api.json | 307 +- dataplex/v1/dataplex-gen.go | 941 +- .../accounts_v1beta/merchantapi-api.json | 459 +- .../accounts_v1beta/merchantapi-gen.go | 1244 ++- .../products_v1beta/merchantapi-api.json | 4 +- .../products_v1beta/merchantapi-gen.go | 17 +- .../v1beta1/networksecurity-api.json | 4 +- .../v1beta1/networksecurity-gen.go | 2 +- translate/v3/translate-api.json | 8 +- translate/v3/translate-gen.go | 8 + translate/v3beta1/translate-api.json | 8 +- translate/v3beta1/translate-gen.go | 8 + 16 files changed, 6479 insertions(+), 5478 deletions(-) diff --git a/connectors/v1/connectors-api.json b/connectors/v1/connectors-api.json index b4226d7bf52..83cbb9975ac 100644 --- a/connectors/v1/connectors-api.json +++ b/connectors/v1/connectors-api.json @@ -873,188 +873,6 @@ } } }, - "endUserAuthentications": { - "methods": { - "create": { - "description": "Creates a new EndUserAuthentication in a given project,location and connection.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}/endUserAuthentications", - "httpMethod": "POST", - "id": "connectors.projects.locations.connections.endUserAuthentications.create", - "parameterOrder": [ - "parent" - ], - "parameters": { - "endUserAuthenticationId": { - "description": "Required. Identifier to assign to the EndUserAuthentication. Must be unique within scope of the parent resource.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. Parent resource of the EndUserAuthentication, of the form: `projects/*/locations/*/connections/*`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/connections/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/endUserAuthentications", - "request": { - "$ref": "EndUserAuthentication" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "delete": { - "description": "Deletes a single EndUserAuthentication.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}/endUserAuthentications/{endUserAuthenticationsId}", - "httpMethod": "DELETE", - "id": "connectors.projects.locations.connections.endUserAuthentications.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. Resource name of the form: `projects/*/locations/*/connections/*/endUserAuthentication/*`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/connections/[^/]+/endUserAuthentications/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "get": { - "description": "Gets details of a single EndUserAuthentication.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}/endUserAuthentications/{endUserAuthenticationsId}", - "httpMethod": "GET", - "id": "connectors.projects.locations.connections.endUserAuthentications.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. Resource name of the form: `projects/*/locations/*/connections/*/EndUserAuthentications/*`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/connections/[^/]+/endUserAuthentications/[^/]+$", - "required": true, - "type": "string" - }, - "view": { - "description": "Optional. View of the EndUserAuthentication to return.", - "enum": [ - "END_USER_AUTHENTICATION_VIEW_UNSPECIFIED", - "BASIC_VIEW", - "FULL_VIEW" - ], - "enumDescriptions": [ - "END_USER_AUTHENTICATION_UNSPECIFIED.", - "Do not include secret fields.", - "Include secret fields." - ], - "location": "query", - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "EndUserAuthentication" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "list": { - "description": "List EndUserAuthentications in a given project,location and connection.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}/endUserAuthentications", - "httpMethod": "GET", - "id": "connectors.projects.locations.connections.endUserAuthentications.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "filter": { - "description": "Filter.", - "location": "query", - "type": "string" - }, - "orderBy": { - "description": "Order by parameters.", - "location": "query", - "type": "string" - }, - "pageSize": { - "description": "Page size.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "Page token.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. Parent resource of the EndUserAuthentication, of the form: `projects/*/locations/*/connections/*`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/connections/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/endUserAuthentications", - "response": { - "$ref": "ListEndUserAuthenticationsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "patch": { - "description": "Updates the parameters of a single EndUserAuthentication.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}/endUserAuthentications/{endUserAuthenticationsId}", - "httpMethod": "PATCH", - "id": "connectors.projects.locations.connections.endUserAuthentications.patch", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. Identifier. Resource name of the EndUserAuthentication. Format: projects/{project}/locations/{location}/connections/{connection}/endUserAuthentications/{end_user_authentication}", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/connections/[^/]+/endUserAuthentications/[^/]+$", - "required": true, - "type": "string" - }, - "updateMask": { - "description": "Required. The list of fields to update. A field will be overwritten if it is in the mask. You can modify only the fields listed below. To update the EndUserAuthentication details: * `notify_endpoint_destination`", - "format": "google-fieldmask", - "location": "query", - "type": "string" - } - }, - "path": "v1/{+name}", - "request": { - "$ref": "EndUserAuthentication" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - }, "eventSubscriptions": { "methods": { "create": { @@ -2753,7 +2571,7 @@ } } }, - "revision": "20250415", + "revision": "20250423", "rootUrl": "https://connectors.googleapis.com/", "schemas": { "AuditConfig": { @@ -3863,11 +3681,6 @@ "description": "Output only. Eventing configuration supported by the Connector.", "readOnly": true }, - "isAsyncOperationsSupported": { - "description": "Output only. Is async operations supported.", - "readOnly": true, - "type": "boolean" - }, "isCustomActionsSupported": { "description": "Output only. Is custom actions supported.", "readOnly": true, @@ -4210,12 +4023,27 @@ "description": "CustomConnectorVersion indicates a specific version of a connector.", "id": "CustomConnectorVersion", "properties": { + "asyncOperationsSupport": { + "description": "Optional. Indicates if Async Operations/Connector Job is supported. This is only available for SDK based custom connectors.", + "type": "boolean" + }, "authConfig": { "$ref": "AuthConfig", - "description": "Optional. Authentication config for accessing connector facade/ proxy. This is used only when enable_backend_destination_config is true." + "description": "Optional. Authentication config for accessing connector service (facade). This is used only when enable_backend_destination_config is true." + }, + "authConfigTemplates": { + "description": "Optional. Auth Config Templates is only used when connector backend is enabled. This is used to specify the auth configs supported by the connector backend service to talk to the actual application backend.", + "items": { + "$ref": "AuthConfigTemplate" + }, + "type": "array" + }, + "authOverrideSupport": { + "description": "Optional. Auth override support.", + "type": "boolean" }, "backendVariableTemplates": { - "description": "Optional. Backend variables config templates. This translates to additional variable templates in connection.", + "description": "Optional. Backend variable templates is only used when connector backend is enabled. This is used to specify the variables required by the connector backend service to talk to the actual application backend. This translates to additional variable templates in the connection config.", "items": { "$ref": "ConfigVariableTemplate" }, @@ -4228,14 +4056,14 @@ "type": "string" }, "destinationConfigs": { - "description": "Optional. Destination config(s) for accessing connector facade/ proxy. This is used only when enable_backend_destination_config is true.", + "description": "Optional. Destination config(s) for accessing connector service (facade). This is used only when enable_backend_destination_config is true.", "items": { "$ref": "DestinationConfig" }, "type": "array" }, "enableBackendDestinationConfig": { - "description": "Optional. When enabled, the connector will be a facade/ proxy, and connects to the destination provided during connection creation.", + "description": "Optional. Indicates if an intermediatory connectorservice is used as backend. When this is enabled, the connector destination and connector auth config are required. For SDK based connectors, this is always enabled.", "type": "boolean" }, "labels": { @@ -4264,11 +4092,11 @@ "type": "string" }, "specLocation": { - "description": "Optional. Location of the custom connector spec. The location can be either a public url like `https://public-url.com/spec` Or a Google Cloud Storage location like `gs:///`", + "description": "Optional. Location of the custom connector spec. This is only used for Open API based custom connectors. The location can be either a public url like `https://public-url.com/spec` Or a Google Cloud Storage location like `gs:///`.", "type": "string" }, "specServerUrls": { - "description": "Output only. Server URLs parsed from the spec.", + "description": "Output only. Server URLs parsed from the Open API spec. This is only used for Open API based custom connectors.", "items": { "type": "string" }, @@ -4569,410 +4397,6 @@ }, "type": "object" }, - "EndUserAuthentication": { - "description": "AuthConfig defines details of a authentication type.", - "id": "EndUserAuthentication", - "properties": { - "configVariables": { - "description": "Optional. Config variables for the EndUserAuthentication.", - "items": { - "$ref": "EndUserAuthenticationConfigVariable" - }, - "type": "array" - }, - "createTime": { - "description": "Output only. Created time.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "destinationConfigs": { - "description": "Optional. Destination configs for the EndUserAuthentication.", - "items": { - "$ref": "DestinationConfig" - }, - "type": "array" - }, - "endUserAuthenticationConfig": { - "$ref": "EndUserAuthenticationConfig", - "description": "Optional. The EndUserAuthenticationConfig for the EndUserAuthentication." - }, - "labels": { - "description": "Optional. Labels for the EndUserAuthentication.", - "items": { - "type": "string" - }, - "type": "array" - }, - "name": { - "description": "Required. Identifier. Resource name of the EndUserAuthentication. Format: projects/{project}/locations/{location}/connections/{connection}/endUserAuthentications/{end_user_authentication}", - "type": "string" - }, - "notifyEndpointDestination": { - "$ref": "EndUserAuthenticationNotifyEndpointDestination", - "description": "Optional. The destination to hit when we receive an event" - }, - "status": { - "$ref": "EndUserAuthenticationEndUserAuthenticationStatus", - "description": "Optional. Status of the EndUserAuthentication." - }, - "updateTime": { - "description": "Output only. Updated time.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "userEmail": { - "description": "Optional. Deprecated: The email of the user.", - "type": "string" - }, - "userId": { - "description": "Optional. The user id of the user.", - "type": "string" - } - }, - "type": "object" - }, - "EndUserAuthenticationConfig": { - "description": "EndUserAuthenticationConfig defines details of a authentication configuration for EUC", - "id": "EndUserAuthenticationConfig", - "properties": { - "additionalVariables": { - "description": "Optional. List containing additional auth configs.", - "items": { - "$ref": "EndUserAuthenticationConfigVariable" - }, - "type": "array" - }, - "authKey": { - "description": "Identifier key for auth config", - "type": "string" - }, - "authType": { - "description": "The type of authentication configured.", - "enum": [ - "AUTH_TYPE_UNSPECIFIED", - "USER_PASSWORD", - "OAUTH2_JWT_BEARER", - "OAUTH2_CLIENT_CREDENTIALS", - "SSH_PUBLIC_KEY", - "OAUTH2_AUTH_CODE_FLOW", - "GOOGLE_AUTHENTICATION", - "OAUTH2_AUTH_CODE_FLOW_GOOGLE_MANAGED" - ], - "enumDescriptions": [ - "Authentication type not specified.", - "Username and Password Authentication.", - "JSON Web Token (JWT) Profile for Oauth 2.0 Authorization Grant based authentication", - "Oauth 2.0 Client Credentials Grant Authentication", - "SSH Public Key Authentication", - "Oauth 2.0 Authorization Code Flow", - "Google authentication", - "Oauth 2.0 Authorization Code Flow with Google Provided OAuth Client" - ], - "type": "string" - }, - "oauth2AuthCodeFlow": { - "$ref": "EndUserAuthenticationConfigOauth2AuthCodeFlow", - "description": "Oauth2AuthCodeFlow." - }, - "oauth2AuthCodeFlowGoogleManaged": { - "$ref": "EndUserAuthenticationConfigOauth2AuthCodeFlowGoogleManaged", - "description": "Oauth2AuthCodeFlowGoogleManaged." - }, - "oauth2ClientCredentials": { - "$ref": "EndUserAuthenticationConfigOauth2ClientCredentials", - "description": "Oauth2ClientCredentials." - }, - "oauth2JwtBearer": { - "$ref": "EndUserAuthenticationConfigOauth2JwtBearer", - "description": "Oauth2JwtBearer." - }, - "sshPublicKey": { - "$ref": "EndUserAuthenticationConfigSshPublicKey", - "description": "SSH Public Key." - }, - "userPassword": { - "$ref": "EndUserAuthenticationConfigUserPassword", - "description": "UserPassword." - } - }, - "type": "object" - }, - "EndUserAuthenticationConfigOauth2AuthCodeFlow": { - "description": "Parameters to support Oauth 2.0 Auth Code Grant Authentication. See https://www.rfc-editor.org/rfc/rfc6749#section-1.3.1 for more details.", - "id": "EndUserAuthenticationConfigOauth2AuthCodeFlow", - "properties": { - "authCode": { - "description": "Optional. Authorization code to be exchanged for access and refresh tokens.", - "type": "string" - }, - "authUri": { - "description": "Optional. Auth URL for Authorization Code Flow", - "type": "string" - }, - "clientId": { - "description": "Optional. Client ID for user-provided OAuth app.", - "type": "string" - }, - "clientSecret": { - "description": "Optional. Client secret for user-provided OAuth app.", - "type": "string" - }, - "enablePkce": { - "description": "Optional. Whether to enable PKCE when the user performs the auth code flow.", - "type": "boolean" - }, - "oauthTokenData": { - "$ref": "OAuthTokenData", - "description": "Optional. Auth Code Data" - }, - "pkceVerifier": { - "description": "Optional. PKCE verifier to be used during the auth code exchange.", - "type": "string" - }, - "redirectUri": { - "description": "Optional. Redirect URI to be provided during the auth code exchange.", - "type": "string" - }, - "scopes": { - "description": "Optional. Scopes the connection will request when the user performs the auth code flow.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "EndUserAuthenticationConfigOauth2AuthCodeFlowGoogleManaged": { - "description": "Parameters to support Oauth 2.0 Auth Code Grant Authentication using Google Provided OAuth Client. See https://tools.ietf.org/html/rfc6749#section-1.3.1 for more details.", - "id": "EndUserAuthenticationConfigOauth2AuthCodeFlowGoogleManaged", - "properties": { - "authCode": { - "description": "Optional. Authorization code to be exchanged for access and refresh tokens.", - "type": "string" - }, - "oauthTokenData": { - "$ref": "OAuthTokenData", - "description": "Auth Code Data" - }, - "redirectUri": { - "description": "Optional. Redirect URI to be provided during the auth code exchange.", - "type": "string" - }, - "scopes": { - "description": "Required. Scopes the connection will request when the user performs the auth code flow.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "EndUserAuthenticationConfigOauth2ClientCredentials": { - "description": "Parameters to support Oauth 2.0 Client Credentials Grant Authentication. See https://tools.ietf.org/html/rfc6749#section-1.3.4 for more details.", - "id": "EndUserAuthenticationConfigOauth2ClientCredentials", - "properties": { - "clientId": { - "description": "The client identifier.", - "type": "string" - }, - "clientSecret": { - "description": "Required. string value containing the client secret.", - "type": "string" - } - }, - "type": "object" - }, - "EndUserAuthenticationConfigOauth2JwtBearer": { - "description": "Parameters to support JSON Web Token (JWT) Profile for Oauth 2.0 Authorization Grant based authentication. See https://tools.ietf.org/html/rfc7523 for more details.", - "id": "EndUserAuthenticationConfigOauth2JwtBearer", - "properties": { - "clientKey": { - "description": "Required. string version reference containing a PKCS#8 PEM-encoded private key associated with the Client Certificate. This private key will be used to sign JWTs used for the jwt-bearer authorization grant. Specified in the form as: `projects/*/strings/*/versions/*`.", - "type": "string" - }, - "jwtClaims": { - "$ref": "EndUserAuthenticationConfigOauth2JwtBearerJwtClaims", - "description": "JwtClaims providers fields to generate the token." - } - }, - "type": "object" - }, - "EndUserAuthenticationConfigOauth2JwtBearerJwtClaims": { - "description": "JWT claims used for the jwt-bearer authorization grant.", - "id": "EndUserAuthenticationConfigOauth2JwtBearerJwtClaims", - "properties": { - "audience": { - "description": "Value for the \"aud\" claim.", - "type": "string" - }, - "issuer": { - "description": "Value for the \"iss\" claim.", - "type": "string" - }, - "subject": { - "description": "Value for the \"sub\" claim.", - "type": "string" - } - }, - "type": "object" - }, - "EndUserAuthenticationConfigSshPublicKey": { - "description": "Parameters to support Ssh public key Authentication.", - "id": "EndUserAuthenticationConfigSshPublicKey", - "properties": { - "certType": { - "description": "Format of SSH Client cert.", - "type": "string" - }, - "sshClientCert": { - "description": "Required. SSH Client Cert. It should contain both public and private key.", - "type": "string" - }, - "sshClientCertPass": { - "description": "Required. Password (passphrase) for ssh client certificate if it has one.", - "type": "string" - }, - "username": { - "description": "The user account used to authenticate.", - "type": "string" - } - }, - "type": "object" - }, - "EndUserAuthenticationConfigUserPassword": { - "description": "Parameters to support Username and Password Authentication.", - "id": "EndUserAuthenticationConfigUserPassword", - "properties": { - "password": { - "description": "string version reference containing the password.", - "type": "string" - }, - "username": { - "description": "Username.", - "type": "string" - } - }, - "type": "object" - }, - "EndUserAuthenticationConfigVariable": { - "description": "EndUserAuthenticationConfigVariable represents a configuration variable present in a EndUserAuthentication.", - "id": "EndUserAuthenticationConfigVariable", - "properties": { - "boolValue": { - "description": "Value is a bool.", - "type": "boolean" - }, - "intValue": { - "description": "Value is an integer", - "format": "int64", - "type": "string" - }, - "key": { - "description": "Required. Key of the config variable.", - "type": "string" - }, - "secretValue": { - "$ref": "Secret", - "description": "Value is a secret" - }, - "stringValue": { - "description": "Value is a string.", - "type": "string" - } - }, - "type": "object" - }, - "EndUserAuthenticationEndUserAuthenticationStatus": { - "description": "EndUserAuthentication Status denotes the status of the EndUserAuthentication resource.", - "id": "EndUserAuthenticationEndUserAuthenticationStatus", - "properties": { - "description": { - "description": "Output only. Description of the state.", - "readOnly": true, - "type": "string" - }, - "state": { - "description": "Output only. State of Event Subscription resource.", - "enum": [ - "STATE_UNSPECIFIED", - "ACTIVE", - "ERROR" - ], - "enumDescriptions": [ - "Default state.", - "EndUserAuthentication is in Active state.", - "EndUserAuthentication is in Error state." - ], - "readOnly": true, - "type": "string" - } - }, - "type": "object" - }, - "EndUserAuthenticationNotifyEndpointDestination": { - "description": "Message for NotifyEndpointDestination Destination to hit when the refresh token is expired.", - "id": "EndUserAuthenticationNotifyEndpointDestination", - "properties": { - "endpoint": { - "$ref": "EndUserAuthenticationNotifyEndpointDestinationEndPoint", - "description": "Optional. OPTION 1: Hit an endpoint when the refresh token is expired." - }, - "serviceAccount": { - "description": "Required. Service account needed for runtime plane to notify the backend.", - "type": "string" - }, - "type": { - "description": "Required. type of the destination", - "enum": [ - "TYPE_UNSPECIFIED", - "ENDPOINT" - ], - "enumDescriptions": [ - "Default state.", - "Endpoint - Hit the value of endpoint when event is received" - ], - "type": "string" - } - }, - "type": "object" - }, - "EndUserAuthenticationNotifyEndpointDestinationEndPoint": { - "description": "Endpoint message includes details of the Destination endpoint.", - "id": "EndUserAuthenticationNotifyEndpointDestinationEndPoint", - "properties": { - "endpointUri": { - "description": "Required. The URI of the Endpoint.", - "type": "string" - }, - "headers": { - "description": "Optional. List of Header to be added to the Endpoint.", - "items": { - "$ref": "EndUserAuthenticationNotifyEndpointDestinationEndPointHeader" - }, - "type": "array" - } - }, - "type": "object" - }, - "EndUserAuthenticationNotifyEndpointDestinationEndPointHeader": { - "description": "Header details for a given header to be added to Endpoint.", - "id": "EndUserAuthenticationNotifyEndpointDestinationEndPointHeader", - "properties": { - "key": { - "description": "Required. Key of Header.", - "type": "string" - }, - "value": { - "description": "Required. Value of Header.", - "type": "string" - } - }, - "type": "object" - }, "EndpointAttachment": { "description": "represents the Connector's Endpoint Attachment resource", "id": "EndpointAttachment", @@ -6025,6 +5449,10 @@ "description": "consumer_defined_name is the name of the instance set by the service consumers. Generally this is different from the `name` field which reperesents the system-assigned id of the instance which the service consumers do not recognize. This is a required field for tenants onboarding to Maintenance Window notifications (go/slm-rollout-maintenance-policies#prerequisites).", "type": "string" }, + "consumerProjectNumber": { + "description": "Optional. The consumer_project_number associated with this Apigee instance. This field is added specifically to support Apigee integration with SLM Rollout and UMM. It represents the numerical project ID of the GCP project that consumes this Apigee instance. It is used for SLM rollout notifications and UMM integration, enabling proper mapping to customer projects and log delivery for Apigee instances. This field complements consumer_project_id and may be used for specific Apigee scenarios where the numerical ID is required.", + "type": "string" + }, "createTime": { "description": "Output only. Timestamp when the resource was created.", "format": "google-datetime", @@ -6549,31 +5977,6 @@ }, "type": "object" }, - "ListEndUserAuthenticationsResponse": { - "description": "Response message for ConnectorsService.ListEndUserAuthentications", - "id": "ListEndUserAuthenticationsResponse", - "properties": { - "endUserAuthentications": { - "description": "Subscriptions.", - "items": { - "$ref": "EndUserAuthentication" - }, - "type": "array" - }, - "nextPageToken": { - "description": "Next page token.", - "type": "string" - }, - "unreachable": { - "description": "Locations that could not be reached.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, "ListEndpointAttachmentsResponse": { "description": "Response message for ConnectorsService.ListEndpointAttachments", "id": "ListEndpointAttachmentsResponse", @@ -7199,31 +6602,6 @@ }, "type": "object" }, - "OAuthTokenData": { - "description": "pass only at create and not update using updateMask Auth Code Data", - "id": "OAuthTokenData", - "properties": { - "accessToken": { - "description": "Optional. Access token for the connection.", - "type": "string" - }, - "createTime": { - "description": "Optional. Timestamp when the access token was created.", - "format": "google-datetime", - "type": "string" - }, - "expiry": { - "description": "Optional. Time in seconds when the access token expires.", - "format": "google-duration", - "type": "string" - }, - "refreshToken": { - "description": "Optional. Refresh token for the connection.", - "type": "string" - } - }, - "type": "object" - }, "Oauth2AuthCodeFlow": { "description": "Parameters to support Oauth 2.0 Auth Code Grant Authentication. See https://www.rfc-editor.org/rfc/rfc6749#section-1.3.1 for more details.", "id": "Oauth2AuthCodeFlow", @@ -8639,6 +8017,10 @@ "description": "Specifies if the connector supports action apis like 'executeAction'.", "type": "boolean" }, + "asyncOperations": { + "description": "Specifies if the connector supports async long running operations.", + "type": "boolean" + }, "entityApis": { "description": "Specifies if the connector supports entity apis like 'createEntity'.", "type": "boolean" diff --git a/connectors/v1/connectors-gen.go b/connectors/v1/connectors-gen.go index 9b0471d7eaf..2ce233c366e 100644 --- a/connectors/v1/connectors-gen.go +++ b/connectors/v1/connectors-gen.go @@ -196,7 +196,6 @@ type ProjectsLocationsService struct { func NewProjectsLocationsConnectionsService(s *Service) *ProjectsLocationsConnectionsService { rs := &ProjectsLocationsConnectionsService{s: s} rs.ConnectionSchemaMetadata = NewProjectsLocationsConnectionsConnectionSchemaMetadataService(s) - rs.EndUserAuthentications = NewProjectsLocationsConnectionsEndUserAuthenticationsService(s) rs.EventSubscriptions = NewProjectsLocationsConnectionsEventSubscriptionsService(s) rs.RuntimeActionSchemas = NewProjectsLocationsConnectionsRuntimeActionSchemasService(s) rs.RuntimeEntitySchemas = NewProjectsLocationsConnectionsRuntimeEntitySchemasService(s) @@ -208,8 +207,6 @@ type ProjectsLocationsConnectionsService struct { ConnectionSchemaMetadata *ProjectsLocationsConnectionsConnectionSchemaMetadataService - EndUserAuthentications *ProjectsLocationsConnectionsEndUserAuthenticationsService - EventSubscriptions *ProjectsLocationsConnectionsEventSubscriptionsService RuntimeActionSchemas *ProjectsLocationsConnectionsRuntimeActionSchemasService @@ -226,15 +223,6 @@ type ProjectsLocationsConnectionsConnectionSchemaMetadataService struct { s *Service } -func NewProjectsLocationsConnectionsEndUserAuthenticationsService(s *Service) *ProjectsLocationsConnectionsEndUserAuthenticationsService { - rs := &ProjectsLocationsConnectionsEndUserAuthenticationsService{s: s} - return rs -} - -type ProjectsLocationsConnectionsEndUserAuthenticationsService struct { - s *Service -} - func NewProjectsLocationsConnectionsEventSubscriptionsService(s *Service) *ProjectsLocationsConnectionsEventSubscriptionsService { rs := &ProjectsLocationsConnectionsEventSubscriptionsService{s: s} return rs @@ -1376,8 +1364,6 @@ type ConnectorVersion struct { // EventingConfigTemplate: Output only. Eventing configuration supported by the // Connector. EventingConfigTemplate *EventingConfigTemplate `json:"eventingConfigTemplate,omitempty"` - // IsAsyncOperationsSupported: Output only. Is async operations supported. - IsAsyncOperationsSupported bool `json:"isAsyncOperationsSupported,omitempty"` // IsCustomActionsSupported: Output only. Is custom actions supported. IsCustomActionsSupported bool `json:"isCustomActionsSupported,omitempty"` // IsCustomEntitiesSupported: Output only. Is custom entities supported. @@ -1615,21 +1601,35 @@ func (s CustomConnector) MarshalJSON() ([]byte, error) { // CustomConnectorVersion: CustomConnectorVersion indicates a specific version // of a connector. type CustomConnectorVersion struct { - // AuthConfig: Optional. Authentication config for accessing connector facade/ - // proxy. This is used only when enable_backend_destination_config is true. + // AsyncOperationsSupport: Optional. Indicates if Async Operations/Connector + // Job is supported. This is only available for SDK based custom connectors. + AsyncOperationsSupport bool `json:"asyncOperationsSupport,omitempty"` + // AuthConfig: Optional. Authentication config for accessing connector service + // (facade). This is used only when enable_backend_destination_config is true. AuthConfig *AuthConfig `json:"authConfig,omitempty"` - // BackendVariableTemplates: Optional. Backend variables config templates. This - // translates to additional variable templates in connection. + // AuthConfigTemplates: Optional. Auth Config Templates is only used when + // connector backend is enabled. This is used to specify the auth configs + // supported by the connector backend service to talk to the actual application + // backend. + AuthConfigTemplates []*AuthConfigTemplate `json:"authConfigTemplates,omitempty"` + // AuthOverrideSupport: Optional. Auth override support. + AuthOverrideSupport bool `json:"authOverrideSupport,omitempty"` + // BackendVariableTemplates: Optional. Backend variable templates is only used + // when connector backend is enabled. This is used to specify the variables + // required by the connector backend service to talk to the actual application + // backend. This translates to additional variable templates in the connection + // config. BackendVariableTemplates []*ConfigVariableTemplate `json:"backendVariableTemplates,omitempty"` // CreateTime: Output only. Created time. CreateTime string `json:"createTime,omitempty"` // DestinationConfigs: Optional. Destination config(s) for accessing connector - // facade/ proxy. This is used only when enable_backend_destination_config is - // true. + // service (facade). This is used only when enable_backend_destination_config + // is true. DestinationConfigs []*DestinationConfig `json:"destinationConfigs,omitempty"` - // EnableBackendDestinationConfig: Optional. When enabled, the connector will - // be a facade/ proxy, and connects to the destination provided during - // connection creation. + // EnableBackendDestinationConfig: Optional. Indicates if an intermediatory + // connectorservice is used as backend. When this is enabled, the connector + // destination and connector auth config are required. For SDK based + // connectors, this is always enabled. EnableBackendDestinationConfig bool `json:"enableBackendDestinationConfig,omitempty"` // Labels: Optional. Resource labels to represent user-provided metadata. Refer // to cloud documentation on labels for more details. @@ -1647,11 +1647,13 @@ type CustomConnectorVersion struct { // ServiceAccount: Optional. Service account used by runtime plane to access // auth config secrets. ServiceAccount string `json:"serviceAccount,omitempty"` - // SpecLocation: Optional. Location of the custom connector spec. The location - // can be either a public url like `https://public-url.com/spec` Or a Google - // Cloud Storage location like `gs:///` + // SpecLocation: Optional. Location of the custom connector spec. This is only + // used for Open API based custom connectors. The location can be either a + // public url like `https://public-url.com/spec` Or a Google Cloud Storage + // location like `gs:///`. SpecLocation string `json:"specLocation,omitempty"` - // SpecServerUrls: Output only. Server URLs parsed from the spec. + // SpecServerUrls: Output only. Server URLs parsed from the Open API spec. This + // is only used for Open API based custom connectors. SpecServerUrls []string `json:"specServerUrls,omitempty"` // State: Output only. State of the custom connector version. // @@ -1665,15 +1667,15 @@ type CustomConnectorVersion struct { // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AuthConfig") to + // ForceSendFields is a list of field names (e.g. "AsyncOperationsSupport") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AuthConfig") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "AsyncOperationsSupport") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -2037,3999 +2039,3935 @@ func (s EndPoint) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EndUserAuthentication: AuthConfig defines details of a authentication type. -type EndUserAuthentication struct { - // ConfigVariables: Optional. Config variables for the EndUserAuthentication. - ConfigVariables []*EndUserAuthenticationConfigVariable `json:"configVariables,omitempty"` +// EndpointAttachment: represents the Connector's Endpoint Attachment resource +type EndpointAttachment struct { // CreateTime: Output only. Created time. CreateTime string `json:"createTime,omitempty"` - // DestinationConfigs: Optional. Destination configs for the - // EndUserAuthentication. - DestinationConfigs []*DestinationConfig `json:"destinationConfigs,omitempty"` - // EndUserAuthenticationConfig: Optional. The EndUserAuthenticationConfig for - // the EndUserAuthentication. - EndUserAuthenticationConfig *EndUserAuthenticationConfig `json:"endUserAuthenticationConfig,omitempty"` - // Labels: Optional. Labels for the EndUserAuthentication. - Labels []string `json:"labels,omitempty"` - // Name: Required. Identifier. Resource name of the EndUserAuthentication. - // Format: - // projects/{project}/locations/{location}/connections/{connection}/endUserAuthe - // ntications/{end_user_authentication} + // Description: Optional. Description of the resource. + Description string `json:"description,omitempty"` + // EndpointGlobalAccess: Optional. The Private Service Connect Connection + // Endpoint Global Access. + // https://cloud.google.com/vpc/docs/about-accessing-vpc-hosted-services-endpoints#global-access + EndpointGlobalAccess bool `json:"endpointGlobalAccess,omitempty"` + // EndpointIp: Output only. The Private Service Connect connection endpoint ip + EndpointIp string `json:"endpointIp,omitempty"` + // Labels: Optional. Resource labels to represent user-provided metadata. Refer + // to cloud documentation on labels for more details. + // https://cloud.google.com/compute/docs/labeling-resources + Labels map[string]string `json:"labels,omitempty"` + // Name: Output only. Resource name of the Endpoint Attachment. Format: + // projects/{project}/locations/{location}/endpointAttachments/{endpoint_attachm + // ent} Name string `json:"name,omitempty"` - // NotifyEndpointDestination: Optional. The destination to hit when we receive - // an event - NotifyEndpointDestination *EndUserAuthenticationNotifyEndpointDestination `json:"notifyEndpointDestination,omitempty"` - // Status: Optional. Status of the EndUserAuthentication. - Status *EndUserAuthenticationEndUserAuthenticationStatus `json:"status,omitempty"` + // ServiceAttachment: Required. The path of the service attachment + ServiceAttachment string `json:"serviceAttachment,omitempty"` + // State: Output only. The Private Service Connect Connection Endpoint State. + // This value is only available in the Full view. + // + // Possible values: + // "STATE_UNSPECIFIED" - STATE_UNSPECIFIED. + // "PENDING" - The endpoint is pending acceptance by the producer. + // "ACCEPTED" - The endpoint has been accepted by the producer. + // "REJECTED" - The endpoint has been rejected by the producer. + // "CLOSED" - The endpoint has been closed by the producer and will not serve + // traffic going forward. + // "FROZEN" - The endpoint has been frozen by the producer and will not serve + // traffic. + // "NEEDS_ATTENTION" - The endpoint has been accepted by the producer, but it + // is not ready to serve the traffic due to producer side issues. + // "ACCEPTED_NOT_PROGRAMMED" - The endpoint has been accepted by the + // producer, but it cannot be programmed to the data plane due to invariant + // violation. + State string `json:"state,omitempty"` // UpdateTime: Output only. Updated time. UpdateTime string `json:"updateTime,omitempty"` - // UserEmail: Optional. Deprecated: The email of the user. - UserEmail string `json:"userEmail,omitempty"` - // UserId: Optional. The user id of the user. - UserId string `json:"userId,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ConfigVariables") to + // 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. "ConfigVariables") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See + // NullFields is a list of field names (e.g. "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 EndUserAuthentication) MarshalJSON() ([]byte, error) { - type NoMethod EndUserAuthentication +func (s EndpointAttachment) MarshalJSON() ([]byte, error) { + type NoMethod EndpointAttachment return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EndUserAuthenticationConfig: EndUserAuthenticationConfig defines details of -// a authentication configuration for EUC -type EndUserAuthenticationConfig struct { - // AdditionalVariables: Optional. List containing additional auth configs. - AdditionalVariables []*EndUserAuthenticationConfigVariable `json:"additionalVariables,omitempty"` - // AuthKey: Identifier key for auth config - AuthKey string `json:"authKey,omitempty"` - // AuthType: The type of authentication configured. - // - // Possible values: - // "AUTH_TYPE_UNSPECIFIED" - Authentication type not specified. - // "USER_PASSWORD" - Username and Password Authentication. - // "OAUTH2_JWT_BEARER" - JSON Web Token (JWT) Profile for Oauth 2.0 - // Authorization Grant based authentication - // "OAUTH2_CLIENT_CREDENTIALS" - Oauth 2.0 Client Credentials Grant - // Authentication - // "SSH_PUBLIC_KEY" - SSH Public Key Authentication - // "OAUTH2_AUTH_CODE_FLOW" - Oauth 2.0 Authorization Code Flow - // "GOOGLE_AUTHENTICATION" - Google authentication - // "OAUTH2_AUTH_CODE_FLOW_GOOGLE_MANAGED" - Oauth 2.0 Authorization Code Flow - // with Google Provided OAuth Client - AuthType string `json:"authType,omitempty"` - // Oauth2AuthCodeFlow: Oauth2AuthCodeFlow. - Oauth2AuthCodeFlow *EndUserAuthenticationConfigOauth2AuthCodeFlow `json:"oauth2AuthCodeFlow,omitempty"` - // Oauth2AuthCodeFlowGoogleManaged: Oauth2AuthCodeFlowGoogleManaged. - Oauth2AuthCodeFlowGoogleManaged *EndUserAuthenticationConfigOauth2AuthCodeFlowGoogleManaged `json:"oauth2AuthCodeFlowGoogleManaged,omitempty"` - // Oauth2ClientCredentials: Oauth2ClientCredentials. - Oauth2ClientCredentials *EndUserAuthenticationConfigOauth2ClientCredentials `json:"oauth2ClientCredentials,omitempty"` - // Oauth2JwtBearer: Oauth2JwtBearer. - Oauth2JwtBearer *EndUserAuthenticationConfigOauth2JwtBearer `json:"oauth2JwtBearer,omitempty"` - // SshPublicKey: SSH Public Key. - SshPublicKey *EndUserAuthenticationConfigSshPublicKey `json:"sshPublicKey,omitempty"` - // UserPassword: UserPassword. - UserPassword *EndUserAuthenticationConfigUserPassword `json:"userPassword,omitempty"` - // ForceSendFields is a list of field names (e.g. "AdditionalVariables") to +// EnrichmentConfig: Data enrichment configuration. +type EnrichmentConfig struct { + // AppendAcl: Optional. Append ACL to the event. + AppendAcl bool `json:"appendAcl,omitempty"` + // ForceSendFields is a list of field names (e.g. "AppendAcl") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AdditionalVariables") to include - // in API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. See + // NullFields is a list of field names (e.g. "AppendAcl") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s EndUserAuthenticationConfig) MarshalJSON() ([]byte, error) { - type NoMethod EndUserAuthenticationConfig +func (s EnrichmentConfig) MarshalJSON() ([]byte, error) { + type NoMethod EnrichmentConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EndUserAuthenticationConfigOauth2AuthCodeFlow: Parameters to support Oauth -// 2.0 Auth Code Grant Authentication. See -// https://www.rfc-editor.org/rfc/rfc6749#section-1.3.1 for more details. -type EndUserAuthenticationConfigOauth2AuthCodeFlow struct { - // AuthCode: Optional. Authorization code to be exchanged for access and - // refresh tokens. - AuthCode string `json:"authCode,omitempty"` - // AuthUri: Optional. Auth URL for Authorization Code Flow - AuthUri string `json:"authUri,omitempty"` - // ClientId: Optional. Client ID for user-provided OAuth app. - ClientId string `json:"clientId,omitempty"` - // ClientSecret: Optional. Client secret for user-provided OAuth app. - ClientSecret string `json:"clientSecret,omitempty"` - // EnablePkce: Optional. Whether to enable PKCE when the user performs the auth - // code flow. - EnablePkce bool `json:"enablePkce,omitempty"` - // OauthTokenData: Optional. Auth Code Data - OauthTokenData *OAuthTokenData `json:"oauthTokenData,omitempty"` - // PkceVerifier: Optional. PKCE verifier to be used during the auth code - // exchange. - PkceVerifier string `json:"pkceVerifier,omitempty"` - // RedirectUri: Optional. Redirect URI to be provided during the auth code - // exchange. - RedirectUri string `json:"redirectUri,omitempty"` - // Scopes: Optional. Scopes the connection will request when the user performs - // the auth code flow. - Scopes []string `json:"scopes,omitempty"` - // ForceSendFields is a list of field names (e.g. "AuthCode") to +// EnumOption: EnumOption definition +type EnumOption struct { + // DisplayName: Optional. Display name of the option. + DisplayName string `json:"displayName,omitempty"` + // Id: Optional. Id of the option. + Id string `json:"id,omitempty"` + // ForceSendFields is a list of field names (e.g. "DisplayName") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AuthCode") to include in API + // NullFields is a list of field names (e.g. "DisplayName") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s EndUserAuthenticationConfigOauth2AuthCodeFlow) MarshalJSON() ([]byte, error) { - type NoMethod EndUserAuthenticationConfigOauth2AuthCodeFlow +func (s EnumOption) MarshalJSON() ([]byte, error) { + type NoMethod EnumOption return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EndUserAuthenticationConfigOauth2AuthCodeFlowGoogleManaged: Parameters to -// support Oauth 2.0 Auth Code Grant Authentication using Google Provided OAuth -// Client. See https://tools.ietf.org/html/rfc6749#section-1.3.1 for more -// details. -type EndUserAuthenticationConfigOauth2AuthCodeFlowGoogleManaged struct { - // AuthCode: Optional. Authorization code to be exchanged for access and - // refresh tokens. - AuthCode string `json:"authCode,omitempty"` - // OauthTokenData: Auth Code Data - OauthTokenData *OAuthTokenData `json:"oauthTokenData,omitempty"` - // RedirectUri: Optional. Redirect URI to be provided during the auth code - // exchange. - RedirectUri string `json:"redirectUri,omitempty"` - // Scopes: Required. Scopes the connection will request when the user performs - // the auth code flow. - Scopes []string `json:"scopes,omitempty"` - // ForceSendFields is a list of field names (e.g. "AuthCode") to +// EventSubscription: represents the Connector's EventSubscription resource +type EventSubscription struct { + // CreateTime: Output only. Created time. + CreateTime string `json:"createTime,omitempty"` + // Destinations: Optional. The destination to hit when we receive an event + Destinations *EventSubscriptionDestination `json:"destinations,omitempty"` + // EventTypeId: Optional. Event type id of the event of current + // EventSubscription. + EventTypeId string `json:"eventTypeId,omitempty"` + // Jms: Optional. JMS is the source for the event listener. + Jms *JMS `json:"jms,omitempty"` + // Name: Required. Resource name of the EventSubscription. Format: + // projects/{project}/locations/{location}/connections/{connection}/eventSubscri + // ptions/{event_subscription} + Name string `json:"name,omitempty"` + // Status: Optional. Status indicates the status of the event subscription + // resource + Status *EventSubscriptionStatus `json:"status,omitempty"` + // Subscriber: Optional. name of the Subscriber for the current + // EventSubscription. + Subscriber string `json:"subscriber,omitempty"` + // SubscriberLink: Optional. Link for Subscriber of the current + // EventSubscription. + SubscriberLink string `json:"subscriberLink,omitempty"` + // TriggerConfigVariables: Optional. Configuration for configuring the trigger + TriggerConfigVariables []*ConfigVariable `json:"triggerConfigVariables,omitempty"` + // UpdateTime: Output only. Updated time. + 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. "AuthCode") to include in API + // 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 EndUserAuthenticationConfigOauth2AuthCodeFlowGoogleManaged) MarshalJSON() ([]byte, error) { - type NoMethod EndUserAuthenticationConfigOauth2AuthCodeFlowGoogleManaged +func (s EventSubscription) MarshalJSON() ([]byte, error) { + type NoMethod EventSubscription return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EndUserAuthenticationConfigOauth2ClientCredentials: Parameters to support -// Oauth 2.0 Client Credentials Grant Authentication. See -// https://tools.ietf.org/html/rfc6749#section-1.3.4 for more details. -type EndUserAuthenticationConfigOauth2ClientCredentials struct { - // ClientId: The client identifier. - ClientId string `json:"clientId,omitempty"` - // ClientSecret: Required. string value containing the client secret. - ClientSecret string `json:"clientSecret,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClientId") to +// EventSubscriptionDestination: Message for EventSubscription Destination to +// act on receiving an event +type EventSubscriptionDestination struct { + // Endpoint: OPTION 1: Hit an endpoint when we receive an event. + Endpoint *EndPoint `json:"endpoint,omitempty"` + // Pubsub: OPTION 3: Write the event to Pub/Sub topic. + Pubsub *PubSub `json:"pubsub,omitempty"` + // ServiceAccount: Service account needed for runtime plane to trigger IP + // workflow. + ServiceAccount string `json:"serviceAccount,omitempty"` + // Type: type of the destination + // + // Possible values: + // "TYPE_UNSPECIFIED" - Default state. + // "ENDPOINT" - Endpoint - Hit the value of endpoint when event is received + // "GCS" - Cloud Storage - Write the event to Cloud Storage bucket + // "PUBSUB" - Pub/Sub - Write the event to Pub/Sub topic + Type string `json:"type,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. "ClientId") to include in API + // 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 EndUserAuthenticationConfigOauth2ClientCredentials) MarshalJSON() ([]byte, error) { - type NoMethod EndUserAuthenticationConfigOauth2ClientCredentials +func (s EventSubscriptionDestination) MarshalJSON() ([]byte, error) { + type NoMethod EventSubscriptionDestination return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EndUserAuthenticationConfigOauth2JwtBearer: Parameters to support JSON Web -// Token (JWT) Profile for Oauth 2.0 Authorization Grant based authentication. -// See https://tools.ietf.org/html/rfc7523 for more details. -type EndUserAuthenticationConfigOauth2JwtBearer struct { - // ClientKey: Required. string version reference containing a PKCS#8 - // PEM-encoded private key associated with the Client Certificate. This private - // key will be used to sign JWTs used for the jwt-bearer authorization grant. - // Specified in the form as: `projects/*/strings/*/versions/*`. - ClientKey string `json:"clientKey,omitempty"` - // JwtClaims: JwtClaims providers fields to generate the token. - JwtClaims *EndUserAuthenticationConfigOauth2JwtBearerJwtClaims `json:"jwtClaims,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClientKey") to +// EventSubscriptionStatus: EventSubscription Status denotes the status of the +// EventSubscription resource. +type EventSubscriptionStatus struct { + // Description: Output only. Description of the state. + Description string `json:"description,omitempty"` + // State: Output only. State of Event Subscription resource. + // + // Possible values: + // "STATE_UNSPECIFIED" - Default state. + // "CREATING" - EventSubscription creation is in progress. + // "UPDATING" - EventSubscription is in Updating status. + // "ACTIVE" - EventSubscription is in Active state and is ready to receive + // events. + // "SUSPENDED" - EventSubscription is currently suspended. + // "ERROR" - EventSubscription is in Error state. + State string `json:"state,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. "ClientKey") to include in API + // 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 EndUserAuthenticationConfigOauth2JwtBearer) MarshalJSON() ([]byte, error) { - type NoMethod EndUserAuthenticationConfigOauth2JwtBearer +func (s EventSubscriptionStatus) MarshalJSON() ([]byte, error) { + type NoMethod EventSubscriptionStatus return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EndUserAuthenticationConfigOauth2JwtBearerJwtClaims: JWT claims used for the -// jwt-bearer authorization grant. -type EndUserAuthenticationConfigOauth2JwtBearerJwtClaims struct { - // Audience: Value for the "aud" claim. - Audience string `json:"audience,omitempty"` - // Issuer: Value for the "iss" claim. - Issuer string `json:"issuer,omitempty"` - // Subject: Value for the "sub" claim. - Subject string `json:"subject,omitempty"` - // ForceSendFields is a list of field names (e.g. "Audience") to +// EventType: EventType includes fields. +type EventType struct { + // CreateTime: Output only. Created time. + CreateTime string `json:"createTime,omitempty"` + // EnrichedEventPayloadSchema: Output only. Schema of the event payload after + // enriched. Will be null if read before send is not supported. + EnrichedEventPayloadSchema string `json:"enrichedEventPayloadSchema,omitempty"` + // EntityType: Output only. Runtime entity type name. Will be null if entity + // type map is not available. Used for read before send feature. + EntityType string `json:"entityType,omitempty"` + // EventPayloadSchema: Output only. Schema of webhook event payload. + EventPayloadSchema string `json:"eventPayloadSchema,omitempty"` + // EventTypeId: Output only. Event type id. Example: `ticket.created`. + EventTypeId string `json:"eventTypeId,omitempty"` + // IdPath: Output only. Id path denotes the path of id in webhook payload. + IdPath string `json:"idPath,omitempty"` + // Name: Output only. Resource name of the eventtype. Format: + // projects/{project}/locations/{location}/providers/{provider}/connectors/{conn + // ector}/versions/{version}/eventtypes/{eventtype} Only global location is + // supported for Connector resource. + Name string `json:"name,omitempty"` + // UpdateTime: Output only. Updated time. + 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. "Audience") to include in API + // 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 EndUserAuthenticationConfigOauth2JwtBearerJwtClaims) MarshalJSON() ([]byte, error) { - type NoMethod EndUserAuthenticationConfigOauth2JwtBearerJwtClaims - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +func (s EventType) MarshalJSON() ([]byte, error) { + type NoMethod EventType + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EndUserAuthenticationConfigSshPublicKey: Parameters to support Ssh public -// key Authentication. -type EndUserAuthenticationConfigSshPublicKey struct { - // CertType: Format of SSH Client cert. - CertType string `json:"certType,omitempty"` - // SshClientCert: Required. SSH Client Cert. It should contain both public and - // private key. - SshClientCert string `json:"sshClientCert,omitempty"` - // SshClientCertPass: Required. Password (passphrase) for ssh client - // certificate if it has one. - SshClientCertPass string `json:"sshClientCertPass,omitempty"` - // Username: The user account used to authenticate. - Username string `json:"username,omitempty"` - // ForceSendFields is a list of field names (e.g. "CertType") to +// EventingConfig: Eventing Configuration of a connection next: 18 +type EventingConfig struct { + // AdditionalVariables: Optional. Additional eventing related field values + AdditionalVariables []*ConfigVariable `json:"additionalVariables,omitempty"` + // AuthConfig: Optional. Auth details for the webhook adapter. + AuthConfig *AuthConfig `json:"authConfig,omitempty"` + // DeadLetterConfig: Optional. Dead letter configuration for eventing of a + // connection. + DeadLetterConfig *DeadLetterConfig `json:"deadLetterConfig,omitempty"` + // EnrichmentConfig: Optional. Data enrichment configuration. + EnrichmentConfig *EnrichmentConfig `json:"enrichmentConfig,omitempty"` + // EnrichmentEnabled: Optional. Enrichment Enabled. + EnrichmentEnabled bool `json:"enrichmentEnabled,omitempty"` + // EventsListenerIngressEndpoint: Optional. Ingress endpoint of the event + // listener. This is used only when private connectivity is enabled. + EventsListenerIngressEndpoint string `json:"eventsListenerIngressEndpoint,omitempty"` + // ListenerAuthConfig: Optional. Auth details for the event listener. + ListenerAuthConfig *AuthConfig `json:"listenerAuthConfig,omitempty"` + // PrivateConnectivityEnabled: Optional. Private Connectivity Enabled. + PrivateConnectivityEnabled bool `json:"privateConnectivityEnabled,omitempty"` + // ProxyDestinationConfig: Optional. Proxy for Eventing auto-registration. + ProxyDestinationConfig *DestinationConfig `json:"proxyDestinationConfig,omitempty"` + // RegistrationDestinationConfig: Optional. Registration endpoint for auto + // registration. + RegistrationDestinationConfig *DestinationConfig `json:"registrationDestinationConfig,omitempty"` + // SslConfig: Optional. Ssl config of a connection + SslConfig *SslConfig `json:"sslConfig,omitempty"` + // ForceSendFields is a list of field names (e.g. "AdditionalVariables") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CertType") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "AdditionalVariables") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s EndUserAuthenticationConfigSshPublicKey) MarshalJSON() ([]byte, error) { - type NoMethod EndUserAuthenticationConfigSshPublicKey +func (s EventingConfig) MarshalJSON() ([]byte, error) { + type NoMethod EventingConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EndUserAuthenticationConfigUserPassword: Parameters to support Username and -// Password Authentication. -type EndUserAuthenticationConfigUserPassword struct { - // Password: string version reference containing the password. - Password string `json:"password,omitempty"` - // Username: Username. - Username string `json:"username,omitempty"` - // ForceSendFields is a list of field names (e.g. "Password") to +// EventingConfigTemplate: Eventing Config details of a connector version. +// next: 14 +type EventingConfigTemplate struct { + // AdditionalVariables: Additional fields that need to be rendered. + AdditionalVariables []*ConfigVariableTemplate `json:"additionalVariables,omitempty"` + // AuthConfigTemplates: AuthConfigTemplates represents the auth values for the + // webhook adapter. + AuthConfigTemplates []*AuthConfigTemplate `json:"authConfigTemplates,omitempty"` + // AutoRefresh: Auto refresh to extend webhook life. + AutoRefresh bool `json:"autoRefresh,omitempty"` + // AutoRegistrationSupported: Auto Registration supported. + AutoRegistrationSupported bool `json:"autoRegistrationSupported,omitempty"` + // EncryptionKeyTemplate: Encryption key (can be either Google managed or + // CMEK). + EncryptionKeyTemplate *ConfigVariableTemplate `json:"encryptionKeyTemplate,omitempty"` + // EnrichmentSupported: Enrichment Supported. + EnrichmentSupported bool `json:"enrichmentSupported,omitempty"` + // EventListenerType: The type of the event listener for a specific connector. + // + // Possible values: + // "EVENT_LISTENER_TYPE_UNSPECIFIED" - Default value. + // "WEBHOOK_LISTENER" - Webhook listener. e.g. Jira, Zendesk, Servicenow + // etc., + // "JMS_LISTENER" - JMS Listener. e.g. IBM MQ, Rabbit MQ etc., + EventListenerType string `json:"eventListenerType,omitempty"` + // IsEventingSupported: Is Eventing Supported. + IsEventingSupported bool `json:"isEventingSupported,omitempty"` + // ListenerAuthConfigTemplates: ListenerAuthConfigTemplates represents the auth + // values for the event listener. + ListenerAuthConfigTemplates []*AuthConfigTemplate `json:"listenerAuthConfigTemplates,omitempty"` + // ProxyDestinationConfig: Proxy destination config template. + ProxyDestinationConfig *DestinationConfigTemplate `json:"proxyDestinationConfig,omitempty"` + // RegistrationDestinationConfig: Registration host destination config + // template. + RegistrationDestinationConfig *DestinationConfigTemplate `json:"registrationDestinationConfig,omitempty"` + // SslConfigTemplate: SSL Config template for the connector version. + SslConfigTemplate *SslConfigTemplate `json:"sslConfigTemplate,omitempty"` + // TriggerConfigVariables: Trigger Config fields that needs to be rendered + TriggerConfigVariables []*ConfigVariableTemplate `json:"triggerConfigVariables,omitempty"` + // ForceSendFields is a list of field names (e.g. "AdditionalVariables") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Password") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "AdditionalVariables") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s EndUserAuthenticationConfigUserPassword) MarshalJSON() ([]byte, error) { - type NoMethod EndUserAuthenticationConfigUserPassword +func (s EventingConfigTemplate) MarshalJSON() ([]byte, error) { + type NoMethod EventingConfigTemplate return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EndUserAuthenticationConfigVariable: EndUserAuthenticationConfigVariable -// represents a configuration variable present in a EndUserAuthentication. -type EndUserAuthenticationConfigVariable struct { - // BoolValue: Value is a bool. - BoolValue bool `json:"boolValue,omitempty"` - // IntValue: Value is an integer - IntValue int64 `json:"intValue,omitempty,string"` - // Key: Required. Key of the config variable. - Key string `json:"key,omitempty"` - // SecretValue: Value is a secret - SecretValue *Secret `json:"secretValue,omitempty"` - // StringValue: Value is a string. - StringValue string `json:"stringValue,omitempty"` - // ForceSendFields is a list of field names (e.g. "BoolValue") to +// EventingDetails: Eventing Details message. +type EventingDetails struct { + // CustomEventTypes: Output only. Custom Event Types. + CustomEventTypes bool `json:"customEventTypes,omitempty"` + // Description: Output only. Description. + Description string `json:"description,omitempty"` + // DocumentationLink: Output only. Link to public documentation. + DocumentationLink string `json:"documentationLink,omitempty"` + // IconLocation: Output only. Cloud storage location of the icon. + IconLocation string `json:"iconLocation,omitempty"` + // LaunchStage: Output only. Eventing Launch Stage. + // + // Possible values: + // "LAUNCH_STAGE_UNSPECIFIED" - LAUNCH_STAGE_UNSPECIFIED. + // "PREVIEW" - PREVIEW. + // "GA" - GA. + // "DEPRECATED" - DEPRECATED. + // "TEST" - TEST. + // "PRIVATE_PREVIEW" - PRIVATE_PREVIEW. + LaunchStage string `json:"launchStage,omitempty"` + // Name: Output only. Name of the Eventing trigger. + Name string `json:"name,omitempty"` + // SearchTags: Output only. Array of search keywords. + SearchTags []string `json:"searchTags,omitempty"` + // Type: Output only. The type of the event listener for a specific connector. + // + // Possible values: + // "TYPE_UNSPECIFIED" - Default value. + // "WEBHOOK" - Webhook listener. e.g. Jira, Zendesk, Servicenow etc., + // "JMS" - JMS Listener. e.g. IBM MQ, Rabbit MQ etc., + Type string `json:"type,omitempty"` + // ForceSendFields is a list of field names (e.g. "CustomEventTypes") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BoolValue") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "CustomEventTypes") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s EndUserAuthenticationConfigVariable) MarshalJSON() ([]byte, error) { - type NoMethod EndUserAuthenticationConfigVariable +func (s EventingDetails) MarshalJSON() ([]byte, error) { + type NoMethod EventingDetails return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EndUserAuthenticationEndUserAuthenticationStatus: EndUserAuthentication -// Status denotes the status of the EndUserAuthentication resource. -type EndUserAuthenticationEndUserAuthenticationStatus struct { - // Description: Output only. Description of the state. - Description string `json:"description,omitempty"` - // State: Output only. State of Event Subscription resource. - // - // Possible values: - // "STATE_UNSPECIFIED" - Default state. - // "ACTIVE" - EndUserAuthentication is in Active state. - // "ERROR" - EndUserAuthentication is in Error state. - State string `json:"state,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to +// EventingRuntimeData: Eventing runtime data has the details related to +// eventing managed by the system. +type EventingRuntimeData struct { + // EventsListenerEndpoint: Output only. Events listener endpoint. The value + // will populated after provisioning the events listener. + EventsListenerEndpoint string `json:"eventsListenerEndpoint,omitempty"` + // EventsListenerPscSa: Output only. Events listener PSC Service attachment. + // The value will be populated after provisioning the events listener with + // private connectivity enabled. + EventsListenerPscSa string `json:"eventsListenerPscSa,omitempty"` + // Status: Output only. Current status of eventing. + Status *EventingStatus `json:"status,omitempty"` + // WebhookData: Output only. Webhook data. + WebhookData *WebhookData `json:"webhookData,omitempty"` + // WebhookSubscriptions: Output only. Webhook subscriptions. + WebhookSubscriptions *WebhookSubscriptions `json:"webhookSubscriptions,omitempty"` + // ForceSendFields is a list of field names (e.g. "EventsListenerEndpoint") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://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 + // NullFields is a list of field names (e.g. "EventsListenerEndpoint") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s EndUserAuthenticationEndUserAuthenticationStatus) MarshalJSON() ([]byte, error) { - type NoMethod EndUserAuthenticationEndUserAuthenticationStatus +func (s EventingRuntimeData) MarshalJSON() ([]byte, error) { + type NoMethod EventingRuntimeData return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EndUserAuthenticationNotifyEndpointDestination: Message for -// NotifyEndpointDestination Destination to hit when the refresh token is -// expired. -type EndUserAuthenticationNotifyEndpointDestination struct { - // Endpoint: Optional. OPTION 1: Hit an endpoint when the refresh token is - // expired. - Endpoint *EndUserAuthenticationNotifyEndpointDestinationEndPoint `json:"endpoint,omitempty"` - // ServiceAccount: Required. Service account needed for runtime plane to notify - // the backend. - ServiceAccount string `json:"serviceAccount,omitempty"` - // Type: Required. type of the destination +// EventingStatus: EventingStatus indicates the state of eventing. +type EventingStatus struct { + // Description: Output only. Description of error if State is set to "ERROR". + Description string `json:"description,omitempty"` + // State: Output only. State. // // Possible values: - // "TYPE_UNSPECIFIED" - Default state. - // "ENDPOINT" - Endpoint - Hit the value of endpoint when event is received - Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "Endpoint") to + // "STATE_UNSPECIFIED" - Default state. + // "ACTIVE" - Eventing is enabled and ready to receive events. + // "ERROR" - Eventing is not active due to an error. + // "INGRESS_ENDPOINT_REQUIRED" - Ingress endpoint required. + State string `json:"state,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. "Endpoint") to include in API + // 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 EndUserAuthenticationNotifyEndpointDestination) MarshalJSON() ([]byte, error) { - type NoMethod EndUserAuthenticationNotifyEndpointDestination +func (s EventingStatus) MarshalJSON() ([]byte, error) { + type NoMethod EventingStatus return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EndUserAuthenticationNotifyEndpointDestinationEndPoint: Endpoint message -// includes details of the Destination endpoint. -type EndUserAuthenticationNotifyEndpointDestinationEndPoint struct { - // EndpointUri: Required. The URI of the Endpoint. - EndpointUri string `json:"endpointUri,omitempty"` - // Headers: Optional. List of Header to be added to the Endpoint. - Headers []*EndUserAuthenticationNotifyEndpointDestinationEndPointHeader `json:"headers,omitempty"` - // ForceSendFields is a list of field names (e.g. "EndpointUri") to +// Expr: 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 Expr 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. "EndpointUri") to include in API + // 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 EndUserAuthenticationNotifyEndpointDestinationEndPoint) MarshalJSON() ([]byte, error) { - type NoMethod EndUserAuthenticationNotifyEndpointDestinationEndPoint +func (s Expr) MarshalJSON() ([]byte, error) { + type NoMethod Expr return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EndUserAuthenticationNotifyEndpointDestinationEndPointHeader: Header details -// for a given header to be added to Endpoint. -type EndUserAuthenticationNotifyEndpointDestinationEndPointHeader struct { - // Key: Required. Key of Header. - Key string `json:"key,omitempty"` - // Value: Required. Value of Header. - Value string `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. "Key") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See +// ExtractionRule: Extraction Rule. +type ExtractionRule struct { + // ExtractionRegex: Regex used to extract backend details from source. If + // empty, whole source value will be used. + ExtractionRegex string `json:"extractionRegex,omitempty"` + // Source: Source on which the rule is applied. + Source *Source `json:"source,omitempty"` + // ForceSendFields is a list of field names (e.g. "ExtractionRegex") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Key") to include in API requests - // with the JSON null value. By default, fields with empty values are omitted - // from API requests. See + // NullFields is a list of field names (e.g. "ExtractionRegex") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s EndUserAuthenticationNotifyEndpointDestinationEndPointHeader) MarshalJSON() ([]byte, error) { - type NoMethod EndUserAuthenticationNotifyEndpointDestinationEndPointHeader - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +func (s ExtractionRule) MarshalJSON() ([]byte, error) { + type NoMethod ExtractionRule + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EndpointAttachment: represents the Connector's Endpoint Attachment resource -type EndpointAttachment struct { - // CreateTime: Output only. Created time. - CreateTime string `json:"createTime,omitempty"` - // Description: Optional. Description of the resource. - Description string `json:"description,omitempty"` - // EndpointGlobalAccess: Optional. The Private Service Connect Connection - // Endpoint Global Access. - // https://cloud.google.com/vpc/docs/about-accessing-vpc-hosted-services-endpoints#global-access - EndpointGlobalAccess bool `json:"endpointGlobalAccess,omitempty"` - // EndpointIp: Output only. The Private Service Connect connection endpoint ip - EndpointIp string `json:"endpointIp,omitempty"` - // Labels: Optional. Resource labels to represent user-provided metadata. Refer - // to cloud documentation on labels for more details. - // https://cloud.google.com/compute/docs/labeling-resources - Labels map[string]string `json:"labels,omitempty"` - // Name: Output only. Resource name of the Endpoint Attachment. Format: - // projects/{project}/locations/{location}/endpointAttachments/{endpoint_attachm - // ent} - Name string `json:"name,omitempty"` - // ServiceAttachment: Required. The path of the service attachment - ServiceAttachment string `json:"serviceAttachment,omitempty"` - // State: Output only. The Private Service Connect Connection Endpoint State. - // This value is only available in the Full view. - // - // Possible values: - // "STATE_UNSPECIFIED" - STATE_UNSPECIFIED. - // "PENDING" - The endpoint is pending acceptance by the producer. - // "ACCEPTED" - The endpoint has been accepted by the producer. - // "REJECTED" - The endpoint has been rejected by the producer. - // "CLOSED" - The endpoint has been closed by the producer and will not serve - // traffic going forward. - // "FROZEN" - The endpoint has been frozen by the producer and will not serve - // traffic. - // "NEEDS_ATTENTION" - The endpoint has been accepted by the producer, but it - // is not ready to serve the traffic due to producer side issues. - // "ACCEPTED_NOT_PROGRAMMED" - The endpoint has been accepted by the - // producer, but it cannot be programmed to the data plane due to invariant - // violation. - State string `json:"state,omitempty"` - // UpdateTime: Output only. Updated time. - UpdateTime string `json:"updateTime,omitempty"` +// ExtractionRules: Extraction Rules to identity the backends from customer +// provided configuration in Connection resource. +type ExtractionRules struct { + // ExtractionRule: Collection of Extraction Rule. + ExtractionRule []*ExtractionRule `json:"extractionRule,omitempty"` + // ForceSendFields is a list of field names (e.g. "ExtractionRule") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ExtractionRule") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ExtractionRules) MarshalJSON() ([]byte, error) { + type NoMethod ExtractionRules + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// FetchAuthSchemaResponse: Response message for Connectors.GetAuthSchema. +type FetchAuthSchemaResponse struct { + // AuthSchemas: List of AuthSchemas. + AuthSchemas []*AuthSchema `json:"authSchemas,omitempty"` + // JsonSchema: JSON schema of the AuthSchemas. This is only populated if the + // view is JSON_SCHEMA. The schema is in draft-07 format. + JsonSchema *JsonAuthSchema `json:"jsonSchema,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 + // ForceSendFields is a list of field names (e.g. "AuthSchemas") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://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 + // NullFields is a list of field names (e.g. "AuthSchemas") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s EndpointAttachment) MarshalJSON() ([]byte, error) { - type NoMethod EndpointAttachment +func (s FetchAuthSchemaResponse) MarshalJSON() ([]byte, error) { + type NoMethod FetchAuthSchemaResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnrichmentConfig: Data enrichment configuration. -type EnrichmentConfig struct { - // AppendAcl: Optional. Append ACL to the event. - AppendAcl bool `json:"appendAcl,omitempty"` - // ForceSendFields is a list of field names (e.g. "AppendAcl") to +// Field: Metadata of an entity field. +type Field struct { + // AdditionalDetails: The following map contains fields that are not explicitly + // mentioned above,this give connectors the flexibility to add new metadata + // fields. + AdditionalDetails googleapi.RawMessage `json:"additionalDetails,omitempty"` + // DataType: The data type of the Field. + // + // Possible values: + // "DATA_TYPE_UNSPECIFIED" - Data type is not specified. + // "DATA_TYPE_INT" - DEPRECATED! Use DATA_TYPE_INTEGER. + // "DATA_TYPE_SMALLINT" - Short integer(int16) data type. + // "DATA_TYPE_DOUBLE" - Double data type. + // "DATA_TYPE_DATE" - Date data type. + // "DATA_TYPE_DATETIME" - DEPRECATED! Use DATA_TYPE_TIMESTAMP. + // "DATA_TYPE_TIME" - Time data type. + // "DATA_TYPE_STRING" - DEPRECATED! Use DATA_TYPE_VARCHAR. + // "DATA_TYPE_LONG" - DEPRECATED! Use DATA_TYPE_BIGINT. + // "DATA_TYPE_BOOLEAN" - Boolean data type. + // "DATA_TYPE_DECIMAL" - Decimal data type. + // "DATA_TYPE_UUID" - DEPRECATED! Use DATA_TYPE_VARCHAR. + // "DATA_TYPE_BLOB" - UNSUPPORTED! Binary data type. + // "DATA_TYPE_BIT" - Bit data type. + // "DATA_TYPE_TINYINT" - Small integer(int8) data type. + // "DATA_TYPE_INTEGER" - Integer(int32) data type. + // "DATA_TYPE_BIGINT" - Long integer(int64) data type. + // "DATA_TYPE_FLOAT" - Float data type. + // "DATA_TYPE_REAL" - Real data type. + // "DATA_TYPE_NUMERIC" - Numeric data type. + // "DATA_TYPE_CHAR" - Char data type. + // "DATA_TYPE_VARCHAR" - Varchar data type. + // "DATA_TYPE_LONGVARCHAR" - Longvarchar data type. + // "DATA_TYPE_TIMESTAMP" - Timestamp data type. + // "DATA_TYPE_NCHAR" - Nchar data type. + // "DATA_TYPE_NVARCHAR" - Nvarchar data type. + // "DATA_TYPE_LONGNVARCHAR" - Longnvarchar data type. + // "DATA_TYPE_NULL" - Null data type. + // "DATA_TYPE_OTHER" - UNSUPPORTED! Binary data type. + // "DATA_TYPE_JAVA_OBJECT" - UNSUPPORTED! Binary data type. + // "DATA_TYPE_DISTINCT" - UNSUPPORTED! Binary data type. + // "DATA_TYPE_STRUCT" - UNSUPPORTED! Binary data type. + // "DATA_TYPE_ARRAY" - UNSUPPORTED! Binary data type. + // "DATA_TYPE_CLOB" - UNSUPPORTED! Binary data type. + // "DATA_TYPE_REF" - UNSUPPORTED! Binary data type. + // "DATA_TYPE_DATALINK" - UNSUPPORTED! Binary data type. + // "DATA_TYPE_ROWID" - UNSUPPORTED! Row id data type. + // "DATA_TYPE_BINARY" - UNSUPPORTED! Binary data type. + // "DATA_TYPE_VARBINARY" - UNSUPPORTED! Variable binary data type. + // "DATA_TYPE_LONGVARBINARY" - UNSUPPORTED! Long variable binary data type. + // "DATA_TYPE_NCLOB" - UNSUPPORTED! NCLOB data type. + // "DATA_TYPE_SQLXML" - UNSUPPORTED! SQL XML data type is not supported. + // "DATA_TYPE_REF_CURSOR" - UNSUPPORTED! Cursor reference type is not + // supported. + // "DATA_TYPE_TIME_WITH_TIMEZONE" - UNSUPPORTED! Use TIME or TIMESTAMP + // instead. + // "DATA_TYPE_TIMESTAMP_WITH_TIMEZONE" - UNSUPPORTED! Use TIMESTAMP instead. + DataType string `json:"dataType,omitempty"` + // DefaultValue: The following field specifies the default value of the Field + // provided by the external system if a value is not provided. + DefaultValue interface{} `json:"defaultValue,omitempty"` + // Description: A brief description of the Field. + Description string `json:"description,omitempty"` + // Field: Name of the Field. + Field string `json:"field,omitempty"` + // JsonSchema: JsonSchema representation of this entity's schema + JsonSchema *JsonSchema `json:"jsonSchema,omitempty"` + // Key: The following boolean field specifies if the current Field acts as a + // primary key or id if the parent is of type entity. + Key bool `json:"key,omitempty"` + // Nullable: Specifies whether a null value is allowed. + Nullable bool `json:"nullable,omitempty"` + // Readonly: Specifies if the Field is readonly. + Readonly bool `json:"readonly,omitempty"` + // ForceSendFields is a list of field names (e.g. "AdditionalDetails") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AppendAcl") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "AdditionalDetails") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s EnrichmentConfig) MarshalJSON() ([]byte, error) { - type NoMethod EnrichmentConfig +func (s Field) MarshalJSON() ([]byte, error) { + type NoMethod Field return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EnumOption: EnumOption definition -type EnumOption struct { - // DisplayName: Optional. Display name of the option. - DisplayName string `json:"displayName,omitempty"` - // Id: Optional. Id of the option. - Id string `json:"id,omitempty"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to +// FieldComparison: Field that needs to be compared. +type FieldComparison struct { + // BoolValue: Boolean value + BoolValue bool `json:"boolValue,omitempty"` + // Comparator: Optional. Comparator to use for comparing the field value. + // + // Possible values: + // "COMPARATOR_UNSPECIFIED" - The default value. + // "EQUALS" - The field value must be equal to the specified value. + // "NOT_EQUALS" - The field value must not be equal to the specified value. + Comparator string `json:"comparator,omitempty"` + // IntValue: Integer value + IntValue int64 `json:"intValue,omitempty,string"` + // Key: Optional. Key of the field. + Key string `json:"key,omitempty"` + // StringValue: String value + StringValue string `json:"stringValue,omitempty"` + // ForceSendFields is a list of field names (e.g. "BoolValue") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DisplayName") to include in API + // NullFields is a list of field names (e.g. "BoolValue") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s EnumOption) MarshalJSON() ([]byte, error) { - type NoMethod EnumOption +func (s FieldComparison) MarshalJSON() ([]byte, error) { + type NoMethod FieldComparison return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EventSubscription: represents the Connector's EventSubscription resource -type EventSubscription struct { - // CreateTime: Output only. Created time. - CreateTime string `json:"createTime,omitempty"` - // Destinations: Optional. The destination to hit when we receive an event - Destinations *EventSubscriptionDestination `json:"destinations,omitempty"` - // EventTypeId: Optional. Event type id of the event of current - // EventSubscription. - EventTypeId string `json:"eventTypeId,omitempty"` - // Jms: Optional. JMS is the source for the event listener. - Jms *JMS `json:"jms,omitempty"` - // Name: Required. Resource name of the EventSubscription. Format: - // projects/{project}/locations/{location}/connections/{connection}/eventSubscri - // ptions/{event_subscription} - Name string `json:"name,omitempty"` - // Status: Optional. Status indicates the status of the event subscription - // resource - Status *EventSubscriptionStatus `json:"status,omitempty"` - // Subscriber: Optional. name of the Subscriber for the current - // EventSubscription. - Subscriber string `json:"subscriber,omitempty"` - // SubscriberLink: Optional. Link for Subscriber of the current - // EventSubscription. - SubscriberLink string `json:"subscriberLink,omitempty"` - // TriggerConfigVariables: Optional. Configuration for configuring the trigger - TriggerConfigVariables []*ConfigVariable `json:"triggerConfigVariables,omitempty"` - // UpdateTime: Output only. Updated time. - 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 +// HPAConfig: Autoscaling config for connector deployment system metrics. +type HPAConfig struct { + // CpuUtilizationThreshold: Output only. Percent CPU utilization where HPA + // triggers autoscaling. + CpuUtilizationThreshold int64 `json:"cpuUtilizationThreshold,omitempty,string"` + // MemoryUtilizationThreshold: Output only. Percent Memory utilization where + // HPA triggers autoscaling. + MemoryUtilizationThreshold int64 `json:"memoryUtilizationThreshold,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "CpuUtilizationThreshold") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://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 + // NullFields is a list of field names (e.g. "CpuUtilizationThreshold") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s EventSubscription) MarshalJSON() ([]byte, error) { - type NoMethod EventSubscription +func (s HPAConfig) MarshalJSON() ([]byte, error) { + type NoMethod HPAConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EventSubscriptionDestination: Message for EventSubscription Destination to -// act on receiving an event -type EventSubscriptionDestination struct { - // Endpoint: OPTION 1: Hit an endpoint when we receive an event. - Endpoint *EndPoint `json:"endpoint,omitempty"` - // Pubsub: OPTION 3: Write the event to Pub/Sub topic. - Pubsub *PubSub `json:"pubsub,omitempty"` - // ServiceAccount: Service account needed for runtime plane to trigger IP - // workflow. - ServiceAccount string `json:"serviceAccount,omitempty"` - // Type: type of the destination - // - // Possible values: - // "TYPE_UNSPECIFIED" - Default state. - // "ENDPOINT" - Endpoint - Hit the value of endpoint when event is received - // "GCS" - Cloud Storage - Write the event to Cloud Storage bucket - // "PUBSUB" - Pub/Sub - Write the event to Pub/Sub topic - Type string `json:"type,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 +// Header: Header details for a given header to be added to Endpoint. +type Header struct { + // Key: Key of Header. + Key string `json:"key,omitempty"` + // Value: Value of Header. + Value string `json:"value,omitempty"` + // ForceSendFields is a list of field names (e.g. "Key") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See // https://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 + // NullFields is a list of field names (e.g. "Key") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s EventSubscriptionDestination) MarshalJSON() ([]byte, error) { - type NoMethod EventSubscriptionDestination +func (s Header) MarshalJSON() ([]byte, error) { + type NoMethod Header return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EventSubscriptionStatus: EventSubscription Status denotes the status of the -// EventSubscription resource. -type EventSubscriptionStatus struct { - // Description: Output only. Description of the state. - Description string `json:"description,omitempty"` - // State: Output only. State of Event Subscription resource. +// InputParameter: Metadata of an input parameter. +type InputParameter struct { + // DataType: The data type of the Parameter. // // Possible values: - // "STATE_UNSPECIFIED" - Default state. - // "CREATING" - EventSubscription creation is in progress. - // "UPDATING" - EventSubscription is in Updating status. - // "ACTIVE" - EventSubscription is in Active state and is ready to receive - // events. - // "SUSPENDED" - EventSubscription is currently suspended. - // "ERROR" - EventSubscription is in Error state. - State string `json:"state,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to + // "DATA_TYPE_UNSPECIFIED" - Data type is not specified. + // "DATA_TYPE_INT" - DEPRECATED! Use DATA_TYPE_INTEGER. + // "DATA_TYPE_SMALLINT" - Short integer(int16) data type. + // "DATA_TYPE_DOUBLE" - Double data type. + // "DATA_TYPE_DATE" - Date data type. + // "DATA_TYPE_DATETIME" - DEPRECATED! Use DATA_TYPE_TIMESTAMP. + // "DATA_TYPE_TIME" - Time data type. + // "DATA_TYPE_STRING" - DEPRECATED! Use DATA_TYPE_VARCHAR. + // "DATA_TYPE_LONG" - DEPRECATED! Use DATA_TYPE_BIGINT. + // "DATA_TYPE_BOOLEAN" - Boolean data type. + // "DATA_TYPE_DECIMAL" - Decimal data type. + // "DATA_TYPE_UUID" - DEPRECATED! Use DATA_TYPE_VARCHAR. + // "DATA_TYPE_BLOB" - UNSUPPORTED! Binary data type. + // "DATA_TYPE_BIT" - Bit data type. + // "DATA_TYPE_TINYINT" - Small integer(int8) data type. + // "DATA_TYPE_INTEGER" - Integer(int32) data type. + // "DATA_TYPE_BIGINT" - Long integer(int64) data type. + // "DATA_TYPE_FLOAT" - Float data type. + // "DATA_TYPE_REAL" - Real data type. + // "DATA_TYPE_NUMERIC" - Numeric data type. + // "DATA_TYPE_CHAR" - Char data type. + // "DATA_TYPE_VARCHAR" - Varchar data type. + // "DATA_TYPE_LONGVARCHAR" - Longvarchar data type. + // "DATA_TYPE_TIMESTAMP" - Timestamp data type. + // "DATA_TYPE_NCHAR" - Nchar data type. + // "DATA_TYPE_NVARCHAR" - Nvarchar data type. + // "DATA_TYPE_LONGNVARCHAR" - Longnvarchar data type. + // "DATA_TYPE_NULL" - Null data type. + // "DATA_TYPE_OTHER" - UNSUPPORTED! Binary data type. + // "DATA_TYPE_JAVA_OBJECT" - UNSUPPORTED! Binary data type. + // "DATA_TYPE_DISTINCT" - UNSUPPORTED! Binary data type. + // "DATA_TYPE_STRUCT" - UNSUPPORTED! Binary data type. + // "DATA_TYPE_ARRAY" - UNSUPPORTED! Binary data type. + // "DATA_TYPE_CLOB" - UNSUPPORTED! Binary data type. + // "DATA_TYPE_REF" - UNSUPPORTED! Binary data type. + // "DATA_TYPE_DATALINK" - UNSUPPORTED! Binary data type. + // "DATA_TYPE_ROWID" - UNSUPPORTED! Row id data type. + // "DATA_TYPE_BINARY" - UNSUPPORTED! Binary data type. + // "DATA_TYPE_VARBINARY" - UNSUPPORTED! Variable binary data type. + // "DATA_TYPE_LONGVARBINARY" - UNSUPPORTED! Long variable binary data type. + // "DATA_TYPE_NCLOB" - UNSUPPORTED! NCLOB data type. + // "DATA_TYPE_SQLXML" - UNSUPPORTED! SQL XML data type is not supported. + // "DATA_TYPE_REF_CURSOR" - UNSUPPORTED! Cursor reference type is not + // supported. + // "DATA_TYPE_TIME_WITH_TIMEZONE" - UNSUPPORTED! Use TIME or TIMESTAMP + // instead. + // "DATA_TYPE_TIMESTAMP_WITH_TIMEZONE" - UNSUPPORTED! Use TIMESTAMP instead. + DataType string `json:"dataType,omitempty"` + // DefaultValue: The following field specifies the default value of the + // Parameter provided by the external system if a value is not provided. + DefaultValue interface{} `json:"defaultValue,omitempty"` + // Description: A brief description of the Parameter. + Description string `json:"description,omitempty"` + // JsonSchema: JsonSchema representation of this action's parameter + JsonSchema *JsonSchema `json:"jsonSchema,omitempty"` + // Nullable: Specifies whether a null value is allowed. + Nullable bool `json:"nullable,omitempty"` + // Parameter: Name of the Parameter. + Parameter string `json:"parameter,omitempty"` + // ForceSendFields is a list of field names (e.g. "DataType") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://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 + // NullFields is a list of field names (e.g. "DataType") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s EventSubscriptionStatus) MarshalJSON() ([]byte, error) { - type NoMethod EventSubscriptionStatus +func (s InputParameter) MarshalJSON() ([]byte, error) { + type NoMethod InputParameter return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EventType: EventType includes fields. -type EventType struct { - // CreateTime: Output only. Created time. +// Instance: Instance represents the interface for SLM services to actuate the +// state of control plane resources. Example Instance in JSON, where +// consumer-project-number=123456, producer-project-id=cloud-sql: ```json +// Instance: { "name": +// "projects/123456/locations/us-east1/instances/prod-instance", "create_time": +// { "seconds": 1526406431, }, "labels": { "env": "prod", "foo": "bar" }, +// "state": READY, "software_versions": { "software_update": +// "cloud-sql-09-28-2018", }, "maintenance_policy_names": { "UpdatePolicy": +// "projects/123456/locations/us-east1/maintenancePolicies/prod-update-policy", +// } "tenant_project_id": "cloud-sql-test-tenant", "producer_metadata": { +// "cloud-sql-tier": "basic", "cloud-sql-instance-size": "1G", }, +// "provisioned_resources": [ { "resource-type": "compute-instance", +// "resource-url": +// "https://www.googleapis.com/compute/v1/projects/cloud-sql/zones/us-east1-b/in +// stances/vm-1", } ], "maintenance_schedules": { "csa_rollout": { +// "start_time": { "seconds": 1526406431, }, "end_time": { "seconds": +// 1535406431, }, }, "ncsa_rollout": { "start_time": { "seconds": 1526406431, +// }, "end_time": { "seconds": 1535406431, }, } }, "consumer_defined_name": +// "my-sql-instance1", } ``` LINT.IfChange +type Instance struct { + // ConsumerDefinedName: consumer_defined_name is the name of the instance set + // by the service consumers. Generally this is different from the `name` field + // which reperesents the system-assigned id of the instance which the service + // consumers do not recognize. This is a required field for tenants onboarding + // to Maintenance Window notifications + // (go/slm-rollout-maintenance-policies#prerequisites). + ConsumerDefinedName string `json:"consumerDefinedName,omitempty"` + // ConsumerProjectNumber: Optional. The consumer_project_number associated with + // this Apigee instance. This field is added specifically to support Apigee + // integration with SLM Rollout and UMM. It represents the numerical project ID + // of the GCP project that consumes this Apigee instance. It is used for SLM + // rollout notifications and UMM integration, enabling proper mapping to + // customer projects and log delivery for Apigee instances. This field + // complements consumer_project_id and may be used for specific Apigee + // scenarios where the numerical ID is required. + ConsumerProjectNumber string `json:"consumerProjectNumber,omitempty"` + // CreateTime: Output only. Timestamp when the resource was created. CreateTime string `json:"createTime,omitempty"` - // EnrichedEventPayloadSchema: Output only. Schema of the event payload after - // enriched. Will be null if read before send is not supported. - EnrichedEventPayloadSchema string `json:"enrichedEventPayloadSchema,omitempty"` - // EntityType: Output only. Runtime entity type name. Will be null if entity - // type map is not available. Used for read before send feature. - EntityType string `json:"entityType,omitempty"` - // EventPayloadSchema: Output only. Schema of webhook event payload. - EventPayloadSchema string `json:"eventPayloadSchema,omitempty"` - // EventTypeId: Output only. Event type id. Example: `ticket.created`. - EventTypeId string `json:"eventTypeId,omitempty"` - // IdPath: Output only. Id path denotes the path of id in webhook payload. - IdPath string `json:"idPath,omitempty"` - // Name: Output only. Resource name of the eventtype. Format: - // projects/{project}/locations/{location}/providers/{provider}/connectors/{conn - // ector}/versions/{version}/eventtypes/{eventtype} Only global location is - // supported for Connector resource. + // InstanceType: Optional. The instance_type of this instance of format: + // projects/{project_number}/locations/{location_id}/instanceTypes/{instance_typ + // e_id}. Instance Type represents a high-level tier or SKU of the service that + // this instance belong to. When enabled(eg: Maintenance Rollout), Rollout uses + // 'instance_type' along with 'software_versions' to determine whether instance + // needs an update or not. + InstanceType string `json:"instanceType,omitempty"` + // Labels: Optional. Resource labels to represent user provided metadata. Each + // label is a key-value pair, where both the key and the value are arbitrary + // strings provided by the user. + Labels map[string]string `json:"labels,omitempty"` + // MaintenancePolicyNames: Optional. The MaintenancePolicies that have been + // attached to the instance. The key must be of the type name of the oneof + // policy name defined in MaintenancePolicy, and the referenced policy must + // define the same policy type. For details, please refer to go/mr-user-guide. + // Should not be set if maintenance_settings.maintenance_policies is set. + MaintenancePolicyNames map[string]string `json:"maintenancePolicyNames,omitempty"` + // MaintenanceSchedules: The MaintenanceSchedule contains the scheduling + // information of published maintenance schedule with same key as + // software_versions. + MaintenanceSchedules map[string]MaintenanceSchedule `json:"maintenanceSchedules,omitempty"` + // MaintenanceSettings: Optional. The MaintenanceSettings associated with + // instance. + MaintenanceSettings *MaintenanceSettings `json:"maintenanceSettings,omitempty"` + // Name: Unique name of the resource. It uses the form: + // `projects/{project_number}/locations/{location_id}/instances/{instance_id}` + // Note: This name is passed, stored and logged across the rollout system. So + // use of consumer project_id or any other consumer PII in the name is strongly + // discouraged for wipeout (go/wipeout) compliance. See + // go/elysium/project_ids#storage-guidance for more details. Name string `json:"name,omitempty"` - // UpdateTime: Output only. Updated time. + // NotificationParameters: Optional. notification_parameter are information + // that service producers may like to include that is not relevant to Rollout. + // This parameter will only be passed to Gamma and Cloud Logging for + // notification/logging purpose. + NotificationParameters map[string]NotificationParameter `json:"notificationParameters,omitempty"` + // ProducerMetadata: Output only. Custom string attributes used primarily to + // expose producer-specific information in monitoring dashboards. See + // go/get-instance-metadata. + ProducerMetadata map[string]string `json:"producerMetadata,omitempty"` + // ProvisionedResources: Output only. The list of data plane resources + // provisioned for this instance, e.g. compute VMs. See + // go/get-instance-metadata. + ProvisionedResources []*ProvisionedResource `json:"provisionedResources,omitempty"` + // SlmInstanceTemplate: Link to the SLM instance template. Only populated when + // updating SLM instances via SSA's Actuation service adaptor. Service + // producers with custom control plane (e.g. Cloud SQL) doesn't need to + // populate this field. Instead they should use software_versions. + SlmInstanceTemplate string `json:"slmInstanceTemplate,omitempty"` + // SloMetadata: Output only. SLO metadata for instance classification in the + // Standardized dataplane SLO platform. See go/cloud-ssa-standard-slo for + // feature description. + SloMetadata *SloMetadata `json:"sloMetadata,omitempty"` + // SoftwareVersions: Software versions that are used to deploy this instance. + // This can be mutated by rollout services. + SoftwareVersions map[string]string `json:"softwareVersions,omitempty"` + // State: Output only. Current lifecycle state of the resource (e.g. if it's + // being created or ready to use). + // + // Possible values: + // "STATE_UNSPECIFIED" - Unspecified state. + // "CREATING" - Instance is being created. + // "READY" - Instance has been created and is ready to use. + // "UPDATING" - Instance is being updated. + // "REPAIRING" - Instance is unheathy and under repair. + // "DELETING" - Instance is being deleted. + // "ERROR" - Instance encountered an error and is in indeterministic state. + State string `json:"state,omitempty"` + // TenantProjectId: Output only. ID of the associated GCP tenant project. See + // go/get-instance-metadata. + TenantProjectId string `json:"tenantProjectId,omitempty"` + // UpdateTime: Output only. Timestamp when the resource was last modified. 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 + // ForceSendFields is a list of field names (e.g. "ConsumerDefinedName") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://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 + // NullFields is a list of field names (e.g. "ConsumerDefinedName") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s EventType) MarshalJSON() ([]byte, error) { - type NoMethod EventType +func (s Instance) MarshalJSON() ([]byte, error) { + type NoMethod Instance return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EventingConfig: Eventing Configuration of a connection next: 18 -type EventingConfig struct { - // AdditionalVariables: Optional. Additional eventing related field values - AdditionalVariables []*ConfigVariable `json:"additionalVariables,omitempty"` - // AuthConfig: Optional. Auth details for the webhook adapter. - AuthConfig *AuthConfig `json:"authConfig,omitempty"` - // DeadLetterConfig: Optional. Dead letter configuration for eventing of a - // connection. - DeadLetterConfig *DeadLetterConfig `json:"deadLetterConfig,omitempty"` - // EnrichmentConfig: Optional. Data enrichment configuration. - EnrichmentConfig *EnrichmentConfig `json:"enrichmentConfig,omitempty"` - // EnrichmentEnabled: Optional. Enrichment Enabled. - EnrichmentEnabled bool `json:"enrichmentEnabled,omitempty"` - // EventsListenerIngressEndpoint: Optional. Ingress endpoint of the event - // listener. This is used only when private connectivity is enabled. - EventsListenerIngressEndpoint string `json:"eventsListenerIngressEndpoint,omitempty"` - // ListenerAuthConfig: Optional. Auth details for the event listener. - ListenerAuthConfig *AuthConfig `json:"listenerAuthConfig,omitempty"` - // PrivateConnectivityEnabled: Optional. Private Connectivity Enabled. - PrivateConnectivityEnabled bool `json:"privateConnectivityEnabled,omitempty"` - // ProxyDestinationConfig: Optional. Proxy for Eventing auto-registration. - ProxyDestinationConfig *DestinationConfig `json:"proxyDestinationConfig,omitempty"` - // RegistrationDestinationConfig: Optional. Registration endpoint for auto - // registration. - RegistrationDestinationConfig *DestinationConfig `json:"registrationDestinationConfig,omitempty"` - // SslConfig: Optional. Ssl config of a connection - SslConfig *SslConfig `json:"sslConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "AdditionalVariables") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See +// JMS: JMS message denotes the source of the event +type JMS struct { + // Name: Optional. Name of the JMS source. i.e. queueName or topicName + Name string `json:"name,omitempty"` + // Type: Optional. Type of the JMS Source. i.e. Queue or Topic + // + // Possible values: + // "TYPE_UNSPECIFIED" - Default state. + // "QUEUE" - JMS Queue. + // "TOPIC" - JMS Topic. + Type string `json:"type,omitempty"` + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AdditionalVariables") to include - // in API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. See + // NullFields is a list of field names (e.g. "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 EventingConfig) MarshalJSON() ([]byte, error) { - type NoMethod EventingConfig +func (s JMS) MarshalJSON() ([]byte, error) { + type NoMethod JMS return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EventingConfigTemplate: Eventing Config details of a connector version. -// next: 14 -type EventingConfigTemplate struct { - // AdditionalVariables: Additional fields that need to be rendered. - AdditionalVariables []*ConfigVariableTemplate `json:"additionalVariables,omitempty"` - // AuthConfigTemplates: AuthConfigTemplates represents the auth values for the - // webhook adapter. - AuthConfigTemplates []*AuthConfigTemplate `json:"authConfigTemplates,omitempty"` - // AutoRefresh: Auto refresh to extend webhook life. - AutoRefresh bool `json:"autoRefresh,omitempty"` - // AutoRegistrationSupported: Auto Registration supported. - AutoRegistrationSupported bool `json:"autoRegistrationSupported,omitempty"` - // EncryptionKeyTemplate: Encryption key (can be either Google managed or - // CMEK). - EncryptionKeyTemplate *ConfigVariableTemplate `json:"encryptionKeyTemplate,omitempty"` - // EnrichmentSupported: Enrichment Supported. - EnrichmentSupported bool `json:"enrichmentSupported,omitempty"` - // EventListenerType: The type of the event listener for a specific connector. - // - // Possible values: - // "EVENT_LISTENER_TYPE_UNSPECIFIED" - Default value. - // "WEBHOOK_LISTENER" - Webhook listener. e.g. Jira, Zendesk, Servicenow - // etc., - // "JMS_LISTENER" - JMS Listener. e.g. IBM MQ, Rabbit MQ etc., - EventListenerType string `json:"eventListenerType,omitempty"` - // IsEventingSupported: Is Eventing Supported. - IsEventingSupported bool `json:"isEventingSupported,omitempty"` - // ListenerAuthConfigTemplates: ListenerAuthConfigTemplates represents the auth - // values for the event listener. - ListenerAuthConfigTemplates []*AuthConfigTemplate `json:"listenerAuthConfigTemplates,omitempty"` - // ProxyDestinationConfig: Proxy destination config template. - ProxyDestinationConfig *DestinationConfigTemplate `json:"proxyDestinationConfig,omitempty"` - // RegistrationDestinationConfig: Registration host destination config - // template. - RegistrationDestinationConfig *DestinationConfigTemplate `json:"registrationDestinationConfig,omitempty"` - // SslConfigTemplate: SSL Config template for the connector version. - SslConfigTemplate *SslConfigTemplate `json:"sslConfigTemplate,omitempty"` - // TriggerConfigVariables: Trigger Config fields that needs to be rendered - TriggerConfigVariables []*ConfigVariableTemplate `json:"triggerConfigVariables,omitempty"` - // ForceSendFields is a list of field names (e.g. "AdditionalVariables") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See +// JsonAuthSchema: JsonAuthSchema defines the JSON schema of all authentication +// types. +type JsonAuthSchema struct { + // Schema: JSON schema of the AuthSchemas. + Schema string `json:"$schema,omitempty"` + // OneOf: List of AuthObjects. + OneOf []*AuthObject `json:"oneOf,omitempty"` + // ForceSendFields is a list of field names (e.g. "Schema") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AdditionalVariables") to include - // in API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. See + // NullFields is a list of field names (e.g. "Schema") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s EventingConfigTemplate) MarshalJSON() ([]byte, error) { - type NoMethod EventingConfigTemplate +func (s JsonAuthSchema) MarshalJSON() ([]byte, error) { + type NoMethod JsonAuthSchema return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EventingDetails: Eventing Details message. -type EventingDetails struct { - // CustomEventTypes: Output only. Custom Event Types. - CustomEventTypes bool `json:"customEventTypes,omitempty"` - // Description: Output only. Description. +// JsonSchema: JsonSchema representation of schema metadata +type JsonSchema struct { + // AdditionalDetails: Additional details apart from standard json schema + // fields, this gives flexibility to store metadata about the schema + AdditionalDetails googleapi.RawMessage `json:"additionalDetails,omitempty"` + // Default: The default value of the field or object described by this schema. + Default interface{} `json:"default,omitempty"` + // Description: A description of this schema. Description string `json:"description,omitempty"` - // DocumentationLink: Output only. Link to public documentation. - DocumentationLink string `json:"documentationLink,omitempty"` - // IconLocation: Output only. Cloud storage location of the icon. - IconLocation string `json:"iconLocation,omitempty"` - // LaunchStage: Output only. Eventing Launch Stage. - // - // Possible values: - // "LAUNCH_STAGE_UNSPECIFIED" - LAUNCH_STAGE_UNSPECIFIED. - // "PREVIEW" - PREVIEW. - // "GA" - GA. - // "DEPRECATED" - DEPRECATED. - // "TEST" - TEST. - // "PRIVATE_PREVIEW" - PRIVATE_PREVIEW. - LaunchStage string `json:"launchStage,omitempty"` - // Name: Output only. Name of the Eventing trigger. - Name string `json:"name,omitempty"` - // SearchTags: Output only. Array of search keywords. - SearchTags []string `json:"searchTags,omitempty"` - // Type: Output only. The type of the event listener for a specific connector. + // Enum: Possible values for an enumeration. This works in conjunction with + // `type` to represent types with a fixed set of legal values + Enum []interface{} `json:"enum,omitempty"` + // Format: Format of the value as per + // https://json-schema.org/understanding-json-schema/reference/string.html#format + Format string `json:"format,omitempty"` + // Items: Schema that applies to array values, applicable only if this is of + // type `array`. + Items *JsonSchema `json:"items,omitempty"` + // JdbcType: JDBC datatype of the field. // // Possible values: - // "TYPE_UNSPECIFIED" - Default value. - // "WEBHOOK" - Webhook listener. e.g. Jira, Zendesk, Servicenow etc., - // "JMS" - JMS Listener. e.g. IBM MQ, Rabbit MQ etc., - Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "CustomEventTypes") to + // "DATA_TYPE_UNSPECIFIED" - Data type is not specified. + // "DATA_TYPE_INT" - DEPRECATED! Use DATA_TYPE_INTEGER. + // "DATA_TYPE_SMALLINT" - Short integer(int16) data type. + // "DATA_TYPE_DOUBLE" - Double data type. + // "DATA_TYPE_DATE" - Date data type. + // "DATA_TYPE_DATETIME" - DEPRECATED! Use DATA_TYPE_TIMESTAMP. + // "DATA_TYPE_TIME" - Time data type. + // "DATA_TYPE_STRING" - DEPRECATED! Use DATA_TYPE_VARCHAR. + // "DATA_TYPE_LONG" - DEPRECATED! Use DATA_TYPE_BIGINT. + // "DATA_TYPE_BOOLEAN" - Boolean data type. + // "DATA_TYPE_DECIMAL" - Decimal data type. + // "DATA_TYPE_UUID" - DEPRECATED! Use DATA_TYPE_VARCHAR. + // "DATA_TYPE_BLOB" - UNSUPPORTED! Binary data type. + // "DATA_TYPE_BIT" - Bit data type. + // "DATA_TYPE_TINYINT" - Small integer(int8) data type. + // "DATA_TYPE_INTEGER" - Integer(int32) data type. + // "DATA_TYPE_BIGINT" - Long integer(int64) data type. + // "DATA_TYPE_FLOAT" - Float data type. + // "DATA_TYPE_REAL" - Real data type. + // "DATA_TYPE_NUMERIC" - Numeric data type. + // "DATA_TYPE_CHAR" - Char data type. + // "DATA_TYPE_VARCHAR" - Varchar data type. + // "DATA_TYPE_LONGVARCHAR" - Longvarchar data type. + // "DATA_TYPE_TIMESTAMP" - Timestamp data type. + // "DATA_TYPE_NCHAR" - Nchar data type. + // "DATA_TYPE_NVARCHAR" - Nvarchar data type. + // "DATA_TYPE_LONGNVARCHAR" - Longnvarchar data type. + // "DATA_TYPE_NULL" - Null data type. + // "DATA_TYPE_OTHER" - UNSUPPORTED! Binary data type. + // "DATA_TYPE_JAVA_OBJECT" - UNSUPPORTED! Binary data type. + // "DATA_TYPE_DISTINCT" - UNSUPPORTED! Binary data type. + // "DATA_TYPE_STRUCT" - UNSUPPORTED! Binary data type. + // "DATA_TYPE_ARRAY" - UNSUPPORTED! Binary data type. + // "DATA_TYPE_CLOB" - UNSUPPORTED! Binary data type. + // "DATA_TYPE_REF" - UNSUPPORTED! Binary data type. + // "DATA_TYPE_DATALINK" - UNSUPPORTED! Binary data type. + // "DATA_TYPE_ROWID" - UNSUPPORTED! Row id data type. + // "DATA_TYPE_BINARY" - UNSUPPORTED! Binary data type. + // "DATA_TYPE_VARBINARY" - UNSUPPORTED! Variable binary data type. + // "DATA_TYPE_LONGVARBINARY" - UNSUPPORTED! Long variable binary data type. + // "DATA_TYPE_NCLOB" - UNSUPPORTED! NCLOB data type. + // "DATA_TYPE_SQLXML" - UNSUPPORTED! SQL XML data type is not supported. + // "DATA_TYPE_REF_CURSOR" - UNSUPPORTED! Cursor reference type is not + // supported. + // "DATA_TYPE_TIME_WITH_TIMEZONE" - UNSUPPORTED! Use TIME or TIMESTAMP + // instead. + // "DATA_TYPE_TIMESTAMP_WITH_TIMEZONE" - UNSUPPORTED! Use TIMESTAMP instead. + JdbcType string `json:"jdbcType,omitempty"` + // Properties: The child schemas, applicable only if this is of type `object`. + // The key is the name of the property and the value is the json schema that + // describes that property + Properties map[string]JsonSchema `json:"properties,omitempty"` + // Required: Whether this property is required. + Required []string `json:"required,omitempty"` + // Type: JSON Schema Validation: A Vocabulary for Structural Validation of JSON + Type []string `json:"type,omitempty"` + // ForceSendFields is a list of field names (e.g. "AdditionalDetails") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CustomEventTypes") to include in + // NullFields is a list of field names (e.g. "AdditionalDetails") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s EventingDetails) MarshalJSON() ([]byte, error) { - type NoMethod EventingDetails +func (s JsonSchema) MarshalJSON() ([]byte, error) { + type NoMethod JsonSchema return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EventingRuntimeData: Eventing runtime data has the details related to -// eventing managed by the system. -type EventingRuntimeData struct { - // EventsListenerEndpoint: Output only. Events listener endpoint. The value - // will populated after provisioning the events listener. - EventsListenerEndpoint string `json:"eventsListenerEndpoint,omitempty"` - // EventsListenerPscSa: Output only. Events listener PSC Service attachment. - // The value will be populated after provisioning the events listener with - // private connectivity enabled. - EventsListenerPscSa string `json:"eventsListenerPscSa,omitempty"` - // Status: Output only. Current status of eventing. - Status *EventingStatus `json:"status,omitempty"` - // WebhookData: Output only. Webhook data. - WebhookData *WebhookData `json:"webhookData,omitempty"` - // WebhookSubscriptions: Output only. Webhook subscriptions. - WebhookSubscriptions *WebhookSubscriptions `json:"webhookSubscriptions,omitempty"` - // ForceSendFields is a list of field names (e.g. "EventsListenerEndpoint") to +// JwtClaims: JWT claims used for the jwt-bearer authorization grant. +type JwtClaims struct { + // Audience: Value for the "aud" claim. + Audience string `json:"audience,omitempty"` + // Issuer: Value for the "iss" claim. + Issuer string `json:"issuer,omitempty"` + // Subject: Value for the "sub" claim. + Subject string `json:"subject,omitempty"` + // ForceSendFields is a list of field names (e.g. "Audience") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "EventsListenerEndpoint") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + // NullFields is a list of field names (e.g. "Audience") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s EventingRuntimeData) MarshalJSON() ([]byte, error) { - type NoMethod EventingRuntimeData +func (s JwtClaims) MarshalJSON() ([]byte, error) { + type NoMethod JwtClaims return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EventingStatus: EventingStatus indicates the state of eventing. -type EventingStatus struct { - // Description: Output only. Description of error if State is set to "ERROR". - Description string `json:"description,omitempty"` - // State: Output only. State. - // - // Possible values: - // "STATE_UNSPECIFIED" - Default state. - // "ACTIVE" - Eventing is enabled and ready to receive events. - // "ERROR" - Eventing is not active due to an error. - // "INGRESS_ENDPOINT_REQUIRED" - Ingress endpoint required. - State string `json:"state,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 +// ListActionsResponse: Response message for ListActions API +type ListActionsResponse struct { + // Actions: list of actions + Actions []*RuntimeActionSchema `json:"actions,omitempty"` + // NextPageToken: token for next page + 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. "Actions") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See // https://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 + // NullFields is a list of field names (e.g. "Actions") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s EventingStatus) MarshalJSON() ([]byte, error) { - type NoMethod EventingStatus +func (s ListActionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListActionsResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Expr: 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 Expr 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 +// ListConnectionsResponse: Response message for +// ConnectorsService.ListConnections +type ListConnectionsResponse struct { + // Connections: Connections. + Connections []*Connection `json:"connections,omitempty"` + // NextPageToken: Next page token. + 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. "Connections") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Description") to include in API + // NullFields is a list of field names (e.g. "Connections") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s Expr) MarshalJSON() ([]byte, error) { - type NoMethod Expr +func (s ListConnectionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListConnectionsResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ExtractionRule: Extraction Rule. -type ExtractionRule struct { - // ExtractionRegex: Regex used to extract backend details from source. If - // empty, whole source value will be used. - ExtractionRegex string `json:"extractionRegex,omitempty"` - // Source: Source on which the rule is applied. - Source *Source `json:"source,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExtractionRegex") to +// ListConnectorVersionsResponse: Response message for +// Connectors.ListConnectorVersions. +type ListConnectorVersionsResponse struct { + // ConnectorVersions: A list of connector versions. + ConnectorVersions []*ConnectorVersion `json:"connectorVersions,omitempty"` + // NextPageToken: Next page token. + 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. "ConnectorVersions") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ExtractionRegex") to include in + // NullFields is a list of field names (e.g. "ConnectorVersions") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ExtractionRule) MarshalJSON() ([]byte, error) { - type NoMethod ExtractionRule +func (s ListConnectorVersionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListConnectorVersionsResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ExtractionRules: Extraction Rules to identity the backends from customer -// provided configuration in Connection resource. -type ExtractionRules struct { - // ExtractionRule: Collection of Extraction Rule. - ExtractionRule []*ExtractionRule `json:"extractionRule,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExtractionRule") to +// ListConnectorsResponse: Response message for Connectors.ListConnectors. +type ListConnectorsResponse struct { + // Connectors: A list of connectors. + Connectors []*Connector `json:"connectors,omitempty"` + // NextPageToken: Next page token. + 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. "Connectors") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ExtractionRule") to include in + // NullFields is a list of field names (e.g. "Connectors") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ListConnectorsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListConnectorsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ListCustomConnectorVersionsResponse: Response message for +// Connectors.ListCustomConnectorVersions. +type ListCustomConnectorVersionsResponse struct { + // CustomConnectorVersions: A list of connector versions. + CustomConnectorVersions []*CustomConnectorVersion `json:"customConnectorVersions,omitempty"` + // NextPageToken: Next page token. + 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. "CustomConnectorVersions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CustomConnectorVersions") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ListCustomConnectorVersionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListCustomConnectorVersionsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ListCustomConnectorsResponse: Response message for +// Connectors.ListCustomConnectors. +type ListCustomConnectorsResponse struct { + // CustomConnectors: A list of customConnectors. + CustomConnectors []*CustomConnector `json:"customConnectors,omitempty"` + // NextPageToken: Next page token. + 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. "CustomConnectors") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CustomConnectors") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ExtractionRules) MarshalJSON() ([]byte, error) { - type NoMethod ExtractionRules +func (s ListCustomConnectorsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListCustomConnectorsResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FetchAuthSchemaResponse: Response message for Connectors.GetAuthSchema. -type FetchAuthSchemaResponse struct { - // AuthSchemas: List of AuthSchemas. - AuthSchemas []*AuthSchema `json:"authSchemas,omitempty"` - // JsonSchema: JSON schema of the AuthSchemas. This is only populated if the - // view is JSON_SCHEMA. The schema is in draft-07 format. - JsonSchema *JsonAuthSchema `json:"jsonSchema,omitempty"` +// ListEndpointAttachmentsResponse: Response message for +// ConnectorsService.ListEndpointAttachments +type ListEndpointAttachmentsResponse struct { + // EndpointAttachments: EndpointAttachments. + EndpointAttachments []*EndpointAttachment `json:"endpointAttachments,omitempty"` + // NextPageToken: Next page token. + 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. "AuthSchemas") to + // ForceSendFields is a list of field names (e.g. "EndpointAttachments") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AuthSchemas") to include in API + // NullFields is a list of field names (e.g. "EndpointAttachments") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ListEndpointAttachmentsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListEndpointAttachmentsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ListEntityTypesResponse: Response message for ListEntityTypes API +type ListEntityTypesResponse struct { + // EntityTypes: list of entity types + EntityTypes []*RuntimeEntitySchema `json:"entityTypes,omitempty"` + // NextPageToken: token for next page + 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. "EntityTypes") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "EntityTypes") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s FetchAuthSchemaResponse) MarshalJSON() ([]byte, error) { - type NoMethod FetchAuthSchemaResponse +func (s ListEntityTypesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListEntityTypesResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Field: Metadata of an entity field. -type Field struct { - // AdditionalDetails: The following map contains fields that are not explicitly - // mentioned above,this give connectors the flexibility to add new metadata - // fields. - AdditionalDetails googleapi.RawMessage `json:"additionalDetails,omitempty"` - // DataType: The data type of the Field. - // - // Possible values: - // "DATA_TYPE_UNSPECIFIED" - Data type is not specified. - // "DATA_TYPE_INT" - DEPRECATED! Use DATA_TYPE_INTEGER. - // "DATA_TYPE_SMALLINT" - Short integer(int16) data type. - // "DATA_TYPE_DOUBLE" - Double data type. - // "DATA_TYPE_DATE" - Date data type. - // "DATA_TYPE_DATETIME" - DEPRECATED! Use DATA_TYPE_TIMESTAMP. - // "DATA_TYPE_TIME" - Time data type. - // "DATA_TYPE_STRING" - DEPRECATED! Use DATA_TYPE_VARCHAR. - // "DATA_TYPE_LONG" - DEPRECATED! Use DATA_TYPE_BIGINT. - // "DATA_TYPE_BOOLEAN" - Boolean data type. - // "DATA_TYPE_DECIMAL" - Decimal data type. - // "DATA_TYPE_UUID" - DEPRECATED! Use DATA_TYPE_VARCHAR. - // "DATA_TYPE_BLOB" - UNSUPPORTED! Binary data type. - // "DATA_TYPE_BIT" - Bit data type. - // "DATA_TYPE_TINYINT" - Small integer(int8) data type. - // "DATA_TYPE_INTEGER" - Integer(int32) data type. - // "DATA_TYPE_BIGINT" - Long integer(int64) data type. - // "DATA_TYPE_FLOAT" - Float data type. - // "DATA_TYPE_REAL" - Real data type. - // "DATA_TYPE_NUMERIC" - Numeric data type. - // "DATA_TYPE_CHAR" - Char data type. - // "DATA_TYPE_VARCHAR" - Varchar data type. - // "DATA_TYPE_LONGVARCHAR" - Longvarchar data type. - // "DATA_TYPE_TIMESTAMP" - Timestamp data type. - // "DATA_TYPE_NCHAR" - Nchar data type. - // "DATA_TYPE_NVARCHAR" - Nvarchar data type. - // "DATA_TYPE_LONGNVARCHAR" - Longnvarchar data type. - // "DATA_TYPE_NULL" - Null data type. - // "DATA_TYPE_OTHER" - UNSUPPORTED! Binary data type. - // "DATA_TYPE_JAVA_OBJECT" - UNSUPPORTED! Binary data type. - // "DATA_TYPE_DISTINCT" - UNSUPPORTED! Binary data type. - // "DATA_TYPE_STRUCT" - UNSUPPORTED! Binary data type. - // "DATA_TYPE_ARRAY" - UNSUPPORTED! Binary data type. - // "DATA_TYPE_CLOB" - UNSUPPORTED! Binary data type. - // "DATA_TYPE_REF" - UNSUPPORTED! Binary data type. - // "DATA_TYPE_DATALINK" - UNSUPPORTED! Binary data type. - // "DATA_TYPE_ROWID" - UNSUPPORTED! Row id data type. - // "DATA_TYPE_BINARY" - UNSUPPORTED! Binary data type. - // "DATA_TYPE_VARBINARY" - UNSUPPORTED! Variable binary data type. - // "DATA_TYPE_LONGVARBINARY" - UNSUPPORTED! Long variable binary data type. - // "DATA_TYPE_NCLOB" - UNSUPPORTED! NCLOB data type. - // "DATA_TYPE_SQLXML" - UNSUPPORTED! SQL XML data type is not supported. - // "DATA_TYPE_REF_CURSOR" - UNSUPPORTED! Cursor reference type is not - // supported. - // "DATA_TYPE_TIME_WITH_TIMEZONE" - UNSUPPORTED! Use TIME or TIMESTAMP - // instead. - // "DATA_TYPE_TIMESTAMP_WITH_TIMEZONE" - UNSUPPORTED! Use TIMESTAMP instead. - DataType string `json:"dataType,omitempty"` - // DefaultValue: The following field specifies the default value of the Field - // provided by the external system if a value is not provided. - DefaultValue interface{} `json:"defaultValue,omitempty"` - // Description: A brief description of the Field. - Description string `json:"description,omitempty"` - // Field: Name of the Field. - Field string `json:"field,omitempty"` - // JsonSchema: JsonSchema representation of this entity's schema - JsonSchema *JsonSchema `json:"jsonSchema,omitempty"` - // Key: The following boolean field specifies if the current Field acts as a - // primary key or id if the parent is of type entity. - Key bool `json:"key,omitempty"` - // Nullable: Specifies whether a null value is allowed. - Nullable bool `json:"nullable,omitempty"` - // Readonly: Specifies if the Field is readonly. - Readonly bool `json:"readonly,omitempty"` - // ForceSendFields is a list of field names (e.g. "AdditionalDetails") to +// ListEventSubscriptionsResponse: Response message for +// ConnectorsService.ListEventSubscriptions +type ListEventSubscriptionsResponse struct { + // EventSubscriptions: Subscriptions. + EventSubscriptions []*EventSubscription `json:"eventSubscriptions,omitempty"` + // NextPageToken: Next page token. + 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. "EventSubscriptions") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AdditionalDetails") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See + // NullFields is a list of field names (e.g. "EventSubscriptions") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s Field) MarshalJSON() ([]byte, error) { - type NoMethod Field +func (s ListEventSubscriptionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListEventSubscriptionsResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FieldComparison: Field that needs to be compared. -type FieldComparison struct { - // BoolValue: Boolean value - BoolValue bool `json:"boolValue,omitempty"` - // Comparator: Optional. Comparator to use for comparing the field value. - // - // Possible values: - // "COMPARATOR_UNSPECIFIED" - The default value. - // "EQUALS" - The field value must be equal to the specified value. - // "NOT_EQUALS" - The field value must not be equal to the specified value. - Comparator string `json:"comparator,omitempty"` - // IntValue: Integer value - IntValue int64 `json:"intValue,omitempty,string"` - // Key: Optional. Key of the field. - Key string `json:"key,omitempty"` - // StringValue: String value - StringValue string `json:"stringValue,omitempty"` - // ForceSendFields is a list of field names (e.g. "BoolValue") to +// ListEventTypesResponse: Response message for Connectors.ListEventTypes. +type ListEventTypesResponse struct { + // EventTypes: A list of connector versions. + EventTypes []*EventType `json:"eventTypes,omitempty"` + // NextPageToken: Next page token. + 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. "EventTypes") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BoolValue") to include in API + // NullFields is a list of field names (e.g. "EventTypes") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s FieldComparison) MarshalJSON() ([]byte, error) { - type NoMethod FieldComparison +func (s ListEventTypesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListEventTypesResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// HPAConfig: Autoscaling config for connector deployment system metrics. -type HPAConfig struct { - // CpuUtilizationThreshold: Output only. Percent CPU utilization where HPA - // triggers autoscaling. - CpuUtilizationThreshold int64 `json:"cpuUtilizationThreshold,omitempty,string"` - // MemoryUtilizationThreshold: Output only. Percent Memory utilization where - // HPA triggers autoscaling. - MemoryUtilizationThreshold int64 `json:"memoryUtilizationThreshold,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "CpuUtilizationThreshold") to +// ListLocationsResponse: The response message for Locations.ListLocations. +type ListLocationsResponse struct { + // Locations: A list of locations that matches the specified filter in the + // request. + Locations []*Location `json:"locations,omitempty"` + // NextPageToken: The standard List next-page token. + 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. "Locations") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CpuUtilizationThreshold") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See + // NullFields is a list of field names (e.g. "Locations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s HPAConfig) MarshalJSON() ([]byte, error) { - type NoMethod HPAConfig +func (s ListLocationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListLocationsResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Header: Header details for a given header to be added to Endpoint. -type Header struct { - // Key: Key of Header. - Key string `json:"key,omitempty"` - // Value: Value of Header. - Value string `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. "Key") to unconditionally - // include in API requests. By default, fields with empty or default values are +// ListManagedZonesResponse: Response message for +// ConnectorsService.ListManagedZones +type ListManagedZonesResponse struct { + // ManagedZones: ManagedZones. + ManagedZones []*ManagedZone `json:"managedZones,omitempty"` + // NextPageToken: Next page token. + 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. "ManagedZones") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ManagedZones") to include in API + // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ListManagedZonesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListManagedZonesResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ListOperationsResponse: The response message for Operations.ListOperations. +type ListOperationsResponse struct { + // NextPageToken: The standard List next-page token. + NextPageToken string `json:"nextPageToken,omitempty"` + // Operations: A list of operations that matches the specified filter in the + // request. + Operations []*Operation `json:"operations,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. "Key") to include in API requests - // with the JSON null value. By default, fields with empty values are omitted - // from API requests. See + // NullFields is a list of field names (e.g. "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 Header) MarshalJSON() ([]byte, error) { - type NoMethod Header +func (s ListOperationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListOperationsResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// InputParameter: Metadata of an input parameter. -type InputParameter struct { - // DataType: The data type of the Parameter. - // - // Possible values: - // "DATA_TYPE_UNSPECIFIED" - Data type is not specified. - // "DATA_TYPE_INT" - DEPRECATED! Use DATA_TYPE_INTEGER. - // "DATA_TYPE_SMALLINT" - Short integer(int16) data type. - // "DATA_TYPE_DOUBLE" - Double data type. - // "DATA_TYPE_DATE" - Date data type. - // "DATA_TYPE_DATETIME" - DEPRECATED! Use DATA_TYPE_TIMESTAMP. - // "DATA_TYPE_TIME" - Time data type. - // "DATA_TYPE_STRING" - DEPRECATED! Use DATA_TYPE_VARCHAR. - // "DATA_TYPE_LONG" - DEPRECATED! Use DATA_TYPE_BIGINT. - // "DATA_TYPE_BOOLEAN" - Boolean data type. - // "DATA_TYPE_DECIMAL" - Decimal data type. - // "DATA_TYPE_UUID" - DEPRECATED! Use DATA_TYPE_VARCHAR. - // "DATA_TYPE_BLOB" - UNSUPPORTED! Binary data type. - // "DATA_TYPE_BIT" - Bit data type. - // "DATA_TYPE_TINYINT" - Small integer(int8) data type. - // "DATA_TYPE_INTEGER" - Integer(int32) data type. - // "DATA_TYPE_BIGINT" - Long integer(int64) data type. - // "DATA_TYPE_FLOAT" - Float data type. - // "DATA_TYPE_REAL" - Real data type. - // "DATA_TYPE_NUMERIC" - Numeric data type. - // "DATA_TYPE_CHAR" - Char data type. - // "DATA_TYPE_VARCHAR" - Varchar data type. - // "DATA_TYPE_LONGVARCHAR" - Longvarchar data type. - // "DATA_TYPE_TIMESTAMP" - Timestamp data type. - // "DATA_TYPE_NCHAR" - Nchar data type. - // "DATA_TYPE_NVARCHAR" - Nvarchar data type. - // "DATA_TYPE_LONGNVARCHAR" - Longnvarchar data type. - // "DATA_TYPE_NULL" - Null data type. - // "DATA_TYPE_OTHER" - UNSUPPORTED! Binary data type. - // "DATA_TYPE_JAVA_OBJECT" - UNSUPPORTED! Binary data type. - // "DATA_TYPE_DISTINCT" - UNSUPPORTED! Binary data type. - // "DATA_TYPE_STRUCT" - UNSUPPORTED! Binary data type. - // "DATA_TYPE_ARRAY" - UNSUPPORTED! Binary data type. - // "DATA_TYPE_CLOB" - UNSUPPORTED! Binary data type. - // "DATA_TYPE_REF" - UNSUPPORTED! Binary data type. - // "DATA_TYPE_DATALINK" - UNSUPPORTED! Binary data type. - // "DATA_TYPE_ROWID" - UNSUPPORTED! Row id data type. - // "DATA_TYPE_BINARY" - UNSUPPORTED! Binary data type. - // "DATA_TYPE_VARBINARY" - UNSUPPORTED! Variable binary data type. - // "DATA_TYPE_LONGVARBINARY" - UNSUPPORTED! Long variable binary data type. - // "DATA_TYPE_NCLOB" - UNSUPPORTED! NCLOB data type. - // "DATA_TYPE_SQLXML" - UNSUPPORTED! SQL XML data type is not supported. - // "DATA_TYPE_REF_CURSOR" - UNSUPPORTED! Cursor reference type is not - // supported. - // "DATA_TYPE_TIME_WITH_TIMEZONE" - UNSUPPORTED! Use TIME or TIMESTAMP - // instead. - // "DATA_TYPE_TIMESTAMP_WITH_TIMEZONE" - UNSUPPORTED! Use TIMESTAMP instead. - DataType string `json:"dataType,omitempty"` - // DefaultValue: The following field specifies the default value of the - // Parameter provided by the external system if a value is not provided. - DefaultValue interface{} `json:"defaultValue,omitempty"` - // Description: A brief description of the Parameter. - Description string `json:"description,omitempty"` - // JsonSchema: JsonSchema representation of this action's parameter - JsonSchema *JsonSchema `json:"jsonSchema,omitempty"` - // Nullable: Specifies whether a null value is allowed. - Nullable bool `json:"nullable,omitempty"` - // Parameter: Name of the Parameter. - Parameter string `json:"parameter,omitempty"` - // ForceSendFields is a list of field names (e.g. "DataType") to +// ListProvidersResponse: Response message for Connectors.ListProviders. +type ListProvidersResponse struct { + // NextPageToken: Next page token. + NextPageToken string `json:"nextPageToken,omitempty"` + // Providers: A list of providers. + Providers []*Provider `json:"providers,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. "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. "DataType") to include in API + // 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 InputParameter) MarshalJSON() ([]byte, error) { - type NoMethod InputParameter +func (s ListProvidersResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListProvidersResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Instance: Instance represents the interface for SLM services to actuate the -// state of control plane resources. Example Instance in JSON, where -// consumer-project-number=123456, producer-project-id=cloud-sql: ```json -// Instance: { "name": -// "projects/123456/locations/us-east1/instances/prod-instance", "create_time": -// { "seconds": 1526406431, }, "labels": { "env": "prod", "foo": "bar" }, -// "state": READY, "software_versions": { "software_update": -// "cloud-sql-09-28-2018", }, "maintenance_policy_names": { "UpdatePolicy": -// "projects/123456/locations/us-east1/maintenancePolicies/prod-update-policy", -// } "tenant_project_id": "cloud-sql-test-tenant", "producer_metadata": { -// "cloud-sql-tier": "basic", "cloud-sql-instance-size": "1G", }, -// "provisioned_resources": [ { "resource-type": "compute-instance", -// "resource-url": -// "https://www.googleapis.com/compute/v1/projects/cloud-sql/zones/us-east1-b/in -// stances/vm-1", } ], "maintenance_schedules": { "csa_rollout": { -// "start_time": { "seconds": 1526406431, }, "end_time": { "seconds": -// 1535406431, }, }, "ncsa_rollout": { "start_time": { "seconds": 1526406431, -// }, "end_time": { "seconds": 1535406431, }, } }, "consumer_defined_name": -// "my-sql-instance1", } ``` LINT.IfChange -type Instance struct { - // ConsumerDefinedName: consumer_defined_name is the name of the instance set - // by the service consumers. Generally this is different from the `name` field - // which reperesents the system-assigned id of the instance which the service - // consumers do not recognize. This is a required field for tenants onboarding - // to Maintenance Window notifications - // (go/slm-rollout-maintenance-policies#prerequisites). - ConsumerDefinedName string `json:"consumerDefinedName,omitempty"` - // CreateTime: Output only. Timestamp when the resource was created. - CreateTime string `json:"createTime,omitempty"` - // InstanceType: Optional. The instance_type of this instance of format: - // projects/{project_number}/locations/{location_id}/instanceTypes/{instance_typ - // e_id}. Instance Type represents a high-level tier or SKU of the service that - // this instance belong to. When enabled(eg: Maintenance Rollout), Rollout uses - // 'instance_type' along with 'software_versions' to determine whether instance - // needs an update or not. - InstanceType string `json:"instanceType,omitempty"` - // Labels: Optional. Resource labels to represent user provided metadata. Each - // label is a key-value pair, where both the key and the value are arbitrary - // strings provided by the user. - Labels map[string]string `json:"labels,omitempty"` - // MaintenancePolicyNames: Optional. The MaintenancePolicies that have been - // attached to the instance. The key must be of the type name of the oneof - // policy name defined in MaintenancePolicy, and the referenced policy must - // define the same policy type. For details, please refer to go/mr-user-guide. - // Should not be set if maintenance_settings.maintenance_policies is set. - MaintenancePolicyNames map[string]string `json:"maintenancePolicyNames,omitempty"` - // MaintenanceSchedules: The MaintenanceSchedule contains the scheduling - // information of published maintenance schedule with same key as - // software_versions. - MaintenanceSchedules map[string]MaintenanceSchedule `json:"maintenanceSchedules,omitempty"` - // MaintenanceSettings: Optional. The MaintenanceSettings associated with - // instance. - MaintenanceSettings *MaintenanceSettings `json:"maintenanceSettings,omitempty"` - // Name: Unique name of the resource. It uses the form: - // `projects/{project_number}/locations/{location_id}/instances/{instance_id}` - // Note: This name is passed, stored and logged across the rollout system. So - // use of consumer project_id or any other consumer PII in the name is strongly - // discouraged for wipeout (go/wipeout) compliance. See - // go/elysium/project_ids#storage-guidance for more details. - Name string `json:"name,omitempty"` - // NotificationParameters: Optional. notification_parameter are information - // that service producers may like to include that is not relevant to Rollout. - // This parameter will only be passed to Gamma and Cloud Logging for - // notification/logging purpose. - NotificationParameters map[string]NotificationParameter `json:"notificationParameters,omitempty"` - // ProducerMetadata: Output only. Custom string attributes used primarily to - // expose producer-specific information in monitoring dashboards. See - // go/get-instance-metadata. - ProducerMetadata map[string]string `json:"producerMetadata,omitempty"` - // ProvisionedResources: Output only. The list of data plane resources - // provisioned for this instance, e.g. compute VMs. See - // go/get-instance-metadata. - ProvisionedResources []*ProvisionedResource `json:"provisionedResources,omitempty"` - // SlmInstanceTemplate: Link to the SLM instance template. Only populated when - // updating SLM instances via SSA's Actuation service adaptor. Service - // producers with custom control plane (e.g. Cloud SQL) doesn't need to - // populate this field. Instead they should use software_versions. - SlmInstanceTemplate string `json:"slmInstanceTemplate,omitempty"` - // SloMetadata: Output only. SLO metadata for instance classification in the - // Standardized dataplane SLO platform. See go/cloud-ssa-standard-slo for - // feature description. - SloMetadata *SloMetadata `json:"sloMetadata,omitempty"` - // SoftwareVersions: Software versions that are used to deploy this instance. - // This can be mutated by rollout services. - SoftwareVersions map[string]string `json:"softwareVersions,omitempty"` - // State: Output only. Current lifecycle state of the resource (e.g. if it's - // being created or ready to use). - // - // Possible values: - // "STATE_UNSPECIFIED" - Unspecified state. - // "CREATING" - Instance is being created. - // "READY" - Instance has been created and is ready to use. - // "UPDATING" - Instance is being updated. - // "REPAIRING" - Instance is unheathy and under repair. - // "DELETING" - Instance is being deleted. - // "ERROR" - Instance encountered an error and is in indeterministic state. - State string `json:"state,omitempty"` - // TenantProjectId: Output only. ID of the associated GCP tenant project. See - // go/get-instance-metadata. - TenantProjectId string `json:"tenantProjectId,omitempty"` - // UpdateTime: Output only. Timestamp when the resource was last modified. - UpdateTime string `json:"updateTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "ConsumerDefinedName") to +// ListRuntimeActionSchemasResponse: Response message for +// ConnectorsService.ListRuntimeActionSchemas. +type ListRuntimeActionSchemasResponse struct { + // NextPageToken: Next page token. + NextPageToken string `json:"nextPageToken,omitempty"` + // RuntimeActionSchemas: Runtime action schemas. + RuntimeActionSchemas []*RuntimeActionSchema `json:"runtimeActionSchemas,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. "ConsumerDefinedName") to include - // in API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. See + // NullFields is a list of field names (e.g. "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 Instance) MarshalJSON() ([]byte, error) { - type NoMethod Instance +func (s ListRuntimeActionSchemasResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListRuntimeActionSchemasResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// JMS: JMS message denotes the source of the event -type JMS struct { - // Name: Optional. Name of the JMS source. i.e. queueName or topicName - Name string `json:"name,omitempty"` - // Type: Optional. Type of the JMS Source. i.e. Queue or Topic - // - // Possible values: - // "TYPE_UNSPECIFIED" - Default state. - // "QUEUE" - JMS Queue. - // "TOPIC" - JMS Topic. - Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "Name") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See +// ListRuntimeEntitySchemasResponse: Response message for +// ConnectorsService.ListRuntimeEntitySchemas. +type ListRuntimeEntitySchemasResponse struct { + // NextPageToken: Next page token. + NextPageToken string `json:"nextPageToken,omitempty"` + // RuntimeEntitySchemas: Runtime entity schemas. + RuntimeEntitySchemas []*RuntimeEntitySchema `json:"runtimeEntitySchemas,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. "Name") to include in API requests - // with the JSON null value. By default, fields with empty values are omitted - // from API requests. See + // NullFields is a list of field names (e.g. "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 JMS) MarshalJSON() ([]byte, error) { - type NoMethod JMS +func (s ListRuntimeEntitySchemasResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListRuntimeEntitySchemasResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// JsonAuthSchema: JsonAuthSchema defines the JSON schema of all authentication -// types. -type JsonAuthSchema struct { - // Schema: JSON schema of the AuthSchemas. - Schema string `json:"$schema,omitempty"` - // OneOf: List of AuthObjects. - OneOf []*AuthObject `json:"oneOf,omitempty"` - // ForceSendFields is a list of field names (e.g. "Schema") to unconditionally +// ListenEventRequest: Expected request for ListenEvent API. +type ListenEventRequest struct { + // Payload: Optional. Request payload. + Payload googleapi.RawMessage `json:"payload,omitempty"` + // ForceSendFields is a list of field names (e.g. "Payload") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Schema") to include in API + // NullFields is a list of field names (e.g. "Payload") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s JsonAuthSchema) MarshalJSON() ([]byte, error) { - type NoMethod JsonAuthSchema +func (s ListenEventRequest) MarshalJSON() ([]byte, error) { + type NoMethod ListenEventRequest return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// JsonSchema: JsonSchema representation of schema metadata -type JsonSchema struct { - // AdditionalDetails: Additional details apart from standard json schema - // fields, this gives flexibility to store metadata about the schema - AdditionalDetails googleapi.RawMessage `json:"additionalDetails,omitempty"` - // Default: The default value of the field or object described by this schema. - Default interface{} `json:"default,omitempty"` - // Description: A description of this schema. - Description string `json:"description,omitempty"` - // Enum: Possible values for an enumeration. This works in conjunction with - // `type` to represent types with a fixed set of legal values - Enum []interface{} `json:"enum,omitempty"` - // Format: Format of the value as per - // https://json-schema.org/understanding-json-schema/reference/string.html#format - Format string `json:"format,omitempty"` - // Items: Schema that applies to array values, applicable only if this is of - // type `array`. - Items *JsonSchema `json:"items,omitempty"` - // JdbcType: JDBC datatype of the field. - // - // Possible values: - // "DATA_TYPE_UNSPECIFIED" - Data type is not specified. - // "DATA_TYPE_INT" - DEPRECATED! Use DATA_TYPE_INTEGER. - // "DATA_TYPE_SMALLINT" - Short integer(int16) data type. - // "DATA_TYPE_DOUBLE" - Double data type. - // "DATA_TYPE_DATE" - Date data type. - // "DATA_TYPE_DATETIME" - DEPRECATED! Use DATA_TYPE_TIMESTAMP. - // "DATA_TYPE_TIME" - Time data type. - // "DATA_TYPE_STRING" - DEPRECATED! Use DATA_TYPE_VARCHAR. - // "DATA_TYPE_LONG" - DEPRECATED! Use DATA_TYPE_BIGINT. - // "DATA_TYPE_BOOLEAN" - Boolean data type. - // "DATA_TYPE_DECIMAL" - Decimal data type. - // "DATA_TYPE_UUID" - DEPRECATED! Use DATA_TYPE_VARCHAR. - // "DATA_TYPE_BLOB" - UNSUPPORTED! Binary data type. - // "DATA_TYPE_BIT" - Bit data type. - // "DATA_TYPE_TINYINT" - Small integer(int8) data type. - // "DATA_TYPE_INTEGER" - Integer(int32) data type. - // "DATA_TYPE_BIGINT" - Long integer(int64) data type. - // "DATA_TYPE_FLOAT" - Float data type. - // "DATA_TYPE_REAL" - Real data type. - // "DATA_TYPE_NUMERIC" - Numeric data type. - // "DATA_TYPE_CHAR" - Char data type. - // "DATA_TYPE_VARCHAR" - Varchar data type. - // "DATA_TYPE_LONGVARCHAR" - Longvarchar data type. - // "DATA_TYPE_TIMESTAMP" - Timestamp data type. - // "DATA_TYPE_NCHAR" - Nchar data type. - // "DATA_TYPE_NVARCHAR" - Nvarchar data type. - // "DATA_TYPE_LONGNVARCHAR" - Longnvarchar data type. - // "DATA_TYPE_NULL" - Null data type. - // "DATA_TYPE_OTHER" - UNSUPPORTED! Binary data type. - // "DATA_TYPE_JAVA_OBJECT" - UNSUPPORTED! Binary data type. - // "DATA_TYPE_DISTINCT" - UNSUPPORTED! Binary data type. - // "DATA_TYPE_STRUCT" - UNSUPPORTED! Binary data type. - // "DATA_TYPE_ARRAY" - UNSUPPORTED! Binary data type. - // "DATA_TYPE_CLOB" - UNSUPPORTED! Binary data type. - // "DATA_TYPE_REF" - UNSUPPORTED! Binary data type. - // "DATA_TYPE_DATALINK" - UNSUPPORTED! Binary data type. - // "DATA_TYPE_ROWID" - UNSUPPORTED! Row id data type. - // "DATA_TYPE_BINARY" - UNSUPPORTED! Binary data type. - // "DATA_TYPE_VARBINARY" - UNSUPPORTED! Variable binary data type. - // "DATA_TYPE_LONGVARBINARY" - UNSUPPORTED! Long variable binary data type. - // "DATA_TYPE_NCLOB" - UNSUPPORTED! NCLOB data type. - // "DATA_TYPE_SQLXML" - UNSUPPORTED! SQL XML data type is not supported. - // "DATA_TYPE_REF_CURSOR" - UNSUPPORTED! Cursor reference type is not - // supported. - // "DATA_TYPE_TIME_WITH_TIMEZONE" - UNSUPPORTED! Use TIME or TIMESTAMP - // instead. - // "DATA_TYPE_TIMESTAMP_WITH_TIMEZONE" - UNSUPPORTED! Use TIMESTAMP instead. - JdbcType string `json:"jdbcType,omitempty"` - // Properties: The child schemas, applicable only if this is of type `object`. - // The key is the name of the property and the value is the json schema that - // describes that property - Properties map[string]JsonSchema `json:"properties,omitempty"` - // Required: Whether this property is required. - Required []string `json:"required,omitempty"` - // Type: JSON Schema Validation: A Vocabulary for Structural Validation of JSON - Type []string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "AdditionalDetails") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AdditionalDetails") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` +// ListenEventResponse: Expected response for ListenEvent API. +type ListenEventResponse struct { + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` } -func (s JsonSchema) MarshalJSON() ([]byte, error) { - type NoMethod JsonSchema - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} +// Location: A resource that represents a Google Cloud location. +type Location struct { + // DisplayName: The friendly name for this location, typically a nearby city + // name. For example, "Tokyo". + DisplayName string `json:"displayName,omitempty"` + // Labels: Cross-service attributes for the location. For example + // {"cloud.googleapis.com/region": "us-east1"} + Labels map[string]string `json:"labels,omitempty"` + // LocationId: The canonical id for this location. For example: "us-east1". + LocationId string `json:"locationId,omitempty"` + // Metadata: Service-specific metadata. For example the available capacity at + // the given location. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` + // Name: Resource name for the location, which may vary between + // implementations. For example: + // "projects/example-project/locations/us-east1" + Name string `json:"name,omitempty"` -// JwtClaims: JWT claims used for the jwt-bearer authorization grant. -type JwtClaims struct { - // Audience: Value for the "aud" claim. - Audience string `json:"audience,omitempty"` - // Issuer: Value for the "iss" claim. - Issuer string `json:"issuer,omitempty"` - // Subject: Value for the "sub" claim. - Subject string `json:"subject,omitempty"` - // ForceSendFields is a list of field names (e.g. "Audience") to + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "DisplayName") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Audience") to include in API + // NullFields is a list of field names (e.g. "DisplayName") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s JwtClaims) MarshalJSON() ([]byte, error) { - type NoMethod JwtClaims +func (s Location) MarshalJSON() ([]byte, error) { + type NoMethod Location return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListActionsResponse: Response message for ListActions API -type ListActionsResponse struct { - // Actions: list of actions - Actions []*RuntimeActionSchema `json:"actions,omitempty"` - // NextPageToken: token for next page - 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. "Actions") to unconditionally +// LockConfig: Determines whether or no a connection is locked. If locked, a +// reason must be specified. +type LockConfig struct { + // Locked: Indicates whether or not the connection is locked. + Locked bool `json:"locked,omitempty"` + // Reason: Describes why a connection is locked. + Reason string `json:"reason,omitempty"` + // ForceSendFields is a list of field names (e.g. "Locked") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Actions") to include in API + // NullFields is a list of field names (e.g. "Locked") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ListActionsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListActionsResponse +func (s LockConfig) MarshalJSON() ([]byte, error) { + type NoMethod LockConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListConnectionsResponse: Response message for -// ConnectorsService.ListConnections -type ListConnectionsResponse struct { - // Connections: Connections. - Connections []*Connection `json:"connections,omitempty"` - // NextPageToken: Next page token. - 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. "Connections") to +// LogicalExpression: Struct for representing boolean expressions. +type LogicalExpression struct { + // FieldComparisons: Optional. A list of fields to be compared. + FieldComparisons []*FieldComparison `json:"fieldComparisons,omitempty"` + // LogicalExpressions: Optional. A list of nested conditions to be compared. + LogicalExpressions []*LogicalExpression `json:"logicalExpressions,omitempty"` + // LogicalOperator: Optional. The logical operator to use between the fields + // and conditions. + // + // Possible values: + // "OPERATOR_UNSPECIFIED" - The default value. + // "AND" - AND operator; The conditions must all be true. + // "OR" - OR operator; At least one of the conditions must be true. + LogicalOperator string `json:"logicalOperator,omitempty"` + // ForceSendFields is a list of field names (e.g. "FieldComparisons") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Connections") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "FieldComparisons") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ListConnectionsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListConnectionsResponse +func (s LogicalExpression) MarshalJSON() ([]byte, error) { + type NoMethod LogicalExpression return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListConnectorVersionsResponse: Response message for -// Connectors.ListConnectorVersions. -type ListConnectorVersionsResponse struct { - // ConnectorVersions: A list of connector versions. - ConnectorVersions []*ConnectorVersion `json:"connectorVersions,omitempty"` - // NextPageToken: Next page token. - 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. "ConnectorVersions") to +// MaintenancePolicy: Defines policies to service maintenance events. +type MaintenancePolicy struct { + // CreateTime: Output only. The time when the resource was created. + CreateTime string `json:"createTime,omitempty"` + // Description: Optional. Description of what this policy is for. Create/Update + // methods return INVALID_ARGUMENT if the length is greater than 512. + Description string `json:"description,omitempty"` + // Labels: Optional. Resource labels to represent user provided metadata. Each + // label is a key-value pair, where both the key and the value are arbitrary + // strings provided by the user. + Labels map[string]string `json:"labels,omitempty"` + // Name: Required. MaintenancePolicy name using the form: + // `projects/{project_id}/locations/{location_id}/maintenancePolicies/{maintenan + // ce_policy_id}` where {project_id} refers to a GCP consumer project ID, + // {location_id} refers to a GCP region/zone, {maintenance_policy_id} must be + // 1-63 characters long and match the regular expression + // `[a-z0-9]([-a-z0-9]*[a-z0-9])?`. + Name string `json:"name,omitempty"` + // State: Optional. The state of the policy. + // + // Possible values: + // "STATE_UNSPECIFIED" - Unspecified state. + // "READY" - Resource is ready to be used. + // "DELETING" - Resource is being deleted. It can no longer be attached to + // instances. + State string `json:"state,omitempty"` + // UpdatePolicy: Maintenance policy applicable to instance update. + UpdatePolicy *UpdatePolicy `json:"updatePolicy,omitempty"` + // UpdateTime: Output only. The time when the resource was updated. + UpdateTime string `json:"updateTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "CreateTime") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ConnectorVersions") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See + // NullFields is a list of field names (e.g. "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 ListConnectorVersionsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListConnectorVersionsResponse +func (s MaintenancePolicy) MarshalJSON() ([]byte, error) { + type NoMethod MaintenancePolicy return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListConnectorsResponse: Response message for Connectors.ListConnectors. -type ListConnectorsResponse struct { - // Connectors: A list of connectors. - Connectors []*Connector `json:"connectors,omitempty"` - // NextPageToken: Next page token. - 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. "Connectors") to +// MaintenanceSchedule: Maintenance schedule which is exposed to customer and +// potentially end user, indicating published upcoming future maintenance +// schedule +type MaintenanceSchedule struct { + // CanReschedule: This field is deprecated, and will be always set to true + // since reschedule can happen multiple times now. This field should not be + // removed until all service producers remove this for their customers. + CanReschedule bool `json:"canReschedule,omitempty"` + // EndTime: The scheduled end time for the maintenance. + EndTime string `json:"endTime,omitempty"` + // RolloutManagementPolicy: The rollout management policy this maintenance + // schedule is associated with. When doing reschedule update request, the + // reschedule should be against this given policy. + RolloutManagementPolicy string `json:"rolloutManagementPolicy,omitempty"` + // ScheduleDeadlineTime: schedule_deadline_time is the time deadline any + // schedule start time cannot go beyond, including reschedule. It's normally + // the initial schedule start time plus maintenance window length (1 day or 1 + // week). Maintenance cannot be scheduled to start beyond this deadline. + ScheduleDeadlineTime string `json:"scheduleDeadlineTime,omitempty"` + // StartTime: The scheduled start time for the maintenance. + StartTime string `json:"startTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "CanReschedule") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Connectors") to include in API + // NullFields is a list of field names (e.g. "CanReschedule") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ListConnectorsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListConnectorsResponse +func (s MaintenanceSchedule) MarshalJSON() ([]byte, error) { + type NoMethod MaintenanceSchedule return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListCustomConnectorVersionsResponse: Response message for -// Connectors.ListCustomConnectorVersions. -type ListCustomConnectorVersionsResponse struct { - // CustomConnectorVersions: A list of connector versions. - CustomConnectorVersions []*CustomConnectorVersion `json:"customConnectorVersions,omitempty"` - // NextPageToken: Next page token. - 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. "CustomConnectorVersions") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See +// MaintenanceSettings: Maintenance settings associated with instance. Allows +// service producers and end users to assign settings that controls maintenance +// on this instance. +type MaintenanceSettings struct { + // Exclude: Optional. Exclude instance from maintenance. When true, rollout + // service will not attempt maintenance on the instance. Rollout service will + // include the instance in reported rollout progress as not attempted. + Exclude bool `json:"exclude,omitempty"` + // IsRollback: Optional. If the update call is triggered from rollback, set the + // value as true. + IsRollback bool `json:"isRollback,omitempty"` + // MaintenancePolicies: Optional. The MaintenancePolicies that have been + // attached to the instance. The key must be of the type name of the oneof + // policy name defined in MaintenancePolicy, and the embedded policy must + // define the same policy type. For details, please refer to go/mr-user-guide. + // Should not be set if maintenance_policy_names is set. If only the name is + // needed, then only populate MaintenancePolicy.name. + MaintenancePolicies map[string]MaintenancePolicy `json:"maintenancePolicies,omitempty"` + // ForceSendFields is a list of field names (e.g. "Exclude") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CustomConnectorVersions") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See + // NullFields is a list of field names (e.g. "Exclude") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ListCustomConnectorVersionsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListCustomConnectorVersionsResponse +func (s MaintenanceSettings) MarshalJSON() ([]byte, error) { + type NoMethod MaintenanceSettings return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListCustomConnectorsResponse: Response message for -// Connectors.ListCustomConnectors. -type ListCustomConnectorsResponse struct { - // CustomConnectors: A list of customConnectors. - CustomConnectors []*CustomConnector `json:"customConnectors,omitempty"` - // NextPageToken: Next page token. - 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. "CustomConnectors") to +// MaintenanceWindow: MaintenanceWindow definition. +type MaintenanceWindow struct { + // DailyCycle: Daily cycle. + DailyCycle *DailyCycle `json:"dailyCycle,omitempty"` + // WeeklyCycle: Weekly cycle. + WeeklyCycle *WeeklyCycle `json:"weeklyCycle,omitempty"` + // ForceSendFields is a list of field names (e.g. "DailyCycle") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CustomConnectors") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See + // NullFields is a list of field names (e.g. "DailyCycle") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ListCustomConnectorsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListCustomConnectorsResponse +func (s MaintenanceWindow) MarshalJSON() ([]byte, error) { + type NoMethod MaintenanceWindow return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListEndUserAuthenticationsResponse: Response message for -// ConnectorsService.ListEndUserAuthentications -type ListEndUserAuthenticationsResponse struct { - // EndUserAuthentications: Subscriptions. - EndUserAuthentications []*EndUserAuthentication `json:"endUserAuthentications,omitempty"` - // NextPageToken: Next page token. - NextPageToken string `json:"nextPageToken,omitempty"` - // Unreachable: Locations that could not be reached. - Unreachable []string `json:"unreachable,omitempty"` +// ManagedZone: represents the Connector's Managed Zone resource +type ManagedZone struct { + // CreateTime: Output only. Created time. + CreateTime string `json:"createTime,omitempty"` + // Description: Optional. Description of the resource. + Description string `json:"description,omitempty"` + // Dns: Required. DNS Name of the resource + Dns string `json:"dns,omitempty"` + // Labels: Optional. Resource labels to represent user-provided metadata. Refer + // to cloud documentation on labels for more details. + // https://cloud.google.com/compute/docs/labeling-resources + Labels map[string]string `json:"labels,omitempty"` + // Name: Output only. Resource name of the Managed Zone. Format: + // projects/{project}/locations/global/managedZones/{managed_zone} + Name string `json:"name,omitempty"` + // TargetProject: Required. The name of the Target Project + TargetProject string `json:"targetProject,omitempty"` + // TargetVpc: Required. The name of the Target Project VPC Network + TargetVpc string `json:"targetVpc,omitempty"` + // UpdateTime: Output only. Updated time. + 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. "EndUserAuthentications") to + // 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. "EndUserAuthentications") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See + // NullFields is a list of field names (e.g. "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 ListEndUserAuthenticationsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListEndUserAuthenticationsResponse +func (s ManagedZone) MarshalJSON() ([]byte, error) { + type NoMethod ManagedZone return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListEndpointAttachmentsResponse: Response message for -// ConnectorsService.ListEndpointAttachments -type ListEndpointAttachmentsResponse struct { - // EndpointAttachments: EndpointAttachments. - EndpointAttachments []*EndpointAttachment `json:"endpointAttachments,omitempty"` - // NextPageToken: Next page token. - 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. "EndpointAttachments") to +// MarketplaceConnectorDetails: Marketplace connector details. +type MarketplaceConnectorDetails struct { + // MarketplaceProduct: Marketplace product name. + MarketplaceProduct string `json:"marketplaceProduct,omitempty"` + // MarketplaceProductId: Marketplace product ID. + MarketplaceProductId string `json:"marketplaceProductId,omitempty"` + // MarketplaceProductUri: Marketplace product URL. + MarketplaceProductUri string `json:"marketplaceProductUri,omitempty"` + // Partner: The name of the partner. + Partner string `json:"partner,omitempty"` + // ForceSendFields is a list of field names (e.g. "MarketplaceProduct") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "EndpointAttachments") to include + // NullFields is a list of field names (e.g. "MarketplaceProduct") to include // in API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ListEndpointAttachmentsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListEndpointAttachmentsResponse +func (s MarketplaceConnectorDetails) MarshalJSON() ([]byte, error) { + type NoMethod MarketplaceConnectorDetails return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListEntityTypesResponse: Response message for ListEntityTypes API -type ListEntityTypesResponse struct { - // EntityTypes: list of entity types - EntityTypes []*RuntimeEntitySchema `json:"entityTypes,omitempty"` - // NextPageToken: token for next page - 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. "EntityTypes") to +// MultipleSelectConfig: MultipleSelectConfig represents the multiple options +// for a config variable. +type MultipleSelectConfig struct { + // AllowCustomValues: Optional. Allow custom values. + AllowCustomValues bool `json:"allowCustomValues,omitempty"` + // MultipleSelectOptions: Required. Multiple select options. + MultipleSelectOptions []*MultipleSelectOption `json:"multipleSelectOptions,omitempty"` + // ValueSeparator: Required. Value separator. Only "," can be used for OAuth + // auth code flow scope field. + ValueSeparator string `json:"valueSeparator,omitempty"` + // ForceSendFields is a list of field names (e.g. "AllowCustomValues") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "EntityTypes") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "AllowCustomValues") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ListEntityTypesResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListEntityTypesResponse +func (s MultipleSelectConfig) MarshalJSON() ([]byte, error) { + type NoMethod MultipleSelectConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListEventSubscriptionsResponse: Response message for -// ConnectorsService.ListEventSubscriptions -type ListEventSubscriptionsResponse struct { - // EventSubscriptions: Subscriptions. - EventSubscriptions []*EventSubscription `json:"eventSubscriptions,omitempty"` - // NextPageToken: Next page token. - 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. "EventSubscriptions") to +// MultipleSelectOption: MultiplSelecteOption represents the single option for +// a config variable. +type MultipleSelectOption struct { + // Description: Optional. Value of the option. + Description string `json:"description,omitempty"` + // DisplayName: Required. Display name of the option. + DisplayName string `json:"displayName,omitempty"` + // Key: Required. Key of the option. + Key string `json:"key,omitempty"` + // Preselected: Optional. Indicates if the option is preselected. + Preselected bool `json:"preselected,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. "EventSubscriptions") to include - // in API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. See + // NullFields is a list of field names (e.g. "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 ListEventSubscriptionsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListEventSubscriptionsResponse +func (s MultipleSelectOption) MarshalJSON() ([]byte, error) { + type NoMethod MultipleSelectOption return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListEventTypesResponse: Response message for Connectors.ListEventTypes. -type ListEventTypesResponse struct { - // EventTypes: A list of connector versions. - EventTypes []*EventType `json:"eventTypes,omitempty"` - // NextPageToken: Next page token. - 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. "EventTypes") to +// NetworkConfig: Regional Network Config. +type NetworkConfig struct { + // EgressIps: Output only. Egress IPs + EgressIps []string `json:"egressIps,omitempty"` + // EgressMode: Optional. Egress mode for the network. + // + // Possible values: + // "NETWORK_EGRESS_MODE_UNSPECIFIED" - Egress mode unspecified. + // "AUTO_IP" - Network egress through auto assigned IPs. + // "STATIC_IP" - Network egress through static IPs. + EgressMode string `json:"egressMode,omitempty"` + // ForceSendFields is a list of field names (e.g. "EgressIps") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "EventTypes") to include in API + // NullFields is a list of field names (e.g. "EgressIps") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ListEventTypesResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListEventTypesResponse +func (s NetworkConfig) MarshalJSON() ([]byte, error) { + type NoMethod NetworkConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListLocationsResponse: The response message for Locations.ListLocations. -type ListLocationsResponse struct { - // Locations: A list of locations that matches the specified filter in the - // request. - Locations []*Location `json:"locations,omitempty"` - // NextPageToken: The standard List next-page token. - 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. "Locations") to +// NodeConfig: Node configuration for the connection. +type NodeConfig struct { + // MaxNodeCount: Maximum number of nodes in the runtime nodes. + MaxNodeCount int64 `json:"maxNodeCount,omitempty"` + // MinNodeCount: Minimum number of nodes in the runtime nodes. + MinNodeCount int64 `json:"minNodeCount,omitempty"` + // ForceSendFields is a list of field names (e.g. "MaxNodeCount") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Locations") to include in API + // NullFields is a list of field names (e.g. "MaxNodeCount") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ListLocationsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListLocationsResponse - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +func (s NodeConfig) MarshalJSON() ([]byte, error) { + type NoMethod NodeConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListManagedZonesResponse: Response message for -// ConnectorsService.ListManagedZones -type ListManagedZonesResponse struct { - // ManagedZones: ManagedZones. - ManagedZones []*ManagedZone `json:"managedZones,omitempty"` - // NextPageToken: Next page token. - 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. "ManagedZones") to +// NodeSloMetadata: Node information for custom per-node SLO implementations. +// SSA does not support per-node SLO, but producers can populate per-node +// information in SloMetadata for custom precomputations. SSA Eligibility +// Exporter will emit per-node metric based on this information. +type NodeSloMetadata struct { + // Location: The location of the node, if different from instance location. + Location string `json:"location,omitempty"` + // NodeId: The id of the node. This should be equal to + // SaasInstanceNode.node_id. + NodeId string `json:"nodeId,omitempty"` + // PerSliEligibility: If present, this will override eligibility for the node + // coming from instance or exclusions for specified SLIs. + PerSliEligibility *PerSliSloEligibility `json:"perSliEligibility,omitempty"` + // ForceSendFields is a list of field names (e.g. "Location") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ManagedZones") to include in API + // NullFields is a list of field names (e.g. "Location") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ListManagedZonesResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListManagedZonesResponse +func (s NodeSloMetadata) MarshalJSON() ([]byte, error) { + type NoMethod NodeSloMetadata return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListOperationsResponse: The response message for Operations.ListOperations. -type ListOperationsResponse struct { - // NextPageToken: The standard List next-page token. - NextPageToken string `json:"nextPageToken,omitempty"` - // Operations: A list of operations that matches the specified filter in the - // request. - Operations []*Operation `json:"operations,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 +// NotificationParameter: Contains notification related data. +type NotificationParameter struct { + // Values: Optional. Array of string values. e.g. instance's replica + // information. + Values []string `json:"values,omitempty"` + // ForceSendFields is a list of field names (e.g. "Values") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See // https://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 + // NullFields is a list of field names (e.g. "Values") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ListOperationsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListOperationsResponse +func (s NotificationParameter) MarshalJSON() ([]byte, error) { + type NoMethod NotificationParameter return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListProvidersResponse: Response message for Connectors.ListProviders. -type ListProvidersResponse struct { - // NextPageToken: Next page token. - NextPageToken string `json:"nextPageToken,omitempty"` - // Providers: A list of providers. - Providers []*Provider `json:"providers,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. "NextPageToken") to +// Oauth2AuthCodeFlow: Parameters to support Oauth 2.0 Auth Code Grant +// Authentication. See https://www.rfc-editor.org/rfc/rfc6749#section-1.3.1 for +// more details. +type Oauth2AuthCodeFlow struct { + // AuthCode: Authorization code to be exchanged for access and refresh tokens. + AuthCode string `json:"authCode,omitempty"` + // AuthUri: Auth URL for Authorization Code Flow + AuthUri string `json:"authUri,omitempty"` + // ClientId: Client ID for user-provided OAuth app. + ClientId string `json:"clientId,omitempty"` + // ClientSecret: Client secret for user-provided OAuth app. + ClientSecret *Secret `json:"clientSecret,omitempty"` + // EnablePkce: Whether to enable PKCE when the user performs the auth code + // flow. + EnablePkce bool `json:"enablePkce,omitempty"` + // PkceVerifier: PKCE verifier to be used during the auth code exchange. + PkceVerifier string `json:"pkceVerifier,omitempty"` + // RedirectUri: Redirect URI to be provided during the auth code exchange. + RedirectUri string `json:"redirectUri,omitempty"` + // Scopes: Scopes the connection will request when the user performs the auth + // code flow. + Scopes []string `json:"scopes,omitempty"` + // ForceSendFields is a list of field names (e.g. "AuthCode") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://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 + // NullFields is a list of field names (e.g. "AuthCode") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ListProvidersResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListProvidersResponse +func (s Oauth2AuthCodeFlow) MarshalJSON() ([]byte, error) { + type NoMethod Oauth2AuthCodeFlow return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListRuntimeActionSchemasResponse: Response message for -// ConnectorsService.ListRuntimeActionSchemas. -type ListRuntimeActionSchemasResponse struct { - // NextPageToken: Next page token. - NextPageToken string `json:"nextPageToken,omitempty"` - // RuntimeActionSchemas: Runtime action schemas. - RuntimeActionSchemas []*RuntimeActionSchema `json:"runtimeActionSchemas,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 +// Oauth2AuthCodeFlowGoogleManaged: Parameters to support Oauth 2.0 Auth Code +// Grant Authentication using Google Provided OAuth Client. See +// https://tools.ietf.org/html/rfc6749#section-1.3.1 for more details. +type Oauth2AuthCodeFlowGoogleManaged struct { + // AuthCode: Optional. Authorization code to be exchanged for access and + // refresh tokens. + AuthCode string `json:"authCode,omitempty"` + // RedirectUri: Optional. Redirect URI to be provided during the auth code + // exchange. + RedirectUri string `json:"redirectUri,omitempty"` + // Scopes: Required. Scopes the connection will request when the user performs + // the auth code flow. + Scopes []string `json:"scopes,omitempty"` + // ForceSendFields is a list of field names (e.g. "AuthCode") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://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 + // NullFields is a list of field names (e.g. "AuthCode") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ListRuntimeActionSchemasResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListRuntimeActionSchemasResponse +func (s Oauth2AuthCodeFlowGoogleManaged) MarshalJSON() ([]byte, error) { + type NoMethod Oauth2AuthCodeFlowGoogleManaged return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListRuntimeEntitySchemasResponse: Response message for -// ConnectorsService.ListRuntimeEntitySchemas. -type ListRuntimeEntitySchemasResponse struct { - // NextPageToken: Next page token. - NextPageToken string `json:"nextPageToken,omitempty"` - // RuntimeEntitySchemas: Runtime entity schemas. - RuntimeEntitySchemas []*RuntimeEntitySchema `json:"runtimeEntitySchemas,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 +// Oauth2ClientCredentials: Parameters to support Oauth 2.0 Client Credentials +// Grant Authentication. See https://tools.ietf.org/html/rfc6749#section-1.3.4 +// for more details. +type Oauth2ClientCredentials struct { + // ClientId: The client identifier. + ClientId string `json:"clientId,omitempty"` + // ClientSecret: Secret version reference containing the client secret. + ClientSecret *Secret `json:"clientSecret,omitempty"` + // ForceSendFields is a list of field names (e.g. "ClientId") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://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 + // NullFields is a list of field names (e.g. "ClientId") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ListRuntimeEntitySchemasResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListRuntimeEntitySchemasResponse +func (s Oauth2ClientCredentials) MarshalJSON() ([]byte, error) { + type NoMethod Oauth2ClientCredentials return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListenEventRequest: Expected request for ListenEvent API. -type ListenEventRequest struct { - // Payload: Optional. Request payload. - Payload googleapi.RawMessage `json:"payload,omitempty"` - // ForceSendFields is a list of field names (e.g. "Payload") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See +// Oauth2JwtBearer: Parameters to support JSON Web Token (JWT) Profile for +// Oauth 2.0 Authorization Grant based authentication. See +// https://tools.ietf.org/html/rfc7523 for more details. +type Oauth2JwtBearer struct { + // ClientKey: Secret version reference containing a PKCS#8 PEM-encoded private + // key associated with the Client Certificate. This private key will be used to + // sign JWTs used for the jwt-bearer authorization grant. Specified in the form + // as: `projects/*/secrets/*/versions/*`. + ClientKey *Secret `json:"clientKey,omitempty"` + // JwtClaims: JwtClaims providers fields to generate the token. + JwtClaims *JwtClaims `json:"jwtClaims,omitempty"` + // ForceSendFields is a list of field names (e.g. "ClientKey") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Payload") to include in API + // NullFields is a list of field names (e.g. "ClientKey") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ListenEventRequest) MarshalJSON() ([]byte, error) { - type NoMethod ListenEventRequest +func (s Oauth2JwtBearer) MarshalJSON() ([]byte, error) { + type NoMethod Oauth2JwtBearer return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListenEventResponse: Expected response for ListenEvent API. -type ListenEventResponse struct { - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` -} - -// Location: A resource that represents a Google Cloud location. -type Location struct { - // DisplayName: The friendly name for this location, typically a nearby city - // name. For example, "Tokyo". - DisplayName string `json:"displayName,omitempty"` - // Labels: Cross-service attributes for the location. For example - // {"cloud.googleapis.com/region": "us-east1"} - Labels map[string]string `json:"labels,omitempty"` - // LocationId: The canonical id for this location. For example: "us-east1". - LocationId string `json:"locationId,omitempty"` - // Metadata: Service-specific metadata. For example the available capacity at - // the given location. +// Operation: This resource represents a long-running operation that is the +// result of a network API call. +type Operation struct { + // Done: If the value is `false`, it means the operation is still in progress. + // If `true`, the operation is completed, and either `error` or `response` is + // available. + Done bool `json:"done,omitempty"` + // Error: The error result of the operation in case of failure or cancellation. + Error *Status `json:"error,omitempty"` + // Metadata: Service-specific metadata associated with the operation. It + // typically contains progress information and common metadata such as create + // time. Some services might not provide such metadata. Any method that returns + // a long-running operation should document the metadata type, if any. Metadata googleapi.RawMessage `json:"metadata,omitempty"` - // Name: Resource name for the location, which may vary between - // implementations. For example: - // "projects/example-project/locations/us-east1" + // Name: The server-assigned name, which is only unique within the same service + // that originally returns it. If you use the default HTTP mapping, the `name` + // should be a resource name ending with `operations/{unique_id}`. Name string `json:"name,omitempty"` + // Response: The normal, successful response of the operation. If the original + // method returns no data on success, such as `Delete`, the response is + // `google.protobuf.Empty`. If the original method is standard + // `Get`/`Create`/`Update`, the response should be the resource. For other + // methods, the response should have the type `XxxResponse`, where `Xxx` is the + // original method name. For example, if the original method name is + // `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. + Response googleapi.RawMessage `json:"response,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DisplayName") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s Location) MarshalJSON() ([]byte, error) { - type NoMethod Location +func (s Operation) MarshalJSON() ([]byte, error) { + type NoMethod Operation return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// LockConfig: Determines whether or no a connection is locked. If locked, a -// reason must be specified. -type LockConfig struct { - // Locked: Indicates whether or not the connection is locked. - Locked bool `json:"locked,omitempty"` - // Reason: Describes why a connection is locked. - Reason string `json:"reason,omitempty"` - // ForceSendFields is a list of field names (e.g. "Locked") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Locked") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s LockConfig) MarshalJSON() ([]byte, error) { - type NoMethod LockConfig - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// LogicalExpression: Struct for representing boolean expressions. -type LogicalExpression struct { - // FieldComparisons: Optional. A list of fields to be compared. - FieldComparisons []*FieldComparison `json:"fieldComparisons,omitempty"` - // LogicalExpressions: Optional. A list of nested conditions to be compared. - LogicalExpressions []*LogicalExpression `json:"logicalExpressions,omitempty"` - // LogicalOperator: Optional. The logical operator to use between the fields - // and conditions. - // - // Possible values: - // "OPERATOR_UNSPECIFIED" - The default value. - // "AND" - AND operator; The conditions must all be true. - // "OR" - OR operator; At least one of the conditions must be true. - LogicalOperator string `json:"logicalOperator,omitempty"` - // ForceSendFields is a list of field names (e.g. "FieldComparisons") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "FieldComparisons") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s LogicalExpression) MarshalJSON() ([]byte, error) { - type NoMethod LogicalExpression - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// MaintenancePolicy: Defines policies to service maintenance events. -type MaintenancePolicy struct { - // CreateTime: Output only. The time when the resource was created. +// OperationMetadata: Represents the metadata of the long-running operation. +type OperationMetadata struct { + // ApiVersion: Output only. API version used to start the operation. + ApiVersion string `json:"apiVersion,omitempty"` + // CreateTime: Output only. The time the operation was created. CreateTime string `json:"createTime,omitempty"` - // Description: Optional. Description of what this policy is for. Create/Update - // methods return INVALID_ARGUMENT if the length is greater than 512. - Description string `json:"description,omitempty"` - // Labels: Optional. Resource labels to represent user provided metadata. Each - // label is a key-value pair, where both the key and the value are arbitrary - // strings provided by the user. - Labels map[string]string `json:"labels,omitempty"` - // Name: Required. MaintenancePolicy name using the form: - // `projects/{project_id}/locations/{location_id}/maintenancePolicies/{maintenan - // ce_policy_id}` where {project_id} refers to a GCP consumer project ID, - // {location_id} refers to a GCP region/zone, {maintenance_policy_id} must be - // 1-63 characters long and match the regular expression - // `[a-z0-9]([-a-z0-9]*[a-z0-9])?`. - Name string `json:"name,omitempty"` - // State: Optional. The state of the policy. - // - // Possible values: - // "STATE_UNSPECIFIED" - Unspecified state. - // "READY" - Resource is ready to be used. - // "DELETING" - Resource is being deleted. It can no longer be attached to - // instances. - State string `json:"state,omitempty"` - // UpdatePolicy: Maintenance policy applicable to instance update. - UpdatePolicy *UpdatePolicy `json:"updatePolicy,omitempty"` - // UpdateTime: Output only. The time when the resource was updated. - UpdateTime string `json:"updateTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to + // EndTime: Output only. The time the operation finished running. + 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`. + RequestedCancellation bool `json:"requestedCancellation,omitempty"` + // StatusMessage: Output only. Human-readable status of the operation, if any. + StatusMessage string `json:"statusMessage,omitempty"` + // Target: Output only. Server-defined resource path for the target of the + // operation. + Target string `json:"target,omitempty"` + // Verb: Output only. Name of the verb executed by the operation. + Verb string `json:"verb,omitempty"` + // ForceSendFields is a list of field names (e.g. "ApiVersion") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://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 + // NullFields is a list of field names (e.g. "ApiVersion") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s MaintenancePolicy) MarshalJSON() ([]byte, error) { - type NoMethod MaintenancePolicy +func (s OperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod OperationMetadata return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MaintenanceSchedule: Maintenance schedule which is exposed to customer and -// potentially end user, indicating published upcoming future maintenance -// schedule -type MaintenanceSchedule struct { - // CanReschedule: This field is deprecated, and will be always set to true - // since reschedule can happen multiple times now. This field should not be - // removed until all service producers remove this for their customers. - CanReschedule bool `json:"canReschedule,omitempty"` - // EndTime: The scheduled end time for the maintenance. - EndTime string `json:"endTime,omitempty"` - // RolloutManagementPolicy: The rollout management policy this maintenance - // schedule is associated with. When doing reschedule update request, the - // reschedule should be against this given policy. - RolloutManagementPolicy string `json:"rolloutManagementPolicy,omitempty"` - // ScheduleDeadlineTime: schedule_deadline_time is the time deadline any - // schedule start time cannot go beyond, including reschedule. It's normally - // the initial schedule start time plus maintenance window length (1 day or 1 - // week). Maintenance cannot be scheduled to start beyond this deadline. - ScheduleDeadlineTime string `json:"scheduleDeadlineTime,omitempty"` - // StartTime: The scheduled start time for the maintenance. - StartTime string `json:"startTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "CanReschedule") to +// PartnerMetadata: Partner metadata details. This will be populated when +// publishing the custom connector as a partner connector version. On +// publishing, parntner connector version will be created using the fields in +// PartnerMetadata. +type PartnerMetadata struct { + // AcceptGcpTos: Required. Whether the user has accepted the Google Cloud + // Platform Terms of Service (https://cloud.google.com/terms/) and the Google + // Cloud Marketplace Terms of Service + // (https://cloud.google.com/terms/marketplace/launcher?hl=en). + AcceptGcpTos bool `json:"acceptGcpTos,omitempty"` + // AdditionalComments: Optional. Additional comments for the submission. + AdditionalComments string `json:"additionalComments,omitempty"` + // ConfirmPartnerRequirements: Required. Confirmation that connector meets all + // applicable requirements mentioned in the Partner Connector Publishing + // requirements list and Partner onboardiong requirements list + // (https://cloud.google.com/marketplace/docs/partners/get-started#requirements). + ConfirmPartnerRequirements bool `json:"confirmPartnerRequirements,omitempty"` + // DemoUri: Required. Public URL for the demo video. + DemoUri string `json:"demoUri,omitempty"` + // HasDynamicSpecUri: Output only. Has dynamic open api spec uri. + HasDynamicSpecUri bool `json:"hasDynamicSpecUri,omitempty"` + // IntegrationTemplates: Required. Integration example templates for the custom + // connector. + IntegrationTemplates string `json:"integrationTemplates,omitempty"` + // LocalSpecPath: Output only. Local spec path. Required if + // has_dynamic_spec_uri is true. + LocalSpecPath string `json:"localSpecPath,omitempty"` + // MarketplaceProduct: Optional. Marketplace product name. + MarketplaceProduct string `json:"marketplaceProduct,omitempty"` + // MarketplaceProductId: Required. Marketplace product ID. + MarketplaceProductId string `json:"marketplaceProductId,omitempty"` + // MarketplaceProductProjectId: Optional. Marketplace product project ID. + MarketplaceProductProjectId string `json:"marketplaceProductProjectId,omitempty"` + // MarketplaceProductUri: Optional. Marketplace product URL. + MarketplaceProductUri string `json:"marketplaceProductUri,omitempty"` + // Partner: Required. Partner name. + Partner string `json:"partner,omitempty"` + // PartnerConnectorDisplayName: Required. Partner connector display name. + PartnerConnectorDisplayName string `json:"partnerConnectorDisplayName,omitempty"` + // PublishRequestTime: Output only. Publish request time. + PublishRequestTime string `json:"publishRequestTime,omitempty"` + // TargetApplication: Required. Target application for which partner connector + // is built. + TargetApplication string `json:"targetApplication,omitempty"` + // TargetCustomerSegment: Required. Target customer segment for the partner + // connector. + TargetCustomerSegment string `json:"targetCustomerSegment,omitempty"` + // UseCases: Required. Details about partner connector use cases. + UseCases string `json:"useCases,omitempty"` + // ForceSendFields is a list of field names (e.g. "AcceptGcpTos") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CanReschedule") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s MaintenanceSchedule) MarshalJSON() ([]byte, error) { - type NoMethod MaintenanceSchedule - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// MaintenanceSettings: Maintenance settings associated with instance. Allows -// service producers and end users to assign settings that controls maintenance -// on this instance. -type MaintenanceSettings struct { - // Exclude: Optional. Exclude instance from maintenance. When true, rollout - // service will not attempt maintenance on the instance. Rollout service will - // include the instance in reported rollout progress as not attempted. - Exclude bool `json:"exclude,omitempty"` - // IsRollback: Optional. If the update call is triggered from rollback, set the - // value as true. - IsRollback bool `json:"isRollback,omitempty"` - // MaintenancePolicies: Optional. The MaintenancePolicies that have been - // attached to the instance. The key must be of the type name of the oneof - // policy name defined in MaintenancePolicy, and the embedded policy must - // define the same policy type. For details, please refer to go/mr-user-guide. - // Should not be set if maintenance_policy_names is set. If only the name is - // needed, then only populate MaintenancePolicy.name. - MaintenancePolicies map[string]MaintenancePolicy `json:"maintenancePolicies,omitempty"` - // ForceSendFields is a list of field names (e.g. "Exclude") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Exclude") to include in API + // NullFields is a list of field names (e.g. "AcceptGcpTos") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s MaintenanceSettings) MarshalJSON() ([]byte, error) { - type NoMethod MaintenanceSettings +func (s PartnerMetadata) MarshalJSON() ([]byte, error) { + type NoMethod PartnerMetadata return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MaintenanceWindow: MaintenanceWindow definition. -type MaintenanceWindow struct { - // DailyCycle: Daily cycle. - DailyCycle *DailyCycle `json:"dailyCycle,omitempty"` - // WeeklyCycle: Weekly cycle. - WeeklyCycle *WeeklyCycle `json:"weeklyCycle,omitempty"` - // ForceSendFields is a list of field names (e.g. "DailyCycle") to +// PerSliSloEligibility: PerSliSloEligibility is a mapping from an SLI name to +// eligibility. +type PerSliSloEligibility struct { + // Eligibilities: An entry in the eligibilities map specifies an eligibility + // for a particular SLI for the given instance. The SLI key in the name must be + // a valid SLI name specified in the Eligibility Exporter binary flags + // otherwise an error will be emitted by Eligibility Exporter and the oncaller + // will be alerted. If an SLI has been defined in the binary flags but the + // eligibilities map does not contain it, the corresponding SLI time series + // will not be emitted by the Eligibility Exporter. This ensures a smooth + // rollout and compatibility between the data produced by different versions of + // the Eligibility Exporters. If eligibilities map contains a key for an SLI + // which has not been declared in the binary flags, there will be an error + // message emitted in the Eligibility Exporter log and the metric for the SLI + // in question will not be emitted. + Eligibilities map[string]SloEligibility `json:"eligibilities,omitempty"` + // ForceSendFields is a list of field names (e.g. "Eligibilities") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DailyCycle") to include in API + // NullFields is a list of field names (e.g. "Eligibilities") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s MaintenanceWindow) MarshalJSON() ([]byte, error) { - type NoMethod MaintenanceWindow +func (s PerSliSloEligibility) MarshalJSON() ([]byte, error) { + type NoMethod PerSliSloEligibility return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ManagedZone: represents the Connector's Managed Zone resource -type ManagedZone struct { - // CreateTime: Output only. Created time. - CreateTime string `json:"createTime,omitempty"` - // Description: Optional. Description of the resource. - Description string `json:"description,omitempty"` - // Dns: Required. DNS Name of the resource - Dns string `json:"dns,omitempty"` - // Labels: Optional. Resource labels to represent user-provided metadata. Refer - // to cloud documentation on labels for more details. - // https://cloud.google.com/compute/docs/labeling-resources - Labels map[string]string `json:"labels,omitempty"` - // Name: Output only. Resource name of the Managed Zone. Format: - // projects/{project}/locations/global/managedZones/{managed_zone} - Name string `json:"name,omitempty"` - // TargetProject: Required. The name of the Target Project - TargetProject string `json:"targetProject,omitempty"` - // TargetVpc: Required. The name of the Target Project VPC Network - TargetVpc string `json:"targetVpc,omitempty"` - // UpdateTime: Output only. Updated time. - UpdateTime string `json:"updateTime,omitempty"` +// Policy: 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 Policy struct { + // AuditConfigs: Specifies cloud audit logging configuration for this policy. + AuditConfigs []*AuditConfig `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 []*Binding `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. "CreateTime") to + // 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. "CreateTime") to include in API + // 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 ManagedZone) MarshalJSON() ([]byte, error) { - type NoMethod ManagedZone +func (s Policy) MarshalJSON() ([]byte, error) { + type NoMethod Policy return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MarketplaceConnectorDetails: Marketplace connector details. -type MarketplaceConnectorDetails struct { - // MarketplaceProduct: Marketplace product name. - MarketplaceProduct string `json:"marketplaceProduct,omitempty"` - // MarketplaceProductId: Marketplace product ID. - MarketplaceProductId string `json:"marketplaceProductId,omitempty"` - // MarketplaceProductUri: Marketplace product URL. - MarketplaceProductUri string `json:"marketplaceProductUri,omitempty"` - // Partner: The name of the partner. - Partner string `json:"partner,omitempty"` - // ForceSendFields is a list of field names (e.g. "MarketplaceProduct") to +// Provider: Provider indicates the owner who provides the connectors. +type Provider struct { + // CreateTime: Output only. Created time. + CreateTime string `json:"createTime,omitempty"` + // Description: Output only. Description of the resource. + Description string `json:"description,omitempty"` + // DisplayName: Output only. Display name. + DisplayName string `json:"displayName,omitempty"` + // DocumentationUri: Output only. Link to documentation page. + DocumentationUri string `json:"documentationUri,omitempty"` + // ExternalUri: Output only. Link to external page. + ExternalUri string `json:"externalUri,omitempty"` + // Labels: Output only. Resource labels to represent user-provided metadata. + // Refer to cloud documentation on labels for more details. + // https://cloud.google.com/compute/docs/labeling-resources + Labels map[string]string `json:"labels,omitempty"` + // LaunchStage: Output only. Flag to mark the version indicating the launch + // stage. + // + // Possible values: + // "LAUNCH_STAGE_UNSPECIFIED" - LAUNCH_STAGE_UNSPECIFIED. + // "PREVIEW" - PREVIEW. + // "GA" - GA. + // "DEPRECATED" - DEPRECATED. + // "TEST" - TEST. + // "PRIVATE_PREVIEW" - PRIVATE_PREVIEW. + LaunchStage string `json:"launchStage,omitempty"` + // Name: Output only. Resource name of the Provider. Format: + // projects/{project}/locations/{location}/providers/{provider} Only global + // location is supported for Provider resource. + Name string `json:"name,omitempty"` + // UpdateTime: Output only. Updated time. + UpdateTime string `json:"updateTime,omitempty"` + // WebAssetsLocation: Output only. Cloud storage location of icons etc consumed + // by UI. + WebAssetsLocation string `json:"webAssetsLocation,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. "MarketplaceProduct") to include - // in API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. See + // NullFields is a list of field names (e.g. "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 MarketplaceConnectorDetails) MarshalJSON() ([]byte, error) { - type NoMethod MarketplaceConnectorDetails +func (s Provider) MarshalJSON() ([]byte, error) { + type NoMethod Provider return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MultipleSelectConfig: MultipleSelectConfig represents the multiple options -// for a config variable. -type MultipleSelectConfig struct { - // AllowCustomValues: Optional. Allow custom values. - AllowCustomValues bool `json:"allowCustomValues,omitempty"` - // MultipleSelectOptions: Required. Multiple select options. - MultipleSelectOptions []*MultipleSelectOption `json:"multipleSelectOptions,omitempty"` - // ValueSeparator: Required. Value separator. Only "," can be used for OAuth - // auth code flow scope field. - ValueSeparator string `json:"valueSeparator,omitempty"` - // ForceSendFields is a list of field names (e.g. "AllowCustomValues") to +// ProvisionedResource: Describes provisioned dataplane resources. +type ProvisionedResource struct { + // ResourceType: Type of the resource. This can be either a GCP resource or a + // custom one (e.g. another cloud provider's VM). For GCP compute resources use + // singular form of the names listed in GCP compute API documentation + // (https://cloud.google.com/compute/docs/reference/rest/v1/), prefixed with + // 'compute-', for example: 'compute-instance', 'compute-disk', + // 'compute-autoscaler'. + ResourceType string `json:"resourceType,omitempty"` + // ResourceUrl: URL identifying the resource, e.g. + // "https://www.googleapis.com/compute/v1/projects/...)". + ResourceUrl string `json:"resourceUrl,omitempty"` + // ForceSendFields is a list of field names (e.g. "ResourceType") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AllowCustomValues") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See + // NullFields is a list of field names (e.g. "ResourceType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s MultipleSelectConfig) MarshalJSON() ([]byte, error) { - type NoMethod MultipleSelectConfig +func (s ProvisionedResource) MarshalJSON() ([]byte, error) { + type NoMethod ProvisionedResource return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MultipleSelectOption: MultiplSelecteOption represents the single option for -// a config variable. -type MultipleSelectOption struct { - // Description: Optional. Value of the option. - Description string `json:"description,omitempty"` - // DisplayName: Required. Display name of the option. - DisplayName string `json:"displayName,omitempty"` - // Key: Required. Key of the option. - Key string `json:"key,omitempty"` - // Preselected: Optional. Indicates if the option is preselected. - Preselected bool `json:"preselected,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to +// PubSub: Pub/Sub message includes details of the Destination Pub/Sub topic. +type PubSub struct { + // Attributes: Optional. Pub/Sub message attributes to be added to the Pub/Sub + // message. + Attributes map[string]string `json:"attributes,omitempty"` + // ConfigVariables: Optional. Configuration for configuring the trigger + ConfigVariables []*ConfigVariable `json:"configVariables,omitempty"` + // ProjectId: Required. The project id which has the Pub/Sub topic. + ProjectId string `json:"projectId,omitempty"` + // TopicId: Required. The topic id of the Pub/Sub topic. + TopicId string `json:"topicId,omitempty"` + // ForceSendFields is a list of field names (e.g. "Attributes") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://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 + // NullFields is a list of field names (e.g. "Attributes") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s MultipleSelectOption) MarshalJSON() ([]byte, error) { - type NoMethod MultipleSelectOption +func (s PubSub) MarshalJSON() ([]byte, error) { + type NoMethod PubSub return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// NetworkConfig: Regional Network Config. -type NetworkConfig struct { - // EgressIps: Output only. Egress IPs - EgressIps []string `json:"egressIps,omitempty"` - // EgressMode: Optional. Egress mode for the network. - // - // Possible values: - // "NETWORK_EGRESS_MODE_UNSPECIFIED" - Egress mode unspecified. - // "AUTO_IP" - Network egress through auto assigned IPs. - // "STATIC_IP" - Network egress through static IPs. - EgressMode string `json:"egressMode,omitempty"` - // ForceSendFields is a list of field names (e.g. "EgressIps") to +// PublishCustomConnectorVersionRequest: Request message for +// ConnectorsService.PublishCustomConnectorVersion +type PublishCustomConnectorVersionRequest struct { + // PartnerMetadata: Required. Partner metadata details for validating and + // publishing the custom connector as a partner connector version. + PartnerMetadata *PartnerMetadata `json:"partnerMetadata,omitempty"` + // ForceSendFields is a list of field names (e.g. "PartnerMetadata") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "EgressIps") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "PartnerMetadata") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s NetworkConfig) MarshalJSON() ([]byte, error) { - type NoMethod NetworkConfig +func (s PublishCustomConnectorVersionRequest) MarshalJSON() ([]byte, error) { + type NoMethod PublishCustomConnectorVersionRequest return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// NodeConfig: Node configuration for the connection. -type NodeConfig struct { - // MaxNodeCount: Maximum number of nodes in the runtime nodes. - MaxNodeCount int64 `json:"maxNodeCount,omitempty"` - // MinNodeCount: Minimum number of nodes in the runtime nodes. - MinNodeCount int64 `json:"minNodeCount,omitempty"` - // ForceSendFields is a list of field names (e.g. "MaxNodeCount") to - // unconditionally include in API requests. By default, fields with empty or +// PublishStatus: Publish status of a custom connector. +type PublishStatus struct { + // PublishState: Output only. Publish state of the custom connector. + // + // Possible values: + // "PUBLISH_STATE_UNSPECIFIED" - State Unspecified. + // "PUBLISHED" - Connector version has been published as partner connector + // version. + // "PUBLISH_IN_PROGRESS" - Connector version is in the process of being + // published as partner connector version. + // "UNPUBLISHED" - Connector version has been unpublished as partner + // connector version + PublishState string `json:"publishState,omitempty"` + // PublishTime: Output only. Publish time. + PublishTime string `json:"publishTime,omitempty"` + // PublishedAs: Output only. Partner connector name. Will be set on the custom + // connector. Format: providers/partner/connectors//versions/ + PublishedAs string `json:"publishedAs,omitempty"` + // PublishedSource: Output only. Custom connector name. Will be set on the + // partner connector. Format: providers/customconnectors/connectors//versions/ + PublishedSource string `json:"publishedSource,omitempty"` + // ForceSendFields is a list of field names (e.g. "PublishState") to + // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "MaxNodeCount") to include in API + // NullFields is a list of field names (e.g. "PublishState") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s NodeConfig) MarshalJSON() ([]byte, error) { - type NoMethod NodeConfig +func (s PublishStatus) MarshalJSON() ([]byte, error) { + type NoMethod PublishStatus return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// NodeSloMetadata: Node information for custom per-node SLO implementations. -// SSA does not support per-node SLO, but producers can populate per-node -// information in SloMetadata for custom precomputations. SSA Eligibility -// Exporter will emit per-node metric based on this information. -type NodeSloMetadata struct { - // Location: The location of the node, if different from instance location. - Location string `json:"location,omitempty"` - // NodeId: The id of the node. This should be equal to - // SaasInstanceNode.node_id. - NodeId string `json:"nodeId,omitempty"` - // PerSliEligibility: If present, this will override eligibility for the node - // coming from instance or exclusions for specified SLIs. - PerSliEligibility *PerSliSloEligibility `json:"perSliEligibility,omitempty"` - // ForceSendFields is a list of field names (e.g. "Location") to +// RefreshConnectionSchemaMetadataRequest: Request message for +// ConnectorsService.RefreshConnectionSchemaMetadata. +type RefreshConnectionSchemaMetadataRequest struct { +} + +// RegionalSettings: Regional Settings details. +type RegionalSettings struct { + // EncryptionConfig: Optional. Regional encryption config to hold CMEK details. + EncryptionConfig *EncryptionConfig `json:"encryptionConfig,omitempty"` + // Name: Output only. Resource name of the Connection. Format: + // projects/{project}/locations/{location}/regionalSettings + Name string `json:"name,omitempty"` + // NetworkConfig: Optional. Regional network config. + NetworkConfig *NetworkConfig `json:"networkConfig,omitempty"` + // Provisioned: Output only. Specifies whether the region is provisioned. + Provisioned bool `json:"provisioned,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "EncryptionConfig") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Location") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "EncryptionConfig") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s NodeSloMetadata) MarshalJSON() ([]byte, error) { - type NoMethod NodeSloMetadata +func (s RegionalSettings) MarshalJSON() ([]byte, error) { + type NoMethod RegionalSettings return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// NotificationParameter: Contains notification related data. -type NotificationParameter struct { - // Values: Optional. Array of string values. e.g. instance's replica - // information. - Values []string `json:"values,omitempty"` - // ForceSendFields is a list of field names (e.g. "Values") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See +// RepairEventingRequest: Request message for ConnectorsService.RepairEventing +type RepairEventingRequest struct { +} + +// Resource: Resource definition +type Resource struct { + // PathTemplate: Optional. Template to uniquely represent a Google Cloud + // resource in a format IAM expects This is a template that can have references + // to other values provided in the config variable template. + PathTemplate string `json:"pathTemplate,omitempty"` + // Type: Optional. Different types of resource supported. + // + // Possible values: + // "TYPE_UNSPECIFIED" - Value type is not specified. + // "GCP_PROJECT" - Google Cloud Project Resource. + // "GCP_RESOURCE" - Any Google Cloud Resource which is identified uniquely by + // IAM. + // "GCP_SECRETMANAGER_SECRET" - Google Cloud Secret Resource. + // "GCP_SECRETMANAGER_SECRET_VERSION" - Google Cloud Secret Version Resource. + Type string `json:"type,omitempty"` + // ForceSendFields is a list of field names (e.g. "PathTemplate") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Values") to include in API + // NullFields is a list of field names (e.g. "PathTemplate") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s NotificationParameter) MarshalJSON() ([]byte, error) { - type NoMethod NotificationParameter +func (s Resource) MarshalJSON() ([]byte, error) { + type NoMethod Resource return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OAuthTokenData: pass only at create and not update using updateMask Auth -// Code Data -type OAuthTokenData struct { - // AccessToken: Optional. Access token for the connection. - AccessToken string `json:"accessToken,omitempty"` - // CreateTime: Optional. Timestamp when the access token was created. - CreateTime string `json:"createTime,omitempty"` - // Expiry: Optional. Time in seconds when the access token expires. - Expiry string `json:"expiry,omitempty"` - // RefreshToken: Optional. Refresh token for the connection. - RefreshToken string `json:"refreshToken,omitempty"` - // ForceSendFields is a list of field names (e.g. "AccessToken") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See +// ResourceLimits: Resource limits defined for connection pods of a given +// connector type. +type ResourceLimits struct { + // Cpu: Output only. CPU limit. + Cpu string `json:"cpu,omitempty"` + // Memory: Output only. Memory limit. + Memory string `json:"memory,omitempty"` + // ForceSendFields is a list of field names (e.g. "Cpu") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AccessToken") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "Cpu") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s OAuthTokenData) MarshalJSON() ([]byte, error) { - type NoMethod OAuthTokenData +func (s ResourceLimits) MarshalJSON() ([]byte, error) { + type NoMethod ResourceLimits return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Oauth2AuthCodeFlow: Parameters to support Oauth 2.0 Auth Code Grant -// Authentication. See https://www.rfc-editor.org/rfc/rfc6749#section-1.3.1 for -// more details. -type Oauth2AuthCodeFlow struct { - // AuthCode: Authorization code to be exchanged for access and refresh tokens. - AuthCode string `json:"authCode,omitempty"` - // AuthUri: Auth URL for Authorization Code Flow - AuthUri string `json:"authUri,omitempty"` - // ClientId: Client ID for user-provided OAuth app. - ClientId string `json:"clientId,omitempty"` - // ClientSecret: Client secret for user-provided OAuth app. - ClientSecret *Secret `json:"clientSecret,omitempty"` - // EnablePkce: Whether to enable PKCE when the user performs the auth code - // flow. - EnablePkce bool `json:"enablePkce,omitempty"` - // PkceVerifier: PKCE verifier to be used during the auth code exchange. - PkceVerifier string `json:"pkceVerifier,omitempty"` - // RedirectUri: Redirect URI to be provided during the auth code exchange. - RedirectUri string `json:"redirectUri,omitempty"` - // Scopes: Scopes the connection will request when the user performs the auth - // code flow. - Scopes []string `json:"scopes,omitempty"` - // ForceSendFields is a list of field names (e.g. "AuthCode") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See +// ResourceRequests: Resource requests defined for connection pods of a given +// connector type. +type ResourceRequests struct { + // Cpu: Output only. CPU request. + Cpu string `json:"cpu,omitempty"` + // Memory: Output only. Memory request. + Memory string `json:"memory,omitempty"` + // ForceSendFields is a list of field names (e.g. "Cpu") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AuthCode") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "Cpu") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s Oauth2AuthCodeFlow) MarshalJSON() ([]byte, error) { - type NoMethod Oauth2AuthCodeFlow +func (s ResourceRequests) MarshalJSON() ([]byte, error) { + type NoMethod ResourceRequests return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Oauth2AuthCodeFlowGoogleManaged: Parameters to support Oauth 2.0 Auth Code -// Grant Authentication using Google Provided OAuth Client. See -// https://tools.ietf.org/html/rfc6749#section-1.3.1 for more details. -type Oauth2AuthCodeFlowGoogleManaged struct { - // AuthCode: Optional. Authorization code to be exchanged for access and - // refresh tokens. - AuthCode string `json:"authCode,omitempty"` - // RedirectUri: Optional. Redirect URI to be provided during the auth code - // exchange. - RedirectUri string `json:"redirectUri,omitempty"` - // Scopes: Required. Scopes the connection will request when the user performs - // the auth code flow. - Scopes []string `json:"scopes,omitempty"` - // ForceSendFields is a list of field names (e.g. "AuthCode") to +// ResultMetadata: Metadata of result field. +type ResultMetadata struct { + // DataType: The data type of the field. + // + // Possible values: + // "DATA_TYPE_UNSPECIFIED" - Data type is not specified. + // "DATA_TYPE_INT" - DEPRECATED! Use DATA_TYPE_INTEGER. + // "DATA_TYPE_SMALLINT" - Short integer(int16) data type. + // "DATA_TYPE_DOUBLE" - Double data type. + // "DATA_TYPE_DATE" - Date data type. + // "DATA_TYPE_DATETIME" - DEPRECATED! Use DATA_TYPE_TIMESTAMP. + // "DATA_TYPE_TIME" - Time data type. + // "DATA_TYPE_STRING" - DEPRECATED! Use DATA_TYPE_VARCHAR. + // "DATA_TYPE_LONG" - DEPRECATED! Use DATA_TYPE_BIGINT. + // "DATA_TYPE_BOOLEAN" - Boolean data type. + // "DATA_TYPE_DECIMAL" - Decimal data type. + // "DATA_TYPE_UUID" - DEPRECATED! Use DATA_TYPE_VARCHAR. + // "DATA_TYPE_BLOB" - UNSUPPORTED! Binary data type. + // "DATA_TYPE_BIT" - Bit data type. + // "DATA_TYPE_TINYINT" - Small integer(int8) data type. + // "DATA_TYPE_INTEGER" - Integer(int32) data type. + // "DATA_TYPE_BIGINT" - Long integer(int64) data type. + // "DATA_TYPE_FLOAT" - Float data type. + // "DATA_TYPE_REAL" - Real data type. + // "DATA_TYPE_NUMERIC" - Numeric data type. + // "DATA_TYPE_CHAR" - Char data type. + // "DATA_TYPE_VARCHAR" - Varchar data type. + // "DATA_TYPE_LONGVARCHAR" - Longvarchar data type. + // "DATA_TYPE_TIMESTAMP" - Timestamp data type. + // "DATA_TYPE_NCHAR" - Nchar data type. + // "DATA_TYPE_NVARCHAR" - Nvarchar data type. + // "DATA_TYPE_LONGNVARCHAR" - Longnvarchar data type. + // "DATA_TYPE_NULL" - Null data type. + // "DATA_TYPE_OTHER" - UNSUPPORTED! Binary data type. + // "DATA_TYPE_JAVA_OBJECT" - UNSUPPORTED! Binary data type. + // "DATA_TYPE_DISTINCT" - UNSUPPORTED! Binary data type. + // "DATA_TYPE_STRUCT" - UNSUPPORTED! Binary data type. + // "DATA_TYPE_ARRAY" - UNSUPPORTED! Binary data type. + // "DATA_TYPE_CLOB" - UNSUPPORTED! Binary data type. + // "DATA_TYPE_REF" - UNSUPPORTED! Binary data type. + // "DATA_TYPE_DATALINK" - UNSUPPORTED! Binary data type. + // "DATA_TYPE_ROWID" - UNSUPPORTED! Row id data type. + // "DATA_TYPE_BINARY" - UNSUPPORTED! Binary data type. + // "DATA_TYPE_VARBINARY" - UNSUPPORTED! Variable binary data type. + // "DATA_TYPE_LONGVARBINARY" - UNSUPPORTED! Long variable binary data type. + // "DATA_TYPE_NCLOB" - UNSUPPORTED! NCLOB data type. + // "DATA_TYPE_SQLXML" - UNSUPPORTED! SQL XML data type is not supported. + // "DATA_TYPE_REF_CURSOR" - UNSUPPORTED! Cursor reference type is not + // supported. + // "DATA_TYPE_TIME_WITH_TIMEZONE" - UNSUPPORTED! Use TIME or TIMESTAMP + // instead. + // "DATA_TYPE_TIMESTAMP_WITH_TIMEZONE" - UNSUPPORTED! Use TIMESTAMP instead. + DataType string `json:"dataType,omitempty"` + // DefaultValue: The following field specifies the default value of the + // Parameter provided by the external system if a value is not provided. + DefaultValue interface{} `json:"defaultValue,omitempty"` + // Description: A brief description of the field. + Description string `json:"description,omitempty"` + // Field: Name of the result field. + Field string `json:"field,omitempty"` + // JsonSchema: JsonSchema representation of this action's result + JsonSchema *JsonSchema `json:"jsonSchema,omitempty"` + // Nullable: Specifies whether a null value is allowed. + Nullable bool `json:"nullable,omitempty"` + // ForceSendFields is a list of field names (e.g. "DataType") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AuthCode") to include in API + // NullFields is a list of field names (e.g. "DataType") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s Oauth2AuthCodeFlowGoogleManaged) MarshalJSON() ([]byte, error) { - type NoMethod Oauth2AuthCodeFlowGoogleManaged +func (s ResultMetadata) MarshalJSON() ([]byte, error) { + type NoMethod ResultMetadata return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Oauth2ClientCredentials: Parameters to support Oauth 2.0 Client Credentials -// Grant Authentication. See https://tools.ietf.org/html/rfc6749#section-1.3.4 -// for more details. -type Oauth2ClientCredentials struct { - // ClientId: The client identifier. - ClientId string `json:"clientId,omitempty"` - // ClientSecret: Secret version reference containing the client secret. - ClientSecret *Secret `json:"clientSecret,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClientId") to +// RetryEventSubscriptionRequest: Request message for +// ConnectorsService.RefreshEventSubscription +type RetryEventSubscriptionRequest struct { +} + +// RoleGrant: This configuration defines all the Cloud IAM roles that needs to +// be granted to a particular Google Cloud resource for the selected principal +// like service account. These configurations will let UI display to customers +// what IAM roles need to be granted by them. Or these configurations can be +// used by the UI to render a 'grant' button to do the same on behalf of the +// user. +type RoleGrant struct { + // HelperTextTemplate: Optional. Template that UI can use to provide helper + // text to customers. + HelperTextTemplate string `json:"helperTextTemplate,omitempty"` + // Principal: Optional. Principal/Identity for whom the role need to assigned. + // + // Possible values: + // "PRINCIPAL_UNSPECIFIED" - Value type is not specified. + // "CONNECTOR_SA" - Service Account used for Connector workload identity This + // is either the default service account if unspecified or Service Account + // provided by Customers through BYOSA. + Principal string `json:"principal,omitempty"` + // Resource: Optional. Resource on which the roles needs to be granted for the + // principal. + Resource *Resource `json:"resource,omitempty"` + // Roles: Optional. List of roles that need to be granted. + Roles []string `json:"roles,omitempty"` + // ForceSendFields is a list of field names (e.g. "HelperTextTemplate") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ClientId") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "HelperTextTemplate") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s Oauth2ClientCredentials) MarshalJSON() ([]byte, error) { - type NoMethod Oauth2ClientCredentials +func (s RoleGrant) MarshalJSON() ([]byte, error) { + type NoMethod RoleGrant return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Oauth2JwtBearer: Parameters to support JSON Web Token (JWT) Profile for -// Oauth 2.0 Authorization Grant based authentication. See -// https://tools.ietf.org/html/rfc7523 for more details. -type Oauth2JwtBearer struct { - // ClientKey: Secret version reference containing a PKCS#8 PEM-encoded private - // key associated with the Client Certificate. This private key will be used to - // sign JWTs used for the jwt-bearer authorization grant. Specified in the form - // as: `projects/*/secrets/*/versions/*`. - ClientKey *Secret `json:"clientKey,omitempty"` - // JwtClaims: JwtClaims providers fields to generate the token. - JwtClaims *JwtClaims `json:"jwtClaims,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClientKey") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See +// RuntimeActionSchema: Schema of a runtime action. +type RuntimeActionSchema struct { + // Action: Output only. Name of the action. + Action string `json:"action,omitempty"` + // Description: Output only. Brief Description of action + Description string `json:"description,omitempty"` + // DisplayName: Output only. Display Name of action to be shown on client side + DisplayName string `json:"displayName,omitempty"` + // InputJsonSchema: Output only. JsonSchema representation of this action's + // input metadata + InputJsonSchema *JsonSchema `json:"inputJsonSchema,omitempty"` + // InputParameters: Output only. List of input parameter metadata for the + // action. + InputParameters []*InputParameter `json:"inputParameters,omitempty"` + // InputSchemaAsString: Output only. Input schema as string. + InputSchemaAsString string `json:"inputSchemaAsString,omitempty"` + // ResultJsonSchema: Output only. JsonSchema representation of this action's + // result metadata + ResultJsonSchema *JsonSchema `json:"resultJsonSchema,omitempty"` + // ResultMetadata: Output only. List of result field metadata. + ResultMetadata []*ResultMetadata `json:"resultMetadata,omitempty"` + // ResultSchemaAsString: Output only. Result schema as string. + ResultSchemaAsString string `json:"resultSchemaAsString,omitempty"` + // ForceSendFields is a list of field names (e.g. "Action") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ClientKey") to include in API + // NullFields is a list of field names (e.g. "Action") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s Oauth2JwtBearer) MarshalJSON() ([]byte, error) { - type NoMethod Oauth2JwtBearer +func (s RuntimeActionSchema) MarshalJSON() ([]byte, error) { + type NoMethod RuntimeActionSchema 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 { - // Done: If the value is `false`, it means the operation is still in progress. - // If `true`, the operation is completed, and either `error` or `response` is - // available. - Done bool `json:"done,omitempty"` - // Error: The error result of the operation in case of failure or cancellation. - Error *Status `json:"error,omitempty"` - // Metadata: Service-specific metadata associated with the operation. It - // typically contains progress information and common metadata such as create - // time. Some services might not provide such metadata. Any method that returns - // a long-running operation should document the metadata type, if any. - Metadata googleapi.RawMessage `json:"metadata,omitempty"` - // Name: The server-assigned name, which is only unique within the same service - // that originally returns it. If you use the default HTTP mapping, the `name` - // should be a resource name ending with `operations/{unique_id}`. +// RuntimeConfig: RuntimeConfig is the singleton resource of each location. It +// includes generic resource configs consumed by control plane and runtime +// plane like: pub/sub topic/subscription resource name, Cloud Storage location +// storing schema etc. +type RuntimeConfig struct { + // ConndSubscription: Output only. Pub/Sub subscription for connd to receive + // message. E.g. projects/{project-id}/subscriptions/{topic-id} + ConndSubscription string `json:"conndSubscription,omitempty"` + // ConndTopic: Output only. Pub/Sub topic for connd to send message. E.g. + // projects/{project-id}/topics/{topic-id} + ConndTopic string `json:"conndTopic,omitempty"` + // ControlPlaneSubscription: Output only. Pub/Sub subscription for control + // plane to receive message. E.g. + // projects/{project-id}/subscriptions/{topic-id} + ControlPlaneSubscription string `json:"controlPlaneSubscription,omitempty"` + // ControlPlaneTopic: Output only. Pub/Sub topic for control plne to send + // message. communication. E.g. projects/{project-id}/topics/{topic-id} + ControlPlaneTopic string `json:"controlPlaneTopic,omitempty"` + // LocationId: Output only. location_id of the runtime location. E.g. + // "us-west1". + LocationId string `json:"locationId,omitempty"` + // Name: Output only. Name of the runtimeConfig resource. Format: + // projects/{project}/locations/{location}/runtimeConfig Name string `json:"name,omitempty"` - // Response: The normal, successful response of the operation. If the original - // method returns no data on success, such as `Delete`, the response is - // `google.protobuf.Empty`. If the original method is standard - // `Get`/`Create`/`Update`, the response should be the resource. For other - // methods, the response should have the type `XxxResponse`, where `Xxx` is the - // original method name. For example, if the original method name is - // `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. - Response googleapi.RawMessage `json:"response,omitempty"` + // RuntimeEndpoint: Output only. The endpoint of the connectors runtime + // ingress. + RuntimeEndpoint string `json:"runtimeEndpoint,omitempty"` + // SchemaGcsBucket: Output only. The Cloud Storage bucket that stores + // connector's schema reports. + SchemaGcsBucket string `json:"schemaGcsBucket,omitempty"` + // ServiceDirectory: Output only. The name of the Service Directory service + // name. + ServiceDirectory string `json:"serviceDirectory,omitempty"` + // State: Output only. The state of the location. + // + // Possible values: + // "STATE_UNSPECIFIED" - STATE_UNSPECIFIED. + // "INACTIVE" - INACTIVE. + // "ACTIVATING" - ACTIVATING. + // "ACTIVE" - ACTIVE. + // "CREATING" - CREATING. + // "DELETING" - DELETING. + // "UPDATING" - UPDATING. + State string `json:"state,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Done") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See + // ForceSendFields is a list of field names (e.g. "ConndSubscription") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Done") to include in API requests - // with the JSON null value. By default, fields with empty values are omitted - // from API requests. See + // NullFields is a list of field names (e.g. "ConndSubscription") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s Operation) MarshalJSON() ([]byte, error) { - type NoMethod Operation +func (s RuntimeConfig) MarshalJSON() ([]byte, error) { + type NoMethod RuntimeConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// OperationMetadata: Represents the metadata of the long-running operation. -type OperationMetadata struct { - // ApiVersion: Output only. API version used to start the operation. - ApiVersion string `json:"apiVersion,omitempty"` - // CreateTime: Output only. The time the operation was created. - CreateTime string `json:"createTime,omitempty"` - // EndTime: Output only. The time the operation finished running. - 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`. - RequestedCancellation bool `json:"requestedCancellation,omitempty"` - // StatusMessage: Output only. Human-readable status of the operation, if any. - StatusMessage string `json:"statusMessage,omitempty"` - // Target: Output only. Server-defined resource path for the target of the - // operation. - Target string `json:"target,omitempty"` - // Verb: Output only. Name of the verb executed by the operation. - Verb string `json:"verb,omitempty"` - // ForceSendFields is a list of field names (e.g. "ApiVersion") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See +// RuntimeEntitySchema: Schema of a runtime entity. +type RuntimeEntitySchema struct { + // Entity: Output only. Name of the entity. + Entity string `json:"entity,omitempty"` + // Fields: Output only. List of fields in the entity. + Fields []*Field `json:"fields,omitempty"` + // JsonSchema: Output only. JsonSchema representation of this entity's metadata + JsonSchema *JsonSchema `json:"jsonSchema,omitempty"` + // Operations: List of operations supported by this entity + // + // Possible values: + // "OPERATION_UNSPECIFIED" - Operation unspecified. + // "LIST" - This operation means entity type supports LIST entities. + // "GET" - This operation means entity type supports GET entity. + // "CREATE" - This operation means entity type supports CREATE entity. + // "UPDATE" - This operation means entity type supports UPDATE entity. + // "DELETE" - This operation means entity type supports DELETE entity. + Operations []string `json:"operations,omitempty"` + // ForceSendFields is a list of field names (e.g. "Entity") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ApiVersion") to include in API + // NullFields is a list of field names (e.g. "Entity") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s OperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod OperationMetadata +func (s RuntimeEntitySchema) MarshalJSON() ([]byte, error) { + type NoMethod RuntimeEntitySchema return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PartnerMetadata: Partner metadata details. This will be populated when -// publishing the custom connector as a partner connector version. On -// publishing, parntner connector version will be created using the fields in -// PartnerMetadata. -type PartnerMetadata struct { - // AcceptGcpTos: Required. Whether the user has accepted the Google Cloud - // Platform Terms of Service (https://cloud.google.com/terms/) and the Google - // Cloud Marketplace Terms of Service - // (https://cloud.google.com/terms/marketplace/launcher?hl=en). - AcceptGcpTos bool `json:"acceptGcpTos,omitempty"` - // AdditionalComments: Optional. Additional comments for the submission. - AdditionalComments string `json:"additionalComments,omitempty"` - // ConfirmPartnerRequirements: Required. Confirmation that connector meets all - // applicable requirements mentioned in the Partner Connector Publishing - // requirements list and Partner onboardiong requirements list - // (https://cloud.google.com/marketplace/docs/partners/get-started#requirements). - ConfirmPartnerRequirements bool `json:"confirmPartnerRequirements,omitempty"` - // DemoUri: Required. Public URL for the demo video. - DemoUri string `json:"demoUri,omitempty"` - // HasDynamicSpecUri: Output only. Has dynamic open api spec uri. - HasDynamicSpecUri bool `json:"hasDynamicSpecUri,omitempty"` - // IntegrationTemplates: Required. Integration example templates for the custom - // connector. - IntegrationTemplates string `json:"integrationTemplates,omitempty"` - // LocalSpecPath: Output only. Local spec path. Required if - // has_dynamic_spec_uri is true. - LocalSpecPath string `json:"localSpecPath,omitempty"` - // MarketplaceProduct: Optional. Marketplace product name. - MarketplaceProduct string `json:"marketplaceProduct,omitempty"` - // MarketplaceProductId: Required. Marketplace product ID. - MarketplaceProductId string `json:"marketplaceProductId,omitempty"` - // MarketplaceProductProjectId: Optional. Marketplace product project ID. - MarketplaceProductProjectId string `json:"marketplaceProductProjectId,omitempty"` - // MarketplaceProductUri: Optional. Marketplace product URL. - MarketplaceProductUri string `json:"marketplaceProductUri,omitempty"` - // Partner: Required. Partner name. - Partner string `json:"partner,omitempty"` - // PartnerConnectorDisplayName: Required. Partner connector display name. - PartnerConnectorDisplayName string `json:"partnerConnectorDisplayName,omitempty"` - // PublishRequestTime: Output only. Publish request time. - PublishRequestTime string `json:"publishRequestTime,omitempty"` - // TargetApplication: Required. Target application for which partner connector - // is built. - TargetApplication string `json:"targetApplication,omitempty"` - // TargetCustomerSegment: Required. Target customer segment for the partner - // connector. - TargetCustomerSegment string `json:"targetCustomerSegment,omitempty"` - // UseCases: Required. Details about partner connector use cases. - UseCases string `json:"useCases,omitempty"` - // ForceSendFields is a list of field names (e.g. "AcceptGcpTos") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See +// Schedule: Configure the schedule. +type Schedule struct { + // Day: Allows to define schedule that runs specified day of the week. + // + // Possible values: + // "DAY_OF_WEEK_UNSPECIFIED" - The day of the week is unspecified. + // "MONDAY" - Monday + // "TUESDAY" - Tuesday + // "WEDNESDAY" - Wednesday + // "THURSDAY" - Thursday + // "FRIDAY" - Friday + // "SATURDAY" - Saturday + // "SUNDAY" - Sunday + Day string `json:"day,omitempty"` + // Duration: Output only. Duration of the time window, set by service producer. + Duration string `json:"duration,omitempty"` + // StartTime: Time within the window to start the operations. + StartTime *TimeOfDay `json:"startTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "Day") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AcceptGcpTos") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "Day") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s PartnerMetadata) MarshalJSON() ([]byte, error) { - type NoMethod PartnerMetadata +func (s Schedule) MarshalJSON() ([]byte, error) { + type NoMethod Schedule return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PerSliSloEligibility: PerSliSloEligibility is a mapping from an SLI name to -// eligibility. -type PerSliSloEligibility struct { - // Eligibilities: An entry in the eligibilities map specifies an eligibility - // for a particular SLI for the given instance. The SLI key in the name must be - // a valid SLI name specified in the Eligibility Exporter binary flags - // otherwise an error will be emitted by Eligibility Exporter and the oncaller - // will be alerted. If an SLI has been defined in the binary flags but the - // eligibilities map does not contain it, the corresponding SLI time series - // will not be emitted by the Eligibility Exporter. This ensures a smooth - // rollout and compatibility between the data produced by different versions of - // the Eligibility Exporters. If eligibilities map contains a key for an SLI - // which has not been declared in the binary flags, there will be an error - // message emitted in the Eligibility Exporter log and the metric for the SLI - // in question will not be emitted. - Eligibilities map[string]SloEligibility `json:"eligibilities,omitempty"` - // ForceSendFields is a list of field names (e.g. "Eligibilities") to +// SchemaRefreshConfig: Config for connection schema refresh +type SchemaRefreshConfig struct { + // UseActionDisplayNames: Whether to use displayName for actions in UI. + UseActionDisplayNames bool `json:"useActionDisplayNames,omitempty"` + // UseSynchronousSchemaRefresh: Whether to use synchronous schema refresh. + UseSynchronousSchemaRefresh bool `json:"useSynchronousSchemaRefresh,omitempty"` + // ForceSendFields is a list of field names (e.g. "UseActionDisplayNames") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Eligibilities") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "UseActionDisplayNames") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s PerSliSloEligibility) MarshalJSON() ([]byte, error) { - type NoMethod PerSliSloEligibility +func (s SchemaRefreshConfig) MarshalJSON() ([]byte, error) { + type NoMethod SchemaRefreshConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Policy: 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 Policy struct { - // AuditConfigs: Specifies cloud audit logging configuration for this policy. - AuditConfigs []*AuditConfig `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 []*Binding `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 +// SearchConnectionInstance: SearchConnectionInstance represents an instance of +// connector with specific fields +type SearchConnectionInstance struct { + // ActionSchema: Output only. Schema of a runtime action. + ActionSchema *RuntimeActionSchema `json:"actionSchema,omitempty"` + // Connection: Output only. Connection details + Connection *Connection `json:"connection,omitempty"` + // EntitySchema: Output only. Schema of a runtime entity. + EntitySchema *RuntimeEntitySchema `json:"entitySchema,omitempty"` + // ForceSendFields is a list of field names (e.g. "ActionSchema") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://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 + // NullFields is a list of field names (e.g. "ActionSchema") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s Policy) MarshalJSON() ([]byte, error) { - type NoMethod Policy +func (s SearchConnectionInstance) MarshalJSON() ([]byte, error) { + type NoMethod SearchConnectionInstance return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Provider: Provider indicates the owner who provides the connectors. -type Provider struct { - // CreateTime: Output only. Created time. - CreateTime string `json:"createTime,omitempty"` - // Description: Output only. Description of the resource. - Description string `json:"description,omitempty"` - // DisplayName: Output only. Display name. - DisplayName string `json:"displayName,omitempty"` - // DocumentationUri: Output only. Link to documentation page. - DocumentationUri string `json:"documentationUri,omitempty"` - // ExternalUri: Output only. Link to external page. - ExternalUri string `json:"externalUri,omitempty"` - // Labels: Output only. Resource labels to represent user-provided metadata. - // Refer to cloud documentation on labels for more details. - // https://cloud.google.com/compute/docs/labeling-resources - Labels map[string]string `json:"labels,omitempty"` - // LaunchStage: Output only. Flag to mark the version indicating the launch - // stage. - // - // Possible values: - // "LAUNCH_STAGE_UNSPECIFIED" - LAUNCH_STAGE_UNSPECIFIED. - // "PREVIEW" - PREVIEW. - // "GA" - GA. - // "DEPRECATED" - DEPRECATED. - // "TEST" - TEST. - // "PRIVATE_PREVIEW" - PRIVATE_PREVIEW. - LaunchStage string `json:"launchStage,omitempty"` - // Name: Output only. Resource name of the Provider. Format: - // projects/{project}/locations/{location}/providers/{provider} Only global - // location is supported for Provider resource. - Name string `json:"name,omitempty"` - // UpdateTime: Output only. Updated time. - UpdateTime string `json:"updateTime,omitempty"` - // WebAssetsLocation: Output only. Cloud storage location of icons etc consumed - // by UI. - WebAssetsLocation string `json:"webAssetsLocation,omitempty"` +// SearchConnectionsResponse: Response message for +// Connectors.SearchConnections. +type SearchConnectionsResponse struct { + // Connections: A list of connectors. + Connections []*SearchConnectionInstance `json:"connections,omitempty"` + // NextPageToken: Optional. page_token + 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. "CreateTime") to + // ForceSendFields is a list of field names (e.g. "Connections") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CreateTime") to include in API + // NullFields is a list of field names (e.g. "Connections") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s Provider) MarshalJSON() ([]byte, error) { - type NoMethod Provider +func (s SearchConnectionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod SearchConnectionsResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ProvisionedResource: Describes provisioned dataplane resources. -type ProvisionedResource struct { - // ResourceType: Type of the resource. This can be either a GCP resource or a - // custom one (e.g. another cloud provider's VM). For GCP compute resources use - // singular form of the names listed in GCP compute API documentation - // (https://cloud.google.com/compute/docs/reference/rest/v1/), prefixed with - // 'compute-', for example: 'compute-instance', 'compute-disk', - // 'compute-autoscaler'. - ResourceType string `json:"resourceType,omitempty"` - // ResourceUrl: URL identifying the resource, e.g. - // "https://www.googleapis.com/compute/v1/projects/...)". - ResourceUrl string `json:"resourceUrl,omitempty"` - // ForceSendFields is a list of field names (e.g. "ResourceType") to +// Secret: Secret provides a reference to entries in Secret Manager. +type Secret struct { + // SecretVersion: The resource name of the secret version in the format, format + // as: `projects/*/secrets/*/versions/*`. + SecretVersion string `json:"secretVersion,omitempty"` + // ForceSendFields is a list of field names (e.g. "SecretVersion") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ResourceType") to include in API + // NullFields is a list of field names (e.g. "SecretVersion") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ProvisionedResource) MarshalJSON() ([]byte, error) { - type NoMethod ProvisionedResource +func (s Secret) MarshalJSON() ([]byte, error) { + type NoMethod Secret return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PubSub: Pub/Sub message includes details of the Destination Pub/Sub topic. -type PubSub struct { - // Attributes: Optional. Pub/Sub message attributes to be added to the Pub/Sub - // message. - Attributes map[string]string `json:"attributes,omitempty"` - // ConfigVariables: Optional. Configuration for configuring the trigger - ConfigVariables []*ConfigVariable `json:"configVariables,omitempty"` - // ProjectId: Required. The project id which has the Pub/Sub topic. - ProjectId string `json:"projectId,omitempty"` - // TopicId: Required. The topic id of the Pub/Sub topic. - TopicId string `json:"topicId,omitempty"` - // ForceSendFields is a list of field names (e.g. "Attributes") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See +// SetIamPolicyRequest: Request message for `SetIamPolicy` method. +type SetIamPolicyRequest 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 *Policy `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. "Attributes") to include in API + // 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 PubSub) MarshalJSON() ([]byte, error) { - type NoMethod PubSub +func (s SetIamPolicyRequest) MarshalJSON() ([]byte, error) { + type NoMethod SetIamPolicyRequest return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PublishCustomConnectorVersionRequest: Request message for -// ConnectorsService.PublishCustomConnectorVersion -type PublishCustomConnectorVersionRequest struct { - // PartnerMetadata: Required. Partner metadata details for validating and - // publishing the custom connector as a partner connector version. - PartnerMetadata *PartnerMetadata `json:"partnerMetadata,omitempty"` - // ForceSendFields is a list of field names (e.g. "PartnerMetadata") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See +// Settings: Global Settings details. +type Settings struct { + // Name: Output only. Resource name of the Connection. Format: + // projects/{project}/locations/global/settings} + Name string `json:"name,omitempty"` + // Payg: Output only. Flag indicates if user is in PayG model + Payg bool `json:"payg,omitempty"` + // TenantProjectId: Output only. Tenant project id of the consumer project. + TenantProjectId string `json:"tenantProjectId,omitempty"` + // Vpcsc: Optional. Flag indicates whether vpc-sc is enabled. + Vpcsc bool `json:"vpcsc,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. "PartnerMetadata") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See + // NullFields is a list of field names (e.g. "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 PublishCustomConnectorVersionRequest) MarshalJSON() ([]byte, error) { - type NoMethod PublishCustomConnectorVersionRequest +func (s Settings) MarshalJSON() ([]byte, error) { + type NoMethod Settings return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PublishStatus: Publish status of a custom connector. -type PublishStatus struct { - // PublishState: Output only. Publish state of the custom connector. - // - // Possible values: - // "PUBLISH_STATE_UNSPECIFIED" - State Unspecified. - // "PUBLISHED" - Connector version has been published as partner connector - // version. - // "PUBLISH_IN_PROGRESS" - Connector version is in the process of being - // published as partner connector version. - // "UNPUBLISHED" - Connector version has been unpublished as partner - // connector version - PublishState string `json:"publishState,omitempty"` - // PublishTime: Output only. Publish time. - PublishTime string `json:"publishTime,omitempty"` - // PublishedAs: Output only. Partner connector name. Will be set on the custom - // connector. Format: providers/partner/connectors//versions/ - PublishedAs string `json:"publishedAs,omitempty"` - // PublishedSource: Output only. Custom connector name. Will be set on the - // partner connector. Format: providers/customconnectors/connectors//versions/ - PublishedSource string `json:"publishedSource,omitempty"` - // ForceSendFields is a list of field names (e.g. "PublishState") to +// SloEligibility: SloEligibility is a tuple containing eligibility value: true +// if an instance is eligible for SLO calculation or false if it should be +// excluded from all SLO-related calculations along with a user-defined reason. +type SloEligibility struct { + // Eligible: Whether an instance is eligible or ineligible. + Eligible bool `json:"eligible,omitempty"` + // Reason: User-defined reason for the current value of instance eligibility. + // Usually, this can be directly mapped to the internal state. An empty reason + // is allowed. + Reason string `json:"reason,omitempty"` + // ForceSendFields is a list of field names (e.g. "Eligible") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "PublishState") to include in API + // NullFields is a list of field names (e.g. "Eligible") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s PublishStatus) MarshalJSON() ([]byte, error) { - type NoMethod PublishStatus +func (s SloEligibility) MarshalJSON() ([]byte, error) { + type NoMethod SloEligibility return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RefreshConnectionSchemaMetadataRequest: Request message for -// ConnectorsService.RefreshConnectionSchemaMetadata. -type RefreshConnectionSchemaMetadataRequest struct { -} - -// RegionalSettings: Regional Settings details. -type RegionalSettings struct { - // EncryptionConfig: Optional. Regional encryption config to hold CMEK details. - EncryptionConfig *EncryptionConfig `json:"encryptionConfig,omitempty"` - // Name: Output only. Resource name of the Connection. Format: - // projects/{project}/locations/{location}/regionalSettings - Name string `json:"name,omitempty"` - // NetworkConfig: Optional. Regional network config. - NetworkConfig *NetworkConfig `json:"networkConfig,omitempty"` - // Provisioned: Output only. Specifies whether the region is provisioned. - Provisioned bool `json:"provisioned,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "EncryptionConfig") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See +// SloMetadata: SloMetadata contains resources required for proper SLO +// classification of the instance. +type SloMetadata struct { + // Nodes: Optional. List of nodes. Some producers need to use per-node metadata + // to calculate SLO. This field allows such producers to publish per-node SLO + // meta data, which will be consumed by SSA Eligibility Exporter and published + // in the form of per node metric to Monarch. + Nodes []*NodeSloMetadata `json:"nodes,omitempty"` + // PerSliEligibility: Optional. Multiple per-instance SLI eligibilities which + // apply for individual SLIs. + PerSliEligibility *PerSliSloEligibility `json:"perSliEligibility,omitempty"` + // Tier: Name of the SLO tier the Instance belongs to. This name will be + // expected to match the tiers specified in the service SLO configuration. + // Field is mandatory and must not be empty. + Tier string `json:"tier,omitempty"` + // ForceSendFields is a list of field names (e.g. "Nodes") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "EncryptionConfig") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See + // NullFields is a list of field names (e.g. "Nodes") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s RegionalSettings) MarshalJSON() ([]byte, error) { - type NoMethod RegionalSettings +func (s SloMetadata) MarshalJSON() ([]byte, error) { + type NoMethod SloMetadata return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RepairEventingRequest: Request message for ConnectorsService.RepairEventing -type RepairEventingRequest struct { -} - -// Resource: Resource definition -type Resource struct { - // PathTemplate: Optional. Template to uniquely represent a Google Cloud - // resource in a format IAM expects This is a template that can have references - // to other values provided in the config variable template. - PathTemplate string `json:"pathTemplate,omitempty"` - // Type: Optional. Different types of resource supported. +// Source: Source to extract the backend from. +type Source struct { + // FieldId: Field identifier. For example config variable name. + FieldId string `json:"fieldId,omitempty"` + // SourceType: Type of the source. // // Possible values: - // "TYPE_UNSPECIFIED" - Value type is not specified. - // "GCP_PROJECT" - Google Cloud Project Resource. - // "GCP_RESOURCE" - Any Google Cloud Resource which is identified uniquely by - // IAM. - // "GCP_SECRETMANAGER_SECRET" - Google Cloud Secret Resource. - // "GCP_SECRETMANAGER_SECRET_VERSION" - Google Cloud Secret Version Resource. - Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "PathTemplate") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See + // "SOURCE_TYPE_UNSPECIFIED" - Default SOURCE. + // "CONFIG_VARIABLE" - Config Variable source type. + SourceType string `json:"sourceType,omitempty"` + // ForceSendFields is a list of field names (e.g. "FieldId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "PathTemplate") to include in API + // NullFields is a list of field names (e.g. "FieldId") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s Resource) MarshalJSON() ([]byte, error) { - type NoMethod Resource +func (s Source) MarshalJSON() ([]byte, error) { + type NoMethod Source return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ResourceLimits: Resource limits defined for connection pods of a given -// connector type. -type ResourceLimits struct { - // Cpu: Output only. CPU limit. - Cpu string `json:"cpu,omitempty"` - // Memory: Output only. Memory limit. - Memory string `json:"memory,omitempty"` - // ForceSendFields is a list of field names (e.g. "Cpu") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See +// SshPublicKey: Parameters to support Ssh public key Authentication. +type SshPublicKey struct { + // CertType: Format of SSH Client cert. + CertType string `json:"certType,omitempty"` + // SshClientCert: SSH Client Cert. It should contain both public and private + // key. + SshClientCert *Secret `json:"sshClientCert,omitempty"` + // SshClientCertPass: Password (passphrase) for ssh client certificate if it + // has one. + SshClientCertPass *Secret `json:"sshClientCertPass,omitempty"` + // Username: The user account used to authenticate. + Username string `json:"username,omitempty"` + // ForceSendFields is a list of field names (e.g. "CertType") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Cpu") to include in API requests - // with the JSON null value. By default, fields with empty values are omitted - // from API requests. See + // NullFields is a list of field names (e.g. "CertType") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ResourceLimits) MarshalJSON() ([]byte, error) { - type NoMethod ResourceLimits +func (s SshPublicKey) MarshalJSON() ([]byte, error) { + type NoMethod SshPublicKey return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ResourceRequests: Resource requests defined for connection pods of a given -// connector type. -type ResourceRequests struct { - // Cpu: Output only. CPU request. - Cpu string `json:"cpu,omitempty"` - // Memory: Output only. Memory request. - Memory string `json:"memory,omitempty"` - // ForceSendFields is a list of field names (e.g. "Cpu") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Cpu") to include in API requests - // with the JSON null value. By default, fields with empty values are omitted - // from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s ResourceRequests) MarshalJSON() ([]byte, error) { - type NoMethod ResourceRequests - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// ResultMetadata: Metadata of result field. -type ResultMetadata struct { - // DataType: The data type of the field. +// SslConfig: SSL Configuration of a connection +type SslConfig struct { + // AdditionalVariables: Optional. Additional SSL related field values + AdditionalVariables []*ConfigVariable `json:"additionalVariables,omitempty"` + // ClientCertType: Optional. Type of Client Cert (PEM/JKS/.. etc.) // // Possible values: - // "DATA_TYPE_UNSPECIFIED" - Data type is not specified. - // "DATA_TYPE_INT" - DEPRECATED! Use DATA_TYPE_INTEGER. - // "DATA_TYPE_SMALLINT" - Short integer(int16) data type. - // "DATA_TYPE_DOUBLE" - Double data type. - // "DATA_TYPE_DATE" - Date data type. - // "DATA_TYPE_DATETIME" - DEPRECATED! Use DATA_TYPE_TIMESTAMP. - // "DATA_TYPE_TIME" - Time data type. - // "DATA_TYPE_STRING" - DEPRECATED! Use DATA_TYPE_VARCHAR. - // "DATA_TYPE_LONG" - DEPRECATED! Use DATA_TYPE_BIGINT. - // "DATA_TYPE_BOOLEAN" - Boolean data type. - // "DATA_TYPE_DECIMAL" - Decimal data type. - // "DATA_TYPE_UUID" - DEPRECATED! Use DATA_TYPE_VARCHAR. - // "DATA_TYPE_BLOB" - UNSUPPORTED! Binary data type. - // "DATA_TYPE_BIT" - Bit data type. - // "DATA_TYPE_TINYINT" - Small integer(int8) data type. - // "DATA_TYPE_INTEGER" - Integer(int32) data type. - // "DATA_TYPE_BIGINT" - Long integer(int64) data type. - // "DATA_TYPE_FLOAT" - Float data type. - // "DATA_TYPE_REAL" - Real data type. - // "DATA_TYPE_NUMERIC" - Numeric data type. - // "DATA_TYPE_CHAR" - Char data type. - // "DATA_TYPE_VARCHAR" - Varchar data type. - // "DATA_TYPE_LONGVARCHAR" - Longvarchar data type. - // "DATA_TYPE_TIMESTAMP" - Timestamp data type. - // "DATA_TYPE_NCHAR" - Nchar data type. - // "DATA_TYPE_NVARCHAR" - Nvarchar data type. - // "DATA_TYPE_LONGNVARCHAR" - Longnvarchar data type. - // "DATA_TYPE_NULL" - Null data type. - // "DATA_TYPE_OTHER" - UNSUPPORTED! Binary data type. - // "DATA_TYPE_JAVA_OBJECT" - UNSUPPORTED! Binary data type. - // "DATA_TYPE_DISTINCT" - UNSUPPORTED! Binary data type. - // "DATA_TYPE_STRUCT" - UNSUPPORTED! Binary data type. - // "DATA_TYPE_ARRAY" - UNSUPPORTED! Binary data type. - // "DATA_TYPE_CLOB" - UNSUPPORTED! Binary data type. - // "DATA_TYPE_REF" - UNSUPPORTED! Binary data type. - // "DATA_TYPE_DATALINK" - UNSUPPORTED! Binary data type. - // "DATA_TYPE_ROWID" - UNSUPPORTED! Row id data type. - // "DATA_TYPE_BINARY" - UNSUPPORTED! Binary data type. - // "DATA_TYPE_VARBINARY" - UNSUPPORTED! Variable binary data type. - // "DATA_TYPE_LONGVARBINARY" - UNSUPPORTED! Long variable binary data type. - // "DATA_TYPE_NCLOB" - UNSUPPORTED! NCLOB data type. - // "DATA_TYPE_SQLXML" - UNSUPPORTED! SQL XML data type is not supported. - // "DATA_TYPE_REF_CURSOR" - UNSUPPORTED! Cursor reference type is not - // supported. - // "DATA_TYPE_TIME_WITH_TIMEZONE" - UNSUPPORTED! Use TIME or TIMESTAMP - // instead. - // "DATA_TYPE_TIMESTAMP_WITH_TIMEZONE" - UNSUPPORTED! Use TIMESTAMP instead. - DataType string `json:"dataType,omitempty"` - // DefaultValue: The following field specifies the default value of the - // Parameter provided by the external system if a value is not provided. - DefaultValue interface{} `json:"defaultValue,omitempty"` - // Description: A brief description of the field. - Description string `json:"description,omitempty"` - // Field: Name of the result field. - Field string `json:"field,omitempty"` - // JsonSchema: JsonSchema representation of this action's result - JsonSchema *JsonSchema `json:"jsonSchema,omitempty"` - // Nullable: Specifies whether a null value is allowed. - Nullable bool `json:"nullable,omitempty"` - // ForceSendFields is a list of field names (e.g. "DataType") to + // "CERT_TYPE_UNSPECIFIED" - Cert type unspecified. + // "PEM" - Privacy Enhanced Mail (PEM) Type + ClientCertType string `json:"clientCertType,omitempty"` + // ClientCertificate: Optional. Client Certificate + ClientCertificate *Secret `json:"clientCertificate,omitempty"` + // ClientPrivateKey: Optional. Client Private Key + ClientPrivateKey *Secret `json:"clientPrivateKey,omitempty"` + // ClientPrivateKeyPass: Optional. Secret containing the passphrase protecting + // the Client Private Key + ClientPrivateKeyPass *Secret `json:"clientPrivateKeyPass,omitempty"` + // PrivateServerCertificate: Optional. Private Server Certificate. Needs to be + // specified if trust model is `PRIVATE`. + PrivateServerCertificate *Secret `json:"privateServerCertificate,omitempty"` + // ServerCertType: Optional. Type of Server Cert (PEM/JKS/.. etc.) + // + // Possible values: + // "CERT_TYPE_UNSPECIFIED" - Cert type unspecified. + // "PEM" - Privacy Enhanced Mail (PEM) Type + ServerCertType string `json:"serverCertType,omitempty"` + // TrustModel: Optional. Trust Model of the SSL connection + // + // Possible values: + // "PUBLIC" - Public Trust Model. Takes the Default Java trust store. + // "PRIVATE" - Private Trust Model. Takes custom/private trust store. + // "INSECURE" - Insecure Trust Model. Accept all certificates. + TrustModel string `json:"trustModel,omitempty"` + // Type: Optional. Controls the ssl type for the given connector version. + // + // Possible values: + // "SSL_TYPE_UNSPECIFIED" - No SSL configuration required. + // "TLS" - TLS Handshake + // "MTLS" - mutual TLS (MTLS) Handshake + Type string `json:"type,omitempty"` + // UseSsl: Optional. Bool for enabling SSL + UseSsl bool `json:"useSsl,omitempty"` + // ForceSendFields is a list of field names (e.g. "AdditionalVariables") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DataType") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "AdditionalVariables") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s ResultMetadata) MarshalJSON() ([]byte, error) { - type NoMethod ResultMetadata +func (s SslConfig) MarshalJSON() ([]byte, error) { + type NoMethod SslConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RetryEventSubscriptionRequest: Request message for -// ConnectorsService.RefreshEventSubscription -type RetryEventSubscriptionRequest struct { -} - -// RoleGrant: This configuration defines all the Cloud IAM roles that needs to -// be granted to a particular Google Cloud resource for the selected principal -// like service account. These configurations will let UI display to customers -// what IAM roles need to be granted by them. Or these configurations can be -// used by the UI to render a 'grant' button to do the same on behalf of the -// user. -type RoleGrant struct { - // HelperTextTemplate: Optional. Template that UI can use to provide helper - // text to customers. - HelperTextTemplate string `json:"helperTextTemplate,omitempty"` - // Principal: Optional. Principal/Identity for whom the role need to assigned. +// SslConfigTemplate: Ssl config details of a connector version +type SslConfigTemplate struct { + // AdditionalVariables: Any additional fields that need to be rendered + AdditionalVariables []*ConfigVariableTemplate `json:"additionalVariables,omitempty"` + // ClientCertType: List of supported Client Cert Types // // Possible values: - // "PRINCIPAL_UNSPECIFIED" - Value type is not specified. - // "CONNECTOR_SA" - Service Account used for Connector workload identity This - // is either the default service account if unspecified or Service Account - // provided by Customers through BYOSA. - Principal string `json:"principal,omitempty"` - // Resource: Optional. Resource on which the roles needs to be granted for the - // principal. - Resource *Resource `json:"resource,omitempty"` - // Roles: Optional. List of roles that need to be granted. - Roles []string `json:"roles,omitempty"` - // ForceSendFields is a list of field names (e.g. "HelperTextTemplate") to + // "CERT_TYPE_UNSPECIFIED" - Cert type unspecified. + // "PEM" - Privacy Enhanced Mail (PEM) Type + ClientCertType []string `json:"clientCertType,omitempty"` + // IsTlsMandatory: Boolean for determining if the connector version mandates + // TLS. + IsTlsMandatory bool `json:"isTlsMandatory,omitempty"` + // ServerCertType: List of supported Server Cert Types + // + // Possible values: + // "CERT_TYPE_UNSPECIFIED" - Cert type unspecified. + // "PEM" - Privacy Enhanced Mail (PEM) Type + ServerCertType []string `json:"serverCertType,omitempty"` + // SslType: Controls the ssl type for the given connector version + // + // Possible values: + // "SSL_TYPE_UNSPECIFIED" - No SSL configuration required. + // "TLS" - TLS Handshake + // "MTLS" - mutual TLS (MTLS) Handshake + SslType string `json:"sslType,omitempty"` + // ForceSendFields is a list of field names (e.g. "AdditionalVariables") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "HelperTextTemplate") to include + // NullFields is a list of field names (e.g. "AdditionalVariables") to include // in API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s RoleGrant) MarshalJSON() ([]byte, error) { - type NoMethod RoleGrant +func (s SslConfigTemplate) MarshalJSON() ([]byte, error) { + type NoMethod SslConfigTemplate return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RuntimeActionSchema: Schema of a runtime action. -type RuntimeActionSchema struct { - // Action: Output only. Name of the action. - Action string `json:"action,omitempty"` - // Description: Output only. Brief Description of action - Description string `json:"description,omitempty"` - // DisplayName: Output only. Display Name of action to be shown on client side - DisplayName string `json:"displayName,omitempty"` - // InputJsonSchema: Output only. JsonSchema representation of this action's - // input metadata - InputJsonSchema *JsonSchema `json:"inputJsonSchema,omitempty"` - // InputParameters: Output only. List of input parameter metadata for the - // action. - InputParameters []*InputParameter `json:"inputParameters,omitempty"` - // InputSchemaAsString: Output only. Input schema as string. - InputSchemaAsString string `json:"inputSchemaAsString,omitempty"` - // ResultJsonSchema: Output only. JsonSchema representation of this action's - // result metadata - ResultJsonSchema *JsonSchema `json:"resultJsonSchema,omitempty"` - // ResultMetadata: Output only. List of result field metadata. - ResultMetadata []*ResultMetadata `json:"resultMetadata,omitempty"` - // ResultSchemaAsString: Output only. Result schema as string. - ResultSchemaAsString string `json:"resultSchemaAsString,omitempty"` - // ForceSendFields is a list of field names (e.g. "Action") to unconditionally +// StandardAction: Standard action +type StandardAction struct { + // Name: Name of the standard action. + Name string `json:"name,omitempty"` + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Action") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "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 RuntimeActionSchema) MarshalJSON() ([]byte, error) { - type NoMethod RuntimeActionSchema +func (s StandardAction) MarshalJSON() ([]byte, error) { + type NoMethod StandardAction return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RuntimeConfig: RuntimeConfig is the singleton resource of each location. It -// includes generic resource configs consumed by control plane and runtime -// plane like: pub/sub topic/subscription resource name, Cloud Storage location -// storing schema etc. -type RuntimeConfig struct { - // ConndSubscription: Output only. Pub/Sub subscription for connd to receive - // message. E.g. projects/{project-id}/subscriptions/{topic-id} - ConndSubscription string `json:"conndSubscription,omitempty"` - // ConndTopic: Output only. Pub/Sub topic for connd to send message. E.g. - // projects/{project-id}/topics/{topic-id} - ConndTopic string `json:"conndTopic,omitempty"` - // ControlPlaneSubscription: Output only. Pub/Sub subscription for control - // plane to receive message. E.g. - // projects/{project-id}/subscriptions/{topic-id} - ControlPlaneSubscription string `json:"controlPlaneSubscription,omitempty"` - // ControlPlaneTopic: Output only. Pub/Sub topic for control plne to send - // message. communication. E.g. projects/{project-id}/topics/{topic-id} - ControlPlaneTopic string `json:"controlPlaneTopic,omitempty"` - // LocationId: Output only. location_id of the runtime location. E.g. - // "us-west1". - LocationId string `json:"locationId,omitempty"` - // Name: Output only. Name of the runtimeConfig resource. Format: - // projects/{project}/locations/{location}/runtimeConfig +// StandardEntity: Standard entity +type StandardEntity struct { + // Name: Name of the standard entity. Name string `json:"name,omitempty"` - // RuntimeEndpoint: Output only. The endpoint of the connectors runtime - // ingress. - RuntimeEndpoint string `json:"runtimeEndpoint,omitempty"` - // SchemaGcsBucket: Output only. The Cloud Storage bucket that stores - // connector's schema reports. - SchemaGcsBucket string `json:"schemaGcsBucket,omitempty"` - // ServiceDirectory: Output only. The name of the Service Directory service - // name. - ServiceDirectory string `json:"serviceDirectory,omitempty"` - // State: Output only. The state of the location. - // - // Possible values: - // "STATE_UNSPECIFIED" - STATE_UNSPECIFIED. - // "INACTIVE" - INACTIVE. - // "ACTIVATING" - ACTIVATING. - // "ACTIVE" - ACTIVE. - // "CREATING" - CREATING. - // "DELETING" - DELETING. - // "UPDATING" - UPDATING. - State string `json:"state,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ConndSubscription") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ConndSubscription") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s RuntimeConfig) MarshalJSON() ([]byte, error) { - type NoMethod RuntimeConfig - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// RuntimeEntitySchema: Schema of a runtime entity. -type RuntimeEntitySchema struct { - // Entity: Output only. Name of the entity. - Entity string `json:"entity,omitempty"` - // Fields: Output only. List of fields in the entity. - Fields []*Field `json:"fields,omitempty"` - // JsonSchema: Output only. JsonSchema representation of this entity's metadata - JsonSchema *JsonSchema `json:"jsonSchema,omitempty"` - // Operations: List of operations supported by this entity - // - // Possible values: - // "OPERATION_UNSPECIFIED" - Operation unspecified. - // "LIST" - This operation means entity type supports LIST entities. - // "GET" - This operation means entity type supports GET entity. - // "CREATE" - This operation means entity type supports CREATE entity. - // "UPDATE" - This operation means entity type supports UPDATE entity. - // "DELETE" - This operation means entity type supports DELETE entity. - Operations []string `json:"operations,omitempty"` - // ForceSendFields is a list of field names (e.g. "Entity") to unconditionally + // 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. "Entity") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "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 RuntimeEntitySchema) MarshalJSON() ([]byte, error) { - type NoMethod RuntimeEntitySchema +func (s StandardEntity) MarshalJSON() ([]byte, error) { + type NoMethod StandardEntity return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Schedule: Configure the schedule. -type Schedule struct { - // Day: Allows to define schedule that runs specified day of the week. - // - // Possible values: - // "DAY_OF_WEEK_UNSPECIFIED" - The day of the week is unspecified. - // "MONDAY" - Monday - // "TUESDAY" - Tuesday - // "WEDNESDAY" - Wednesday - // "THURSDAY" - Thursday - // "FRIDAY" - Friday - // "SATURDAY" - Saturday - // "SUNDAY" - Sunday - Day string `json:"day,omitempty"` - // Duration: Output only. Duration of the time window, set by service producer. - Duration string `json:"duration,omitempty"` - // StartTime: Time within the window to start the operations. - StartTime *TimeOfDay `json:"startTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "Day") to unconditionally +// Status: The `Status` type defines a logical error model that is suitable for +// different programming environments, including REST APIs and RPC APIs. It is +// used by gRPC (https://github.com/grpc). Each `Status` message contains three +// pieces of data: error code, error message, and error details. You can find +// out more about this error model and how to work with it in the API Design +// Guide (https://cloud.google.com/apis/design/errors). +type Status struct { + // Code: The status code, which should be an enum value of google.rpc.Code. + Code int64 `json:"code,omitempty"` + // Details: A list of messages that carry the error details. There is a common + // set of message types for APIs to use. + Details []googleapi.RawMessage `json:"details,omitempty"` + // Message: A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + // google.rpc.Status.details field, or localized by the client. + Message string `json:"message,omitempty"` + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Day") to include in API requests + // NullFields is a list of field names (e.g. "Code") to include in API requests // with the JSON null value. By default, fields with empty values are omitted // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s Schedule) MarshalJSON() ([]byte, error) { - type NoMethod Schedule +func (s Status) MarshalJSON() ([]byte, error) { + type NoMethod Status return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SchemaRefreshConfig: Config for connection schema refresh -type SchemaRefreshConfig struct { - // UseActionDisplayNames: Whether to use displayName for actions in UI. - UseActionDisplayNames bool `json:"useActionDisplayNames,omitempty"` - // UseSynchronousSchemaRefresh: Whether to use synchronous schema refresh. - UseSynchronousSchemaRefresh bool `json:"useSynchronousSchemaRefresh,omitempty"` - // ForceSendFields is a list of field names (e.g. "UseActionDisplayNames") to +// SupportedRuntimeFeatures: Supported runtime features of a connector version. +type SupportedRuntimeFeatures struct { + // ActionApis: Specifies if the connector supports action apis like + // 'executeAction'. + ActionApis bool `json:"actionApis,omitempty"` + // AsyncOperations: Specifies if the connector supports async long running + // operations. + AsyncOperations bool `json:"asyncOperations,omitempty"` + // EntityApis: Specifies if the connector supports entity apis like + // 'createEntity'. + EntityApis bool `json:"entityApis,omitempty"` + // SqlQuery: Specifies if the connector supports 'ExecuteSqlQuery' operation. + SqlQuery bool `json:"sqlQuery,omitempty"` + // ForceSendFields is a list of field names (e.g. "ActionApis") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "UseActionDisplayNames") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See + // NullFields is a list of field names (e.g. "ActionApis") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s SchemaRefreshConfig) MarshalJSON() ([]byte, error) { - type NoMethod SchemaRefreshConfig +func (s SupportedRuntimeFeatures) MarshalJSON() ([]byte, error) { + type NoMethod SupportedRuntimeFeatures return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SearchConnectionInstance: SearchConnectionInstance represents an instance of -// connector with specific fields -type SearchConnectionInstance struct { - // ActionSchema: Output only. Schema of a runtime action. - ActionSchema *RuntimeActionSchema `json:"actionSchema,omitempty"` - // Connection: Output only. Connection details - Connection *Connection `json:"connection,omitempty"` - // EntitySchema: Output only. Schema of a runtime entity. - EntitySchema *RuntimeEntitySchema `json:"entitySchema,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActionSchema") to +// TestIamPermissionsRequest: Request message for `TestIamPermissions` method. +type TestIamPermissionsRequest 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. "ActionSchema") to include in API + // 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 SearchConnectionInstance) MarshalJSON() ([]byte, error) { - type NoMethod SearchConnectionInstance +func (s TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { + type NoMethod TestIamPermissionsRequest return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SearchConnectionsResponse: Response message for -// Connectors.SearchConnections. -type SearchConnectionsResponse struct { - // Connections: A list of connectors. - Connections []*SearchConnectionInstance `json:"connections,omitempty"` - // NextPageToken: Optional. page_token - NextPageToken string `json:"nextPageToken,omitempty"` - // Unreachable: Locations that could not be reached. - Unreachable []string `json:"unreachable,omitempty"` +// TestIamPermissionsResponse: Response message for `TestIamPermissions` +// method. +type TestIamPermissionsResponse 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. "Connections") to + // 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. "Connections") to include in API + // 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 SearchConnectionsResponse) MarshalJSON() ([]byte, error) { - type NoMethod SearchConnectionsResponse +func (s TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod TestIamPermissionsResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Secret: Secret provides a reference to entries in Secret Manager. -type Secret struct { - // SecretVersion: The resource name of the secret version in the format, format - // as: `projects/*/secrets/*/versions/*`. - SecretVersion string `json:"secretVersion,omitempty"` - // ForceSendFields is a list of field names (e.g. "SecretVersion") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See +// TimeOfDay: Represents a time of day. The date and time zone are either not +// significant or are specified elsewhere. An API may choose to allow leap +// seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. +type TimeOfDay struct { + // Hours: Hours of a day in 24 hour format. Must be greater than or equal to 0 + // and typically must be less than or equal to 23. An API may choose to allow + // the value "24:00:00" for scenarios like business closing time. + Hours int64 `json:"hours,omitempty"` + // Minutes: Minutes of an hour. Must be greater than or equal to 0 and less + // than or equal to 59. + Minutes int64 `json:"minutes,omitempty"` + // Nanos: Fractions of seconds, in nanoseconds. Must be greater than or equal + // to 0 and less than or equal to 999,999,999. + Nanos int64 `json:"nanos,omitempty"` + // Seconds: Seconds of a minute. Must be greater than or equal to 0 and + // typically must be less than or equal to 59. An API may allow the value 60 if + // it allows leap-seconds. + Seconds int64 `json:"seconds,omitempty"` + // ForceSendFields is a list of field names (e.g. "Hours") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "SecretVersion") to include in API + // NullFields is a list of field names (e.g. "Hours") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s Secret) MarshalJSON() ([]byte, error) { - type NoMethod Secret +func (s TimeOfDay) MarshalJSON() ([]byte, error) { + type NoMethod TimeOfDay return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SetIamPolicyRequest: Request message for `SetIamPolicy` method. -type SetIamPolicyRequest 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 *Policy `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 +// TrafficShapingConfig: * TrafficShapingConfig defines the configuration for +// shaping API traffic by specifying a quota limit and the duration over which +// this limit is enforced. This configuration helps to control and manage the +// rate at which API calls are made on the client side, preventing service +// overload on the backend. For example: - if the quota limit is 100 calls per +// 10 seconds, then the message would be: { quota_limit: 100 duration: { +// seconds: 10 } } - if the quota limit is 100 calls per 5 minutes, then the +// message would be: { quota_limit: 100 duration: { seconds: 300 } } - if the +// quota limit is 10000 calls per day, then the message would be: { +// quota_limit: 10000 duration: { seconds: 86400 } and so on. +type TrafficShapingConfig struct { + // Duration: Required. * The duration over which the API call quota limits are + // calculated. This duration is used to define the time window for evaluating + // if the number of API calls made by a user is within the allowed quota + // limits. For example: - To define a quota sampled over 16 seconds, set + // `seconds` to 16 - To define a quota sampled over 5 minutes, set `seconds` to + // 300 (5 * 60) - To define a quota sampled over 1 day, set `seconds` to 86400 + // (24 * 60 * 60) and so on. It is important to note that this duration is not + // the time the quota is valid for, but rather the time window over which the + // quota is evaluated. For example, if the quota is 100 calls per 10 seconds, + // then this duration field would be set to 10 seconds. + Duration string `json:"duration,omitempty"` + // QuotaLimit: Required. Maximum number of api calls allowed. + QuotaLimit int64 `json:"quotaLimit,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "Duration") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://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 + // NullFields is a list of field names (e.g. "Duration") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s SetIamPolicyRequest) MarshalJSON() ([]byte, error) { - type NoMethod SetIamPolicyRequest +func (s TrafficShapingConfig) MarshalJSON() ([]byte, error) { + type NoMethod TrafficShapingConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Settings: Global Settings details. -type Settings struct { - // Name: Output only. Resource name of the Connection. Format: - // projects/{project}/locations/global/settings} - Name string `json:"name,omitempty"` - // Payg: Output only. Flag indicates if user is in PayG model - Payg bool `json:"payg,omitempty"` - // TenantProjectId: Output only. Tenant project id of the consumer project. - TenantProjectId string `json:"tenantProjectId,omitempty"` - // Vpcsc: Optional. Flag indicates whether vpc-sc is enabled. - Vpcsc bool `json:"vpcsc,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 +// UpdatePolicy: Maintenance policy applicable to instance updates. +type UpdatePolicy struct { + // Channel: Optional. Relative scheduling channel applied to resource. + // + // Possible values: + // "UPDATE_CHANNEL_UNSPECIFIED" - Unspecified channel. + // "EARLIER" - Early channel within a customer project. + // "LATER" - Later channel within a customer project. + // "WEEK1" - ! ! The follow channels can ONLY be used if you adopt the new MW + // system! ! ! NOTE: all WEEK channels are assumed to be under a weekly window. + // ! There is currently no dedicated channel definitions for Daily windows. ! + // If you use Daily window, the system will assume a 1d (24Hours) advanced ! + // notification period b/w EARLY and LATER. ! We may consider support more + // flexible daily channel specifications in ! the future. WEEK1 == EARLIER with + // minimum 7d advanced notification. {7d, 14d} The system will treat them + // equally and will use WEEK1 whenever it can. New customers are encouraged to + // use this channel annotation. + // "WEEK2" - WEEK2 == LATER with minimum 14d advanced notification {14d, + // 21d}. + // "WEEK5" - WEEK5 == 40d support. minimum 35d advanced notification {35d, + // 42d}. + Channel string `json:"channel,omitempty"` + // DenyMaintenancePeriods: Deny Maintenance Period that is applied to resource + // to indicate when maintenance is forbidden. The protocol supports + // zero-to-many such periods, but the current SLM Rollout implementation only + // supports zero-to-one. + DenyMaintenancePeriods []*DenyMaintenancePeriod `json:"denyMaintenancePeriods,omitempty"` + // Window: Optional. Maintenance window that is applied to resources covered by + // this policy. + Window *MaintenanceWindow `json:"window,omitempty"` + // ForceSendFields is a list of field names (e.g. "Channel") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://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 Settings) MarshalJSON() ([]byte, error) { - type NoMethod Settings - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// SloEligibility: SloEligibility is a tuple containing eligibility value: true -// if an instance is eligible for SLO calculation or false if it should be -// excluded from all SLO-related calculations along with a user-defined reason. -type SloEligibility struct { - // Eligible: Whether an instance is eligible or ineligible. - Eligible bool `json:"eligible,omitempty"` - // Reason: User-defined reason for the current value of instance eligibility. - // Usually, this can be directly mapped to the internal state. An empty reason - // is allowed. - Reason string `json:"reason,omitempty"` - // ForceSendFields is a list of field names (e.g. "Eligible") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Eligible") to include in API + // NullFields is a list of field names (e.g. "Channel") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s SloEligibility) MarshalJSON() ([]byte, error) { - type NoMethod SloEligibility +func (s UpdatePolicy) MarshalJSON() ([]byte, error) { + type NoMethod UpdatePolicy return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SloMetadata: SloMetadata contains resources required for proper SLO -// classification of the instance. -type SloMetadata struct { - // Nodes: Optional. List of nodes. Some producers need to use per-node metadata - // to calculate SLO. This field allows such producers to publish per-node SLO - // meta data, which will be consumed by SSA Eligibility Exporter and published - // in the form of per node metric to Monarch. - Nodes []*NodeSloMetadata `json:"nodes,omitempty"` - // PerSliEligibility: Optional. Multiple per-instance SLI eligibilities which - // apply for individual SLIs. - PerSliEligibility *PerSliSloEligibility `json:"perSliEligibility,omitempty"` - // Tier: Name of the SLO tier the Instance belongs to. This name will be - // expected to match the tiers specified in the service SLO configuration. - // Field is mandatory and must not be empty. - Tier string `json:"tier,omitempty"` - // ForceSendFields is a list of field names (e.g. "Nodes") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See +// UserPassword: Parameters to support Username and Password Authentication. +type UserPassword struct { + // Password: Secret version reference containing the password. + Password *Secret `json:"password,omitempty"` + // Username: Username. + Username string `json:"username,omitempty"` + // ForceSendFields is a list of field names (e.g. "Password") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Nodes") to include in API + // NullFields is a list of field names (e.g. "Password") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s SloMetadata) MarshalJSON() ([]byte, error) { - type NoMethod SloMetadata +func (s UserPassword) MarshalJSON() ([]byte, error) { + type NoMethod UserPassword return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Source: Source to extract the backend from. -type Source struct { - // FieldId: Field identifier. For example config variable name. - FieldId string `json:"fieldId,omitempty"` - // SourceType: Type of the source. +// ValidateCustomConnectorSpecRequest: Request message for +// ConnectorsService.ValidateCustomConnectorSpec +type ValidateCustomConnectorSpecRequest struct { + // ServiceAccount: Required. Service account to access the spec from Google + // Cloud Storage. + ServiceAccount string `json:"serviceAccount,omitempty"` + // SpecLocation: Required. Location of the custom connector spec. The location + // can be either a public url like `https://public-url.com/spec` Or a Google + // Cloud Storage location like `gs:///` + SpecLocation string `json:"specLocation,omitempty"` + // SpecType: Required. Spec type of the custom connector spec. // // Possible values: - // "SOURCE_TYPE_UNSPECIFIED" - Default SOURCE. - // "CONFIG_VARIABLE" - Config Variable source type. - SourceType string `json:"sourceType,omitempty"` - // ForceSendFields is a list of field names (e.g. "FieldId") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See + // "CUSTOM_CONNECTOR_TYPE_UNSPECIFIED" - Connector type is not specified. + // "OPEN_API" - OpenAPI connector. + // "PROTO" - Proto connector. + // "SDK" - SDK connector. + SpecType string `json:"specType,omitempty"` + // ForceSendFields is a list of field names (e.g. "ServiceAccount") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "FieldId") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "ServiceAccount") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s Source) MarshalJSON() ([]byte, error) { - type NoMethod Source +func (s ValidateCustomConnectorSpecRequest) MarshalJSON() ([]byte, error) { + type NoMethod ValidateCustomConnectorSpecRequest return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SshPublicKey: Parameters to support Ssh public key Authentication. -type SshPublicKey struct { - // CertType: Format of SSH Client cert. - CertType string `json:"certType,omitempty"` - // SshClientCert: SSH Client Cert. It should contain both public and private - // key. - SshClientCert *Secret `json:"sshClientCert,omitempty"` - // SshClientCertPass: Password (passphrase) for ssh client certificate if it - // has one. - SshClientCertPass *Secret `json:"sshClientCertPass,omitempty"` - // Username: The user account used to authenticate. - Username string `json:"username,omitempty"` - // ForceSendFields is a list of field names (e.g. "CertType") to +// ValidateCustomConnectorSpecResponse: Response message for +// ConnectorsService.ValidateCustomConnectorSpec +type ValidateCustomConnectorSpecResponse struct { + // ErrorMessage: Error message. The spec is valid if the error message is + // empty. + ErrorMessage string `json:"errorMessage,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "ErrorMessage") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CertType") to include in API + // NullFields is a list of field names (e.g. "ErrorMessage") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s SshPublicKey) MarshalJSON() ([]byte, error) { - type NoMethod SshPublicKey +func (s ValidateCustomConnectorSpecResponse) MarshalJSON() ([]byte, error) { + type NoMethod ValidateCustomConnectorSpecResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SslConfig: SSL Configuration of a connection -type SslConfig struct { - // AdditionalVariables: Optional. Additional SSL related field values +// WebhookData: WebhookData has details of webhook configuration. +type WebhookData struct { + // AdditionalVariables: Output only. Additional webhook related field values. AdditionalVariables []*ConfigVariable `json:"additionalVariables,omitempty"` - // ClientCertType: Optional. Type of Client Cert (PEM/JKS/.. etc.) - // - // Possible values: - // "CERT_TYPE_UNSPECIFIED" - Cert type unspecified. - // "PEM" - Privacy Enhanced Mail (PEM) Type - ClientCertType string `json:"clientCertType,omitempty"` - // ClientCertificate: Optional. Client Certificate - ClientCertificate *Secret `json:"clientCertificate,omitempty"` - // ClientPrivateKey: Optional. Client Private Key - ClientPrivateKey *Secret `json:"clientPrivateKey,omitempty"` - // ClientPrivateKeyPass: Optional. Secret containing the passphrase protecting - // the Client Private Key - ClientPrivateKeyPass *Secret `json:"clientPrivateKeyPass,omitempty"` - // PrivateServerCertificate: Optional. Private Server Certificate. Needs to be - // specified if trust model is `PRIVATE`. - PrivateServerCertificate *Secret `json:"privateServerCertificate,omitempty"` - // ServerCertType: Optional. Type of Server Cert (PEM/JKS/.. etc.) - // - // Possible values: - // "CERT_TYPE_UNSPECIFIED" - Cert type unspecified. - // "PEM" - Privacy Enhanced Mail (PEM) Type - ServerCertType string `json:"serverCertType,omitempty"` - // TrustModel: Optional. Trust Model of the SSL connection - // - // Possible values: - // "PUBLIC" - Public Trust Model. Takes the Default Java trust store. - // "PRIVATE" - Private Trust Model. Takes custom/private trust store. - // "INSECURE" - Insecure Trust Model. Accept all certificates. - TrustModel string `json:"trustModel,omitempty"` - // Type: Optional. Controls the ssl type for the given connector version. - // - // Possible values: - // "SSL_TYPE_UNSPECIFIED" - No SSL configuration required. - // "TLS" - TLS Handshake - // "MTLS" - mutual TLS (MTLS) Handshake - Type string `json:"type,omitempty"` - // UseSsl: Optional. Bool for enabling SSL - UseSsl bool `json:"useSsl,omitempty"` + // CreateTime: Output only. Timestamp when the webhook was created. + CreateTime string `json:"createTime,omitempty"` + // Id: Output only. ID to uniquely identify webhook. + Id string `json:"id,omitempty"` + // Name: Output only. Name of the Webhook + Name string `json:"name,omitempty"` + // NextRefreshTime: Output only. Next webhook refresh time. Will be null if + // refresh is not supported. + NextRefreshTime string `json:"nextRefreshTime,omitempty"` + // UpdateTime: Output only. Timestamp when the webhook was last updated. + UpdateTime string `json:"updateTime,omitempty"` // ForceSendFields is a list of field names (e.g. "AdditionalVariables") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -6043,1192 +5981,137 @@ type SslConfig struct { NullFields []string `json:"-"` } -func (s SslConfig) MarshalJSON() ([]byte, error) { - type NoMethod SslConfig +func (s WebhookData) MarshalJSON() ([]byte, error) { + type NoMethod WebhookData return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// SslConfigTemplate: Ssl config details of a connector version -type SslConfigTemplate struct { - // AdditionalVariables: Any additional fields that need to be rendered - AdditionalVariables []*ConfigVariableTemplate `json:"additionalVariables,omitempty"` - // ClientCertType: List of supported Client Cert Types - // - // Possible values: - // "CERT_TYPE_UNSPECIFIED" - Cert type unspecified. - // "PEM" - Privacy Enhanced Mail (PEM) Type - ClientCertType []string `json:"clientCertType,omitempty"` - // IsTlsMandatory: Boolean for determining if the connector version mandates - // TLS. - IsTlsMandatory bool `json:"isTlsMandatory,omitempty"` - // ServerCertType: List of supported Server Cert Types - // - // Possible values: - // "CERT_TYPE_UNSPECIFIED" - Cert type unspecified. - // "PEM" - Privacy Enhanced Mail (PEM) Type - ServerCertType []string `json:"serverCertType,omitempty"` - // SslType: Controls the ssl type for the given connector version - // - // Possible values: - // "SSL_TYPE_UNSPECIFIED" - No SSL configuration required. - // "TLS" - TLS Handshake - // "MTLS" - mutual TLS (MTLS) Handshake - SslType string `json:"sslType,omitempty"` - // ForceSendFields is a list of field names (e.g. "AdditionalVariables") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AdditionalVariables") to include - // in API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s SslConfigTemplate) MarshalJSON() ([]byte, error) { - type NoMethod SslConfigTemplate - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// StandardAction: Standard action -type StandardAction struct { - // Name: Name of the standard action. - Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "Name") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Name") to include in API requests - // with the JSON null value. By default, fields with empty values are omitted - // from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s StandardAction) MarshalJSON() ([]byte, error) { - type NoMethod StandardAction - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// StandardEntity: Standard entity -type StandardEntity struct { - // Name: Name of the standard entity. - Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "Name") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Name") to include in API requests - // with the JSON null value. By default, fields with empty values are omitted - // from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s StandardEntity) MarshalJSON() ([]byte, error) { - type NoMethod StandardEntity - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// Status: The `Status` type defines a logical error model that is suitable for -// different programming environments, including REST APIs and RPC APIs. It is -// used by gRPC (https://github.com/grpc). Each `Status` message contains three -// pieces of data: error code, error message, and error details. You can find -// out more about this error model and how to work with it in the API Design -// Guide (https://cloud.google.com/apis/design/errors). -type Status struct { - // Code: The status code, which should be an enum value of google.rpc.Code. - Code int64 `json:"code,omitempty"` - // Details: A list of messages that carry the error details. There is a common - // set of message types for APIs to use. - Details []googleapi.RawMessage `json:"details,omitempty"` - // Message: A developer-facing error message, which should be in English. Any - // user-facing error message should be localized and sent in the - // google.rpc.Status.details field, or localized by the client. - Message string `json:"message,omitempty"` - // ForceSendFields is a list of field names (e.g. "Code") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Code") to include in API requests - // with the JSON null value. By default, fields with empty values are omitted - // from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s Status) MarshalJSON() ([]byte, error) { - type NoMethod Status - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// SupportedRuntimeFeatures: Supported runtime features of a connector version. -type SupportedRuntimeFeatures struct { - // ActionApis: Specifies if the connector supports action apis like - // 'executeAction'. - ActionApis bool `json:"actionApis,omitempty"` - // EntityApis: Specifies if the connector supports entity apis like - // 'createEntity'. - EntityApis bool `json:"entityApis,omitempty"` - // SqlQuery: Specifies if the connector supports 'ExecuteSqlQuery' operation. - SqlQuery bool `json:"sqlQuery,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActionApis") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ActionApis") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s SupportedRuntimeFeatures) MarshalJSON() ([]byte, error) { - type NoMethod SupportedRuntimeFeatures - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// TestIamPermissionsRequest: Request message for `TestIamPermissions` method. -type TestIamPermissionsRequest 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 TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { - type NoMethod TestIamPermissionsRequest - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// TestIamPermissionsResponse: Response message for `TestIamPermissions` -// method. -type TestIamPermissionsResponse 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 TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { - type NoMethod TestIamPermissionsResponse - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// TimeOfDay: Represents a time of day. The date and time zone are either not -// significant or are specified elsewhere. An API may choose to allow leap -// seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. -type TimeOfDay struct { - // Hours: Hours of a day in 24 hour format. Must be greater than or equal to 0 - // and typically must be less than or equal to 23. An API may choose to allow - // the value "24:00:00" for scenarios like business closing time. - Hours int64 `json:"hours,omitempty"` - // Minutes: Minutes of an hour. Must be greater than or equal to 0 and less - // than or equal to 59. - Minutes int64 `json:"minutes,omitempty"` - // Nanos: Fractions of seconds, in nanoseconds. Must be greater than or equal - // to 0 and less than or equal to 999,999,999. - Nanos int64 `json:"nanos,omitempty"` - // Seconds: Seconds of a minute. Must be greater than or equal to 0 and - // typically must be less than or equal to 59. An API may allow the value 60 if - // it allows leap-seconds. - Seconds int64 `json:"seconds,omitempty"` - // ForceSendFields is a list of field names (e.g. "Hours") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Hours") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s TimeOfDay) MarshalJSON() ([]byte, error) { - type NoMethod TimeOfDay - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// TrafficShapingConfig: * TrafficShapingConfig defines the configuration for -// shaping API traffic by specifying a quota limit and the duration over which -// this limit is enforced. This configuration helps to control and manage the -// rate at which API calls are made on the client side, preventing service -// overload on the backend. For example: - if the quota limit is 100 calls per -// 10 seconds, then the message would be: { quota_limit: 100 duration: { -// seconds: 10 } } - if the quota limit is 100 calls per 5 minutes, then the -// message would be: { quota_limit: 100 duration: { seconds: 300 } } - if the -// quota limit is 10000 calls per day, then the message would be: { -// quota_limit: 10000 duration: { seconds: 86400 } and so on. -type TrafficShapingConfig struct { - // Duration: Required. * The duration over which the API call quota limits are - // calculated. This duration is used to define the time window for evaluating - // if the number of API calls made by a user is within the allowed quota - // limits. For example: - To define a quota sampled over 16 seconds, set - // `seconds` to 16 - To define a quota sampled over 5 minutes, set `seconds` to - // 300 (5 * 60) - To define a quota sampled over 1 day, set `seconds` to 86400 - // (24 * 60 * 60) and so on. It is important to note that this duration is not - // the time the quota is valid for, but rather the time window over which the - // quota is evaluated. For example, if the quota is 100 calls per 10 seconds, - // then this duration field would be set to 10 seconds. - Duration string `json:"duration,omitempty"` - // QuotaLimit: Required. Maximum number of api calls allowed. - QuotaLimit int64 `json:"quotaLimit,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "Duration") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Duration") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s TrafficShapingConfig) MarshalJSON() ([]byte, error) { - type NoMethod TrafficShapingConfig - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// UpdatePolicy: Maintenance policy applicable to instance updates. -type UpdatePolicy struct { - // Channel: Optional. Relative scheduling channel applied to resource. - // - // Possible values: - // "UPDATE_CHANNEL_UNSPECIFIED" - Unspecified channel. - // "EARLIER" - Early channel within a customer project. - // "LATER" - Later channel within a customer project. - // "WEEK1" - ! ! The follow channels can ONLY be used if you adopt the new MW - // system! ! ! NOTE: all WEEK channels are assumed to be under a weekly window. - // ! There is currently no dedicated channel definitions for Daily windows. ! - // If you use Daily window, the system will assume a 1d (24Hours) advanced ! - // notification period b/w EARLY and LATER. ! We may consider support more - // flexible daily channel specifications in ! the future. WEEK1 == EARLIER with - // minimum 7d advanced notification. {7d, 14d} The system will treat them - // equally and will use WEEK1 whenever it can. New customers are encouraged to - // use this channel annotation. - // "WEEK2" - WEEK2 == LATER with minimum 14d advanced notification {14d, - // 21d}. - // "WEEK5" - WEEK5 == 40d support. minimum 35d advanced notification {35d, - // 42d}. - Channel string `json:"channel,omitempty"` - // DenyMaintenancePeriods: Deny Maintenance Period that is applied to resource - // to indicate when maintenance is forbidden. The protocol supports - // zero-to-many such periods, but the current SLM Rollout implementation only - // supports zero-to-one. - DenyMaintenancePeriods []*DenyMaintenancePeriod `json:"denyMaintenancePeriods,omitempty"` - // Window: Optional. Maintenance window that is applied to resources covered by - // this policy. - Window *MaintenanceWindow `json:"window,omitempty"` - // ForceSendFields is a list of field names (e.g. "Channel") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Channel") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s UpdatePolicy) MarshalJSON() ([]byte, error) { - type NoMethod UpdatePolicy - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// UserPassword: Parameters to support Username and Password Authentication. -type UserPassword struct { - // Password: Secret version reference containing the password. - Password *Secret `json:"password,omitempty"` - // Username: Username. - Username string `json:"username,omitempty"` - // ForceSendFields is a list of field names (e.g. "Password") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Password") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s UserPassword) MarshalJSON() ([]byte, error) { - type NoMethod UserPassword - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// ValidateCustomConnectorSpecRequest: Request message for -// ConnectorsService.ValidateCustomConnectorSpec -type ValidateCustomConnectorSpecRequest struct { - // ServiceAccount: Required. Service account to access the spec from Google - // Cloud Storage. - ServiceAccount string `json:"serviceAccount,omitempty"` - // SpecLocation: Required. Location of the custom connector spec. The location - // can be either a public url like `https://public-url.com/spec` Or a Google - // Cloud Storage location like `gs:///` - SpecLocation string `json:"specLocation,omitempty"` - // SpecType: Required. Spec type of the custom connector spec. - // - // Possible values: - // "CUSTOM_CONNECTOR_TYPE_UNSPECIFIED" - Connector type is not specified. - // "OPEN_API" - OpenAPI connector. - // "PROTO" - Proto connector. - // "SDK" - SDK connector. - SpecType string `json:"specType,omitempty"` - // ForceSendFields is a list of field names (e.g. "ServiceAccount") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ServiceAccount") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s ValidateCustomConnectorSpecRequest) MarshalJSON() ([]byte, error) { - type NoMethod ValidateCustomConnectorSpecRequest - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// ValidateCustomConnectorSpecResponse: Response message for -// ConnectorsService.ValidateCustomConnectorSpec -type ValidateCustomConnectorSpecResponse struct { - // ErrorMessage: Error message. The spec is valid if the error message is - // empty. - ErrorMessage string `json:"errorMessage,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ErrorMessage") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ErrorMessage") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s ValidateCustomConnectorSpecResponse) MarshalJSON() ([]byte, error) { - type NoMethod ValidateCustomConnectorSpecResponse - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// WebhookData: WebhookData has details of webhook configuration. -type WebhookData struct { - // AdditionalVariables: Output only. Additional webhook related field values. - AdditionalVariables []*ConfigVariable `json:"additionalVariables,omitempty"` - // CreateTime: Output only. Timestamp when the webhook was created. - CreateTime string `json:"createTime,omitempty"` - // Id: Output only. ID to uniquely identify webhook. - Id string `json:"id,omitempty"` - // Name: Output only. Name of the Webhook - Name string `json:"name,omitempty"` - // NextRefreshTime: Output only. Next webhook refresh time. Will be null if - // refresh is not supported. - NextRefreshTime string `json:"nextRefreshTime,omitempty"` - // UpdateTime: Output only. Timestamp when the webhook was last updated. - UpdateTime string `json:"updateTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "AdditionalVariables") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AdditionalVariables") to include - // in API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s WebhookData) MarshalJSON() ([]byte, error) { - type NoMethod WebhookData - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// WebhookSubscriptions: WebhookSubscriptions has details of webhook -// subscriptions. -type WebhookSubscriptions struct { - // WebhookData: Output only. Webhook data. - WebhookData []*WebhookData `json:"webhookData,omitempty"` - // ForceSendFields is a list of field names (e.g. "WebhookData") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "WebhookData") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s WebhookSubscriptions) MarshalJSON() ([]byte, error) { - type NoMethod WebhookSubscriptions - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// WeeklyCycle: Time window specified for weekly operations. -type WeeklyCycle struct { - // Schedule: User can specify multiple windows in a week. Minimum of 1 window. - Schedule []*Schedule `json:"schedule,omitempty"` - // ForceSendFields is a list of field names (e.g. "Schedule") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Schedule") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s WeeklyCycle) MarshalJSON() ([]byte, error) { - type NoMethod WeeklyCycle - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// WithdrawCustomConnectorVersionRequest: Request message for -// ConnectorsService.WithdrawCustomConnectorVersion -type WithdrawCustomConnectorVersionRequest struct { -} - -type ProjectsLocationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets information about a location. -// -// - name: Resource name for the location. -func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { - c := &ProjectsLocationsGetCall{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 *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { - 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 *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { - 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 *ProjectsLocationsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.get", "request", internallog.HTTPRequest(req, nil)) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "connectors.projects.locations.get" call. -// Any non-2xx status code is an error. Response headers are in either -// *Location.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 *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, 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 := &Location{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - b, err := gensupport.DecodeResponseBytes(target, res) - if err != nil { - return nil, err - } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.get", "response", internallog.HTTPResponse(res, b)) - return ret, nil -} - -type ProjectsLocationsGetRegionalSettingsCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// GetRegionalSettings: GetRegionalSettings gets settings of a region. -// RegionalSettings is a singleton resource. -// -// - name: The resource name of the Regional Settings. -func (r *ProjectsLocationsService) GetRegionalSettings(name string) *ProjectsLocationsGetRegionalSettingsCall { - c := &ProjectsLocationsGetRegionalSettingsCall{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 *ProjectsLocationsGetRegionalSettingsCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetRegionalSettingsCall { - 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 *ProjectsLocationsGetRegionalSettingsCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetRegionalSettingsCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsGetRegionalSettingsCall) Context(ctx context.Context) *ProjectsLocationsGetRegionalSettingsCall { - 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 *ProjectsLocationsGetRegionalSettingsCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsGetRegionalSettingsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.getRegionalSettings", "request", internallog.HTTPRequest(req, nil)) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "connectors.projects.locations.getRegionalSettings" call. -// Any non-2xx status code is an error. Response headers are in either -// *RegionalSettings.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 *ProjectsLocationsGetRegionalSettingsCall) Do(opts ...googleapi.CallOption) (*RegionalSettings, 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 := &RegionalSettings{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - b, err := gensupport.DecodeResponseBytes(target, res) - if err != nil { - return nil, err - } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.getRegionalSettings", "response", internallog.HTTPResponse(res, b)) - return ret, nil -} - -type ProjectsLocationsGetRuntimeConfigCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// GetRuntimeConfig: Gets the runtimeConfig of a location. RuntimeConfig is a -// singleton resource for each location. -// -// - name: Resource name of the form: `projects/*/locations/*/runtimeConfig`. -func (r *ProjectsLocationsService) GetRuntimeConfig(name string) *ProjectsLocationsGetRuntimeConfigCall { - c := &ProjectsLocationsGetRuntimeConfigCall{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 *ProjectsLocationsGetRuntimeConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetRuntimeConfigCall { - 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 *ProjectsLocationsGetRuntimeConfigCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetRuntimeConfigCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsGetRuntimeConfigCall) Context(ctx context.Context) *ProjectsLocationsGetRuntimeConfigCall { - 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 *ProjectsLocationsGetRuntimeConfigCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsGetRuntimeConfigCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.getRuntimeConfig", "request", internallog.HTTPRequest(req, nil)) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "connectors.projects.locations.getRuntimeConfig" call. -// Any non-2xx status code is an error. Response headers are in either -// *RuntimeConfig.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 *ProjectsLocationsGetRuntimeConfigCall) Do(opts ...googleapi.CallOption) (*RuntimeConfig, 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 := &RuntimeConfig{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - b, err := gensupport.DecodeResponseBytes(target, res) - if err != nil { - return nil, err - } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.getRuntimeConfig", "response", internallog.HTTPResponse(res, b)) - return ret, nil -} - -type ProjectsLocationsListCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists information about the supported locations for this service. -// -// - name: The resource that owns the locations collection, if applicable. -func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { - c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// ExtraLocationTypes sets the optional parameter "extraLocationTypes": A list -// of extra location types that should be used as conditions for controlling -// the visibility of the locations. -func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall { - c.urlParams_.SetMulti("extraLocationTypes", append([]string{}, extraLocationTypes...)) - return c -} - -// Filter sets the optional parameter "filter": A filter to narrow down results -// to a preferred subset. The filtering language accepts strings like -// "displayName=tokyo", and is documented in more detail in AIP-160 -// (https://google.aip.dev/160). -func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number of -// results to return. If not set, the service selects a default. -func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": A page token received -// from the `next_page_token` field in the response. Send that page token to -// receive the subsequent page. -func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { - 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 *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { - 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 *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { - 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 *ProjectsLocationsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/locations") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.list", "request", internallog.HTTPRequest(req, nil)) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "connectors.projects.locations.list" call. -// Any non-2xx status code is an error. Response headers are in either -// *ListLocationsResponse.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 *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, 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 := &ListLocationsResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - b, err := gensupport.DecodeResponseBytes(target, res) - if err != nil { - return nil, err - } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.list", "response", internallog.HTTPResponse(res, b)) - 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 *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) 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 ProjectsLocationsUpdateRegionalSettingsCall struct { - s *Service - name string - regionalsettings *RegionalSettings - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// UpdateRegionalSettings: Update the settings of a region. -// -// - name: Output only. Resource name of the Connection. Format: -// projects/{project}/locations/{location}/regionalSettings. -func (r *ProjectsLocationsService) UpdateRegionalSettings(name string, regionalsettings *RegionalSettings) *ProjectsLocationsUpdateRegionalSettingsCall { - c := &ProjectsLocationsUpdateRegionalSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.regionalsettings = regionalsettings - return c -} - -// UpdateMask sets the optional parameter "updateMask": Required. The list of -// fields to update. -func (c *ProjectsLocationsUpdateRegionalSettingsCall) UpdateMask(updateMask string) *ProjectsLocationsUpdateRegionalSettingsCall { - 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 *ProjectsLocationsUpdateRegionalSettingsCall) Fields(s ...googleapi.Field) *ProjectsLocationsUpdateRegionalSettingsCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c +// WebhookSubscriptions: WebhookSubscriptions has details of webhook +// subscriptions. +type WebhookSubscriptions struct { + // WebhookData: Output only. Webhook data. + WebhookData []*WebhookData `json:"webhookData,omitempty"` + // ForceSendFields is a list of field names (e.g. "WebhookData") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "WebhookData") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` } -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsUpdateRegionalSettingsCall) Context(ctx context.Context) *ProjectsLocationsUpdateRegionalSettingsCall { - c.ctx_ = ctx - return c +func (s WebhookSubscriptions) MarshalJSON() ([]byte, error) { + type NoMethod WebhookSubscriptions + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsUpdateRegionalSettingsCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ +// WeeklyCycle: Time window specified for weekly operations. +type WeeklyCycle struct { + // Schedule: User can specify multiple windows in a week. Minimum of 1 window. + Schedule []*Schedule `json:"schedule,omitempty"` + // ForceSendFields is a list of field names (e.g. "Schedule") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Schedule") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` } -func (c *ProjectsLocationsUpdateRegionalSettingsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.regionalsettings) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.updateRegionalSettings", "request", internallog.HTTPRequest(req, body.Bytes())) - return gensupport.SendRequest(c.ctx_, c.s.client, req) +func (s WeeklyCycle) MarshalJSON() ([]byte, error) { + type NoMethod WeeklyCycle + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Do executes the "connectors.projects.locations.updateRegionalSettings" 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 *ProjectsLocationsUpdateRegionalSettingsCall) 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 - b, err := gensupport.DecodeResponseBytes(target, res) - if err != nil { - return nil, err - } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.updateRegionalSettings", "response", internallog.HTTPResponse(res, b)) - return ret, nil +// WithdrawCustomConnectorVersionRequest: Request message for +// ConnectorsService.WithdrawCustomConnectorVersion +type WithdrawCustomConnectorVersionRequest struct { } -type ProjectsLocationsConnectionsCreateCall struct { - s *Service - parent string - connection *Connection - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Create: Creates a new Connection in a given project and location. +// Get: Gets information about a location. // -// - parent: Parent resource of the Connection, of the form: -// `projects/*/locations/*`. -func (r *ProjectsLocationsConnectionsService) Create(parent string, connection *Connection) *ProjectsLocationsConnectionsCreateCall { - c := &ProjectsLocationsConnectionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.connection = connection - return c -} - -// ConnectionId sets the optional parameter "connectionId": Required. -// Identifier to assign to the Connection. Must be unique within scope of the -// parent resource. -func (c *ProjectsLocationsConnectionsCreateCall) ConnectionId(connectionId string) *ProjectsLocationsConnectionsCreateCall { - c.urlParams_.Set("connectionId", connectionId) +// - name: Resource name for the location. +func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { + c := &ProjectsLocationsGetCall{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 *ProjectsLocationsConnectionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsCreateCall { +func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { 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 *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsConnectionsCreateCall) Context(ctx context.Context) *ProjectsLocationsConnectionsCreateCall { +func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { 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 *ProjectsLocationsConnectionsCreateCall) Header() http.Header { +func (c *ProjectsLocationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsConnectionsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.connection) - if err != nil { - return nil, err +func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/connections") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.create", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "connectors.projects.locations.connections.create" call. +// Do executes the "connectors.projects.locations.get" 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 +// *Location.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 *ProjectsLocationsConnectionsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7247,7 +6130,7 @@ func (c *ProjectsLocationsConnectionsCreateCall) Do(opts ...googleapi.CallOption if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &Location{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7258,23 +6141,25 @@ func (c *ProjectsLocationsConnectionsCreateCall) Do(opts ...googleapi.CallOption if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.create", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsConnectionsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsGetRegionalSettingsCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a single Connection. +// GetRegionalSettings: GetRegionalSettings gets settings of a region. +// RegionalSettings is a singleton resource. // -// - name: Resource name of the form: `projects/*/locations/*/connections/*`. -func (r *ProjectsLocationsConnectionsService) Delete(name string) *ProjectsLocationsConnectionsDeleteCall { - c := &ProjectsLocationsConnectionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The resource name of the Regional Settings. +func (r *ProjectsLocationsService) GetRegionalSettings(name string) *ProjectsLocationsGetRegionalSettingsCall { + c := &ProjectsLocationsGetRegionalSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -7282,33 +6167,44 @@ func (r *ProjectsLocationsConnectionsService) Delete(name string) *ProjectsLocat // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsConnectionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsDeleteCall { +func (c *ProjectsLocationsGetRegionalSettingsCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetRegionalSettingsCall { 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 *ProjectsLocationsGetRegionalSettingsCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetRegionalSettingsCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsConnectionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsConnectionsDeleteCall { +func (c *ProjectsLocationsGetRegionalSettingsCall) Context(ctx context.Context) *ProjectsLocationsGetRegionalSettingsCall { 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 *ProjectsLocationsConnectionsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsGetRegionalSettingsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsConnectionsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsGetRegionalSettingsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, nil) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } @@ -7316,16 +6212,17 @@ func (c *ProjectsLocationsConnectionsDeleteCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.getRegionalSettings", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "connectors.projects.locations.connections.delete" call. +// Do executes the "connectors.projects.locations.getRegionalSettings" 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 *ProjectsLocationsConnectionsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// *RegionalSettings.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 *ProjectsLocationsGetRegionalSettingsCall) Do(opts ...googleapi.CallOption) (*RegionalSettings, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7344,7 +6241,7 @@ func (c *ProjectsLocationsConnectionsDeleteCall) Do(opts ...googleapi.CallOption if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &RegionalSettings{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7355,11 +6252,11 @@ func (c *ProjectsLocationsConnectionsDeleteCall) Do(opts ...googleapi.CallOption if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.getRegionalSettings", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsConnectionsGetCall struct { +type ProjectsLocationsGetRuntimeConfigCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -7368,32 +6265,20 @@ type ProjectsLocationsConnectionsGetCall struct { header_ http.Header } -// Get: Gets details of a single Connection. -// -// - name: Resource name of the form: `projects/*/locations/*/connections/*`. -func (r *ProjectsLocationsConnectionsService) Get(name string) *ProjectsLocationsConnectionsGetCall { - c := &ProjectsLocationsConnectionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// View sets the optional parameter "view": Specifies which fields of the -// Connection are returned in the response. Defaults to `BASIC` view. -// -// Possible values: +// GetRuntimeConfig: Gets the runtimeConfig of a location. RuntimeConfig is a +// singleton resource for each location. // -// "CONNECTION_VIEW_UNSPECIFIED" - CONNECTION_UNSPECIFIED. -// "BASIC" - Do not include runtime required configs. -// "FULL" - Include runtime required configs. -func (c *ProjectsLocationsConnectionsGetCall) View(view string) *ProjectsLocationsConnectionsGetCall { - c.urlParams_.Set("view", view) +// - name: Resource name of the form: `projects/*/locations/*/runtimeConfig`. +func (r *ProjectsLocationsService) GetRuntimeConfig(name string) *ProjectsLocationsGetRuntimeConfigCall { + c := &ProjectsLocationsGetRuntimeConfigCall{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 *ProjectsLocationsConnectionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsGetCall { +func (c *ProjectsLocationsGetRuntimeConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetRuntimeConfigCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -7401,27 +6286,27 @@ func (c *ProjectsLocationsConnectionsGetCall) Fields(s ...googleapi.Field) *Proj // 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 *ProjectsLocationsConnectionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsGetCall { +func (c *ProjectsLocationsGetRuntimeConfigCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetRuntimeConfigCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsConnectionsGetCall) Context(ctx context.Context) *ProjectsLocationsConnectionsGetCall { +func (c *ProjectsLocationsGetRuntimeConfigCall) Context(ctx context.Context) *ProjectsLocationsGetRuntimeConfigCall { 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 *ProjectsLocationsConnectionsGetCall) Header() http.Header { +func (c *ProjectsLocationsGetRuntimeConfigCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsConnectionsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsGetRuntimeConfigCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -7438,16 +6323,16 @@ func (c *ProjectsLocationsConnectionsGetCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.getRuntimeConfig", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "connectors.projects.locations.connections.get" call. +// Do executes the "connectors.projects.locations.getRuntimeConfig" call. // Any non-2xx status code is an error. Response headers are in either -// *Connection.ServerResponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// *RuntimeConfig.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 *ProjectsLocationsConnectionsGetCall) Do(opts ...googleapi.CallOption) (*Connection, error) { +func (c *ProjectsLocationsGetRuntimeConfigCall) Do(opts ...googleapi.CallOption) (*RuntimeConfig, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7466,7 +6351,7 @@ func (c *ProjectsLocationsConnectionsGetCall) Do(opts ...googleapi.CallOption) ( if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Connection{ + ret := &RuntimeConfig{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7477,11 +6362,11 @@ func (c *ProjectsLocationsConnectionsGetCall) Do(opts ...googleapi.CallOption) ( if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.getRuntimeConfig", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall struct { +type ProjectsLocationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -7490,22 +6375,51 @@ type ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall struct { header_ http.Header } -// GetConnectionSchemaMetadata: Gets schema metadata of a connection. -// SchemaMetadata is a singleton resource for each connection. +// List: Lists information about the supported locations for this service. // -// - name: Connection name Format: -// projects/{project}/locations/{location}/connections/{connection}/connection -// SchemaMetadata. -func (r *ProjectsLocationsConnectionsService) GetConnectionSchemaMetadata(name string) *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall { - c := &ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The resource that owns the locations collection, if applicable. +func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { + c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } +// ExtraLocationTypes sets the optional parameter "extraLocationTypes": A list +// of extra location types that should be used as conditions for controlling +// the visibility of the locations. +func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall { + c.urlParams_.SetMulti("extraLocationTypes", append([]string{}, extraLocationTypes...)) + return c +} + +// Filter sets the optional parameter "filter": A filter to narrow down results +// to a preferred subset. The filtering language accepts strings like +// "displayName=tokyo", and is documented in more detail in AIP-160 +// (https://google.aip.dev/160). +func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of +// results to return. If not set, the service selects a default. +func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token received +// from the `next_page_token` field in the response. Send that page token to +// receive the subsequent page. +func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { + 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 *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall { +func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -7513,34 +6427,34 @@ func (c *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall) Fields(s . // 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 *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall { +func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall) Context(ctx context.Context) *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall { +func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { 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 *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall) Header() http.Header { +func (c *ProjectsLocationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/locations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -7550,17 +6464,17 @@ func (c *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.getConnectionSchemaMetadata", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "connectors.projects.locations.connections.getConnectionSchemaMetadata" call. +// Do executes the "connectors.projects.locations.list" call. // Any non-2xx status code is an error. Response headers are in either -// *ConnectionSchemaMetadata.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 *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall) Do(opts ...googleapi.CallOption) (*ConnectionSchemaMetadata, error) { +// *ListLocationsResponse.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 *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7579,7 +6493,7 @@ func (c *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall) Do(opts .. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ConnectionSchemaMetadata{ + ret := &ListLocationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7590,106 +6504,109 @@ func (c *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall) Do(opts .. if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.getConnectionSchemaMetadata", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsConnectionsGetIamPolicyCall struct { - s *Service - resource string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +// 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 *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) 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) + } } -// GetIamPolicy: Gets the access control policy for a resource. Returns an -// empty policy if the resource exists and does not have a policy set. +type ProjectsLocationsUpdateRegionalSettingsCall struct { + s *Service + name string + regionalsettings *RegionalSettings + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// UpdateRegionalSettings: Update the settings of a region. // -// - 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 *ProjectsLocationsConnectionsService) GetIamPolicy(resource string) *ProjectsLocationsConnectionsGetIamPolicyCall { - c := &ProjectsLocationsConnectionsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource +// - name: Output only. Resource name of the Connection. Format: +// projects/{project}/locations/{location}/regionalSettings. +func (r *ProjectsLocationsService) UpdateRegionalSettings(name string, regionalsettings *RegionalSettings) *ProjectsLocationsUpdateRegionalSettingsCall { + c := &ProjectsLocationsUpdateRegionalSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.regionalsettings = regionalsettings 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 *ProjectsLocationsConnectionsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsConnectionsGetIamPolicyCall { - c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) +// UpdateMask sets the optional parameter "updateMask": Required. The list of +// fields to update. +func (c *ProjectsLocationsUpdateRegionalSettingsCall) UpdateMask(updateMask string) *ProjectsLocationsUpdateRegionalSettingsCall { + 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 *ProjectsLocationsConnectionsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsGetIamPolicyCall { +func (c *ProjectsLocationsUpdateRegionalSettingsCall) Fields(s ...googleapi.Field) *ProjectsLocationsUpdateRegionalSettingsCall { 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 *ProjectsLocationsConnectionsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsGetIamPolicyCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsConnectionsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsConnectionsGetIamPolicyCall { +func (c *ProjectsLocationsUpdateRegionalSettingsCall) Context(ctx context.Context) *ProjectsLocationsUpdateRegionalSettingsCall { 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 *ProjectsLocationsConnectionsGetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsUpdateRegionalSettingsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsConnectionsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) +func (c *ProjectsLocationsUpdateRegionalSettingsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.regionalsettings) + if err != nil { + return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.getIamPolicy", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.updateRegionalSettings", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "connectors.projects.locations.connections.getIamPolicy" call. +// Do executes the "connectors.projects.locations.updateRegionalSettings" call. // Any non-2xx status code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) in +// *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 *ProjectsLocationsConnectionsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { +func (c *ProjectsLocationsUpdateRegionalSettingsCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7708,7 +6625,7 @@ func (c *ProjectsLocationsConnectionsGetIamPolicyCall) Do(opts ...googleapi.Call if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Policy{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7719,107 +6636,72 @@ func (c *ProjectsLocationsConnectionsGetIamPolicyCall) Do(opts ...googleapi.Call if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.getIamPolicy", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.updateRegionalSettings", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsConnectionsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists Connections in a given project and location. -// -// - parent: Parent resource of the Connection, of the form: -// `projects/*/locations/*`. -func (r *ProjectsLocationsConnectionsService) List(parent string) *ProjectsLocationsConnectionsListCall { - c := &ProjectsLocationsConnectionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Filter sets the optional parameter "filter": Filter. -func (c *ProjectsLocationsConnectionsListCall) Filter(filter string) *ProjectsLocationsConnectionsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// OrderBy sets the optional parameter "orderBy": Order by parameters. -func (c *ProjectsLocationsConnectionsListCall) OrderBy(orderBy string) *ProjectsLocationsConnectionsListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageSize sets the optional parameter "pageSize": Page size. -func (c *ProjectsLocationsConnectionsListCall) PageSize(pageSize int64) *ProjectsLocationsConnectionsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c +type ProjectsLocationsConnectionsCreateCall struct { + s *Service + parent string + connection *Connection + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// PageToken sets the optional parameter "pageToken": Page token. -func (c *ProjectsLocationsConnectionsListCall) PageToken(pageToken string) *ProjectsLocationsConnectionsListCall { - c.urlParams_.Set("pageToken", pageToken) +// Create: Creates a new Connection in a given project and location. +// +// - parent: Parent resource of the Connection, of the form: +// `projects/*/locations/*`. +func (r *ProjectsLocationsConnectionsService) Create(parent string, connection *Connection) *ProjectsLocationsConnectionsCreateCall { + c := &ProjectsLocationsConnectionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.connection = connection return c } -// View sets the optional parameter "view": Specifies which fields of the -// Connection are returned in the response. Defaults to `BASIC` view. -// -// Possible values: -// -// "CONNECTION_VIEW_UNSPECIFIED" - CONNECTION_UNSPECIFIED. -// "BASIC" - Do not include runtime required configs. -// "FULL" - Include runtime required configs. -func (c *ProjectsLocationsConnectionsListCall) View(view string) *ProjectsLocationsConnectionsListCall { - c.urlParams_.Set("view", view) +// ConnectionId sets the optional parameter "connectionId": Required. +// Identifier to assign to the Connection. Must be unique within scope of the +// parent resource. +func (c *ProjectsLocationsConnectionsCreateCall) ConnectionId(connectionId string) *ProjectsLocationsConnectionsCreateCall { + c.urlParams_.Set("connectionId", connectionId) 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 *ProjectsLocationsConnectionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsListCall { +func (c *ProjectsLocationsConnectionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsCreateCall { 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 *ProjectsLocationsConnectionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsListCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsConnectionsListCall) Context(ctx context.Context) *ProjectsLocationsConnectionsListCall { +func (c *ProjectsLocationsConnectionsCreateCall) Context(ctx context.Context) *ProjectsLocationsConnectionsCreateCall { 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 *ProjectsLocationsConnectionsListCall) Header() http.Header { +func (c *ProjectsLocationsConnectionsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsConnectionsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) +func (c *ProjectsLocationsConnectionsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.connection) + if err != nil { + return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/connections") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -7827,17 +6709,16 @@ func (c *ProjectsLocationsConnectionsListCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.create", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "connectors.projects.locations.connections.list" call. +// Do executes the "connectors.projects.locations.connections.create" call. // Any non-2xx status code is an error. Response headers are in either -// *ListConnectionsResponse.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 *ProjectsLocationsConnectionsListCall) Do(opts ...googleapi.CallOption) (*ListConnectionsResponse, error) { +// *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 *ProjectsLocationsConnectionsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7856,7 +6737,7 @@ func (c *ProjectsLocationsConnectionsListCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListConnectionsResponse{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7867,102 +6748,74 @@ func (c *ProjectsLocationsConnectionsListCall) Do(opts ...googleapi.CallOption) if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.create", "response", internallog.HTTPResponse(res, b)) 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 *ProjectsLocationsConnectionsListCall) Pages(ctx context.Context, f func(*ListConnectionsResponse) 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 ProjectsLocationsConnectionsListenEventCall struct { - s *Service - resourcePath string - listeneventrequest *ListenEventRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsConnectionsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// ListenEvent: ListenEvent listens to the event. +// Delete: Deletes a single Connection. // -// - resourcePath: Resource path for request. -func (r *ProjectsLocationsConnectionsService) ListenEvent(resourcePath string, listeneventrequest *ListenEventRequest) *ProjectsLocationsConnectionsListenEventCall { - c := &ProjectsLocationsConnectionsListenEventCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resourcePath = resourcePath - c.listeneventrequest = listeneventrequest +// - name: Resource name of the form: `projects/*/locations/*/connections/*`. +func (r *ProjectsLocationsConnectionsService) Delete(name string) *ProjectsLocationsConnectionsDeleteCall { + c := &ProjectsLocationsConnectionsDeleteCall{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 *ProjectsLocationsConnectionsListenEventCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsListenEventCall { +func (c *ProjectsLocationsConnectionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsConnectionsListenEventCall) Context(ctx context.Context) *ProjectsLocationsConnectionsListenEventCall { +func (c *ProjectsLocationsConnectionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsConnectionsDeleteCall { 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 *ProjectsLocationsConnectionsListenEventCall) Header() http.Header { +func (c *ProjectsLocationsConnectionsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsConnectionsListenEventCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.listeneventrequest) - if err != nil { - return nil, err - } +func (c *ProjectsLocationsConnectionsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resourcePath}:listenEvent") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resourcePath": c.resourcePath, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.listenEvent", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "connectors.projects.locations.connections.listenEvent" call. +// Do executes the "connectors.projects.locations.connections.delete" call. // Any non-2xx status code is an error. Response headers are in either -// *ListenEventResponse.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 *ProjectsLocationsConnectionsListenEventCall) Do(opts ...googleapi.CallOption) (*ListenEventResponse, error) { +// *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 *ProjectsLocationsConnectionsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7981,7 +6834,7 @@ func (c *ProjectsLocationsConnectionsListenEventCall) Do(opts ...googleapi.CallO if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListenEventResponse{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7992,76 +6845,82 @@ func (c *ProjectsLocationsConnectionsListenEventCall) Do(opts ...googleapi.CallO if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.listenEvent", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsConnectionsPatchCall struct { - s *Service - name string - connection *Connection - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsConnectionsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Patch: Updates the parameters of a single Connection. +// Get: Gets details of a single Connection. // -// - name: Output only. Resource name of the Connection. Format: -// projects/{project}/locations/{location}/connections/{connection}. -func (r *ProjectsLocationsConnectionsService) Patch(name string, connection *Connection) *ProjectsLocationsConnectionsPatchCall { - c := &ProjectsLocationsConnectionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Resource name of the form: `projects/*/locations/*/connections/*`. +func (r *ProjectsLocationsConnectionsService) Get(name string) *ProjectsLocationsConnectionsGetCall { + c := &ProjectsLocationsConnectionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.connection = connection return c } -// UpdateMask sets the optional parameter "updateMask": Required. You can -// modify only the fields listed below. To lock/unlock a connection: * -// `lock_config` To suspend/resume a connection: * `suspended` To update the -// connection details: * `description` * `labels` * `connector_version` * -// `config_variables` * `auth_config` * `destination_configs` * `node_config` * -// `log_config` * `ssl_config` * `eventing_enablement_type` * `eventing_config` -// * `auth_override_enabled` -func (c *ProjectsLocationsConnectionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsConnectionsPatchCall { - c.urlParams_.Set("updateMask", updateMask) +// View sets the optional parameter "view": Specifies which fields of the +// Connection are returned in the response. Defaults to `BASIC` view. +// +// Possible values: +// +// "CONNECTION_VIEW_UNSPECIFIED" - CONNECTION_UNSPECIFIED. +// "BASIC" - Do not include runtime required configs. +// "FULL" - Include runtime required configs. +func (c *ProjectsLocationsConnectionsGetCall) View(view string) *ProjectsLocationsConnectionsGetCall { + 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 *ProjectsLocationsConnectionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsPatchCall { +func (c *ProjectsLocationsConnectionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsGetCall { 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 *ProjectsLocationsConnectionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsConnectionsPatchCall) Context(ctx context.Context) *ProjectsLocationsConnectionsPatchCall { +func (c *ProjectsLocationsConnectionsGetCall) Context(ctx context.Context) *ProjectsLocationsConnectionsGetCall { 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 *ProjectsLocationsConnectionsPatchCall) Header() http.Header { +func (c *ProjectsLocationsConnectionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsConnectionsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.connection) - if err != nil { - return nil, err +func (c *ProjectsLocationsConnectionsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } @@ -8069,16 +6928,16 @@ func (c *ProjectsLocationsConnectionsPatchCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.patch", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "connectors.projects.locations.connections.patch" call. +// Do executes the "connectors.projects.locations.connections.get" 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 +// *Connection.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 *ProjectsLocationsConnectionsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsConnectionsGetCall) Do(opts ...googleapi.CallOption) (*Connection, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8097,7 +6956,7 @@ func (c *ProjectsLocationsConnectionsPatchCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &Connection{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8108,64 +6967,72 @@ func (c *ProjectsLocationsConnectionsPatchCall) Do(opts ...googleapi.CallOption) if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.patch", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsConnectionsRepairEventingCall struct { - s *Service - name string - repaireventingrequest *RepairEventingRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// RepairEventing: RepaiEventing tries to repair eventing related event -// subscriptions. -// -// - name: Resource name of the form: `projects/*/locations/*/connections/*`. -func (r *ProjectsLocationsConnectionsService) RepairEventing(name string, repaireventingrequest *RepairEventingRequest) *ProjectsLocationsConnectionsRepairEventingCall { - c := &ProjectsLocationsConnectionsRepairEventingCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// GetConnectionSchemaMetadata: Gets schema metadata of a connection. +// SchemaMetadata is a singleton resource for each connection. +// +// - name: Connection name Format: +// projects/{project}/locations/{location}/connections/{connection}/connection +// SchemaMetadata. +func (r *ProjectsLocationsConnectionsService) GetConnectionSchemaMetadata(name string) *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall { + c := &ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.repaireventingrequest = repaireventingrequest 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 *ProjectsLocationsConnectionsRepairEventingCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsRepairEventingCall { +func (c *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall { 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 *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsConnectionsRepairEventingCall) Context(ctx context.Context) *ProjectsLocationsConnectionsRepairEventingCall { +func (c *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall) Context(ctx context.Context) *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall { 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 *ProjectsLocationsConnectionsRepairEventingCall) Header() http.Header { +func (c *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsConnectionsRepairEventingCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.repaireventingrequest) - if err != nil { - return nil, err +func (c *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:repairEventing") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } @@ -8173,16 +7040,17 @@ func (c *ProjectsLocationsConnectionsRepairEventingCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.repairEventing", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.getConnectionSchemaMetadata", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "connectors.projects.locations.connections.repairEventing" call. +// Do executes the "connectors.projects.locations.connections.getConnectionSchemaMetadata" 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 *ProjectsLocationsConnectionsRepairEventingCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// *ConnectionSchemaMetadata.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 *ProjectsLocationsConnectionsGetConnectionSchemaMetadataCall) Do(opts ...googleapi.CallOption) (*ConnectionSchemaMetadata, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8201,7 +7069,7 @@ func (c *ProjectsLocationsConnectionsRepairEventingCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &ConnectionSchemaMetadata{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8212,53 +7080,52 @@ func (c *ProjectsLocationsConnectionsRepairEventingCall) Do(opts ...googleapi.Ca if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.repairEventing", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.getConnectionSchemaMetadata", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsConnectionsSearchCall struct { +type ProjectsLocationsConnectionsGetIamPolicyCall struct { s *Service - name string + resource string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// Search: Returns Top matching Connections for a given query. +// GetIamPolicy: Gets the access control policy for a resource. Returns an +// empty policy if the resource exists and does not have a policy set. // -// - name: Parent resource of the Connection, of the form: -// `projects/*/locations/*/connections`. -func (r *ProjectsLocationsConnectionsService) Search(name string) *ProjectsLocationsConnectionsSearchCall { - c := &ProjectsLocationsConnectionsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// PageSize sets the optional parameter "pageSize": The number of top matching -// connectors to return -func (c *ProjectsLocationsConnectionsSearchCall) PageSize(pageSize int64) *ProjectsLocationsConnectionsSearchCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": page_token -func (c *ProjectsLocationsConnectionsSearchCall) PageToken(pageToken string) *ProjectsLocationsConnectionsSearchCall { - c.urlParams_.Set("pageToken", pageToken) +// - 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 *ProjectsLocationsConnectionsService) GetIamPolicy(resource string) *ProjectsLocationsConnectionsGetIamPolicyCall { + c := &ProjectsLocationsConnectionsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource return c } -// Query sets the optional parameter "query": Required. The query against which -// the search needs to be done. -func (c *ProjectsLocationsConnectionsSearchCall) Query(query string) *ProjectsLocationsConnectionsSearchCall { - c.urlParams_.Set("query", query) +// 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 *ProjectsLocationsConnectionsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsConnectionsGetIamPolicyCall { + 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 *ProjectsLocationsConnectionsSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsSearchCall { +func (c *ProjectsLocationsConnectionsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -8266,34 +7133,34 @@ func (c *ProjectsLocationsConnectionsSearchCall) Fields(s ...googleapi.Field) *P // 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 *ProjectsLocationsConnectionsSearchCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsSearchCall { +func (c *ProjectsLocationsConnectionsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsGetIamPolicyCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsConnectionsSearchCall) Context(ctx context.Context) *ProjectsLocationsConnectionsSearchCall { +func (c *ProjectsLocationsConnectionsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsConnectionsGetIamPolicyCall { 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 *ProjectsLocationsConnectionsSearchCall) Header() http.Header { +func (c *ProjectsLocationsConnectionsGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsConnectionsSearchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsConnectionsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:search") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -8301,19 +7168,18 @@ func (c *ProjectsLocationsConnectionsSearchCall) doRequest(alt string) (*http.Re } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "resource": c.resource, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.search", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.getIamPolicy", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "connectors.projects.locations.connections.search" call. +// Do executes the "connectors.projects.locations.connections.getIamPolicy" call. // Any non-2xx status code is an error. Response headers are in either -// *SearchConnectionsResponse.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 *ProjectsLocationsConnectionsSearchCall) Do(opts ...googleapi.CallOption) (*SearchConnectionsResponse, error) { +// *Policy.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 *ProjectsLocationsConnectionsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8332,7 +7198,7 @@ func (c *ProjectsLocationsConnectionsSearchCall) Do(opts ...googleapi.CallOption if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &SearchConnectionsResponse{ + ret := &Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8343,105 +7209,125 @@ func (c *ProjectsLocationsConnectionsSearchCall) Do(opts ...googleapi.CallOption if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.search", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.getIamPolicy", "response", internallog.HTTPResponse(res, b)) 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 *ProjectsLocationsConnectionsSearchCall) Pages(ctx context.Context, f func(*SearchConnectionsResponse) 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 ProjectsLocationsConnectionsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -type ProjectsLocationsConnectionsSetIamPolicyCall struct { - s *Service - resource string - setiampolicyrequest *SetIamPolicyRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// List: Lists Connections in a given project and location. +// +// - parent: Parent resource of the Connection, of the form: +// `projects/*/locations/*`. +func (r *ProjectsLocationsConnectionsService) List(parent string) *ProjectsLocationsConnectionsListCall { + c := &ProjectsLocationsConnectionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c } -// SetIamPolicy: Sets the access control policy on the specified resource. -// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, -// and `PERMISSION_DENIED` errors. +// Filter sets the optional parameter "filter": Filter. +func (c *ProjectsLocationsConnectionsListCall) Filter(filter string) *ProjectsLocationsConnectionsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": Order by parameters. +func (c *ProjectsLocationsConnectionsListCall) OrderBy(orderBy string) *ProjectsLocationsConnectionsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": Page size. +func (c *ProjectsLocationsConnectionsListCall) PageSize(pageSize int64) *ProjectsLocationsConnectionsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Page token. +func (c *ProjectsLocationsConnectionsListCall) PageToken(pageToken string) *ProjectsLocationsConnectionsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// View sets the optional parameter "view": Specifies which fields of the +// Connection are returned in the response. Defaults to `BASIC` view. // -// - 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 *ProjectsLocationsConnectionsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsConnectionsSetIamPolicyCall { - c := &ProjectsLocationsConnectionsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.setiampolicyrequest = setiampolicyrequest +// Possible values: +// +// "CONNECTION_VIEW_UNSPECIFIED" - CONNECTION_UNSPECIFIED. +// "BASIC" - Do not include runtime required configs. +// "FULL" - Include runtime required configs. +func (c *ProjectsLocationsConnectionsListCall) View(view string) *ProjectsLocationsConnectionsListCall { + 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 *ProjectsLocationsConnectionsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsSetIamPolicyCall { +func (c *ProjectsLocationsConnectionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsListCall { 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 *ProjectsLocationsConnectionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsConnectionsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsConnectionsSetIamPolicyCall { +func (c *ProjectsLocationsConnectionsListCall) Context(ctx context.Context) *ProjectsLocationsConnectionsListCall { 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 *ProjectsLocationsConnectionsSetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsConnectionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsConnectionsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.setiampolicyrequest) - if err != nil { - return nil, err +func (c *ProjectsLocationsConnectionsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/connections") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.setIamPolicy", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "connectors.projects.locations.connections.setIamPolicy" call. +// Do executes the "connectors.projects.locations.connections.list" call. // Any non-2xx status code is an error. Response headers are in either -// *Policy.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 *ProjectsLocationsConnectionsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { +// *ListConnectionsResponse.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 *ProjectsLocationsConnectionsListCall) Do(opts ...googleapi.CallOption) (*ListConnectionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8460,7 +7346,7 @@ func (c *ProjectsLocationsConnectionsSetIamPolicyCall) Do(opts ...googleapi.Call if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Policy{ + ret := &ListConnectionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8471,68 +7357,82 @@ func (c *ProjectsLocationsConnectionsSetIamPolicyCall) Do(opts ...googleapi.Call if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.setIamPolicy", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsConnectionsTestIamPermissionsCall struct { - s *Service - resource string - testiampermissionsrequest *TestIamPermissionsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// 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 *ProjectsLocationsConnectionsListCall) Pages(ctx context.Context, f func(*ListConnectionsResponse) 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) + } } -// 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. +type ProjectsLocationsConnectionsListenEventCall struct { + s *Service + resourcePath string + listeneventrequest *ListenEventRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// ListenEvent: ListenEvent listens to the event. // -// - 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 *ProjectsLocationsConnectionsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsConnectionsTestIamPermissionsCall { - c := &ProjectsLocationsConnectionsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.testiampermissionsrequest = testiampermissionsrequest +// - resourcePath: Resource path for request. +func (r *ProjectsLocationsConnectionsService) ListenEvent(resourcePath string, listeneventrequest *ListenEventRequest) *ProjectsLocationsConnectionsListenEventCall { + c := &ProjectsLocationsConnectionsListenEventCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resourcePath = resourcePath + c.listeneventrequest = listeneventrequest 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 *ProjectsLocationsConnectionsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsTestIamPermissionsCall { +func (c *ProjectsLocationsConnectionsListenEventCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsListenEventCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsConnectionsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsConnectionsTestIamPermissionsCall { +func (c *ProjectsLocationsConnectionsListenEventCall) Context(ctx context.Context) *ProjectsLocationsConnectionsListenEventCall { 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 *ProjectsLocationsConnectionsTestIamPermissionsCall) Header() http.Header { +func (c *ProjectsLocationsConnectionsListenEventCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsConnectionsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsConnectionsListenEventCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.testiampermissionsrequest) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.listeneventrequest) 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 := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resourcePath}:listenEvent") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -8540,19 +7440,19 @@ func (c *ProjectsLocationsConnectionsTestIamPermissionsCall) doRequest(alt strin } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "resourcePath": c.resourcePath, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.testIamPermissions", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.listenEvent", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "connectors.projects.locations.connections.testIamPermissions" call. +// Do executes the "connectors.projects.locations.connections.listenEvent" call. // Any non-2xx status code is an error. Response headers are in either -// *TestIamPermissionsResponse.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 *ProjectsLocationsConnectionsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { +// *ListenEventResponse.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 *ProjectsLocationsConnectionsListenEventCall) Do(opts ...googleapi.CallOption) (*ListenEventResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8571,7 +7471,7 @@ func (c *ProjectsLocationsConnectionsTestIamPermissionsCall) Do(opts ...googleap if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &TestIamPermissionsResponse{ + ret := &ListenEventResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8582,77 +7482,76 @@ func (c *ProjectsLocationsConnectionsTestIamPermissionsCall) Do(opts ...googleap if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.testIamPermissions", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.listenEvent", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsConnectionsConnectionSchemaMetadataGetActionCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsConnectionsPatchCall struct { + s *Service + name string + connection *Connection + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// GetAction: Get action. +// Patch: Updates the parameters of a single Connection. // -// - name: Resource name format: -// projects/{project}/locations/{location}/connections/{connection}/connection -// SchemaMetadata. -func (r *ProjectsLocationsConnectionsConnectionSchemaMetadataService) GetAction(name string) *ProjectsLocationsConnectionsConnectionSchemaMetadataGetActionCall { - c := &ProjectsLocationsConnectionsConnectionSchemaMetadataGetActionCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Output only. Resource name of the Connection. Format: +// projects/{project}/locations/{location}/connections/{connection}. +func (r *ProjectsLocationsConnectionsService) Patch(name string, connection *Connection) *ProjectsLocationsConnectionsPatchCall { + c := &ProjectsLocationsConnectionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.connection = connection return c } -// ActionId sets the optional parameter "actionId": Required. Id of the action. -func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataGetActionCall) ActionId(actionId string) *ProjectsLocationsConnectionsConnectionSchemaMetadataGetActionCall { - c.urlParams_.Set("actionId", actionId) +// UpdateMask sets the optional parameter "updateMask": Required. You can +// modify only the fields listed below. To lock/unlock a connection: * +// `lock_config` To suspend/resume a connection: * `suspended` To update the +// connection details: * `description` * `labels` * `connector_version` * +// `config_variables` * `auth_config` * `destination_configs` * `node_config` * +// `log_config` * `ssl_config` * `eventing_enablement_type` * `eventing_config` +// * `auth_override_enabled` +func (c *ProjectsLocationsConnectionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsConnectionsPatchCall { + 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 *ProjectsLocationsConnectionsConnectionSchemaMetadataGetActionCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsConnectionSchemaMetadataGetActionCall { +func (c *ProjectsLocationsConnectionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsPatchCall { 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 *ProjectsLocationsConnectionsConnectionSchemaMetadataGetActionCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsConnectionSchemaMetadataGetActionCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataGetActionCall) Context(ctx context.Context) *ProjectsLocationsConnectionsConnectionSchemaMetadataGetActionCall { +func (c *ProjectsLocationsConnectionsPatchCall) Context(ctx context.Context) *ProjectsLocationsConnectionsPatchCall { 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 *ProjectsLocationsConnectionsConnectionSchemaMetadataGetActionCall) Header() http.Header { +func (c *ProjectsLocationsConnectionsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataGetActionCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) +func (c *ProjectsLocationsConnectionsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.connection) + if err != nil { + return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:getAction") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } @@ -8660,16 +7559,16 @@ func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataGetActionCall) doRe googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.connectionSchemaMetadata.getAction", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.patch", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "connectors.projects.locations.connections.connectionSchemaMetadata.getAction" call. +// Do executes the "connectors.projects.locations.connections.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 *ProjectsLocationsConnectionsConnectionSchemaMetadataGetActionCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsConnectionsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8699,78 +7598,64 @@ func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataGetActionCall) Do(o if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.connectionSchemaMetadata.getAction", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.patch", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsConnectionsConnectionSchemaMetadataGetEntityTypeCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsConnectionsRepairEventingCall struct { + s *Service + name string + repaireventingrequest *RepairEventingRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// GetEntityType: Get entity type. +// RepairEventing: RepaiEventing tries to repair eventing related event +// subscriptions. // -// - name: Resource name format: -// projects/{project}/locations/{location}/connections/{connection}/connection -// SchemaMetadata. -func (r *ProjectsLocationsConnectionsConnectionSchemaMetadataService) GetEntityType(name string) *ProjectsLocationsConnectionsConnectionSchemaMetadataGetEntityTypeCall { - c := &ProjectsLocationsConnectionsConnectionSchemaMetadataGetEntityTypeCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Resource name of the form: `projects/*/locations/*/connections/*`. +func (r *ProjectsLocationsConnectionsService) RepairEventing(name string, repaireventingrequest *RepairEventingRequest) *ProjectsLocationsConnectionsRepairEventingCall { + c := &ProjectsLocationsConnectionsRepairEventingCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - return c -} - -// EntityId sets the optional parameter "entityId": Required. Id of the entity -// type. -func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataGetEntityTypeCall) EntityId(entityId string) *ProjectsLocationsConnectionsConnectionSchemaMetadataGetEntityTypeCall { - c.urlParams_.Set("entityId", entityId) + c.repaireventingrequest = repaireventingrequest 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 *ProjectsLocationsConnectionsConnectionSchemaMetadataGetEntityTypeCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsConnectionSchemaMetadataGetEntityTypeCall { +func (c *ProjectsLocationsConnectionsRepairEventingCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsRepairEventingCall { 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 *ProjectsLocationsConnectionsConnectionSchemaMetadataGetEntityTypeCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsConnectionSchemaMetadataGetEntityTypeCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataGetEntityTypeCall) Context(ctx context.Context) *ProjectsLocationsConnectionsConnectionSchemaMetadataGetEntityTypeCall { +func (c *ProjectsLocationsConnectionsRepairEventingCall) Context(ctx context.Context) *ProjectsLocationsConnectionsRepairEventingCall { 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 *ProjectsLocationsConnectionsConnectionSchemaMetadataGetEntityTypeCall) Header() http.Header { +func (c *ProjectsLocationsConnectionsRepairEventingCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataGetEntityTypeCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) +func (c *ProjectsLocationsConnectionsRepairEventingCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.repaireventingrequest) + if err != nil { + return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:getEntityType") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:repairEventing") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -8778,16 +7663,16 @@ func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataGetEntityTypeCall) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.connectionSchemaMetadata.getEntityType", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.repairEventing", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "connectors.projects.locations.connections.connectionSchemaMetadata.getEntityType" call. +// Do executes the "connectors.projects.locations.connections.repairEventing" 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 *ProjectsLocationsConnectionsConnectionSchemaMetadataGetEntityTypeCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsConnectionsRepairEventingCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8817,11 +7702,11 @@ func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataGetEntityTypeCall) if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.connectionSchemaMetadata.getEntityType", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.repairEventing", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall struct { +type ProjectsLocationsConnectionsSearchCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -8830,53 +7715,40 @@ type ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall struct header_ http.Header } -// ListActions: List actions. +// Search: Returns Top matching Connections for a given query. // -// - name: Resource name format. -// projects/{project}/locations/{location}/connections/{connection}/connection -// SchemaMetadata. -func (r *ProjectsLocationsConnectionsConnectionSchemaMetadataService) ListActions(name string) *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall { - c := &ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Parent resource of the Connection, of the form: +// `projects/*/locations/*/connections`. +func (r *ProjectsLocationsConnectionsService) Search(name string) *ProjectsLocationsConnectionsSearchCall { + c := &ProjectsLocationsConnectionsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Filter sets the optional parameter "filter": Required. Filter Wildcards are -// not supported in the filter currently. -func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall) Filter(filter string) *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": Page size. If unspecified, -// at most 50 actions will be returned. -func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall) PageSize(pageSize int64) *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall { +// PageSize sets the optional parameter "pageSize": The number of top matching +// connectors to return +func (c *ProjectsLocationsConnectionsSearchCall) PageSize(pageSize int64) *ProjectsLocationsConnectionsSearchCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": Page token. -func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall) PageToken(pageToken string) *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall { +// PageToken sets the optional parameter "pageToken": page_token +func (c *ProjectsLocationsConnectionsSearchCall) PageToken(pageToken string) *ProjectsLocationsConnectionsSearchCall { c.urlParams_.Set("pageToken", pageToken) return c } -// View sets the optional parameter "view": Specifies which fields are returned -// in response. Defaults to BASIC view. -// -// Possible values: -// -// "VIEW_UNSPECIFIED" -// "BASIC" -func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall) View(view string) *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall { - c.urlParams_.Set("view", view) +// Query sets the optional parameter "query": Required. The query against which +// the search needs to be done. +func (c *ProjectsLocationsConnectionsSearchCall) Query(query string) *ProjectsLocationsConnectionsSearchCall { + c.urlParams_.Set("query", query) 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 *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall { +func (c *ProjectsLocationsConnectionsSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsSearchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -8884,34 +7756,34 @@ func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall) Fi // 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 *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall { +func (c *ProjectsLocationsConnectionsSearchCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsSearchCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall) Context(ctx context.Context) *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall { +func (c *ProjectsLocationsConnectionsSearchCall) Context(ctx context.Context) *ProjectsLocationsConnectionsSearchCall { 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 *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall) Header() http.Header { +func (c *ProjectsLocationsConnectionsSearchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsConnectionsSearchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:listActions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:search") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -8921,17 +7793,17 @@ func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall) do googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.connectionSchemaMetadata.listActions", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.search", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "connectors.projects.locations.connections.connectionSchemaMetadata.listActions" call. +// Do executes the "connectors.projects.locations.connections.search" call. // Any non-2xx status code is an error. Response headers are in either -// *ListActionsResponse.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 *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall) Do(opts ...googleapi.CallOption) (*ListActionsResponse, error) { +// *SearchConnectionsResponse.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 *ProjectsLocationsConnectionsSearchCall) Do(opts ...googleapi.CallOption) (*SearchConnectionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8950,7 +7822,7 @@ func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall) Do if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListActionsResponse{ + ret := &SearchConnectionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8961,14 +7833,14 @@ func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall) Do if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.connectionSchemaMetadata.listActions", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.search", "response", internallog.HTTPResponse(res, b)) 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 *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall) Pages(ctx context.Context, f func(*ListActionsResponse) error) error { +func (c *ProjectsLocationsConnectionsSearchCall) Pages(ctx context.Context, f func(*SearchConnectionsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -8986,117 +7858,80 @@ func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall) Pa } } -type ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// ListEntityTypes: List entity types. -// -// - name: Resource name format: -// projects/{project}/locations/{location}/connections/{connection}/connection -// SchemaMetadata. -func (r *ProjectsLocationsConnectionsConnectionSchemaMetadataService) ListEntityTypes(name string) *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall { - c := &ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Filter sets the optional parameter "filter": Required. Filter Wildcards are -// not supported in the filter currently. -func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall) Filter(filter string) *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": Page size. If unspecified, -// at most 50 entity types will be returned. -func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall) PageSize(pageSize int64) *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": Page token. -func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall) PageToken(pageToken string) *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall { - c.urlParams_.Set("pageToken", pageToken) - return c +type ProjectsLocationsConnectionsSetIamPolicyCall struct { + s *Service + resource string + setiampolicyrequest *SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// View sets the optional parameter "view": Specifies which fields are returned -// in response. Defaults to BASIC view. -// -// Possible values: +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, +// and `PERMISSION_DENIED` errors. // -// "VIEW_UNSPECIFIED" -// "BASIC" -func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall) View(view string) *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall { - c.urlParams_.Set("view", view) +// - 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 *ProjectsLocationsConnectionsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsConnectionsSetIamPolicyCall { + c := &ProjectsLocationsConnectionsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.setiampolicyrequest = setiampolicyrequest 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 *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall { +func (c *ProjectsLocationsConnectionsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsSetIamPolicyCall { 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 *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall) Context(ctx context.Context) *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall { +func (c *ProjectsLocationsConnectionsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsConnectionsSetIamPolicyCall { 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 *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall) Header() http.Header { +func (c *ProjectsLocationsConnectionsSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) +func (c *ProjectsLocationsConnectionsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.setiampolicyrequest) + if err != nil { + return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:listEntityTypes") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + 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, + "resource": c.resource, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.connectionSchemaMetadata.listEntityTypes", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.setIamPolicy", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "connectors.projects.locations.connections.connectionSchemaMetadata.listEntityTypes" call. +// Do executes the "connectors.projects.locations.connections.setIamPolicy" call. // Any non-2xx status code is an error. Response headers are in either -// *ListEntityTypesResponse.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 *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall) Do(opts ...googleapi.CallOption) (*ListEntityTypesResponse, error) { +// *Policy.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 *ProjectsLocationsConnectionsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9115,7 +7950,7 @@ func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListEntityTypesResponse{ + ret := &Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -9126,84 +7961,68 @@ func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.connectionSchemaMetadata.listEntityTypes", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.setIamPolicy", "response", internallog.HTTPResponse(res, b)) 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 *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall) Pages(ctx context.Context, f func(*ListEntityTypesResponse) 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 ProjectsLocationsConnectionsConnectionSchemaMetadataRefreshCall struct { - s *Service - name string - refreshconnectionschemametadatarequest *RefreshConnectionSchemaMetadataRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsConnectionsTestIamPermissionsCall struct { + s *Service + resource string + testiampermissionsrequest *TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Refresh: Refresh runtime schema of a connection. +// 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. // -// - name: Resource name. Format: -// projects/{project}/locations/{location}/connections/{connection}/connection -// SchemaMetadata. -func (r *ProjectsLocationsConnectionsConnectionSchemaMetadataService) Refresh(name string, refreshconnectionschemametadatarequest *RefreshConnectionSchemaMetadataRequest) *ProjectsLocationsConnectionsConnectionSchemaMetadataRefreshCall { - c := &ProjectsLocationsConnectionsConnectionSchemaMetadataRefreshCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.refreshconnectionschemametadatarequest = refreshconnectionschemametadatarequest +// - 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 *ProjectsLocationsConnectionsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsConnectionsTestIamPermissionsCall { + c := &ProjectsLocationsConnectionsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.testiampermissionsrequest = testiampermissionsrequest 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 *ProjectsLocationsConnectionsConnectionSchemaMetadataRefreshCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsConnectionSchemaMetadataRefreshCall { +func (c *ProjectsLocationsConnectionsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataRefreshCall) Context(ctx context.Context) *ProjectsLocationsConnectionsConnectionSchemaMetadataRefreshCall { +func (c *ProjectsLocationsConnectionsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsConnectionsTestIamPermissionsCall { 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 *ProjectsLocationsConnectionsConnectionSchemaMetadataRefreshCall) Header() http.Header { +func (c *ProjectsLocationsConnectionsTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataRefreshCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsConnectionsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.refreshconnectionschemametadatarequest) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.testiampermissionsrequest) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:refresh") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -9211,18 +8030,19 @@ func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataRefreshCall) doRequ } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "resource": c.resource, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.connectionSchemaMetadata.refresh", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.testIamPermissions", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "connectors.projects.locations.connections.connectionSchemaMetadata.refresh" call. +// Do executes the "connectors.projects.locations.connections.testIamPermissions" 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 *ProjectsLocationsConnectionsConnectionSchemaMetadataRefreshCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// *TestIamPermissionsResponse.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 *ProjectsLocationsConnectionsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9241,7 +8061,7 @@ func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataRefreshCall) Do(opt if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -9252,90 +8072,94 @@ func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataRefreshCall) Do(opt if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.connectionSchemaMetadata.refresh", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.testIamPermissions", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsConnectionsEndUserAuthenticationsCreateCall struct { - s *Service - parent string - enduserauthentication *EndUserAuthentication - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsConnectionsConnectionSchemaMetadataGetActionCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Create: Creates a new EndUserAuthentication in a given project,location and -// connection. +// GetAction: Get action. // -// - parent: Parent resource of the EndUserAuthentication, of the form: -// `projects/*/locations/*/connections/*`. -func (r *ProjectsLocationsConnectionsEndUserAuthenticationsService) Create(parent string, enduserauthentication *EndUserAuthentication) *ProjectsLocationsConnectionsEndUserAuthenticationsCreateCall { - c := &ProjectsLocationsConnectionsEndUserAuthenticationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.enduserauthentication = enduserauthentication +// - name: Resource name format: +// projects/{project}/locations/{location}/connections/{connection}/connection +// SchemaMetadata. +func (r *ProjectsLocationsConnectionsConnectionSchemaMetadataService) GetAction(name string) *ProjectsLocationsConnectionsConnectionSchemaMetadataGetActionCall { + c := &ProjectsLocationsConnectionsConnectionSchemaMetadataGetActionCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } -// EndUserAuthenticationId sets the optional parameter -// "endUserAuthenticationId": Required. Identifier to assign to the -// EndUserAuthentication. Must be unique within scope of the parent resource. -func (c *ProjectsLocationsConnectionsEndUserAuthenticationsCreateCall) EndUserAuthenticationId(endUserAuthenticationId string) *ProjectsLocationsConnectionsEndUserAuthenticationsCreateCall { - c.urlParams_.Set("endUserAuthenticationId", endUserAuthenticationId) +// ActionId sets the optional parameter "actionId": Required. Id of the action. +func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataGetActionCall) ActionId(actionId string) *ProjectsLocationsConnectionsConnectionSchemaMetadataGetActionCall { + c.urlParams_.Set("actionId", actionId) 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 *ProjectsLocationsConnectionsEndUserAuthenticationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsEndUserAuthenticationsCreateCall { +func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataGetActionCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsConnectionSchemaMetadataGetActionCall { 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 *ProjectsLocationsConnectionsConnectionSchemaMetadataGetActionCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsConnectionSchemaMetadataGetActionCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsConnectionsEndUserAuthenticationsCreateCall) Context(ctx context.Context) *ProjectsLocationsConnectionsEndUserAuthenticationsCreateCall { +func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataGetActionCall) Context(ctx context.Context) *ProjectsLocationsConnectionsConnectionSchemaMetadataGetActionCall { 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 *ProjectsLocationsConnectionsEndUserAuthenticationsCreateCall) Header() http.Header { +func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataGetActionCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsConnectionsEndUserAuthenticationsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.enduserauthentication) - if err != nil { - return nil, err +func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataGetActionCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/endUserAuthentications") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:getAction") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.endUserAuthentications.create", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.connectionSchemaMetadata.getAction", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "connectors.projects.locations.connections.endUserAuthentications.create" call. +// Do executes the "connectors.projects.locations.connections.connectionSchemaMetadata.getAction" 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 *ProjectsLocationsConnectionsEndUserAuthenticationsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataGetActionCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9365,58 +8189,78 @@ func (c *ProjectsLocationsConnectionsEndUserAuthenticationsCreateCall) Do(opts . if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.endUserAuthentications.create", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.connectionSchemaMetadata.getAction", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsConnectionsEndUserAuthenticationsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsConnectionsConnectionSchemaMetadataGetEntityTypeCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a single EndUserAuthentication. +// GetEntityType: Get entity type. // -// - name: Resource name of the form: -// `projects/*/locations/*/connections/*/endUserAuthentication/*`. -func (r *ProjectsLocationsConnectionsEndUserAuthenticationsService) Delete(name string) *ProjectsLocationsConnectionsEndUserAuthenticationsDeleteCall { - c := &ProjectsLocationsConnectionsEndUserAuthenticationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Resource name format: +// projects/{project}/locations/{location}/connections/{connection}/connection +// SchemaMetadata. +func (r *ProjectsLocationsConnectionsConnectionSchemaMetadataService) GetEntityType(name string) *ProjectsLocationsConnectionsConnectionSchemaMetadataGetEntityTypeCall { + c := &ProjectsLocationsConnectionsConnectionSchemaMetadataGetEntityTypeCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } +// EntityId sets the optional parameter "entityId": Required. Id of the entity +// type. +func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataGetEntityTypeCall) EntityId(entityId string) *ProjectsLocationsConnectionsConnectionSchemaMetadataGetEntityTypeCall { + c.urlParams_.Set("entityId", entityId) + 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 *ProjectsLocationsConnectionsEndUserAuthenticationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsEndUserAuthenticationsDeleteCall { +func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataGetEntityTypeCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsConnectionSchemaMetadataGetEntityTypeCall { 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 *ProjectsLocationsConnectionsConnectionSchemaMetadataGetEntityTypeCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsConnectionSchemaMetadataGetEntityTypeCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsConnectionsEndUserAuthenticationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsConnectionsEndUserAuthenticationsDeleteCall { +func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataGetEntityTypeCall) Context(ctx context.Context) *ProjectsLocationsConnectionsConnectionSchemaMetadataGetEntityTypeCall { 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 *ProjectsLocationsConnectionsEndUserAuthenticationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataGetEntityTypeCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsConnectionsEndUserAuthenticationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataGetEntityTypeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:getEntityType") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, nil) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } @@ -9424,16 +8268,16 @@ func (c *ProjectsLocationsConnectionsEndUserAuthenticationsDeleteCall) doRequest googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.endUserAuthentications.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.connectionSchemaMetadata.getEntityType", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "connectors.projects.locations.connections.endUserAuthentications.delete" call. +// Do executes the "connectors.projects.locations.connections.connectionSchemaMetadata.getEntityType" 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 *ProjectsLocationsConnectionsEndUserAuthenticationsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataGetEntityTypeCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9463,11 +8307,11 @@ func (c *ProjectsLocationsConnectionsEndUserAuthenticationsDeleteCall) Do(opts . if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.endUserAuthentications.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.connectionSchemaMetadata.getEntityType", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsConnectionsEndUserAuthenticationsGetCall struct { +type ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -9476,28 +8320,45 @@ type ProjectsLocationsConnectionsEndUserAuthenticationsGetCall struct { header_ http.Header } -// Get: Gets details of a single EndUserAuthentication. +// ListActions: List actions. // -// - name: Resource name of the form: -// `projects/*/locations/*/connections/*/EndUserAuthentications/*`. -func (r *ProjectsLocationsConnectionsEndUserAuthenticationsService) Get(name string) *ProjectsLocationsConnectionsEndUserAuthenticationsGetCall { - c := &ProjectsLocationsConnectionsEndUserAuthenticationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Resource name format. +// projects/{project}/locations/{location}/connections/{connection}/connection +// SchemaMetadata. +func (r *ProjectsLocationsConnectionsConnectionSchemaMetadataService) ListActions(name string) *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall { + c := &ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// View sets the optional parameter "view": View of the EndUserAuthentication -// to return. +// Filter sets the optional parameter "filter": Required. Filter Wildcards are +// not supported in the filter currently. +func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall) Filter(filter string) *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": Page size. If unspecified, +// at most 50 actions will be returned. +func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall) PageSize(pageSize int64) *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Page token. +func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall) PageToken(pageToken string) *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// View sets the optional parameter "view": Specifies which fields are returned +// in response. Defaults to BASIC view. // // Possible values: // -// "END_USER_AUTHENTICATION_VIEW_UNSPECIFIED" - -// -// END_USER_AUTHENTICATION_UNSPECIFIED. -// -// "BASIC_VIEW" - Do not include secret fields. -// "FULL_VIEW" - Include secret fields. -func (c *ProjectsLocationsConnectionsEndUserAuthenticationsGetCall) View(view string) *ProjectsLocationsConnectionsEndUserAuthenticationsGetCall { +// "VIEW_UNSPECIFIED" +// "BASIC" +func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall) View(view string) *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall { c.urlParams_.Set("view", view) return c } @@ -9505,7 +8366,7 @@ func (c *ProjectsLocationsConnectionsEndUserAuthenticationsGetCall) View(view st // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsConnectionsEndUserAuthenticationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsEndUserAuthenticationsGetCall { +func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -9513,34 +8374,34 @@ func (c *ProjectsLocationsConnectionsEndUserAuthenticationsGetCall) Fields(s ... // 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 *ProjectsLocationsConnectionsEndUserAuthenticationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsEndUserAuthenticationsGetCall { +func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsConnectionsEndUserAuthenticationsGetCall) Context(ctx context.Context) *ProjectsLocationsConnectionsEndUserAuthenticationsGetCall { +func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall) Context(ctx context.Context) *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall { 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 *ProjectsLocationsConnectionsEndUserAuthenticationsGetCall) Header() http.Header { +func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsConnectionsEndUserAuthenticationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:listActions") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -9550,17 +8411,17 @@ func (c *ProjectsLocationsConnectionsEndUserAuthenticationsGetCall) doRequest(al googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.endUserAuthentications.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.connectionSchemaMetadata.listActions", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "connectors.projects.locations.connections.endUserAuthentications.get" call. +// Do executes the "connectors.projects.locations.connections.connectionSchemaMetadata.listActions" call. // Any non-2xx status code is an error. Response headers are in either -// *EndUserAuthentication.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// *ListActionsResponse.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 *ProjectsLocationsConnectionsEndUserAuthenticationsGetCall) Do(opts ...googleapi.CallOption) (*EndUserAuthentication, error) { +func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall) Do(opts ...googleapi.CallOption) (*ListActionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9579,7 +8440,7 @@ func (c *ProjectsLocationsConnectionsEndUserAuthenticationsGetCall) Do(opts ...g if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &EndUserAuthentication{ + ret := &ListActionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -9590,58 +8451,87 @@ func (c *ProjectsLocationsConnectionsEndUserAuthenticationsGetCall) Do(opts ...g if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.endUserAuthentications.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.connectionSchemaMetadata.listActions", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsConnectionsEndUserAuthenticationsListCall struct { +// 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 *ProjectsLocationsConnectionsConnectionSchemaMetadataListActionsCall) Pages(ctx context.Context, f func(*ListActionsResponse) 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 ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall struct { s *Service - parent string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: List EndUserAuthentications in a given project,location and -// connection. +// ListEntityTypes: List entity types. // -// - parent: Parent resource of the EndUserAuthentication, of the form: -// `projects/*/locations/*/connections/*`. -func (r *ProjectsLocationsConnectionsEndUserAuthenticationsService) List(parent string) *ProjectsLocationsConnectionsEndUserAuthenticationsListCall { - c := &ProjectsLocationsConnectionsEndUserAuthenticationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent +// - name: Resource name format: +// projects/{project}/locations/{location}/connections/{connection}/connection +// SchemaMetadata. +func (r *ProjectsLocationsConnectionsConnectionSchemaMetadataService) ListEntityTypes(name string) *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall { + c := &ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } -// Filter sets the optional parameter "filter": Filter. -func (c *ProjectsLocationsConnectionsEndUserAuthenticationsListCall) Filter(filter string) *ProjectsLocationsConnectionsEndUserAuthenticationsListCall { +// Filter sets the optional parameter "filter": Required. Filter Wildcards are +// not supported in the filter currently. +func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall) Filter(filter string) *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": Order by parameters. -func (c *ProjectsLocationsConnectionsEndUserAuthenticationsListCall) OrderBy(orderBy string) *ProjectsLocationsConnectionsEndUserAuthenticationsListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageSize sets the optional parameter "pageSize": Page size. -func (c *ProjectsLocationsConnectionsEndUserAuthenticationsListCall) PageSize(pageSize int64) *ProjectsLocationsConnectionsEndUserAuthenticationsListCall { +// PageSize sets the optional parameter "pageSize": Page size. If unspecified, +// at most 50 entity types will be returned. +func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall) PageSize(pageSize int64) *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": Page token. -func (c *ProjectsLocationsConnectionsEndUserAuthenticationsListCall) PageToken(pageToken string) *ProjectsLocationsConnectionsEndUserAuthenticationsListCall { +func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall) PageToken(pageToken string) *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall { c.urlParams_.Set("pageToken", pageToken) return c } +// View sets the optional parameter "view": Specifies which fields are returned +// in response. Defaults to BASIC view. +// +// Possible values: +// +// "VIEW_UNSPECIFIED" +// "BASIC" +func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall) View(view string) *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall { + 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 *ProjectsLocationsConnectionsEndUserAuthenticationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsEndUserAuthenticationsListCall { +func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -9649,34 +8539,34 @@ func (c *ProjectsLocationsConnectionsEndUserAuthenticationsListCall) Fields(s .. // 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 *ProjectsLocationsConnectionsEndUserAuthenticationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsEndUserAuthenticationsListCall { +func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsConnectionsEndUserAuthenticationsListCall) Context(ctx context.Context) *ProjectsLocationsConnectionsEndUserAuthenticationsListCall { +func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall) Context(ctx context.Context) *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall { 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 *ProjectsLocationsConnectionsEndUserAuthenticationsListCall) Header() http.Header { +func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsConnectionsEndUserAuthenticationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/endUserAuthentications") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:listEntityTypes") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -9684,19 +8574,19 @@ func (c *ProjectsLocationsConnectionsEndUserAuthenticationsListCall) doRequest(a } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.endUserAuthentications.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.connectionSchemaMetadata.listEntityTypes", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "connectors.projects.locations.connections.endUserAuthentications.list" call. +// Do executes the "connectors.projects.locations.connections.connectionSchemaMetadata.listEntityTypes" call. // Any non-2xx status code is an error. Response headers are in either -// *ListEndUserAuthenticationsResponse.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use +// *ListEntityTypesResponse.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 *ProjectsLocationsConnectionsEndUserAuthenticationsListCall) Do(opts ...googleapi.CallOption) (*ListEndUserAuthenticationsResponse, error) { +func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall) Do(opts ...googleapi.CallOption) (*ListEntityTypesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9715,7 +8605,7 @@ func (c *ProjectsLocationsConnectionsEndUserAuthenticationsListCall) Do(opts ... if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListEndUserAuthenticationsResponse{ + ret := &ListEntityTypesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -9726,14 +8616,14 @@ func (c *ProjectsLocationsConnectionsEndUserAuthenticationsListCall) Do(opts ... if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.endUserAuthentications.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.connectionSchemaMetadata.listEntityTypes", "response", internallog.HTTPResponse(res, b)) 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 *ProjectsLocationsConnectionsEndUserAuthenticationsListCall) Pages(ctx context.Context, f func(*ListEndUserAuthenticationsResponse) error) error { +func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataListEntityTypesCall) Pages(ctx context.Context, f func(*ListEntityTypesResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -9751,70 +8641,61 @@ func (c *ProjectsLocationsConnectionsEndUserAuthenticationsListCall) Pages(ctx c } } -type ProjectsLocationsConnectionsEndUserAuthenticationsPatchCall struct { - s *Service - name string - enduserauthentication *EndUserAuthentication - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsConnectionsConnectionSchemaMetadataRefreshCall struct { + s *Service + name string + refreshconnectionschemametadatarequest *RefreshConnectionSchemaMetadataRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Updates the parameters of a single EndUserAuthentication. +// Refresh: Refresh runtime schema of a connection. // -// - name: Identifier. Resource name of the EndUserAuthentication. Format: -// projects/{project}/locations/{location}/connections/{connection}/endUserAut -// hentications/{end_user_authentication}. -func (r *ProjectsLocationsConnectionsEndUserAuthenticationsService) Patch(name string, enduserauthentication *EndUserAuthentication) *ProjectsLocationsConnectionsEndUserAuthenticationsPatchCall { - c := &ProjectsLocationsConnectionsEndUserAuthenticationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Resource name. Format: +// projects/{project}/locations/{location}/connections/{connection}/connection +// SchemaMetadata. +func (r *ProjectsLocationsConnectionsConnectionSchemaMetadataService) Refresh(name string, refreshconnectionschemametadatarequest *RefreshConnectionSchemaMetadataRequest) *ProjectsLocationsConnectionsConnectionSchemaMetadataRefreshCall { + c := &ProjectsLocationsConnectionsConnectionSchemaMetadataRefreshCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.enduserauthentication = enduserauthentication - return c -} - -// UpdateMask sets the optional parameter "updateMask": Required. The list of -// fields to update. A field will be overwritten if it is in the mask. You can -// modify only the fields listed below. To update the EndUserAuthentication -// details: * `notify_endpoint_destination` -func (c *ProjectsLocationsConnectionsEndUserAuthenticationsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsConnectionsEndUserAuthenticationsPatchCall { - c.urlParams_.Set("updateMask", updateMask) + c.refreshconnectionschemametadatarequest = refreshconnectionschemametadatarequest 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 *ProjectsLocationsConnectionsEndUserAuthenticationsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsEndUserAuthenticationsPatchCall { +func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataRefreshCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsConnectionSchemaMetadataRefreshCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsConnectionsEndUserAuthenticationsPatchCall) Context(ctx context.Context) *ProjectsLocationsConnectionsEndUserAuthenticationsPatchCall { +func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataRefreshCall) Context(ctx context.Context) *ProjectsLocationsConnectionsConnectionSchemaMetadataRefreshCall { 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 *ProjectsLocationsConnectionsEndUserAuthenticationsPatchCall) Header() http.Header { +func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataRefreshCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsConnectionsEndUserAuthenticationsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataRefreshCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.enduserauthentication) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.refreshconnectionschemametadatarequest) 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 := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:refresh") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -9822,16 +8703,16 @@ func (c *ProjectsLocationsConnectionsEndUserAuthenticationsPatchCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.endUserAuthentications.patch", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.connectionSchemaMetadata.refresh", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "connectors.projects.locations.connections.endUserAuthentications.patch" call. +// Do executes the "connectors.projects.locations.connections.connectionSchemaMetadata.refresh" 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 *ProjectsLocationsConnectionsEndUserAuthenticationsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsConnectionsConnectionSchemaMetadataRefreshCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9861,7 +8742,7 @@ func (c *ProjectsLocationsConnectionsEndUserAuthenticationsPatchCall) Do(opts .. if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.endUserAuthentications.patch", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "connectors.projects.locations.connections.connectionSchemaMetadata.refresh", "response", internallog.HTTPResponse(res, b)) return ret, nil } diff --git a/content/v2.1/content-api.json b/content/v2.1/content-api.json index 00fc1ae400a..85b8e7f68a8 100644 --- a/content/v2.1/content-api.json +++ b/content/v2.1/content-api.json @@ -2294,7 +2294,7 @@ ] }, "setinventoryverificationcontact": { - "description": "Sets the inventory verification contract for the specified country.", + "description": "Sets the inventory verification contact for the specified country.", "flatPath": "{merchantId}/liasettings/{accountId}/setinventoryverificationcontact", "httpMethod": "POST", "id": "content.liasettings.setinventoryverificationcontact", @@ -4570,7 +4570,7 @@ } } }, - "revision": "20250408", + "revision": "20250427", "rootUrl": "https://shoppingcontent.googleapis.com/", "schemas": { "Account": { diff --git a/content/v2.1/content-gen.go b/content/v2.1/content-gen.go index 5dcbd005f9b..aeb8196653f 100644 --- a/content/v2.1/content-gen.go +++ b/content/v2.1/content-gen.go @@ -20457,8 +20457,8 @@ type LiasettingsSetinventoryverificationcontactCall struct { header_ http.Header } -// Setinventoryverificationcontact: Sets the inventory verification contract -// for the specified country. +// Setinventoryverificationcontact: Sets the inventory verification contact for +// the specified country. // // - accountId: The ID of the account that manages the order. This cannot be a // multi-client account. diff --git a/dataplex/v1/dataplex-api.json b/dataplex/v1/dataplex-api.json index b54fa413311..792279ead80 100644 --- a/dataplex/v1/dataplex-api.json +++ b/dataplex/v1/dataplex-api.json @@ -348,6 +348,94 @@ "resources": { "encryptionConfigs": { "methods": { + "create": { + "description": "Create an EncryptionConfig.", + "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/encryptionConfigs", + "httpMethod": "POST", + "id": "dataplex.organizations.locations.encryptionConfigs.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "encryptionConfigId": { + "description": "Required. The ID of the EncryptionConfig to create. Currently, only a value of \"default\" is supported.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The location at which the EncryptionConfig is to be created.", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/encryptionConfigs", + "request": { + "$ref": "GoogleCloudDataplexV1EncryptionConfig" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Delete an EncryptionConfig.", + "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/encryptionConfigs/{encryptionConfigsId}", + "httpMethod": "DELETE", + "id": "dataplex.organizations.locations.encryptionConfigs.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "etag": { + "description": "Optional. Etag of the EncryptionConfig. This is a strong etag.", + "location": "query", + "type": "string" + }, + "name": { + "description": "Required. The name of the EncryptionConfig to delete.", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+/encryptionConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Get an EncryptionConfig.", + "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/encryptionConfigs/{encryptionConfigsId}", + "httpMethod": "GET", + "id": "dataplex.organizations.locations.encryptionConfigs.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the EncryptionConfig to fetch.", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+/encryptionConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudDataplexV1EncryptionConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "getIamPolicy": { "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/encryptionConfigs/{encryptionConfigsId}:getIamPolicy", @@ -379,6 +467,86 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "list": { + "description": "List EncryptionConfigs.", + "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/encryptionConfigs", + "httpMethod": "GET", + "id": "dataplex.organizations.locations.encryptionConfigs.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Filter the EncryptionConfigs to be returned. Using bare literals: (These values will be matched anywhere it may appear in the object's field values) * filter=some_value Using fields: (These values will be matched only in the specified field) * filter=some_field=some_value Supported fields: * name, key, create_time, update_time, encryption_state Example: * filter=name=organizations/123/locations/us-central1/encryptionConfigs/test-config conjunctions: (AND, OR, NOT) * filter=name=organizations/123/locations/us-central1/encryptionConfigs/test-config AND mode=CMEK logical operators: (\u003e, \u003c, \u003e=, \u003c=, !=, =, :), * filter=create_time\u003e2024-05-01T00:00:00.000Z", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. Order by fields for the result.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. Maximum number of EncryptionConfigs to return. The service may return fewer than this value. If unspecified, at most 10 EncryptionConfigs 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. Page token received from a previous ListEncryptionConfigs call. Provide this to retrieve the subsequent page. When paginating, the parameters - filter and order_by provided to ListEncryptionConfigs must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The location for which the EncryptionConfig is to be listed.", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/encryptionConfigs", + "response": { + "$ref": "GoogleCloudDataplexV1ListEncryptionConfigsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Update an EncryptionConfig.", + "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/encryptionConfigs/{encryptionConfigsId}", + "httpMethod": "PATCH", + "id": "dataplex.organizations.locations.encryptionConfigs.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Identifier. The resource name of the EncryptionConfig. Format: organizations/{organization}/locations/{location}/encryptionConfigs/{encryption_config} Global location is not supported.", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+/encryptionConfigs/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. Mask of fields to update. The service treats an omitted field mask as an implied field mask equivalent to all fields that are populated (have a non-empty value).", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudDataplexV1EncryptionConfig" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "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/organizations/{organizationsId}/locations/{locationsId}/encryptionConfigs/{encryptionConfigsId}:setIamPolicy", @@ -6263,7 +6431,7 @@ } } }, - "revision": "20250330", + "revision": "20250419", "rootUrl": "https://dataplex.googleapis.com/", "schemas": { "Empty": { @@ -7440,7 +7608,7 @@ }, "scanStatistics": { "$ref": "GoogleCloudDataplexV1DataDiscoveryResultScanStatistics", - "description": "Output only. Statistics of the DataDiscoveryScan.", + "description": "Output only. Describes result statistics of a data scan discovery job.", "readOnly": true } }, @@ -7464,7 +7632,7 @@ "type": "object" }, "GoogleCloudDataplexV1DataDiscoveryResultScanStatistics": { - "description": "Statistics of the DataDiscoveryScan.", + "description": "Describes result statistics of a data scan discovery job.", "id": "GoogleCloudDataplexV1DataDiscoveryResultScanStatistics", "properties": { "dataProcessedBytes": { @@ -9371,6 +9539,86 @@ }, "type": "object" }, + "GoogleCloudDataplexV1EncryptionConfig": { + "description": "A Resource designed to manage encryption configurations for customers to support Customer Managed Encryption Keys (CMEK).", + "id": "GoogleCloudDataplexV1EncryptionConfig", + "properties": { + "createTime": { + "description": "Output only. The time when the Encryption configuration was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "encryptionState": { + "description": "Output only. The state of encryption of the databases.", + "enum": [ + "ENCRYPTION_STATE_UNSPECIFIED", + "ENCRYPTING", + "COMPLETED", + "FAILED" + ], + "enumDescriptions": [ + "State is not specified.", + "The encryption state of the database when the EncryptionConfig is created or updated. If the encryption fails, it is retried indefinitely and the state is shown as ENCRYPTING.", + "The encryption of data has completed successfully.", + "The encryption of data has failed. The state is set to FAILED when the encryption fails due to reasons like permission issues, invalid key etc." + ], + "readOnly": true, + "type": "string" + }, + "etag": { + "description": "Etag of the EncryptionConfig. This is a strong etag.", + "type": "string" + }, + "failureDetails": { + "$ref": "GoogleCloudDataplexV1EncryptionConfigFailureDetails", + "description": "Output only. Details of the failure if anything related to Cmek db fails.", + "readOnly": true + }, + "key": { + "description": "Optional. If a key is chosen, it means that the customer is using CMEK. If a key is not chosen, it means that the customer is using Google managed encryption.", + "type": "string" + }, + "name": { + "description": "Identifier. The resource name of the EncryptionConfig. Format: organizations/{organization}/locations/{location}/encryptionConfigs/{encryption_config} Global location is not supported.", + "type": "string" + }, + "updateTime": { + "description": "Output only. The time when the Encryption configuration was last updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDataplexV1EncryptionConfigFailureDetails": { + "description": "Details of the failure if anything related to Cmek db fails.", + "id": "GoogleCloudDataplexV1EncryptionConfigFailureDetails", + "properties": { + "errorCode": { + "description": "Output only. The error code for the failure.", + "enum": [ + "UNKNOWN", + "INTERNAL_ERROR", + "REQUIRE_USER_ACTION" + ], + "enumDescriptions": [ + "The error code is not specified", + "Error because of internal server error, will be retried automatically.", + "User action is required to resolve the error." + ], + "readOnly": true, + "type": "string" + }, + "errorMessage": { + "description": "Output only. The error message will be shown to the user. Set only if the error code is REQUIRE_USER_ACTION.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDataplexV1Entity": { "description": "Represents tables and fileset metadata contained within a zone.", "id": "GoogleCloudDataplexV1Entity", @@ -10666,6 +10914,31 @@ }, "type": "object" }, + "GoogleCloudDataplexV1ListEncryptionConfigsResponse": { + "description": "List EncryptionConfigs Response", + "id": "GoogleCloudDataplexV1ListEncryptionConfigsResponse", + "properties": { + "encryptionConfigs": { + "description": "The list of EncryptionConfigs under the given parent location.", + "items": { + "$ref": "GoogleCloudDataplexV1EncryptionConfig" + }, + "type": "array" + }, + "nextPageToken": { + "description": "Token to retrieve the next page of results, or empty if there are no more results in the list.", + "type": "string" + }, + "unreachableLocations": { + "description": "Locations that could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDataplexV1ListEntitiesResponse": { "description": "List metadata entities response.", "id": "GoogleCloudDataplexV1ListEntitiesResponse", @@ -10972,7 +11245,7 @@ "enumDescriptions": [ "Unspecified.", "Import job.", - "Export job type." + "Export job." ], "type": "string" }, @@ -10991,16 +11264,16 @@ "type": "object" }, "GoogleCloudDataplexV1MetadataJobExportJobResult": { - "description": "Export Job Results. The result is based on the snapshot at the time when the job is created.", + "description": "Summary results from a metadata export job. The results are a snapshot of the metadata at the time when the job was created. The exported entries are saved to a Cloud Storage bucket.", "id": "GoogleCloudDataplexV1MetadataJobExportJobResult", "properties": { "errorMessage": { - "description": "Output only. The error message if the export job failed.", + "description": "Output only. The error message if the metadata export job failed.", "readOnly": true, "type": "string" }, "exportedEntries": { - "description": "Output only. The number of entries that have been exported.", + "description": "Output only. The number of entries that were exported.", "format": "int64", "readOnly": true, "type": "string" @@ -11009,51 +11282,51 @@ "type": "object" }, "GoogleCloudDataplexV1MetadataJobExportJobSpec": { - "description": "Export job specification.", + "description": "Job specification for a metadata export job.", "id": "GoogleCloudDataplexV1MetadataJobExportJobSpec", "properties": { "outputPath": { - "description": "Required. The root path of the exported metadata. Must be in the format: \"gs://\" Or specify a customized prefix after the bucket: \"gs://///.../\". The length limit of the customized prefix is 128 characters. The bucket must be in the same VPC-SC perimeter with the job.", + "description": "Required. The root path of the Cloud Storage bucket to export the metadata to, in the format gs://{bucket}/. You can optionally specify a custom prefix after the bucket name, in the format gs://{bucket}/{prefix}/. The maximum length of the custom prefix is 128 characters. Dataplex constructs the object path for the exported files by using the bucket name and prefix that you provide, followed by a system-generated path.The bucket must be in the same VPC Service Controls perimeter as the job.", "type": "string" }, "scope": { "$ref": "GoogleCloudDataplexV1MetadataJobExportJobSpecExportJobScope", - "description": "Required. Selects the entries to be exported by this job." + "description": "Required. The scope of the export job." } }, "type": "object" }, "GoogleCloudDataplexV1MetadataJobExportJobSpecExportJobScope": { - "description": "Scope of the export job.", + "description": "The scope of the export job.", "id": "GoogleCloudDataplexV1MetadataJobExportJobSpecExportJobScope", "properties": { "aspectTypes": { - "description": "The aspect types that are in scope for the export job. Optional. If specified, only aspects of the specified types will be affected by the job. Must follow the format: \"projects//locations//aspectTypes/\"", + "description": "The aspect types that are in scope for the export job, specified as relative resource names in the format projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}. Only aspects that belong to the specified aspect types are affected by the job.", "items": { "type": "string" }, "type": "array" }, "entryGroups": { - "description": "The entry groups that are in scope for the export job. Optional. If specified, only entries in the specified entry groups will be exported by the job. Must be in the VPC-SC perimeter of the job. The location of the entry groups must be the same as the job. Either projects or entry_groups can be specified when organization_level_export is set to false. Must follow the format: \"projects//locations//entryGroups/\"", + "description": "The entry groups whose metadata you want to export, in the format projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}. Only the entries in the specified entry groups are exported.The entry groups must be in the same location and the same VPC Service Controls perimeter as the job.If you set the job scope to be a list of entry groups, then set the organization-level export flag to false and don't provide a list of projects.", "items": { "type": "string" }, "type": "array" }, "entryTypes": { - "description": "If specified, only entries of the specified types will be affected by the job. Must follow the format: \"projects//locations//entryTypes/\"", + "description": "The entry types that are in scope for the export job, specified as relative resource names in the format projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}. Only entries that belong to the specified entry types are affected by the job.", "items": { "type": "string" }, "type": "array" }, "organizationLevel": { - "description": "Indicating if it is an organization level export job. - When set to true, exports all entries from entry groups and projects sharing the same organization id of the Metadata Job. Only projects and entry groups in the VPC-SC perimeter will be exported. The projects and entry groups are ignored. - When set to false, one of the projects or entry groups must be specified. - Default to false.", + "description": "Whether the metadata export job is an organization-level export job. If true, the job exports the entries from the same organization and VPC Service Controls perimeter as the job. The project that the job belongs to determines the VPC Service Controls perimeter. If you set the job scope to be at the organization level, then don't provide a list of projects or entry groups. If false, you must specify a list of projects or a list of entry groups whose entries you want to export.The default is false.", "type": "boolean" }, "projects": { - "description": "The projects that are in the scope of the export job. Can either be project numbers or project IDs. If specified, only the entries from the specified projects will be exported. The projects must be in the same organization and in the VPC-SC perimeter. Either projects or entry_groups can be specified when organization_level_export is set to false. Must follow the format: \"projects/\"", + "description": "The projects whose metadata you want to export, in the format projects/{project_id_or_number}. Only the entries from the specified projects are exported.The projects must be in the same organization and VPC Service Controls perimeter as the job.If you set the job scope to be a list of projects, then set the organization-level export flag to false and don't provide a list of entry groups.", "items": { "type": "string" }, @@ -11165,7 +11438,7 @@ "type": "string" }, "sourceStorageUri": { - "description": "Optional. The URI of a Cloud Storage bucket or folder (beginning with gs:// and ending with /) that contains the metadata import files for this job.A metadata import file defines the values to set for each of the entries and aspects in a metadata job. For more information about how to create a metadata import file and the file requirements, see Metadata import file (https://cloud.google.com/dataplex/docs/import-metadata#metadata-import-file).You can provide multiple metadata import files in the same metadata job. The bucket or folder must contain at least one metadata import file, in JSON Lines format (either .json or .jsonl file extension).In FULL entry sync mode, don't save the metadata import file in a folder named SOURCE_STORAGE_URI/deletions/.Caution: If the metadata import file contains no data, all entries and aspects that belong to the job's scope are deleted.", + "description": "Optional. The URI of a Cloud Storage bucket or folder (beginning with gs:// and ending with /) that contains the metadata import files for this job.A metadata import file defines the values to set for each of the entries and aspects in a metadata import job. For more information about how to create a metadata import file and the file requirements, see Metadata import file (https://cloud.google.com/dataplex/docs/import-metadata#metadata-import-file).You can provide multiple metadata import files in the same metadata job. The bucket or folder must contain at least one metadata import file, in JSON Lines format (either .json or .jsonl file extension).In FULL entry sync mode, don't save the metadata import file in a folder named SOURCE_STORAGE_URI/deletions/.Caution: If the metadata import file contains no data, all entries and aspects that belong to the job's scope are deleted.", "type": "string" } }, diff --git a/dataplex/v1/dataplex-gen.go b/dataplex/v1/dataplex-gen.go index 1b83d44bbae..d63990e672b 100644 --- a/dataplex/v1/dataplex-gen.go +++ b/dataplex/v1/dataplex-gen.go @@ -1861,7 +1861,8 @@ func (s GoogleCloudDataplexV1DataAttributeBindingPath) MarshalJSON() ([]byte, er type GoogleCloudDataplexV1DataDiscoveryResult struct { // BigqueryPublishing: Output only. Configuration for metadata publishing. BigqueryPublishing *GoogleCloudDataplexV1DataDiscoveryResultBigQueryPublishing `json:"bigqueryPublishing,omitempty"` - // ScanStatistics: Output only. Statistics of the DataDiscoveryScan. + // ScanStatistics: Output only. Describes result statistics of a data scan + // discovery job. ScanStatistics *GoogleCloudDataplexV1DataDiscoveryResultScanStatistics `json:"scanStatistics,omitempty"` // ForceSendFields is a list of field names (e.g. "BigqueryPublishing") to // unconditionally include in API requests. By default, fields with empty or @@ -1907,8 +1908,8 @@ func (s GoogleCloudDataplexV1DataDiscoveryResultBigQueryPublishing) MarshalJSON( return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1DataDiscoveryResultScanStatistics: Statistics of the -// DataDiscoveryScan. +// GoogleCloudDataplexV1DataDiscoveryResultScanStatistics: Describes result +// statistics of a data scan discovery job. type GoogleCloudDataplexV1DataDiscoveryResultScanStatistics struct { // DataProcessedBytes: The data processed in bytes. DataProcessedBytes int64 `json:"dataProcessedBytes,omitempty,string"` @@ -4371,6 +4372,94 @@ func (s GoogleCloudDataplexV1DiscoveryEventTableDetails) MarshalJSON() ([]byte, return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDataplexV1EncryptionConfig: A Resource designed to manage +// encryption configurations for customers to support Customer Managed +// Encryption Keys (CMEK). +type GoogleCloudDataplexV1EncryptionConfig struct { + // CreateTime: Output only. The time when the Encryption configuration was + // created. + CreateTime string `json:"createTime,omitempty"` + // EncryptionState: Output only. The state of encryption of the databases. + // + // Possible values: + // "ENCRYPTION_STATE_UNSPECIFIED" - State is not specified. + // "ENCRYPTING" - The encryption state of the database when the + // EncryptionConfig is created or updated. If the encryption fails, it is + // retried indefinitely and the state is shown as ENCRYPTING. + // "COMPLETED" - The encryption of data has completed successfully. + // "FAILED" - The encryption of data has failed. The state is set to FAILED + // when the encryption fails due to reasons like permission issues, invalid key + // etc. + EncryptionState string `json:"encryptionState,omitempty"` + // Etag: Etag of the EncryptionConfig. This is a strong etag. + Etag string `json:"etag,omitempty"` + // FailureDetails: Output only. Details of the failure if anything related to + // Cmek db fails. + FailureDetails *GoogleCloudDataplexV1EncryptionConfigFailureDetails `json:"failureDetails,omitempty"` + // Key: Optional. If a key is chosen, it means that the customer is using CMEK. + // If a key is not chosen, it means that the customer is using Google managed + // encryption. + Key string `json:"key,omitempty"` + // Name: Identifier. The resource name of the EncryptionConfig. Format: + // organizations/{organization}/locations/{location}/encryptionConfigs/{encrypti + // on_config} Global location is not supported. + Name string `json:"name,omitempty"` + // UpdateTime: Output only. The time when the Encryption configuration was last + // updated. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CreateTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDataplexV1EncryptionConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1EncryptionConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDataplexV1EncryptionConfigFailureDetails: Details of the failure +// if anything related to Cmek db fails. +type GoogleCloudDataplexV1EncryptionConfigFailureDetails struct { + // ErrorCode: Output only. The error code for the failure. + // + // Possible values: + // "UNKNOWN" - The error code is not specified + // "INTERNAL_ERROR" - Error because of internal server error, will be retried + // automatically. + // "REQUIRE_USER_ACTION" - User action is required to resolve the error. + ErrorCode string `json:"errorCode,omitempty"` + // ErrorMessage: Output only. The error message will be shown to the user. Set + // only if the error code is REQUIRE_USER_ACTION. + ErrorMessage string `json:"errorMessage,omitempty"` + // ForceSendFields is a list of field names (e.g. "ErrorCode") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ErrorCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDataplexV1EncryptionConfigFailureDetails) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1EncryptionConfigFailureDetails + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDataplexV1Entity: Represents tables and fileset metadata // contained within a zone. type GoogleCloudDataplexV1Entity struct { @@ -5782,6 +5871,38 @@ func (s GoogleCloudDataplexV1ListDataTaxonomiesResponse) MarshalJSON() ([]byte, return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDataplexV1ListEncryptionConfigsResponse: List EncryptionConfigs +// Response +type GoogleCloudDataplexV1ListEncryptionConfigsResponse struct { + // EncryptionConfigs: The list of EncryptionConfigs under the given parent + // location. + EncryptionConfigs []*GoogleCloudDataplexV1EncryptionConfig `json:"encryptionConfigs,omitempty"` + // NextPageToken: Token to retrieve the next page of results, or empty if there + // are no more results in the list. + NextPageToken string `json:"nextPageToken,omitempty"` + // UnreachableLocations: Locations that could not be reached. + UnreachableLocations []string `json:"unreachableLocations,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "EncryptionConfigs") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "EncryptionConfigs") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDataplexV1ListEncryptionConfigsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1ListEncryptionConfigsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDataplexV1ListEntitiesResponse: List metadata entities response. type GoogleCloudDataplexV1ListEntitiesResponse struct { // Entities: Entities in the specified parent zone. @@ -6155,7 +6276,7 @@ type GoogleCloudDataplexV1MetadataJob struct { // Possible values: // "TYPE_UNSPECIFIED" - Unspecified. // "IMPORT" - Import job. - // "EXPORT" - Export job type. + // "EXPORT" - Export job. Type string `json:"type,omitempty"` // Uid: Output only. A system-generated, globally unique ID for the metadata // job. If the metadata job is deleted and then re-created with the same name, @@ -6184,12 +6305,15 @@ func (s GoogleCloudDataplexV1MetadataJob) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1MetadataJobExportJobResult: Export Job Results. The -// result is based on the snapshot at the time when the job is created. +// GoogleCloudDataplexV1MetadataJobExportJobResult: Summary results from a +// metadata export job. The results are a snapshot of the metadata at the time +// when the job was created. The exported entries are saved to a Cloud Storage +// bucket. type GoogleCloudDataplexV1MetadataJobExportJobResult struct { - // ErrorMessage: Output only. The error message if the export job failed. + // ErrorMessage: Output only. The error message if the metadata export job + // failed. ErrorMessage string `json:"errorMessage,omitempty"` - // ExportedEntries: Output only. The number of entries that have been exported. + // ExportedEntries: Output only. The number of entries that were exported. ExportedEntries int64 `json:"exportedEntries,omitempty,string"` // ForceSendFields is a list of field names (e.g. "ErrorMessage") to // unconditionally include in API requests. By default, fields with empty or @@ -6209,14 +6333,18 @@ func (s GoogleCloudDataplexV1MetadataJobExportJobResult) MarshalJSON() ([]byte, return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1MetadataJobExportJobSpec: Export job specification. +// GoogleCloudDataplexV1MetadataJobExportJobSpec: Job specification for a +// metadata export job. type GoogleCloudDataplexV1MetadataJobExportJobSpec struct { - // OutputPath: Required. The root path of the exported metadata. Must be in the - // format: "gs://" Or specify a customized prefix after the bucket: - // "gs://///.../". The length limit of the customized prefix is 128 characters. - // The bucket must be in the same VPC-SC perimeter with the job. + // OutputPath: Required. The root path of the Cloud Storage bucket to export + // the metadata to, in the format gs://{bucket}/. You can optionally specify a + // custom prefix after the bucket name, in the format gs://{bucket}/{prefix}/. + // The maximum length of the custom prefix is 128 characters. Dataplex + // constructs the object path for the exported files by using the bucket name + // and prefix that you provide, followed by a system-generated path.The bucket + // must be in the same VPC Service Controls perimeter as the job. OutputPath string `json:"outputPath,omitempty"` - // Scope: Required. Selects the entries to be exported by this job. + // Scope: Required. The scope of the export job. Scope *GoogleCloudDataplexV1MetadataJobExportJobSpecExportJobScope `json:"scope,omitempty"` // ForceSendFields is a list of field names (e.g. "OutputPath") to // unconditionally include in API requests. By default, fields with empty or @@ -6236,37 +6364,44 @@ func (s GoogleCloudDataplexV1MetadataJobExportJobSpec) MarshalJSON() ([]byte, er return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1MetadataJobExportJobSpecExportJobScope: Scope of the -// export job. +// GoogleCloudDataplexV1MetadataJobExportJobSpecExportJobScope: The scope of +// the export job. type GoogleCloudDataplexV1MetadataJobExportJobSpecExportJobScope struct { - // AspectTypes: The aspect types that are in scope for the export job. - // Optional. If specified, only aspects of the specified types will be affected - // by the job. Must follow the format: "projects//locations//aspectTypes/" + // AspectTypes: The aspect types that are in scope for the export job, + // specified as relative resource names in the format + // projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type + // _id}. Only aspects that belong to the specified aspect types are affected by + // the job. AspectTypes []string `json:"aspectTypes,omitempty"` - // EntryGroups: The entry groups that are in scope for the export job. - // Optional. If specified, only entries in the specified entry groups will be - // exported by the job. Must be in the VPC-SC perimeter of the job. The - // location of the entry groups must be the same as the job. Either projects or - // entry_groups can be specified when organization_level_export is set to - // false. Must follow the format: "projects//locations//entryGroups/" + // EntryGroups: The entry groups whose metadata you want to export, in the + // format + // projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_gr + // oup_id}. Only the entries in the specified entry groups are exported.The + // entry groups must be in the same location and the same VPC Service Controls + // perimeter as the job.If you set the job scope to be a list of entry groups, + // then set the organization-level export flag to false and don't provide a + // list of projects. EntryGroups []string `json:"entryGroups,omitempty"` - // EntryTypes: If specified, only entries of the specified types will be - // affected by the job. Must follow the format: - // "projects//locations//entryTypes/" + // EntryTypes: The entry types that are in scope for the export job, specified + // as relative resource names in the format + // projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_i + // d}. Only entries that belong to the specified entry types are affected by + // the job. EntryTypes []string `json:"entryTypes,omitempty"` - // OrganizationLevel: Indicating if it is an organization level export job. - - // When set to true, exports all entries from entry groups and projects sharing - // the same organization id of the Metadata Job. Only projects and entry groups - // in the VPC-SC perimeter will be exported. The projects and entry groups are - // ignored. - When set to false, one of the projects or entry groups must be - // specified. - Default to false. + // OrganizationLevel: Whether the metadata export job is an organization-level + // export job. If true, the job exports the entries from the same organization + // and VPC Service Controls perimeter as the job. The project that the job + // belongs to determines the VPC Service Controls perimeter. If you set the job + // scope to be at the organization level, then don't provide a list of projects + // or entry groups. If false, you must specify a list of projects or a list of + // entry groups whose entries you want to export.The default is false. OrganizationLevel bool `json:"organizationLevel,omitempty"` - // Projects: The projects that are in the scope of the export job. Can either - // be project numbers or project IDs. If specified, only the entries from the - // specified projects will be exported. The projects must be in the same - // organization and in the VPC-SC perimeter. Either projects or entry_groups - // can be specified when organization_level_export is set to false. Must follow - // the format: "projects/" + // Projects: The projects whose metadata you want to export, in the format + // projects/{project_id_or_number}. Only the entries from the specified + // projects are exported.The projects must be in the same organization and VPC + // Service Controls perimeter as the job.If you set the job scope to be a list + // of projects, then set the organization-level export flag to false and don't + // provide a list of entry groups. Projects []string `json:"projects,omitempty"` // ForceSendFields is a list of field names (e.g. "AspectTypes") to // unconditionally include in API requests. By default, fields with empty or @@ -6392,9 +6527,9 @@ type GoogleCloudDataplexV1MetadataJobImportJobSpec struct { // SourceStorageUri: Optional. The URI of a Cloud Storage bucket or folder // (beginning with gs:// and ending with /) that contains the metadata import // files for this job.A metadata import file defines the values to set for each - // of the entries and aspects in a metadata job. For more information about how - // to create a metadata import file and the file requirements, see Metadata - // import file + // of the entries and aspects in a metadata import job. For more information + // about how to create a metadata import file and the file requirements, see + // Metadata import file // (https://cloud.google.com/dataplex/docs/import-metadata#metadata-import-file).You // can provide multiple metadata import files in the same metadata job. The // bucket or folder must contain at least one metadata import file, in JSON @@ -8513,103 +8648,190 @@ func (s GoogleTypeExpr) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -type OrganizationsLocationsEncryptionConfigsGetIamPolicyCall struct { - s *Service - resource string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type OrganizationsLocationsEncryptionConfigsCreateCall struct { + s *Service + parent string + googleclouddataplexv1encryptionconfig *GoogleCloudDataplexV1EncryptionConfig + 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: Create an EncryptionConfig. // -// - 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 *OrganizationsLocationsEncryptionConfigsService) GetIamPolicy(resource string) *OrganizationsLocationsEncryptionConfigsGetIamPolicyCall { - c := &OrganizationsLocationsEncryptionConfigsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource +// - parent: The location at which the EncryptionConfig is to be created. +func (r *OrganizationsLocationsEncryptionConfigsService) Create(parent string, googleclouddataplexv1encryptionconfig *GoogleCloudDataplexV1EncryptionConfig) *OrganizationsLocationsEncryptionConfigsCreateCall { + c := &OrganizationsLocationsEncryptionConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleclouddataplexv1encryptionconfig = googleclouddataplexv1encryptionconfig 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 *OrganizationsLocationsEncryptionConfigsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *OrganizationsLocationsEncryptionConfigsGetIamPolicyCall { - c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) +// EncryptionConfigId sets the optional parameter "encryptionConfigId": +// Required. The ID of the EncryptionConfig to create. Currently, only a value +// of "default" is supported. +func (c *OrganizationsLocationsEncryptionConfigsCreateCall) EncryptionConfigId(encryptionConfigId string) *OrganizationsLocationsEncryptionConfigsCreateCall { + c.urlParams_.Set("encryptionConfigId", encryptionConfigId) 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 *OrganizationsLocationsEncryptionConfigsGetIamPolicyCall) Fields(s ...googleapi.Field) *OrganizationsLocationsEncryptionConfigsGetIamPolicyCall { +func (c *OrganizationsLocationsEncryptionConfigsCreateCall) Fields(s ...googleapi.Field) *OrganizationsLocationsEncryptionConfigsCreateCall { 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 *OrganizationsLocationsEncryptionConfigsGetIamPolicyCall) IfNoneMatch(entityTag string) *OrganizationsLocationsEncryptionConfigsGetIamPolicyCall { - c.ifNoneMatch_ = entityTag +// Context sets the context to be used in this call's Do method. +func (c *OrganizationsLocationsEncryptionConfigsCreateCall) Context(ctx context.Context) *OrganizationsLocationsEncryptionConfigsCreateCall { + 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 *OrganizationsLocationsEncryptionConfigsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsEncryptionConfigsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googleclouddataplexv1encryptionconfig) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/encryptionConfigs") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "dataplex.organizations.locations.encryptionConfigs.create", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataplex.organizations.locations.encryptionConfigs.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 *OrganizationsLocationsEncryptionConfigsCreateCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "dataplex.organizations.locations.encryptionConfigs.create", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type OrganizationsLocationsEncryptionConfigsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Delete an EncryptionConfig. +// +// - name: The name of the EncryptionConfig to delete. +func (r *OrganizationsLocationsEncryptionConfigsService) Delete(name string) *OrganizationsLocationsEncryptionConfigsDeleteCall { + c := &OrganizationsLocationsEncryptionConfigsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Etag sets the optional parameter "etag": Etag of the EncryptionConfig. This +// is a strong etag. +func (c *OrganizationsLocationsEncryptionConfigsDeleteCall) Etag(etag string) *OrganizationsLocationsEncryptionConfigsDeleteCall { + c.urlParams_.Set("etag", etag) + 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 *OrganizationsLocationsEncryptionConfigsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsLocationsEncryptionConfigsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *OrganizationsLocationsEncryptionConfigsGetIamPolicyCall) Context(ctx context.Context) *OrganizationsLocationsEncryptionConfigsGetIamPolicyCall { +func (c *OrganizationsLocationsEncryptionConfigsDeleteCall) Context(ctx context.Context) *OrganizationsLocationsEncryptionConfigsDeleteCall { 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 *OrganizationsLocationsEncryptionConfigsGetIamPolicyCall) Header() http.Header { +func (c *OrganizationsLocationsEncryptionConfigsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsEncryptionConfigsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsLocationsEncryptionConfigsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + req, err := http.NewRequest("DELETE", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "dataplex.organizations.locations.encryptionConfigs.getIamPolicy", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "dataplex.organizations.locations.encryptionConfigs.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "dataplex.organizations.locations.encryptionConfigs.getIamPolicy" call. +// Do executes the "dataplex.organizations.locations.encryptionConfigs.delete" 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 *OrganizationsLocationsEncryptionConfigsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +// *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 *OrganizationsLocationsEncryptionConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8628,7 +8850,7 @@ func (c *OrganizationsLocationsEncryptionConfigsGetIamPolicyCall) Do(opts ...goo if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1Policy{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8639,7 +8861,534 @@ func (c *OrganizationsLocationsEncryptionConfigsGetIamPolicyCall) Do(opts ...goo if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "dataplex.organizations.locations.encryptionConfigs.getIamPolicy", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "dataplex.organizations.locations.encryptionConfigs.delete", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type OrganizationsLocationsEncryptionConfigsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Get an EncryptionConfig. +// +// - name: The name of the EncryptionConfig to fetch. +func (r *OrganizationsLocationsEncryptionConfigsService) Get(name string) *OrganizationsLocationsEncryptionConfigsGetCall { + c := &OrganizationsLocationsEncryptionConfigsGetCall{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 *OrganizationsLocationsEncryptionConfigsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsEncryptionConfigsGetCall { + 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 *OrganizationsLocationsEncryptionConfigsGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsEncryptionConfigsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *OrganizationsLocationsEncryptionConfigsGetCall) Context(ctx context.Context) *OrganizationsLocationsEncryptionConfigsGetCall { + 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 *OrganizationsLocationsEncryptionConfigsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsEncryptionConfigsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "dataplex.organizations.locations.encryptionConfigs.get", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataplex.organizations.locations.encryptionConfigs.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudDataplexV1EncryptionConfig.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 *OrganizationsLocationsEncryptionConfigsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1EncryptionConfig, 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 := &GoogleCloudDataplexV1EncryptionConfig{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "dataplex.organizations.locations.encryptionConfigs.get", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type OrganizationsLocationsEncryptionConfigsGetIamPolicyCall 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 *OrganizationsLocationsEncryptionConfigsService) GetIamPolicy(resource string) *OrganizationsLocationsEncryptionConfigsGetIamPolicyCall { + c := &OrganizationsLocationsEncryptionConfigsGetIamPolicyCall{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 *OrganizationsLocationsEncryptionConfigsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *OrganizationsLocationsEncryptionConfigsGetIamPolicyCall { + 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 *OrganizationsLocationsEncryptionConfigsGetIamPolicyCall) Fields(s ...googleapi.Field) *OrganizationsLocationsEncryptionConfigsGetIamPolicyCall { + 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 *OrganizationsLocationsEncryptionConfigsGetIamPolicyCall) IfNoneMatch(entityTag string) *OrganizationsLocationsEncryptionConfigsGetIamPolicyCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *OrganizationsLocationsEncryptionConfigsGetIamPolicyCall) Context(ctx context.Context) *OrganizationsLocationsEncryptionConfigsGetIamPolicyCall { + 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 *OrganizationsLocationsEncryptionConfigsGetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsEncryptionConfigsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "dataplex.organizations.locations.encryptionConfigs.getIamPolicy", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataplex.organizations.locations.encryptionConfigs.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 *OrganizationsLocationsEncryptionConfigsGetIamPolicyCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "dataplex.organizations.locations.encryptionConfigs.getIamPolicy", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type OrganizationsLocationsEncryptionConfigsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: List EncryptionConfigs. +// +// - parent: The location for which the EncryptionConfig is to be listed. +func (r *OrganizationsLocationsEncryptionConfigsService) List(parent string) *OrganizationsLocationsEncryptionConfigsListCall { + c := &OrganizationsLocationsEncryptionConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filter the EncryptionConfigs to +// be returned. Using bare literals: (These values will be matched anywhere it +// may appear in the object's field values) * filter=some_value Using fields: +// (These values will be matched only in the specified field) * +// filter=some_field=some_value Supported fields: * name, key, create_time, +// update_time, encryption_state Example: * +// filter=name=organizations/123/locations/us-central1/encryptionConfigs/test-co +// nfig conjunctions: (AND, OR, NOT) * +// filter=name=organizations/123/locations/us-central1/encryptionConfigs/test-co +// nfig AND mode=CMEK logical operators: (>, <, >=, <=, !=, =, :), * +// filter=create_time>2024-05-01T00:00:00.000Z +func (c *OrganizationsLocationsEncryptionConfigsListCall) Filter(filter string) *OrganizationsLocationsEncryptionConfigsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": Order by fields for the +// result. +func (c *OrganizationsLocationsEncryptionConfigsListCall) OrderBy(orderBy string) *OrganizationsLocationsEncryptionConfigsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// EncryptionConfigs to return. The service may return fewer than this value. +// If unspecified, at most 10 EncryptionConfigs will be returned. The maximum +// value is 1000; values above 1000 will be coerced to 1000. +func (c *OrganizationsLocationsEncryptionConfigsListCall) PageSize(pageSize int64) *OrganizationsLocationsEncryptionConfigsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Page token received from +// a previous ListEncryptionConfigs call. Provide this to retrieve the +// subsequent page. When paginating, the parameters - filter and order_by +// provided to ListEncryptionConfigs must match the call that provided the page +// token. +func (c *OrganizationsLocationsEncryptionConfigsListCall) PageToken(pageToken string) *OrganizationsLocationsEncryptionConfigsListCall { + 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 *OrganizationsLocationsEncryptionConfigsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsEncryptionConfigsListCall { + 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 *OrganizationsLocationsEncryptionConfigsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsEncryptionConfigsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *OrganizationsLocationsEncryptionConfigsListCall) Context(ctx context.Context) *OrganizationsLocationsEncryptionConfigsListCall { + 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 *OrganizationsLocationsEncryptionConfigsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsEncryptionConfigsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/encryptionConfigs") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "dataplex.organizations.locations.encryptionConfigs.list", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataplex.organizations.locations.encryptionConfigs.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudDataplexV1ListEncryptionConfigsResponse.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 *OrganizationsLocationsEncryptionConfigsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDataplexV1ListEncryptionConfigsResponse, 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 := &GoogleCloudDataplexV1ListEncryptionConfigsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "dataplex.organizations.locations.encryptionConfigs.list", "response", internallog.HTTPResponse(res, b)) + 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 *OrganizationsLocationsEncryptionConfigsListCall) Pages(ctx context.Context, f func(*GoogleCloudDataplexV1ListEncryptionConfigsResponse) 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 OrganizationsLocationsEncryptionConfigsPatchCall struct { + s *Service + name string + googleclouddataplexv1encryptionconfig *GoogleCloudDataplexV1EncryptionConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Update an EncryptionConfig. +// +// - name: Identifier. The resource name of the EncryptionConfig. Format: +// organizations/{organization}/locations/{location}/encryptionConfigs/{encryp +// tion_config} Global location is not supported. +func (r *OrganizationsLocationsEncryptionConfigsService) Patch(name string, googleclouddataplexv1encryptionconfig *GoogleCloudDataplexV1EncryptionConfig) *OrganizationsLocationsEncryptionConfigsPatchCall { + c := &OrganizationsLocationsEncryptionConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googleclouddataplexv1encryptionconfig = googleclouddataplexv1encryptionconfig + return c +} + +// UpdateMask sets the optional parameter "updateMask": Mask of fields to +// update. The service treats an omitted field mask as an implied field mask +// equivalent to all fields that are populated (have a non-empty value). +func (c *OrganizationsLocationsEncryptionConfigsPatchCall) UpdateMask(updateMask string) *OrganizationsLocationsEncryptionConfigsPatchCall { + 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 *OrganizationsLocationsEncryptionConfigsPatchCall) Fields(s ...googleapi.Field) *OrganizationsLocationsEncryptionConfigsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *OrganizationsLocationsEncryptionConfigsPatchCall) Context(ctx context.Context) *OrganizationsLocationsEncryptionConfigsPatchCall { + 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 *OrganizationsLocationsEncryptionConfigsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsEncryptionConfigsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googleclouddataplexv1encryptionconfig) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "dataplex.organizations.locations.encryptionConfigs.patch", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataplex.organizations.locations.encryptionConfigs.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 *OrganizationsLocationsEncryptionConfigsPatchCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "dataplex.organizations.locations.encryptionConfigs.patch", "response", internallog.HTTPResponse(res, b)) return ret, nil } diff --git a/merchantapi/accounts_v1beta/merchantapi-api.json b/merchantapi/accounts_v1beta/merchantapi-api.json index 1b8390d96e7..ff4c604be81 100644 --- a/merchantapi/accounts_v1beta/merchantapi-api.json +++ b/merchantapi/accounts_v1beta/merchantapi-api.json @@ -1111,6 +1111,254 @@ } } }, + "relationships": { + "methods": { + "get": { + "description": "Retrieve an account relationship.", + "flatPath": "accounts/v1beta/accounts/{accountsId}/relationships/{relationshipsId}", + "httpMethod": "GET", + "id": "merchantapi.accounts.relationships.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the account relationship to get.", + "location": "path", + "pattern": "^accounts/[^/]+/relationships/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "accounts/v1beta/{+name}", + "response": { + "$ref": "AccountRelationship" + }, + "scopes": [ + "https://www.googleapis.com/auth/content" + ] + }, + "list": { + "description": "List account relationships for the specified account.", + "flatPath": "accounts/v1beta/accounts/{accountsId}/relationships", + "httpMethod": "GET", + "id": "merchantapi.accounts.relationships.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of elements to return in the response. Use for paging. If no `page_size` is specified, `100` is used as the default value. The maximum allowed value is `1000`.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. The token returned by the previous `list` request.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent account of the account relationship to filter by.", + "location": "path", + "pattern": "^accounts/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "accounts/v1beta/{+parent}/relationships", + "response": { + "$ref": "ListAccountRelationshipsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/content" + ] + }, + "patch": { + "description": "Updates the account relationship. Executing this method requires admin access.", + "flatPath": "accounts/v1beta/accounts/{accountsId}/relationships/{relationshipsId}", + "httpMethod": "PATCH", + "id": "merchantapi.accounts.relationships.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Identifier. The resource name of the account relationship.", + "location": "path", + "pattern": "^accounts/[^/]+/relationships/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. List of fields being updated. The following fields are supported (in both `snake_case` and `lowerCamelCase`): - `account_id_alias`", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "accounts/v1beta/{+name}", + "request": { + "$ref": "AccountRelationship" + }, + "response": { + "$ref": "AccountRelationship" + }, + "scopes": [ + "https://www.googleapis.com/auth/content" + ] + } + } + }, + "services": { + "methods": { + "approve": { + "description": "Approve an account service proposal.", + "flatPath": "accounts/v1beta/accounts/{accountsId}/services/{servicesId}:approve", + "httpMethod": "POST", + "id": "merchantapi.accounts.services.approve", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the account service to approve.", + "location": "path", + "pattern": "^accounts/[^/]+/services/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "accounts/v1beta/{+name}:approve", + "request": { + "$ref": "ApproveAccountServiceRequest" + }, + "response": { + "$ref": "AccountService" + }, + "scopes": [ + "https://www.googleapis.com/auth/content" + ] + }, + "get": { + "description": "Retrieve an account service.", + "flatPath": "accounts/v1beta/accounts/{accountsId}/services/{servicesId}", + "httpMethod": "GET", + "id": "merchantapi.accounts.services.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the account service to get.", + "location": "path", + "pattern": "^accounts/[^/]+/services/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "accounts/v1beta/{+name}", + "response": { + "$ref": "AccountService" + }, + "scopes": [ + "https://www.googleapis.com/auth/content" + ] + }, + "list": { + "description": "List account services for the specified accounts. Supports filtering.", + "flatPath": "accounts/v1beta/accounts/{accountsId}/services", + "httpMethod": "GET", + "id": "merchantapi.accounts.services.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of elements to return in the response. Use for paging. If no `page_size` is specified, `100` is used as the default value. The maximum allowed value is `1000`.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. The token returned by the previous `list` request.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent account of the account service to filter by.", + "location": "path", + "pattern": "^accounts/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "accounts/v1beta/{+parent}/services", + "response": { + "$ref": "ListAccountServicesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/content" + ] + }, + "propose": { + "description": "Propose an account service.", + "flatPath": "accounts/v1beta/accounts/{accountsId}/services:propose", + "httpMethod": "POST", + "id": "merchantapi.accounts.services.propose", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The resource name of the parent account for the service.", + "location": "path", + "pattern": "^accounts/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "accounts/v1beta/{+parent}/services:propose", + "request": { + "$ref": "ProposeAccountServiceRequest" + }, + "response": { + "$ref": "AccountService" + }, + "scopes": [ + "https://www.googleapis.com/auth/content" + ] + }, + "reject": { + "description": "Reject an account service (both proposed and approve services can be rejected).", + "flatPath": "accounts/v1beta/accounts/{accountsId}/services/{servicesId}:reject", + "httpMethod": "POST", + "id": "merchantapi.accounts.services.reject", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the account service to reject.", + "location": "path", + "pattern": "^accounts/[^/]+/services/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "accounts/v1beta/{+name}:reject", + "request": { + "$ref": "RejectAccountServiceRequest" + }, + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/content" + ] + } + } + }, "shippingSettings": { "methods": { "getShippingSettings": { @@ -1480,7 +1728,7 @@ } } }, - "revision": "20250422", + "revision": "20250427", "rootUrl": "https://merchantapi.googleapis.com/", "schemas": { "AcceptTermsOfServiceResponse": { @@ -1503,7 +1751,7 @@ "type": "string" }, "termsOfService": { - "description": "The accepted [termsOfService](google.shopping.merchant.accounts.v1main.TermsOfService).", + "description": "The accepted termsOfService.", "type": "string" }, "validUntil": { @@ -1603,6 +1851,97 @@ }, "type": "object" }, + "AccountManagement": { + "description": "`AccountManagement` payload.", + "id": "AccountManagement", + "properties": {}, + "type": "object" + }, + "AccountRelationship": { + "description": "The `AccountRelationship` message defines a formal connection between a merchant's account and a service provider's account. This relationship enables the provider to offer specific services to the merchant, such as product management or campaign management. It specifies the access rights and permissions to the merchant's data relevant to those services. Establishing an account relationship involves linking the merchant's account with a provider's account. The provider could be another Google account (like Google Ads or Google My Business) or a third-party platform (such as Shopify or WooCommerce).", + "id": "AccountRelationship", + "properties": { + "accountIdAlias": { + "description": "Optional. An optional alias you can assign to this account relationship. This alias acts as a convenient identifier for your own reference and management. It must be unique among all your account relationships with the same provider. For example, you might use `account_id_alias` to assign a friendly name to this relationship for easier identification in your systems.", + "type": "string" + }, + "name": { + "description": "Identifier. The resource name of the account relationship.", + "type": "string" + }, + "provider": { + "description": "Immutable. The provider of the service. Either the reference to an account such as `providers/123` or a well-known service provider (one of `providers/GOOGLE_ADS` or `providers/GOOGLE_BUSINESS_PROFILE`).", + "type": "string" + }, + "providerDisplayName": { + "description": "Output only. The human-readable display name of the provider account.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "AccountService": { + "description": "The `AccountService` message represents a specific service that a provider account offers to a merchant account. `AccountService` defines the permissions and capabilities granted to the provider, allowing for operations such as product management or campaign management. The lifecycle of an `AccountService` involves a proposal phase, where one party suggests the service, and an approval phase, where the other party accepts or rejects it. This handshake mechanism ensures mutual consent before any access is granted. This mechanism safeguards both parties by ensuring that access rights are granted appropriately and that both the merchant and provider are aware of the services enabled. In scenarios where a user is an admin of both accounts, the approval can happen automatically. The mutability of a service is also managed through `AccountService`. Some services might be immutable, for example, if they were established through other systems or APIs, and you cannot alter them through this API.", + "id": "AccountService", + "properties": { + "accountAggregation": { + "$ref": "AccountAggregation", + "description": "Service type for account aggregation. This enables the provider, which is a Multi-Client Account (MCA), to manage multiple sub-accounts (client accounts). Through this service, the MCA provider can perform administrative and operational tasks across all linked sub-accounts. This is useful for agencies, aggregators, or large retailers that need centralized control over many merchant accounts." + }, + "accountManagement": { + "$ref": "AccountManagement", + "description": "Service type for account management. Enables the provider to perform administrative actions on the merchant's account, such as configuring account settings, managing users, or updating business information." + }, + "campaignsManagement": { + "$ref": "CampaignsManagement", + "description": "Service type for managing advertising campaigns. Grants the provider access to create and manage the merchant's ad campaigns, including setting up campaigns, adjusting bids, and optimizing performance." + }, + "externalAccountId": { + "description": "Immutable. An optional, immutable identifier that Google uses to refer to this account when communicating with the provider. This should be the unique account ID within the provider's system (for example, your shop ID in Shopify). If you have multiple accounts with the same provider - for instance, different accounts for various regions — the `external_account_id` differentiates between them, ensuring accurate linking and integration between Google and the provider.", + "type": "string" + }, + "handshake": { + "$ref": "Handshake", + "description": "Output only. Information about the state of the service in terms of establishing it (e.g. is it pending approval or approved).", + "readOnly": true + }, + "mutability": { + "description": "Output only. Whether the service is mutable (e.g. through Approve / Reject RPCs). A service that was created through another system or API might be immutable.", + "enum": [ + "MUTABILITY_UNSPECIFIED", + "MUTABLE", + "IMMUTABLE" + ], + "enumDescriptions": [ + "Unused default value", + "The service can be mutated without restrictions.", + "The service is read-only and must not be mutated." + ], + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Identifier. The resource name of the account service.", + "type": "string" + }, + "productsManagement": { + "$ref": "ProductsManagement", + "description": "Service type for managing products. This allows the provider to handle product data on behalf of the merchant, including reading and writing product listings. It's commonly used when the provider offers inventory management or catalog synchronization services to keep the merchant's product information up-to-date across platforms." + }, + "provider": { + "description": "Output only. The provider of the service. Either the reference to an account such as `providers/123` or a well-known service provider (one of `providers/GOOGLE_ADS` or `providers/GOOGLE_BUSINESS_PROFILE`).", + "readOnly": true, + "type": "string" + }, + "providerDisplayName": { + "description": "Output only. The human-readable display name of the provider account.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "AddAccountService": { "description": "Additional instructions to add account services during creation of the account.", "id": "AddAccountService", @@ -1660,6 +1999,12 @@ }, "type": "object" }, + "ApproveAccountServiceRequest": { + "description": "Request to approve an account service.", + "id": "ApproveAccountServiceRequest", + "properties": {}, + "type": "object" + }, "AutofeedSettings": { "description": "Collection of information related to the [autofeed](https://support.google.com/merchants/answer/7538732) settings.", "id": "AutofeedSettings", @@ -1883,6 +2228,12 @@ }, "type": "object" }, + "CampaignsManagement": { + "description": "`CampaignManagement` payload.", + "id": "CampaignsManagement", + "properties": {}, + "type": "object" + }, "CarrierRate": { "description": "A list of carrier rates that can be referred to by `main_table` or `single_value`. Supported carrier services are defined in https://support.google.com/merchants/answer/12577710?ref_topic=12570808\u0026sjid=10662598224319463032-NC#zippy=%2Cdelivery-cost-rate-type%2Ccarrier-rate-au-de-uk-and-us-only.", "id": "CarrierRate", @@ -2195,6 +2546,45 @@ }, "type": "object" }, + "Handshake": { + "description": "The current status of establishing of the service. (for example, pending approval or approved).", + "id": "Handshake", + "properties": { + "actor": { + "description": "Output only. The most recent account to modify the account service's `approval_status`.", + "enum": [ + "ACTOR_UNSPECIFIED", + "ACCOUNT", + "OTHER_PARTY" + ], + "enumDescriptions": [ + "Unspecified actor.", + "The last change was done by the account who has this service.", + "The last change was done by the other party who this service points to." + ], + "readOnly": true, + "type": "string" + }, + "approvalState": { + "description": "Output only. The approval state of this handshake.", + "enum": [ + "APPROVAL_STATE_UNSPECIFIED", + "PENDING", + "ESTABLISHED", + "REJECTED" + ], + "enumDescriptions": [ + "Unspecified approval status.", + "The service was proposed and is waiting to be confirmed.", + "Both parties have confirmed the service.", + "The service proposal was rejected." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "Headers": { "description": "A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `num_items`, `postal_code_group_names`, or `location` must be set.", "id": "Headers", @@ -2438,6 +2828,42 @@ }, "type": "object" }, + "ListAccountRelationshipsResponse": { + "description": "Response after trying to list account relationships.", + "id": "ListAccountRelationshipsResponse", + "properties": { + "accountRelationships": { + "description": "The account relationships that match your filter.", + "items": { + "$ref": "AccountRelationship" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A page token. You can send the `page_token` to get the next page. Only included in the `list` response if there are more pages.", + "type": "string" + } + }, + "type": "object" + }, + "ListAccountServicesResponse": { + "description": "Response after trying to list account services.", + "id": "ListAccountServicesResponse", + "properties": { + "accountServices": { + "description": "The account services that match your filter.", + "items": { + "$ref": "AccountService" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A page token. You can send the `page_token` to get the next page. Only included in the `list` response if there are more pages.", + "type": "string" + } + }, + "type": "object" + }, "ListAccountsResponse": { "description": "Response message for the `ListAccounts` method.", "id": "ListAccountsResponse", @@ -3039,6 +3465,12 @@ }, "type": "object" }, + "ProductsManagement": { + "description": "`ProductsManagement` payload.", + "id": "ProductsManagement", + "properties": {}, + "type": "object" + }, "Program": { "description": "Defines participation in a given program for the specified account. Programs provide a mechanism for adding functionality to merchant accounts. A typical example of this is the [Free product listings](https://support.google.com/merchants/topic/9240261?ref_topic=7257954,7259405,\u0026sjid=796648681813264022-EU) program, which enables products from a merchant's store to be shown across Google for free. The following list is the available set of program resource IDs accessible through the API: * `free-listings` * `shopping-ads` * `youtube-shopping-checkout`", "id": "Program", @@ -3088,6 +3520,21 @@ }, "type": "object" }, + "ProposeAccountServiceRequest": { + "description": "Request to propose an account service.", + "id": "ProposeAccountServiceRequest", + "properties": { + "accountService": { + "$ref": "AccountService", + "description": "Required. The account service to propose." + }, + "provider": { + "description": "Required. The provider of the service. Either the reference to an account such as `providers/123` or a well-known service provider (one of `providers/GOOGLE_ADS` or `providers/GOOGLE_BUSINESS_PROFILE`).", + "type": "string" + } + }, + "type": "object" + }, "RateGroup": { "description": "Shipping rate group definitions. Only the last one is allowed to have an empty `applicable_shipping_labels`, which means \"everything else\". The other `applicable_shipping_labels` must not overlap.", "id": "RateGroup", @@ -3161,6 +3608,12 @@ }, "type": "object" }, + "RejectAccountServiceRequest": { + "description": "Request to reject an account service.", + "id": "RejectAccountServiceRequest", + "properties": {}, + "type": "object" + }, "Required": { "description": "Describes the terms of service which are required to be accepted.", "id": "Required", @@ -3515,7 +3968,7 @@ "type": "object" }, "TermsOfServiceAgreementState": { - "description": "This resource represents the agreement state for a given account and terms of service kind. The state is as follows: * If the merchant has accepted a terms of service, `accepted` will be populated, otherwise it will be empty * If the merchant must sign a terms of service, `required` will be populated, otherwise it will be empty. Note that both `required` and `accepted` can be present. In this case the `accepted` terms of services will have an expiration date set in the `valid_until` field. The `required` terms of services need to be accepted before `valid_until` in order for the account to continue having a valid agreement. When accepting new terms of services we expect 3Ps to display the text associated with the given terms of service agreement (the url to the file containing the text is added in the Required message below as `tos_file_uri`. The actual acceptance of the terms of service is done by calling accept on the `TermsOfService` resource.", + "description": "This resource represents the agreement state for a given account and terms of service kind. The state is as follows: * If the merchant has accepted a terms of service, `accepted` will be populated, otherwise it will be empty * If the merchant must sign a terms of service, `required` will be populated, otherwise it will be empty. Note that both `required` and `accepted` can be present. In this case the `accepted` terms of services will have an expiration date set in the `valid_until` field. The `required` terms of services need to be accepted before `valid_until` in order for the account to continue having a valid agreement. When accepting new terms of services we expect 3Ps to display the text associated with the given terms of service agreement (the url to the file containing the text is added in the Required message below as `tos_file_uri`). The actual acceptance of the terms of service is done by calling accept on the `TermsOfService` resource.", "id": "TermsOfServiceAgreementState", "properties": { "accepted": { diff --git a/merchantapi/accounts_v1beta/merchantapi-gen.go b/merchantapi/accounts_v1beta/merchantapi-gen.go index 18459d4e3c3..d1364976b11 100644 --- a/merchantapi/accounts_v1beta/merchantapi-gen.go +++ b/merchantapi/accounts_v1beta/merchantapi-gen.go @@ -168,6 +168,8 @@ func NewAccountsService(s *APIService) *AccountsService { rs.OnlineReturnPolicies = NewAccountsOnlineReturnPoliciesService(s) rs.Programs = NewAccountsProgramsService(s) rs.Regions = NewAccountsRegionsService(s) + rs.Relationships = NewAccountsRelationshipsService(s) + rs.Services = NewAccountsServicesService(s) rs.ShippingSettings = NewAccountsShippingSettingsService(s) rs.TermsOfServiceAgreementStates = NewAccountsTermsOfServiceAgreementStatesService(s) rs.Users = NewAccountsUsersService(s) @@ -197,6 +199,10 @@ type AccountsService struct { Regions *AccountsRegionsService + Relationships *AccountsRelationshipsService + + Services *AccountsServicesService + ShippingSettings *AccountsShippingSettingsService TermsOfServiceAgreementStates *AccountsTermsOfServiceAgreementStatesService @@ -294,6 +300,24 @@ type AccountsRegionsService struct { s *APIService } +func NewAccountsRelationshipsService(s *APIService) *AccountsRelationshipsService { + rs := &AccountsRelationshipsService{s: s} + return rs +} + +type AccountsRelationshipsService struct { + s *APIService +} + +func NewAccountsServicesService(s *APIService) *AccountsServicesService { + rs := &AccountsServicesService{s: s} + return rs +} + +type AccountsServicesService struct { + s *APIService +} + func NewAccountsShippingSettingsService(s *APIService) *AccountsShippingSettingsService { rs := &AccountsShippingSettingsService{s: s} return rs @@ -361,8 +385,7 @@ type Accepted struct { // AcceptedBy: The account where the acceptance was recorded. This can be the // account itself or, in the case of subaccounts, the MCA account. AcceptedBy string `json:"acceptedBy,omitempty"` - // TermsOfService: The accepted termsOfService - // (google.shopping.merchant.accounts.v1main.TermsOfService). + // TermsOfService: The accepted termsOfService. TermsOfService string `json:"termsOfService,omitempty"` // ValidUntil: When set, it states that the accepted `TermsOfService` is only // valid until the end of this date (in UTC). A new one must be accepted before @@ -487,6 +510,144 @@ func (s AccountIssue) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// AccountManagement: `AccountManagement` payload. +type AccountManagement struct { +} + +// AccountRelationship: The `AccountRelationship` message defines a formal +// connection between a merchant's account and a service provider's account. +// This relationship enables the provider to offer specific services to the +// merchant, such as product management or campaign management. It specifies +// the access rights and permissions to the merchant's data relevant to those +// services. Establishing an account relationship involves linking the +// merchant's account with a provider's account. The provider could be another +// Google account (like Google Ads or Google My Business) or a third-party +// platform (such as Shopify or WooCommerce). +type AccountRelationship struct { + // AccountIdAlias: Optional. An optional alias you can assign to this account + // relationship. This alias acts as a convenient identifier for your own + // reference and management. It must be unique among all your account + // relationships with the same provider. For example, you might use + // `account_id_alias` to assign a friendly name to this relationship for easier + // identification in your systems. + AccountIdAlias string `json:"accountIdAlias,omitempty"` + // Name: Identifier. The resource name of the account relationship. + Name string `json:"name,omitempty"` + // Provider: Immutable. The provider of the service. Either the reference to an + // account such as `providers/123` or a well-known service provider (one of + // `providers/GOOGLE_ADS` or `providers/GOOGLE_BUSINESS_PROFILE`). + Provider string `json:"provider,omitempty"` + // ProviderDisplayName: Output only. The human-readable display name of the + // provider account. + ProviderDisplayName string `json:"providerDisplayName,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "AccountIdAlias") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AccountIdAlias") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AccountRelationship) MarshalJSON() ([]byte, error) { + type NoMethod AccountRelationship + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// AccountService: The `AccountService` message represents a specific service +// that a provider account offers to a merchant account. `AccountService` +// defines the permissions and capabilities granted to the provider, allowing +// for operations such as product management or campaign management. The +// lifecycle of an `AccountService` involves a proposal phase, where one party +// suggests the service, and an approval phase, where the other party accepts +// or rejects it. This handshake mechanism ensures mutual consent before any +// access is granted. This mechanism safeguards both parties by ensuring that +// access rights are granted appropriately and that both the merchant and +// provider are aware of the services enabled. In scenarios where a user is an +// admin of both accounts, the approval can happen automatically. The +// mutability of a service is also managed through `AccountService`. Some +// services might be immutable, for example, if they were established through +// other systems or APIs, and you cannot alter them through this API. +type AccountService struct { + // AccountAggregation: Service type for account aggregation. This enables the + // provider, which is a Multi-Client Account (MCA), to manage multiple + // sub-accounts (client accounts). Through this service, the MCA provider can + // perform administrative and operational tasks across all linked sub-accounts. + // This is useful for agencies, aggregators, or large retailers that need + // centralized control over many merchant accounts. + AccountAggregation *AccountAggregation `json:"accountAggregation,omitempty"` + // AccountManagement: Service type for account management. Enables the provider + // to perform administrative actions on the merchant's account, such as + // configuring account settings, managing users, or updating business + // information. + AccountManagement *AccountManagement `json:"accountManagement,omitempty"` + // CampaignsManagement: Service type for managing advertising campaigns. Grants + // the provider access to create and manage the merchant's ad campaigns, + // including setting up campaigns, adjusting bids, and optimizing performance. + CampaignsManagement *CampaignsManagement `json:"campaignsManagement,omitempty"` + // ExternalAccountId: Immutable. An optional, immutable identifier that Google + // uses to refer to this account when communicating with the provider. This + // should be the unique account ID within the provider's system (for example, + // your shop ID in Shopify). If you have multiple accounts with the same + // provider - for instance, different accounts for various regions — the + // `external_account_id` differentiates between them, ensuring accurate linking + // and integration between Google and the provider. + ExternalAccountId string `json:"externalAccountId,omitempty"` + // Handshake: Output only. Information about the state of the service in terms + // of establishing it (e.g. is it pending approval or approved). + Handshake *Handshake `json:"handshake,omitempty"` + // Mutability: Output only. Whether the service is mutable (e.g. through + // Approve / Reject RPCs). A service that was created through another system or + // API might be immutable. + // + // Possible values: + // "MUTABILITY_UNSPECIFIED" - Unused default value + // "MUTABLE" - The service can be mutated without restrictions. + // "IMMUTABLE" - The service is read-only and must not be mutated. + Mutability string `json:"mutability,omitempty"` + // Name: Identifier. The resource name of the account service. + Name string `json:"name,omitempty"` + // ProductsManagement: Service type for managing products. This allows the + // provider to handle product data on behalf of the merchant, including reading + // and writing product listings. It's commonly used when the provider offers + // inventory management or catalog synchronization services to keep the + // merchant's product information up-to-date across platforms. + ProductsManagement *ProductsManagement `json:"productsManagement,omitempty"` + // Provider: Output only. The provider of the service. Either the reference to + // an account such as `providers/123` or a well-known service provider (one of + // `providers/GOOGLE_ADS` or `providers/GOOGLE_BUSINESS_PROFILE`). + Provider string `json:"provider,omitempty"` + // ProviderDisplayName: Output only. The human-readable display name of the + // provider account. + ProviderDisplayName string `json:"providerDisplayName,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "AccountAggregation") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AccountAggregation") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AccountService) MarshalJSON() ([]byte, error) { + type NoMethod AccountService + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // AddAccountService: Additional instructions to add account services during // creation of the account. type AddAccountService struct { @@ -578,6 +739,10 @@ func (s Address) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// ApproveAccountServiceRequest: Request to approve an account service. +type ApproveAccountServiceRequest struct { +} + // AutofeedSettings: Collection of information related to the autofeed // (https://support.google.com/merchants/answer/7538732) settings. type AutofeedSettings struct { @@ -944,6 +1109,10 @@ func (s BusinessInfo) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// CampaignsManagement: `CampaignManagement` payload. +type CampaignsManagement struct { +} + // CarrierRate: A list of carrier rates that can be referred to by `main_table` // or `single_value`. Supported carrier services are defined in // https://support.google.com/merchants/answer/12577710?ref_topic=12570808&sjid=10662598224319463032-NC#zippy=%2Cdelivery-cost-rate-type%2Ccarrier-rate-au-de-uk-and-us-only. @@ -1367,6 +1536,44 @@ func (s GeoTargetArea) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// Handshake: The current status of establishing of the service. (for example, +// pending approval or approved). +type Handshake struct { + // Actor: Output only. The most recent account to modify the account service's + // `approval_status`. + // + // Possible values: + // "ACTOR_UNSPECIFIED" - Unspecified actor. + // "ACCOUNT" - The last change was done by the account who has this service. + // "OTHER_PARTY" - The last change was done by the other party who this + // service points to. + Actor string `json:"actor,omitempty"` + // ApprovalState: Output only. The approval state of this handshake. + // + // Possible values: + // "APPROVAL_STATE_UNSPECIFIED" - Unspecified approval status. + // "PENDING" - The service was proposed and is waiting to be confirmed. + // "ESTABLISHED" - Both parties have confirmed the service. + // "REJECTED" - The service proposal was rejected. + ApprovalState string `json:"approvalState,omitempty"` + // ForceSendFields is a list of field names (e.g. "Actor") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Actor") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s Handshake) MarshalJSON() ([]byte, error) { + type NoMethod Handshake + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Headers: A non-empty list of row or column headers for a table. Exactly one // of `prices`, `weights`, `num_items`, `postal_code_group_names`, or // `location` must be set. @@ -1676,6 +1883,63 @@ func (s ListAccountIssuesResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// ListAccountRelationshipsResponse: Response after trying to list account +// relationships. +type ListAccountRelationshipsResponse struct { + // AccountRelationships: The account relationships that match your filter. + AccountRelationships []*AccountRelationship `json:"accountRelationships,omitempty"` + // NextPageToken: A page token. You can send the `page_token` to get the next + // page. Only included in the `list` response if there are more 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. "AccountRelationships") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AccountRelationships") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ListAccountRelationshipsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListAccountRelationshipsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ListAccountServicesResponse: Response after trying to list account services. +type ListAccountServicesResponse struct { + // AccountServices: The account services that match your filter. + AccountServices []*AccountService `json:"accountServices,omitempty"` + // NextPageToken: A page token. You can send the `page_token` to get the next + // page. Only included in the `list` response if there are more 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. "AccountServices") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AccountServices") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ListAccountServicesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListAccountServicesResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // ListAccountsResponse: Response message for the `ListAccounts` method. type ListAccountsResponse struct { // Accounts: The accounts matching the `ListAccountsRequest`. @@ -2477,6 +2741,10 @@ func (s ProductStatusChangeMessage) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// ProductsManagement: `ProductsManagement` payload. +type ProductsManagement struct { +} + // Program: Defines participation in a given program for the specified account. // Programs provide a mechanism for adding functionality to merchant accounts. // A typical example of this is the Free product listings @@ -2532,6 +2800,32 @@ func (s Program) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// ProposeAccountServiceRequest: Request to propose an account service. +type ProposeAccountServiceRequest struct { + // AccountService: Required. The account service to propose. + AccountService *AccountService `json:"accountService,omitempty"` + // Provider: Required. The provider of the service. Either the reference to an + // account such as `providers/123` or a well-known service provider (one of + // `providers/GOOGLE_ADS` or `providers/GOOGLE_BUSINESS_PROFILE`). + Provider string `json:"provider,omitempty"` + // ForceSendFields is a list of field names (e.g. "AccountService") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AccountService") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ProposeAccountServiceRequest) MarshalJSON() ([]byte, error) { + type NoMethod ProposeAccountServiceRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // RateGroup: Shipping rate group definitions. Only the last one is allowed to // have an empty `applicable_shipping_labels`, which means "everything else". // The other `applicable_shipping_labels` must not overlap. @@ -2619,6 +2913,10 @@ func (s Region) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// RejectAccountServiceRequest: Request to reject an account service. +type RejectAccountServiceRequest struct { +} + // Required: Describes the terms of service which are required to be accepted. type Required struct { // TermsOfService: The `TermsOfService` that need to be accepted. @@ -3096,9 +3394,9 @@ func (s TermsOfService) MarshalJSON() ([]byte, error) { // order for the account to continue having a valid agreement. When accepting // new terms of services we expect 3Ps to display the text associated with the // given terms of service agreement (the url to the file containing the text is -// added in the Required message below as `tos_file_uri`. The actual acceptance -// of the terms of service is done by calling accept on the `TermsOfService` -// resource. +// added in the Required message below as `tos_file_uri`). The actual +// acceptance of the terms of service is done by calling accept on the +// `TermsOfService` resource. type TermsOfServiceAgreementState struct { // Accepted: The accepted terms of service of this kind and for the associated // region_code @@ -7288,6 +7586,942 @@ func (c *AccountsRegionsPatchCall) Do(opts ...googleapi.CallOption) (*Region, er return ret, nil } +type AccountsRelationshipsGetCall struct { + s *APIService + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Retrieve an account relationship. +// +// - name: The resource name of the account relationship to get. +func (r *AccountsRelationshipsService) Get(name string) *AccountsRelationshipsGetCall { + c := &AccountsRelationshipsGetCall{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 *AccountsRelationshipsGetCall) Fields(s ...googleapi.Field) *AccountsRelationshipsGetCall { + 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 *AccountsRelationshipsGetCall) IfNoneMatch(entityTag string) *AccountsRelationshipsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *AccountsRelationshipsGetCall) Context(ctx context.Context) *AccountsRelationshipsGetCall { + 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 *AccountsRelationshipsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsRelationshipsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/v1beta/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "merchantapi.accounts.relationships.get", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "merchantapi.accounts.relationships.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *AccountRelationship.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 *AccountsRelationshipsGetCall) Do(opts ...googleapi.CallOption) (*AccountRelationship, 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 := &AccountRelationship{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "merchantapi.accounts.relationships.get", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type AccountsRelationshipsListCall struct { + s *APIService + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: List account relationships for the specified account. +// +// - parent: The parent account of the account relationship to filter by. +func (r *AccountsRelationshipsService) List(parent string) *AccountsRelationshipsListCall { + c := &AccountsRelationshipsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of +// elements to return in the response. Use for paging. If no `page_size` is +// specified, `100` is used as the default value. The maximum allowed value is +// `1000`. +func (c *AccountsRelationshipsListCall) PageSize(pageSize int64) *AccountsRelationshipsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The token returned by the +// previous `list` request. +func (c *AccountsRelationshipsListCall) PageToken(pageToken string) *AccountsRelationshipsListCall { + 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 *AccountsRelationshipsListCall) Fields(s ...googleapi.Field) *AccountsRelationshipsListCall { + 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 *AccountsRelationshipsListCall) IfNoneMatch(entityTag string) *AccountsRelationshipsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *AccountsRelationshipsListCall) Context(ctx context.Context) *AccountsRelationshipsListCall { + 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 *AccountsRelationshipsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsRelationshipsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/v1beta/{+parent}/relationships") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "merchantapi.accounts.relationships.list", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "merchantapi.accounts.relationships.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListAccountRelationshipsResponse.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 *AccountsRelationshipsListCall) Do(opts ...googleapi.CallOption) (*ListAccountRelationshipsResponse, 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 := &ListAccountRelationshipsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "merchantapi.accounts.relationships.list", "response", internallog.HTTPResponse(res, b)) + 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 *AccountsRelationshipsListCall) Pages(ctx context.Context, f func(*ListAccountRelationshipsResponse) 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 AccountsRelationshipsPatchCall struct { + s *APIService + name string + accountrelationship *AccountRelationship + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates the account relationship. Executing this method requires +// admin access. +// +// - name: Identifier. The resource name of the account relationship. +func (r *AccountsRelationshipsService) Patch(name string, accountrelationship *AccountRelationship) *AccountsRelationshipsPatchCall { + c := &AccountsRelationshipsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.accountrelationship = accountrelationship + return c +} + +// UpdateMask sets the optional parameter "updateMask": List of fields being +// updated. The following fields are supported (in both `snake_case` and +// `lowerCamelCase`): - `account_id_alias` +func (c *AccountsRelationshipsPatchCall) UpdateMask(updateMask string) *AccountsRelationshipsPatchCall { + 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 *AccountsRelationshipsPatchCall) Fields(s ...googleapi.Field) *AccountsRelationshipsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *AccountsRelationshipsPatchCall) Context(ctx context.Context) *AccountsRelationshipsPatchCall { + 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 *AccountsRelationshipsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsRelationshipsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.accountrelationship) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/v1beta/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "merchantapi.accounts.relationships.patch", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "merchantapi.accounts.relationships.patch" call. +// Any non-2xx status code is an error. Response headers are in either +// *AccountRelationship.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 *AccountsRelationshipsPatchCall) Do(opts ...googleapi.CallOption) (*AccountRelationship, 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 := &AccountRelationship{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "merchantapi.accounts.relationships.patch", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type AccountsServicesApproveCall struct { + s *APIService + name string + approveaccountservicerequest *ApproveAccountServiceRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Approve: Approve an account service proposal. +// +// - name: The resource name of the account service to approve. +func (r *AccountsServicesService) Approve(name string, approveaccountservicerequest *ApproveAccountServiceRequest) *AccountsServicesApproveCall { + c := &AccountsServicesApproveCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.approveaccountservicerequest = approveaccountservicerequest + 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 *AccountsServicesApproveCall) Fields(s ...googleapi.Field) *AccountsServicesApproveCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *AccountsServicesApproveCall) Context(ctx context.Context) *AccountsServicesApproveCall { + 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 *AccountsServicesApproveCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsServicesApproveCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.approveaccountservicerequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/v1beta/{+name}:approve") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "merchantapi.accounts.services.approve", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "merchantapi.accounts.services.approve" call. +// Any non-2xx status code is an error. Response headers are in either +// *AccountService.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 *AccountsServicesApproveCall) Do(opts ...googleapi.CallOption) (*AccountService, 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 := &AccountService{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "merchantapi.accounts.services.approve", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type AccountsServicesGetCall struct { + s *APIService + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Retrieve an account service. +// +// - name: The resource name of the account service to get. +func (r *AccountsServicesService) Get(name string) *AccountsServicesGetCall { + c := &AccountsServicesGetCall{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 *AccountsServicesGetCall) Fields(s ...googleapi.Field) *AccountsServicesGetCall { + 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 *AccountsServicesGetCall) IfNoneMatch(entityTag string) *AccountsServicesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *AccountsServicesGetCall) Context(ctx context.Context) *AccountsServicesGetCall { + 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 *AccountsServicesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsServicesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/v1beta/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "merchantapi.accounts.services.get", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "merchantapi.accounts.services.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *AccountService.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 *AccountsServicesGetCall) Do(opts ...googleapi.CallOption) (*AccountService, 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 := &AccountService{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "merchantapi.accounts.services.get", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type AccountsServicesListCall struct { + s *APIService + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: List account services for the specified accounts. Supports filtering. +// +// - parent: The parent account of the account service to filter by. +func (r *AccountsServicesService) List(parent string) *AccountsServicesListCall { + c := &AccountsServicesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of +// elements to return in the response. Use for paging. If no `page_size` is +// specified, `100` is used as the default value. The maximum allowed value is +// `1000`. +func (c *AccountsServicesListCall) PageSize(pageSize int64) *AccountsServicesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The token returned by the +// previous `list` request. +func (c *AccountsServicesListCall) PageToken(pageToken string) *AccountsServicesListCall { + 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 *AccountsServicesListCall) Fields(s ...googleapi.Field) *AccountsServicesListCall { + 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 *AccountsServicesListCall) IfNoneMatch(entityTag string) *AccountsServicesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *AccountsServicesListCall) Context(ctx context.Context) *AccountsServicesListCall { + 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 *AccountsServicesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsServicesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/v1beta/{+parent}/services") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "merchantapi.accounts.services.list", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "merchantapi.accounts.services.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListAccountServicesResponse.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 *AccountsServicesListCall) Do(opts ...googleapi.CallOption) (*ListAccountServicesResponse, 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 := &ListAccountServicesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "merchantapi.accounts.services.list", "response", internallog.HTTPResponse(res, b)) + 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 *AccountsServicesListCall) Pages(ctx context.Context, f func(*ListAccountServicesResponse) 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 AccountsServicesProposeCall struct { + s *APIService + parent string + proposeaccountservicerequest *ProposeAccountServiceRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Propose: Propose an account service. +// +// - parent: The resource name of the parent account for the service. +func (r *AccountsServicesService) Propose(parent string, proposeaccountservicerequest *ProposeAccountServiceRequest) *AccountsServicesProposeCall { + c := &AccountsServicesProposeCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.proposeaccountservicerequest = proposeaccountservicerequest + 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 *AccountsServicesProposeCall) Fields(s ...googleapi.Field) *AccountsServicesProposeCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *AccountsServicesProposeCall) Context(ctx context.Context) *AccountsServicesProposeCall { + 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 *AccountsServicesProposeCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsServicesProposeCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.proposeaccountservicerequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/v1beta/{+parent}/services:propose") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "merchantapi.accounts.services.propose", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "merchantapi.accounts.services.propose" call. +// Any non-2xx status code is an error. Response headers are in either +// *AccountService.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 *AccountsServicesProposeCall) Do(opts ...googleapi.CallOption) (*AccountService, 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 := &AccountService{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "merchantapi.accounts.services.propose", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type AccountsServicesRejectCall struct { + s *APIService + name string + rejectaccountservicerequest *RejectAccountServiceRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Reject: Reject an account service (both proposed and approve services can be +// rejected). +// +// - name: The resource name of the account service to reject. +func (r *AccountsServicesService) Reject(name string, rejectaccountservicerequest *RejectAccountServiceRequest) *AccountsServicesRejectCall { + c := &AccountsServicesRejectCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.rejectaccountservicerequest = rejectaccountservicerequest + 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 *AccountsServicesRejectCall) Fields(s ...googleapi.Field) *AccountsServicesRejectCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *AccountsServicesRejectCall) Context(ctx context.Context) *AccountsServicesRejectCall { + 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 *AccountsServicesRejectCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsServicesRejectCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.rejectaccountservicerequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/v1beta/{+name}:reject") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "merchantapi.accounts.services.reject", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "merchantapi.accounts.services.reject" call. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.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 *AccountsServicesRejectCall) Do(opts ...googleapi.CallOption) (*Empty, 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 := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "merchantapi.accounts.services.reject", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type AccountsShippingSettingsGetShippingSettingsCall struct { s *APIService name string diff --git a/merchantapi/products_v1beta/merchantapi-api.json b/merchantapi/products_v1beta/merchantapi-api.json index 0027bc2403b..b5fa65caee8 100644 --- a/merchantapi/products_v1beta/merchantapi-api.json +++ b/merchantapi/products_v1beta/merchantapi-api.json @@ -281,7 +281,7 @@ } } }, - "revision": "20250412", + "revision": "20250427", "rootUrl": "https://merchantapi.googleapis.com/", "schemas": { "Attributes": { @@ -1465,7 +1465,7 @@ "type": "string" }, "versionNumber": { - "description": "Optional. Represents the existing version (freshness) of the product, which can be used to preserve the right order when multiple updates are done at the same time. If set, the insertion is prevented when version number is lower than the current version number of the existing product. Re-insertion (for example, product refresh after 30 days) can be performed with the current `version_number`. Only supported for insertions into primary data sources. If the operation is prevented, the aborted exception will be thrown.", + "description": "Optional. Immutable. Represents the existing version (freshness) of the product, which can be used to preserve the right order when multiple updates are done at the same time. If set, the insertion is prevented when version number is lower than the current version number of the existing product. Re-insertion (for example, product refresh after 30 days) can be performed with the current `version_number`. Only supported for insertions into primary data sources. Do not set this field for updates. Do not set this field for insertions into supplemental data sources. If the operation is prevented, the aborted exception will be thrown.", "format": "int64", "type": "string" } diff --git a/merchantapi/products_v1beta/merchantapi-gen.go b/merchantapi/products_v1beta/merchantapi-gen.go index b24e5b497fd..3a17084a189 100644 --- a/merchantapi/products_v1beta/merchantapi-gen.go +++ b/merchantapi/products_v1beta/merchantapi-gen.go @@ -1329,14 +1329,15 @@ type ProductInput struct { // Product: Output only. The name of the processed product. Format: // `accounts/{account}/products/{product}` Product string `json:"product,omitempty"` - // VersionNumber: Optional. Represents the existing version (freshness) of the - // product, which can be used to preserve the right order when multiple updates - // are done at the same time. If set, the insertion is prevented when version - // number is lower than the current version number of the existing product. - // Re-insertion (for example, product refresh after 30 days) can be performed - // with the current `version_number`. Only supported for insertions into - // primary data sources. If the operation is prevented, the aborted exception - // will be thrown. + // VersionNumber: Optional. Immutable. Represents the existing version + // (freshness) of the product, which can be used to preserve the right order + // when multiple updates are done at the same time. If set, the insertion is + // prevented when version number is lower than the current version number of + // the existing product. Re-insertion (for example, product refresh after 30 + // days) can be performed with the current `version_number`. Only supported for + // insertions into primary data sources. Do not set this field for updates. Do + // not set this field for insertions into supplemental data sources. If the + // operation is prevented, the aborted exception will be thrown. VersionNumber int64 `json:"versionNumber,omitempty,string"` // ServerResponse contains the HTTP response code and headers from the server. diff --git a/networksecurity/v1beta1/networksecurity-api.json b/networksecurity/v1beta1/networksecurity-api.json index bebb0d47e7f..8bec40a193f 100644 --- a/networksecurity/v1beta1/networksecurity-api.json +++ b/networksecurity/v1beta1/networksecurity-api.json @@ -5070,7 +5070,7 @@ } } }, - "revision": "20250326", + "revision": "20250416", "rootUrl": "https://networksecurity.googleapis.com/", "schemas": { "AddAddressGroupItemsRequest": { @@ -5209,7 +5209,7 @@ ], "enumDescriptions": [ "Protocol not specified.", - "SMTP prtocol", + "SMTP protocol", "SMB protocol", "POP3 protocol", "IMAP protocol", diff --git a/networksecurity/v1beta1/networksecurity-gen.go b/networksecurity/v1beta1/networksecurity-gen.go index 063f102e838..86551859b24 100644 --- a/networksecurity/v1beta1/networksecurity-gen.go +++ b/networksecurity/v1beta1/networksecurity-gen.go @@ -612,7 +612,7 @@ type AntivirusOverride struct { // // Possible values: // "PROTOCOL_UNSPECIFIED" - Protocol not specified. - // "SMTP" - SMTP prtocol + // "SMTP" - SMTP protocol // "SMB" - SMB protocol // "POP3" - POP3 protocol // "IMAP" - IMAP protocol diff --git a/translate/v3/translate-api.json b/translate/v3/translate-api.json index 21a082e1b2b..3be5c93031f 100644 --- a/translate/v3/translate-api.json +++ b/translate/v3/translate-api.json @@ -424,6 +424,12 @@ "name" ], "parameters": { + "extraLocationTypes": { + "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "location": "query", + "repeated": true, + "type": "string" + }, "filter": { "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", "location": "query", @@ -1710,7 +1716,7 @@ } } }, - "revision": "20241218", + "revision": "20250424", "rootUrl": "https://translation.googleapis.com/", "schemas": { "AdaptiveMtDataset": { diff --git a/translate/v3/translate-gen.go b/translate/v3/translate-gen.go index ebc59ff4081..4c349b2d38b 100644 --- a/translate/v3/translate-gen.go +++ b/translate/v3/translate-gen.go @@ -3867,6 +3867,14 @@ func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall return c } +// ExtraLocationTypes sets the optional parameter "extraLocationTypes": A list +// of extra location types that should be used as conditions for controlling +// the visibility of the locations. +func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall { + c.urlParams_.SetMulti("extraLocationTypes", append([]string{}, extraLocationTypes...)) + return c +} + // Filter sets the optional parameter "filter": A filter to narrow down results // to a preferred subset. The filtering language accepts strings like // "displayName=tokyo", and is documented in more detail in AIP-160 diff --git a/translate/v3beta1/translate-api.json b/translate/v3beta1/translate-api.json index 8f98f4d78ff..ec6b786239f 100644 --- a/translate/v3beta1/translate-api.json +++ b/translate/v3beta1/translate-api.json @@ -366,6 +366,12 @@ "name" ], "parameters": { + "extraLocationTypes": { + "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "location": "query", + "repeated": true, + "type": "string" + }, "filter": { "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", "location": "query", @@ -747,7 +753,7 @@ } } }, - "revision": "20241218", + "revision": "20250424", "rootUrl": "https://translation.googleapis.com/", "schemas": { "BatchDocumentInputConfig": { diff --git a/translate/v3beta1/translate-gen.go b/translate/v3beta1/translate-gen.go index d979bc97aea..5a4afd6dce1 100644 --- a/translate/v3beta1/translate-gen.go +++ b/translate/v3beta1/translate-gen.go @@ -2460,6 +2460,14 @@ func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall return c } +// ExtraLocationTypes sets the optional parameter "extraLocationTypes": A list +// of extra location types that should be used as conditions for controlling +// the visibility of the locations. +func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall { + c.urlParams_.SetMulti("extraLocationTypes", append([]string{}, extraLocationTypes...)) + return c +} + // Filter sets the optional parameter "filter": A filter to narrow down results // to a preferred subset. The filtering language accepts strings like // "displayName=tokyo", and is documented in more detail in AIP-160 From 70d3b4f38ec8df290ddcaedb749eaf29f798958c Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 29 Apr 2025 11:04:25 -0600 Subject: [PATCH 8/8] chore(main): release 0.231.0 (#3123) --- CHANGES.md | 12 ++++++++++++ internal/version.go | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index fcb94a8640c..4d98e845bf5 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,17 @@ # Changes +## [0.231.0](https://github.com/googleapis/google-api-go-client/compare/v0.230.0...v0.231.0) (2025-04-29) + + +### Features + +* **all:** Auto-regenerate discovery clients ([#3122](https://github.com/googleapis/google-api-go-client/issues/3122)) ([47cbba6](https://github.com/googleapis/google-api-go-client/commit/47cbba61ec8d62ebdfd1affe3a9244b20184c781)) +* **all:** Auto-regenerate discovery clients ([#3124](https://github.com/googleapis/google-api-go-client/issues/3124)) ([677b602](https://github.com/googleapis/google-api-go-client/commit/677b602b6f3f072ebfac6c5791cc06d15720b136)) +* **all:** Auto-regenerate discovery clients ([#3125](https://github.com/googleapis/google-api-go-client/issues/3125)) ([8ccf1f0](https://github.com/googleapis/google-api-go-client/commit/8ccf1f08977c7843d093bba21d391b082e206a75)) +* **all:** Auto-regenerate discovery clients ([#3126](https://github.com/googleapis/google-api-go-client/issues/3126)) ([4059351](https://github.com/googleapis/google-api-go-client/commit/405935174a0a7c9734c8e6b0dce487c481a7927e)) +* **all:** Auto-regenerate discovery clients ([#3127](https://github.com/googleapis/google-api-go-client/issues/3127)) ([ae18b22](https://github.com/googleapis/google-api-go-client/commit/ae18b2206b6182d47d69227b638dfc42d975b889)) +* **all:** Auto-regenerate discovery clients ([#3129](https://github.com/googleapis/google-api-go-client/issues/3129)) ([c33e0d1](https://github.com/googleapis/google-api-go-client/commit/c33e0d153c99c931e5b953e3ccfa40fe8ac20c02)) + ## [0.230.0](https://github.com/googleapis/google-api-go-client/compare/v0.229.0...v0.230.0) (2025-04-22) diff --git a/internal/version.go b/internal/version.go index c172d920723..34d75cbe3a6 100644 --- a/internal/version.go +++ b/internal/version.go @@ -5,4 +5,4 @@ package internal // Version is the current tagged release of the library. -const Version = "0.230.0" +const Version = "0.231.0"